diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-08-29 00:01:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-29 00:01:39 +0800 |
commit | 05ce9733dadd1f83afa2d96ff55a23cd1477216d (patch) | |
tree | 6c984b77c1cd5ca312310d7f72ad4b512ecb9df5 /src/schemas/order_schemas.ts | |
parent | 0afc95982b195378653e15697f65d4ad3bf48e66 (diff) | |
parent | 96da2c26dceca03340a213baae5a490df2f7183c (diff) | |
download | dexon-sol-tools-05ce9733dadd1f83afa2d96ff55a23cd1477216d.tar dexon-sol-tools-05ce9733dadd1f83afa2d96ff55a23cd1477216d.tar.gz dexon-sol-tools-05ce9733dadd1f83afa2d96ff55a23cd1477216d.tar.bz2 dexon-sol-tools-05ce9733dadd1f83afa2d96ff55a23cd1477216d.tar.lz dexon-sol-tools-05ce9733dadd1f83afa2d96ff55a23cd1477216d.tar.xz dexon-sol-tools-05ce9733dadd1f83afa2d96ff55a23cd1477216d.tar.zst dexon-sol-tools-05ce9733dadd1f83afa2d96ff55a23cd1477216d.zip |
Merge pull request #140 from 0xProject/0x-json-schemas
Use 0x-json-schemas
Diffstat (limited to 'src/schemas/order_schemas.ts')
-rw-r--r-- | src/schemas/order_schemas.ts | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/schemas/order_schemas.ts b/src/schemas/order_schemas.ts deleted file mode 100644 index c346687b5..000000000 --- a/src/schemas/order_schemas.ts +++ /dev/null @@ -1,39 +0,0 @@ -export const orderSchema = { - id: '/orderSchema', - properties: { - maker: {$ref: '/addressSchema'}, - taker: {$ref: '/addressSchema'}, - - makerFee: {$ref: '/numberSchema'}, - takerFee: {$ref: '/numberSchema'}, - - makerTokenAmount: {$ref: '/numberSchema'}, - takerTokenAmount: {$ref: '/numberSchema'}, - - makerTokenAddress: {$ref: '/addressSchema'}, - takerTokenAddress: {$ref: '/addressSchema'}, - - salt: {$ref: '/numberSchema'}, - feeRecipient: {$ref: '/addressSchema'}, - expirationUnixTimestampSec: {$ref: '/numberSchema'}, - exchangeContractAddress: {$ref: '/addressSchema'}, - }, - required: [ - 'maker', 'taker', 'makerFee', 'takerFee', 'makerTokenAmount', 'takerTokenAmount', - 'salt', 'feeRecipient', 'expirationUnixTimestampSec', 'exchangeContractAddress', - ], - type: 'object', -}; - -export const signedOrderSchema = { - id: '/signedOrderSchema', - allOf: [ - { $ref: '/orderSchema' }, - { - properties: { - ecSignature: {$ref: '/ECSignature'}, - }, - required: ['ecSignature'], - }, - ], -}; |