Skip to content

Commit

Permalink
Add missing spells for Solidly V3
Browse files Browse the repository at this point in the history
Now it should be available in dex.trades
  • Loading branch information
ibilbobaggins committed Jun 10, 2024
1 parent 4603bf5 commit 6a064c2
Show file tree
Hide file tree
Showing 12 changed files with 90 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
, ref('uniswap_v2_arbitrum_base_trades')
, ref('auragi_arbitrum_base_trades')
, ref('wombat_exchange_arbitrum_base_trades')
, ref('solidly_v3_arbitrum_base_trades')
] %}

WITH base_union AS (
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{
config(
schema = 'solidly_v3_arbitrum',
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_v3_trades(
blockchain = 'arbitrum',
project = 'solidly',
version = '3',
Pair_evt_Swap = source('solidly_v3_arbitrum', 'SolidlyV3Pool_evt_Swap'),
Factory_evt_PoolCreated = source('solidly_v3_arbitrum', 'SolidlyV3Factory_evt_PoolCreated')
)
}}
3 changes: 2 additions & 1 deletion models/_sector/dex/trades/base/dex_base_base_trades.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
, ref('alienbase_base_base_trades')
, ref('swapbased_base_base_trades')
, ref('clipper_base_base_trades')
, ref('solidly_v3_base_base_trades')
] %}

WITH base_union AS (
Expand Down Expand Up @@ -83,4 +84,4 @@ WITH base_union AS (
, blockchain = 'base'
, columns = ['from', 'to', 'index']
)
}}
}}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{
config(
schema = 'solidly_v3_base',
schema = 'solidly__base',
alias = 'base_trades',
materialized = 'incremental',
file_format = 'delta',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
, ref('mstable_ethereum_base_trades')
, ref('xchange_ethereum_base_trades')
, ref('curvefi_ethereum_base_trades')
, ref('solidly_v3_ethereum_base_trades')
] %}

WITH base_union AS (
Expand Down Expand Up @@ -72,4 +73,4 @@ WITH base_union AS (
, blockchain = 'ethereum'
, columns = ['from', 'to', 'index']
)
}}
}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{
config(
schema = 'solidly_v3_ethereum',
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_v3_trades(
blockchain = 'ethereum',
project = 'solidly',
version = '3',
Pair_evt_Swap = source('solidly_ethereum', 'SolidlyV3Pool_evt_Swap'),
Factory_evt_PoolCreated = source('solidly_v3_ethereum', 'SolidlyV3Factory_evt_PoolCreated')
)
}}
3 changes: 2 additions & 1 deletion models/_sector/dex/trades/fantom/dex_fantom_base_trades.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
, ref('openocean_fantom_base_trades')
, ref('beethoven_x_fantom_base_trades')
, ref('curvefi_fantom_base_trades')
, ref('solidly_v3_fantom_base_trades')
] %}

WITH base_union AS (
Expand Down Expand Up @@ -54,4 +55,4 @@ WITH base_union AS (
, blockchain = 'fantom'
, columns = ['from', 'to', 'index']
)
}}
}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{
config(
schema = 'solidly_v3_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_v3_trades(
blockchain = 'fantom',
project = 'solidly',
version = '3',
Pair_evt_Swap = source('solidly_v3_fantom', 'SolidlyV3Pool_evt_Swap'),
Factory_evt_PoolCreated = source('solidly_v3_fantom', 'SolidlyV3Factory_evt_PoolCreated')
)
}}
7 changes: 6 additions & 1 deletion sources/_sector/dex/trades/arbitrum/_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,9 @@ sources:
- name: PairFactory_evt_PairCreated
- name: wombatexchange_arbitrum
tables:
- name: CrossChainPool_evt_SwapV2
- name: CrossChainPool_evt_SwapV2
- name: solidly_v3_arbitrum
tables:
- name: SolidlyV3Factory_evt_PoolCreated
- name: SolidlyV3Pool_evt_Swap

7 changes: 7 additions & 0 deletions sources/_sector/dex/trades/ethereum/_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,10 @@ sources:
tables:
- name: XchangePair_evt_Swap
- name: XchangeFactory_evt_PairCreated
- name: solidly_v3_ethereum
tables:
- name: SolidlyV3Factory_evt_PoolCreated
- name: solidly_ethereum
tables:
- name: SolidlyV3Pool_evt_Swap

5 changes: 5 additions & 0 deletions sources/_sector/dex/trades/fantom/_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ sources:
tables:
- name: StableSwap_evt_TokenExchange
- name: StableSwap_evt_TokenExchangeUnderlying
- name: solidly_v3_fantom
tables:
- name: SolidlyV3Factory_evt_PoolCreated
- name: SolidlyV3Pool_evt_Swap

2 changes: 1 addition & 1 deletion sources/_sector/dex/trades/optimism/_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ sources:
- name: fraxswap_optimism
tables:
- name: FraxswapPair_evt_Swap
- name: FraxswapFactory_evt_PairCreated
- name: FraxswapFactory_evt_PairCreated

0 comments on commit 6a064c2

Please sign in to comment.