-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Init: Referrals sector #4519
Init: Referrals sector #4519
Conversation
@aalan3 @jeff-dude, I adapted this new sector according to our discussion. I hope we can push this through so this new sector data is available in Dune and we can iterate on the different materialization strategies in follow up PR's. 🙏 |
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.
leaving a few comments below for now 🙏
models/_sector/referral/rewards/legacy/rabbithole_arbitrum_rewards_legacy.sql
Outdated
Show resolved
Hide resolved
models/_sector/referral/rewards/platforms/rabbithole_arbitrum_rewards.sql
Outdated
Show resolved
Hide resolved
fyi @aalan3 @couralex6 @Hosuke |
Impressive. |
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.
one minor comment below, but let's proceed and clean up later if needed
a pleasure to review, as always -- thank you!
inner join {{source(blockchain, 'transactions')}} tx | ||
on evt_block_number = tx.block_number | ||
and evt_tx_hash = tx.hash | ||
{% if is_incremental() %} | ||
and {{incremental_predicate('tx.block_time')}} | ||
{% endif %} |
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.
won't let this block the PR, but i think this is missing the new macro step for joining to transactions
, similar to others?
Initial setup of a sector spell to track and analyze referral rewards payed out by protocols.
Currently contains data for: