Add Pump and PumpSwap state-preparation templates - #3
Open
92Infinitus92 wants to merge 5 commits into
Open
Conversation
Collaborator
Author
92Infinitus92
force-pushed
the
feat/pump-protocol
branch
from
August 10, 2026 14:29
813b034 to
5cd0bd1
Compare
92Infinitus92
marked this pull request as ready for review
August 12, 2026 12:37
Collaborator
Author
92Infinitus92
force-pushed
the
feat/pump-protocol
branch
from
August 14, 2026 06:46
769af29 to
7cbe546
Compare
Give every field of the pump-global, pump-amm-pool-state and pump-amm-global-config templates a label and description (they were bare name lists), and add a field reference to both pump READMEs. Expose Global.withdraw_authority so a migrate can be driven on a fork. Trim the bonding-curve llmContext of its redundant worked example and the niche cost formula.
Prepare a near-complete Token-2022 pump.fun curve so one buy graduates it: a graduation calculator/validator, the pump-token-2022-curve-balance template with a tail-safe Token-2022 amount write, the /v1/scenarios/pump-graduation endpoint and MCP tool, and an ignored buy_v2 -> migrate_v2 -> sell lifecycle harness backed by a frozen snapshot fixture.
92Infinitus92
force-pushed
the
feat/pump-protocol
branch
from
August 17, 2026 08:33
bb33ae4 to
0606ab5
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds pump.fun support to scenario state prep. A coin lives on two programs - the Pump
bonding curve, then the PumpSwap AMM after it graduates - so this covers both.
Heads up on the size: ~14k of the diff is the two vendored IDL files.
Five templates:
You can reset a curve to launch state, mark one complete, or shift a pool's price through
virtual_quote_reserves. The token pickers only show pump.fun coins.
Tests: PDA derivation checked against the addresses in pump-public-docs; apply-path tests
run real mainnet account snapshots through and confirm only the fields we touch change,
byte for byte; MCP tests make sure junk mints get rejected early.
Greptile Summary
Adds Pump and PumpSwap scenario preparation, including account templates, canonical address derivation, HTTP/MCP entry points, and Token-2022-safe account updates.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart LR Mint[Pump token mint] --> Curve[Pump bonding curve] Curve -->|Graduation preparation| Complete[Completed curve state] Complete --> Pool[Canonical PumpSwap pool] Pool -->|Price-shock preparation| Repriced[Adjusted virtual quote reserves] Remote[Remote RPC snapshots] --> Curve Remote --> Pool Templates[Scenario templates] --> Curve Templates --> PoolReviews (7): Last reviewed commit: "test(pump): verify scenario-driven lifec..." | Re-trigger Greptile