用途:面向 Pump 协议的管理员与权限操作,集中处理协议级权限管理与跨程序管理指令。
主要能力:设置代币创建者(setCreator)、更新代币激励(syncUserVolumeAccumulator)、设置 IDL 权限(setIdlAuthority)、领取返现(claimCashback),以及 Pump 与 PumpAMM 的跨程序管理操作,如 adminSetCoinCreatorInstructions、collectCoinCreatorFeeInstructions、syncUserVolumeAccumulatorBothPrograms。
权限模型:global.authority 控制协议参数;bondingCurve.creator 为每个代币的创建者费用接收方;sharingConfig.admin 管理费用分成股东;global.idlAuthority 管理 IDL 更新;feeConfig.authority 管理费用层级配置;backendWallet 负责返现领取。
使用方式:通过 PUMP_SDK 调用相应方法,例如 setCreator({ mint, creator, user })、syncUserVolumeAccumulator({ user, authority })、setIdlAuthority({ newAuthority, currentAuthority })、claimCashback({ user, backendSigner });跨程序场景使用 onlineSdk 的 BothPrograms 系列方法。
Mayhem 模式:isMayhemMode === true 的代币使用 MAYHEM_PROGRAM_ID 生成额外 PDA,使用 global.reservedFeeRecipients[] 而非 global.feeRecipients[],且代币供应量取值不同。
限制与注意:仅协议权限方可调用管理指令,需验证签名者;对 bonding curve 操作前检查 bondingCurve.complete;setCreator 前需将账户扩展到 BONDING_CURVE_NEW_SIZE,否则会因账户过小而失败;签名者无权限时管理指令会静默失败;SharingConfig 上 adminRevoked === true 会阻止所有股东更新。具体收费、价格与平台信息暂未提供。