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
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 14, 2026 06:46
769af29 to
7cbe546
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 bonding-curve and PumpSwap state-preparation support, including templates, generated scenarios, account-preserving token updates, API endpoints, and integration fixtures.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Sequence Diagram
sequenceDiagram participant Client participant API as Studio Scenario API participant RPC as Remote Solana RPC participant Builder as Pump Scenario Builder participant Store as Loaded Scenarios Client->>API: POST Pump preparation request API->>RPC: Fetch mint, curve, pool, vault, and config accounts RPC-->>API: Confirmed account snapshots API->>Builder: Build graduation or price-shock scenario Builder-->>API: Prepared scenario and derived addresses API->>Store: Register prepared scenario API-->>Client: Scenario ID and preparation metadataReviews (6): Last reviewed commit: "test(pump): verify scenario-driven lifec..." | Re-trigger Greptile