diff --git a/models/_sector/dex/trades/arbitrum/dex_arbitrum_base_trades.sql b/models/_sector/dex/trades/arbitrum/dex_arbitrum_base_trades.sql index ae013b11123..f64e73dc37f 100644 --- a/models/_sector/dex/trades/arbitrum/dex_arbitrum_base_trades.sql +++ b/models/_sector/dex/trades/arbitrum/dex_arbitrum_base_trades.sql @@ -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 ( diff --git a/models/_sector/dex/trades/arbitrum/platforms/solidly_v3_arbitrum_base_trades.sql b/models/_sector/dex/trades/arbitrum/platforms/solidly_v3_arbitrum_base_trades.sql new file mode 100644 index 00000000000..a4bc03ada4e --- /dev/null +++ b/models/_sector/dex/trades/arbitrum/platforms/solidly_v3_arbitrum_base_trades.sql @@ -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') + ) +}} diff --git a/models/_sector/dex/trades/base/dex_base_base_trades.sql b/models/_sector/dex/trades/base/dex_base_base_trades.sql index e54d5a1d8f5..f4c6151640b 100644 --- a/models/_sector/dex/trades/base/dex_base_base_trades.sql +++ b/models/_sector/dex/trades/base/dex_base_base_trades.sql @@ -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 ( @@ -83,4 +84,4 @@ WITH base_union AS ( , blockchain = 'base' , columns = ['from', 'to', 'index'] ) -}} \ No newline at end of file +}} diff --git a/models/_sector/dex/trades/base/platforms/solidly_v3_base_base_trades.sql b/models/_sector/dex/trades/base/platforms/solidly_v3_base_base_trades.sql index cfe62a7f15c..3869b23c3a4 100644 --- a/models/_sector/dex/trades/base/platforms/solidly_v3_base_base_trades.sql +++ b/models/_sector/dex/trades/base/platforms/solidly_v3_base_base_trades.sql @@ -1,6 +1,6 @@ {{ config( - schema = 'solidly_v3_base', + schema = 'solidly__base', alias = 'base_trades', materialized = 'incremental', file_format = 'delta', diff --git a/models/_sector/dex/trades/ethereum/dex_ethereum_base_trades.sql b/models/_sector/dex/trades/ethereum/dex_ethereum_base_trades.sql index 20b466dbe0e..914ccc9914c 100644 --- a/models/_sector/dex/trades/ethereum/dex_ethereum_base_trades.sql +++ b/models/_sector/dex/trades/ethereum/dex_ethereum_base_trades.sql @@ -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 ( @@ -72,4 +73,4 @@ WITH base_union AS ( , blockchain = 'ethereum' , columns = ['from', 'to', 'index'] ) -}} \ No newline at end of file +}} diff --git a/models/_sector/dex/trades/ethereum/platforms/solidly_v3_ethereum_base_trades.sql b/models/_sector/dex/trades/ethereum/platforms/solidly_v3_ethereum_base_trades.sql new file mode 100644 index 00000000000..0d583563c50 --- /dev/null +++ b/models/_sector/dex/trades/ethereum/platforms/solidly_v3_ethereum_base_trades.sql @@ -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') + ) +}} diff --git a/models/_sector/dex/trades/fantom/dex_fantom_base_trades.sql b/models/_sector/dex/trades/fantom/dex_fantom_base_trades.sql index ad1106b6295..fbb56f4c046 100644 --- a/models/_sector/dex/trades/fantom/dex_fantom_base_trades.sql +++ b/models/_sector/dex/trades/fantom/dex_fantom_base_trades.sql @@ -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 ( @@ -54,4 +55,4 @@ WITH base_union AS ( , blockchain = 'fantom' , columns = ['from', 'to', 'index'] ) -}} \ No newline at end of file +}} diff --git a/models/_sector/dex/trades/fantom/platforms/solidly_v3_fantom_base_trades.sql b/models/_sector/dex/trades/fantom/platforms/solidly_v3_fantom_base_trades.sql new file mode 100644 index 00000000000..91ee0a2c56d --- /dev/null +++ b/models/_sector/dex/trades/fantom/platforms/solidly_v3_fantom_base_trades.sql @@ -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') + ) +}}