Add output to testing file to make sure all looks good
This commit is contained in:
parent
fd1b11927c
commit
0e45f22de8
@ -24,6 +24,12 @@ base_provider = Web3.HTTPProvider(args.rpc)
|
|||||||
|
|
||||||
## Get block data that we need
|
## Get block data that we need
|
||||||
block_data = block.create_from_block_number(args.block_number[0], base_provider)
|
block_data = block.create_from_block_number(args.block_number[0], base_provider)
|
||||||
|
print(f"Total traces: {len(block_data.traces)}")
|
||||||
|
|
||||||
|
total_transactions = len(
|
||||||
|
set(t.transaction_hash for t in block_data.traces if t.transaction_hash is not None)
|
||||||
|
)
|
||||||
|
print(f"Total transactions: {total_transactions}")
|
||||||
|
|
||||||
## Build a Uniswap inspector
|
## Build a Uniswap inspector
|
||||||
uniswap_inspector = UniswapInspector(base_provider)
|
uniswap_inspector = UniswapInspector(base_provider)
|
||||||
@ -31,4 +37,5 @@ uniswap_inspector = UniswapInspector(base_provider)
|
|||||||
## Create a processor, pass in an ARRAY of inspects
|
## Create a processor, pass in an ARRAY of inspects
|
||||||
processor = Processor([uniswap_inspector, uniswap_inspector])
|
processor = Processor([uniswap_inspector, uniswap_inspector])
|
||||||
|
|
||||||
processor.get_transaction_evaluations(block_data)
|
classifications = processor.get_transaction_evaluations(block_data)
|
||||||
|
print(f"Returned {len(classifications)} classifications")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user