-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Equalizer Exchange to Dex Trades
- Loading branch information
1 parent
c342d7e
commit 9ca012c
Showing
5 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
dbt_subprojects/dex/models/trades/sonic/platforms/equalizer_sonic_base_trades.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{ | ||
config( | ||
schema = 'equalizer_sonic', | ||
alias = 'base_trades', | ||
materialized = 'incremental', | ||
file_format = 'delta', | ||
incremental_strategy = 'merge', | ||
unique_key = ['tx_hash', 'evt_index'], | ||
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')] | ||
) | ||
}} | ||
|
||
{{ | ||
uniswap_compatible_v2_trades( | ||
blockchain = 'sonic', | ||
project = 'equalizer_exchange', | ||
version = '1', | ||
Pair_evt_Swap = source('equalizer_exchange_sonic', 'Pair_evt_Swap'), | ||
Factory_evt_PairCreated = source('equalizer_exchange_sonic', 'PairFactory_evt_PairCreated') | ||
) | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
dbt_subprojects/dex/seeds/trades/equalizer_sonic_base_trades_seed.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
blockchain,project,version,block_date,tx_hash,evt_index,token_bought_address,token_sold_address,block_number,token_bought_amount_raw,token_sold_amount_raw | ||
sonic,equalizer_exchange,1,2025-01-20,0x2b8a73353fb1091c38a57b8c5197717a8cece2a38ce4f92a232382bf4a9d1032,5,0xb5a10bd15af95381d830f71e85328f2d1d823de7,0xddf26b42c1d903de8962d3f79a74a501420d5f19,4713856,78069906813575326927,10000000000000000000 | ||
sonic,equalizer_exchange,1,2025-01-19,0x3639bd705da8de5b9f972affa3bf50c00e5ddf657c6001fc4a6592160475596f,5,0xb5a10bd15af95381d830f71e85328f2d1d823de7,0xddf26b42c1d903de8962d3f79a74a501420d5f19,4513539,426061393098375868,50000000000000000 |