Skip to content

feat(reserve-analysis): add burn/refund holder table generator - #63

Open
thalescb wants to merge 1 commit into
masterfrom
feat/reserve-analysis-holder-table-script
Open

feat(reserve-analysis): add burn/refund holder table generator#63
thalescb wants to merge 1 commit into
masterfrom
feat/reserve-analysis-holder-table-script

Conversation

@thalescb

@thalescb thalescb commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Generates the burn/refund candidate table (current G$ held, G$ acquired, USD paid, remark) used in the ongoing reserve incident review.

  • Current-held: live balanceOf via public RPC, no credentials needed.
  • Acquired / USD paid: fetched from Dune query 8656320 via Dune's REST API (same pattern already used by projects/dashboard-scripts), needs only a free Dune API key. Falls back to a manual CSV export or a hardcoded snapshot if no key is available.
  • Remarks: auto-tagged from wallet-outflow-trace-out.json when present (burns, staking-contract transfers); anything requiring judgment is left blank.

Validated: fallback path runs end-to-end against live RPC. Dune API request/response handling (both the quick-fetch and the execute-and-poll paths) verified against mocked responses matching Dune's documented API shape; a live run with a real API key is the next step.

Generates the candidate table (current G$ held, G$ acquired, USD paid, remark) used for the burn/refund review. Current-held is a live balanceOf via public RPC. Acquired/USD paid fetch from Dune query 8656320 via Dune's REST API (same pattern as projects/dashboard-scripts), with a manual CSV export or a hardcoded snapshot as fallbacks. Auto-tags remarks from wallet-outflow-trace-out.json when present.
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.

1 participant