protocol/packages/json-schemas/schemas/call_data_schema.json
Lawrence Forman 11940fb98e @0x/json-schemas: Rename CallData.value -> CallData.balance and make it `wholeNumberSchema type.'
`@0x/web3-wrapper`: Only supply overrides to eth_call RPC if provided.
2020-07-01 20:43:33 -04:00

46 lines
1.3 KiB
JSON

{
"id": "/callDataSchema",
"properties": {
"from": { "$ref": "/addressSchema" },
"to": { "$ref": "/addressSchema" },
"value": {
"oneOf": [{ "$ref": "/numberSchema" }, { "$ref": "/jsNumberSchema" }]
},
"gas": {
"oneOf": [{ "$ref": "/numberSchema" }, { "$ref": "/jsNumberSchema" }]
},
"gasPrice": {
"oneOf": [{ "$ref": "/numberSchema" }, { "$ref": "/jsNumberSchema" }]
},
"data": {
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"nonce": {
"type": "number",
"minimum": 0
},
"overrides": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"code": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]*$"
},
"nonce": {
"oneOf": [{ "$ref": "/wholeNumberSchema" }]
},
"balance": {
"oneOf": [{ "$ref": "/wholeNumberSchema" }]
}
}
}
}
},
"required": [],
"type": "object",
"additionalProperties": false
}