-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[READY_FOR_REVIEW]: Update Bebop dex-aggregator #6035
Conversation
Workflow run id 9301267333 approved. |
Workflow run id 9301267436 approved. |
Workflow run id 9304503768 approved. |
Workflow run id 9304503850 approved. |
Workflow run id 9304567614 approved. |
Workflow run id 9304567866 approved. |
Workflow run id 9308183401 approved. |
Workflow run id 9308183695 approved. |
Workflow run id 9317221346 approved. |
Workflow run id 9317221513 approved. |
Workflow run id 9317588045 approved. |
Workflow run id 9317588246 approved. |
Workflow run id 9318883908 approved. |
Workflow run id 9318884020 approved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use incremental_predicate
for incremental filters.
Also there is a new format for the post_hook.
ON ex.call_tx_hash = evt.evt_tx_hash and ex.row_num = evt.row_num | ||
WHERE ex.call_success = TRUE | ||
{% if is_incremental() %} | ||
AND evt.evt_block_time >= date_trunc('day', now() - interval '7' Day) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use incremental_predicate
for incremental filters:
AND evt.evt_block_time >= date_trunc('day', now() - interval '7' Day) | |
AND {{ incremental_predicate('evt.evt_block_time') }} |
ON ex.call_tx_hash = evt.evt_tx_hash and ex.row_num = evt.row_num | ||
WHERE ex.call_success = TRUE | ||
{% if is_incremental() %} | ||
AND evt.evt_block_time >= date_trunc('day', now() - interval '7' Day) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
AND tx.block_time >= TIMESTAMP '{{project_start_date}}' | ||
{% endif %} | ||
{% if is_incremental() %} | ||
AND tx.block_time >= date_trunc('day', now() - interval '7' Day) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
post_hook='{{ expose_spells(\'["base"]\', | ||
"project", | ||
"bebop", | ||
\'["alekss"]\') }}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use the new format for post_hook here:
post_hook='{{ expose_spells(\'["base"]\', | |
"project", | |
"bebop", | |
\'["alekss"]\') }}' | |
materialized = 'view', | |
post_hook='{{ expose_spells(blockchains = \'["base"]\', | |
spell_type = "project", | |
spell_name = "bebop", | |
contributors = \'["alekss"]\') }}' |
ON ex.call_tx_hash = evt.evt_tx_hash and ex.row_num = evt.row_num | ||
WHERE ex.call_success = TRUE | ||
{% if is_incremental() %} | ||
AND evt.evt_block_time >= date_trunc('day', now() - interval '7' Day) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above incremental filters.
Workflow run id 9348948020 approved. |
Workflow run id 9348948142 approved. |
Workflow run id 9349307014 approved. |
Workflow run id 9349307165 approved. |
Thanks, fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.✅
Thank you @B1boid
New chains for existing version
Just copied the existing code and replaced the blockchain name.
Optimism - bebop_rfq_optimism_trades.sql
Base, Zksync, Scroll, Optimism - bebop_jam_chain_trades.sql
New version
Added new version "blend" which is next version of RFQ(version: "2")
For chains: Ethereum, Base, Arbitrum, Polygon
notes about naming: taker=user, maker=market-maker (since protocol is using market-maker liquidity for swaps)