From 294d6656b8fd1b3b4de111b51afba7f35f2fb01d Mon Sep 17 00:00:00 2001 From: drethereum Date: Wed, 22 Oct 2025 10:12:38 -0600 Subject: [PATCH] balances set up --- .github/workflows/dbt_run_scheduled_main.yml | 2 +- ...t_run_streamline_balances_history_temp.yml | 22 +++++++++++++++++++ dbt_project.yml | 6 +++++ models/sources.yml | 2 ++ 4 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/dbt_run_streamline_balances_history_temp.yml diff --git a/.github/workflows/dbt_run_scheduled_main.yml b/.github/workflows/dbt_run_scheduled_main.yml index 129cf27..1434c4b 100644 --- a/.github/workflows/dbt_run_scheduled_main.yml +++ b/.github/workflows/dbt_run_scheduled_main.yml @@ -15,5 +15,5 @@ jobs: with: command_name: Run Main Models command: | - dbt run -m "fsc_evm,tag:bronze,tag:core" "fsc_evm,tag:silver,tag:core" "fsc_evm,tag:gold,tag:core" "fsc_evm,tag:silver,tag:prices" "fsc_evm,tag:gold,tag:prices" "fsc_evm,tag:silver,tag:labels" "fsc_evm,tag:gold,tag:labels" "fsc_evm,tag:streamline,tag:decoded_logs,tag:realtime" "fsc_evm,tag:streamline,tag:decoded_logs,tag:complete" "fsc_evm,tag:streamline,tag:abis,tag:realtime" "fsc_evm,tag:streamline,tag:abis,tag:complete" "fsc_evm,tag:streamline,tag:token_reads,tag:realtime" "fsc_evm,tag:streamline,tag:token_reads,tag:complete" --vars '{"STREAMLINE_INVOKE_STREAMS":True}' + dbt run -m "fsc_evm,tag:bronze,tag:core" "fsc_evm,tag:silver,tag:core" "fsc_evm,tag:gold,tag:core" "fsc_evm,tag:silver,tag:prices" "fsc_evm,tag:gold,tag:prices" "fsc_evm,tag:silver,tag:labels" "fsc_evm,tag:gold,tag:labels" "fsc_evm,tag:silver,tag:balances" "fsc_evm,tag:gold,tag:balances" "fsc_evm,tag:streamline,tag:decoded_logs,tag:realtime" "fsc_evm,tag:streamline,tag:decoded_logs,tag:complete" "fsc_evm,tag:streamline,tag:abis,tag:realtime" "fsc_evm,tag:streamline,tag:abis,tag:complete" "fsc_evm,tag:streamline,tag:token_reads,tag:realtime" "fsc_evm,tag:streamline,tag:token_reads,tag:complete" "fsc_evm,tag:streamline,tag:balances,tag:complete" "fsc_evm,tag:streamline,tag:balances,tag:records" "fsc_evm,tag:streamline,tag:balances,tag:realtime" --vars '{"STREAMLINE_INVOKE_STREAMS":True}' secrets: inherit \ No newline at end of file diff --git a/.github/workflows/dbt_run_streamline_balances_history_temp.yml b/.github/workflows/dbt_run_streamline_balances_history_temp.yml new file mode 100644 index 0000000..337bb3b --- /dev/null +++ b/.github/workflows/dbt_run_streamline_balances_history_temp.yml @@ -0,0 +1,22 @@ +name: dbt_run_streamline_balances_history_temp +run-name: dbt_run_streamline_balances_history_temp + +on: + workflow_dispatch: + branches: + - "main" + schedule: + - cron: '14 */4 * * *' + + +concurrency: + group: ${{ github.workflow }} + +jobs: + called_workflow_template: + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main + with: + command_name: Run Balances History Models + command: | + dbt run --vars '{"STREAMLINE_INVOKE_STREAMS":True}' -m "fsc_evm,tag:streamline,tag:balances,tag:complete" "fsc_evm,tag:streamline,tag:balances,tag:records" "fsc_evm,tag:streamline,tag:balances,tag:history" + secrets: inherit \ No newline at end of file diff --git a/dbt_project.yml b/dbt_project.yml index 5158ad1..cd643ee 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -111,6 +111,12 @@ models: +enabled: true lending: +enabled: true + balances_package: + +enabled: false + erc20: + +enabled: true + native: + +enabled: true scores_package: +enabled: true diff --git a/models/sources.yml b/models/sources.yml index f174d01..93e673f 100644 --- a/models/sources.yml +++ b/models/sources.yml @@ -21,6 +21,8 @@ sources: - name: decoded_logs_v2 - name: contract_abis - name: token_reads + - name: balances_erc20 + - name: balances_native - name: crosschain_silver database: >- {{ 'CROSSCHAIN_DEV' if '_DEV' in target.database.upper() else 'CROSSCHAIN' }}