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/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/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..8be91bd4a91 --- /dev/null +++ b/models/_sector/dex/trades/ethereum/platforms/solidly_v3_ethereum_base_trades.sql @@ -0,0 +1,21 @@ +{{ + config( + schema = 'solidly_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_ethereum', 'SolidlyV3Factory_evt_PoolCreated') + ) +}} 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') + ) +}}