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 7, 2024
1 parent 4603bf5 commit 231d454
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 1 deletion.
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')
)
}}
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
@@ -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')
)
}}
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 231d454

Please sign in to comment.