Skip to content

Commit

Permalink
Merge branch 'main' into 1227-init-corn
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-dude authored Jan 6, 2025
2 parents 9a19bba + d09fa39 commit f03122a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
24 changes: 24 additions & 0 deletions dbt_subprojects/hourly_spellbook/models/_sector/dune/_schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2

models:
- name: dune_blockchains
meta:
sector: dune
contributors: 0xRob
description: >
Core table listing blockchains on Dune with meta info
columns:
- name: name
description: "The namespaces of the blockchain as used on Dune"
- name: chain_id
description: "The chain ID (only for EVM)"
- name: display_name
description: "Nicely formatted name"
- name: protocol
description: "evm or non_evm"
- name: token_address
description: "The token address used on Dune to represent the native token"
- name: token_symbol
description: "The token symbol of the native token"
- name: token_decimals
description: "The token decimals of the native token"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{ config(
schema='dune',
alias = 'blockchains',
materialized = 'view',
post_hook='{{ expose_spells(\'["dune"]\',
"sector",
"dune",
\'["0xRob"]\') }}')
}}

-- because the graphql endpoint often returns http error 403 when querying through http_get(),
-- we store the results in a matview instead and expose that one here with a view on top.
-- matview: https://dune.com/queries/4467416
select * from
{{ source("dune", "result_blockchains", database="dune") }}
6 changes: 6 additions & 0 deletions sources/_datasets/dune/sources.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2

sources:
- name: dune
tables:
- name: result_blockchains

0 comments on commit f03122a

Please sign in to comment.