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

integration_test: Add test on eth get transaction receipt #298

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7,152 changes: 7,152 additions & 0 deletions integration/mainnet/erigon_getBlockReceiptsByBlockHash/test_07.json

Large diffs are not rendered by default.

8,564 changes: 8,564 additions & 0 deletions integration/mainnet/erigon_getBlockReceiptsByBlockHash/test_08.json

Large diffs are not rendered by default.

5,862 changes: 5,862 additions & 0 deletions integration/mainnet/erigon_getBlockReceiptsByBlockHash/test_09.json

Large diffs are not rendered by default.

5,973 changes: 5,973 additions & 0 deletions integration/mainnet/erigon_getBlockReceiptsByBlockHash/test_10.json

Large diffs are not rendered by default.

7,002 changes: 7,002 additions & 0 deletions integration/mainnet/erigon_getBlockReceiptsByBlockHash/test_11.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions integration/mainnet/erigon_getHeaderByHash/test_01.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"response": {
"jsonrpc":"2.0",
"id":1,
"result": {
"AuRaSeal": null,
"AuRaStep": 0,
"Verkle": false,
Expand Down Expand Up @@ -36,6 +37,7 @@
"timestamp": "0x6430ae13",
"transactionsRoot": "0x06ca3364e7ff05c6adad066d09dd50edc25e7935a7aa0bdb2f4ce07d2f5bf82e",
"withdrawalsRoot": null
}
}
}
]
Expand Down
60 changes: 31 additions & 29 deletions integration/mainnet/eth_createAccessList/test_17.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,37 @@
"response": {
"id":1,
"jsonrpc":"2.0",
"accessList": [
{
"address": "0x06729eb2424da47898f935267bd4a62940de5105",
"storageKeys": [
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000000000000000000000000000000000000000000004",
"0x0000000000000000000000000000000000000000000000000000000000000001",
"0x6fac4587033fa036e2426ad0134940d3a683633cc2b2b7862f39195344f163d1",
"0x0000000000000000000000000000000000000000000000000000000000000008",
"0x0000000000000000000000000000000000000000000000000000000000000009"
]
},
{
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"storageKeys": [
"0x8252275f333a87e99ed1ff1ad4defca3d32a065a9db2647c9014d94552d0acef",
"0x6157f0620f35ab12aef2698523b19b146ca18cf8dd91817b7cc7546b0d6b5250"
]
},
{
"address": "0xaaaebe6fe48e54f431b0c390cfaf0b017d09d42d",
"storageKeys": [
"0x182d99ea001f7ef52b8283cf7e854519982d8ff86d31c77d3e98e34310ace7f2",
"0x0000000000000000000000000000000000000000000000000000000000000004",
"0x29d00d6fa75b3651b1a634cd73ec75adaba7e9751b58877e0b97ffe826928fcb"
]
}
],
"gasUsed": "0x1bedb"
"result": {
"accessList": [
{
"address": "0x06729eb2424da47898f935267bd4a62940de5105",
"storageKeys": [
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000000000000000000000000000000000000000000004",
"0x0000000000000000000000000000000000000000000000000000000000000001",
"0x6fac4587033fa036e2426ad0134940d3a683633cc2b2b7862f39195344f163d1",
"0x0000000000000000000000000000000000000000000000000000000000000008",
"0x0000000000000000000000000000000000000000000000000000000000000009"
]
},
{
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"storageKeys": [
"0x8252275f333a87e99ed1ff1ad4defca3d32a065a9db2647c9014d94552d0acef",
"0x6157f0620f35ab12aef2698523b19b146ca18cf8dd91817b7cc7546b0d6b5250"
]
},
{
"address": "0xaaaebe6fe48e54f431b0c390cfaf0b017d09d42d",
"storageKeys": [
"0x182d99ea001f7ef52b8283cf7e854519982d8ff86d31c77d3e98e34310ace7f2",
"0x0000000000000000000000000000000000000000000000000000000000000004",
"0x29d00d6fa75b3651b1a634cd73ec75adaba7e9751b58877e0b97ffe826928fcb"
]
}
],
"gasUsed": "0x1bedb"
}
}
}
]
Expand Down
5,631 changes: 5,631 additions & 0 deletions integration/mainnet/eth_getBlockReceipts/test_09.json

Large diffs are not rendered by default.

1,218 changes: 1,218 additions & 0 deletions integration/mainnet/eth_getBlockReceipts/test_10.json

Large diffs are not rendered by default.

