aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-30 18:56:11 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-30 18:56:11 +0800
commit0b81cd9d78584958d5f33a1a9826a071ed450fc3 (patch)
tree5967fd9961d8b16eb00982f90c27ba83750e59c1
parent766d46041ec3958ebd625eb5adbc5b46b329b6d8 (diff)
downloaddexon-sol-tools-0b81cd9d78584958d5f33a1a9826a071ed450fc3.tar
dexon-sol-tools-0b81cd9d78584958d5f33a1a9826a071ed450fc3.tar.gz
dexon-sol-tools-0b81cd9d78584958d5f33a1a9826a071ed450fc3.tar.bz2
dexon-sol-tools-0b81cd9d78584958d5f33a1a9826a071ed450fc3.tar.lz
dexon-sol-tools-0b81cd9d78584958d5f33a1a9826a071ed450fc3.tar.xz
dexon-sol-tools-0b81cd9d78584958d5f33a1a9826a071ed450fc3.tar.zst
dexon-sol-tools-0b81cd9d78584958d5f33a1a9826a071ed450fc3.zip
Fix orderSchema
-rw-r--r--src/schemas/signed_order_schema.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/schemas/signed_order_schema.ts b/src/schemas/signed_order_schema.ts
index 69f33b7bd..dc7e51e40 100644
--- a/src/schemas/signed_order_schema.ts
+++ b/src/schemas/signed_order_schema.ts
@@ -6,7 +6,8 @@ export const addressSchema = {
export const numberSchema = {
id: '/numberSchema',
- type: 'number',
+ type: 'string',
+ format: '\d+(\.\d+)?',
};
export const orderSchema = {
@@ -25,13 +26,12 @@ export const orderSchema = {
takerTokenAddress: {$ref: '/addressSchema'},
salt: {$ref: '/numberSchema'},
- fillAmount: {$ref: '/numberSchema'},
feeRecipient: {$ref: '/addressSchema'},
expirationUnixTimestampSec: {$ref: '/numberSchema'},
},
required: [
'maker', /*'taker',*/ 'makerFee', 'takerFee', 'makerTokenAmount', 'takerTokenAmount',
- 'salt', 'fillAmount', 'feeRecipient', 'expirationUnixTimestampSec',
+ 'salt', 'feeRecipient', 'expirationUnixTimestampSec',
],
type: 'object',
};
@@ -42,7 +42,7 @@ export const signedOrderSchema = {
{ $ref: '/orderSchema' },
{
properties: {
- ecSignature: {$ref: '/addressSchema'},
+ ecSignature: {$ref: '/ECSignature'},
},
required: ['ecSignature'],
},