Merge pull request #123 from FlipsideCrypto/AN-6366/verified-pricing

v4.2.0
This commit is contained in:
Austin 2025-06-24 15:49:30 -04:00 committed by GitHub
commit a1a23c0e62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
25 changed files with 44 additions and 30 deletions

View File

@ -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

View File

@ -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 }}

View File

@ -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: |

View File

@ -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

View File

@ -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: |

View File

@ -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 }}

View File

@ -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

View File

@ -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

View File

@ -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: |

View File

@ -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: |

View File

@ -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: |

View File

@ -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: |

View File

@ -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: |

View File

@ -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: |

View File

@ -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: |

View File

@ -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: |

View File

@ -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: |

View File

@ -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: |

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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(

View File

@ -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,

View File

@ -56,12 +56,6 @@ sources:
tables:
- name: _master_keys
- name: rpc_node_logs
- name: logs_temp
database: "{{ target.database }}"
schema: silver
tables:
- name: logs
- name: decoded_logs
- name: external_gold_defillama
database: external
schema: defillama

View File

@ -1,3 +1,3 @@
packages:
- git: https://github.com/FlipsideCrypto/fsc-evm.git
revision: v4.0.0-beta.104
revision: v4.3.0