Alter schema

This commit is contained in:
Gui Heise 2021-11-19 10:59:08 -05:00
parent a9859a0b12
commit 8c699ed7cc
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ def create_swap_from_transfers(
transaction_hash=trace.transaction_hash,
block_number=trace.block_number,
trace_address=trace.trace_address,
pool_address=pool_address,
contract_address=pool_address,
protocol=trace.protocol,
from_address=transfer_in.from_address,
to_address=transfer_out.to_address,

View File

@ -10,7 +10,7 @@ class Swap(BaseModel):
transaction_hash: str
block_number: int
trace_address: List[int]
pool_address: str
contract_address: str
from_address: str
to_address: str
token_in_address: str