一键导入
solana-cpmm
Reference for doppler-sol CPMM pools, positions, swaps, liquidity, protocol fee positions, oracle accounts, hooks, and PDA-based pool addressing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reference for doppler-sol CPMM pools, positions, swaps, liquidity, protocol fee positions, oracle accounts, hooks, and PDA-based pool addressing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Integrate and verify doppler-sol external hook programs for Initializer curve swaps and CPMM swaps/liquidity actions, including cosigner-hook expiry payloads, CPI return data, and remaining-account behavior.
Canonical reference for doppler-sol launch creation, bonding-curve trading, hook configuration, cosigner-gated launch payloads, migration handoff, authorized no-migrator launches, launch fee state, and initializer PDA semantics.
Use doppler-sol IDLs and the published TypeScript SDK for address derivation, account decoding, launch discovery, hook payload decoding, migrator payload encoding, and RPC lookup patterns.
Configure and verify doppler-sol initializer migrations into CPMM pools, including migrator payloads, state PDAs, migrated pool hook config, recipient distribution, and remaining-account order.
Reference for doppler-sol launch, CPMM, protocol, and migration fee accounting across Initializer, CPMM, and CPMM migrator flows.
Verify doppler-sol integrations with Solana RPC, SDK decoders, IDLs, transaction logs, and deterministic account checks.
| name | solana-cpmm |
| description | Reference for doppler-sol CPMM pools, positions, swaps, liquidity, protocol fee positions, oracle accounts, hooks, and PDA-based pool addressing. |
| license | MIT |
| metadata | {"author":"doppler","version":"1.0"} |
Consumer Source of Truth: Use the published
@whetstone-research/doppler-sdkSolana helpers and generated IDLs for pool addresses, instructions, and account decoding.
CPMM is the Solana post-migration AMM destination. It is a constant-product pool with SPL vaults, internal LP positions, optional oracle state, optional external hooks, and a protocol fee position.
Do not assume Uniswap V2 LP-token mechanics. Liquidity is tracked in Position accounts, and fees accrue through per-position accounting.
(pool, owner, position_id).swap_exact_in.| Item | Detail |
|---|---|
| Program | CPMM |
| Config PDA | [b"config"] |
| Pool PDA | [b"pool", token0_mint, token1_mint] |
| Mint ordering | raw pubkey byte order |
| Vault authority PDA | [b"authority", pool] |
| Position PDA | [b"position", pool, owner, position_id_le_bytes] |
| Protocol fee owner PDA | [b"protocol_fee_owner", pool] |
| Protocol fee position PDA | [b"position", pool, protocol_fee_owner, 0] |
| Oracle PDA | [b"oracle", pool] |
| Token support | token-interface: SPL Token or Token-2022 |
fees_unclaimed* when reconciling vault balances against reserves.quote_to_numeraire assumptions; current CPMM no longer has route fields.