Add types to lists
This commit is contained in:
parent
e93a78b8ce
commit
8d1242f760
@ -1,6 +1,7 @@
|
|||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from mev_inspect.schemas.classified_traces import (
|
from mev_inspect.schemas.classified_traces import (
|
||||||
|
ClassifiedTrace,
|
||||||
DecodedCallTrace,
|
DecodedCallTrace,
|
||||||
Classification,
|
Classification,
|
||||||
)
|
)
|
||||||
@ -19,9 +20,9 @@ def find_liquidations_from_traces(
|
|||||||
traces: List[Liquidation],
|
traces: List[Liquidation],
|
||||||
) -> List:
|
) -> List:
|
||||||
"""Inspect list of classified traces and identify liquidation"""
|
"""Inspect list of classified traces and identify liquidation"""
|
||||||
seen_transactions = []
|
seen_transactions: List[str] = []
|
||||||
liquidations = []
|
liquidations: List[ClassifiedTrace] = []
|
||||||
result = []
|
result: List[Liquidation] = []
|
||||||
|
|
||||||
for trace in traces:
|
for trace in traces:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user