Skip to content

Commit

Permalink
comments and where logic
Browse files Browse the repository at this point in the history
  • Loading branch information
drethereum committed Jan 13, 2025
1 parent d04a6f5 commit fe5e538
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% set block_explorer_abi_url = var('BLOCK_EXPLORER_ABI_URL', '') %}
{% set block_explorer_vault_path = var('BLOCK_EXPLORER_ABI_API_KEY_PATH', '') %}
{% set block_explorer_abi_interaction_limit = var('BLOCK_EXPLORER_ABI_INTERACTION_LIMIT', 250) %}
{% set bronze_full_refresh = var('BRONZE_FULL_REFRESH', false) %}
{% set bronze_full_refresh = var('BRONZE_CONTRACT_ABIS_FULL_REFRESH', false) %}

{%- if flags.WHICH == 'compile' and execute -%}

Expand Down
16 changes: 8 additions & 8 deletions models/decoder_package/abis/silver/silver__verified_abis.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ WITH base AS (
SELECT
contract_address,
{% if uses_etherscan %}
PARSE_JSON(
abi_data :data :result
) AS DATA,
PARSE_JSON(
abi_data :data :result
) AS DATA,
{% else %}
PARSE_JSON(
abi_data :data :abi
) AS DATA,
PARSE_JSON(
abi_data :data :abi
) AS DATA,
{% endif %}
_inserted_timestamp
FROM
Expand All @@ -39,9 +39,9 @@ WITH base AS (
) }}
WHERE
{% if uses_etherscan %}
abi_data :data :message :: STRING = 'OK'
abi_data :data :message :: STRING = 'OK'
{% else %}
abi_data :data :message IS NULL
abi_data :data :abi IS NOT NULL
{% endif %}

{% if is_incremental() %}
Expand Down
3 changes: 1 addition & 2 deletions models/main_package/core/gold/core__fact_blocks.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
{% set includes_parent_beacon_block_root = ['INK'] %}
{% set includes_withdrawals = ['INK'] %}

{# set variables based on prod db name #}

{# Set Variables using inclusions and exclusions #}
{% set uses_base_fee = var('GLOBAL_PROD_DB_NAME').upper() not in excludes_base_fee %}
{% set uses_total_difficulty = var('GLOBAL_PROD_DB_NAME').upper() not in excludes_total_difficulty %}

Expand Down
1 change: 1 addition & 0 deletions models/main_package/core/gold/core__fact_transactions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{% set includes_source_hash = ['INK','MANTLE'] %}
{% set includes_blob_base_fee = ['INK'] %}

{# Set Variables using inclusions and exclusions #}
{% set uses_eip_1559 = var('GLOBAL_PROD_DB_NAME').upper() not in excludes_eip_1559 %}
{% set uses_l1_columns = var('GLOBAL_PROD_DB_NAME').upper() in includes_l1_columns %}
{% set uses_l1_tx_fee_calc = var('GLOBAL_PROD_DB_NAME').upper() in includes_l1_tx_fee_calc %}
Expand Down

0 comments on commit fe5e538

Please sign in to comment.