repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | --- |
| #2 | name: pump-admin-ops |
| #3 | 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." |
| #4 | metadata: |
| #5 | openclaw: |
| #6 | homepage: https://github.com/nirholas/pump-fun-sdk |
| #7 | requires: |
| #8 | env: |
| #9 | - SOLANA_RPC_URL |
| #10 | --- |
| #11 | |
| #12 | # Admin Operations — Authority Management & Protocol Administration |
| #13 | |
| #14 | Manage Pump protocol authority operations: set coin creator, update token incentives, set IDL authority, claim cashback, and cross-program admin instructions. |
| #15 | |
| #16 | ## Authority Model |
| #17 | |
| #18 | | Authority | Account | Controls | |
| #19 | |-----------|---------|----------| |
| #20 | | `global.authority` | Global PDA | Protocol parameters | |
| #21 | | `bondingCurve.creator` | Per-token | Creator fee recipient | |
| #22 | | `sharingConfig.admin` | Per-token | Fee sharing shareholders | |
| #23 | | `global.idlAuthority` | Global PDA | IDL updates | |
| #24 | | `feeConfig.authority` | FeeConfig PDA | Fee tier configuration | |
| #25 | | `backendWallet` | Global PDA | Cashback claims | |
| #26 | |
| #27 | ## Admin Operations |
| #28 | |
| #29 | ### Set Coin Creator |
| #30 | ```typescript |
| #31 | const ix = await PUMP_SDK.setCreator({ mint, creator: newCreator, user: admin }); |
| #32 | // Cross-program version: |
| #33 | const ixs = await onlineSdk.adminSetCoinCreatorInstructions(newCreator, mint); |
| #34 | ``` |
| #35 | |
| #36 | ### Update Token Incentives |
| #37 | ```typescript |
| #38 | const ix = await PUMP_SDK.syncUserVolumeAccumulator({ user, authority }); |
| #39 | ``` |
| #40 | |
| #41 | ### Set IDL Authority |
| #42 | ```typescript |
| #43 | const ix = await PUMP_SDK.setIdlAuthority({ newAuthority, currentAuthority }); |
| #44 | ``` |
| #45 | |
| #46 | ### Claim Cashback |
| #47 | ```typescript |
| #48 | const ix = await PUMP_SDK.claimCashback({ user, backendSigner }); |
| #49 | ``` |
| #50 | |
| #51 | ## BothPrograms Admin Pattern |
| #52 | |
| #53 | | Method | Description | |
| #54 | |--------|-------------| |
| #55 | | `adminSetCoinCreatorInstructions` | Set creator on Pump + PumpAMM | |
| #56 | | `collectCoinCreatorFeeInstructions` | Collect fees from both vaults | |
| #57 | | `syncUserVolumeAccumulatorBothPrograms` | Sync volume on both programs | |
| #58 | |
| #59 | ## Mayhem Mode |
| #60 | |
| #61 | Tokens with `isMayhemMode === true` use: |
| #62 | - `MAYHEM_PROGRAM_ID` for additional PDAs |
| #63 | - `global.reservedFeeRecipients[]` instead of `global.feeRecipients[]` |
| #64 | - Different token supply values |
| #65 | |
| #66 | ## Patterns to Follow |
| #67 | |
| #68 | - Only protocol authority can call admin instructions — verify signer |
| #69 | - Use BothPrograms methods for cross-program admin operations |
| #70 | - Check `bondingCurve.complete` before admin operations on bonding curves |
| #71 | - Extend accounts to `BONDING_CURVE_NEW_SIZE` before `setCreator` |
| #72 | |
| #73 | ## Common Pitfalls |
| #74 | |
| #75 | - `setCreator` requires account extension first — will fail on undersized accounts |
| #76 | - Admin instructions fail silently if the signer lacks authority |
| #77 | - Mayhem mode tokens have separate fee recipient lists |
| #78 | - `adminRevoked === true` on SharingConfig blocks all shareholder updates |
| #79 | |
| #80 |