aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-30 07:58:30 +0800
committerFabio Berger <me@fabioberger.com>2018-05-30 07:58:30 +0800
commit4874d55d03918b47967024777194d88a5f2bc1fc (patch)
tree4a53834e9424a8b33aa7d0edaf13de11f2e807a3 /packages/json-schemas
parent10faa474950a902af943b3c51f3703491afa6520 (diff)
downloaddexon-0x-contracts-4874d55d03918b47967024777194d88a5f2bc1fc.tar
dexon-0x-contracts-4874d55d03918b47967024777194d88a5f2bc1fc.tar.gz
dexon-0x-contracts-4874d55d03918b47967024777194d88a5f2bc1fc.tar.bz2
dexon-0x-contracts-4874d55d03918b47967024777194d88a5f2bc1fc.tar.lz
dexon-0x-contracts-4874d55d03918b47967024777194d88a5f2bc1fc.tar.xz
dexon-0x-contracts-4874d55d03918b47967024777194d88a5f2bc1fc.tar.zst
dexon-0x-contracts-4874d55d03918b47967024777194d88a5f2bc1fc.zip
Initial refactor of order-utils. Move many utils from contracts into this package.
Diffstat (limited to 'packages/json-schemas')
-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 4dc458d8d..dcbfde6e0 100644
--- a/packages/json-schemas/schemas/order_schemas.ts
+++ b/packages/json-schemas/schemas/order_schemas.ts
@@ -11,6 +11,7 @@ export const orderSchema = {
makerAssetData: { $ref: '/Hex' },
takerAssetData: { $ref: '/Hex' },
salt: { $ref: '/Number' },
+ exchangeAddress: { $ref: '/Address' },
feeRecipientAddress: { $ref: '/Address' },
expirationTimeSeconds: { $ref: '/Number' },
},
@@ -25,6 +26,7 @@ export const orderSchema = {
'makerAssetData',
'takerAssetData',
'salt',
+ 'exchangeAddress',
'feeRecipientAddress',
'expirationTimeSeconds',
],
diff --git a/packages/json-schemas/test/schema_test.ts b/packages/json-schemas/test/schema_test.ts
index 93e9624a9..3858c7fa7 100644
--- a/packages/json-schemas/test/schema_test.ts
+++ b/packages/json-schemas/test/schema_test.ts
@@ -180,6 +180,7 @@ describe('Schema', () => {
takerAssetData: NULL_ADDRESS,
salt: '67006738228878699843088602623665307406148487219438534730168799356281242528500',
feeRecipientAddress: NULL_ADDRESS,
+ exchangeAddress: NULL_ADDRESS,
expirationTimeSeconds: '42',
};
describe('#orderSchema', () => {