Enforce data typpe for helpers
This commit is contained in:
parent
cfba66fb4d
commit
27b318dacd
@ -1,7 +1,11 @@
|
||||
from typing import List
|
||||
|
||||
from mev_inspect.schemas.blocks import TraceType
|
||||
from mev_inspect.schemas.classified_traces import Classification, ClassifiedTrace
|
||||
from mev_inspect.schemas.classified_traces import (
|
||||
Classification,
|
||||
ClassifiedTrace,
|
||||
ClassifiedCallData,
|
||||
)
|
||||
|
||||
|
||||
def make_transfer_trace(
|
||||
@ -13,7 +17,7 @@ def make_transfer_trace(
|
||||
token_address: str,
|
||||
amount: int,
|
||||
):
|
||||
return ClassifiedTrace(
|
||||
return ClassifiedCallData(
|
||||
transaction_hash=transaction_hash,
|
||||
block_number=block_number,
|
||||
trace_type=TraceType.call,
|
||||
@ -38,7 +42,7 @@ def make_swap_trace(
|
||||
recipient_address: str,
|
||||
recipient_input_key: str,
|
||||
):
|
||||
return ClassifiedTrace(
|
||||
return ClassifiedCallData(
|
||||
transaction_hash=transaction_hash,
|
||||
block_number=block_number,
|
||||
trace_type=TraceType.call,
|
||||
|
Loading…
x
Reference in New Issue
Block a user