You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: Schema work backing the Wallet Dashboard's balance-history endpoint (#26).
Where:
New migrations/033_create_wallet_balance_history.sql
What to do:
Table for periodic per-wallet balance snapshots (address, asset, balance, snapshot_time).
Suggested approach:
Table: address, asset, balance, snapshot_time -- straightforward, but think about the primary key/uniqueness constraint (one row per address+asset+snapshot_time) up front.
This table could grow very large very fast if snapshotting isn't scoped to "wallets someone has actually queried" (per Add /api/v1/wallets/{address}/balance-history endpoint #26's note) -- don't snapshot the whole network by default.
Context: Schema work backing the Wallet Dashboard's balance-history endpoint (#26).
Where:
migrations/033_create_wallet_balance_history.sqlWhat to do:
Suggested approach:
Watch out for:
Definition of done: