From aa82ee8ea33d67795ac35f1c3dbacdf66370c125 Mon Sep 17 00:00:00 2001 From: Robert Miller Date: Mon, 28 Jun 2021 17:30:11 -0400 Subject: [PATCH] test file, beginning of processor --- block.py | 1 + processor.py | 6 ++++++ test.py | 8 ++++++++ 3 files changed, 15 insertions(+) create mode 100644 processor.py create mode 100644 test.py diff --git a/block.py b/block.py index d43bfc9..12460a9 100644 --- a/block.py +++ b/block.py @@ -8,6 +8,7 @@ w3 = Web3(base_provider) cache_directoty = './cache' + class BlockData: def __init__(self, block_number, data, receipts, calls, logs) -> None: self.block_number = block_number diff --git a/processor.py b/processor.py new file mode 100644 index 0000000..b8cfd4c --- /dev/null +++ b/processor.py @@ -0,0 +1,6 @@ + + +def get_transaction_evaluations(block_data): + for transaction_hash in block_data.transaction_hashes: + calls = block_data.get_filtered_calls(transaction_hash) + print(calls) \ No newline at end of file diff --git a/test.py b/test.py new file mode 100644 index 0000000..2e99d8c --- /dev/null +++ b/test.py @@ -0,0 +1,8 @@ +import block +test_block_num = 12412732 + +block_data = block.createFromBlockNumber(test_block_num) + +for transaction_hash in block_data.transaction_hashes: + calls = block_data.get_filtered_calls(transaction_hash) + print(calls) \ No newline at end of file