62 changes: 32 additions & 30 deletions integration/mainnet/eth_getTransactionReceipt/test_03.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,38 @@
"response": {
"id": 1,
"jsonrpc": "2.0",
"blockHash": "0xa2acb9a957dfb3b8877d534d411980166a6a5ba33358ce133652d29a3719aa56",
"blockNumber": "0xfbc520",
"contractAddress": null,
"cumulativeGasUsed": "0xbeeb05",
"effectiveGasPrice": "0x4e3fda426",
"from": "0xa98f5a4736059d79329e2f1b4ee46baf9f874b21",
"gasUsed": "0xcac4",
"logs": [
{
"address": "0x15d4c048f83bd7e37d49ea4c83a07267ec4203da",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000a98f5a4736059d79329e2f1b4ee46baf9f874b21",
"0x00000000000000000000000014f553367d336253cc05cabce312b390fc5e21a1"
],
"data": "0x000000000000000000000000000000000000000000000000000000003b9aca00",
"blockNumber": "0xfbc520",
"transactionHash": "0x4b17cb89d104f8b6d9a0ec3d5bdb306b5a5be0f9c894bd87a03f7a1dc44932a8",
"transactionIndex": "0x94",
"blockHash": "0xa2acb9a957dfb3b8877d534d411980166a6a5ba33358ce133652d29a3719aa56",
"logIndex": "0x153",
"removed": false
}
],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000008400000000000000000000000000000000000100000000002000000000008000000000000000000000000000000000010000000000000000020000000000000000000000000000002000000000000000000000004000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"to": "0x15d4c048f83bd7e37d49ea4c83a07267ec4203da",
"transactionHash": "0x4b17cb89d104f8b6d9a0ec3d5bdb306b5a5be0f9c894bd87a03f7a1dc44932a8",
"transactionIndex": "0x94",
"type": "0x2"
"result": {
"blockHash": "0xa2acb9a957dfb3b8877d534d411980166a6a5ba33358ce133652d29a3719aa56",
"blockNumber": "0xfbc520",
"contractAddress": null,
"cumulativeGasUsed": "0xbeeb05",
"effectiveGasPrice": "0x4e3fda426",
"from": "0xa98f5a4736059d79329e2f1b4ee46baf9f874b21",
"gasUsed": "0xcac4",
"logs": [
{
"address": "0x15d4c048f83bd7e37d49ea4c83a07267ec4203da",
"blockHash": "0xa2acb9a957dfb3b8877d534d411980166a6a5ba33358ce133652d29a3719aa56",
"blockNumber": "0xfbc520",
"data": "0x000000000000000000000000000000000000000000000000000000003b9aca00",
"logIndex": "0x153",
"removed": false,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000a98f5a4736059d79329e2f1b4ee46baf9f874b21",
"0x00000000000000000000000014f553367d336253cc05cabce312b390fc5e21a1"
],
"transactionHash": "0x4b17cb89d104f8b6d9a0ec3d5bdb306b5a5be0f9c894bd87a03f7a1dc44932a8",
"transactionIndex": "0x94"
}
],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000008400000000000000000000000000000000000100000000002000000000008000000000000000000000000000000000010000000000000000020000000000000000000000000000002000000000000000000000004000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"to": "0x15d4c048f83bd7e37d49ea4c83a07267ec4203da",
"transactionHash": "0x4b17cb89d104f8b6d9a0ec3d5bdb306b5a5be0f9c894bd87a03f7a1dc44932a8",
"transactionIndex": "0x94",
"type": "0x2"
}
}
}
]
Expand Down
35 changes: 35 additions & 0 deletions integration/mainnet/eth_getTransactionReceipt/test_04.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[
{
"test": {
"reference": "https://etherscan.io/tx/0x56e790ad97b44db95e00342338fa48d58efe66b5b382e57d2516d52c6230cf8a",
"description": "last tx on block 17M"
},
"request": {
"jsonrpc":"2.0",
"method":"eth_getTransactionReceipt",
"params":["0x56e790ad97b44db95e00342338fa48d58efe66b5b382e57d2516d52c6230cf8a"],
"id":1
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"blockHash": "0x96cfa0fb5e50b0a3f6cc76f3299cfbf48f17e8b41798d1394474e67ec8a97e9f",
"blockNumber": "0x1036640",
"contractAddress": null,
"cumulativeGasUsed": "0x8bc84a",
"effectiveGasPrice": "0x4cad3abe1",
"from": "0x690b9a9e9aa1c9db991c7721a92d351db4fac990",
"gasUsed": "0x5208",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"to": "0x6d2e03b7effeae98bd302a9f836d0d6ab0002766",
"transactionHash": "0x56e790ad97b44db95e00342338fa48d58efe66b5b382e57d2516d52c6230cf8a",
"transactionIndex": "0x65",
"type": "0x2"
}
}
}
]

