Skip to content

Commit

Permalink
feat: expose paraswap v6 decoded trades (duneanalytics#7359)
Browse files Browse the repository at this point in the history
* feat: expose paraswap v6 decoded trades

* chore: new, more verbose format for exposing spells

* re-trigger build

* try normalizing to lowercase

* Revert "try normalizing to lowercase"

This reverts commit 8a0a0d6.

* Revert "chore: new, more verbose format for exposing spells"

This reverts commit 36cb7b5.

* Revert "Revert "chore: new, more verbose format for exposing spells""

This reverts commit bbca115.
  • Loading branch information
alexshchur authored Dec 30, 2024
1 parent a1dc23d commit 24022d6
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.blockTime')],
unique_key = ['call_tx_hash', 'method', 'call_trace_address']
unique_key = ['call_tx_hash', 'method', 'call_trace_address'],
post_hook='{{ expose_spells(blockchains = \'["arbitrum"]\',
spell_type = "project",
spell_name = "paraswap_v6",
contributors = \'["eptighte", "mwamedacen"]\') }}'
)

}}

{{ paraswap_v6_trades_master('arbitrum', 'paraswap') }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.blockTime')],
unique_key = ['call_tx_hash', 'method', 'call_trace_address']
unique_key = ['call_tx_hash', 'method', 'call_trace_address'],
post_hook='{{ expose_spells(blockchains = \'["avalanche_c"]\',
spell_type = "project",
spell_name = "paraswap_v6",
contributors = \'["eptighte", "mwamedacen"]\') }}'
)
}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.blockTime')],
unique_key = ['call_tx_hash', 'method', 'call_trace_address']
unique_key = ['call_tx_hash', 'method', 'call_trace_address'],
post_hook='{{ expose_spells(blockchains = \'["base"]\',
spell_type = "project",
spell_name = "paraswap_v6",
contributors = \'["eptighte", "mwamedacen"]\') }}'
)
}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.blockTime')],
unique_key = ['call_tx_hash', 'method', 'call_trace_address']
unique_key = ['call_tx_hash', 'method', 'call_trace_address'],
post_hook='{{ expose_spells(blockchains = \'["bnb"]\',
spell_type = "project",
spell_name = "paraswap_v6",
contributors = \'["eptighte", "mwamedacen"]\') }}'
)
}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.blockTime')],
unique_key = ['call_tx_hash', 'method', 'call_trace_address']
unique_key = ['call_tx_hash', 'method', 'call_trace_address'],
post_hook='{{ expose_spells(blockchains = \'["ethereum"]\',
spell_type = "project",
spell_name = "paraswap_v6",
contributors = \'["eptighte", "mwamedacen"]\') }}'
)
}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.blockTime')],
unique_key = ['call_tx_hash', 'method', 'call_trace_address']
unique_key = ['call_tx_hash', 'method', 'call_trace_address'],
post_hook='{{ expose_spells(blockchains = \'["fantom"]\',
spell_type = "project",
spell_name = "paraswap_v6",
contributors = \'["eptighte", "mwamedacen"]\') }}'
)
}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.blockTime')],
unique_key = ['call_tx_hash', 'method', 'call_trace_address']
unique_key = ['call_tx_hash', 'method', 'call_trace_address'],
post_hook='{{ expose_spells(blockchains = \'["optimism"]\',
spell_type = "project",
spell_name = "paraswap_v6",
contributors = \'["eptighte", "mwamedacen"]\') }}'
)
}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.blockTime')],
unique_key = ['call_tx_hash', 'method', 'call_trace_address']
unique_key = ['call_tx_hash', 'method', 'call_trace_address'],
post_hook='{{ expose_spells(blockchains = \'["polygon"]\',
spell_type = "project",
spell_name = "paraswap_v6",
contributors = \'["eptighte", "mwamedacen"]\') }}'
)
}}

Expand Down

0 comments on commit 24022d6

Please sign in to comment.