Skip to content

Commit

Permalink
integration: eth_getLogs extra tests (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sixtysixter authored Dec 12, 2024
1 parent b8c4c19 commit 4a2afe0
Show file tree
Hide file tree
Showing 10 changed files with 1,947 additions and 0 deletions.
30 changes: 30 additions & 0 deletions integration/mainnet/eth_getLogs/test_11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getLogs",
"params": [
{
"address": [],
"fromBlock": "0x5B8D80",
"toBlock": "0x5B8D82",
"topics": [
[
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4d00000000"
]
]
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": []
},
"test": {
"description": "logs in the range with topic and no address",
"reference": ""
}
}
]
Binary file added integration/mainnet/eth_getLogs/test_12.tar
Binary file not shown.
104 changes: 104 additions & 0 deletions integration/mainnet/eth_getLogs/test_13.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getLogs",
"params": [
{
"address": [
"0xA62142888ABa8370742bE823c1782D17A0389Da1"
],
"fromBlock": "0x5B8D80",
"toBlock": "0x5B8D82",
"topics": [
[
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x8f36579a548bc439baa172a6521207464154da77f411e2da3db2f53affe6cc3a"
]
]
}
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"address": "0xa62142888aba8370742be823c1782d17a0389da1",
"blockHash": "0xbe847be2bceb74e660daf96b3f0669d58f59dc9101715689a00ef864a5408f43",
"blockNumber": "0x5b8d80",
"data": "0x00000000000000000000000081a1814eb59da93769818a107416e19585fc888d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003434dfc6e00ea17000000000000000000000000000000000000000000000000000000005b524624",
"logIndex": "0x11",
"removed": false,
"topics": [
"0x8f36579a548bc439baa172a6521207464154da77f411e2da3db2f53affe6cc3a",
"0x00000000000000000000000000000000000000000000000000000000000018c8"
],
"transactionHash": "0xf1656b705b1d705b0bc9f6adc0f8584618ea4b6fe0de67fa8392768471197d17",
"transactionIndex": "0x20"
},
{
"address": "0xa62142888aba8370742be823c1782d17a0389da1",
"blockHash": "0xbe847be2bceb74e660daf96b3f0669d58f59dc9101715689a00ef864a5408f43",
"blockNumber": "0x5b8d80",
"data": "0x000000000000000000000000725ee10585210e857447f24079e7cc25e9f599580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034ba6245562864b000000000000000000000000000000000000000000000000000000005b524624",
"logIndex": "0x2d",
"removed": false,
"topics": [
"0x8f36579a548bc439baa172a6521207464154da77f411e2da3db2f53affe6cc3a",
"0x00000000000000000000000000000000000000000000000000000000000015ca"
],
"transactionHash": "0xbb1b29bbaddb27aa333ef4743d343a353a7c66952d404ebf86d9872c7235951e",
"transactionIndex": "0x43"
},
{
"address": "0xa62142888aba8370742be823c1782d17a0389da1",
"blockHash": "0xa618c3ac198431ead17dd143f3fab8a73da6a3c506764dff84108bd06f72eb82",
"blockNumber": "0x5b8d81",
"data": "0x0000000000000000000000006e7b9ddd3ec5ce98a720ce5fee3b97e74e53f2d5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005005eceb4c3189e000000000000000000000000000000000000000000000000000000005b524639",
"logIndex": "0x20",
"removed": false,
"topics": [
"0x8f36579a548bc439baa172a6521207464154da77f411e2da3db2f53affe6cc3a",
"0x00000000000000000000000000000000000000000000000000000000000018c9"
],
"transactionHash": "0xd313375f1c3b2009b77ae7be753bc233df8b6c449eea4d4d221fec8ff1ceb2af",
"transactionIndex": "0x23"
},
{
"address": "0xa62142888aba8370742be823c1782d17a0389da1",
"blockHash": "0xa618c3ac198431ead17dd143f3fab8a73da6a3c506764dff84108bd06f72eb82",
"blockNumber": "0x5b8d81",
"data": "0x0000000000000000000000007253ba8c85efc0681a021e884ee08b9ff953bbe20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005e033592c5f21b000000000000000000000000000000000000000000000000000000005b524639",
"logIndex": "0x2a",
"removed": false,
"topics": [
"0x8f36579a548bc439baa172a6521207464154da77f411e2da3db2f53affe6cc3a",
"0x00000000000000000000000000000000000000000000000000000000000007e7"
],
"transactionHash": "0xba6895fb679796f368d2f78f6ca9d2107faa7b9762d4d698bf87dcd767713154",
"transactionIndex": "0x46"
},
{
"address": "0xa62142888aba8370742be823c1782d17a0389da1",
"blockHash": "0x6b855d4ca375a859bb00ee9a70b0e51bcefac0b075e5855a39bc9e361005af89",
"blockNumber": "0x5b8d82",
"data": "0x000000000000000000000000207333e1a7e15fee6adad7b1fe59b947e9039d74776f6a61636b207072696d65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004af72a0f2ed1e85000000000000000000000000000000000000000000000000000000005b524653",
"logIndex": "0x35",
"removed": false,
"topics": [
"0x8f36579a548bc439baa172a6521207464154da77f411e2da3db2f53affe6cc3a",
"0x000000000000000000000000000000000000000000000000000000000000024d"
],
"transactionHash": "0xa3c4a1b3bb3d9aae35105f1609cc2841ac3a88600fb42a8e3ad46688566cf257",
"transactionIndex": "0x3a"
}
]
},
"test": {
"description": "logs in the range with topic and address",
"reference": ""
}
}
]
Binary file added integration/mainnet/eth_getLogs/test_14.tar
Binary file not shown.
Loading

0 comments on commit 4a2afe0

Please sign in to comment.