Eru Ilúvatar eaf2698d7e
feat: add polygon logs processing - Closes #issue-8 (#11)
* feat: add polygon logs processing Closes #issue-8

Signed-off-by: Arthurim <arthurbdauphine@gmail.com>

* fix: remove unused variables

Signed-off-by: Arthurim <arthurbdauphine@gmail.com>

* fix: add inspect db

Signed-off-by: Arthurim <arthurbdauphine@gmail.com>

* fix: remove parenthesis

Signed-off-by: Arthurim <arthurbdauphine@gmail.com>

Signed-off-by: Arthurim <arthurbdauphine@gmail.com>
2022-12-22 10:31:03 +00:00

23 lines
505 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: Optional[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: Optional[Protocol]
error: Optional[str]