23 lines
485 B
Python

from typing import List, Optional
from pydantic import BaseModel
from mev_inspect.schemas.traces import Protocol
class Swap(BaseModel):
abi_name: str
transaction_hash: str
transaction_position: int
block_number: int
trace_address: List[int]
contract_address: str
from_address: str
to_address: str
token_in_address: str
token_in_amount: int
token_out_address: str
token_out_amount: int
protocol: Protocol
error: Optional[str]