@0x/json-schemas
Advanced tools
Comparing version 4.0.2 to 4.1.0-beta.0
[ | ||
{ | ||
"version": "4.1.0-beta.0", | ||
"changes": [ | ||
{ | ||
"note": "Add `eip712DomainSchema` schema", | ||
"pr": 1742 | ||
}, | ||
{ | ||
"note": "Add required field `domain` to `order` and `zeroExTransaction` schemas", | ||
"pr": 1742 | ||
}, | ||
{ | ||
"note": "Add `makerAssetData` and `takerAssetData` to `Order` schemas", | ||
"pr": 1819 | ||
}, | ||
{ | ||
"note": "Add `expirationTimeSeconds` to `ZeroExTransaction` schema", | ||
"pr": 1832 | ||
} | ||
], | ||
"timestamp": 1570135330 | ||
}, | ||
{ | ||
"timestamp": 1568744790, | ||
@@ -4,0 +26,0 @@ "version": "4.0.2", |
@@ -8,2 +8,9 @@ <!-- | ||
## v4.1.0-beta.0 - _October 3, 2019_ | ||
* Add `eip712DomainSchema` schema (#1742) | ||
* Add required field `domain` to `order` and `zeroExTransaction` schemas (#1742) | ||
* Add `makerAssetData` and `takerAssetData` to `Order` schemas (#1819) | ||
* Add `expirationTimeSeconds` to `ZeroExTransaction` schema (#1832) | ||
## v4.0.2 - _September 17, 2019_ | ||
@@ -10,0 +17,0 @@ |
@@ -24,3 +24,3 @@ { | ||
"primaryType": { "type": "string" }, | ||
"domain": { "type": "object" }, | ||
"domain": { "$ref": "/eip712DomainSchema" }, | ||
"message": { "type": "object" } | ||
@@ -27,0 +27,0 @@ }, |
{ | ||
"id": "/orderSchema", | ||
"properties": { | ||
"makerAddress": { "$ref": "/addressSchema" }, | ||
"takerAddress": { "$ref": "/addressSchema" }, | ||
"makerFee": { "$ref": "/wholeNumberSchema" }, | ||
"takerFee": { "$ref": "/wholeNumberSchema" }, | ||
"senderAddress": { "$ref": "/addressSchema" }, | ||
"makerAssetAmount": { "$ref": "/wholeNumberSchema" }, | ||
"takerAssetAmount": { "$ref": "/wholeNumberSchema" }, | ||
"makerAssetData": { "$ref": "/hexSchema" }, | ||
"takerAssetData": { "$ref": "/hexSchema" }, | ||
"salt": { "$ref": "/wholeNumberSchema" }, | ||
"exchangeAddress": { "$ref": "/addressSchema" }, | ||
"feeRecipientAddress": { "$ref": "/addressSchema" }, | ||
"expirationTimeSeconds": { "$ref": "/wholeNumberSchema" } | ||
"makerAddress": { | ||
"$ref": "/addressSchema" | ||
}, | ||
"takerAddress": { | ||
"$ref": "/addressSchema" | ||
}, | ||
"makerFee": { | ||
"$ref": "/wholeNumberSchema" | ||
}, | ||
"takerFee": { | ||
"$ref": "/wholeNumberSchema" | ||
}, | ||
"senderAddress": { | ||
"$ref": "/addressSchema" | ||
}, | ||
"makerAssetAmount": { | ||
"$ref": "/wholeNumberSchema" | ||
}, | ||
"takerAssetAmount": { | ||
"$ref": "/wholeNumberSchema" | ||
}, | ||
"makerAssetData": { | ||
"$ref": "/hexSchema" | ||
}, | ||
"takerAssetData": { | ||
"$ref": "/hexSchema" | ||
}, | ||
"makerFeeAssetData": { | ||
"$ref": "/hexSchema" | ||
}, | ||
"takerFeeAssetData": { | ||
"$ref": "/hexSchema" | ||
}, | ||
"salt": { | ||
"$ref": "/wholeNumberSchema" | ||
}, | ||
"feeRecipientAddress": { | ||
"$ref": "/addressSchema" | ||
}, | ||
"expirationTimeSeconds": { | ||
"$ref": "/wholeNumberSchema" | ||
}, | ||
"chainId": { | ||
"type": "number" | ||
}, | ||
"exchangeAddress": { | ||
"$ref": "/addressSchema" | ||
} | ||
}, | ||
@@ -28,8 +63,11 @@ "required": [ | ||
"takerAssetData", | ||
"makerFeeAssetData", | ||
"takerFeeAssetData", | ||
"salt", | ||
"exchangeAddress", | ||
"feeRecipientAddress", | ||
"expirationTimeSeconds" | ||
"expirationTimeSeconds", | ||
"chainId", | ||
"exchangeAddress" | ||
], | ||
"type": "object" | ||
} |
@@ -5,16 +5,48 @@ { | ||
"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" | ||
} | ||
} | ||
} |
@@ -5,8 +5,29 @@ { | ||
"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" | ||
] | ||
} |
{ | ||
"id": "/relayerApiOrdersSchema", | ||
"type": "array", | ||
"items": { "$ref": "/relayerApiOrderSchema" } | ||
"items": { | ||
"$ref": "/relayerApiOrderSchema" | ||
} | ||
} |
{ | ||
"id": "/zeroExTransactionSchema", | ||
"properties": { | ||
"verifyingContractAddress": { "$ref": "/addressSchema" }, | ||
"data": { "$ref": "/hexSchema" }, | ||
"signerAddress": { "$ref": "/addressSchema" }, | ||
"salt": { "$ref": "/wholeNumberSchema" } | ||
"salt": { "$ref": "/wholeNumberSchema" }, | ||
"expirationTimeSeconds": { "$ref": "/wholeNumberSchema" }, | ||
"gasPrice": { "$ref": "/wholeNumberSchema" }, | ||
"domain": { "$ref": "/eip712DomainSchema" } | ||
}, | ||
"required": ["verifyingContractAddress", "data", "salt", "signerAddress"], | ||
"required": ["data", "salt", "expirationTimeSeconds", "gasPrice", "signerAddress", "domain"], | ||
"type": "object" | ||
} |
@@ -77,2 +77,21 @@ export declare const schemas: { | ||
}; | ||
eip712DomainSchema: { | ||
"id": string; | ||
"properties": { | ||
"name": { | ||
"type": string; | ||
}; | ||
"version": { | ||
"type": string; | ||
}; | ||
"chainId": { | ||
"type": string; | ||
}; | ||
"verifyingContract": { | ||
"$ref": string; | ||
}; | ||
}; | ||
"required": string[]; | ||
"type": string; | ||
}; | ||
eip712TypedDataSchema: { | ||
@@ -110,3 +129,3 @@ "id": string; | ||
"domain": { | ||
"type": string; | ||
"$ref": string; | ||
}; | ||
@@ -211,8 +230,11 @@ "message": { | ||
}; | ||
"salt": { | ||
"makerFeeAssetData": { | ||
"$ref": string; | ||
}; | ||
"exchangeAddress": { | ||
"takerFeeAssetData": { | ||
"$ref": string; | ||
}; | ||
"salt": { | ||
"$ref": string; | ||
}; | ||
"feeRecipientAddress": { | ||
@@ -224,2 +246,8 @@ "$ref": string; | ||
}; | ||
"chainId": { | ||
"type": string; | ||
}; | ||
"exchangeAddress": { | ||
"$ref": string; | ||
}; | ||
}; | ||
@@ -357,2 +385,8 @@ "required": string[]; | ||
}; | ||
"makerFeeAssetData": { | ||
"$ref": string; | ||
}; | ||
"takerFeeAssetData": { | ||
"$ref": string; | ||
}; | ||
"makerAddress": { | ||
@@ -602,2 +636,8 @@ "$ref": string; | ||
}; | ||
"makerFeeAssetData": { | ||
"$ref": string; | ||
}; | ||
"takerFeeAssetData": { | ||
"$ref": string; | ||
}; | ||
}; | ||
@@ -759,5 +799,2 @@ "required": string[]; | ||
"properties": { | ||
"verifyingContractAddress": { | ||
"$ref": string; | ||
}; | ||
"data": { | ||
@@ -772,2 +809,11 @@ "$ref": string; | ||
}; | ||
"expirationTimeSeconds": { | ||
"$ref": string; | ||
}; | ||
"gasPrice": { | ||
"$ref": string; | ||
}; | ||
"domain": { | ||
"$ref": string; | ||
}; | ||
}; | ||
@@ -774,0 +820,0 @@ "required": string[]; |
@@ -10,2 +10,3 @@ "use strict"; | ||
var ecSignatureSchema = require("../schemas/ec_signature_schema.json"); | ||
var eip712DomainSchema = require("../schemas/eip712_domain_schema.json"); | ||
var eip712TypedDataSchema = require("../schemas/eip712_typed_data_schema.json"); | ||
@@ -55,2 +56,3 @@ var hexSchema = require("../schemas/hex_schema.json"); | ||
ecSignatureSchema: ecSignatureSchema, | ||
eip712DomainSchema: eip712DomainSchema, | ||
eip712TypedDataSchema: eip712TypedDataSchema, | ||
@@ -57,0 +59,0 @@ indexFilterValuesSchema: indexFilterValuesSchema, |
{ | ||
"name": "@0x/json-schemas", | ||
"version": "4.0.2", | ||
"version": "4.1.0-beta.0", | ||
"engines": { | ||
@@ -46,3 +46,3 @@ "node": ">=6.12" | ||
"dependencies": { | ||
"@0x/typescript-typings": "^4.3.0", | ||
"@0x/typescript-typings": "^4.4.0-beta.0", | ||
"@types/node": "*", | ||
@@ -55,3 +55,3 @@ "jsonschema": "^1.2.0", | ||
"@0x/tslint-config": "^3.0.1", | ||
"@0x/utils": "^4.5.2", | ||
"@0x/utils": "^4.6.0-beta.0", | ||
"@types/lodash.foreach": "^4.5.3", | ||
@@ -75,3 +75,3 @@ "@types/lodash.values": "^4.3.3", | ||
}, | ||
"gitHead": "ec92cea5982375fa2fa7ba8445b5e8af589b75bd" | ||
"gitHead": "c60d1e50c53f4763f7c5ac99f8d3c7860c15a2b7" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
75685
62
2266
2
+ Added@0x/typescript-typings@4.4.0-beta.2(transitive)
+ Addedbignumber.js@9.0.2(transitive)
+ Addedethereum-types@2.2.0-beta.2(transitive)
- Removed@0x/typescript-typings@4.3.0(transitive)
- Removedbignumber.js@8.0.2(transitive)
- Removedethereum-types@2.1.6(transitive)