Skip to content

Commit

Permalink
Continue work of PR #7255, add amount_usd to the main model (#7325)
Browse files Browse the repository at this point in the history
* Add Odos on Arbitrum to dex_aggregator

* Change to WETH address on Arbitrum

* Add sources of Odos on Arbitrum

* Add odos/arbitrum seeds

* Change data type

* Add bridges of LiFi across chains

* replace tests which is deprecated

* fix name error of avalanche source

* add index to unique test

* fix concat issue

* fix unique test of the main model

* try to fix unique key

* use surrogate key for data tests

* use generate_surrogate_key inside the models

* fix and remove redundant schema properties

* data_tests

* move generate_surrogate_key to schema.yml

* 1. create macro lifi_extract_bridge_data_macro.sql
and apply it in the models
2. update the models' config
3. flip materialization strategy

* data_ again

* fix naming of the main model

* replace avalanche with avalanche_c

* avalanche_c again

* 1. add block_date column to the macro to use it in
the add_tx_columns macro
2. update model of avalanche_c

* rename columns to use add_tx_columns macro

* remove evt_

* a few minor changes

* add amount_usd column

* data_tests again

* map native token to wrapped token to avoid null
price data

* update the main model and schema

* move type conversion from models to macro

* fix source name

* varbinary type doesn't need single quotes

* correct collumn name

* add post_hook

* feat: add bungee bridges

* create macro and models for each chain

* add macro for bungee bridges

* chore: ignore raw.sql

* add amount_usd to bungee models

* remove syntax error

* add bungee sources

* add post hook for bungee bridges

* change eth address on the chains

* change the main model

* remove endfor

* add for loop

* add amount_usd to the main model

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 13, 2024
1 parent e13c06e commit 2d7e97a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ with bungee_bridges as (
receiver,
metadata,
source_chain,
transfer_id
transfer_id,
amount_usd
from {{ ref( 'bungee_' ~ chain ~ '_bridges' ) }}
{% if not loop.last %}
union all
Expand Down

0 comments on commit 2d7e97a

Please sign in to comment.