-
Notifications
You must be signed in to change notification settings - Fork 8
Add automated daily snapshot collection for deployed market contracts #209
Copy link
Copy link
Open
Labels
complexity-mediumModerate estimated workloadModerate estimated workload
Description
Currently there's no automated way to trigger get_current_snapshot calls across all deployed market contracts. This limits our ability to maintain up-to-date analytics data and requires manual intervention to collect market snapshots.
Goal: Implement an automated daily snapshot collection system that discovers all deployed contracts from the registry and calls get_current_snapshot on each one via blockchain transactions.
Changes needed:
- Create bash script using NEAR CLI that fetches all deployed contracts from
v1.tmplr.nearregistry - Support pagination for contract discovery
- Make transaction calls to
get_current_snapshoton each contract to write analytics data to chain - Support CLI format: --account account.near --private-key "ed25519:..."
This change enables automated analytics data collection and ensures our monitoring systems have consistent, up-to-date market snapshots without manual intervention.
Follow up, this needs to be added as a cron job.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
complexity-mediumModerate estimated workloadModerate estimated workload