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
tolszak committed Jun 8, 2024
1 parent 4603bf5 commit 67a2bca
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 4 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')
)
}}

0 comments on commit 67a2bca

Please sign in to comment.