@0x/json-schemas: Add exchangeProxyMetaTransactionSchema.

This commit is contained in:
Lawrence Forman 2020-08-19 11:39:49 -04:00
parent 8e73ae3614
commit 6aa8f17ed5
4 changed files with 43 additions and 1 deletions

View File

@ -1,4 +1,13 @@
[
{
"version": "5.2.0",
"changes": [
{
"note": "Add `exchangeProxyMetaTransactionSchema`",
"pr": 2657
}
]
},
{
"version": "5.1.0",
"changes": [

View File

@ -0,0 +1,30 @@
{
"id": "/exchangeProxyMetaTransactionSchema",
"properties": {
"signer": { "$ref": "/addressSchema" },
"sender": { "$ref": "/addressSchema" },
"minGasPrice": { "$ref": "/wholeNumberSchema" },
"maxGasPrice": { "$ref": "/wholeNumberSchema" },
"expirationTimeSeconds": { "$ref": "/wholeNumberSchema" },
"salt": { "$ref": "/wholeNumberSchema" },
"callData": { "$ref": "/hexSchema" },
"value": { "$ref": "/wholeNumberSchema" },
"feeToken": { "$ref": "/addressSchema" },
"feeAmount": { "$ref": "/wholeNumberSchema" },
"domain": { "$ref": "/eip712DomainSchema" }
},
"required": [
"signer",
"sender",
"minGasPrice",
"maxGasPrice",
"expirationTimeSeconds",
"salt",
"callData",
"value",
"feeToken",
"feeAmount",
"domain"
],
"type": "object"
}

View File

@ -7,6 +7,7 @@ import * as ecSignatureParameterSchema from '../schemas/ec_signature_parameter_s
import * as ecSignatureSchema from '../schemas/ec_signature_schema.json';
import * as eip712DomainSchema from '../schemas/eip712_domain_schema.json';
import * as eip712TypedDataSchema from '../schemas/eip712_typed_data_schema.json';
import * as exchangeProxyMetaTransactionSchema from '../schemas/exchange_proxy_meta_transaction_schema.json';
import * as hexSchema from '../schemas/hex_schema.json';
import * as indexFilterValuesSchema from '../schemas/index_filter_values_schema.json';
import * as jsNumber from '../schemas/js_number_schema.json';
@ -87,5 +88,6 @@ export const schemas = {
relayerApiOrdersResponseSchema,
relayerApiAssetDataPairsSchema,
zeroExTransactionSchema,
exchangeProxyMetaTransactionSchema,
wholeNumberSchema,
};

View File

@ -50,6 +50,7 @@
"./schemas/orderbook_request_schema.json",
"./schemas/orders_request_opts_schema.json",
"./schemas/paged_request_opts_schema.json",
"./schemas/order_config_request_schema.json"
"./schemas/order_config_request_schema.json",
"./schemas/exchange_proxy_meta_transaction_schema.json"
]
}