* 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>
20 lines
457 B
Python
20 lines
457 B
Python
from typing import List, Optional
|
|
|
|
from pydantic import BaseModel
|
|
|
|
from mev_inspect.schemas.traces import Protocol
|
|
|
|
|
|
class Liquidation(BaseModel):
|
|
liquidated_user: str
|
|
liquidator_user: str
|
|
debt_token_address: str
|
|
debt_purchase_amount: int
|
|
received_amount: int
|
|
received_token_address: Optional[str]
|
|
protocol: Optional[Protocol]
|
|
transaction_hash: str
|
|
trace_address: List[int]
|
|
block_number: str
|
|
error: Optional[str]
|