aboutsummaryrefslogtreecommitdiffstats
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
parentbc550c3265cfcb92785d90c075a120d8c90d15f7 (diff)
downloaddexon-0x-contracts-662dc1287737aa02c0c822d7c53be114230422c0.tar.gz
dexon-0x-contracts-662dc1287737aa02c0c822d7c53be114230422c0.tar.zst
dexon-0x-contracts-662dc1287737aa02c0c822d7c53be114230422c0.zip
Add senderAddress to order schema
-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',
pan title='2023-04-16 21:40:01 +0800'>2023-04-1618-0/+354 * net/tightvnc: Remove expired port:Muhammad Moinur Rahman2023-03-3118-356/+0 * net/tightvnc: Deprecate and set expiration date to 2023-03-31Koichiro Iwao2023-02-071-0/+3 * Remove WWW entries moved into port MakefilesStefan Eßer2022-09-081-2/+0 * Add WWW entries to port MakefilesStefan Eßer2022-09-081-0/+1 * net: remove 'Created by' linesTobias C. Berner2022-07-201-2/+0 * net/tightvnc: fix build without GCC on powerpc* and riscv64Piotr Kubaj2022-04-252-2/+2 * */*: Remove redundant '-*' from CONFLICTS definitionsStefan Eßer2021-11-261-1/+1 * *: apply refactor.remove-consecutive-empty-linesTobias Kortkamp2021-10-191-1/+0 * net/tightvnc: fix build on powerpcPiotr Kubaj2021-06-101-1/+1 * */*: Replace USE_GCC=any with USE_GCC=yesGerald Pfeifer2021-06-041-1/+1