Skip to content

Add automated daily snapshot collection for deployed market contracts #209

@joshuajbouw

Description

@joshuajbouw

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.near registry
  • Support pagination for contract discovery
  • Make transaction calls to get_current_snapshot on 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions