Skip to content

Commit

Permalink
partial restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Oct 16, 2024
1 parent 7dd2e55 commit 2cac0df
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 403 deletions.
9 changes: 2 additions & 7 deletions src/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ def main() -> None:
process_fees = False
process_prices = True

web3, db_engine = initialize_connections()
blockchain = BlockchainData(web3)
db = Database(db_engine, chain_name)

if chain_name == "arbitrum_one":
process_imbalances = False
process_prices = False
Expand All @@ -28,11 +24,10 @@ def main() -> None:
process_prices = False

processor = TransactionProcessor(
blockchain, db, chain_name, process_imbalances, process_fees, process_prices
chain_name, process_imbalances, process_fees, process_prices
)

start_block = processor.get_start_block()
processor.process(start_block)
processor.run()


if __name__ == "__main__":
Expand Down
356 changes: 0 additions & 356 deletions src/imbalances_script.py

This file was deleted.

Loading

0 comments on commit 2cac0df

Please sign in to comment.