aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2018-08-27 20:27:28 +0800
committerDimitry <dimitry@ethereum.org>2018-08-28 18:17:59 +0800
commit3be71ec3364a01fd4f2cb9b9fd086f3f69f0225c (patch)
treea6f68542511984af83bf57783a7fc99d9eff57d5
parent6ebd4f17753ad633a7aeec98dc3f8fb2d629571a (diff)
downloadtangerine-tests-3be71ec3364a01fd4f2cb9b9fd086f3f69f0225c.tar
tangerine-tests-3be71ec3364a01fd4f2cb9b9fd086f3f69f0225c.tar.gz
tangerine-tests-3be71ec3364a01fd4f2cb9b9fd086f3f69f0225c.tar.bz2
tangerine-tests-3be71ec3364a01fd4f2cb9b9fd086f3f69f0225c.tar.lz
tangerine-tests-3be71ec3364a01fd4f2cb9b9fd086f3f69f0225c.tar.xz
tangerine-tests-3be71ec3364a01fd4f2cb9b9fd086f3f69f0225c.tar.zst
tangerine-tests-3be71ec3364a01fd4f2cb9b9fd086f3f69f0225c.zip
add sealEngine to jsonSchema
-rw-r--r--JSONSchema/bc-filler-schema.json23
-rw-r--r--JSONSchema/bc-schema.json8
-rw-r--r--JSONSchema/definitions.json12
3 files changed, 40 insertions, 3 deletions
diff --git a/JSONSchema/bc-filler-schema.json b/JSONSchema/bc-filler-schema.json
index 2f9ecfbb5..a5306c5c3 100644
--- a/JSONSchema/bc-filler-schema.json
+++ b/JSONSchema/bc-filler-schema.json
@@ -218,6 +218,9 @@
],
"type": "object"
},
+ "sealEngine": {
+ "$ref": "#/definitions/SealEngineType"
+ },
"Transaction": {
"additionalProperties": true,
"not": {
@@ -227,7 +230,7 @@
},
"properties": {
"data": {
- "$ref": "#/definitions/HexDataOrEmpty"
+ "$ref": "#/definitions/TxData"
},
"gasLimit": {
"$ref": "#/definitions/IntegerOrEmptyOrConfusedHex"
@@ -258,6 +261,19 @@
],
"type": "object"
},
+ "TxData": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/HexData"
+ },
+ {
+ "$ref": "#/definitions/EmptyString"
+ },
+ {
+ "$ref": "#/definitions/LLLCode"
+ }
+ ]
+ },
"TxSigR": {
"oneOf": [
{
@@ -318,7 +334,10 @@
"description": "prestate account address with 0x prefix"
}
}
- }
+ },
+ "sealEngine": {
+ "$ref": "#/definitions/SealEngineType"
+ }
},
"required": [
"pre",
diff --git a/JSONSchema/bc-schema.json b/JSONSchema/bc-schema.json
index 729638d1a..fb7d92e76 100644
--- a/JSONSchema/bc-schema.json
+++ b/JSONSchema/bc-schema.json
@@ -198,6 +198,9 @@
],
"type": "object"
},
+ "sealEngine": {
+ "$ref": "#/definitions/SealEngineType"
+ },
"Transaction": {
"additionalProperties": true,
"not": {
@@ -301,7 +304,10 @@
"description": "prestate account address with 0x prefix"
}
}
- }
+ },
+ "sealEngine": {
+ "$ref": "#/definitions/SealEngineType"
+ }
},
"required": [
"postState",
diff --git a/JSONSchema/definitions.json b/JSONSchema/definitions.json
index 4d00794c5..529e08763 100644
--- a/JSONSchema/definitions.json
+++ b/JSONSchema/definitions.json
@@ -279,6 +279,18 @@
}
]
},
+ "SealEngineType": {
+ "anyOf": [
+ {
+ "pattern": "NoProof",
+ "type": "string"
+ },
+ {
+ "pattern": "Ethash",
+ "type": "string"
+ }
+ ]
+ },
"TransactionResults": {
"items": {
"additionalProperties": false,