diff options
Diffstat (limited to 'JSONSchema/bc-schema.json')
-rw-r--r-- | JSONSchema/bc-schema.json | 586 |
1 files changed, 293 insertions, 293 deletions
diff --git a/JSONSchema/bc-schema.json b/JSONSchema/bc-schema.json index b40f14219..3df6ffdf2 100644 --- a/JSONSchema/bc-schema.json +++ b/JSONSchema/bc-schema.json @@ -1,301 +1,301 @@ { - "definitions": { - "Block": { - "type": "object", - "properties": { - "blockHeader": { - "$ref": "#/definitions/BlockHeader" - }, - "rlp": { - "$ref": "#/definitions/HexData" - }, - "transactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Transaction" - } - }, - "uncleHeaders": { - "type": "array" - }, - "expectExceptionHomestead": { - "type": "string" - }, - "expectExceptionFrontier": { - "type": "string" - }, - "expectExceptionEIP158": { - "type": "string" - }, - "expectExceptionEIP150": { - "type": "string" - }, - "expectExceptionALL": { - "type": "string" - }, - "expectExceptionByzantium": { - "type": "string" - }, - "expectExceptionConstantinople": { - "type": "string" - }, - "blocknumber": { - "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" - }, - "chainname": { - "type": "string" - }, - "chainnetwork": { - "type": "string" - }, - "comment": { - "type": "string" - } - }, - "additionalProperties": false - }, - "BlockHeader": { - "properties": { - "bloom": { - "$ref": "#/definitions/HexData" - }, - "coinbase": { - "$ref": "#/definitions/AddressMaybePrefixOrEmpty" - }, - "difficulty": { - "$ref": "#/definitions/ConfusedHexType" - }, - "extraData": { - "$ref": "#/definitions/HexMaybePrefixOrEmpty" - }, - "gasLimit": { - "$ref": "#/definitions/ConfusedHexType" - }, - "gasUsed": { - "$ref": "#/definitions/ConfusedHexType" - }, - "hash": { - "$ref": "#/definitions/ConfusedHexType" - }, - "mixHash": { - "$ref": "#/definitions/ConfusedHexType" - }, - "nonce": { - "$ref": "#/definitions/ConfusedHexType" - }, - "number": { - "$ref": "#/definitions/ConfusedHexType" - }, - "parentHash": { - "$ref": "#/definitions/ConfusedHexType" - }, - "receiptTrie": { - "$ref": "#/definitions/ConfusedHexType" - }, - "stateRoot": { - "$ref": "#/definitions/ConfusedHexType" - }, - "timestamp": { - "$ref": "#/definitions/ConfusedHexType" - }, - "transactionsTrie": { - "$ref": "#/definitions/ConfusedHexType" - }, - "uncleHash": { - "$ref": "#/definitions/ConfusedHexType" - } - } - }, - "PreStateAccount": { - "type": "object", - "additionalproperties": true, - "properties": { - "balance": { - "$ref": "#/definitions/ConfusedHexType" - }, - "code": { - "$ref": "#/definitions/HexMaybePrefixOrEmpty" - }, - "nonce": { - "$ref": "#/definitions/ConfusedHexType" - }, - "storage": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^0x[0-9a-f]+": { - "description": "storage key with 0x. data is HexData", - "$ref": "#/definitions/HexData" + "definitions": { + "Block": { + "additionalProperties": false, + "properties": { + "blockHeader": { + "$ref": "#/definitions/BlockHeader" + }, + "blocknumber": { + "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" + }, + "chainname": { + "type": "string" + }, + "chainnetwork": { + "type": "string" + }, + "comment": { + "type": "string" + }, + "expectExceptionALL": { + "type": "string" + }, + "expectExceptionByzantium": { + "type": "string" + }, + "expectExceptionConstantinople": { + "type": "string" + }, + "expectExceptionEIP150": { + "type": "string" + }, + "expectExceptionEIP158": { + "type": "string" + }, + "expectExceptionFrontier": { + "type": "string" + }, + "expectExceptionHomestead": { + "type": "string" + }, + "rlp": { + "$ref": "#/definitions/HexData" + }, + "transactions": { + "items": { + "$ref": "#/definitions/Transaction" + }, + "type": "array" + }, + "uncleHeaders": { + "type": "array" + } + }, + "type": "object" + }, + "BlockHeader": { + "properties": { + "bloom": { + "$ref": "#/definitions/HexData" + }, + "coinbase": { + "$ref": "#/definitions/AddressMaybePrefixOrEmpty" + }, + "difficulty": { + "$ref": "#/definitions/ConfusedHexType" + }, + "extraData": { + "$ref": "#/definitions/HexMaybePrefixOrEmpty" + }, + "gasLimit": { + "$ref": "#/definitions/ConfusedHexType" + }, + "gasUsed": { + "$ref": "#/definitions/ConfusedHexType" + }, + "hash": { + "$ref": "#/definitions/ConfusedHexType" + }, + "mixHash": { + "$ref": "#/definitions/ConfusedHexType" + }, + "nonce": { + "$ref": "#/definitions/ConfusedHexType" + }, + "number": { + "$ref": "#/definitions/ConfusedHexType" + }, + "parentHash": { + "$ref": "#/definitions/ConfusedHexType" + }, + "receiptTrie": { + "$ref": "#/definitions/ConfusedHexType" + }, + "stateRoot": { + "$ref": "#/definitions/ConfusedHexType" + }, + "timestamp": { + "$ref": "#/definitions/ConfusedHexType" + }, + "transactionsTrie": { + "$ref": "#/definitions/ConfusedHexType" + }, + "uncleHash": { + "$ref": "#/definitions/ConfusedHexType" + } } - } - } - }, - "required": [ - "balance", - "code", - "nonce" - ] - }, - "TxSigR": { - "oneOf": [ - { - "enum": [ - "0x00" - ] - } - ] - }, - "TxSigS": { - "oneOf": [ - { - "enum": [ - "0x00" - ] - } - ] - }, - "TxSigV": { - "description": "a value of 0 is an invalid chainId, but used in a test case", - "oneOf": [ - { - "enum": [ - "0x00", - "0x01" - ] - } - ] - }, - "Transaction": { - "type": "object", - "additionalProperties": true, - "not": { - "required": [ - "r, s, v" - ] - }, - "properties": { - "data": { - "$ref": "#/definitions/HexDataOrEmpty" - }, - "gasLimit": { - "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" - }, - "gasPrice": { - "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" - }, - "nonce": { - "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" }, - "secretKey": { - "$ref": "#/definitions/HexMaybePrefix" - }, - "to": { - "$ref": "#/definitions/AddressMaybePrefixOrEmpty" - }, - "value": { - "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" + "NullSenderTransaction": { + "additionalProperties": true, + "not": { + "required": [ + "secretKey" + ] + }, + "properties": { + "data": { + "items": { + "$ref": "#/definitions/HexMaybePrefixOrEmpty" + }, + "type": "array" + }, + "gasLimit": { + "items": { + "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" + }, + "type": "array" + }, + "gasPrice": { + "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" + }, + "nonce": { + "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" + }, + "r": { + "$ref": "#/definitions/TxSigR" + }, + "s": { + "$ref": "#/definitions/TxSigS" + }, + "to": { + "$ref": "#/definitions/AddressMaybePrefixOrEmpty" + }, + "v": { + "$ref": "#/definitions/TxSigV" + }, + "value": { + "items": { + "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" + }, + "type": "array" + } + }, + "required": [ + "data", + "gasLimit", + "gasPrice", + "nonce", + "r", + "s", + "v", + "to", + "value" + ], + "type": "object" + }, + "PreStateAccount": { + "additionalproperties": true, + "properties": { + "balance": { + "$ref": "#/definitions/ConfusedHexType" + }, + "code": { + "$ref": "#/definitions/HexMaybePrefixOrEmpty" + }, + "nonce": { + "$ref": "#/definitions/ConfusedHexType" + }, + "storage": { + "additionalProperties": false, + "patternProperties": { + "^0x[0-9a-f]+": { + "$ref": "#/definitions/HexData", + "description": "storage key with 0x. data is HexData" + } + }, + "type": "object" + } + }, + "required": [ + "balance", + "code", + "nonce" + ], + "type": "object" + }, + "Transaction": { + "additionalProperties": true, + "not": { + "required": [ + "r, s, v" + ] + }, + "properties": { + "data": { + "$ref": "#/definitions/HexDataOrEmpty" + }, + "gasLimit": { + "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" + }, + "gasPrice": { + "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" + }, + "nonce": { + "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" + }, + "secretKey": { + "$ref": "#/definitions/HexMaybePrefix" + }, + "to": { + "$ref": "#/definitions/AddressMaybePrefixOrEmpty" + }, + "value": { + "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" + } + }, + "required": [ + "data", + "gasLimit", + "gasPrice", + "nonce", + "to", + "value" + ], + "type": "object" + }, + "TxSigR": { + "oneOf": [ + { + "enum": [ + "0x00" + ] + } + ] + }, + "TxSigS": { + "oneOf": [ + { + "enum": [ + "0x00" + ] + } + ] + }, + "TxSigV": { + "description": "a value of 0 is an invalid chainId, but used in a test case", + "oneOf": [ + { + "enum": [ + "0x00", + "0x01" + ] + } + ] } - }, - "required": [ - "data", - "gasLimit", - "gasPrice", - "nonce", - "to", - "value" - ] }, - "NullSenderTransaction": { - "type": "object", - "additionalProperties": true, - "not": { + "patternProperties": { + "^.*$": { + "postState": { + "$ref": "#/definitions/TransactionResults" + }, + "pre": { + "$ref": "#/definitions/TransactionResults" + }, + "properties": { + "blocks": { + "items": { + "$ref": "#/definitions/Block" + }, + "type": "array" + }, + "genesisBlockHeader": { + "$ref": "#/definitions/BlockHeader" + }, + "genesisRLP": { + "$ref": "#/definitions/ConfusedHexType" + } + }, + "type": "object" + }, "required": [ - "secretKey" + "postState", + "pre", + "network", + "lastblockhash", + "blocks", + "genesisRLP", + "genesisBlockHeader" ] - }, - "properties": { - "data": { - "items": { - "$ref": "#/definitions/HexMaybePrefixOrEmpty" - }, - "type": "array" - }, - "gasLimit": { - "items": { - "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" - }, - "type": "array" - }, - "gasPrice": { - "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" - }, - "nonce": { - "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" - }, - "r": { - "$ref": "#/definitions/TxSigR" - }, - "s": { - "$ref": "#/definitions/TxSigS" - }, - "to": { - "$ref": "#/definitions/AddressMaybePrefixOrEmpty" - }, - "v": { - "$ref": "#/definitions/TxSigV" - }, - "value": { - "items": { - "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex" - }, - "type": "array" - } - }, - "required": [ - "data", - "gasLimit", - "gasPrice", - "nonce", - "r", - "s", - "v", - "to", - "value" - ] } - }, - "patternProperties": { - "^.*$": { - "type": "object", - "properties": { - "genesisBlockHeader": { - "$ref": "#/definitions/BlockHeader" - }, - "genesisRLP": { - "$ref": "#/definitions/ConfusedHexType" - }, - "blocks": { - "type": "array", - "items": { - "$ref": "#/definitions/Block" - } - } - }, - "postState": { - "$ref": "#/definitions/TransactionResults" - }, - "pre": { - "$ref": "#/definitions/TransactionResults" - } - }, - "required": [ - "postState", - "pre", - "network", - "lastblockhash", - "blocks", - "genesisRLP", - "genesisBlockHeader" - ] - } -} +}
\ No newline at end of file |