35 changes: 35 additions & 0 deletions integration/mainnet/eth_getTransactionReceipt/test_05.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[
{
"test": {
"reference": "https://etherscan.io/tx/0x6b2fe3575bc0e2b9220daf457d7bde7a118d8674b920a0c888bbf547d683d0b7",
"description": "last tx on block 18M"
},
"request": {
"jsonrpc":"2.0",
"method":"eth_getTransactionReceipt",
"params":["0x6b2fe3575bc0e2b9220daf457d7bde7a118d8674b920a0c888bbf547d683d0b7"],
"id":1
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"blockHash": "0x95b198e154acbfc64109dfd22d8224fe927fd8dfdedfae01587674482ba4baf3",
"blockNumber": "0x112a880",
"contractAddress": null,
"cumulativeGasUsed": "0xf7e9ab",
"effectiveGasPrice": "0x50ead8e39",
"from": "0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5",
"gasUsed": "0x523f",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"to": "0xd4e96ef8eee8678dbff4d535e033ed1a4f7605b7",
"transactionHash": "0x6b2fe3575bc0e2b9220daf457d7bde7a118d8674b920a0c888bbf547d683d0b7",
"transactionIndex": "0x5d",
"type": "0x2"
}
}
}
]

152 changes: 152 additions & 0 deletions integration/mainnet/eth_getTransactionReceipt/test_06.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
[
{
"test": {
"reference": "https://etherscan.io/tx/0xc9ab90a1796613b0fbccb33827de583901d4c0775e89c0f25d604b7c3a71771e",
"description": "first tx on block 19M"
},
"request": {
"jsonrpc":"2.0",
"method":"eth_getTransactionReceipt",
"params":["0xc9ab90a1796613b0fbccb33827de583901d4c0775e89c0f25d604b7c3a71771e"],
"id":1
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"blockHash": "0xcf384012b91b081230cdf17a3f7dd370d8e67056058af6b272b3d54aa2714fac",
"blockNumber": "0x121eac0",
"contractAddress": null,
"cumulativeGasUsed": "0x32d10",
"effectiveGasPrice": "0x4abff88bc",
"from": "0x8ef57238cd4178eed96cd30a13cbc7448925328e",
"gasUsed": "0x32d10",
"logs": [
{
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"blockHash": "0xcf384012b91b081230cdf17a3f7dd370d8e67056058af6b272b3d54aa2714fac",
"blockNumber": "0x121eac0",
"data": "0x00000000000000000000000000000000000000000000000003d448b600000000",
"logIndex": "0x0",
"removed": false,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000001d0000f38cc10d0028474a9c180058b091",
"0x000000000000000000000000f5ad62af6f001072c9162d6532b903d894fccffd"
],
"transactionHash": "0xc9ab90a1796613b0fbccb33827de583901d4c0775e89c0f25d604b7c3a71771e",
"transactionIndex": "0x0"
},
{
"address": "0xf25f6d80a743fa1a6dbe33842177b2b2e38b1e49",
"blockHash": "0xcf384012b91b081230cdf17a3f7dd370d8e67056058af6b272b3d54aa2714fac",
"blockNumber": "0x121eac0",
"data": "0x0000000000000000000000000000000000000000000000002b0c830200000000",
"logIndex": "0x1",
"removed": false,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000f5ad62af6f001072c9162d6532b903d894fccffd",
"0x0000000000000000000000000000001d0000f38cc10d0028474a9c180058b091"
],
"transactionHash": "0xc9ab90a1796613b0fbccb33827de583901d4c0775e89c0f25d604b7c3a71771e",
"transactionIndex": "0x0"
},
{
"address": "0xf5ad62af6f001072c9162d6532b903d894fccffd",
"blockHash": "0xcf384012b91b081230cdf17a3f7dd370d8e67056058af6b272b3d54aa2714fac",
"blockNumber": "0x121eac0",
"data": "0x0000000000000000000000000000000000000000000000006b1191d283f012560000000000000000000000000000000000000000000000048c205b6a5e420eab",
"logIndex": "0x2",
"removed": false,
"topics": [
"0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1"
],
"transactionHash": "0xc9ab90a1796613b0fbccb33827de583901d4c0775e89c0f25d604b7c3a71771e",
"transactionIndex": "0x0"
},
{
"address": "0xf5ad62af6f001072c9162d6532b903d894fccffd",
"blockHash": "0xcf384012b91b081230cdf17a3f7dd370d8e67056058af6b272b3d54aa2714fac",
"blockNumber": "0x121eac0",
"data": "0x00000000000000000000000000000000000000000000000003d448b600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b0c830200000000",
"logIndex": "0x3",
"removed": false,
"topics": [
"0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822",
"0x0000000000000000000000000000001d0000f38cc10d0028474a9c180058b091",
"0x0000000000000000000000000000001d0000f38cc10d0028474a9c180058b091"
],
"transactionHash": "0xc9ab90a1796613b0fbccb33827de583901d4c0775e89c0f25d604b7c3a71771e",
"transactionIndex": "0x0"
},
{
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"blockHash": "0xcf384012b91b081230cdf17a3f7dd370d8e67056058af6b272b3d54aa2714fac",
"blockNumber": "0x121eac0",
"data": "0x0000000000000000000000000000000000000000000000000bbf6d1b00000000",
"logIndex": "0x4",
"removed": false,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000001d0000f38cc10d0028474a9c180058b091",
"0x00000000000000000000000087949af8b82b56bbd5ceceb046cd4e8901911d28"
],
"transactionHash": "0xc9ab90a1796613b0fbccb33827de583901d4c0775e89c0f25d604b7c3a71771e",
"transactionIndex": "0x0"
},
{
"address": "0x88f8ea35e55014faba05e562c98c4ee1cc4adc13",
"blockHash": "0xcf384012b91b081230cdf17a3f7dd370d8e67056058af6b272b3d54aa2714fac",
"blockNumber": "0x121eac0",
"data": "0x000000000000000000000000000000000000000000000000728040a800000000",
"logIndex": "0x5",
"removed": false,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000087949af8b82b56bbd5ceceb046cd4e8901911d28",
"0x0000000000000000000000000000001d0000f38cc10d0028474a9c180058b091"
],
"transactionHash": "0xc9ab90a1796613b0fbccb33827de583901d4c0775e89c0f25d604b7c3a71771e",
"transactionIndex": "0x0"
},
{
"address": "0x87949af8b82b56bbd5ceceb046cd4e8901911d28",
"blockHash": "0xcf384012b91b081230cdf17a3f7dd370d8e67056058af6b272b3d54aa2714fac",
"blockNumber": "0x121eac0",
"data": "0x000000000000000000000000000000000000000000000003ec7c59938d27a9f0000000000000000000000000000000000000000000000000727f99e26ec49442",
"logIndex": "0x6",
"removed": false,
"topics": [
"0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1"
],
"transactionHash": "0xc9ab90a1796613b0fbccb33827de583901d4c0775e89c0f25d604b7c3a71771e",
"transactionIndex": "0x0"
},
{
"address": "0x87949af8b82b56bbd5ceceb046cd4e8901911d28",
"blockHash": "0xcf384012b91b081230cdf17a3f7dd370d8e67056058af6b272b3d54aa2714fac",
"blockNumber": "0x121eac0",
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbf6d1b00000000000000000000000000000000000000000000000000000000728040a8000000000000000000000000000000000000000000000000000000000000000000000000",
"logIndex": "0x7",
"removed": false,
"topics": [
"0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822",
"0x0000000000000000000000000000001d0000f38cc10d0028474a9c180058b091",
"0x0000000000000000000000000000001d0000f38cc10d0028474a9c180058b091"
],
"transactionHash": "0xc9ab90a1796613b0fbccb33827de583901d4c0775e89c0f25d604b7c3a71771e",
"transactionIndex": "0x0"
}
],
"logsBloom": "0x00200000000010000000000080000000000000000000000000000000000000000000400200000000000000000000000002000000180000004000000000000000000000000000000000000008000000200000400000000088000001000800000000000000000000000000000000000000000000000000000000000010000000000008000000000004000000000000000000000000000200080000004008000000000000000000000000000000000008000000000000000000000000000000000000000012000000000000000000000000000000000000005000000010000000000000200100000000000000000000000000000000000000040008000000000000",
"status": "0x1",
"to": "0x0000001d0000f38cc10d0028474a9c180058b091",
"transactionHash": "0xc9ab90a1796613b0fbccb33827de583901d4c0775e89c0f25d604b7c3a71771e",
"transactionIndex": "0x0",
"type": "0x2"
}
}
}
]

Loading