Skip to content

docs(querying-tempo): interactive SQL queries with IndexSupplyQuery#401

Open
decofe wants to merge 7 commits into
mainfrom
mmp/docs-querying-tempo-interactive
Open

docs(querying-tempo): interactive SQL queries with IndexSupplyQuery#401
decofe wants to merge 7 commits into
mainfrom
mmp/docs-querying-tempo-interactive

Conversation

@decofe
Copy link
Copy Markdown
Member

@decofe decofe commented May 13, 2026

Replaces static SQL code blocks on the Querying Tempo guide with live <IndexSupplyQuery> widgets — readers can hit Run Query to execute against mainnet directly from the docs.

Queries added:

  • Daily fee revenue (blocks table)
  • Recent Transfer events
  • User transactions excluding system txs
  • pathUSD mint/burn supply

Uses the existing IndexSupplyQuery component + Index Supply API already in place for the orderbook guide. Section 4 (fee_payer attribution) stays static since fee_payer isn't an IndexSupply column.

Based on discussion in PR #391.

max-digi and others added 7 commits May 7, 2026 18:11
Adds a new page under Integrate Tempo covering data-layer differences
analysts and indexers need to know when querying Tempo: USD-denominated
fees, TIP-20 6 decimals, Transfer events vs tx.value, fee_payer
attribution, system transactions, and supply derivation. Also includes
key precompile addresses and network details.

Amp-Thread-ID: https://ampcode.com/threads/T-019e0366-1385-70ac-8cf3-1738206b7d0e
Co-authored-by: Amp <amp@ampcode.com>
…lyQuery

Address PR feedback: replace static SQL examples for the Transfer-based sections (volume, supply) with the existing <IndexSupplyQuery> component so readers can edit and run them against Tempo mainnet via Index Supply.

Gas-fee, fee_payer attribution, and system-tx examples remain static blocks because they reference Tempo-specific columns (effective_gas_price, fee_payer) not exposed in IndexSupply's standard schema.

Amp-Thread-ID: https://ampcode.com/threads/T-019e0366-1385-70ac-8cf3-1738206b7d0e
Co-authored-by: Amp <amp@ampcode.com>
Upstream TIPs occasionally include GitHub handles like @0xrusowsky in the authors field. The leading @ is a YAML reserved character and breaks the build. Quote the value defensively when it begins with any YAML reserved char.

Amp-Thread-ID: https://ampcode.com/threads/T-019e0366-1385-70ac-8cf3-1738206b7d0e
Co-authored-by: Amp <amp@ampcode.com>
…Query widgets

Replaces static code blocks with live <IndexSupplyQuery> components so
readers can run queries against Tempo mainnet directly from the docs.

Covers: fee revenue, Transfer events, user txs (excluding system),
and mint/burn supply queries.

Amp-Thread-ID: https://ampcode.com/threads/T-019e0369-6a2a-7159-a746-cb64baa9b7d8
@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tempo-docs Error Error May 13, 2026 9:34am

Request Review

Comment thread vite.config.ts
// handles like `@0xrusowsky`, which break YAML parsing unless quoted.
content = content.replace(
/^(authors:\s*)([@&*!|>%#`].*)$/m,
(_m, prefix, value) => `${prefix}"${value.replace(/"/g, '\\"')}"`,
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.

3 participants