-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Added new PumpFun AMM buy event to stg_decoded_swaps #9428
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
Open
megavel
wants to merge
18
commits into
duneanalytics:main
Choose a base branch
from
megavel:pumpswap-new-event
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f46a60f
Added new PumpFun buy event to stg_decoded_swaps
megavel 3760bec
Moved new event into separate staging model with improved join logic
megavel 086b6da
Merge branch 'duneanalytics:main' into pumpswap-new-event
megavel e3a613f
Addressed query review nitpicks
megavel e176085
Merge branch 'duneanalytics:main' into pumpswap-new-event
megavel 09c8d0f
Merge branch 'pumpswap-new-event' of https://github.com/megavel/spell…
megavel 9a4420a
begin date change
megavel c36efb6
Merge branch 'duneanalytics:main' into pumpswap-new-event
megavel d488da2
Support quote_token_amount in new events with transfer fallback for o…
megavel 3a9ed44
Merge branch 'pumpswap-new-event' of https://github.com/megavel/spell…
megavel 5fa8d98
Trigger CI re-run
megavel 952d82e
Trigger CI re-run
megavel 8d752e5
Trigger CI re-run
megavel 3aac472
quote_amount
megavel 5799cd4
Fix missing quote amounts by separating old/new event join logic in s…
megavel bf18c83
Merge branch 'duneanalytics:main' into pumpswap-new-event
megavel 8885f00
fixed a missing ','
megavel 032fe5f
Merge branch 'pumpswap-new-event' of https://github.com/megavel/spell…
megavel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,4 +42,4 @@ SELECT | |
| p.quoteMint, | ||
| p.baseMintDecimals, | ||
| p.quoteMintDecimals | ||
| FROM pool_creation p | ||
| FROM pool_creation p | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Tighten the
g↔fjoin to an instruction-scoped key.Right now this branch matches
gandfontx_idonly. If a transaction contains more than one qualifying PumpFun instruction, every matchingfrow can pair with every matchinggrow, which will duplicate swaps and attach the wrongaccount_pool_*_token_accountvalues. Please join on the smallest instruction-level key that makes the relationship 1:1 for this tx, and includeblock_datein the join/filter so the raw-table self-join stays prunable.As per coding guidelines, "Filter on block_date (not block_time) for partition pruning, and always include partition columns in WHERE and JOIN conditions".
🤖 Prompt for AI Agents