aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/schemas/order_schema.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-07 22:26:53 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-07 22:26:53 +0800
commit10fb6061ccf66bd117ba13ea2ed1cfe7373096d0 (patch)
treeeec62a55708805e0e714033700e6410b909f1849 /packages/website/ts/schemas/order_schema.ts
parent223df8006a30a95db544a2af080224a4d9d2d474 (diff)
downloaddexon-sol-tools-10fb6061ccf66bd117ba13ea2ed1cfe7373096d0.tar.gz
dexon-sol-tools-10fb6061ccf66bd117ba13ea2ed1cfe7373096d0.tar.zst
dexon-sol-tools-10fb6061ccf66bd117ba13ea2ed1cfe7373096d0.zip
Introduce makerToken and takerToken fields for unsigned token metadata
Diffstat (limited to 'packages/website/ts/schemas/order_schema.ts')
-rw-r--r--packages/website/ts/schemas/order_schema.ts12
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/website/ts/schemas/order_schema.ts b/packages/website/ts/schemas/order_schema.ts
index ccf4af671..6ddc9e445 100644
--- a/packages/website/ts/schemas/order_schema.ts
+++ b/packages/website/ts/schemas/order_schema.ts
@@ -1,8 +1,12 @@
export const orderSchema = {
id: '/Order',
properties: {
- maker: { $ref: '/OrderTaker' },
- taker: { $ref: '/OrderTaker' },
+ maker: { type: 'string' },
+ taker: { type: 'string' },
+ makerTokenAddress: { type: 'string' },
+ takerTokenAddress: { type: 'string' },
+ makerToken: { $ref: '/Token' },
+ takerToken: { $ref: '/Token' },
makerFee: { type: 'string' },
takerFee: { type: 'string' },
makerTokenAmount: { type: 'string' },
@@ -17,6 +21,10 @@ export const orderSchema = {
required: [
'maker',
'taker',
+ 'makerTokenAddress',
+ 'takerTokenAddress',
+ 'makerToken',
+ 'takerToken',
'makerFee',
'takerFee',
'makerTokenAmount',