Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose paraswap v6 decoded trades #7359

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
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(\'["arbitrum"]\',
"project",
"paraswap_v6",
\'["eptighte", "mwamedacen"]\') }}'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can apply the new format for post_hooks:

Suggested change
post_hook='{{ expose_spells(\'["arbitrum"]\',
"project",
"paraswap_v6",
\'["eptighte", "mwamedacen"]\') }}'
post_hook='{{ expose_spells(blockchains = \'["arbitrum"]\',
spell_type = "project",
spell_name = "paraswap_v6",
contributors = \'["eptighte", "mwamedacen"]\') }}'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @Hosuke ,
i've tried to apply this new verbose format but I'm getting this compilation error now
Screenshot 2024-12-20 at 10 30 10

I've checked configs and we're not using the deprecated field "tests" and use "data_tests" instead.
Do you know what might be the cause?

)
}}

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(\'["avalanche_c"]\',
"project",
"paraswap_v6",
\'["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(\'["base"]\',
"project",
"paraswap_v6",
\'["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(\'["bnb"]\',
"project",
"paraswap_v6",
\'["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(\'["ethereum"]\',
"project",
"paraswap_v6",
\'["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(\'["fantom"]\',
"project",
"paraswap_v6",
\'["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(\'["optimism"]\',
"project",
"paraswap_v6",
\'["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(\'["polygon"]\',
"project",
"paraswap_v6",
\'["eptighte", "mwamedacen"]\') }}'
)
}}

Expand Down
Loading