Skip to content

Commit

Permalink
Add CREATE3 tests generated from evmone state transition tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Dec 12, 2023
1 parent e852e4e commit 8ea5bc6
Show file tree
Hide file tree
Showing 14 changed files with 770 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"create3_caller_balance_too_low": {
"env": {
"currentBaseFee": "0x3e7",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"Prague": [
{
"hash": "0x6fb341ed90ac3753060e6c3a4742eb163e409d5ff7b2187a028efaef9d42b378",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0xef00010100040200010013030001003a040000000080000436600060003736600060ff600aec0060005500ef0001010004020001000b03000100170400000000800003366000600037366000ee00ef000101000402000100010400030000800000feabcdef",
"nonce": "0x1",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0xf4240"
],
"maxFeePerGas": "0x3e8",
"maxPriorityFeePerGas": "0x1",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"create3_dataloadn_referring_to_auxdata": {
"env": {
"currentBaseFee": "0x3e7",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"Prague": [
{
"hash": "0x4c48abba013c98749163e50a4d5649cae4fd27dd80d0956b8f78baca72ac3697",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0xef00010100040200010012030001007c04000000008000046000600060ff6000ec0060005260206000f3ef00010100040200010006030001005e040000000080000260206000ee00ef0001010004020001000b0400600000800002e9004060005260206000f300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x1",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0xf4240"
],
"maxFeePerGas": "0x3e8",
"maxPriorityFeePerGas": "0x1",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions EIPTests/StateTests/stEOF/stCreate3/create3_empty_auxdata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"create3_empty_auxdata": {
"env": {
"currentBaseFee": "0x3e7",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"Prague": [
{
"hash": "0xca4d4a0cf2590ba16d12f9b568f9135357d42bcd48600ba6d2d70a8872e056a6",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0xef00010100040200010012030001003504000000008000046000600060ff6000ec0060005260206000f3ef000101000402000100060300010017040000000080000260006000ee00ef000101000402000100010400030000800000feabcdef",
"nonce": "0x1",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0xf4240"
],
"maxFeePerGas": "0x3e8",
"maxPriorityFeePerGas": "0x1",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"create3_initcontainer_aborts": {
"env": {
"currentBaseFee": "0x3e7",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"Prague": [
{
"hash": "0x2f9bc4efa856c9add42fb1c09a384f06df02b59f9840994309fd50be13c64cfa",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0xef000101000402000100130300010014040000000080000436600060003736600060ff6000ec0060005500ef000101000402000100010400000000800000fe",
"nonce": "0x1",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0xf4240"
],
"maxFeePerGas": "0x3e8",
"maxPriorityFeePerGas": "0x1",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"create3_initcontainer_return": {
"env": {
"currentBaseFee": "0x3e7",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"Prague": [
{
"hash": "0x0c246603ef3160021a57ca049d114876431989d7c02f4a9daac82547d0e55a09",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0xef00010100040200010013030001001d040000000080000436600060003736600060ff6000ec0060005500ef0001010004020001000a040000000080000260aa60005260206000f3",
"nonce": "0x1",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0xf4240"
],
"maxFeePerGas": "0x3e8",
"maxPriorityFeePerGas": "0x1",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"create3_initcontainer_stop": {
"env": {
"currentBaseFee": "0x3e7",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"Prague": [
{
"hash": "0x32ab0d1d78df0ea755a3cc620cfea82670ca0e457f3e9156a6a1effd6e78fe8a",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0xef000101000402000100130300010014040000000080000436600060003736600060ff6000ec0060005500ef00010100040200010001040000000080000000",
"nonce": "0x1",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0xf4240"
],
"maxFeePerGas": "0x3e8",
"maxPriorityFeePerGas": "0x1",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
55 changes: 55 additions & 0 deletions EIPTests/StateTests/stEOF/stCreate3/create3_nested_create3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"create3_nested_create3": {
"env": {
"currentBaseFee": "0x3e7",
"currentCoinbase": "0x00000000000000000000000000000000c014bace",
"currentGasLimit": "0xf4240",
"currentNumber": "0x1",
"currentTimestamp": "0x0"
},
"post": {
"Prague": [
{
"hash": "0x57deef2460aea3991ab431062f2ddf659dbee827e242955656a44b55988dd994",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
},
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre": {
"0x000000000000000000000000000000000000c0de": {
"balance": "0x0",
"code": "0xef0001010004020001000e030001007904000000008000046000600060ff6000ec0060005500ef000101000402000100130300020017003504000000008000046000600060ff6000ec0160005560006000ee00ef000101000402000100010400030000800000feabcdefef000101000402000100060300010017040000000080000260006000ee00ef000101000402000100010400030000800000feffffff",
"nonce": "0x1",
"storage": {}
},
"0xe100713fc15400d1e94096a545879e7c6407001e": {
"balance": "0x3b9aca01",
"code": "0x",
"nonce": "0x1",
"storage": {}
}
},
"transaction": {
"data": [
"0x"
],
"gasLimit": [
"0xf4240"
],
"maxFeePerGas": "0x3e8",
"maxPriorityFeePerGas": "0x1",
"nonce": "0x1",
"secretKey": "0x00000000000000000000000000000000000000000000000000000002b1263d2b",
"sender": "0xe100713fc15400d1e94096a545879e7c6407001e",
"to": "0x000000000000000000000000000000000000c0de",
"value": [
"0x0"
]
}
}
}
Loading

0 comments on commit 8ea5bc6

Please sign in to comment.