Skip to content

Remove Goerli from Spellbook - #10173

Open
jeff-dude wants to merge 2 commits into
mainfrom
drop-goerli-running-models
Open

jeff-dude wants to merge 2 commits into
mainfrom
drop-goerli-running-models

Conversation

@jeff-dude

@jeff-dude jeff-dude commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Removes Goerli from Spellbook. Goerli raw data ended on 2024-03-18 (block 10666680).
First commit: stops the three Goerli lineages that still rebuild on every prod run. Second commit: removes every remaining Goerli model, source and chain-list entry.

What & why

Delta history on Dune shows these still run:

  • tokens_goerli.transfers_from_traces (+ _base, _base_wrapper_deposits): 336 MERGEs in the last 14 days, so hourly.
  • inscription_goerli.all: 14 MERGEs in 14 days, so daily. mints and deploys are built from it.
  • labels.contract_deployers_goerli: rebuilt with CTAS on 2026-11-25.

#9712 kept labels_contract_deployers_goerli and left the tokens_goerli_* models because the static ones are dormant. The three transfers_from_traces models are not tagged static, so they are not dormant.

Impact

  • Deleted: 7 model files in tokens and daily_spellbook, plus their schema entries.
  • Unions now skip Goerli: inscription.all/mints/deploys, labels.contract_deployers, tokens.transfers_from_traces (via transfers_from_traces_exposed_blockchains_macro). Their Goerli rows go away on the next rebuild.
  • Second commit, also removed:
    • the static tokens_goerli_transfers / tokens_goerli_base_transfers models
    • the goerli, gnosis_safe_goerli and zora_goerli sources, plus the tokens_goerli and addresses_events_goerli output sources
    • the goerli rows in evms_info (evms.info), evms_non_app_method_ids, prices_native_tokens and the first_funded_by seed
    • all_evm_testnet_chains(), which now returns []; its only caller is the static evm_smart_account_method_ids
    • the chain lists in the source and doc generator scripts, and the goerli entries in schema metadata
  • Kept on purpose: chain_info_chain_ids (a general chainlist reference, not Dune coverage), optimism_goerli in evms_info (a different chain), the geth-goerli-eth mainnet token and NFT names containing "goerli".
  • Not touched: the raw goerli schema and the existing Goerli output tables on Dune. Dropping them is a separate, approved step.
  • Deploy: a forward-only deploy is safe. tokens.transfers_from_traces is a view that cadence never rebuilds, so redeploy it (run --select tokens_transfers_from_traces) before anyone drops the tokens_goerli tables.

Tested

  • uv run dbt parse passes in tokens, daily_spellbook, hourly_spellbook, dex and solana.
  • uv run dbt compile of tokens_transfers_from_traces, inscription_all/mints/deploys, and labels_contract_deployers passes; compiled SQL has no Goerli reference.

Goerli raw data stopped at block 10666680 on 2024-03-18, but three
spell lineages still rebuild over it: tokens_goerli.transfers_from_traces
(and its _base and _base_wrapper_deposits models) merges hourly,
inscription_goerli.all merges daily, and labels.contract_deployers_goerli
is rebuilt with CTAS. Remove these models and drop Goerli from the
inscription, contract deployer, and transfers_from_traces unions.

Amp-Thread-ID: https://ampcode.com/threads/T-01a212a2-92bc-7427-ba30-9d737f4e5365
Co-authored-by: Amp <amp@ampcode.com>
@github-actions
github-actions Bot marked this pull request as draft November 25, 2026 12:37
@github-actions github-actions Bot added WIP work in progress dbt: daily covers the Daily dbt subproject dbt: tokens covers the Tokens dbt subproject labels Nov 25, 2026

Copy link
Copy Markdown
Member Author

@claude review

Goerli is being removed from every Dune surface. Delete the static
tokens_goerli transfers models, the goerli, gnosis_safe_goerli and
zora_goerli sources and the Goerli output sources. Drop Goerli from
evms_info, evms_non_app_method_ids, the testnet chain macro,
prices_native_tokens, the first_funded_by seed, the source and doc
generator chain lists, and the schema blockchain metadata.
@github-actions github-actions Bot added dbt: dex covers the DEX dbt subproject dbt: hourly covers the hourly dbt subproject labels Nov 25, 2026
@jeff-dude jeff-dude changed the title Drop Goerli models that still rebuild every run Remove Goerli from Spellbook Nov 25, 2026
@jeff-dude
jeff-dude marked this pull request as ready for review November 25, 2026 20:00
@github-actions github-actions Bot added ready-for-review this PR development is complete, please review and removed WIP work in progress labels Nov 25, 2026
@jeff-dude
jeff-dude requested a review from 0xRobin November 25, 2026 20:01

This branch has not been deployed

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

Labels

dbt: daily covers the Daily dbt subproject dbt: dex covers the DEX dbt subproject dbt: hourly covers the hourly dbt subproject dbt: tokens covers the Tokens dbt subproject ready-for-review this PR development is complete, please review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant