aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas/schemas/relayer_api_fees_payload_schema.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2017-11-14 08:32:01 +0800
committerBrandon Millman <brandon.millman@gmail.com>2017-11-14 22:42:50 +0800
commit56b5619d24b44d23f770b58b0c9e1d4a63b89aca (patch)
tree52c047aa9ce6dbd5af93f495dbb21a8c3a662a6f /packages/json-schemas/schemas/relayer_api_fees_payload_schema.ts
parent08963f269b543d0f6f125ff77efdda23339865ed (diff)
downloaddexon-0x-contracts-56b5619d24b44d23f770b58b0c9e1d4a63b89aca.tar.gz
dexon-0x-contracts-56b5619d24b44d23f770b58b0c9e1d4a63b89aca.tar.zst
dexon-0x-contracts-56b5619d24b44d23f770b58b0c9e1d4a63b89aca.zip
Add json-schemas package to mono repo
Diffstat (limited to 'packages/json-schemas/schemas/relayer_api_fees_payload_schema.ts')
-rw-r--r--packages/json-schemas/schemas/relayer_api_fees_payload_schema.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/json-schemas/schemas/relayer_api_fees_payload_schema.ts b/packages/json-schemas/schemas/relayer_api_fees_payload_schema.ts
new file mode 100644
index 000000000..645660844
--- /dev/null
+++ b/packages/json-schemas/schemas/relayer_api_fees_payload_schema.ts
@@ -0,0 +1,19 @@
+export const relayerApiFeesPayloadSchema = {
+ id: '/RelayerApiFeesPayload',
+ type: 'object',
+ properties: {
+ exchangeContractAddress: {$ref: '/Address'},
+ maker: {$ref: '/Address'},
+ taker: {$ref: '/Address'},
+ makerTokenAddress: {$ref: '/Address'},
+ takerTokenAddress: {$ref: '/Address'},
+ makerTokenAmount: {$ref: '/Number'},
+ takerTokenAmount: {$ref: '/Number'},
+ expirationUnixTimestampSec: {$ref: '/Number'},
+ salt: {$ref: '/Number'},
+ },
+ required: [
+ 'exchangeContractAddress', 'maker', 'taker', 'makerTokenAddress', 'takerTokenAddress',
+ 'expirationUnixTimestampSec', 'salt',
+ ],
+};