@0x/json-schemas
Advanced tools
Comparing version 6.3.0 to 6.4.0
[ | ||
{ | ||
"version": "6.4.0", | ||
"changes": [ | ||
{ | ||
"note": "Add v4 OtcOrder Schema", | ||
"pr": 47 | ||
} | ||
], | ||
"timestamp": 1632331783 | ||
}, | ||
{ | ||
"version": "6.3.0", | ||
@@ -4,0 +14,0 @@ "changes": [ |
@@ -8,2 +8,6 @@ <!-- | ||
## v6.4.0 - _September 22, 2021_ | ||
* Add v4 OtcOrder Schema (#47) | ||
## v6.3.0 - _August 25, 2021_ | ||
@@ -10,0 +14,0 @@ |
export declare const schemas: { | ||
numberSchema: { | ||
addressSchema: { | ||
id: string; | ||
@@ -7,7 +7,36 @@ type: string; | ||
}; | ||
addressSchema: { | ||
assetPairsRequestOptsSchema: { | ||
id: string; | ||
type: string; | ||
pattern: string; | ||
properties: { | ||
assetDataA: { | ||
$ref: string; | ||
}; | ||
assetDataB: { | ||
$ref: string; | ||
}; | ||
}; | ||
}; | ||
blockParamSchema: { | ||
id: string; | ||
oneOf: ({ | ||
type: string; | ||
enum?: undefined; | ||
} | { | ||
enum: string[]; | ||
type?: undefined; | ||
})[]; | ||
}; | ||
blockRangeSchema: { | ||
id: string; | ||
properties: { | ||
fromBlock: { | ||
$ref: string; | ||
}; | ||
toBlock: { | ||
$ref: string; | ||
}; | ||
}; | ||
type: string; | ||
}; | ||
callDataSchema: { | ||
@@ -92,7 +121,2 @@ id: string; | ||
}; | ||
hexSchema: { | ||
id: string; | ||
type: string; | ||
pattern: string; | ||
}; | ||
ecSignatureParameterSchema: { | ||
@@ -180,2 +204,47 @@ id: string; | ||
}; | ||
exchangeProxyMetaTransactionSchema: { | ||
id: string; | ||
properties: { | ||
signer: { | ||
$ref: string; | ||
}; | ||
sender: { | ||
$ref: string; | ||
}; | ||
minGasPrice: { | ||
$ref: string; | ||
}; | ||
maxGasPrice: { | ||
$ref: string; | ||
}; | ||
expirationTimeSeconds: { | ||
$ref: string; | ||
}; | ||
salt: { | ||
$ref: string; | ||
}; | ||
callData: { | ||
$ref: string; | ||
}; | ||
value: { | ||
$ref: string; | ||
}; | ||
feeToken: { | ||
$ref: string; | ||
}; | ||
feeAmount: { | ||
$ref: string; | ||
}; | ||
domain: { | ||
$ref: string; | ||
}; | ||
}; | ||
required: string[]; | ||
type: string; | ||
}; | ||
hexSchema: { | ||
id: string; | ||
type: string; | ||
pattern: string; | ||
}; | ||
indexFilterValuesSchema: { | ||
@@ -190,2 +259,25 @@ id: string; | ||
}; | ||
jsNumber: { | ||
id: string; | ||
type: string; | ||
minimum: number; | ||
}; | ||
numberSchema: { | ||
id: string; | ||
type: string; | ||
pattern: string; | ||
}; | ||
orderBookRequestSchema: { | ||
id: string; | ||
type: string; | ||
properties: { | ||
baseAssetData: { | ||
$ref: string; | ||
}; | ||
quoteAssetData: { | ||
$ref: string; | ||
}; | ||
}; | ||
required: string[]; | ||
}; | ||
orderCancellationRequestsSchema: { | ||
@@ -207,2 +299,33 @@ id: string; | ||
}; | ||
orderConfigRequestSchema: { | ||
id: string; | ||
type: string; | ||
properties: { | ||
makerAddress: { | ||
$ref: string; | ||
}; | ||
takerAddress: { | ||
$ref: string; | ||
}; | ||
makerAssetAmount: { | ||
$ref: string; | ||
}; | ||
takerAssetAmount: { | ||
$ref: string; | ||
}; | ||
makerAssetData: { | ||
$ref: string; | ||
}; | ||
takerAssetData: { | ||
$ref: string; | ||
}; | ||
exchangeAddress: { | ||
$ref: string; | ||
}; | ||
expirationTimeSeconds: { | ||
$ref: string; | ||
}; | ||
}; | ||
required: string[]; | ||
}; | ||
orderFillOrKillRequestsSchema: { | ||
@@ -300,90 +423,2 @@ id: string; | ||
}; | ||
signedOrderSchema: { | ||
id: string; | ||
allOf: ({ | ||
$ref: string; | ||
properties?: undefined; | ||
required?: undefined; | ||
} | { | ||
properties: { | ||
signature: { | ||
$ref: string; | ||
}; | ||
}; | ||
required: string[]; | ||
$ref?: undefined; | ||
})[]; | ||
}; | ||
signedOrdersSchema: { | ||
id: string; | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
}; | ||
ordersSchema: { | ||
id: string; | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
}; | ||
blockParamSchema: { | ||
id: string; | ||
oneOf: ({ | ||
type: string; | ||
enum?: undefined; | ||
} | { | ||
enum: string[]; | ||
type?: undefined; | ||
})[]; | ||
}; | ||
blockRangeSchema: { | ||
id: string; | ||
properties: { | ||
fromBlock: { | ||
$ref: string; | ||
}; | ||
toBlock: { | ||
$ref: string; | ||
}; | ||
}; | ||
type: string; | ||
}; | ||
tokenSchema: { | ||
id: string; | ||
properties: { | ||
name: { | ||
type: string; | ||
}; | ||
symbol: { | ||
type: string; | ||
}; | ||
decimals: { | ||
type: string; | ||
}; | ||
address: { | ||
$ref: string; | ||
}; | ||
}; | ||
required: string[]; | ||
type: string; | ||
}; | ||
jsNumber: { | ||
id: string; | ||
type: string; | ||
minimum: number; | ||
}; | ||
pagedRequestOptsSchema: { | ||
id: string; | ||
type: string; | ||
properties: { | ||
page: { | ||
type: string; | ||
}; | ||
perPage: { | ||
type: string; | ||
}; | ||
}; | ||
}; | ||
ordersRequestOptsSchema: { | ||
@@ -443,57 +478,78 @@ id: string; | ||
}; | ||
orderBookRequestSchema: { | ||
ordersSchema: { | ||
id: string; | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
}; | ||
pagedRequestOptsSchema: { | ||
id: string; | ||
type: string; | ||
properties: { | ||
baseAssetData: { | ||
$ref: string; | ||
page: { | ||
type: string; | ||
}; | ||
quoteAssetData: { | ||
$ref: string; | ||
perPage: { | ||
type: string; | ||
}; | ||
}; | ||
required: string[]; | ||
}; | ||
orderConfigRequestSchema: { | ||
paginatedCollectionSchema: { | ||
id: string; | ||
type: string; | ||
properties: { | ||
makerAddress: { | ||
$ref: string; | ||
total: { | ||
type: string; | ||
}; | ||
takerAddress: { | ||
$ref: string; | ||
perPage: { | ||
type: string; | ||
}; | ||
makerAssetAmount: { | ||
$ref: string; | ||
page: { | ||
type: string; | ||
}; | ||
takerAssetAmount: { | ||
$ref: string; | ||
}; | ||
makerAssetData: { | ||
$ref: string; | ||
}; | ||
takerAssetData: { | ||
$ref: string; | ||
}; | ||
exchangeAddress: { | ||
$ref: string; | ||
}; | ||
expirationTimeSeconds: { | ||
$ref: string; | ||
}; | ||
}; | ||
required: string[]; | ||
}; | ||
assetPairsRequestOptsSchema: { | ||
signedOrderSchema: { | ||
id: string; | ||
allOf: ({ | ||
$ref: string; | ||
properties?: undefined; | ||
required?: undefined; | ||
} | { | ||
properties: { | ||
signature: { | ||
$ref: string; | ||
}; | ||
}; | ||
required: string[]; | ||
$ref?: undefined; | ||
})[]; | ||
}; | ||
signedOrdersSchema: { | ||
id: string; | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
}; | ||
tokenSchema: { | ||
id: string; | ||
properties: { | ||
assetDataA: { | ||
$ref: string; | ||
name: { | ||
type: string; | ||
}; | ||
assetDataB: { | ||
symbol: { | ||
type: string; | ||
}; | ||
decimals: { | ||
type: string; | ||
}; | ||
address: { | ||
$ref: string; | ||
}; | ||
}; | ||
required: string[]; | ||
type: string; | ||
}; | ||
@@ -556,37 +612,33 @@ txDataSchema: { | ||
}; | ||
paginatedCollectionSchema: { | ||
v4OtcOrderSchema: { | ||
id: string; | ||
type: string; | ||
properties: { | ||
total: { | ||
type: string; | ||
maker: { | ||
$ref: string; | ||
}; | ||
perPage: { | ||
type: string; | ||
taker: { | ||
$ref: string; | ||
}; | ||
page: { | ||
type: string; | ||
txOrigin: { | ||
$ref: string; | ||
}; | ||
}; | ||
required: string[]; | ||
}; | ||
zeroExTransactionSchema: { | ||
id: string; | ||
properties: { | ||
data: { | ||
makerAmount: { | ||
$ref: string; | ||
}; | ||
signerAddress: { | ||
takerAmount: { | ||
$ref: string; | ||
}; | ||
salt: { | ||
makerToken: { | ||
$ref: string; | ||
}; | ||
expirationTimeSeconds: { | ||
takerToken: { | ||
$ref: string; | ||
}; | ||
gasPrice: { | ||
expiryAndNonce: { | ||
$ref: string; | ||
}; | ||
domain: { | ||
chainId: { | ||
type: string; | ||
}; | ||
verifyingContract: { | ||
$ref: string; | ||
@@ -598,36 +650,39 @@ }; | ||
}; | ||
exchangeProxyMetaTransactionSchema: { | ||
v4RfqOrderSchema: { | ||
id: string; | ||
properties: { | ||
signer: { | ||
maker: { | ||
$ref: string; | ||
}; | ||
sender: { | ||
taker: { | ||
$ref: string; | ||
}; | ||
minGasPrice: { | ||
txOrigin: { | ||
$ref: string; | ||
}; | ||
maxGasPrice: { | ||
makerAmount: { | ||
$ref: string; | ||
}; | ||
expirationTimeSeconds: { | ||
takerAmount: { | ||
$ref: string; | ||
}; | ||
salt: { | ||
makerToken: { | ||
$ref: string; | ||
}; | ||
callData: { | ||
takerToken: { | ||
$ref: string; | ||
}; | ||
value: { | ||
salt: { | ||
$ref: string; | ||
}; | ||
feeToken: { | ||
expiry: { | ||
$ref: string; | ||
}; | ||
feeAmount: { | ||
chainId: { | ||
type: string; | ||
}; | ||
verifyingContract: { | ||
$ref: string; | ||
}; | ||
domain: { | ||
pool: { | ||
$ref: string; | ||
@@ -639,10 +694,16 @@ }; | ||
}; | ||
wholeNumberSchema: { | ||
v4RfqSignedOrderSchema: { | ||
id: string; | ||
anyOf: ({ | ||
type: string; | ||
pattern: string; | ||
allOf: ({ | ||
$ref: string; | ||
properties?: undefined; | ||
required?: undefined; | ||
} | { | ||
type: string; | ||
pattern?: undefined; | ||
properties: { | ||
signature: { | ||
$ref: string; | ||
}; | ||
}; | ||
required: string[]; | ||
$ref?: undefined; | ||
})[]; | ||
@@ -669,39 +730,31 @@ }; | ||
}; | ||
v4RfqOrderSchema: { | ||
wholeNumberSchema: { | ||
id: string; | ||
anyOf: ({ | ||
type: string; | ||
pattern: string; | ||
} | { | ||
type: string; | ||
pattern?: undefined; | ||
})[]; | ||
}; | ||
zeroExTransactionSchema: { | ||
id: string; | ||
properties: { | ||
maker: { | ||
data: { | ||
$ref: string; | ||
}; | ||
taker: { | ||
signerAddress: { | ||
$ref: string; | ||
}; | ||
txOrigin: { | ||
$ref: string; | ||
}; | ||
makerAmount: { | ||
$ref: string; | ||
}; | ||
takerAmount: { | ||
$ref: string; | ||
}; | ||
makerToken: { | ||
$ref: string; | ||
}; | ||
takerToken: { | ||
$ref: string; | ||
}; | ||
salt: { | ||
$ref: string; | ||
}; | ||
expiry: { | ||
expirationTimeSeconds: { | ||
$ref: string; | ||
}; | ||
chainId: { | ||
type: string; | ||
}; | ||
verifyingContract: { | ||
gasPrice: { | ||
$ref: string; | ||
}; | ||
pool: { | ||
domain: { | ||
$ref: string; | ||
@@ -713,19 +766,3 @@ }; | ||
}; | ||
v4RfqSignedOrderSchema: { | ||
id: string; | ||
allOf: ({ | ||
$ref: string; | ||
properties?: undefined; | ||
required?: undefined; | ||
} | { | ||
properties: { | ||
signature: { | ||
$ref: string; | ||
}; | ||
}; | ||
required: string[]; | ||
$ref?: undefined; | ||
})[]; | ||
}; | ||
}; | ||
//# sourceMappingURL=schemas.d.ts.map |
@@ -33,2 +33,3 @@ "use strict"; | ||
const txDataSchema = require("../schemas/tx_data_schema.json"); | ||
const v4OtcOrderSchema = require("../schemas/v4_otc_order_schema.json"); | ||
const v4RfqOrderSchema = require("../schemas/v4_rfq_order_schema.json"); | ||
@@ -40,6 +41,7 @@ const v4RfqSignedOrderSchema = require("../schemas/v4_rfq_signed_order_schema.json"); | ||
exports.schemas = { | ||
numberSchema, | ||
addressSchema, | ||
assetPairsRequestOptsSchema, | ||
blockParamSchema, | ||
blockRangeSchema, | ||
callDataSchema, | ||
hexSchema, | ||
ecSignatureParameterSchema, | ||
@@ -49,4 +51,10 @@ ecSignatureSchema, | ||
eip712TypedDataSchema, | ||
exchangeProxyMetaTransactionSchema, | ||
hexSchema, | ||
indexFilterValuesSchema, | ||
jsNumber, | ||
numberSchema, | ||
orderBookRequestSchema, | ||
orderCancellationRequestsSchema, | ||
orderConfigRequestSchema, | ||
orderFillOrKillRequestsSchema, | ||
@@ -56,23 +64,17 @@ orderFillRequestsSchema, | ||
orderSchema, | ||
ordersRequestOptsSchema, | ||
ordersSchema, | ||
pagedRequestOptsSchema, | ||
paginatedCollectionSchema, | ||
signedOrderSchema, | ||
signedOrdersSchema, | ||
ordersSchema, | ||
blockParamSchema, | ||
blockRangeSchema, | ||
tokenSchema, | ||
jsNumber, | ||
pagedRequestOptsSchema, | ||
ordersRequestOptsSchema, | ||
orderBookRequestSchema, | ||
orderConfigRequestSchema, | ||
assetPairsRequestOptsSchema, | ||
txDataSchema, | ||
paginatedCollectionSchema, | ||
zeroExTransactionSchema, | ||
exchangeProxyMetaTransactionSchema, | ||
wholeNumberSchema, | ||
v4SignatureSchema, | ||
v4OtcOrderSchema, | ||
v4RfqOrderSchema, | ||
v4RfqSignedOrderSchema, | ||
v4SignatureSchema, | ||
wholeNumberSchema, | ||
zeroExTransactionSchema, | ||
}; | ||
//# sourceMappingURL=schemas.js.map |
{ | ||
"name": "@0x/json-schemas", | ||
"version": "6.3.0", | ||
"version": "6.4.0", | ||
"engines": { | ||
@@ -73,3 +73,3 @@ "node": ">=6.12" | ||
}, | ||
"gitHead": "b3f4c9ee35562003a4518e9a90492f28e5028b20" | ||
"gitHead": "f52d0783fd907918acd5756d89977948ac3d9c6a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
79587
52
2508