Skip to content

Calculate daily supply for every token from finalized outputs - #686

Open
startupcompliancekit wants to merge 1 commit into
alephium:masterfrom
startupcompliancekit:fix-571-daily-token-supply
Open

startupcompliancekit wants to merge 1 commit into
alephium:masterfrom
startupcompliancekit:fix-571-daily-token-supply

Conversation

@startupcompliancekit

Copy link
Copy Markdown

Closes #571.

Store daily total-supply snapshots for every token ID from unspent canonical outputs, including reserved and locked balances. Preserve zero totals after full spending/burning, use an independent transactional checkpoint, wait for the slowest chain and finalizer, and expose paginated history through /tokens/{token_id}/supply.

Validation: 26 database/API tests passed, including full HTTP OpenAPI comparison; formatting and lint passed. All seven backend patches also passed 134 tests together. The README documents writer-first rollout, initial backfill cost and the existing limitation for reorganizations of already-finalized historical days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce supply computation for all tokens

1 participant