Skip to content

Instantly share code, notes, and snippets.

@marioevz
Last active December 12, 2023 01:20
Show Gist options
  • Save marioevz/22bf3020c1cc6ab223c67fbe700ecd6e to your computer and use it in GitHub Desktop.
Save marioevz/22bf3020c1cc6ab223c67fbe700ecd6e to your computer and use it in GitHub Desktop.
Execution-spec-tests State Test Example
{
"tests/berlin/eip2930_access_list/test_acl.py::test_access_list[fork_Berlin-state_test]": {
"_info": {
"filling-transition-tool": "evm version 1.13.5-unstable-4d161dee",
"reference-spec": "https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2930.md",
"reference-spec-version": "c9db53a936c5c9cbe2db32ba0d1b86c4c6e73534"
},
"env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentGasLimit": "100000000000000000",
"currentNumber": "1",
"currentTimestamp": "1000",
"currentDifficulty": "131072",
"blockHashes": {},
"ommers": [],
"parentUncleHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
"pre": {
"0x000000000000000000000000000000000000aaaa": {
"nonce": "0x01",
"balance": "0x03",
"code": "0x5854505854",
"storage": {}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
"nonce": "0x00",
"balance": "0x300000",
"code": "0x",
"storage": {}
}
},
"transaction": {
"nonce": "0x00",
"gasPrice": "0x07",
"gasLimit": [
"0x04ef00"
],
"to": "0x000000000000000000000000000000000000aaaa",
"value": [
"0x01"
],
"data": [
"0x"
],
"accessLists": [
[
{
"address": "0x0000000000000000000000000000000000000000",
"storageKeys": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
}
]
],
"sender": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
},
"post": {
"Berlin": [
{
"hash": "0x51799508f764047aee6606bc6a00863856f83ee5b91555f00c8a3cbdfbec5acb",
"logs": "0xc166d1f62ef90bdef78d79a4b28579b279621fbcd156aba3060f242d5feeda67",
"txbytes": "0x01f89b0180078304ef0094000000000000000000000000000000000000aaaa0180f838f7940000000000000000000000000000000000000000e1a0000000000000000000000000000000000000000000000000000000000000000001a02e16eb72206c93c471b5894800495ee9c64ae2d9823bcc4d6adeb5d9d9af0dd4a03be6691e933a0816c59d059a556c27c6753e6ce76d1e357b9201865c80b28df3",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
}
}
]
}
},
"tests/berlin/eip2930_access_list/test_acl.py::test_access_list[fork_London-state_test]": {
"_info": {
"filling-transition-tool": "evm version 1.13.5-unstable-4d161dee",
"reference-spec": "https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2930.md",
"reference-spec-version": "c9db53a936c5c9cbe2db32ba0d1b86c4c6e73534"
},
"env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentGasLimit": "100000000000000000",
"currentNumber": "1",
"currentTimestamp": "1000",
"currentDifficulty": "131072",
"blockHashes": {},
"ommers": [],
"currentBaseFee": "7",
"parentUncleHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
"pre": {
"0x000000000000000000000000000000000000aaaa": {
"nonce": "0x01",
"balance": "0x03",
"code": "0x5854505854",
"storage": {}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
"nonce": "0x00",
"balance": "0x300000",
"code": "0x",
"storage": {}
}
},
"transaction": {
"nonce": "0x00",
"gasPrice": "0x07",
"gasLimit": [
"0x04ef00"
],
"to": "0x000000000000000000000000000000000000aaaa",
"value": [
"0x01"
],
"data": [
"0x"
],
"accessLists": [
[
{
"address": "0x0000000000000000000000000000000000000000",
"storageKeys": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
}
]
],
"sender": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
},
"post": {
"London": [
{
"hash": "0xaa7787f93658761ab396c85c2c328b327191ee8462420a8b6706fdc7d1fd26af",
"logs": "0xc166d1f62ef90bdef78d79a4b28579b279621fbcd156aba3060f242d5feeda67",
"txbytes": "0x01f89b0180078304ef0094000000000000000000000000000000000000aaaa0180f838f7940000000000000000000000000000000000000000e1a0000000000000000000000000000000000000000000000000000000000000000001a02e16eb72206c93c471b5894800495ee9c64ae2d9823bcc4d6adeb5d9d9af0dd4a03be6691e933a0816c59d059a556c27c6753e6ce76d1e357b9201865c80b28df3",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment