aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-30 18:13:30 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-30 18:13:30 +0800
commit170dd91bfd2896e45a804240938dd8ca8219569e (patch)
tree5efad12d9a7701d9a2764f1f153a69fd56570cc4
parent4b8ff4bf5f18bfb96c50df5928beee3463aca616 (diff)
downloaddexon-0x-contracts-170dd91bfd2896e45a804240938dd8ca8219569e.tar.gz
dexon-0x-contracts-170dd91bfd2896e45a804240938dd8ca8219569e.tar.zst
dexon-0x-contracts-170dd91bfd2896e45a804240938dd8ca8219569e.zip
Change BigNumber schema to Number schema
-rw-r--r--src/schemas/signed_order_schema.ts21
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',