diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-17 20:28:26 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-17 20:28:26 +0800 |
commit | 7d9009bb96fa576c98abd82200cd0fc2b4d27e40 (patch) | |
tree | 6725cc866ee5f1940f2b4611b8e9f94976626b6c /packages/json-schemas/schemas/order_schemas.ts | |
parent | 78e6063d929368cd08c324cc5e7e5b48af0079f6 (diff) | |
download | dexon-sol-tools-7d9009bb96fa576c98abd82200cd0fc2b4d27e40.tar.gz dexon-sol-tools-7d9009bb96fa576c98abd82200cd0fc2b4d27e40.tar.zst dexon-sol-tools-7d9009bb96fa576c98abd82200cd0fc2b4d27e40.zip |
Convert all schemas to json files, so it's easier for devs in other languages to use it
Diffstat (limited to 'packages/json-schemas/schemas/order_schemas.ts')
-rw-r--r-- | packages/json-schemas/schemas/order_schemas.ts | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/packages/json-schemas/schemas/order_schemas.ts b/packages/json-schemas/schemas/order_schemas.ts deleted file mode 100644 index eb7fdaf5a..000000000 --- a/packages/json-schemas/schemas/order_schemas.ts +++ /dev/null @@ -1,47 +0,0 @@ -export const orderSchema = { - id: '/orderSchema', - properties: { - makerAddress: { $ref: '/addressSchema' }, - takerAddress: { $ref: '/addressSchema' }, - makerFee: { $ref: '/numberSchema' }, - takerFee: { $ref: '/numberSchema' }, - senderAddress: { $ref: '/addressSchema' }, - makerAssetAmount: { $ref: '/numberSchema' }, - takerAssetAmount: { $ref: '/numberSchema' }, - makerAssetData: { $ref: '/hexSchema' }, - takerAssetData: { $ref: '/hexSchema' }, - salt: { $ref: '/numberSchema' }, - exchangeAddress: { $ref: '/addressSchema' }, - feeRecipientAddress: { $ref: '/addressSchema' }, - expirationTimeSeconds: { $ref: '/numberSchema' }, - }, - required: [ - 'makerAddress', - 'takerAddress', - 'makerFee', - 'takerFee', - 'senderAddress', - 'makerAssetAmount', - 'takerAssetAmount', - 'makerAssetData', - 'takerAssetData', - 'salt', - 'exchangeAddress', - 'feeRecipientAddress', - 'expirationTimeSeconds', - ], - type: 'object', -}; - -export const signedOrderSchema = { - id: '/signedOrderSchema', - allOf: [ - { $ref: '/orderSchema' }, - { - properties: { - signature: { $ref: '/hexSchema' }, - }, - required: ['signature'], - }, - ], -}; |