Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EIP-1153: Transient Storage tests #1091

Closed
wants to merge 60 commits into from
Closed
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
60feeaa
adding first filler tests
snreynolds Jun 16, 2022
c80e8ec
replace bytecode with yul
snreynolds Jun 23, 2022
d5f1958
reentrancy tests
snreynolds Jun 24, 2022
d8595b0
cleanup and revert test
snreynolds Jun 24, 2022
065efd8
revert after return
snreynolds Jun 24, 2022
5f6ff28
staticcall& dos
snreynolds Jun 27, 2022
ba030bf
tstore tests 8,9,11,12,13
ewilz Jun 24, 2022
557a358
cleanup tests
ewilz Jun 27, 2022
81ed591
trying to calc gas
ewilz Jun 27, 2022
8cfb894
fix tload gas tests
ewilz Jun 27, 2022
db74679
less opcode noise in gas test
ewilz Jun 27, 2022
2504891
update comments
ewilz Jun 27, 2022
e6d7996
comment cleanup and tstore gas test
snreynolds Jun 28, 2022
336d5e3
Merge pull request #2 from ewilz/filler-tests
snreynolds Jun 28, 2022
3f72bb8
cleanup
snreynolds Jun 28, 2022
f04bd2c
add across txn and across block tests
snreynolds Jun 29, 2022
9c69b21
passing cross txn test
snreynolds Jun 30, 2022
484f3d4
add eip1153 folder, set initial storage when we expect 0
snreynolds Jul 5, 2022
b7557a7
move to ValidBlocks folder
snreynolds Jul 8, 2022
cab024b
Merge branch 'develop' into filler-tests
moodysalem Nov 9, 2022
8eb5249
bring back mergeTestFiller.yml
moodysalem Nov 10, 2022
112b76c
remove config from gitignore
moodysalem Nov 10, 2022
31e176d
use merge+1153
snreynolds Nov 29, 2022
d42c6ed
generated tests with merge+1153
snreynolds Nov 29, 2022
d1f8ba8
bump num calls
snreynolds Nov 30, 2022
a55b3e5
remove indexes
snreynolds Dec 1, 2022
9a54b73
03 ensure tstore never wrote to storage
snreynolds Dec 7, 2022
2aace02
04 ensure tstore doesnt affect calling transient storage
snreynolds Dec 7, 2022
2bcc343
oog undoes tstore after reentrant call
snreynolds Dec 8, 2022
c86bd00
oog undoes transient store after subcall
snreynolds Dec 8, 2022
285c951
09 use fail & add tstore w/new key
snreynolds Dec 8, 2022
9f78f4a
10 fail
snreynolds Dec 8, 2022
3131949
11 delegatecall with revert
snreynolds Dec 8, 2022
11ffdeb
13 add loading in staticcall check
snreynolds Dec 8, 2022
c07c148
update gas
snreynolds Dec 12, 2022
947ebca
16 remove sload comparison
snreynolds Dec 12, 2022
2556022
17 remove sstore gas comparison
snreynolds Dec 12, 2022
75e479f
21 add out of order stores
snreynolds Dec 13, 2022
bc0dcbc
15&21 fix dos tests
snreynolds Dec 15, 2022
e57ec49
Merge remote-tracking branch 'origin' into filler-tests
snreynolds Dec 15, 2022
eb0a028
make selector more readable
snreynolds Dec 15, 2022
fcd3575
use address()
snreynolds Dec 15, 2022
d9fb9f1
04 use gas()
snreynolds Dec 16, 2022
5524a07
05 cleanup: tstore without reenter
snreynolds Dec 16, 2022
093eace
06 cleanup
snreynolds Dec 16, 2022
07af97a
07 cleanup
snreynolds Dec 16, 2022
758e4e9
08 cleanup
snreynolds Dec 16, 2022
0029ff1
09 cleanup
snreynolds Dec 16, 2022
05ae4f2
10 cleanup and check successful call
snreynolds Dec 16, 2022
6689925
11 cleanup
snreynolds Dec 16, 2022
4b38643
12 cleanup
snreynolds Dec 16, 2022
4105777
13 cleanup
snreynolds Dec 16, 2022
59aedbf
14 cleanup
snreynolds Dec 16, 2022
145ee84
15,16,17,19,20 cleanup
snreynolds Dec 16, 2022
87c71ff
21 cleanup, remove repeated tstore, bump n
snreynolds Dec 16, 2022
a507461
bc tests cleanup
snreynolds Dec 16, 2022
23e5a67
move stEIP1153 to EIPTests folder
winsvega Jan 4, 2023
8dd560a
fillchain
winsvega Jan 4, 2023
d305644
move bcEIP1153
winsvega Jan 4, 2023
1b2543d
Merge pull request #3 from winsvega/eip1153
snreynolds Jan 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
{
"tloadDoesNotPersistAcrossBlocks_Merge+1153" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "evm version 1.11.0-unstable-1b8a3921-20221128",
"filling-tool-version" : "retesteth-0.2.3-postmerge+commit.17808a69.Linux.g++",
"generatedTestHash" : "123a6cac87fcbb468994089624cc1b79e17b13f4b488fb09406bb50a1a109e5f",
"lllcversion" : "Version: 0.5.14-develop.2022.11.29+commit.a096d7a9.Linux.g++",
"solidity" : "Version: 0.8.5+commit.a4f2e591.Linux.g++",
"source" : "src/BlockchainTestsFiller/ValidBlocks/bcEIP1153/tloadDoesNotPersistAcrossBlocksFiller.yml",
"sourceHash" : "71e7cd9b61f058cdc561de32e13aa04b0de8a88e559a659aff55b8ee5172dd0c"
},
"blocks" : [
{
"blockHeader" : {
"baseFeePerGas" : "0x036b",
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0xba5e000000000000000000000000000000000000",
"difficulty" : "0x00",
"extraData" : "0x42",
"gasLimit" : "0x016345785d8a0000",
"gasUsed" : "0xa9f6",
"hash" : "0x611dbf6bc45105b4f9d1ad5656ec50e9f78e61b376db8bc468f67144ff955b12",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000020000",
"nonce" : "0x0000000000000000",
"number" : "0x01",
"parentHash" : "0x5be49b107bf73765d9f564fa0a1a8e5ab829501091ab2049945f00f2dd07d226",
"receiptTrie" : "0x58d5e0da4ffa116e9640437af02385c55f2ccda65ddafa68343766b35eb50778",
"stateRoot" : "0x25f0cbc82610386761c31c08f0b5d4e329e4442985648666040c6c5e5d15708a",
"timestamp" : "0x079e",
"transactionsTrie" : "0xaa7e8383c944c425e964822d7d780e758a7c380d3791bcade2b499257c292bcd",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"blocknumber" : "1",
"chainname" : "default",
"rlp" : "0xf90272f901fca05be49b107bf73765d9f564fa0a1a8e5ab829501091ab2049945f00f2dd07d226a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794ba5e000000000000000000000000000000000000a025f0cbc82610386761c31c08f0b5d4e329e4442985648666040c6c5e5d15708aa0aa7e8383c944c425e964822d7d780e758a7c380d3791bcade2b499257c292bcda058d5e0da4ffa116e9640437af02385c55f2ccda65ddafa68343766b35eb50778b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800188016345785d8a000082a9f682079e42a0000000000000000000000000000000000000000000000000000000000002000088000000000000000082036bf870b86e02f86b0180018203e885e8d4a5100094000000000000000000000000000000000000000a80840accf739c001a012d2b2fdd72b664f1cb63fd9e6b137f4695e2d7fa1c2ac517e0561b57bac39f0a0051de0849dfa8564def63103c582eaf728794fb0e92a4d691fa1adfc0e6c8603c0",
"transactions" : [
{
"accessList" : [
],
"chainId" : "0x01",
"data" : "0x0accf739",
"gasLimit" : "0xe8d4a51000",
"maxFeePerGas" : "0x03e8",
"maxPriorityFeePerGas" : "0x01",
"nonce" : "0x00",
"r" : "0x12d2b2fdd72b664f1cb63fd9e6b137f4695e2d7fa1c2ac517e0561b57bac39f0",
"s" : "0x051de0849dfa8564def63103c582eaf728794fb0e92a4d691fa1adfc0e6c8603",
"to" : "0x000000000000000000000000000000000000000a",
"type" : "0x02",
"v" : "0x01",
"value" : "0x00"
}
],
"uncleHeaders" : [
]
},
{
"blockHeader" : {
"baseFeePerGas" : "0x02fe",
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0xba5e000000000000000000000000000000000000",
"difficulty" : "0x00",
"extraData" : "0x42",
"gasLimit" : "0x016345785d8a0000",
"gasUsed" : "0x540b",
"hash" : "0xe3ea3cf9298aa33d878aeca13de4976887c969b75e8ee5010d50578e3ea8619b",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000020000",
"nonce" : "0x0000000000000000",
"number" : "0x02",
"parentHash" : "0x611dbf6bc45105b4f9d1ad5656ec50e9f78e61b376db8bc468f67144ff955b12",
"receiptTrie" : "0xb82d09a2aa28e30e8dc2b38336742f7f0b8c5705a45451e72d6d88424fd5cb60",
"stateRoot" : "0xe01efa0d9b15746045afaee8879d4ef58d820eaccfe66215721bf37c8eb70741",
"timestamp" : "0x0b86",
"transactionsTrie" : "0xda0f4a390f88121c99ca5bc764bd01522d25ab1bbd6a71670072744eed1e8904",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"blocknumber" : "2",
"chainname" : "default",
"rlp" : "0xf90272f901fca0611dbf6bc45105b4f9d1ad5656ec50e9f78e61b376db8bc468f67144ff955b12a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794ba5e000000000000000000000000000000000000a0e01efa0d9b15746045afaee8879d4ef58d820eaccfe66215721bf37c8eb70741a0da0f4a390f88121c99ca5bc764bd01522d25ab1bbd6a71670072744eed1e8904a0b82d09a2aa28e30e8dc2b38336742f7f0b8c5705a45451e72d6d88424fd5cb60b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800288016345785d8a000082540b820b8642a000000000000000000000000000000000000000000000000000000000000200008800000000000000008202fef870b86e02f86b0101018203e885e8d4a5100094000000000000000000000000000000000000000a808443ac1c39c080a019a564e377bfb32e1c5125a15b2708f63b883720eddcfe7c4b4b07a22a1c1051a011303d2f45b5e07e7ecab491fce55b10ecb9b338f44fc15bce7ba9ef63ce8ca5c0",
"transactions" : [
{
"accessList" : [
],
"chainId" : "0x01",
"data" : "0x43ac1c39",
"gasLimit" : "0xe8d4a51000",
"maxFeePerGas" : "0x03e8",
"maxPriorityFeePerGas" : "0x01",
"nonce" : "0x01",
"r" : "0x19a564e377bfb32e1c5125a15b2708f63b883720eddcfe7c4b4b07a22a1c1051",
"s" : "0x11303d2f45b5e07e7ecab491fce55b10ecb9b338f44fc15bce7ba9ef63ce8ca5",
"to" : "0x000000000000000000000000000000000000000a",
"type" : "0x02",
"v" : "0x00",
"value" : "0x00"
}
],
"uncleHeaders" : [
]
}
],
"genesisBlockHeader" : {
"baseFeePerGas" : "0x03e8",
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0xba5e000000000000000000000000000000000000",
"difficulty" : "0x00",
"extraData" : "0x42",
"gasLimit" : "0x016345785d8a0000",
"gasUsed" : "0x00",
"hash" : "0x5be49b107bf73765d9f564fa0a1a8e5ab829501091ab2049945f00f2dd07d226",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000020000",
"nonce" : "0x0000000000000000",
"number" : "0x00",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot" : "0xa72b49bafabb2b8db966e0baeaabb5fe5873c47c72dc32b33a7ada5e1004eef5",
"timestamp" : "0x03b6",
"transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"genesisRLP" : "0xf901fff901faa00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794ba5e000000000000000000000000000000000000a0a72b49bafabb2b8db966e0baeaabb5fe5873c47c72dc32b33a7ada5e1004eef5a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000808088016345785d8a0000808203b642a000000000000000000000000000000000000000000000000000000000000200008800000000000000008203e8c0c0",
"lastblockhash" : "0xe3ea3cf9298aa33d878aeca13de4976887c969b75e8ee5010d50578e3ea8619b",
"network" : "Merge+1153",
"postState" : {
"0x000000000000000000000000000000000000000a" : {
"balance" : "0x01000000000000000000",
"code" : "0x60056053565b630accf73981146022576343ac1c398114602c5760016000556033565b60286038565b6033565b60326048565b5b50607f565b605a6000b46000b380600055505b565b6000b380600155505b565b60006000357c010000000000000000000000000000000000000000000000000000000081049150505b90565b",
"nonce" : "0x00",
"storage" : {
"0x00" : "0x5a"
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0xfffffffffffcbe9d43",
"code" : "0x",
"nonce" : "0x02",
"storage" : {
}
},
"0xba5e000000000000000000000000000000000000" : {
"balance" : "0xfe01",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"pre" : {
"0x000000000000000000000000000000000000000a" : {
"balance" : "0x01000000000000000000",
"code" : "0x60056053565b630accf73981146022576343ac1c398114602c5760016000556033565b60286038565b6033565b60326048565b5b50607f565b605a6000b46000b380600055505b565b6000b380600155505b565b60006000357c010000000000000000000000000000000000000000000000000000000081049150505b90565b",
"nonce" : "0x00",
"storage" : {
"0x01" : "0xffff"
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x01000000000000000000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"sealEngine" : "NoProof"
}
}
Loading