diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/schemas/signed_order_schema.ts | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/schemas/signed_order_schema.ts b/src/schemas/signed_order_schema.ts index fc72476d9..69f33b7bd 100644 --- a/src/schemas/signed_order_schema.ts +++ b/src/schemas/signed_order_schema.ts @@ -4,10 +4,9 @@ export const addressSchema = { pattern: '^0[xX][0-9A-Fa-f]{40}$', }; -export const bigNumberSchema = { - id: '/bigNumberSchema', - type: 'string', - pattern: '^\d*$', +export const numberSchema = { + id: '/numberSchema', + type: 'number', }; export const orderSchema = { @@ -16,19 +15,19 @@ export const orderSchema = { maker: {$ref: '/addressSchema'}, taker: {$ref: '/addressSchema'}, - makerFee: {$ref: '/bigNumberSchema'}, - takerFee: {$ref: '/bigNumberSchema'}, + makerFee: {$ref: '/numberSchema'}, + takerFee: {$ref: '/numberSchema'}, - makerTokenAmount: {$ref: '/bigNumberSchema'}, - takerTokenAmount: {$ref: '/bigNumberSchema'}, + makerTokenAmount: {$ref: '/numberSchema'}, + takerTokenAmount: {$ref: '/numberSchema'}, makerTokenAddress: {$ref: '/addressSchema'}, takerTokenAddress: {$ref: '/addressSchema'}, - salt: {$ref: '/bigNumberSchema'}, - fillAmount: {$ref: '/bigNumberSchema'}, + salt: {$ref: '/numberSchema'}, + fillAmount: {$ref: '/numberSchema'}, feeRecipient: {$ref: '/addressSchema'}, - expirationUnixTimestampSec: {$ref: '/bigNumberSchema'}, + expirationUnixTimestampSec: {$ref: '/numberSchema'}, }, required: [ 'maker', /*'taker',*/ 'makerFee', 'takerFee', 'makerTokenAmount', 'takerTokenAmount', |