From 4e9712fdfb53a2dcc583570439db802278939d32 Mon Sep 17 00:00:00 2001 From: Austin <93135983+austinFlipside@users.noreply.github.com> Date: Thu, 13 Feb 2025 09:25:32 -0500 Subject: [PATCH] macro (#100) --- dbt_project.yml | 5 ++++- macros/decoder/run_decoded_logs_history.sql | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index 1701a9b..6985697 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -85,4 +85,7 @@ vars: API_INTEGRATION: AWS_BLAST_API EXTERNAL_FUNCTION_URI: 42gzudc5si.execute-api.us-east-1.amazonaws.com/prod/ - #### STREAMLINE 2.0 END #### \ No newline at end of file + #### STREAMLINE 2.0 END #### + +### FSC_EVM + GLOBAL_PROD_DB_NAME: 'blast' \ No newline at end of file diff --git a/macros/decoder/run_decoded_logs_history.sql b/macros/decoder/run_decoded_logs_history.sql index 83c4365..2a7f078 100644 --- a/macros/decoder/run_decoded_logs_history.sql +++ b/macros/decoder/run_decoded_logs_history.sql @@ -1,5 +1,7 @@ {% macro run_decoded_logs_history() %} +{% set blockchain = var('GLOBAL_PROD_DB_NAME','').lower() %} + {% set check_for_new_user_abis_query %} select 1 from {{ ref('silver__user_verified_abis') }} @@ -17,7 +19,7 @@ SELECT github_actions.workflow_dispatches( 'FlipsideCrypto', - 'arbitrum-models', + '{{ blockchain }}' || '-models', 'dbt_run_streamline_decoded_logs_history.yml', NULL )