Skip to content

Commit

Permalink
Adds test cases to ethslurp
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Feb 5, 2024
1 parent 16d57af commit 5248bae
Show file tree
Hide file tree
Showing 17 changed files with 1,128 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/dev_tools/testRunner/testCases/tools/ethslurp.csv
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ on ,both ,slow ,slurp ,tools/ethslurp ,type_miner_csv ,n ,addrs =
on ,both ,slow ,slurp ,tools/ethslurp ,appearances ,y ,addrs = 0x9519afbc60719a83c470ceec41e32d3e4b8b262e & types = token & blocks = 0-1500000 & appearances & fmt = json
on ,both ,slow ,slurp ,tools/ethslurp ,appearances_csv ,n ,addrs = 0x9519afbc60719a83c470ceec41e32d3e4b8b262e & types = token & blocks = 0-1500000 & appearances & fmt = csv

on ,both ,slow ,slurp ,tools/ethslurp ,bad_source ,y ,addrs = 0x9519afbc60719a83c470ceec41e32d3e4b8b262e & blocks = 0-1500000 & source = bad & fmt = json
on ,both ,slow ,slurp ,tools/ethslurp ,not_apps_es ,y ,addrs = 0x9519afbc60719a83c470ceec41e32d3e4b8b262e & blocks = 0-1500000 & source = etherscan & fmt = json
on ,both ,slow ,slurp ,tools/ethslurp ,not_apps_key ,y ,addrs = 0x9519afbc60719a83c470ceec41e32d3e4b8b262e & blocks = 0-1500000 & source = key & fmt = json
on ,both ,slow ,slurp ,tools/ethslurp ,apps_es ,y ,addrs = 0x9519afbc60719a83c470ceec41e32d3e4b8b262e & blocks = 0-1500000 & appearances & source = etherscan & fmt = json
on ,both ,slow ,slurp ,tools/ethslurp ,apps_key_type ,y ,addrs = 0x9519afbc60719a83c470ceec41e32d3e4b8b262e & blocks = 0-1500000 & types = ext & appearances & source = key & fmt = json
on ,both ,slow ,slurp ,tools/ethslurp ,apps_key ,y ,addrs = 0x9519afbc60719a83c470ceec41e32d3e4b8b262e & blocks = 0-1500000 & appearances & source = key & fmt = json
on ,both ,slow ,slurp ,tools/ethslurp ,count_not_key ,y ,addrs = 0x9519afbc60719a83c470ceec41e32d3e4b8b262e & blocks = 0-1500000 & appearances & source = etherscan & count & fmt = json
on ,both ,slow ,slurp ,tools/ethslurp ,count_key ,y ,addrs = 0x9519afbc60719a83c470ceec41e32d3e4b8b262e & blocks = 0-1500000 & appearances & source = key & count & fmt = json

on ,both ,medi ,slurp ,tools/ethslurp ,ens_test ,y ,addrs = wolfofethereum.eth & types = int & blocks = 12524380-13675400 & fmt = json
on ,both ,medi ,slurp ,tools/ethslurp ,block_range ,y ,addrs = 0x63c8c29af409bd31ec7ddeea58ff14f21e8980b0 & blocks = 4186279-4186301 & fmt = json

Expand Down
110 changes: 110 additions & 0 deletions test/gold/tools/ethslurp/api_tests/ethslurp_apps_es.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
slurp?addrs=0x9519afbc60719a83c470ceec41e32d3e4b8b262e&blocks=0-1500000&appearances&source=etherscan&fmt=json
{
"data": [
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1383378,
"transactionIndex": 7
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1385649,
"transactionIndex": 1
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1386522,
"transactionIndex": 0
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1386735,
"transactionIndex": 2
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1395423,
"transactionIndex": 0
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1410065,
"transactionIndex": 2
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1410101,
"transactionIndex": 0
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1421461,
"transactionIndex": 1
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1429678,
"transactionIndex": 1
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1430958,
"transactionIndex": 0
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1431182,
"transactionIndex": 0
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1433348,
"transactionIndex": 0
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1434017,
"transactionIndex": 1
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1434025,
"transactionIndex": 6
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1440785,
"transactionIndex": 2
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1470405,
"transactionIndex": 0
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1488784,
"transactionIndex": 0
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1491735,
"transactionIndex": 6
},
{
"address": "0x9519afbc60719a83c470ceec41e32d3e4b8b262e",
"blockNumber": 1491745,
"transactionIndex": 5
}
],
"meta": {
"client": "0xdeadbeef",
"finalized": "0xdeadbeef",
"staging": "0xdeadbeef",
"ripe": "0xdeadbeef",
"unripe": "0xdeadbeef",
"chainId": 1,
"networkId": 1,
"chain": "mainnet"
}
}
6 changes: 6 additions & 0 deletions test/gold/tools/ethslurp/api_tests/ethslurp_apps_key.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
slurp?addrs=0x9519afbc60719a83c470ceec41e32d3e4b8b262e&blocks=0-1500000&appearances&source=key&fmt=json
{
"errors": [
"The --source=key option is only available with a valid api key."
]
}
6 changes: 6 additions & 0 deletions test/gold/tools/ethslurp/api_tests/ethslurp_apps_key_type.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
slurp?addrs=0x9519afbc60719a83c470ceec41e32d3e4b8b262e&blocks=0-1500000&types=ext&appearances&source=key&fmt=json
{
"errors": [
"The --source=key option is only available with a valid api key."
]
}
6 changes: 6 additions & 0 deletions test/gold/tools/ethslurp/api_tests/ethslurp_bad_source.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
slurp?addrs=0x9519afbc60719a83c470ceec41e32d3e4b8b262e&blocks=0-1500000&source=bad&fmt=json
{
"errors": [
"The --source option (bad) must be one of [ etherscan | key ]"
]
}
6 changes: 6 additions & 0 deletions test/gold/tools/ethslurp/api_tests/ethslurp_count_key.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
slurp?addrs=0x9519afbc60719a83c470ceec41e32d3e4b8b262e&blocks=0-1500000&appearances&source=key&count&fmt=json
{
"errors": [
"The --source=key option is only available with a valid api key."
]
}
6 changes: 6 additions & 0 deletions test/gold/tools/ethslurp/api_tests/ethslurp_count_not_key.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
slurp?addrs=0x9519afbc60719a83c470ceec41e32d3e4b8b262e&blocks=0-1500000&appearances&source=etherscan&count&fmt=json
{
"errors": [
"The --count option is only available with --source=key."
]
}
Loading

0 comments on commit 5248bae

Please sign in to comment.