Skip to content

Commit

Permalink
integration: add more trace_replayTransaction tests (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
lupin012 authored Dec 6, 2024
1 parent cdd6291 commit 9be7098
Show file tree
Hide file tree
Showing 5 changed files with 620 additions and 0 deletions.
273 changes: 273 additions & 0 deletions integration/mainnet/trace_replayTransaction/test_36.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "trace_replayTransaction",
"params": [
"0xbb4b3fc2b746877dce70862850602f1d19bd890ab4db47e6b7ee1da1fe578a0d",
[
"stateDiff"
]
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"output": "0x",
"stateDiff": {
"0x0f4dbc08b8917c4d683cb55511936989dee1f736": {
"balance": "=",
"code": "=",
"nonce": "=",
"storage": {
"0xb39e9ba92c3c47c76d4f70e3bc9c3270ab78d2592718d377c8f5433a34d3470a": {
"*": {
"from": "0x0000000000000000000000000000000000000000178b369361df900a9e509258",
"to": "0x00000000000000000000000000000000000000000000000161df900a9e509258"
}
},
"0xf1afbc179eac1a1bd17ea3c23b31a41e8043f1cf2bf800abc06bf9d2d95d0243": {
"*": {
"from": "0x0000000000000000000000000000000000000001dac614b3f169141e41ef7080",
"to": "0x0000000000000000000000000000000000000001f2514b45f169141e41ef7080"
}
}
}
},
"0x1956b77def3a8c551660e3881379bddff37c4a8b": {
"balance": "=",
"code": "=",
"nonce": "=",
"storage": {
"0x0f61f7fd9a799effa8148b757c81bee847b29ccbc31f0b5c062cb19d3ba34262": {
"*": {
"from": "0x0000000000000000000000000000000000000000000000002fa32e679c7f7e53",
"to": "0x0000000000000000000000000000000000000000000000002f8462fda67f7e53"
}
},
"0x577b913a3c8810dd10161c9ae11e2ee31042564c62114c83b0bc5d3a3e71b362": {
"*": {
"from": "0x0000000000000000000000000000000000000000000000000000000002000000",
"to": "0x000000000000000000000000000000000000000000000000001ecb69f8000000"
}
}
}
},
"0x2077d81d0c5258230d5a195233941547cb5f0989": {
"balance": "=",
"code": "=",
"nonce": "=",
"storage": {
"0x000000000000000000000000000000000000000000000000000000000000000e": {
"*": {
"from": "0x00000000000000000000000000000000000000000000000000000000000018d5",
"to": "0x00000000000000000000000000000000000000000000000000000000000018d6"
}
},
"0x06583869f3a48154de99a25efeae318eb27188c2ca181a6a3e6196a4fd2ed062": {
"*": {
"from": "0x0000000000000000000000000000000000000000000000007995287397bd6b1e",
"to": "0x0000000000000000000000000000000000000000000000007801660397bd6b1e"
}
},
"0x577b913a3c8810dd10161c9ae11e2ee31042564c62114c83b0bc5d3a3e71b362": {
"*": {
"from": "0x0000000000000000000000000000000000000000000000000d7307852e671567",
"to": "0x0000000000000000000000000000000000000000000000000f06c9f52e671567"
}
}
}
},
"0x4fc47579ecf6aa76677ee142b6b75faf9eeafba8": {
"balance": "=",
"code": "=",
"nonce": "=",
"storage": {
"0x0000000000000000000000000000000000000000000000000000000000000008": {
"*": {
"from": "0x665ba27300000000000001a6833d6bf397e8000000002c4cdd3bcc51121f8a7e",
"to": "0x665ba27f00000000000001e51bb76bf397e80000000026995439cc51121f8a7e"
}
},
"0x0000000000000000000000000000000000000000000000000000000000000009": {
"*": {
"from": "0x000000000000000002073a18cf9416acf521417fe123b855d8eb6fee51009b80",
"to": "0x000000000000000002073a18cf9416acf52141805396da09cd681e1d227d28f8"
}
},
"0x000000000000000000000000000000000000000000000000000000000000000a": {
"*": {
"from": "0x000000000000000000000000206347f898e0858557dbe58d23fed22db44ba5cc",
"to": "0x0000000000000000000000002063493ab1e5cf94ee633cc26d82f9f2b6dc0a60"
}
}
}
},
"0x5eaa69b29f99c84fe5de8200340b4e9b4ab38eac": {
"balance": "=",
"code": "=",
"nonce": "=",
"storage": {
"0xb39e9ba92c3c47c76d4f70e3bc9c3270ab78d2592718d377c8f5433a34d3470a": {
"*": {
"from": "0x0000000000000000000000000000000000000000000000000001050000000000",
"to": "0x0000000000000000000000000000000000000000000005b38903050000000000"
}
},
"0xde3f0931440ad27ba33fd0d566a7e6ea99253decd320a2eb16b0d21e2d5654ab": {
"*": {
"from": "0x000000000000000000000000000000000000000000002c4cdd3bcc51121f8a7e",
"to": "0x0000000000000000000000000000000000000000000026995439cc51121f8a7e"
}
}
}
},
"0x6b75d8af000000e20b7a7ddf000ba900b4009a80": {
"balance": {
"*": {
"from": "0x134c48fc6bdc2",
"to": "0x134c4ce5f37c2"
}
},
"code": "=",
"nonce": "=",
"storage": {}
},
"0xae2fc483527b8ef99eb5d9b44875f005ba1fae13": {
"balance": {
"*": {
"from": "0x6c943a4849a50e671",
"to": "0x6c93e034702304af5"
}
},
"code": "=",
"nonce": {
"*": {
"from": "0x2a109e",
"to": "0x2a109f"
}
},
"storage": {}
},
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
"balance": "=",
"code": "=",
"nonce": "=",
"storage": {
"0x12231cd4c753cb5530a43a74c45106c24765e6f81dc8927d4f4be7e53315d5a8": {
"*": {
"from": "0x00000000000000000000000000000000000000000000002a6b9b1f83a3574c9a",
"to": "0x00000000000000000000000000000000000000000000002a60a0f13da2574c9a"
}
},
"0x17a4e6416fac9c9bf26d005d08e2b2ee25f982bd10d5b44147b7b75ba3d228fe": {
"*": {
"from": "0x0000000000000000000000000000000000000000000000042dc612d9945e1d52",
"to": "0x0000000000000000000000000000000000000000000000043be02b05945e1d52"
}
},
"0x8ea767adbab85a66d92de57018f6d566653a3a636ce23bc54d43a6ef0b8c2c6d": {
"*": {
"from": "0x0000000000000000000000000000000000000000000000004f33f7d009aaaace",
"to": "0x0000000000000000000000000000000000000000000000004b78bc8309aaaace"
}
},
"0xc425db3ba2e2e740df0bd5e70863e1467175168a1db003c150d7c3bc5a4f2746": {
"*": {
"from": "0x00000000000000000000000000000000000000000000000001a6833d6bf397e8",
"to": "0x00000000000000000000000000000000000000000000000001e51bb76bf397e8"
}
},
"0xe7267db6a8492dc35643f86d4a1e6d8a1bf1b91b0815f7eaf2bc675f60d17653": {
"*": {
"from": "0x0000000000000000000000000000000000000000000000008ea50799e62ad730",
"to": "0x0000000000000000000000000000000000000000000000008f01c086e72ad730"
}
}
}
},
"0xe3cc21af229934034b320502fa55cfa1ab7b1493": {
"balance": "=",
"code": "=",
"nonce": "=",
"storage": {
"0x0000000000000000000000000000000000000000000000000000000000000008": {
"*": {
"from": "0x665ba2730000000000042dc612d9945e1d520000000000007995287397bd6b1e",
"to": "0x665ba27f0000000000043be02b05945e1d520000000000007801660397bd6b1e"
}
},
"0x0000000000000000000000000000000000000000000000000000000000000009": {
"*": {
"from": "0x00000000000000000000000000000004e674ed4d8e406882fbe6377084df8c24",
"to": "0x00000000000000000000000000000004e6de8305bec1af347440ea9a9c41f4a8"
}
},
"0x000000000000000000000000000000000000000000000000000000000000000a": {
"*": {
"from": "0x000000000000000000000000000000007612196a9b141ff098da829ce7c8f870",
"to": "0x000000000000000000000000000000007613768eb55eb893f8142b747fae0a08"
}
}
}
},
"0xf1dfcb999eeecbfca7123d13a73f54285f43db96": {
"balance": "=",
"code": "=",
"nonce": "=",
"storage": {
"0x0000000000000000000000000000000000000000000000000000000000000008": {
"*": {
"from": "0x665ba24f0000000000008ea50799e62ad7300000000000002fa32e679c7f7e53",
"to": "0x665ba27f0000000000008f01c086e72ad7300000000000002f8462fda67f7e53"
}
},
"0x0000000000000000000000000000000000000000000000000000000000000009": {
"*": {
"from": "0x00000000000000000000000000000000061036828dd70ce8e171160c20f5a488",
"to": "0x00000000000000000000000000000000069ff17971ff8700e8bcef62f86571e8"
}
},
"0x000000000000000000000000000000000000000000000000000000000000000a": {
"*": {
"from": "0x0000000000000000000000000000000002bfba72316479bfc0e9713353ee9824",
"to": "0x0000000000000000000000000000000002cfc2218e556726f6ae54b242cd9934"
}
}
}
},
"0xfd433bb7e98de56bb4422acd3eb6f174bac52fc9": {
"balance": "=",
"code": "=",
"nonce": "=",
"storage": {
"0x0000000000000000000000000000000000000000000000000000000000000008": {
"*": {
"from": "0x665ba2730000000000004f33f7d009aaaace0001dac614b3f169141e41ef7080",
"to": "0x665ba27f0000000000004b78bc8309aaaace0001f2514b45f169141e41ef7080"
}
},
"0x0000000000000000000000000000000000000000000000000000000000000009": {
"*": {
"from": "0x0000000000000000000000000000000000000000049f93ed77b6935c877cb0e0",
"to": "0x000000000000000000000000000000000000000004a194681cae812cc129da88"
}
},
"0x000000000000000000000000000000000000000000000000000000000000000a": {
"*": {
"from": "0x00000000000000000000000544ca0a48fd6464de2ba72b2eeef49b24ff86e350",
"to": "0x0000000000000000000000054511f90deb278fec6f56d00169913bf2025edd78"
}
}
}
}
},
"trace": [],
"transactionHash": "0xbb4b3fc2b746877dce70862850602f1d19bd890ab4db47e6b7ee1da1fe578a0d",
"vmTrace": null
}
}
}
]
110 changes: 110 additions & 0 deletions integration/mainnet/trace_replayTransaction/test_37.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "trace_replayTransaction",
"params": [
"0x541a536cd7ce7e9990876b7a49041f21590cd92251e699d9d924c0abbb2e98ba",
[
"stateDiff"
]
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"output": "0x",
"stateDiff": {
"0x4fc47579ecf6aa76677ee142b6b75faf9eeafba8": {
"balance": "=",
"code": "=",
"nonce": "=",
"storage": {
"0x0000000000000000000000000000000000000000000000000000000000000008": {
"*": {
"from": "0x665ba27f00000000000001e51bb76bf397e80000000026995439cc51121f8a7e",
"to": "0x665ba27f000000000000022c299c4b7597e80000000021ae36bae0f5da7d6de6"
}
}
}
},
"0x5eaa69b29f99c84fe5de8200340b4e9b4ab38eac": {
"balance": "=",
"code": "=",
"nonce": "=",
"storage": {
"0x443d72c18f173e95e8fd5d5f55e68b01b20445348043961dfcc5504f9d095e31": {
"*": {
"from": "0x0000000000000000000000000000000000000000000153cef36f71c34195822c",
"to": "0x0000000000000000000000000000000000000000000158b6eb18ed2baf7a6a37"
}
},
"0xde3f0931440ad27ba33fd0d566a7e6ea99253decd320a2eb16b0d21e2d5654ab": {
"*": {
"from": "0x0000000000000000000000000000000000000000000026995439cc51121f8a7e",
"to": "0x0000000000000000000000000000000000000000000021ae36bae0f5da7d6de6"
}
},
"0xfe8856aa7c08b1199b17906727770d2021e30c908926ab90b6397701b9ddde02": {
"*": {
"from": "0x00000000000000000000000000000000000000000000001ef39208211b60c754",
"to": "0x00000000000000000000000000000000000000000000002219677813e51dfbe1"
}
}
}
},
"0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5": {
"balance": {
"*": {
"from": "0x103353e6c8d0872d1",
"to": "0x103353e8bc2948b91"
}
},
"code": "=",
"nonce": "=",
"storage": {}
},
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
"balance": {
"*": {
"from": "0x26d38654a89ea6e8e1577",
"to": "0x26d38659197cf4e101577"
}
},
"code": "=",
"nonce": "=",
"storage": {
"0xc425db3ba2e2e740df0bd5e70863e1467175168a1db003c150d7c3bc5a4f2746": {
"*": {
"from": "0x00000000000000000000000000000000000000000000000001e51bb76bf397e8",
"to": "0x000000000000000000000000000000000000000000000000022c299c4b7597e8"
}
}
}
},
"0xea3ea09394f5e925ae7592dff1d675558d0831fd": {
"balance": {
"*": {
"from": "0xf9fddcdbfc41e1",
"to": "0xb0835d1eafc931"
}
},
"code": "=",
"nonce": {
"*": {
"from": "0x7c",
"to": "0x7d"
}
},
"storage": {}
}
},
"trace": [],
"transactionHash": "0x541a536cd7ce7e9990876b7a49041f21590cd92251e699d9d924c0abbb2e98ba",
"vmTrace": null
}
}
}
]
Loading

0 comments on commit 9be7098

Please sign in to comment.