Luca G.F f24a802de5
Add total profit by block table in db (#6)
* feat: add new alembic migration

Signed-off-by: Luca Georges Francois <luca@quartz.technology>

* feat: add method to store total profits in bulk

Signed-off-by: Luca Georges Francois <luca@quartz.technology>

Signed-off-by: Luca Georges Francois <luca@quartz.technology>
2022-12-27 16:33:22 +00:00

11 lines
202 B
Python

from pydantic import BaseModel
class TotalProfits(BaseModel):
block_number: int
transaction_hash: str
token_debt: str
amount_debt: int
token_received: str
amount_received: int