diff options
Diffstat (limited to 'JSONSchema/definitions.json')
-rw-r--r-- | JSONSchema/definitions.json | 160 |
1 files changed, 128 insertions, 32 deletions
diff --git a/JSONSchema/definitions.json b/JSONSchema/definitions.json index 9c9ca3d44..98bbffa21 100644 --- a/JSONSchema/definitions.json +++ b/JSONSchema/definitions.json @@ -27,6 +27,38 @@ "pattern": "^$", "type": "string" }, + "ExpectCondition": { + "additionalProperties": false, + "properties": { + "//comment": { + "type": "string" + }, + "indexes": { + "additionalProperties": false, + "properties": { + "data": { + "$ref": "#/definitions/Indices" + }, + "gas": { + "$ref": "#/definitions/Indices" + }, + "value": { + "$ref": "#/definitions/Indices" + } + }, + "result": { + "$ref": "#/definitions/PostStateAccounts" + } + }, + "network": { + "$ref": "#/definitions/Networks" + }, + "result": { + "$ref": "#/definitions/AccountMap" + } + }, + "type": "object" + }, "HexData": { "description": "Hex data. see https://github.com/ethereum/wiki/wiki/JSON-RPC#hex-value-encoding", "pattern": "^0x([0-9a-fA-F][0-9a-fA-F])*$", @@ -79,6 +111,19 @@ "pattern": "(^0x0$)|(^0x[1-9a-fA-F][0-9a-fA-F]*$)", "type": "string" }, + "Indices": { + "anyOf": [ + { + "type": "array" + }, + { + "type": "string" + }, + { + "type": "number" + } + ] + }, "IntegerOrConfusedHex": { "anyOf": [ { @@ -129,6 +174,87 @@ } ] }, + "IntegerOrNumber": { + "oneOf": [ + { + "$ref": "#/definitions/IntegerString" + }, + { + "type": "number" + } + ] + }, + "IntegerOrNumberOrConfusedHex": { + "oneOf": [ + { + "$ref": "#/definitions/IntegerOrNumber" + }, + { + "$ref": "#/definitions/ConfusedHexType" + } + ] + }, + "IntegerString": { + "pattern": "^[0-9]+$", + "type": "string" + }, + "LLLCode": { + "pattern": "^.*$", + "type": "string" + }, + "Networks": { + "type": "array" + }, + "NonExistentPostStateAccount": { + "additionalproperties": true, + "properties": { + "shouldnotexist": { + "type": "boolean" + } + }, + "required": [ + "shouldnotexist" + ], + "type": "object" + }, + "PostStateAccounts": { + "additionalProperties": false, + "patternProperties": { + "^0x[0-9a-fA-F]{40}": { + "description": "filler prestate addresses with 0x prefix", + "oneOf": [ + { + "$ref": "#/definitions/PreStateAccount" + }, + { + "$ref": "#/definitions/NonExistentPostStateAccount" + } + ] + }, + "^[0-9a-fA-F]{40}": { + "description": "filler prestate addresses without 0x prefix", + "oneOf": [ + { + "$ref": "#/definitions/PreStateAccount" + }, + { + "$ref": "#/definitions/NonExistentPostStateAccount" + } + ] + } + }, + "type": "object" + }, + "PrefixedHexOrInteger": { + "anyOf": [ + { + "$ref": "#/definitions/IntegerString" + }, + { + "$ref": "#/definitions/HexData" + } + ] + }, "TransactionResults": { "items": { "additionalProperties": false, @@ -136,7 +262,6 @@ "hash": { "$ref": "#/definitions/HexData" }, - "logs": {}, "indexes": { "additionalProperties": false, "properties": { @@ -156,7 +281,8 @@ "value" ], "type": "object" - } + }, + "logs": {} }, "required": [ "hash", @@ -165,36 +291,6 @@ "type": "object" }, "type": "array" - }, - "PrefixedHexOrInteger": { - "anyOf": [ - { "$ref": "#/definitions/IntegerString" }, - { "$ref": "#/definitions/HexData" } - ] - }, - "IntegerOrNumber": { - "oneOf": [ - { - "$ref": "#/definitions/IntegerString" - }, - { - "type": "number" - } - ] - }, - "IntegerOrNumberOrConfusedHex": { - "oneOf": [ - { - "$ref": "#/definitions/IntegerOrNumber" - }, - { - "$ref": "#/definitions/ConfusedHexType" - } - ] - }, - "IntegerString": { - "pattern": "^[0-9]+$", - "type": "string" } } } |