aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/schemas/metadata_schema.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-08 03:26:13 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-08 03:26:13 +0800
commit69f5f5e94627458f4eb41f4150cfa3d140658d09 (patch)
tree233be0fd8343ebd92143103f1ae421ad1aae70f2 /packages/website/ts/schemas/metadata_schema.ts
parentae14b0a71d70f057efb9cbd4d180aca76a3ad5d1 (diff)
downloaddexon-sol-tools-69f5f5e94627458f4eb41f4150cfa3d140658d09.tar.gz
dexon-sol-tools-69f5f5e94627458f4eb41f4150cfa3d140658d09.tar.zst
dexon-sol-tools-69f5f5e94627458f4eb41f4150cfa3d140658d09.zip
Split Order into signedOrder and metadata
Diffstat (limited to 'packages/website/ts/schemas/metadata_schema.ts')
-rw-r--r--packages/website/ts/schemas/metadata_schema.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/website/ts/schemas/metadata_schema.ts b/packages/website/ts/schemas/metadata_schema.ts
new file mode 100644
index 000000000..272b23fbd
--- /dev/null
+++ b/packages/website/ts/schemas/metadata_schema.ts
@@ -0,0 +1,10 @@
+export const orderMetadataSchema = {
+ id: '/OrderMetadata',
+ properties: {
+ makerToken: { $ref: '/Token' },
+ takerToken: { $ref: '/Token' },
+ networkId: { type: 'number' },
+ },
+ required: ['makerToken', 'takerToken', 'networkId'],
+ type: 'object',
+};