pump-admin-ops
Admin and authority operations for the Pump protocol — set coin creator, update token incentives, set IDL authority, claim cashback, Mayhem mode, and BothPrograms cross-program admin instructions.
- License 许可
- MIT
- 最近更新
- 2026-08-01
- Stars
- ★ 2
- Forks
- 3
01 前言 Front Matter
- name
- pump-admin-ops
- metadata
- { "solanaos": { "homepage": "https://github.com/nirholas/pump-fun-sdk", "requires": { "env": [ "SOLANA_RPC_URL" ] } } }
- description
- Admin and authority operations for the Pump protocol — set coin creator, update token incentives, set IDL authority, claim cashback, Mayhem mode, and BothPrograms cross-program admin instructions.
03 SKILL.md 正文
Admin Operations — Authority Management & Protocol Administration
Manage Pump protocol authority operations: set coin creator, update token incentives, set IDL authority, claim cashback, and cross-program admin instructions.
Authority Model
| Authority | Account | Controls |
|---|---|---|
global.authority |
Global PDA | Protocol parameters |
bondingCurve.creator |
Per-token | Creator fee recipient |
sharingConfig.admin |
Per-token | Fee sharing shareholders |
global.idlAuthority |
Global PDA | IDL updates |
feeConfig.authority |
FeeConfig PDA | Fee tier configuration |
backendWallet |
Global PDA | Cashback claims |
Admin Operations
Set Coin Creator
const ix = await PUMP_SDK.setCreator({ mint, creator: newCreator, user: admin });
// Cross-program version:
const ixs = await onlineSdk.adminSetCoinCreatorInstructions(newCreator, mint);
Update Token Incentives
const ix = await PUMP_SDK.syncUserVolumeAccumulator({ user, authority });
Set IDL Authority
const ix = await PUMP_SDK.setIdlAuthority({ newAuthority, currentAuthority });
Claim Cashback
const ix = await PUMP_SDK.claimCashback({ user, backendSigner });
BothPrograms Admin Pattern
| Method | Description |
|---|---|
adminSetCoinCreatorInstructions |
Set creator on Pump + PumpAMM |
collectCoinCreatorFeeInstructions |
Collect fees from both vaults |
syncUserVolumeAccumulatorBothPrograms |
Sync volume on both programs |
Mayhem Mode
Tokens with isMayhemMode === true use:
MAYHEM_PROGRAM_IDfor additional PDAsglobal.reservedFeeRecipients[]instead ofglobal.feeRecipients[]- Different token supply values
Patterns to Follow
- Only protocol authority can call admin instructions — verify signer
- Use BothPrograms methods for cross-program admin operations
- Check
bondingCurve.completebefore admin operations on bonding curves - Extend accounts to
BONDING_CURVE_NEW_SIZEbeforesetCreator
Common Pitfalls
setCreatorrequires account extension first — will fail on undersized accounts- Admin instructions fail silently if the signer lacks authority
- Mayhem mode tokens have separate fee recipient lists
adminRevoked === trueon SharingConfig blocks all shareholder updates
04 同仓库更多 Skills
solana-dev
End-to-end Solana development playbook (Jan 2026). Prefer Solana Foundation framework-kit (@solana/client + @solana/react-hooks) for React/Next.js UI. Prefer @solana/kit for all new client/RPC/transaction code. When legacy dependencies require web3.js, isolate it behind @solana/web3-compat (or @solana/web3.js as a true legacy fallback). Covers wallet-standard-first connection (incl. ConnectorKit), Anchor/Pinocchio programs, Codama-based client generation, LiteSVM/Mollusk/Surfpool testing, and security checklists.
xurl
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
wurk-integration
WURK API integration for monetizing agents with x402 payments on Solana/Base - create social jobs, custom challenges, and agent help tasks
workflows
Manage application workflows including configuration, restart, and removal.
web-search
Search the web, fetch content, extract branding profiles, and capture screenshots from URLs. Use for real-time information, API documentation, current events, design matching, and visual reference.
weather
Get current weather and forecasts via wttr.in or Open-Meteo. Use when: user asks about weather, temperature, or forecasts for any location. NOT for: historical weather data, severe weather alerts, or detailed meteorological analysis. No API key needed.