Skip to content

Commit

Permalink
add sealEngine to jsonSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega committed Aug 28, 2018
1 parent 6ebd4f1 commit 3be71ec
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
23 changes: 21 additions & 2 deletions JSONSchema/bc-filler-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@
],
"type": "object"
},
"sealEngine": {
"$ref": "#/definitions/SealEngineType"
},
"Transaction": {
"additionalProperties": true,
"not": {
Expand All @@ -227,7 +230,7 @@
},
"properties": {
"data": {
"$ref": "#/definitions/HexDataOrEmpty"
"$ref": "#/definitions/TxData"
},
"gasLimit": {
"$ref": "#/definitions/IntegerOrEmptyOrConfusedHex"
Expand Down Expand Up @@ -258,6 +261,19 @@
],
"type": "object"
},
"TxData": {
"anyOf": [
{
"$ref": "#/definitions/HexData"
},
{
"$ref": "#/definitions/EmptyString"
},
{
"$ref": "#/definitions/LLLCode"
}
]
},
"TxSigR": {
"oneOf": [
{
Expand Down Expand Up @@ -318,7 +334,10 @@
"description": "prestate account address with 0x prefix"
}
}
}
},
"sealEngine": {
"$ref": "#/definitions/SealEngineType"
}
},
"required": [
"pre",
Expand Down
8 changes: 7 additions & 1 deletion JSONSchema/bc-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@
],
"type": "object"
},
"sealEngine": {
"$ref": "#/definitions/SealEngineType"
},
"Transaction": {
"additionalProperties": true,
"not": {
Expand Down Expand Up @@ -301,7 +304,10 @@
"description": "prestate account address with 0x prefix"
}
}
}
},
"sealEngine": {
"$ref": "#/definitions/SealEngineType"
}
},
"required": [
"postState",
Expand Down
12 changes: 12 additions & 0 deletions JSONSchema/definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,18 @@
}
]
},
"SealEngineType": {
"anyOf": [
{
"pattern": "NoProof",
"type": "string"
},
{
"pattern": "Ethash",
"type": "string"
}
]
},
"TransactionResults": {
"items": {
"additionalProperties": false,
Expand Down

0 comments on commit 3be71ec

Please sign in to comment.