Skip to content

Commit

Permalink
Merge branch 'main' into patch-19
Browse files Browse the repository at this point in the history
  • Loading branch information
Hosuke authored Nov 4, 2024
2 parents d9b33d1 + 7cc618c commit ab4ff75
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
)
}}

{% set baseline_date = '2015-08-21' %}
{% set baseline_date = '2018-01-01' %}
{% set start_date = '2015-08-21' %}

with baseline as (
select
Expand All @@ -22,7 +23,7 @@ with baseline as (
from
{{ ref('metrics_gas_fees_daily') }}
where
block_date >= date '{{ baseline_date }}'
block_date >= date '{{ start_date }}'
)
select
d.blockchain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
)
}}

{% set baseline_date = '2015-08-21' %}
{% set baseline_date = '2018-01-01' %}
{% set start_date = '2015-08-21' %}

with baseline as (
select
Expand All @@ -22,7 +23,7 @@ with baseline as (
from
{{ ref('metrics_transactions_daily') }}
where
block_date >= date '{{ baseline_date }}'
block_date >= date '{{ start_date }}'
)
select
d.blockchain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
)
}}

{% set baseline_date = '2015-08-21' %}
{% set baseline_date = '2018-01-01' %}
{% set start_date = '2015-08-21' %}

with baseline as (
select
Expand All @@ -22,7 +23,7 @@ with baseline as (
from
{{ ref('metrics_transfers_daily') }}
where
block_date >= date '{{ baseline_date }}'
block_date >= date '{{ start_date }}'
)
select
d.blockchain
Expand Down
3 changes: 1 addition & 2 deletions dbt_subprojects/daily_spellbook/models/evms/evms_blocks.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'blocks',
unique_key=['blockchain', 'number'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('arbitrum', 'blocks'))
, ('celo', source('celo', 'blocks'))
, ('base', source('base', 'blocks'))
, ('goerli', source('goerli', 'blocks'))
, ('zksync', source('zksync', 'blocks'))
, ('zora', source('zora', 'blocks'))
, ('scroll', source('scroll', 'blocks'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'contracts',
unique_key=['blockchain', 'address'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('arbitrum', 'contracts'))
, ('celo', source('celo', 'contracts'))
, ('base', source('base', 'contracts'))
, ('goerli', source('goerli', 'contracts'))
, ('zksync', source('zksync', 'contracts'))
, ('zora', source('zora', 'contracts'))
, ('scroll', source('scroll', 'contracts'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'creation_traces',
unique_key=['blockchain', 'tx_hash', 'evt_index'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('arbitrum', 'creation_traces'))
, ('celo', source('celo', 'creation_traces'))
, ('base', source('base', 'creation_traces'))
, ('goerli', source('goerli', 'creation_traces'))
, ('zksync', source('zksync', 'creation_traces'))
, ('zora', source('zora', 'creation_traces'))
, ('scroll', source('scroll', 'creation_traces'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'erc1155_approvalsforall',
unique_key=['blockchain', 'tx_hash', 'evt_index'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('erc1155_arbitrum', 'evt_ApprovalForAll'))
, ('celo', source('erc1155_celo', 'evt_ApprovalForAll'))
, ('base', source('erc1155_base', 'evt_ApprovalForAll'))
, ('goerli', source('erc1155_goerli', 'evt_ApprovalForAll'))
, ('zksync', source('erc1155_zksync', 'evt_ApprovalForAll'))
, ('zora', source('erc1155_zora', 'evt_ApprovalForAll'))
, ('scroll', source('erc1155_scroll', 'evt_ApprovalForAll'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'erc1155_transfersbatch',
unique_key=['blockchain', 'tx_hash', 'evt_index'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('erc1155_arbitrum', 'evt_transferbatch'))
, ('celo', source('erc1155_celo', 'evt_transferbatch'))
, ('base', source('erc1155_base', 'evt_transferbatch'))
, ('goerli', source('erc1155_goerli', 'evt_transferbatch'))
, ('zksync', source('erc1155_zksync', 'evt_transferbatch'))
, ('zora', source('erc1155_zora', 'evt_transferbatch'))
, ('scroll', source('erc1155_scroll', 'evt_transferbatch'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'erc1155_transferssingle',
unique_key=['blockchain', 'tx_hash', 'evt_index'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('erc1155_arbitrum', 'evt_transfersingle'))
, ('celo', source('erc1155_celo', 'evt_transfersingle'))
, ('base', source('erc1155_base', 'evt_transfersingle'))
, ('goerli', source('erc1155_goerli', 'evt_transfersingle'))
, ('zksync', source('erc1155_zksync', 'evt_transfersingle'))
, ('zora', source('erc1155_zora', 'evt_transfersingle'))
, ('scroll', source('erc1155_scroll', 'evt_transfersingle'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'erc20_approvals',
unique_key=['blockchain', 'tx_hash', 'evt_index'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('erc20_arbitrum', 'evt_approval'))
, ('celo', source('erc20_celo', 'evt_approval'))
, ('base', source('erc20_base', 'evt_Approval'))
, ('goerli', source('erc20_goerli', 'evt_approval'))
, ('zksync', source('erc20_zksync', 'evt_approval'))
, ('zora', source('erc20_zora', 'evt_approval'))
, ('scroll', source('erc20_scroll', 'evt_approval'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'erc20_transfers',
unique_key=['blockchain', 'tx_hash', 'evt_index'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('erc20_arbitrum', 'evt_transfer'))
, ('celo', source('erc20_celo', 'evt_transfer'))
, ('base', source('erc20_base', 'evt_transfer'))
, ('goerli', source('erc20_goerli', 'evt_transfer'))
, ('zksync', source('erc20_zksync', 'evt_transfer'))
, ('zora', source('erc20_zora', 'evt_transfer'))
, ('scroll', source('erc20_scroll', 'evt_transfer'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'erc721_approvals',
unique_key=['blockchain', 'tx_hash', 'evt_index'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('erc721_arbitrum', 'evt_Approval'))
, ('celo', source('erc721_celo', 'evt_Approval'))
, ('base', source('erc721_base', 'evt_Approval'))
, ('goerli', source('erc721_goerli', 'evt_Approval'))
, ('zksync', source('erc721_zksync', 'evt_Approval'))
, ('zora', source('erc721_zora', 'evt_Approval'))
, ('scroll', source('erc721_scroll', 'evt_Approval'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'erc721_approvalsforall',
unique_key=['blockchain', 'tx_hash', 'evt_index'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('erc721_arbitrum', 'evt_ApprovalForAll'))
, ('celo', source('erc721_celo', 'evt_ApprovalForAll'))
, ('base', source('erc721_base', 'evt_ApprovalForAll'))
, ('goerli', source('erc721_goerli', 'evt_ApprovalForAll'))
, ('zksync', source('erc721_zksync', 'evt_ApprovalForAll'))
, ('zora', source('erc721_zora', 'evt_ApprovalForAll'))
, ('scroll', source('erc721_scroll', 'evt_ApprovalForAll'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'erc721_transfers',
unique_key=['blockchain', 'tx_hash', 'evt_index'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('erc721_arbitrum', 'evt_transfer'))
, ('celo', source('erc721_celo', 'evt_transfer'))
, ('base', source('erc721_base', 'evt_transfer'))
, ('goerli', source('erc721_goerli', 'evt_transfer'))
, ('zksync', source('erc721_zksync', 'evt_transfer'))
, ('zora', source('erc721_zora', 'evt_transfer'))
, ('scroll', source('erc721_scroll', 'evt_transfer'))
Expand Down
3 changes: 1 addition & 2 deletions dbt_subprojects/daily_spellbook/models/evms/evms_logs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'logs',
unique_key=['blockchain', 'tx_hash'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby","rantum"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('arbitrum', 'logs'))
, ('celo', source('celo', 'logs'))
, ('base', source('base', 'logs'))
, ('goerli', source('goerli', 'logs'))
, ('zksync', source('zksync', 'logs'))
, ('zora', source('zora', 'logs'))
, ('scroll', source('scroll', 'logs'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema='evms',
alias = 'logs_decoded',
unique_key=['blockchain', 'tx_hash'],
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "goerli", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
post_hook='{{ expose_spells(\'["ethereum", "polygon", "bnb", "avalanche_c", "gnosis", "fantom", "optimism", "arbitrum", "celo", "base", "zksync", "zora", "scroll", "linea", "zkevm", "blast", "mantle"]\',
"sector",
"evms",
\'["hildobby"]\') }}'
Expand All @@ -20,7 +20,6 @@
, ('arbitrum', source('arbitrum', 'logs_decoded'))
, ('celo', source('celo', 'logs_decoded'))
, ('base', source('base', 'logs_decoded'))
, ('goerli', source('goerli', 'logs_decoded'))
, ('zksync', source('zksync', 'logs_decoded'))
, ('zora', source('zora', 'logs_decoded'))
, ('scroll', source('scroll', 'logs_decoded'))
Expand Down
Loading

0 comments on commit ab4ff75

Please sign in to comment.