Skip to content

Commit 3be71ec

Browse files
committed
add sealEngine to jsonSchema
1 parent 6ebd4f1 commit 3be71ec

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

JSONSchema/bc-filler-schema.json

+21-2
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@
218218
],
219219
"type": "object"
220220
},
221+
"sealEngine": {
222+
"$ref": "#/definitions/SealEngineType"
223+
},
221224
"Transaction": {
222225
"additionalProperties": true,
223226
"not": {
@@ -227,7 +230,7 @@
227230
},
228231
"properties": {
229232
"data": {
230-
"$ref": "#/definitions/HexDataOrEmpty"
233+
"$ref": "#/definitions/TxData"
231234
},
232235
"gasLimit": {
233236
"$ref": "#/definitions/IntegerOrEmptyOrConfusedHex"
@@ -258,6 +261,19 @@
258261
],
259262
"type": "object"
260263
},
264+
"TxData": {
265+
"anyOf": [
266+
{
267+
"$ref": "#/definitions/HexData"
268+
},
269+
{
270+
"$ref": "#/definitions/EmptyString"
271+
},
272+
{
273+
"$ref": "#/definitions/LLLCode"
274+
}
275+
]
276+
},
261277
"TxSigR": {
262278
"oneOf": [
263279
{
@@ -318,7 +334,10 @@
318334
"description": "prestate account address with 0x prefix"
319335
}
320336
}
321-
}
337+
},
338+
"sealEngine": {
339+
"$ref": "#/definitions/SealEngineType"
340+
}
322341
},
323342
"required": [
324343
"pre",

JSONSchema/bc-schema.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@
198198
],
199199
"type": "object"
200200
},
201+
"sealEngine": {
202+
"$ref": "#/definitions/SealEngineType"
203+
},
201204
"Transaction": {
202205
"additionalProperties": true,
203206
"not": {
@@ -301,7 +304,10 @@
301304
"description": "prestate account address with 0x prefix"
302305
}
303306
}
304-
}
307+
},
308+
"sealEngine": {
309+
"$ref": "#/definitions/SealEngineType"
310+
}
305311
},
306312
"required": [
307313
"postState",

JSONSchema/definitions.json

+12
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,18 @@
279279
}
280280
]
281281
},
282+
"SealEngineType": {
283+
"anyOf": [
284+
{
285+
"pattern": "NoProof",
286+
"type": "string"
287+
},
288+
{
289+
"pattern": "Ethash",
290+
"type": "string"
291+
}
292+
]
293+
},
282294
"TransactionResults": {
283295
"items": {
284296
"additionalProperties": false,

0 commit comments

Comments
 (0)