Skip to content

Enable Pump and PumpSwap in the Studio scenario editor - #3

Open
92Infinitus92 wants to merge 5 commits into
developfrom
feat/pump-protocol-ui
Open

Enable Pump and PumpSwap in the Studio scenario editor#3
92Infinitus92 wants to merge 5 commits into
developfrom
feat/pump-protocol-ui

Conversation

@92Infinitus92

@92Infinitus92 92Infinitus92 commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #2 - review/merge that one first; this branch targets it, not
develop, so the diff stays to just the three UI commits.

What's here:

  • Pump and PumpSwap show up as protocol tiles in the editor and the AI protocol picker,
    with their pump.fun icons.
  • Scenario cards now get their protocol name from the templates list instead of guessing
    from the templateId prefix — so pump-amm-* shows as PumpSwap, not "Pump", and kamino
    stays Kamino.
  • Two example prompts in the AI header: reset a coin's bonding curve, and price-spike a
    migrated pool.

The protocol-resolution logic moved into a small helper (scenarios-data.ts) with unit tests
covering the cases that used to break.

Greptile Summary

The PR enables Pump and PumpSwap throughout the Studio scenario workflow.

  • Adds protocol tiles, icons, AI examples, and specialized Pump/PumpSwap preset dialogs.
  • Resolves scenario protocol names through template metadata rather than template-ID prefixes.
  • Extracts scenario conversion and token-selector logic into tested helpers.

Confidence Score: 5/5

The PR appears safe to merge because no blocking failure remains in the available follow-up-review scope.

No blocking failure remains.

Important Files Changed

Filename Overview
apps/studio/src/app/scenarios/page.tsx Loads template metadata and delegates both supported scenario response shapes to the shared conversion helper.
apps/studio/src/lib/scenarios-data.ts Centralizes API scenario conversion and protocol-name resolution, including multi-dash template IDs.
apps/studio/src/components/svm/scenario-editor.tsx Enables Pump and PumpSwap templates and adopts shared icon and token-option resolution.
apps/studio/src/lib/scenarios-api.ts Adds request helpers for the specialized Pump graduation and PumpSwap price-shock presets.
apps/studio/src/components/svm/scenarios-bento.tsx Integrates preset cards, creation dialogs, refresh behavior, and editor navigation.
apps/studio/src/components/svm/ai-header.tsx Adds Pump-focused examples and reorganizes example prompts into a horizontally scrollable two-row control.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Studio scenario page] --> B[Load scenarios]
  A --> C[Load templates]
  B --> D[scenarioFromApiData]
  C --> D
  D --> E[Scenario cards and editor]
  F[Pump graduation preset] --> G[Preset API]
  H[PumpSwap price shock preset] --> G
  G --> E
Loading

Reviews (3): Last reviewed commit: "feat(studio): add PumpSwap price shock p..." | Re-trigger Greptile

@92Infinitus92 92Infinitus92 self-assigned this Aug 10, 2026
@92Infinitus92

Copy link
Copy Markdown
Collaborator Author

@greptileai

@92Infinitus92
92Infinitus92 force-pushed the feat/pump-protocol-ui branch from 3ba4494 to 5b76a33 Compare August 12, 2026 12:49
@92Infinitus92
92Infinitus92 force-pushed the feat/download-scenario branch from a123394 to 433eb90 Compare August 12, 2026 13:08
Build the graduation scenario from a token mint via the graduation endpoint,
through a no-LLM preset dialog and an AI chip. Add custom-mint support in the
override editor so mints outside the verified catalog are shown and preserved.
@92Infinitus92
92Infinitus92 force-pushed the feat/pump-protocol-ui branch from 5b76a33 to 1473c2d Compare August 12, 2026 13:29
@92Infinitus92
92Infinitus92 changed the base branch from feat/download-scenario to develop August 12, 2026 13:29
@92Infinitus92
92Infinitus92 marked this pull request as ready for review August 12, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant