Repository navigation
feat(snapshotters): add supply snapshotter (monthly total-supply samples) - #16
Closed
nimrod-teich wants to merge 0 commit into
Closed
nimrod-teich wants to merge 0 commit into
nimrod-teich wants to merge 0 commit into
Conversation
nimrod-teich
force-pushed
the
feat/supply-snapshotter
branch
from
April 22, 2026 21:04
bfb029f to
0f24a88
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Third sibling snapshotter alongside
provider_rewardsanddenom_prices. Captures Lava's totalulavasupply at each genesis-anchored monthly-17th slot; downstream consumers (info's/burn-rate) readapp.supply_snapshotsvia GraphQL and compute monthly burn locally.Stacked on #15 — base is `feat/provider-rewards-snapshotter`. Will rebase onto main after #15 merges.
What it does
app.supply_snapshots (snapshot_date PK, block_height, block_time, snapshot_at, total_supply NUMERIC(40,0), status, error).Config
```yaml
snapshotters:
handlers: ["all"]
supply:
rest_url: "" # optional; inherits main REST endpoint
rest_headers: {} # e.g. lava-extension: archive
earliest_date: "" # optional floor; empty = from genesis
```
Env: `SUPPLY_REST_URL`.
Test plan
Consumer
Follow-up commit on info PR #44 rewrites `/burn-rate` to query `allSupplySnapshots` — it degrades gracefully (returns `blocks: []`) until this indexer PR ships and the table is populated.