diff --git a/.github/workflows/dbt_alter_all_gha_tasks.yml b/.github/workflows/dbt_alter_all_gha_tasks.yml index 086327d..29930c5 100644 --- a/.github/workflows/dbt_alter_all_gha_tasks.yml +++ b/.github/workflows/dbt_alter_all_gha_tasks.yml @@ -20,7 +20,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template_alter_all_gha_tasks.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template_alter_all_gha_tasks.yml@main with: task_action: ${{ inputs.task_action }} target: prod diff --git a/.github/workflows/dbt_alter_gha_tasks.yml b/.github/workflows/dbt_alter_gha_tasks.yml index be92ee5..731486b 100644 --- a/.github/workflows/dbt_alter_gha_tasks.yml +++ b/.github/workflows/dbt_alter_gha_tasks.yml @@ -24,7 +24,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template_alter_gha_tasks.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template_alter_gha_tasks.yml@main with: workflow_name: ${{ inputs.workflow_name }} task_action: ${{ inputs.task_action }} diff --git a/.github/workflows/dbt_deploy_new_workflows.yml b/.github/workflows/dbt_deploy_new_workflows.yml index a9a877d..3975f8b 100644 --- a/.github/workflows/dbt_deploy_new_workflows.yml +++ b/.github/workflows/dbt_deploy_new_workflows.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: command_name: Deploy New Github Actions command: | diff --git a/.github/workflows/dbt_docs_update.yml b/.github/workflows/dbt_docs_update.yml index 10ec0ba..b9d7113 100644 --- a/.github/workflows/dbt_docs_update.yml +++ b/.github/workflows/dbt_docs_update.yml @@ -10,5 +10,5 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template_docs_update.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template_docs_update.yml@main secrets: inherit \ No newline at end of file diff --git a/.github/workflows/dbt_integration_test.yml b/.github/workflows/dbt_integration_test.yml index e625bc6..f7ac44b 100644 --- a/.github/workflows/dbt_integration_test.yml +++ b/.github/workflows/dbt_integration_test.yml @@ -14,7 +14,7 @@ concurrency: ${{ github.workflow }} jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template_integration_test.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template_integration_test.yml@main with: target: ${{ inputs.environment }} command: | diff --git a/.github/workflows/dbt_run_adhoc.yml b/.github/workflows/dbt_run_adhoc.yml index 30a3481..10c1928 100644 --- a/.github/workflows/dbt_run_adhoc.yml +++ b/.github/workflows/dbt_run_adhoc.yml @@ -34,7 +34,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: warehouse: ${{ inputs.warehouse }} target: ${{ inputs.target }} diff --git a/.github/workflows/dbt_run_dev_refresh.yml b/.github/workflows/dbt_run_dev_refresh.yml index 938995c..47c1a78 100644 --- a/.github/workflows/dbt_run_dev_refresh.yml +++ b/.github/workflows/dbt_run_dev_refresh.yml @@ -11,5 +11,5 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template_dev_refresh.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template_dev_refresh.yml@main secrets: inherit \ No newline at end of file diff --git a/.github/workflows/dbt_run_full_observability.yml b/.github/workflows/dbt_run_full_observability.yml index ebfc154..f6656cb 100644 --- a/.github/workflows/dbt_run_full_observability.yml +++ b/.github/workflows/dbt_run_full_observability.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: warehouse: DBT_EMERGENCY command_name: Run Observability Models diff --git a/.github/workflows/dbt_run_heal_models.yml b/.github/workflows/dbt_run_heal_models.yml index dfbe8bb..07d1ba8 100644 --- a/.github/workflows/dbt_run_heal_models.yml +++ b/.github/workflows/dbt_run_heal_models.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: command_name: Run Heal Models command: | diff --git a/.github/workflows/dbt_run_scheduled_abis.yml b/.github/workflows/dbt_run_scheduled_abis.yml index 2eb8581..0ede637 100644 --- a/.github/workflows/dbt_run_scheduled_abis.yml +++ b/.github/workflows/dbt_run_scheduled_abis.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: command_name: Run ABI Models command: | diff --git a/.github/workflows/dbt_run_scheduled_curated.yml b/.github/workflows/dbt_run_scheduled_curated.yml index 61d9d16..a1fe3e9 100644 --- a/.github/workflows/dbt_run_scheduled_curated.yml +++ b/.github/workflows/dbt_run_scheduled_curated.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: command_name: Run Curated Models command: | diff --git a/.github/workflows/dbt_run_scheduled_decoder.yml b/.github/workflows/dbt_run_scheduled_decoder.yml index a0b7a2b..7be07c3 100644 --- a/.github/workflows/dbt_run_scheduled_decoder.yml +++ b/.github/workflows/dbt_run_scheduled_decoder.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: command_name: Run Decoder Models command: | diff --git a/.github/workflows/dbt_run_scheduled_main.yml b/.github/workflows/dbt_run_scheduled_main.yml index a87b82c..1105529 100644 --- a/.github/workflows/dbt_run_scheduled_main.yml +++ b/.github/workflows/dbt_run_scheduled_main.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: command_name: Run Main Models command: | diff --git a/.github/workflows/dbt_run_scheduled_scores.yml b/.github/workflows/dbt_run_scheduled_scores.yml index 5c2f0f9..0113d37 100644 --- a/.github/workflows/dbt_run_scheduled_scores.yml +++ b/.github/workflows/dbt_run_scheduled_scores.yml @@ -12,7 +12,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: command_name: Run Scores Models command: | diff --git a/.github/workflows/dbt_run_streamline_balances_history_temp.yml b/.github/workflows/dbt_run_streamline_balances_history_temp.yml index 480469d..765f40a 100644 --- a/.github/workflows/dbt_run_streamline_balances_history_temp.yml +++ b/.github/workflows/dbt_run_streamline_balances_history_temp.yml @@ -13,7 +13,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: command_name: Run Balances History Temp Models command: | diff --git a/.github/workflows/dbt_run_streamline_chainhead.yml b/.github/workflows/dbt_run_streamline_chainhead.yml index d8745f3..e48dae1 100644 --- a/.github/workflows/dbt_run_streamline_chainhead.yml +++ b/.github/workflows/dbt_run_streamline_chainhead.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: command_name: Run Chainhead Models command: | diff --git a/.github/workflows/dbt_run_streamline_decoder_history.yml b/.github/workflows/dbt_run_streamline_decoder_history.yml index b736c9c..b98c26c 100644 --- a/.github/workflows/dbt_run_streamline_decoder_history.yml +++ b/.github/workflows/dbt_run_streamline_decoder_history.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: command_name: Run Decoder Complete command: | diff --git a/.github/workflows/dbt_run_streamline_history.yml b/.github/workflows/dbt_run_streamline_history.yml index 8e36769..5edec97 100644 --- a/.github/workflows/dbt_run_streamline_history.yml +++ b/.github/workflows/dbt_run_streamline_history.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: command_name: Run History Models command: | diff --git a/.github/workflows/dbt_test_daily.yml b/.github/workflows/dbt_test_daily.yml index eaa9635..b2ebefa 100644 --- a/.github/workflows/dbt_test_daily.yml +++ b/.github/workflows/dbt_test_daily.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: target: test command_name: Build Daily Testing Views diff --git a/.github/workflows/dbt_test_intraday.yml b/.github/workflows/dbt_test_intraday.yml index 4823fcd..107ee97 100644 --- a/.github/workflows/dbt_test_intraday.yml +++ b/.github/workflows/dbt_test_intraday.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: target: test command_name: Run Observability & Recent Tests diff --git a/.github/workflows/dbt_test_monthly.yml b/.github/workflows/dbt_test_monthly.yml index cf47c45..7421bff 100644 --- a/.github/workflows/dbt_test_monthly.yml +++ b/.github/workflows/dbt_test_monthly.yml @@ -11,7 +11,7 @@ concurrency: jobs: called_workflow_template: - uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@pre-release/v4-beta + uses: FlipsideCrypto/fsc-evm/.github/workflows/dbt_run_template.yml@main with: warehouse: DBT_EMERGENCY command_name: Build Full Testing Views diff --git a/models/gold/defi/defi__ez_dex_swaps.sql b/models/gold/defi/defi__ez_dex_swaps.sql index 934718a..8f8b86e 100644 --- a/models/gold/defi/defi__ez_dex_swaps.sql +++ b/models/gold/defi/defi__ez_dex_swaps.sql @@ -21,7 +21,7 @@ SELECT amount_in, ROUND( CASE - WHEN token_in <> '0x191e94fa59739e188dce837f7f6978d84727ad01' + WHEN token_in <> '0x191e94fa59739e188dce837f7f6978d84727ad01' or not token_in_is_verified AND ( amount_out_usd IS NULL OR ABS((amount_in_usd - amount_out_usd) / NULLIF(amount_out_usd, 0)) > 0.75 @@ -35,7 +35,7 @@ SELECT amount_out, ROUND( CASE - WHEN token_out <> '0x191e94fa59739e188dce837f7f6978d84727ad01' + WHEN token_out <> '0x191e94fa59739e188dce837f7f6978d84727ad01' or not token_out_is_verified AND ( amount_in_usd IS NULL OR ABS((amount_out_usd - amount_in_usd) / NULLIF(amount_in_usd, 0)) > 0.75 @@ -49,8 +49,12 @@ SELECT tx_to, event_index, platform, + protocol, + version as protocol_version, token_in, + token_in_is_verified, token_out, + token_out_is_verified, symbol_in, symbol_out, {{ dbt_utils.generate_surrogate_key( diff --git a/models/silver/defi/dex/silver_dex__complete_dex_swaps.sql b/models/silver/defi/dex/silver_dex__complete_dex_swaps.sql index 73f6f59..3e0e23d 100644 --- a/models/silver/defi/dex/silver_dex__complete_dex_swaps.sql +++ b/models/silver/defi/dex/silver_dex__complete_dex_swaps.sql @@ -27,6 +27,7 @@ bitflux AS ( tx_to, event_index, 'bitflux' AS platform, + 'bitflux' AS protocol, 'v1' AS version, _log_id, _inserted_timestamp @@ -75,6 +76,7 @@ corex AS ( recipient AS tx_to, event_index, 'corex' AS platform, + 'corex' AS protocol, 'v1' AS version, _log_id, _inserted_timestamp @@ -111,6 +113,7 @@ glyph_v4 AS ( recipient AS tx_to, event_index, 'glyph-v4' AS platform, + 'glyph' AS protocol, 'v4' AS version, _log_id, modified_timestamp AS _inserted_timestamp @@ -147,6 +150,7 @@ sushi_v3 AS ( recipient AS tx_to, event_index, 'sushi-v3' AS platform, + 'sushiswap' AS protocol, 'v3' AS version, _log_id, modified_timestamp AS _inserted_timestamp @@ -196,6 +200,7 @@ complete_dex_swaps AS ( s.contract_address, event_name, token_in, + p1.is_verified as token_in_is_verified, c1.token_decimals AS decimals_in, c1.token_symbol AS symbol_in, amount_in_unadj, @@ -208,6 +213,7 @@ complete_dex_swaps AS ( ELSE NULL END AS amount_in_usd, token_out, + p2.is_verified as token_out_is_verified, c2.token_decimals AS decimals_out, c2.token_symbol AS symbol_out, amount_out_unadj, @@ -249,6 +255,7 @@ complete_dex_swaps AS ( tx_to, event_index, s.platform, + s.protocol, s.version, s._log_id, s._inserted_timestamp @@ -293,6 +300,7 @@ heal_model AS ( t0.contract_address, event_name, token_in, + p1.is_verified as token_in_is_verified, c1.token_decimals AS decimals_in, c1.token_symbol AS symbol_in, amount_in_unadj, @@ -305,6 +313,7 @@ heal_model AS ( ELSE NULL END AS amount_in_usd_heal, token_out, + p2.is_verified as token_out_is_verified, c2.token_decimals AS decimals_out, c2.token_symbol AS symbol_out, amount_out_unadj, @@ -346,6 +355,7 @@ heal_model AS ( tx_to, event_index, t0.platform, + t0.protocol, t0.version, t0._log_id, t0._inserted_timestamp @@ -571,12 +581,14 @@ SELECT contract_address, event_name, token_in, + token_in_is_verified, decimals_in, symbol_in, amount_in_unadj, amount_in_heal AS amount_in, amount_in_usd_heal AS amount_in_usd, token_out, + token_out_is_verified, decimals_out, symbol_out, amount_out_unadj, @@ -587,6 +599,7 @@ SELECT tx_to, event_index, platform, + protocol, version, _log_id, _inserted_timestamp @@ -614,9 +627,12 @@ SELECT tx_to, event_index, platform, + protocol, version, token_in, + token_in_is_verified, token_out, + token_out_is_verified, symbol_in, symbol_out, decimals_in, diff --git a/packages.yml b/packages.yml index 578ba1f..0e9ddb2 100644 --- a/packages.yml +++ b/packages.yml @@ -1,3 +1,3 @@ packages: - git: https://github.com/FlipsideCrypto/fsc-evm.git - revision: v4.0.0-beta.104 + revision: v4.2.0 \ No newline at end of file