From 4e4427b059ac35aa2d5b3680f30ae0d12c5485e7 Mon Sep 17 00:00:00 2001 From: Patrick Daly Date: Fri, 13 Aug 2021 13:30:39 -0700 Subject: [PATCH] changed ordering of the specs to prefer contract level classification --- mev_inspect/block.py | 4 ++-- mev_inspect/classifiers/specs/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mev_inspect/block.py b/mev_inspect/block.py index 821f031..6589e26 100644 --- a/mev_inspect/block.py +++ b/mev_inspect/block.py @@ -51,7 +51,7 @@ def fetch_block(w3, base_provider, block_number: int) -> Block: ## Get gas used by individual txs and store them too txs_gas_data: Dict[str, Dict[str, Any]] = {} - + """ for transaction in block_data["transactions"]: tx_hash = (transaction.hash).hex() tx_data = w3.eth.get_transaction(tx_hash) @@ -63,7 +63,7 @@ def fetch_block(w3, base_provider, block_number: int) -> Block: "gasPrice": tx_data["gasPrice"], "netFeePaid": tx_data["gasPrice"] * tx_receipt["gasUsed"], } - + """ transaction_hashes = get_transaction_hashes(traces) ## Create a new object diff --git a/mev_inspect/classifiers/specs/__init__.py b/mev_inspect/classifiers/specs/__init__.py index c185033..179cc74 100644 --- a/mev_inspect/classifiers/specs/__init__.py +++ b/mev_inspect/classifiers/specs/__init__.py @@ -1,4 +1,4 @@ from .uniswap import UNISWAP_CLASSIFIER_SPECS from .curve import CURVE_CLASSIFIER_SPECS -ALL_CLASSIFIER_SPECS = UNISWAP_CLASSIFIER_SPECS + CURVE_CLASSIFIER_SPECS +ALL_CLASSIFIER_SPECS = CURVE_CLASSIFIER_SPECS + UNISWAP_CLASSIFIER_SPECS