Skip to content

Commit

Permalink
equalizer (#5052)
Browse files Browse the repository at this point in the history
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 Jan 2, 2024
1 parent f00a25f commit abe5d1b
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 13 deletions.
17 changes: 17 additions & 0 deletions models/_sector/dex/trades/fantom/_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,23 @@ models:
- check_dex_base_trades_seed:
seed_file: ref('wigoswap_fantom_base_trades_seed')

- name: equalizer_fantom_base_trades
meta:
blockchain: fantom
sector: dex
project: equalizer
contributors: Henrystats, tomfutago
config:
tags: ['fantom', 'dex', 'trades', 'equalizer', 'uniswap', 'v2']
description: "Equalizer fantom base trades"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- tx_hash
- evt_index
- check_dex_base_trades_seed:
seed_file: ref('equalizer_fantom_base_trades_seed')

- name: spartacus_exchange_fantom_base_trades
meta:
blockchain: fantom
Expand Down
4 changes: 4 additions & 0 deletions models/_sector/dex/trades/fantom/_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ sources:
tables:
- name: Pair_evt_Swap
- name: Factory_evt_PairCreated
- name: equalizer_exchange_fantom
tables:
- name: Pair_evt_Swap
- name: PairFactory_evt_PairCreated
- name: spartacus_exchange_fantom
tables:
- name: Pair_evt_Swap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
, ref('spiritswap_fantom_base_trades')
, ref('spookyswap_fantom_base_trades')
, ref('wigoswap_fantom_base_trades')
, ref('equalizer_fantom_base_trades')
, ref('spartacus_exchange_fantom_base_trades')
] %}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{
config(
schema = 'equalizer_fantom',
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 = 'fantom',
project = 'equalizer',
version = '1',
Pair_evt_Swap = source('equalizer_exchange_fantom', 'Pair_evt_Swap'),
Factory_evt_PairCreated = source('equalizer_exchange_fantom', 'PairFactory_evt_PairCreated')
)
}}
13 changes: 0 additions & 13 deletions models/equalizer/fantom/equalizer_fantom_sources.yml

This file was deleted.

0 comments on commit abe5d1b

Please sign in to comment.