Skip to content

Commit

Permalink
Update json-schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
fragosti committed Sep 27, 2019
1 parent a9ecf7f commit 5b0fc81
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 23 deletions.
16 changes: 12 additions & 4 deletions packages/json-schemas/schemas/eip712_domain_schema.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{
"id": "/eip712DomainSchema",
"properties": {
"name": { "type": "string" },
"version": { "type": "version" },
"chainId": { "type": "number" },
"verifyingContractAddress": { "$ref": "/addressSchema" }
"name": {
"type": "string"
},
"version": {
"type": "version"
},
"chainId": {
"type": "number"
},
"verifyingContract": {
"$ref": "/addressSchema"
}
},
"required": [
"chainId",
Expand Down
58 changes: 45 additions & 13 deletions packages/json-schemas/schemas/orders_request_opts_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,50 @@
"id": "/OrdersRequestOptsSchema",
"type": "object",
"properties": {
"makerAssetProxyId": { "$ref": "/hexSchema" },
"takerAssetProxyId": { "$ref": "/hexSchema" },
"makerAssetAddress": { "$ref": "/addressSchema" },
"takerAssetAddress": { "$ref": "/addressSchema" },
"exchangeAddress": { "$ref": "/addressSchema" },
"senderAddress": { "$ref": "/addressSchema" },
"makerAssetData": { "$ref": "/hexSchema" },
"takerAssetData": { "$ref": "/hexSchema" },
"traderAssetData": { "$ref": "/hexSchema" },
"makerAddress": { "$ref": "/addressSchema" },
"takerAddress": { "$ref": "/addressSchema" },
"traderAddress": { "$ref": "/addressSchema" },
"feeRecipientAddress": { "$ref": "/addressSchema" }
"makerAssetProxyId": {
"$ref": "/hexSchema"
},
"takerAssetProxyId": {
"$ref": "/hexSchema"
},
"makerAssetAddress": {
"$ref": "/addressSchema"
},
"takerAssetAddress": {
"$ref": "/addressSchema"
},
"exchangeAddress": {
"$ref": "/addressSchema"
},
"senderAddress": {
"$ref": "/addressSchema"
},
"makerAssetData": {
"$ref": "/hexSchema"
},
"takerAssetData": {
"$ref": "/hexSchema"
},
"traderAssetData": {
"$ref": "/hexSchema"
},
"makerFeeAssetData": {
"$ref": "/hexSchema"
},
"takerFeeAssetData": {
"$ref": "/hexSchema"
},
"makerAddress": {
"$ref": "/addressSchema"
},
"takerAddress": {
"$ref": "/addressSchema"
},
"traderAddress": {
"$ref": "/addressSchema"
},
"feeRecipientAddress": {
"$ref": "/addressSchema"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,31 @@
"id": "/relayerApiOrderConfigResponseSchema",
"type": "object",
"properties": {
"makerFee": { "$ref": "/wholeNumberSchema" },
"takerFee": { "$ref": "/wholeNumberSchema" },
"feeRecipientAddress": { "$ref": "/addressSchema" },
"senderAddress": { "$ref": "/addressSchema" }
"makerFee": {
"$ref": "/wholeNumberSchema"
},
"takerFee": {
"$ref": "/wholeNumberSchema"
},
"feeRecipientAddress": {
"$ref": "/addressSchema"
},
"senderAddress": {
"$ref": "/addressSchema"
},
"makerFeeAssetData": {
"$ref": "/hexSchema"
},
"takerFeeAssetData": {
"$ref": "/hexSchema"
}
},
"required": ["makerFee", "takerFee", "feeRecipientAddress", "senderAddress"]
"required": [
"makerFee",
"takerFee",
"feeRecipientAddress",
"senderAddress",
"makerFeeAssetData",
"takerFeeAssetData"
]
}
4 changes: 3 additions & 1 deletion packages/json-schemas/schemas/relayer_api_orders_schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"id": "/relayerApiOrdersSchema",
"type": "array",
"items": { "$ref": "/relayerApiOrderSchema" }
"items": {
"$ref": "/relayerApiOrderSchema"
}
}

0 comments on commit 5b0fc81

Please sign in to comment.