Skip to content

Commit

Permalink
integration: eth_getLogs new tests + enable for e3 (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sixtysixter authored Dec 10, 2024
1 parent 9be7098 commit b8c4c19
Show file tree
Hide file tree
Showing 12 changed files with 344 additions and 51 deletions.
59 changes: 37 additions & 22 deletions integration/mainnet/eth_getLogs/test_01.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,42 @@
[
{
"test": {
"reference": "",
"description": "logs in the range without topics"
},
"request": {
"jsonrpc":"2.0",
"method":"eth_getLogs",
"params":[
{
"fromBlock": "0xaaa98c",
"toBlock": "0xaaad74",
"address": ["0x00000000219ab540356cbb839cbe05303d7705fa"],
"topics": null
}
],
"id":3
},
"response": {
"jsonrpc":"2.0",
"id":3,
"result":null
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getLogs",
"params": [
{
"address": [
"0x00000000219ab540356cbb839cbe05303d7705fa"
],
"fromBlock": "0xaaa98c",
"toBlock": "0xaaad74",
"topics": []
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"address": "0x00000000219ab540356cbb839cbe05303d7705fa",
"blockHash": "0x1ecb9dd23676c9201af1e8026e7d83a1f979b8abd381064fba0b593fcff7b235",
"blockNumber": "0xaaac9f",
"data": "0x00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000030933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f7329267a8811c397529dac52ae1342ba58c9500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000f50428677c60f997aadeab24aabf7fceaef491c96a52b463ae91f95611cf71000000000000000000000000000000000000000000000000000000000000000800ca9a3b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060a29d01cc8c6296a8150e515b5995390ef841dc18948aa3e79be6d7c1851b4cbb5d6ff49fa70b9c782399506a22a85193151b9b691245cebafd2063012443c1324b6c36debaedefb7b2d71b0503ffdc00150aaffd42e63358238ec888901738b800000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000",
"logIndex": "0x83",
"removed": false,
"topics": [
"0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"
],
"transactionHash": "0x7085c586686d666e8bb6e9477a0f0b09565b2060a11f1c4209d3a52295033832",
"transactionIndex": "0x68"
}
]
},
"test": {
"description": "logs in the range with address",
"reference": ""
}
}
]

27 changes: 0 additions & 27 deletions integration/mainnet/eth_getLogs/test_02.json

This file was deleted.

Binary file added integration/mainnet/eth_getLogs/test_02.tar
Binary file not shown.
48 changes: 48 additions & 0 deletions integration/mainnet/eth_getLogs/test_03.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getLogs",
"params": [
{
"address": [
"0xFd7f243f315B3C5b6E45F8383cBB20d71C9661d4"
],
"fromBlock": "0x10B10B2",
"toBlock": "0x10B10B3",
"topics": [
[
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
]
]
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"address": "0xfd7f243f315b3c5b6e45f8383cbb20d71c9661d4",
"blockHash": "0xa60d4fb05516ddbb026d5d866c7a27e196e7674911c0f45e9753d2d675f0ee44",
"blockNumber": "0x10b10b2",
"data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"logIndex": "0x138",
"removed": false,
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x0000000000000000000000001c7e7d614001575bf1b1c9f8a4e2ff79c8088888",
"0x000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3"
],
"transactionHash": "0x7da53ecc9d091339a9d95f4cb6a84f91b5f476532895de62ee04148d74c3e120",
"transactionIndex": "0xfb"
}
]
},
"test": {
"description": "logs in the range with topic and address",
"reference": ""
}
}
]
Binary file added integration/mainnet/eth_getLogs/test_04.tar
Binary file not shown.
36 changes: 36 additions & 0 deletions integration/mainnet/eth_getLogs/test_05.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getLogs",
"params": [
{
"address": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x7f268357A8c2552623316e2562D90e642bB538E5"
],
"fromBlock": "0xF42400",
"toBlock": "0xF42404",
"topics": [
[
"0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c"
],
[
"0x5152abf959f6564662358c2e52b702259b78bac5ee7842a0f01937e670efcc7d"
]
]
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": []
},
"test": {
"description": "logs in the range with topic and address",
"reference": ""
}
}
]
Binary file added integration/mainnet/eth_getLogs/test_06.tar
Binary file not shown.
Binary file added integration/mainnet/eth_getLogs/test_07.tar
Binary file not shown.
94 changes: 94 additions & 0 deletions integration/mainnet/eth_getLogs/test_08.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getLogs",
"params": [
{
"address": [
"0x2a0c0DBEcC7E4D658f48E01e3fA353F44050c208"
],
"fromBlock": "0x5B8D80",
"toBlock": "0x5B8D82",
"topics": []
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"address": "0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208",
"blockHash": "0xbe847be2bceb74e660daf96b3f0669d58f59dc9101715689a00ef864a5408f43",
"blockNumber": "0x5b8d80",
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b2d5ff4554828b1bbf48f37e673483c285eeade200000000000000000000000000000000000000000000000015621152442ced7d0000000000000000000000000000000000000000000000000000000000000000",
"logIndex": "0x25",
"removed": false,
"topics": [
"0xf341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567"
],
"transactionHash": "0x1b34b369260945025ae8980001f31aadfaca0227f20a8c978cf78de4e022b0fd",
"transactionIndex": "0x37"
},
{
"address": "0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208",
"blockHash": "0xbe847be2bceb74e660daf96b3f0669d58f59dc9101715689a00ef864a5408f43",
"blockNumber": "0x5b8d80",
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e37326866418b5d70d71ab15a79da18e527b8d600000000000000000000000000000000000000000000000000417f143592153400000000000000000000000000000000000000000000000000000000000000000",
"logIndex": "0x26",
"removed": false,
"topics": [
"0xf341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567"
],
"transactionHash": "0xb9af2fe9bcbec66b884f74a306ee3ea3f777700688fb9561b9639c36dabc343c",
"transactionIndex": "0x39"
},
{
"address": "0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208",
"blockHash": "0xbe847be2bceb74e660daf96b3f0669d58f59dc9101715689a00ef864a5408f43",
"blockNumber": "0x5b8d80",
"data": "0x000000000000000000000000e1aee98495365fc179699c1bb3e761fa716bee620000000000000000000000000e959a7b09a10ea4dacfaeb40c40c1d89f32f4980000000000000000000000000000000000000000000002b2c1f7f4393a985c520000000000000000000000000000000000000000000000000000000000000000",
"logIndex": "0x28",
"removed": false,
"topics": [
"0xf341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567"
],
"transactionHash": "0x2a1e7f34d625cb2538397435eac6461ba4d3c5e707054c32a94305789404dfb7",
"transactionIndex": "0x3a"
},
{
"address": "0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208",
"blockHash": "0xbe847be2bceb74e660daf96b3f0669d58f59dc9101715689a00ef864a5408f43",
"blockNumber": "0x5b8d80",
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088e68ff66771bc538a61074a8dccdfdddaf7606a0000000000000000000000000000000000000000000000000467b7380605bc000000000000000000000000000000000000000000000000000467b7380605bc01",
"logIndex": "0x2c",
"removed": false,
"topics": [
"0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7"
],
"transactionHash": "0x191e7120ccd3e312d686576c546439cf33d21c8cafa6381bb8216ac9bd890fe4",
"transactionIndex": "0x41"
},
{
"address": "0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208",
"blockHash": "0x6b855d4ca375a859bb00ee9a70b0e51bcefac0b075e5855a39bc9e361005af89",
"blockNumber": "0x5b8d82",
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e9a59cf718c7ddbc4e0dab90625afb87be27f87f000000000000000000000000000000000000000000000000b469471f80140000000000000000000000000000000000000000000000000000cfb45b01ba33f88c",
"logIndex": "0x22",
"removed": false,
"topics": [
"0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7"
],
"transactionHash": "0x6041104056e5c330bdced9a5bd4eeebc97e93077b04d17bd65ba6041c4e4946b",
"transactionIndex": "0x1f"
}
]
},
"test": {
"description": "logs in the range with address and no topics",
"reference": ""
}
}
]
59 changes: 59 additions & 0 deletions integration/mainnet/eth_getLogs/test_09.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getLogs",
"params": [
{
"address": [
"0x2a0c0DBEcC7E4D658f48E01e3fA353F44050c208"
],
"fromBlock": "0x5B8D80",
"toBlock": "0x5B8D82",
"topics": [
[
"0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7"
]
]
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"address": "0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208",
"blockHash": "0xbe847be2bceb74e660daf96b3f0669d58f59dc9101715689a00ef864a5408f43",
"blockNumber": "0x5b8d80",
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088e68ff66771bc538a61074a8dccdfdddaf7606a0000000000000000000000000000000000000000000000000467b7380605bc000000000000000000000000000000000000000000000000000467b7380605bc01",
"logIndex": "0x2c",
"removed": false,
"topics": [
"0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7"
],
"transactionHash": "0x191e7120ccd3e312d686576c546439cf33d21c8cafa6381bb8216ac9bd890fe4",
"transactionIndex": "0x41"
},
{
"address": "0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208",
"blockHash": "0x6b855d4ca375a859bb00ee9a70b0e51bcefac0b075e5855a39bc9e361005af89",
"blockNumber": "0x5b8d82",
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e9a59cf718c7ddbc4e0dab90625afb87be27f87f000000000000000000000000000000000000000000000000b469471f80140000000000000000000000000000000000000000000000000000cfb45b01ba33f88c",
"logIndex": "0x22",
"removed": false,
"topics": [
"0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7"
],
"transactionHash": "0x6041104056e5c330bdced9a5bd4eeebc97e93077b04d17bd65ba6041c4e4946b",
"transactionIndex": "0x1f"
}
]
},
"test": {
"description": "logs in the range with topic and address",
"reference": ""
}
}
]
Loading

0 comments on commit b8c4c19

Please sign in to comment.