[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78DPJTGXWJK3T7MCRDBHFCV":3,"skill-same:01M78DPJTGXWJK3T7MCRDBHFCV":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M78DPJTGXWJK3T7MCRDBHFCV","pump-solana-architecture",null,"Design Pump.fun Solana program architecture, PDAs, account layouts, global singletons, per-token state, per-user accumulators, Mayhem accounts, and cross-program coordination across Pump, PumpAMM, PumpFees, and Mayhem. Use for account-model or PDA work.","Solizardking\u002Fskillhub-main","Solizardking","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108096810?v=4","01M786KDB10AYV042N0F9BD5B5","Clawd","01M786NYYXSZK1D05WM8JQPC48",0,"MIT","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fpump-solana-architecture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pump-solana-architecture\ndescription: Design Pump.fun Solana program architecture, PDAs, account layouts, global singletons, per-token state, per-user accumulators, Mayhem accounts, and cross-program coordination across Pump, PumpAMM, PumpFees, and Mayhem. Use for account-model or PDA work.\n---\n\n# Solana Program Architecture — PDAs, Accounts & Multi-Program Coordination\n\nDesign, derive, and manage Program Derived Addresses (PDAs) and account layouts across the Pump ecosystem's four Solana programs with cross-program invocation patterns.\n\n## On-Chain Programs\n\n| Program | ID | Purpose |\n|---------|-----|---------|\n| Pump | `6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P` | Bonding curve operations |\n| PumpAMM | `pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA` | Graduated AMM pools |\n| PumpFees | `pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ` | Fee sharing |\n| Mayhem | `MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e` | Mayhem-mode tokens |\n\n## PDA Categories\n\n### Global Singletons\n- `GLOBAL_PDA` — `[\"global\"]` on Pump — protocol-wide config\n- `FEE_CONFIG_PDA` — `[\"fee-config\"]` on Pump — tiered fee settings\n- `GLOBAL_VOLUME_ACCUMULATOR_PDA` — `[\"global_volume_accumulator\"]` — protocol-wide volume\n\n### Per-Token PDAs\n- `bondingCurvePda(mint)` — `[\"bonding-curve\", mint]` — token bonding curve state\n- `bondingCurveTokenAccountPda(mint)` — `[\"bonding-curve-token-account\", mint]`\n- `feeSharingConfigPda(mint)` — `[\"sharing-config\", mint]` on PumpFees\n- `canonicalPumpPoolPda(mint)` — AMM pool for graduated token\n\n### Per-User PDAs\n- `creatorVaultPda(creator)` — `[\"creator-vault\", creator]` on Pump\n- `ammCreatorVaultPda(creator)` — `[\"creator_vault\", creator]` on PumpAMM\n- `userVolumeAccumulatorPda(user)` — `[\"user_volume_accumulator\", user]`\n\n### Mayhem PDAs\n- `mayhemMetadataPda(mint)` — `[\"mayhem_metadata\", mint]` on Mayhem\n- `mayhemWsolPda()` — `[\"mayhem_wsol\"]` on Mayhem\n\n## BothPrograms Pattern\n\nMany operations span both Pump and PumpAMM — the SDK provides aggregation:\n\n| Method | Description |\n|--------|-------------|\n| `getCreatorVaultBalanceBothPrograms` | Sum balance from both vaults |\n| `collectCoinCreatorFeeInstructions` | Collect from both programs |\n| `fetchUserVolumeAccumulatorTotalStats` | Aggregate volume across programs |\n| `claimTokenIncentivesBothPrograms` | Claim rewards from both |\n\n## Token Lifecycle Cross-Program Flow\n\n```\nPump Program                    PumpAMM Program\n┌─────────────┐                 ┌──────────────────┐\n│ create      │                 │                  │\n│ buy \u002F sell  │ ── migrate ──►  │ AMM trading      │\n│ graduate    │                 │ fee collection   │\n└─────────────┘                 └──────────────────┘\n       │                                │\n       └──── PumpFees Program ──────────┘\n             (fee sharing)\n```\n\n## Account Extension\n\nBonding curve accounts may need extension to `BONDING_CURVE_NEW_SIZE` (151 bytes) before certain operations:\n\n```typescript\nconst extendIx = await PUMP_SDK.extendAccountInstruction({\n    bondingCurvePda: bondingCurvePda(mint),\n    bondingCurveAccountInfo\n});\n```\n\n## Patterns to Follow\n\n- Use `findProgramAddressSync` for all PDA derivation — never manually compute bump seeds\n- Group related account fetches into a single `getMultipleAccountsInfo` call\n- Always check account existence before decoding — use nullable decoders\n- Extend accounts before migration or setCreator operations\n\n## Common Pitfalls\n\n- Creator vault PDA seeds differ: `\"creator-vault\"` (Pump, hyphen) vs `\"creator_vault\"` (AMM, underscore)\n- `canonicalPumpPoolPda` uses the external pump-swap-sdk, not the Pump program\n- Mayhem PDAs are on a separate program (`MAyhSm...`)\n- PDA derivation failures indicate an invalid bump — the address is off the Ed25519 curve\n","# Solana Program Architecture — PDAs, Accounts & Multi-Program Coordination\n\nDesign, derive, and manage Program Derived Addresses (PDAs) and account layouts across the Pump ecosystem's four Solana programs with cross-program invocation patterns.\n\n## On-Chain Programs\n\n| Program | ID | Purpose |\n|---------|-----|---------|\n| Pump | `6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P` | Bonding curve operations |\n| PumpAMM | `pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA` | Graduated AMM pools |\n| PumpFees | `pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ` | Fee sharing |\n| Mayhem | `MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e` | Mayhem-mode tokens |\n\n## PDA Categories\n\n### Global Singletons\n- `GLOBAL_PDA` — `[\"global\"]` on Pump — protocol-wide config\n- `FEE_CONFIG_PDA` — `[\"fee-config\"]` on Pump — tiered fee settings\n- `GLOBAL_VOLUME_ACCUMULATOR_PDA` — `[\"global_volume_accumulator\"]` — protocol-wide volume\n\n### Per-Token PDAs\n- `bondingCurvePda(mint)` — `[\"bonding-curve\", mint]` — token bonding curve state\n- `bondingCurveTokenAccountPda(mint)` — `[\"bonding-curve-token-account\", mint]`\n- `feeSharingConfigPda(mint)` — `[\"sharing-config\", mint]` on PumpFees\n- `canonicalPumpPoolPda(mint)` — AMM pool for graduated token\n\n### Per-User PDAs\n- `creatorVaultPda(creator)` — `[\"creator-vault\", creator]` on Pump\n- `ammCreatorVaultPda(creator)` — `[\"creator_vault\", creator]` on PumpAMM\n- `userVolumeAccumulatorPda(user)` — `[\"user_volume_accumulator\", user]`\n\n### Mayhem PDAs\n- `mayhemMetadataPda(mint)` — `[\"mayhem_metadata\", mint]` on Mayhem\n- `mayhemWsolPda()` — `[\"mayhem_wsol\"]` on Mayhem\n\n## BothPrograms Pattern\n\nMany operations span both Pump and PumpAMM — the SDK provides aggregation:\n\n| Method | Description |\n|--------|-------------|\n| `getCreatorVaultBalanceBothPrograms` | Sum balance from both vaults |\n| `collectCoinCreatorFeeInstructions` | Collect from both programs |\n| `fetchUserVolumeAccumulatorTotalStats` | Aggregate volume across programs |\n| `claimTokenIncentivesBothPrograms` | Claim rewards from both |\n\n## Token Lifecycle Cross-Program Flow\n\n```\nPump Program                    PumpAMM Program\n┌─────────────┐                 ┌──────────────────┐\n│ create      │                 │                  │\n│ buy \u002F sell  │ ── migrate ──►  │ AMM trading      │\n│ graduate    │                 │ fee collection   │\n└─────────────┘                 └──────────────────┘\n       │                                │\n       └──── PumpFees Program ──────────┘\n             (fee sharing)\n```\n\n## Account Extension\n\nBonding curve accounts may need extension to `BONDING_CURVE_NEW_SIZE` (151 bytes) before certain operations:\n\n```typescript\nconst extendIx = await PUMP_SDK.extendAccountInstruction({\n    bondingCurvePda: bondingCurvePda(mint),\n    bondingCurveAccountInfo\n});\n```\n\n## Patterns to Follow\n\n- Use `findProgramAddressSync` for all PDA derivation — never manually compute bump seeds\n- Group related account fetches into a single `getMultipleAccountsInfo` call\n- Always check account existence before decoding — use nullable decoders\n- Extend accounts before migration or setCreator operations\n\n## Common Pitfalls\n\n- Creator vault PDA seeds differ: `\"creator-vault\"` (Pump, hyphen) vs `\"creator_vault\"` (AMM, underscore)\n- `canonicalPumpPoolPda` uses the external pump-swap-sdk, not the Pump program\n- Mayhem PDAs are on a separate program (`MAyhSm...`)\n- PDA derivation failures indicate an invalid bump — the address is off the Ed25519 curve\n",{"name":5,"description":7},"main","be3de0244dc1a57e323d8160787ebb40fb64930e","skills\u002Fpump-solana-architecture","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main","https:\u002F\u002Fskills.x402.wtf","https:\u002F\u002Fgithub.com\u002FSolizardking","https:\u002F\u002Fmusebook.trade","Got a mile high and never came down","2026-10-08 23:20:13",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Solizardking\u002Fskillhub-main --skill pump-solana-architecture",{"tool":39,"command":40},"bunx","bunx skills add Solizardking\u002Fskillhub-main --skill pump-solana-architecture",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Solizardking\u002Fskillhub-main --skill pump-solana-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fpump-solana-architecture\u002FSKILL.md",true,[],[48,55,62,69,76,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M78E0TGCAMNPS207BA3G07S7","zkrouter","Self-hosted OpenAI-compatible LLM router — smart tier-based routing, ZK-stamped routing decisions, mode overrides, free OpenRouter at install via the Birth bot. Save 60-80% on inference costs by routing to the cheapest capable model across 12+ OpenRouter models.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzkrouter\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M78E0R1Z8BDT6EDTHY17MTNB","zk","For custom ZK Solana programs and privacy-preserving applications to prevent double spending. Guide to integrate rent-free nullifier PDAs for double-spend prevention.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzk\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M78E0P3ZTZ1YWF8MD5MM23QE","zk-omni-messaging","Zero-knowledge omnichain messaging between Robinhood Chain and Solana using CheshireZkOmniMessenger (msgType 4) with nullifier anti-replay and the zk-omni-relayer service.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzk-omni-messaging\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M78E0JXZ2PNB1896VXAGDBWD","zerion-wallet-data","Use when the user asks to check a wallet's portfolio, token balances, DeFi positions, PnL, transaction history, or NFTs. Provides interpreted on-chain data across 40+ EVM chains and Solana via x402 pay-per-request or API key — no raw RPC decoding needed.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzerion-wallet-data\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M78E0G14FH9GRRTQYMKD5E59","youtube-clipper","YouTube 视频智能剪辑工具。下载视频和字幕，AI 分析生成精细章节（几分钟级别）， 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频，并生成总结文案。 使用场景：当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词：视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M78E0C2ZYA99CFFDNB7ZMK5S","yield-optimization","Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit\u002Fwithdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter\u002Fexit a position, or check portfolio balances.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyield-optimization\u002FSKILL.md",[],[]]