diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-25 07:05:07 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-25 07:05:07 +0800 |
commit | 662dc1287737aa02c0c822d7c53be114230422c0 (patch) | |
tree | 61e800ed5e2005ee3a6f64a8a65c98562aadabc0 /packages/json-schemas | |
parent | bc550c3265cfcb92785d90c075a120d8c90d15f7 (diff) | |
download | dexon-sol-tools-662dc1287737aa02c0c822d7c53be114230422c0.tar.gz dexon-sol-tools-662dc1287737aa02c0c822d7c53be114230422c0.tar.zst dexon-sol-tools-662dc1287737aa02c0c822d7c53be114230422c0.zip |
Add senderAddress to order schema
Diffstat (limited to 'packages/json-schemas')
-rw-r--r-- | packages/json-schemas/schemas/order_schemas.ts | 2 | ||||
-rw-r--r-- | packages/json-schemas/test/schema_test.ts | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/packages/json-schemas/schemas/order_schemas.ts b/packages/json-schemas/schemas/order_schemas.ts index 183118c23..4dc458d8d 100644 --- a/packages/json-schemas/schemas/order_schemas.ts +++ b/packages/json-schemas/schemas/order_schemas.ts @@ -5,6 +5,7 @@ export const orderSchema = { takerAddress: { $ref: '/Address' }, makerFee: { $ref: '/Number' }, takerFee: { $ref: '/Number' }, + senderAddress: { $ref: '/Address' }, makerAssetAmount: { $ref: '/Number' }, takerAssetAmount: { $ref: '/Number' }, makerAssetData: { $ref: '/Hex' }, @@ -18,6 +19,7 @@ export const orderSchema = { 'takerAddress', 'makerFee', 'takerFee', + 'senderAddress', 'makerAssetAmount', 'takerAssetAmount', 'makerAssetData', diff --git a/packages/json-schemas/test/schema_test.ts b/packages/json-schemas/test/schema_test.ts index 379f92442..93e9624a9 100644 --- a/packages/json-schemas/test/schema_test.ts +++ b/packages/json-schemas/test/schema_test.ts @@ -171,6 +171,7 @@ describe('Schema', () => { const order = { makerAddress: NULL_ADDRESS, takerAddress: NULL_ADDRESS, + senderAddress: NULL_ADDRESS, makerFee: '1', takerFee: '2', makerAssetAmount: '1', |