aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-25 07:05:07 +0800
committerFabio Berger <me@fabioberger.com>2018-05-25 07:05:07 +0800
commit662dc1287737aa02c0c822d7c53be114230422c0 (patch)
tree61e800ed5e2005ee3a6f64a8a65c98562aadabc0 /packages
parentbc550c3265cfcb92785d90c075a120d8c90d15f7 (diff)
downloaddexon-sol-tools-662dc1287737aa02c0c822d7c53be114230422c0.tar
dexon-sol-tools-662dc1287737aa02c0c822d7c53be114230422c0.tar.gz
dexon-sol-tools-662dc1287737aa02c0c822d7c53be114230422c0.tar.bz2
dexon-sol-tools-662dc1287737aa02c0c822d7c53be114230422c0.tar.lz
dexon-sol-tools-662dc1287737aa02c0c822d7c53be114230422c0.tar.xz
dexon-sol-tools-662dc1287737aa02c0c822d7c53be114230422c0.tar.zst
dexon-sol-tools-662dc1287737aa02c0c822d7c53be114230422c0.zip
Add senderAddress to order schema
Diffstat (limited to 'packages')
-rw-r--r--packages/json-schemas/schemas/order_schemas.ts2
-rw-r--r--packages/json-schemas/test/schema_test.ts1
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',