aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/schemas/order_schema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website/ts/schemas/order_schema.ts')
-rw-r--r--packages/website/ts/schemas/order_schema.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/website/ts/schemas/order_schema.ts b/packages/website/ts/schemas/order_schema.ts
new file mode 100644
index 000000000..61b93d273
--- /dev/null
+++ b/packages/website/ts/schemas/order_schema.ts
@@ -0,0 +1,24 @@
+export const orderSchema = {
+ id: '/Order',
+ properties: {
+ maker: {$ref: '/OrderTaker'},
+ taker: {$ref: '/OrderTaker'},
+ salt: {type: 'string'},
+ signature: {$ref: '/SignatureData'},
+ expiration: {type: 'string'},
+ feeRecipient: {type: 'string'},
+ exchangeContract: {type: 'string'},
+ networkId: {type: 'number'},
+ },
+ required: [
+ 'maker',
+ 'taker',
+ 'salt',
+ 'signature',
+ 'expiration',
+ 'feeRecipient',
+ 'exchangeContract',
+ 'networkId',
+ ],
+ type: 'object',
+};