Forgot to install pre-commit
This commit is contained in:
parent
127debab18
commit
0d2d651f60
@ -15,7 +15,8 @@ ABI_DIRECTORY_PATH = THIS_FILE_DIRECTORY / "abis"
|
|||||||
def get_abi(abi_name: str, protocol: Optional[Protocol]) -> Optional[ABI]:
|
def get_abi(abi_name: str, protocol: Optional[Protocol]) -> Optional[ABI]:
|
||||||
abi_filename = f"{abi_name}.json"
|
abi_filename = f"{abi_name}.json"
|
||||||
abi_path = (
|
abi_path = (
|
||||||
ABI_DIRECTORY_PATH / abi_filename if protocol is None
|
ABI_DIRECTORY_PATH / abi_filename
|
||||||
|
if protocol is None
|
||||||
else ABI_DIRECTORY_PATH / protocol.value / abi_filename
|
else ABI_DIRECTORY_PATH / protocol.value / abi_filename
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ UNISWAP_V3_CONTRACT_SPECS = [
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
UNISWAP_V3_POOL_SPEC = ClassifierSpec(
|
UNISWAP_V3_POOL_SPEC = ClassifierSpec(
|
||||||
abi_name="UniswapV3Pool",
|
abi_name="UniswapV3Pool",
|
||||||
classifications={
|
classifications={
|
||||||
"swap(address,bool,int256,uint160,bytes)": Classification.swap,
|
"swap(address,bool,int256,uint160,bytes)": Classification.swap,
|
||||||
|
@ -54,8 +54,7 @@ class TraceClassifier:
|
|||||||
for spec in self._classifier_specs:
|
for spec in self._classifier_specs:
|
||||||
if spec.valid_contract_addresses is not None:
|
if spec.valid_contract_addresses is not None:
|
||||||
lower_valid_addresses = {
|
lower_valid_addresses = {
|
||||||
address.lower()
|
address.lower() for address in spec.valid_contract_addresses
|
||||||
for address in spec.valid_contract_addresses
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if action.to not in lower_valid_addresses:
|
if action.to not in lower_valid_addresses:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user