Skip to content

Commit

Permalink
add: evm block schema
Browse files Browse the repository at this point in the history
note: this is an approximation, not an actual true representation of the state
  • Loading branch information
sam bacha committed Oct 6, 2020
1 parent 7841bd1 commit c841861
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions schemas/evm-block.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"$id": "EVM Blockchain Block Schema",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"properties": {
"header": {
"type": "object",
"properties": {
"parentHash": {
"type": "string"
},
"uncleHash": {
"type": "string"
},
"coinbase": {
"type": "string"
},
"stateRoot": {
"type": "string"
},
"transactionsTrie": {
"type": "string"
},
"receiptTrie": {
"type": "string"
},
"bloom": {
"type": "string"
},
"difficulty": {
"type": "string"
},
"number": {
"type": "string"
},
"gasLimit": {
"type": "string"
},
"gasUsed": {
"type": "string"
},
"timestamp": {
"type": "string"
},
"extraData": {
"type": "string"
},
"mixHash": {
"type": "string"
},
"nonce": {
"type": "string"
}
},
"required": [
"parentHash",
"uncleHash",
"coinbase",
"stateRoot",
"transactionsTrie",
"receiptTrie",
"bloom",
"difficulty",
"number",
"gasLimit",
"gasUsed",
"timestamp",
"extraData",
"mixHash",
"nonce"
]
},
"transactions": {
"type": "array",
"items": true
},
"uncleHeaders": {
"type": "array",
"items": true
}
},
"required": [
"header",
"transactions",
"uncleHeaders"
]
}

0 comments on commit c841861

Please sign in to comment.