Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
chore: presence sweep script, pump.fun upstream docs/tasks, pump-swap-sdk 1.17
nirholas78a7a402a12c
diff --git a/.gitignore b/.gitignoreindex 080312642..a479e61ec 100644--- a/.gitignore+++ b/.gitignore@@ -195,3 +195,7 @@ docs/ibm.md# Python bytecode (workers/)__pycache__/*.pyc++# three.ws presence sweep — regenerate with `npm run presence`+three-ws-presence.json+three-ws-presence.mddiff --git a/.prettierignore b/.prettierignoreindex 9cb062f8e..abf2195f8 100644--- a/.prettierignore+++ b/.prettierignore@@ -7,6 +7,7 @@ dist-artifact/# Vendored / external library codecontracts/lib/character-studio/+docs/pumpfun-program/# Build artifacts*.min.jsdiff --git a/docs/pumpfun-program/README.md b/docs/pumpfun-program/README.mdnew file mode 100644index 000000000..63df0729d--- /dev/null+++ b/docs/pumpfun-program/README.md@@ -0,0 +1,51 @@+# pump.fun program reference (vendored snapshot)++Read-only reference copy of pump.fun's public program docs + IDLs, vendored into+this repo so on-chain work (instruction builders, fee logic, swap routing) can be+diffed against the source of truth without a network round-trip.++- **Source:** https://github.com/pump-fun/pump-public-docs+- **Commit:** `1b822158844a60ca577df6ca122211b595a1a578`+- **Vendored:** 2026-06-08+- **Maintainers (npm publishers of `@pump-fun/*`):** `oussama-baton`, `security-baton`++This is a snapshot, not a dependency. Do not edit these files to "fix" anything —+re-vendor from upstream to update. Nothing here is imported by application code.++## What's in here++| Path | What it covers |+| --- | --- |+| `UPSTREAM-buy-sell-v2-announcement.md` | **The v2 trade-instruction announcement** — `buy_v2` / `sell_v2` / `buy_exact_quote_in_v2`, the move to a unified interface, and USDC-as-quote support. (Upstream's root README.) |+| `idl/pump.json` | Bonding-curve program IDL (canonical account/arg shapes). |+| `idl/pump_amm.json` | PumpSwap AMM (graduated pools) IDL. |+| `idl/pump_fees.json` | Fee program IDL (`fee_config`, `sharing_config`, creator-fee sharing). |+| `docs/instructions/BUY.md`, `SELL.md` | `buy_v2` / `sell_v2` full account lists + arg validation + TS/Rust SDK calls. |+| `docs/instructions/COIN_CREATION.md` | `create` / `create_v2` (Token-2022 base mints). |+| `docs/instructions/CLAIM_CASHBACK.md`, `COLLECT_CREATOR_FEE.md`, `CREATOR_FEE_SHARING.md` | Cashback + creator-fee flows. |+| `docs/PUMP_SWAP_README.md`, `PUMP_SWAP_SDK_README.md` | AMM swap mechanics + SDK. |+| `docs/FEE_PROGRAM_README.md`, `FEE_RECIPIENTS.md`, `PUMP_CASHBACK_README.md`, `PUMP_CREATOR_FEE_README.md` | Fee program, recipient address lists, cashback, creator fees. |+| `docs/BREAKING_FEE_RECIPIENT.md`, `CPI_README.md`, `FAQ.md` | Breaking changes, CPI integration, FAQ. |++## Headline change to be aware of++pump.fun is migrating to **unified v2 bonding-curve trade instructions**+(`buy_v2`, `sell_v2`, `buy_exact_quote_in_v2`) so the same account interface works+for both SOL-paired and **USDC-paired** ("stable paired") meme coins. Key points:++- All accounts are mandatory and passed in the same order regardless of coin type+ (no more optional-account branching).+- `quote_mint` is now explicit — pass wrapped SOL+ (`So11111111111111111111111111111111111111112`) for SOL-paired coins, or the+ USDC mint for USDC-paired coins.+- New mandatory accounts on every buy/sell: `sharing_config`,+ `global_volume_accumulator`, `user_volume_accumulator`, `fee_config`,+ `fee_program`, plus a `buybackFeeRecipient`.+- `create_v2` coins use **Token-2022** base mints+ (`TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb`).+- SDK helpers: `PUMP_SDK.getBuyV2InstructionRaw(...)` / `buy_v2_instructions(...)`+ (and the `sell_v2` equivalents).++Our code already references `buy_v2`/`sell_v2`, `user_volume_accumulator`, and+`sharing_config`, so we appear aligned — but a focused audit against these docs is+tracked in `tasks/pumpfun-upstream/01-v2-trade-instructions-usdc-audit.md`.diff --git a/docs/pumpfun-program/UPSTREAM-buy-sell-v2-announcement.md b/docs/pumpfun-program/UPSTREAM-buy-sell-v2-announcement.mdnew file mode 100644index 000000000..6746035e8--- /dev/null+++ b/docs/pumpfun-program/UPSTREAM-buy-sell-v2-announcement.md@@ -0,0 +1,97 @@+# pump-public-docs++# New Bonding Curve Trade Instructions++Hello everyone. As part of supporting stable paired meme coins, we are announcing three new trading instructions for the bonding curve program:++- `buy_v2`+- `sell_v2`+- `buy_exact_quote_in_v2`++These new instructions have no optional accounts. All accounts are mandatory and are passed in the same order for all kinds of coins.++This should alleviate many of the issues integrations are facing when choosing which accounts to pass based on the type of coin being traded.++We are moving to this new unified interface and would urge all integrations to switch to these instructions to future proof their setup.++## Existing Trade Instructions++All existing trade instructions will continue to work with the same setup. No changes are needed to continue trading coins with the existing coins.++You can switch to the new instructions to trade coins paired with both SOL and USDC, with no change to quotes or costs.++The first feature we are looking to support with the new interface is the addition of USDC as a quote asset for meme coins.++## Important Note For Existing Coins++These new interfaces can be used to trade all coins ever created by passing the quote mint as the wrapped SOL mint:++```text+So11111111111111111111111111111111111111112+```++Trading and transfer will continue to happen with native SOL for these coins. However, to provide a unified interface regardless of `quote_mint`, please pass the wrapped SOL mint shown above.++## What's New++- `user_volume_accumulator` account is mandatory for all buys and sells.+- `sharing_config` PDA is mandatory for all buys and sells.+- Added the following accounts to support more quote mints:+ - `quote_mint`+ - `associated_quote_bonding_curve`+ - `associated_quote_fee_recipient`+ - `associated_quote_buyback_fee_recipient`+ - `associated_creator_vault`+ - `associated_quote_user`+- Added a new `quote_mint` field in the bonding curve struct. This field is `Pubkey::default()` for all coins created to date and for all coins created with SOL as the quote mint.+- Renamed `real_sol_reserves` to `real_quote_reserves` in the BondingCurve.+- Renamed `virtual_sol_reserves` to `virtual_quote_reserves` in the BondingCurve.+- New Global field called `initial_virtual_quote_reserves`. Coins paired with SOL have their BondingCurve.`virtual_quote_reserves` start at `initial_virtual_sol_reserves`. All other quote mints will start theirs at `initial_virtual_quote_reserves`.++## SOL-Paired Meme Coins++Trading will continue to happen with native SOL for all SOL-paired coins. For those coins, the following accounts are only Anchor seed constrained to the quote mint and do not need to be initialized for the instruction to work:++- `associated_quote_fee_recipient`+- `associated_quote_buyback_fee_recipient`+- `associated_quote_bonding_curve`+- `associated_quote_user`+- `associated_creator_vault`+- `associated_user_volume_accumulator`++When using the new instructions (`buy_v2`, `sell_v2`, `buy_exact_quote_in_v2`) for SOL-paired meme coins, there will be no extra cost compared to the legacy instructions (`buy`, `sell`, `buy_exact_quote_in`). All account initialization costs remain the same.++## Launch Timeline++Today we are only announcing the launch of the new interface.++Currently, no quote mint other than native SOL can be used to create or trade coins. We will add USDC next week. Exact Date and time TBH. Trading USDC-paired coins will not be possible with the legacy instructions.++## SDKS++- TS SDK: https://www.npmjs.com/package/@pump-fun/pump-sdk+- RUST crate: https://crates.io/crates/pump-rust-client++## New docs+- Fee recipients: [docs/FEE_RECIPIENTS.md](docs/FEE_RECIPIENTS.md)+- Coin creation: [docs/instructions/COIN_CREATION.md](docs/instructions/COIN_CREATION.md)+- Buy: [docs/instructions/BUY.md](docs/instructions/BUY.md)+- Sell: [docs/instructions/SELL.md](docs/instructions/SELL.md)+- Claim cashback: [docs/instructions/CLAIM_CASHBACK.md](docs/instructions/CLAIM_CASHBACK.md)+- Collect creator fee: [docs/instructions/COLLECT_CREATOR_FEE.md](docs/instructions/COLLECT_CREATOR_FEE.md)+- Creator fee sharing: [docs/instructions/CREATOR_FEE_SHARING.md](docs/instructions/CREATOR_FEE_SHARING.md)+++++## Other documentation++- [Pump Program](docs/PUMP_PROGRAM_README.md)+- [PumpSwap](docs/PUMP_SWAP_README.md)+- [PumpSwap SDK](docs/PUMP_SWAP_SDK_README.md)+- [Pump Program creator fee update](docs/PUMP_CREATOR_FEE_README.md)+- [PumpSwap creator fee update](docs/PUMP_SWAP_CREATOR_FEE_README.md)+- [FAQ](docs/FAQ.md)+- [Pump fee program docs](docs/FEE_PROGRAM_README.md)++---\ No newline at end of filediff --git a/docs/pumpfun-program/docs/BREAKING_FEE_RECIPIENT.md b/docs/pumpfun-program/docs/BREAKING_FEE_RECIPIENT.mdnew file mode 100644index 000000000..22dbe8a2c--- /dev/null+++ b/docs/pumpfun-program/docs/BREAKING_FEE_RECIPIENT.md@@ -0,0 +1,67 @@+# Program Upgrade++Hi. We will be doing a breaking program upgrade on April 28th, 16:00 UTC, to both the pump bonding curve program and the pump swap amm program. In order to make sure your integrations do not break please see the instructions below:++## These are 8 new fee recipients ( common for both programs )++```text+5YxQFdt3Tr9zJLvkFccqXVUwhdTWJQc1fFg2YPbxvxeD+9M4giFFMxmFGXtc3feFzRai56WbBqehoSeRE5GK7gf7+GXPFM2caqTtQYC2cJ5yJRi9VDkpsYZXzYdwYpGnLmtDL+3BpXnfJaUTiwXnJNe7Ej1rcbzqTTQUvLShZaWazebsVR+5cjcW9wExnJJiqgLjq7DEG75Pm6JBgE1hNv4B2vHXUW6+EHAAiTxcdDwQ3U4bU6YcMsQGaekdzLS3B5SmYo46kJtL+5eHhjP8JaYkz83CWwvGU2uMUXefd3AazWGx4gpcuEEYD+A7hAgCzFw14fejgCp387JUJRMNyz4j89JKnhtKU8piqW+```++## As part of this change,++- Bonding curve: A new account is required to be added in buys and sells+- AMM: 2 new accounts required to be added in buys and sells++All accounts till bonding-curve-v2 and pool-v2 remain the same, no change needed++## Bonding Curve++- Add any one of the 8 new fee recipients at the end of the buy and sell instructions.+- This new account should be added AFTER the bonding-curve-v2 account for both buys and sells.+- Account needs to be mutable+- Buy instructions should have 18 accounts in total+- Sell instruction should have 16 accounts for non cashback coins+- Sell instruction should have 17 accounts for cashback coins++## Pump swap ( AMM )++- Add 2 new accounts in this order at the end:+ - One of the 8 fee recipients. ( Second last account, readonly)+ - Quote mint ATA for fee recipient. ( Last account, mutable )++- These 2 new accounts should be added AFTER the pool-v2 account for both buys and sells for coins that graduate from bonding curve.+- Even if the coin is not a bonding curve coin, the 2 new accounts are necessary to be added.+- Buy instructions should have 26 accounts for non cashback coins.+- Buy instructions should have 27 accounts non cashback coins+- Sell instructions should have 24 accounts for non cashback coins.+- Sell instructions should have 26 accounts for cashback coins.++## Both SDKs are updated to reflect the upcoming change.++- `@pump-fun/[email protected]`: https://www.npmjs.com/package/@pump-fun/pump-sdk+- `@pump-fun/[email protected]`: https://www.npmjs.com/package/@pump-fun/pump-swap-sdk++## Devnet++The new accounts can be passed before the program upgrade happens on Monday. The devnet programs are updated with the upcoming change, here are a few example transactions:++### Bonding curve++- https://solscan.io/tx/3iRpvjc41MJYH1g6T1xSjphCqi3PoqZGAZrFxveKxx8hZQDyJyWy8C9FQLbtRt97h9m51tDrLVCAedrVxgVgEPWg?cluster=devnet+- https://solscan.io/tx/59myh9VnJSwpDn7j5c8FuU1Nx3JN7wXs8WyX9CXABJoDPDYyCDeQvW96ugFzUWQiHG1K6TKAUNNcV2EZXUwtQizM?cluster=devnet+- https://solscan.io/tx/4iBEotkjLdNAsGxmLjM7E1cwLB8eTEH4BeUZHkthpHBF6ei69vef9vg4FK8jGKnwJUK8FT3DHqRtYn4Rijc6n3sn?cluster=devnet++### Amm++- https://solscan.io/tx/235fuAQcDZXL8CMRuGf7iqMYpkHX95cAXW8Kqh5yVDEPs7zN7K8yRkuji1j6vkAg4ybBQbvQ4HKGaLexR3p9xWm7?cluster=devnet+- https://solscan.io/tx/jqZAviLnwV7cyBtNzz7DTPB3xSyj2ZTkSAWtUKWKrjXeAkTKM16zsH3J2FbZQtXY4mCsVntVe1C6qnnNVYNDAfP?cluster=devnet+- https://solscan.io/tx/2MJZMr86BdoNKDRpzAZSyQ8k782ZcNo1gaqse5raFzeWKERkdnr7B9iknSKJRSWGiUzXnsRT5m9CZpouvjbZnhrA?cluster=devnet+- https://solscan.io/tx/2FDkzZ4WzKN3FMLuffz61JLMGpJ1Q9oGydyJp14xttgYaMZM5rZQiXnBkaSGTadCaP7EhjQw2peLGWskk8YaRS5s?cluster=devnetdiff --git a/docs/pumpfun-program/docs/CPI_README.md b/docs/pumpfun-program/docs/CPI_README.mdnew file mode 100644index 000000000..8e2f5270b--- /dev/null+++ b/docs/pumpfun-program/docs/CPI_README.md@@ -0,0 +1,97 @@+# CPI into pump from your own Anchor program++For CPI into pump's `buy_v2`, `sell_v2`, or any other pump instruction,+use `pump_rust_client` and follow the example below.++## Wrapper program++Your wrapper's `Accounts` struct must mirror pump's `BuyV2` account order+exactly:++```rust+use anchor_lang::prelude::*;++declare_id!("7enkT8uLQrwKYSRMrazjr1YZPT7unToAtwdLMWa2QLYY");+declare_program!(pump);++#[program]+pub mod example_cpi_program {+ use super::*;++ pub fn buy_v2(ctx: Context<BuyV2>, amount: u64, max_sol_cost: u64) -> Result<()> {+ pump::cpi::buy_v2(+ CpiContext::new(+ ctx.accounts.program.to_account_info(),+ pump::cpi::accounts::BuyV2 {+ global: ctx.accounts.global.to_account_info(),+ // ... all pump BuyV2 accounts, same order ...+ program: ctx.accounts.program.to_account_info(),+ },+ ),+ amount,+ max_sol_cost,+ )?;+ Ok(())+ }+}++#[derive(Accounts)]+pub struct BuyV2<'info> {+ /// CHECK: passed straight to pump+ pub global: UncheckedAccount<'info>,+ // ... fields in the same order as pump::cpi::accounts::BuyV2 ...+ #[account(mut)]+ pub user: Signer<'info>,+ // ...+ /// CHECK: pump program; CPI target+ pub program: UncheckedAccount<'info>,+}+```++## Typed account decoding++If you want `Account<'info, BondingCurve>` (or any other deserialized pump+account type) instead of `UncheckedAccount`, import the type from+`pump_rust_client::state`, **not** from `declare_program!(pump)`'s generated+`pump::accounts` module:++```rust+use pump_rust_client::state::BondingCurve;++#[derive(Accounts)]+pub struct BuyV2<'info> {+ // ...+ pub bonding_curve: Account<'info, BondingCurve>,+ // ...+}+```++`pump_rust_client::state` types are wrapped in `AccountWrapper`, which+zero-pads short buffers so older on-chain accounts (e.g. pre-existing+`BondingCurve`s) still deserialize. The raw IDL type does not, and will fail+on legacy accounts. The same applies to the other re-exports under+`pump_rust_client::state` and its `pump_amm` / `pump_agent_payments`+submodules (`Global`, `FeeConfig`, `pump_amm::Pool`, …).++You're also welcome to look into the source code (`src/account_wrapper.rs`)+to see how on-chain accounts like `BondingCurve` are deserialized without+errors by padding short buffers with extra zeros.++## `idl-build` feature++`pump-rust-client` exposes an `idl-build` feature that forwards to the+underlying anchor IDL build machinery. When your wrapper program builds its+own IDL (e.g. via `anchor build`), wire it up in your program's `Cargo.toml`+so pump's types are included in your IDL:++```toml+[features]+idl-build = [+ "anchor-lang/idl-build",+ "anchor-spl/idl-build",+ "pump-rust-client/idl-build",+]++[dependencies]+pump-rust-client = { version = "...", path = "..." }+```diff --git a/docs/pumpfun-program/docs/FAQ.md b/docs/pumpfun-program/docs/FAQ.mdnew file mode 100644index 000000000..0f4cbc762--- /dev/null+++ b/docs/pumpfun-program/docs/FAQ.md@@ -0,0 +1,47 @@+# Frequently Asked Questions++## How to optimize buy / sell CU limit?++Each buy / sell instruction used CUs depend on all the inputs of the instruction:++- `user` pubkey, through the `associated_user` PDA bump seed derivation.+- `mint` pubkey, through the `bonding_curve`, `associated_bonding_curve`, `associated_user` PDA bump seed derivation.+- `creator` pubkey, through the `creator_vault` PDA bump seed derivation.+- for buy, the `amount` and `max_sol_cost` inputs are logged as part of instruction execution, so bigger values consume+ more CUs to log than smaller values.+- for sell inputs, it's similar.++As an example, for the+tx https://solscan.io/tx/5frph8gBFyX7ayBmqntvwpTPwzZ8aF4kdfJAvC52Li2iDnnaRwtmcZP839Cm4YQUFx7GzsUUStCfAy3hAG69ir4u:++```Rust+ let mint = Pubkey::from_str("Coyj3LtKn1BNSgWc9HsGK5SKoGfEoDaymig4wrN6pump").unwrap();++assert_eq!(+ Pubkey::find_program_address(&[b"bonding-curve", mint.as_ref()], &pump::ID).1,+ 255+);+```++The `bonding_curve` bump seed for mint `Coyj3LtKn1BNSgWc9HsGK5SKoGfEoDaymig4wrN6pump` is `255`.++While for the+tx https://solscan.io/tx/5xozUcJFvRj4ySpE2epSSs95ySxs6cLjs1rV2uaFNkFgsEMBZW53VUa2uc3CVQLVJRYxfQ5JoSzZLiUvAgM4GEJM:++```Rust+ let mint = Pubkey::from_str("3cLSxG6eXcCD9NSMawkhUcrvVCUC8KHKHMCxx6bhpump").unwrap();++assert_eq!(+ Pubkey::find_program_address(&[b"bonding-curve", mint.as_ref()], &pump::ID).1,+ 251+);+```++The `bonding_curve` bump seed for mint `3cLSxG6eXcCD9NSMawkhUcrvVCUC8KHKHMCxx6bhpump` is `251`.++So it is not possible to compute the used CUs without first simulating the buy / sell tx before submission and adding a+buffer of 1% to the simulated CUs, because buy instruction executes a bit more code when the bonding curve completes on+that buy.++But since tx simulation before buy / sell slows down tx submission and can increase the chances for slippage errors, it+is recommended to use a static big enough CU limit like `100_000`.diff --git a/docs/pumpfun-program/docs/FEE_PROGRAM_README.md b/docs/pumpfun-program/docs/FEE_PROGRAM_README.mdnew file mode 100644index 000000000..20b48370e--- /dev/null+++ b/docs/pumpfun-program/docs/FEE_PROGRAM_README.md@@ -0,0 +1,208 @@+Hello. We pushed again the update to both Pump and PumpSwap programs which adds the 2 new additional accounts on buy / sell.++On Monday, September 1, 20:00 UTC, these 2 accounts will become mandatory and the programs fee structure will change from the existing one to a dynamic fee structure depending on the current market cap of the coin in lamports. This new fee structure applies only to:+- Pump bonding curves+- PumpSwap canonical pools, where a canonical pool is defined as a pool whose `pool.creator` (NOT `pool.coinCreator`) is defined as:+```Typescript+export function isPumpPool(+ baseMint: PublicKey,+ poolCreator: PublicKey,+): boolean {+ return pumpPoolAuthorityPda(baseMint)[0].equals(poolCreator);+}+```++The new fee structure code is present in both our Typescript SDKs:+- https://www.npmjs.com/package/@pump-fun/pump-sdk?activeTab=code+- https://www.npmjs.com/package/@pump-fun/pump-swap-sdk?activeTab=code++The market cap in lamports for bonding curve is computed as follows:+```Typescript+export function bondingCurveMarketCap({+ mintSupply,+ virtualSolReserves,+ virtualTokenReserves,+}: {+ mintSupply: BN;+ virtualSolReserves: BN;+ virtualTokenReserves: BN;+}): BN {+ if (virtualTokenReserves.isZero()) {+ throw new Error("Division by zero: virtual token reserves cannot be zero");+ }+ return virtualSolReserves.mul(mintSupply).div(virtualTokenReserves);+}+```++The market in lamports for a PumpSwap canonical pool is:+```Typescript+export function poolMarketCap({+ baseMintSupply,+ baseReserve,+ quoteReserve,+}: {+ baseMintSupply: BN;+ baseReserve: BN;+ quoteReserve: BN;+}): BN {+ if (baseReserve.isZero()) {+ throw new Error(+ "Division by zero: pool base token reserves cannot be zero",+ );+ }+ return quoteReserve.mul(baseMintSupply).div(baseReserve);+}+```++For bonding curve program, the fee bps for protocol and creator fees will be computed using the following logic:+```Typescript+export function computeFeesBps({+ global,+ feeConfig,+ mintSupply,+ virtualSolReserves,+ virtualTokenReserves,+}: {+ global: Global;+ feeConfig: FeeConfig | null;+ mintSupply: BN;+ virtualSolReserves: BN;+ virtualTokenReserves: BN;+}): CalculatedFeesBps {+ if (feeConfig != null) {+ const marketCap = bondingCurveMarketCap({+ mintSupply,+ virtualSolReserves,+ virtualTokenReserves,+ });++ return calculateFeeTier({+ feeTiers: feeConfig.feeTiers,+ marketCap,+ });+ }++ return {+ protocolFeeBps: global.feeBasisPoints,+ creatorFeeBps: global.creatorFeeBasisPoints,+ };+}++/// rust reference: pump-fees-math::calculate_fee_tier()+export function calculateFeeTier({+ feeTiers,+ marketCap,+}: {+ feeTiers: FeeTier[];+ marketCap: BN;+}): Fees {+ const firstTier = feeTiers[0];++ if (marketCap.lt(firstTier.marketCapLamportsThreshold)) {+ return firstTier.fees;+ }++ for (const tier of feeTiers.slice().reverse()) {+ if (marketCap.gte(tier.marketCapLamportsThreshold)) {+ return tier.fees;+ }+ }++ return firstTier.fees;+}+```++A similar logic will be used for PumpSwap canonical pools too:+```Typescript+export function computeFeesBps({+ globalConfig,+ feeConfig,+ creator,+ baseMintSupply,+ baseMint,+ baseReserve,+ quoteReserve,+ tradeSize,+}: {+ globalConfig: GlobalConfig;+ feeConfig: FeeConfig | null;+ creator: PublicKey;+ baseMintSupply: BN;+ baseMint: PublicKey;+ baseReserve: BN;+ quoteReserve: BN;+ tradeSize: BN;+}): Fees {+ if (feeConfig != null) {+ const marketCap = poolMarketCap({+ baseMintSupply,+ baseReserve,+ quoteReserve,+ });++ return getFees({+ feeConfig,+ isPumpPool: isPumpPool(baseMint, creator),+ marketCap,+ tradeSize,+ });+ }++ return {+ lpFeeBps: globalConfig.lpFeeBasisPoints,+ protocolFeeBps: globalConfig.protocolFeeBasisPoints,+ creatorFeeBps: globalConfig.coinCreatorFeeBasisPoints,+ };+}++/// rust reference: pump-fees::get_fees()+function getFees({+ feeConfig,+ isPumpPool,+ marketCap,+}: {+ feeConfig: FeeConfig;+ isPumpPool: boolean;+ marketCap: BN;+ tradeSize: BN;+}): Fees {+ if (isPumpPool) {+ return calculateFeeTier({+ feeTiers: feeConfig.feeTiers,+ marketCap,+ });+ } else {+ return feeConfig.flatFees;+ }+}++/// rust reference: pump-fees-math::calculate_fee_tier()+export function calculateFeeTier({+ feeTiers,+ marketCap,+}: {+ feeTiers: FeeTier[];+ marketCap: BN;+}): Fees {+ const firstTier = feeTiers[0];++ if (marketCap.lt(firstTier.marketCapLamportsThreshold)) {+ return firstTier.fees;+ }++ for (const tier of feeTiers.slice().reverse()) {+ if (marketCap.gte(tier.marketCapLamportsThreshold)) {+ return tier.fees;+ }+ }++ return firstTier.fees;+}+```++We will use the following fee tiers starting from Monday:+++In order to avoid possible issues created by the new fee structure, until you make sure it's implemented correctly, you can increase the slippage tolerance on buy / sell instructions as a temporary mitigation.++If you implement the fee logic correctly, any future change to the fee tiers structure above should not affect your code.\ No newline at end of filediff --git a/docs/pumpfun-program/docs/FEE_RECIPIENTS.md b/docs/pumpfun-program/docs/FEE_RECIPIENTS.mdnew file mode 100644index 000000000..36d53482a--- /dev/null+++ b/docs/pumpfun-program/docs/FEE_RECIPIENTS.md@@ -0,0 +1,56 @@+# Fee Recipients++There are 24 fee recipient addresses in total:++- 8 normal fee recipients for non-mayhem coins.+- 8 reserved fee recipients for mayhem mode coins.+- 8 buyback fee recipients for all coins.++All `buy_v2` and `sell_v2` calls need both a `feeRecipient` and a `buybackFeeRecipient`.++- For non-mayhem coins, choose one of the normal fee recipients as `feeRecipient`.+- For mayhem mode coins, choose one of the reserved fee recipients as `feeRecipient`.+- For all coins, choose one of the buyback fee recipients as `buybackFeeRecipient`.++## Normal Fee Recipients++| # | Address |+| - | ------- |+| 0 | `62qc2CNXwrYqQScmEdiZFFAnJR262PxWEuNQtxfafNgV` |+| 1 | `7VtfL8fvgNfhz17qKRMjzQEXgbdpnHHHQRh54R9jP2RJ` |+| 2 | `7hTckgnGnLQR6sdH7YkqFTAA7VwTfYFaZ6EhEsU3saCX` |+| 3 | `9rPYyANsfQZw3DnDmKE3YCQF5E8oD89UXoHn9JFEhJUz` |+| 4 | `AVmoTthdrX6tKt4nDjco2D775W2YK3sDhxPcMmzUAmTY` |+| 5 | `CebN5WGQ4jvEPvsVU4EoHEpgzq1VV7AbicfhtW4xC9iM` |+| 6 | `FWsW1xNtWscwNmKv6wVsU1iTzRN6wmmk3MjxRP5tT7hz` |+| 7 | `G5UZAVbAf46s7cKWoyKu8kYTip9DGTpbLZ2qa9Aq69dP` |++## Reserved Fee Recipients++Use these as `feeRecipient` for mayhem mode coins.++| # | Address |+| - | ------- |+| 0 | `GesfTA3X2arioaHp8bbKdjG9vJtskViWACZoYvxp4twS` |+| 1 | `4budycTjhs9fD6xw62VBducVTNgMgJJ5BgtKq7mAZwn6` |+| 2 | `8SBKzEQU4nLSzcwF4a74F2iaUDQyTfjGndn6qUWBnrpR` |+| 3 | `4UQeTP1T39KZ9Sfxzo3WR5skgsaP6NZa87BAkuazLEKH` |+| 4 | `8sNeir4QsLsJdYpc9RZacohhK1Y5FLU3nC5LXgYB4aa6` |+| 5 | `Fh9HmeLNUMVCvejxCtCL2DbYaRyBFVJ5xrWkLnMH6fdk` |+| 6 | `463MEnMeGyJekNZFQSTUABBEbLnvMTALbT6ZmsxAbAdq` |+| 7 | `6AUH3WEHucYZyC61hqpqYUWVto5qA5hjHuNQ32GNnNxA` |++## Buyback Fee Recipients++Use one of these as `buybackFeeRecipient` for any coin.++| # | Address |+| - | ------- |+| 0 | `5YxQFdt3Tr9zJLvkFccqXVUwhdTWJQc1fFg2YPbxvxeD` |+| 1 | `9M4giFFMxmFGXtc3feFzRai56WbBqehoSeRE5GK7gf7` |+| 2 | `GXPFM2caqTtQYC2cJ5yJRi9VDkpsYZXzYdwYpGnLmtDL` |+| 3 | `3BpXnfJaUTiwXnJNe7Ej1rcbzqTTQUvLShZaWazebsVR` |+| 4 | `5cjcW9wExnJJiqgLjq7DEG75Pm6JBgE1hNv4B2vHXUW6` |+| 5 | `EHAAiTxcdDwQ3U4bU6YcMsQGaekdzLS3B5SmYo46kJtL` |+| 6 | `5eHhjP8JaYkz83CWwvGU2uMUXefd3AazWGx4gpcuEEYD` |+| 7 | `A7hAgCzFw14fejgCp387JUJRMNyz4j89JKnhtKU8piqW` |\ No newline at end of filediff --git a/docs/pumpfun-program/docs/PUMP_CASHBACK_README.md b/docs/pumpfun-program/docs/PUMP_CASHBACK_README.mdnew file mode 100644index 000000000..507168be9--- /dev/null+++ b/docs/pumpfun-program/docs/PUMP_CASHBACK_README.md@@ -0,0 +1,110 @@+## Overview++Cashback Rewards allows token creators to create coins with "cashback" enabled which redirects the creator fee to the users. Each user would get the creator fee on their swap volume as cashback rather than paying that fee to the coin creator.++This is a backwards compatible change, so if you do not update to the latest IDsL/SDKs it will work but cashback will not be enabled.++## Integration++You can also use our Typescript SDKs for easier integration:+- [Pump SDK](https://www.npmjs.com/package/@pump-fun/pump-sdk)+ - Latest version is `1.28.0`+- [PumpSwap SDK](https://www.npmjs.com/package/@pump-fun/pump-swap-sdk)+ - Latest version is `1.14.0`++## Changes to Instructions++Cashback is only given to the user if the buy/sell instruction appends the proper remaining accounts.+If the coin traded is a cashback coin but the cashback remaining accounts are now added, then the creator fee will+go to the creator as it normally would.++### Bonding Curve Buy Instructions+No change. Cashback is handled automatically if the coin has cashback enabled.++### Bonding Curve Sell Instruction+Expects the `UserVolumeAccumulator` PDA for the Pump program at the 0th index in the remaining accounts with `isWritable: true`++### Pump Swap Buy Instruction+Expects the WSOL associated token account of the `UserVolumeAccumulator` for the Pump AMM program (this is different than same account for the Pump program) at the 0th index of the remaining accounts.++### Pump Swap Sell Instruction+Expects the WSOL associated token account of the `UserVolumeAccumulator` for the Pump AMM program (this is different than same account for the Pump program) at the 0th index of the remaining accounts.++Expects the `UserVolumeAccumulator` for the Pump AMM Program (used to derive the WSOL ATA above) at the 1st index of the remaining accounts.++### Create V2+New parameter expected for `create_v2` instruction which is an `OptionBool` to define whether the coin has cashback enabled or not.+In typescript this is a tuple, so it would look like `[true]`.++### Bonding Curve Claim Cashback+New `claim_cashback` instruction for the Pump program.+No parameters needed. It transfers native lamports from the `UserVolumeAccumulator` to the user.++### Pump Swap Claim Cashback+New `claim_cashback` instruction for the Pump AMM program.+No parameters needed. It transfers WSOL from the WSOL ATA of the `UserVolumeAccumulator` to the user's WSOL ATA.+The user's WSOL ATA is expected to exist before hand, so use "create idempotent associated token account" instruction before the claim instruction if need be.++## Account Changes++### Bonding Curve+New `is_cashback_coin: bool` field on the `BondingCurve` account.++## Reading Unclaimed Cashback+It is important to note that there is an `UserVolumeAccumulator` account for both the Pump (bonding curve) program and Pump Swap (AMM) program.+They share a seed `"user_volume_accumulator"` with the program ID being the only difference in its seeds.++Example of deriving the `UserVolumeAccumulator` for Pump program. Simply pass the `PUMP_AMM_PROGRAM_ADDRESS` instead to derive the `UserVolumeAccumulator` for Pump AMM.+```typescript+import {+ getAddressEncoder,+ getProgramDerivedAddress,+ getUtf8Encoder,+} from "@solana/kit";++const addressEncoder = getAddressEncoder();+const utf8Encoder = getUtf8Encoder();++export const USER_ACCUMULATOR_SEED = utf8Encoder.encode(+ "user_volume_accumulator",+);++export const NATIVE_MINT_ADDRESS = address(+ "So11111111111111111111111111111111111111112",+);++export function getUserAccumulatorPda(+ walletAddress: Address,+ programAddress: Address = PUMP_PROGRAM_ADDRESS,+) {+ return getProgramDerivedAddress({+ programAddress,+ seeds: [USER_ACCUMULATOR_SEED, addressEncoder.encode(walletAddress)],+ });+}++export async function getUserAccumulatorCashbackPda(+ walletAddress: Address,+ programAddress: Address = PUMP_PROGRAM_ADDRESS,+): Promise<ProgramDerivedAddress> {+ const [userAccumulatorPda] = await getUserAccumulatorPda(+ walletAddress,+ programAddress,+ );+ return findAssociatedTokenPda({+ mint: NATIVE_MINT_ADDRESS,+ owner: userAccumulatorPda,+ tokenProgram: TOKEN_PROGRAM_ADDRESS,+ });+}+```++The cashback on Pump AMM is collected in the WSOL ATA of the `UserVolumeAccumulator` for the Pump AMM program (use the PUMP_AMM_PROGRAM_ADDRESS when deriving the PDA).+But in the Pump program (bonding curve / PUMP_PROGRAM_ADDRESS) the cashback is in native lamports in the `UserVolumeAccumulator` itself (not a WSOL ATA) and transferred as native lamports to the user's wallet (not a WSOL ATA).+This is because Pump AMM uses WSOL whereas the Pump program uses native lamports for swaps.++To read unclaimed cashback for bonding curve / Pump program:+**Read the lamports of the `UserVolumeAccumulator` for the Pump program minus the rent exempt lamports needed to keep the account open.**++To read unclaimed cashback for pump swap / Pump AMM program:+**Read the token balance of the WSOL ATA of the `UserVolumeAccumulator` for the Pump AMM program.**diff --git a/docs/pumpfun-program/docs/PUMP_CREATOR_FEE_README.md b/docs/pumpfun-program/docs/PUMP_CREATOR_FEE_README.mdnew file mode 100644index 000000000..2c0ee4cf0--- /dev/null+++ b/docs/pumpfun-program/docs/PUMP_CREATOR_FEE_README.md@@ -0,0 +1,128 @@+Pump program will have a breaking upgrade to add support for coin creator fees. Each swap on a not-yet-completed+bonding curve will send a fee to a coin creator vault account, apart from the already existing protocol fee.++`BondingCurve` accounts will be extended to `150` bytes to support future protocol updates, including this one. So+you need to prepend an `extendAccount(bondingCurve)` instruction to your buy / sell txs if the+`bondingCurveAccountInfo.dataLen < 150`.++`buy` and `sell` instructions will be modified in the following way:++- the currently unused `Buy::rent` account (instruction account index `10`) will become `Buy::creator_vault` account.+- the currently unused `Sell::associated_token_program` account (instruction account index `8`) will become+ `Sell::creator_vault` account.++Both `Buy::creator_vault` and `Sell::creator_vault` accounts are PDA accounts with the following definition:++```rust+ #[account(+ mut,+ seeds = [+ b"creator-vault",+ bonding_curve.creator.as_ref()+ ],+ bump+ )]+ pub creator_vault: AccountInfo<'info >,+```++So the creator_vault PDA is dependent on a new `BondingCurve::creator` field. The updated `BondingCurve` struct will+look like this:++```rust+#[account]+pub struct BondingCurve {+ pub virtual_token_reserves: u64,+ pub virtual_sol_reserves: u64,+ pub real_token_reserves: u64,+ pub real_sol_reserves: u64,+ pub token_total_supply: u64,+ pub complete: bool,+ pub creator: Pubkey, // new creator field+}+```++There is also another change in fee calculation. There will be a new `Global::creator_fee_basis_points` field, which+will be used in computing the creator fee. The new `Global` struct will look like this:++```rust+#[account]+pub struct Global {+ pub initialized: bool,+ pub authority: Pubkey,+ pub fee_recipient: Pubkey,+ pub initial_virtual_token_reserves: u64,+ pub initial_virtual_sol_reserves: u64,+ pub initial_real_token_reserves: u64,+ pub token_total_supply: u64,+ pub fee_basis_points: u64,+ pub withdraw_authority: Pubkey,+ pub enable_migrate: bool,+ pub pool_migration_fee: u64,+ pub creator_fee_basis_points: u64, // new creator fee bps field+ pub fee_recipients: [Pubkey; 7],+ pub set_creator_authority: Pubkey,+}+```++Currently, the `Global::creator_fee_basis_points` field is set to `0`. But you can start using the new fee calculation+logic from now to be ready for the creator fee update. The latest version of our Typescript SDK includes the updated fee+logic: [Pump SDK](https://www.npmjs.com/package/@pump-fun/pump-sdk) (including the source code of the SDK).++These functions do not include slippage in their calculations, but the slippage needs to be applied to sol amount for+both `buy` and `sell` instructions. Instructions which allow slippage for coin amount will be added to the Pump program+in the future.++All non-completed bonding curves will start receiving creator fees on swaps after the coin creator fee update is+deployed and `Global::creator_fee_basis_points` is set something else apart from `0`.++The `BondingCurve::creator` parameter will be populated from:+- the `creator` argument passed to `create` instruction for newly created coins. So be careful what `creator` pubkey+ you pass to the `create` instruction, as that pubkey will receive all the creator fees for that coin.+- the Metaplex creator metadata for coins which have it, by using the `set_metaplex_creator` instruction. You can+ include+ this instruction in your transactions, but it's not needed, as our backend service will listen for `TradeEvent`s and+ will set the `BondingCurve::creator` dynamically for coins missing it.+- our coins storage for coins created in the past and don't have Metaplex creator metadata. The backend service will+ listen for `TradeEvent`s and will set the `BondingCurve::creator` dynamically for coins missing it using the admin+ `set_creator` instruction.++The fees accumulated in a creator vault account can be transferred to the creator's wallet using the+`collectCreatorFee(creator)` instruction. The `creator` needs to sign the transaction including this instruction.++The currently deployed Pump program on [Mainnet](https://solscan.io/account/6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P)+is backwards-compatible with the new update, so you can start using the new IDL from now, to be ready and not experience+any downtime when the creator fee update gets released.++We already updated the Devnet program, so you have time until Monday to implement the changes above. Ideally, the+same code should work on both the creator fee update on Devnet and the current Mainnet program, before we update Pump+program on Mainnet to the creator fee update.++We are also trying to release the Pump program Typescript SDK by Monday, so you can use it. The+[bondingCurve.ts](bondingCurve.ts) file is part of the upcoming Pump program Typescript SDK.++## Coin creator fees update++We will deploy a breaking update to both Pump and PumpSwap (Pump AMM) programs to add support for coin creator fees on+Mainnet on Monday, May 12, 11:00 AM UTC.++On Devnet, both programs have already been updated to support coin creator fees.++Who will receive coin creator fees?+- all non-completed Pump bonding curves;+- all canonical PumpSwap pools will. Canonical PumpSwap pools are pools created by Pump program `migrate` instruction+ for completed bonding curves.++Who will not receive coin creator fees?+- coins already migrated to Raydium, as that program is not under our control.+- normal PumpSwap pools which are not created by Pump program `migrate` instruction.++You should start by using the latest IDL files for both programs from the [idl](idl) directory. They are+backwards-compatible with current programs deployed on Mainnet, so you can start using them now.++You can also use our Typescript SDKs for easier integration:+- [Pump SDK](https://www.npmjs.com/package/@pump-fun/pump-sdk)+- [PumpSwap SDK](https://www.npmjs.com/package/@pump-fun/pump-swap-sdk)++If you implement and test the changes described in these two documents on Devnet before the creator fee upgrade, you+should not experience any downtime. Ideally, you should use exactly the same code for both Devnet and Mainnet, before+we update the programs on Mainnet.\ No newline at end of filediff --git a/docs/pumpfun-program/docs/PUMP_PROGRAM_README.md b/docs/pumpfun-program/docs/PUMP_PROGRAM_README.mdnew file mode 100644index 000000000..27f4eb82a--- /dev/null+++ b/docs/pumpfun-program/docs/PUMP_PROGRAM_README.md@@ -0,0 +1,194 @@+# Pump program++Pump program allows creating SPL coins that are instantly tradeable on a bonding curve without having to seed liquidity.+When the coin hits a certain market cap the liquidity from the bonding curve is migrated to PumpSwap (an AMM on Solana).+The LP tokens received from the PumpSwap pool are then burnt.++The bonding curve formula is based on Uniswap V2 and uses synthetic x and y reserves to ensure that there is liquidity+for the coin.++Pump program is deployed at address `6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P` on+both [Mainnet](https://solscan.io/account/6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P)+and [Devnet](https://solscan.io/account/6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P?cluster=devnet).++## State++### Global++The global configuration of the program is stored in the only `Global` account, whose address is+`4wTV1YmiEkRvAtNtsSGPtUrqRYQMe5SKy2uB4Jjaxnjf` (PDA-derived from `["global"]` seeds). The content of this account+can be examined+on [Mainnet Solscan](https://solscan.io/account/4wTV1YmiEkRvAtNtsSGPtUrqRYQMe5SKy2uB4Jjaxnjf#accountData):++```json+{+ "initialized": {+ "type": "bool",+ "data": true+ },+ "authority": {+ "type": "pubkey",+ "data": "FFWtrEQ4B4PKQoVuHYzZq8FabGkVatYzDpEVHsK5rrhF"+ },+ "fee_recipient": {+ "type": "pubkey",+ "data": "62qc2CNXwrYqQScmEdiZFFAnJR262PxWEuNQtxfafNgV"+ },+ "initial_virtual_token_reserves": {+ "type": "u64",+ "data": "1073000000000000"+ },+ "initial_virtual_sol_reserves": {+ "type": "u64",+ "data": "30000000000"+ },+ "initial_real_token_reserves": {+ "type": "u64",+ "data": "793100000000000"+ },+ "token_total_supply": {+ "type": "u64",+ "data": "1000000000000000"+ },+ "fee_basis_points": {+ "type": "u64",+ "data": "100"+ },+ "withdraw_authority": {+ "type": "pubkey",+ "data": "39azUYFWPz3VHgKCf3VChUwbpURdCHRxjWVowf5jUJjg"+ },+ "enable_migrate": {+ "type": "bool",+ "data": true+ },+ "pool_migration_fee": {+ "type": "u64",+ "data": "15000001"+ },+ "creator_fee": {+ "type": "u64",+ "data": "0"+ },+ "fee_recipients": {+ "type": {+ "array": [+ "pubkey",+ 7+ ]+ },+ "data": [+ "7VtfL8fvgNfhz17qKRMjzQEXgbdpnHHHQRh54R9jP2RJ",+ "7hTckgnGnLQR6sdH7YkqFTAA7VwTfYFaZ6EhEsU3saCX",+ "9rPYyANsfQZw3DnDmKE3YCQF5E8oD89UXoHn9JFEhJUz",+ "AVmoTthdrX6tKt4nDjco2D775W2YK3sDhxPcMmzUAmTY",+ "CebN5WGQ4jvEPvsVU4EoHEpgzq1VV7AbicfhtW4xC9iM",+ "FWsW1xNtWscwNmKv6wVsU1iTzRN6wmmk3MjxRP5tT7hz",+ "G5UZAVbAf46s7cKWoyKu8kYTip9DGTpbLZ2qa9Aq69dP"+ ]+ }+}+```++- The `initialized` field is set to `true` and never used.+- The `authority` pubkey is the authority which can update the global configuration.+- The `fee_recipient` pubkey is one of the 8 fee_recipients which can be used by `buy` / `sell` instructions, together+ with the other 7 `Global::fee_recipients` pubkeys.+- The `initial_virtual_token_reserves`, `initial_virtual_sol_reserves`, `initial_real_token_reserves` and+ `token_total_supply` fields are used as the initial parameters for the bonding curve of each newly created coin.+- The `fee_basis_points == 100 bps` represents the fee in bps transferred to the `fee_recipient` account on `buy` /+ `sell` instructions.+- The `withdraw_authority` pubkey is the authority which can call the deprecated `withdraw` instruction.+- The `enable_migrate` flag is used to enable the new `migrate` instruction and disable the deprecated `withdraw`+ instruction. Currently, it is set to `true`.+- The `pool_migration_fee` are the minimum lamports necessary to pay for all accounts created during `migrate`+ instruction. It is currently set the minimum of `15000001`, less than `MAX_MIGRATE_FEES == 15_000_000`, which+ represents+ the maximum cost of all accounts created during a `migrate` instruction.+- The `creator_fee` is set to `0` and is not used.++### Bonding curve++Each coin has an associated bonding curve account, which is PDA-derived from `["bonding-curve", mint]` seeds. An example+bonding curve account can be found+at https://solscan.io/account/EsmVk4MTsoT71JFaRM5DWFZboKpMQjfY6EYzAgUuksXw#accountData:++```json+{+ "virtual_token_reserves": {+ "type": "u64",+ "data": "1072999999992855"+ },+ "virtual_sol_reserves": {+ "type": "u64",+ "data": "30000000013"+ },+ "real_token_reserves": {+ "type": "u64",+ "data": "793099999992855"+ },+ "real_sol_reserves": {+ "type": "u64",+ "data": "13"+ },+ "token_total_supply": {+ "type": "u64",+ "data": "1000000000000000"+ },+ "complete": {+ "type": "bool",+ "data": false+ }+}+```++- The `virtual_token_reserves`, `virtual_sol_reserves`, `real_token_reserves` and `token_total_supply` fields are+ initialized on coin creation to the corresponding values from `Global` account. The initial `real_sol_reserves` is set+ to `0`.+- On each `buy` operation, `virtual_sol_reserves` and `real_sol_reverses` increase with the same lamports amount+ according to+ the bonding curve formula, while `virtual_token_reserves` and `real_token_reserves` decrease with the same coin+ amount.+- On each `sell` operation, `virtual_sol_reserves` and `real_sol_reverses` decrease with the same lamports amount+ according to+ the bonding curve formula, while `virtual_token_reserves` and `real_token_reserves` increase with the same coin+ amount.+- The `complete` field is initially set to `false`. It is set to `true` at the end of a `buy` instruction, when+ `real_token_reserves == 0`, so there are no more real tokens left in the bonding curve.++## Instructions++- `create(user, name, symbol, uri, creator)` allows a `user` to create a new coin with the given `name`, `symbol` and+ `uri`. The `creator` pubkey is the creator which will be added to the mint Metaplex metadata `creators` array,+ together with the provided `name`, `symbol` and `uri`.+ - In general, `user` and `creator` are the same pubkey, but they can be different, for example, on the+ `free coin creation` flow, when the first coin buyer also creates the coin on-chain. In this case, `creator`+ pubkey is the original coin creator, while `user` pubkey is the first buyer. This is also the reason why `creator`+ pubkey is not required to be a signer for this instruction, as the original creator cannot sign the tx of the+ first coin buyer.++- `buy(user, associated_user, mint, amount, max_sol_cost)` allows a `user` to buy the exact `amount` of coins from the+ bonding curve of the given `mint`, using at most `max_sol_cost` lamports.++- `sell(user, associated_user, mint, amount, min_sol_output)` allows a `user` to sell the exact `amount` of coins to+ the bonding curve of the given `mint`, receiving at least `min_sol_output` lamports.++- `withdraw(withdraw_authority, mint)` is a now-disabled instruction which allowed the `withdraw_authority` pubkey to+ withdraw the liquidity of a completed bonding curve and migrate it to Raydium from an off-chain server.++- `migrate(user, mint)` allows any `user` to migrate the liquidity of a completed bonding curve of the given `mint` to+ PumpSwap AMM. A completed bonding curve is a bonding curve with `complete == true` and `real_token_reserves == 0`. The+ `migrate` instruction is idempotent, meaning that running it on a completed and migrated bonding curve does nothing.+ It is also permisionless, so anyone can migrate a completed bonding curve.++- `extend_account(user, account)` allows anyone to extend the data size of any program-owned account (`Global` or+ `BondingCurve`) in order to allow adding new fields to the existing account types.++- `initialize(user, global)` initialized the sole `Global` account on Pump program deployment and can be executed by+ anyone. The first pubkey which successfully executes `initialize` is the one which sets the `Global::authority` field.+ This instruction cannot be called more than once because the second time it is called, the `Global` account already+ exists.+- `update_global_authority(global, authority, new_authority)` allows the current `Global::authority` to update the+ `Global::authority` field to a new pubkey.+- `set_params(global, authority)` allows updating all the `Global` account fields, apart from `Global::authority`, which+ is updated using `update_global_authority` instruction.diff --git a/docs/pumpfun-program/docs/PUMP_SWAP_CREATOR_FEE_README.md b/docs/pumpfun-program/docs/PUMP_SWAP_CREATOR_FEE_README.mdnew file mode 100644index 000000000..5e9e6cca3--- /dev/null+++ b/docs/pumpfun-program/docs/PUMP_SWAP_CREATOR_FEE_README.md@@ -0,0 +1,102 @@+PumpSwap (Pump AMM) program will have a breaking upgrade to add support for coin creator fees. Each swap on canonical+Pump pools will send a fee to a coin creator vault account, apart from the already existing lp fee and protocol fee.++Canonical Pump pools are pools which have a `Pool::creator` defined as a Pump program PDA with the following seeds:++```rust+pub fn pump_pool_authority_pda(base_mint: &Pubkey) -> Pubkey {+ let (pump_pool_authority, _) = Pubkey::find_program_address(+ &[b"pool-authority", base_mint.as_ref()],+ &Pubkey::from_str("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P").unwrap(),+ );+ pump_pool_authority+}+```++Canonical Pump pools are pools created by Pump program `migrate` instruction for completed bonding curves.++`Pool` accounts will be extended to `300` bytes to support future protocol updates, including this one. So+you need to prepend an `extendAccount(pool)` instruction to your buy / sell txs if the `pool.dataLen < 300`.++Both `buy` and `sell` instructions will be need to append two new inputs accounts (input account indexes `17` and `18`):++```rust+ #[account(+ mut,+ associated_token::mint = quote_mint,+ associated_token::authority = coin_creator_vault_authority,+ associated_token::token_program = quote_token_program,+ )]+ pub coin_creator_vault_ata: InterfaceAccount<'info, TokenAccount>,+ #[account(+ seeds = [+ b"creator_vault",+ pool.coin_creator.as_ref()+ ],+ bump+ )]+ pub coin_creator_vault_authority: AccountInfo<'info >,+```++So the `coin_creator_vault_authority` PDA is dependent on a new `Pool::coin_creator` field. The updated `Pool` struct+will look like this:++```rust+#[account]+pub struct Pool {+ pub pool_bump: u8,+ pub index: u16,+ pub creator: Pubkey,+ pub base_mint: Pubkey,+ pub quote_mint: Pubkey,+ pub lp_mint: Pubkey,+ pub pool_base_token_account: Pubkey,+ pub pool_quote_token_account: Pubkey,+ pub lp_supply: u64,+ pub coin_creator: Pubkey, // new coin creator field, set only for canonical pools, otherwise set to Pubkey::default()+}+```++There is also another change in fee calculation. There will be a new `GlobalConfig::coin_creator_fee_basis_points`+field, which will be used in computing the coin creator fee. The new `GlobalConfig` struct will look like this:++```rust+#[account]+pub struct GlobalConfig {+ pub admin: Pubkey,+ pub lp_fee_basis_points: u64,+ pub protocol_fee_basis_points: u64,+ pub disable_flags: u8,+ pub protocol_fee_recipients: [Pubkey; 8],+ pub coin_creator_fee_basis_points: u64, // new coin creator fee bps field+}+```++Currently, the `GlobalConfig::coin_creator_fee_basis_points` field is set to `0`. But you can start using the new fee+calculation logic from now to be ready for the coin creator fee update. The latest `@pump-fun/pump-swap-sdk` NPM package+version contains all the updates for coin creator fee support:+[PumpSwap SDK](https://www.npmjs.com/package/@pump-fun/pump-swap-sdk) (including the source code of the SDK).++All Pump canonical pools will start receiving coin creator fees on each swap after the coin creator fee update is+deployed and `GlobalConfig::coin_creator_fee_basis_points` is set something else apart from `0`.++The `Pool::coin_creator` parameter will be populated from:++- the new `coin_creator` argument passed to `create_pool` instruction for newly created canonical Pump pools. Otherwise,+ the new `coin_creator` argument is ignored.+- the `base_mint` Metaplex creator metadata or `BondingCurve::creator`, by using the `set_creator` instruction. You can+ include this instruction in your transactions, but it's not needed, as our backend service will listen for `BuyEvent`s+ and `SellEvent`s and will set the `Pool::coin_creator` dynamically for canonical pools missing it.++The fees accumulated in a creator vault ATA can be transferred to any token account of the coin creator using the+`PumpAmmSdk.collectCoinCreatorFee(coinCreator)` instruction. The `coinCreator` needs to sign the transaction including+this instruction.++The currently deployed PumpSwap program+on [Mainnet](https://solscan.io/account/pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA)+is backwards-compatible with the new update, so you can start using the new IDL from now, to be ready and not experience+any downtime when the coin creator fee update gets released.++We already updated the Devnet program, so you have time until Monday to implement the changes above. Ideally, the+same code should work on both the creator fee update on Devnet and the current Mainnet program, before we update+PumpSwap program on Mainnet to the coin creator fee update.diff --git a/docs/pumpfun-program/docs/PUMP_SWAP_README.md b/docs/pumpfun-program/docs/PUMP_SWAP_README.mdnew file mode 100644index 000000000..24489cb61--- /dev/null+++ b/docs/pumpfun-program/docs/PUMP_SWAP_README.md@@ -0,0 +1,227 @@+# PumpSwap (Pump AMM) program++PumpSwap program is a constant-product AMM deployed at address `pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA` on+both [Mainnet](https://solscan.io/account/pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA)+and [Devnet](https://solscan.io/account/pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA?cluster=devnet).++## State++### GlobalConfig++The global configuration of the program is stored in the only `GlobalConfig` account, whose address is+`ADyA8hdefvWN2dbGGWFotbzWxrAvLW83WG6QCVXvJKqw` (PDA-derived from `["global_config"]` seeds). The content of this account+can be examined+on [Mainnet Solscan](https://solscan.io/account/ADyA8hdefvWN2dbGGWFotbzWxrAvLW83WG6QCVXvJKqw#accountData):++```json+{+ "admin": {+ "type": "pubkey",+ "data": "FFWtrEQ4B4PKQoVuHYzZq8FabGkVatYzDpEVHsK5rrhF"+ },+ "lp_fee_basis_points": {+ "type": "u64",+ "data": "20"+ },+ "protocol_fee_basis_points": {+ "type": "u64",+ "data": "5"+ },+ "disable_flags": {+ "type": "u8",+ "data": 0+ },+ "protocol_fee_recipients": {+ "type": {+ "array": [+ "pubkey",+ 8+ ]+ },+ "data": [+ "62qc2CNXwrYqQScmEdiZFFAnJR262PxWEuNQtxfafNgV",+ "7VtfL8fvgNfhz17qKRMjzQEXgbdpnHHHQRh54R9jP2RJ",+ "7hTckgnGnLQR6sdH7YkqFTAA7VwTfYFaZ6EhEsU3saCX",+ "9rPYyANsfQZw3DnDmKE3YCQF5E8oD89UXoHn9JFEhJUz",+ "AVmoTthdrX6tKt4nDjco2D775W2YK3sDhxPcMmzUAmTY",+ "FWsW1xNtWscwNmKv6wVsU1iTzRN6wmmk3MjxRP5tT7hz",+ "G5UZAVbAf46s7cKWoyKu8kYTip9DGTpbLZ2qa9Aq69dP",+ "JCRGumoE9Qi5BBgULTgdgTLjSgkCMSbF62ZZfGs84JeU"+ ]+ }+}+```++- The `admin` pubkey is the pubkey authorized to update the `GlobalConfig` account.+- The `lp_fee_basis_points == 20 bps` and `protocol_fee_basis_points == 5 bps` are the fees charged by the AMM for each+ `buy` / `sell` instruction. No fees are charged on `deposit` / `withdraw` instruction.+- The `disable_flags` is a bitmask that can be used to disable certain instructions. Currently, it is not used.+- The `protocol_fee_recipients` is an array of 8 pubkeys which receive the protocol fees on each `buy` /+ `sell` instruction. Any of the 8 pubkeys can be used in a `buy` / `sell` instruction and it is recommended to randomly+ choose a different one for each `buy` / `sell` instruction to improve program tx throughput.++### Pool++Each pool is represented by a `Pool` account, which is PDA-derived from the+`["pool", index, creator, baseMint, quoteMint]` seeds. An example Pool account data can be found+at https://solscan.io/account/GseMAnNDvntR5uFePZ51yZBXzNSn7GdFPkfHwfr6d77J#accountData:++```json+{+ "pool_bump": {+ "type": "u8",+ "data": 254+ },+ "index": {+ "type": "u16",+ "data": "0"+ },+ "creator": {+ "type": "pubkey",+ "data": "9XDYTfQKwW8sHPqnFdUreMmtmffmkHVPGTNV2e3LKxNW"+ },+ "base_mint": {+ "type": "pubkey",+ "data": "7LSsEoJGhLeZzGvDofTdNg7M3JttxQqGWNLo6vWMpump"+ },+ "quote_mint": {+ "type": "pubkey",+ "data": "So11111111111111111111111111111111111111112"+ },+ "lp_mint": {+ "type": "pubkey",+ "data": "6dpnPD6UWDw5hbJEuPQwnCCMba1JYwHANKuL6GQ6otAH"+ },+ "pool_base_token_account": {+ "type": "pubkey",+ "data": "5jMpkf4JF4noHftLgNKyPNh6roVfPSGSjuEk3U4eLKRa"+ },+ "pool_quote_token_account": {+ "type": "pubkey",+ "data": "43DVcZR4kQFjh4Xm2i3DcneRxNjZp7HMud8yDrJWrDr8"+ },+ "lp_supply": {+ "type": "u64",+ "data": "4193388284800"+ }+}+```++- The `pool_bump` is the bump seed used to derive the pool PDA.+- The `index` is the index of the pool, which is used to derive the pool PDA. PumpSwap pools created using Pump program+ `migrate` instruction use a `CANONONICAL_POOL_INDEX == 0`.+- The `creator` is the pubkey of the pool creator, which is also used to derive the pool PDA.+- The `base_mint` and `quote_mint` are the mint addresses of the base and quote tokens of the pool.+- The `lp_mint` is the mint address of the LP token, which is used to represent the liquidity of the pool. The LP mint+ address can also be PDA-derived from the `["pool_lp_mint", pool_key]` seeds, but it is stored in `Pool` account for+ simpler pubkey equality checks on PumpSwap program instructions.+- The `pool_base_token_account` and `pool_quote_token_account` are the ATAs (associated token accounts) of+ the base and quote mints of the `pool` account, respectively. They again could be PDA-derived from the `pool`,+ `base_mint` and `quote_mint` pubkeys, but they are stored in the `Pool` account for easier pubkey equality checks on+ PumpSwap program instructions.+- The `lp_supply` is the total supply of the `lp_mint` without burns and lock-ups. This means that if someone deposits+ into the pool, then they burn their `lp_mint` tokens, the `Pool::lp_supply` will still reflect the original supply+ of the `lp_mint`. This way, the pool differentiates between `lp_mint` tokens burnt by users directly and those burnt+ by the `withdraw` instruction.++## Instructions++It supports the following Anchor program instructions:++- `create_pool(index, creator, baseMint, quoteMint, baseIn, quoteIn)`.+ - This allows creating a new AMM pool for the`(baseMint, quoteMint)` pair.+ - The `poolId` is PDA-derived from the tuple `(index, creator, baseMint, quoteMint)`. The `index` allows the same+ `creator` to create multiple pools for the same `(baseMint, quoteMint)` pair.+ - The `creator` is the pubkey of the pool creator and also the payer for pool creation costs.+ - `baseIn` and `quoteIn` are the initial amounts of `baseMint` and `quoteMint` tokens to be deposited into the pool,+ and they determine the initial pool price.+ - The `creator` also receives some `lpMint` tokens, which represent the initial liquidity of the pool. These+ `lpMint` tokens can be later used to `withdraw` liquidity from the pool.++- Liquidity instructions:+ - `deposit(pool, user, lpTokenOut, maxBaseIn, maxQuoteIn)` allows a `user` to deposit at most `maxBaseIn` and+ `maxQuoteIn` tokens into the `pool` in order to get exactly `lpTokenOut` tokens in return.+ - `withdraw(pool, user, lpTokenIn, minBaseOut, minQuoteOut)` allows a `user` to withdraw at least `minBaseOut` and+ `minQuoteOut` tokens from the `pool` by burning exactly `lpTokenIn` tokens in return.++- Swap instructions:+ - `buy(pool, user, baseOut, maxQuoteIn)` allows a `user` to buy exactly `baseOut` tokens from the `pool` by paying+ at most `maxQuoteIn` tokens.+ - `sell(pool, user, baseIn, minQuoteOut)` allows a `user` to sell exactly `baseIn` tokens to the `pool` to receive+ at least `minQuoteOut` tokens.++- Utility instructions:+ - `extend_account(user, account)` allows any user to extend the data array of a program-owned account (+ `GlobalConfig` or `Pool` account) to allow for future fields to be added to those account types.++- Admin instructions (can be executed only to `GlobalConfig::admin` pubkey):+ - `create_config(hardcoded_admin, global_config)` allows creating the sole `GlobalConfig` account on initial+ PumpSwap program deployment. The `hardcoded_admin` is a hardcoded pubkey into PumpSwap program itself, which is+ allowed to create the `GlobalConfig` account and will initialize `GlobalConfig::admin` to the `hardcoded_admin`+ pubkey. This instruction can be run only once, because it will fail the second time, since `GlobalConfig` already+ exists.+ - `disable(admin, disable_create_pool, disable_deposit, disable_withdraw, disable_buy, disable_sell)` allows the+ `admin` to globally disable any Pump Swap operation.+ - `update_admin(admin, new_admin, global_config)` allows the `admin` to update the `GlobalConfig::admin` pubkey to a+ new one.+ - `update_fee_config(admin, lp_fee_basis_points, protocol_fee_basis_points, protocol_fee_recipients)` allows the+ `admin` to update the `GlobalConfig::lp_fee_basis_points`, `GlobalConfig::protocol_fee_basis_points` and+ `GlobalConfig::protocol_fee_recipients`.++## Mapping PumpSwap SDK methods to Anchor instructions++- `PumpAmmAdminSdk.createPoolInstructions(index, creator, baseMint, quoteMint, baseIn, quoteIn)` returns a+ `create_pool(index, creator, baseMint, quoteMint, baseIn, quoteIn)` instruction.++- `PumpAmmAdminSdk.depositInstructions(pool, user, lpTokenOut, slippage)` returns a+ `deposit(pool, user, lpTokenOut, maxBaseIn, maxQuoteIn)` instruction, where `maxBaseIn` and `maxQuoteIn` are computed+ using `lpTokenOut`, `slippage` and the current pool balances.++- `PumpAmmAdminSdk.withdrawInstructions(pool, user, lpTokenIn, slippage)` returns a+ `withdraw(pool, user, lpTokenIn, minBaseOut, minQuoteOut)` instruction, where `minBaseOut` and `minQuoteOut` are+ computed using `lpTokenIn`, `slippage` and the current pool balances.++- `PumpAmmInternalSdk.buyBaseInput(pool, user, baseOut, slippage)` returns a `buy(pool, user, baseOut, maxQuoteIn)`+ instruction, where `maxQouteIn` is computed using `baseOut`, `slippage` and the current pool balances.+- `PumpAmmInternalSdk.buyQuoteInput(pool, user, quote, slippage)` returns a `buy(pool, user, baseOut, maxQuoteIn)`+ instruction, where `baseOut` is computed using `quote`, `slippage` and the current pool balances and `maxQuoteIn`+ is `quote` scaled with `slippage`.+- `PumpAmmInternalSdk.sellBaseInput(pool, user, baseIn, slippage)` returns a `sell(pool, user, baseIn, minQuoteOut)`+ instruction, where `minQuoteOut` is computed using `baseIn`, `slippage` and the current pool balances.+- `PumpAmmInternalSdk.sellQuoteInput(pool, user, quote, slippage)` returns a `sell(pool, user, baseIn, minQuoteOut)`+ instruction, where `baseIn` is computed using `quote`, `slippage` and the current pool balances and+ `minQuoteOut` is `quote` scaled with `slippage`.++- `PumpAmmSdk.swapBaseInstructions(pool, user, base, slippage, direction)` calls either+ `PumpAmmInternalSdk.buyBaseInput(pool, user, base, slippage)` (`if (direction == "quoteToBase")`) or+ `PumpAmmInternalSdk.sellBaseInput(pool, user, base, slippage)` (`if (direction == "baseToQuote")`).+- `PumpAmmSdk.swapQuoteInstructions(pool, user, quote, slippage, direction)` calls either+ `PumpAmmInternalSdk.buyQuoteInput(pool, user, quote, slippage)` (`if (direction == "quoteToBase")`) or+ `PumpAmmInternalSdk.sellQuoteInput(pool, user, quote, slippage)` (`if (direction == "baseToQuote")`).++## PumpSwap SDK autocomplete UI helpers++Each Anchor instruction has a set of corresponding autocomplete methods that can be used to autocomplete the UI inputs:++- `PumpAmmSdk.createAutocompleteInitialPoolPrice(initialBase, initialQuote)` is used to display the initial pool price+ based on the initial `base` and `quote` inputs on pool creation.++- `PumpAmmSdk.depositAutocompleteQuoteAndLpTokenFromBase(pool, base, slippage)` is used to autocomplete the+ corresponding `quote` and `lpToken` values in the UI when the `base` input changes on deposit UI.+- `PumpAmmSdk.depositAutocompleteBaseAndLpTokenFromQuote(pool, quote, slippage)` is used to autocomplete the+ corresponding `base` and `lpToken` values in the UI when the `quote` input changes on deposit UI.++- `PumpAmmSdk.swapAutocompleteBaseFromQuote(pool, quote, slippage, swapDirection)` is used to autocomplete the+ corresponding `base` value in the UI when the `quote` input changes on swap UI.+- `PumpAmmSdk.swapAutocompleteQuoteFromBase(pool, base, slippage, swapDirection)` is used to autocomplete the+ corresponding `quote` value in the UI when the `base` input changes on swap UI.++- `PumpAmmSdk.swapAutocompleteBaseFromQuote(pool, quote, slippage, swapDirection)` calls either+ `PumpAmmInternalSdk.buyAutocompleteBaseFromQuote(pool, quote, slippage)` (`if (swapDirection == "quoteToBase")`) or+ `PumpAmmInternalSdk.sellAutocompleteBaseFromQuote(pool, quote, slippage)` (`if (swapDirection == "baseToQuote")`).+- `PumpAmmSdk.swapAutocompleteQuoteFromBase(pool, base, slippage, swapDirection)` calls either+ `PumpAmmInternalSdk.buyAutocompleteQuoteFromBase(pool, base, slippage)` (`if (swapDirection == "quoteToBase")`) or+ `PumpAmmInternalSdk.sellAutocompleteQuoteFromBase(pool, base, slippage)` (`if (swapDirection == "baseToQuote")`).++- `PumpAmmSdk.withdrawAutoCompleteBaseAndQuoteFromLpToken(pool, lpToken, slippage)` is used to autocomplete the+ corresponding `base` and `quote` values in the UI when the `lpToken` input changes on withdraw UI.diff --git a/docs/pumpfun-program/docs/PUMP_SWAP_SDK_README.md b/docs/pumpfun-program/docs/PUMP_SWAP_SDK_README.mdnew file mode 100644index 000000000..561e43f63--- /dev/null+++ b/docs/pumpfun-program/docs/PUMP_SWAP_SDK_README.md@@ -0,0 +1,73 @@+# Pump SDK++The SDK is structured as follows:+- `PumpAmmSdk` is the high level SDK, useful for UI integrations.+- `PumpAmmInternalSdk` is the low level SDK, useful for programmatic integrations, allowing full customization of instructions.+- `PumpAmmAdminSdk` is the SDK which allows access to admin-protected instructions.++## Create pool++To create a `(base, quote)` pool, you need to call:+`const createPoolInstructions = await pumpAmmSdk.createPoolInstructions(index, creator, baseMint, quoteMint, baseIn, quoteIn)`.++On UI, you can use `const initialPoolPrice = pumpAmmSdk.createAutocompleteInitialPoolPrice(initialBase, initialQuote)` to display+the initial pool price based on the initial `base` and `quote` inputs.++## Deposit++For depositing into a `(quote, base)` pool:+- when the `base` input changes, you need to call+ `const {quote, lpToken} = await pumpAmmSdk.depositAutocompleteQuoteAndLpTokenFromBase(pool, base, slippage)` in order to+ autocomplete the corresponding `quote` and `lpToken` values in the UI.+- when the `quote` input changes, you need to call+ `const {base, lpToken} = await pumpAmmSdk.depositAutocompleteBaseAndLpTokenFromQuote(pool, quote, slippage)` in order to+ autocomplete the corresponding `base` and `lpToken` values in the UI.++No matter which input is changed, when hitting deposit, you need to call+`const depositInstructions = await pumpAmmSdk.depositInstructions(pool, lpToken, slippage, user)`+to build the AMM deposit instruction, because `lpToken` is the only fixed input required by the `deposit` instruction.++## Swap++By default, the UI will display a `(quote, base)` pool like this:++Quote on first line, base on second line, with an ⬇️ from quote to base.+By default, you swap `quote` tokens for `base` tokens.++The arrow `swapDirection` can be either `quoteToBase` (⬇️, default)+or `baseToQuote` (⬆️).++```+(USDC, SOL) pool:+- USDC (quote)+- ⬇️+- SOL (base)+```++- If `quote` input changes, you call+ `const base = await pumpAmmSdk.swapAutocompleteBaseFromQuote(pool, quote, slippage, swapDirection)`.+- If `base` input changes, you call+ `const quote = await pumpAmmSdk.swapAutocompleteQuoteFromBase(pool, base, slippage, swapDirection)`.++No matter which input is changed, when hitting swap, you can call+`const swapInstructions = await pumpAmmSdk.swapBaseInstructions(pool, base, slippage, swapDirection, user)` or+`const swapInstructions = await pumpAmmSdk.swapBaseInstructions(pool, quote, slippage, swapDirection, user)` to+build the AMM swap instructions.++The `swapDirection` can be toggled in the UI either by making the arrow point upward or by swapping the base and quote+tokens positions.++```+(USDC, SOL) pool+- USDC (quote)+- ⬆️+- SOL (base)+```++## Withdraw++For withdrawing from a `(base, quote)` pool, you can use:+`const withdrawInstructions = await pumpAmmSdk.withdrawInstructions(pool, lpToken, slippage, user)`.++In the UI, you can use `const {base, quote} = pumpAmmSdk.withdrawAutocompleteBaseAndQuoteFromLpToken(pool, lpToken, slippage)`+to autocomplete the `base` and `quote` displayed amounts based on the `lpToken` input.diff --git a/docs/pumpfun-program/docs/instructions/BUY.md b/docs/pumpfun-program/docs/instructions/BUY.mdnew file mode 100644index 000000000..22a02a8dd--- /dev/null+++ b/docs/pumpfun-program/docs/instructions/BUY.md@@ -0,0 +1,171 @@+# Buy V2++The `buy_v2` instruction buys base tokens from a bonding curve using the curve's quote mint. Unlike the legacy `buy` instruction, all accounts are passed through a single unified interface for both SOL-paired and non-SOL-paired coins.++## Accounts+++| # | Account | Seeds / derivation | `init_if_needed` / SOL cost |+| --- | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |+| 1 | `global` | Pump PDA: seeds `[b"global"]`. | - |+| 2 | `base_mint` | Base token mint for the coin being bought. | - |+| 3 | `quote_mint` | Quote mint for the coin. For SOL-paired coins, pass wrapped SOL: `So11111111111111111111111111111111111111112`. | - |+| 4 | `base_token_program` | Token program for `base_mint`. For `create_v2` coins this is Token-2022: `TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb`. | - |+| 5 | `quote_token_program` | Token program for `quote_mint`. This is not necessarily the same as `base_token_program`. | - |+| 6 | `associated_token_program` | Associated Token Program: `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`. | - |+| 7 | `fee_recipient` | Fee recipient selected from the global config. | - |+| 8 | `associated_quote_fee_recipient` | Associated token account for `quote_mint`, owned by `fee_recipient`, using `quote_token_program`. | ATA rent if missing |+| 9 | `buyback_fee_recipient` | Buyback fee recipient checked against the global config. | - |+| 10 | `associated_quote_buyback_fee_recipient` | Associated token account for `quote_mint`, owned by `buyback_fee_recipient`, using `quote_token_program`. | - |+| 11 | `bonding_curve` | Pump PDA: seeds `[b"bonding-curve", base_mint]`. For SOL-paired coins, `bonding_curve.quote_mint` is `Pubkey::default()` and `quote_mint` should be wrapped SOL. | Rent top-up to make the account data length 115 bytes if it is smaller |+| 12 | `associated_base_bonding_curve` | Associated token account for `base_mint`, owned by `bonding_curve`, using `base_token_program`. | - |+| 13 | `associated_quote_bonding_curve` | Associated token account for `quote_mint`, owned by `bonding_curve`, using `quote_token_program`. | - |+| 14 | `user` | Transaction signer and buyer. | - |+| 15 | `associated_base_user` | User's associated token account for `base_mint`, using `base_token_program`. | - |+| 16 | `associated_quote_user` | User's associated token account for `quote_mint`, using `quote_token_program`. For SOL-paired coins, this is seed constrained but native SOL is used for the transfer. | - |+| 17 | `creator_vault` | Pump PDA: seeds `[b"creator-vault", bonding_curve.creator]`. | Rent-exempt top-up if needed |+| 18 | `associated_creator_vault` | Associated token account for `quote_mint`, owned by `creator_vault`, using `quote_token_program`. | ATA rent if missing |+| 19 | `sharing_config` | Pump Fees PDA: seeds `[b"sharing-config", base_mint]`. | - |+| 20 | `global_volume_accumulator` | Pump PDA: seeds `[b"global_volume_accumulator"]`. | - |+| 21 | `user_volume_accumulator` | Pump PDA: seeds `[b"user_volume_accumulator", user]`. Initialized if needed, paid by `user`. | Rent for 137-byte account if missing: 0.0018444 SOL |+| 22 | `associated_user_volume_accumulator` | Associated token account for `quote_mint`, owned by `user_volume_accumulator`, using `quote_token_program`. | ATA rent if missing |+| 23 | `fee_config` | Pump Fees PDA: seeds `[b"fee_config", pump_program_id]`. | - |+| 24 | `fee_program` | Pump Fees Program. | - |+| 25 | `system_program` | System Program: `11111111111111111111111111111111`. | - |+| 26 | `event_authority` | Pump PDA: seeds `[b"__event_authority"]`. | - |+| 27 | `program` | Pump program account. | - |+++## Instruction Data++The `buy_v2` instruction takes the following instruction data arguments.+++| # | Argument | Type | Description / validation | Optional? |+| --- | -------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------- | --------- |+| 1 | `amount` | `u64` | Amount of base tokens to buy, in base token units. Must be greater than `0` and cannot exceed the bonding curve's real token reserves. | No |+| 2 | `max_sol_cost` | `u64` | Maximum quote amount the buyer is willing to pay, including fees to the protocol and creator | No |+++## Fee Recipients++All `buy_v2` calls need a `feeRecipient` and a `buybackFeeRecipient`.++- For non-mayhem coins, choose one of the 8 normal fee recipients as `feeRecipient`.+- For mayhem mode coins, choose one of the 8 reserved fee recipients as `feeRecipient`.+- For all coins, choose one of the 8 buyback fee recipients as `buybackFeeRecipient`.++See [Fee Recipients](../FEE_RECIPIENTS.md) for the full address lists.++## TS SDK++### Buy SOL-Paired Coin++For SOL-paired coins, use wrapped SOL as the `quoteMint`.++```ts+import { PUMP_SDK } from "@pump-fun/pump-sdk";++const amount = new BN(100_000 * 10 ** 6);+const quoteAmount = new BN(1_000_000_000);+const quoteMint = NATIVE_MINT;+const quoteTokenProgram = TOKEN_PROGRAM_ID;++const buyInstruction = await PUMP_SDK.getBuyV2InstructionRaw({+ user,+ mint,+ creator,+ amount,+ quoteAmount,+ tokenProgram: TOKEN_2022_PROGRAM_ID,+ quoteMint,+ quoteTokenProgram,+ feeRecipient,+ buybackFeeRecipient,+});+```++### Buy Legacy SOL-Paired Coin++For legacy coins where the base mint uses the legacy SPL Token Program, pass `TOKEN_PROGRAM_ID` as both the base `tokenProgram` and `quoteTokenProgram`.++```ts+import { PUMP_SDK } from "@pump-fun/pump-sdk";++const amount = new BN(100_000 * 10 ** 6);+const quoteAmount = new BN(1_000_000_000);+const quoteMint = NATIVE_MINT;+const quoteTokenProgram = TOKEN_PROGRAM_ID;++const buyInstruction = await PUMP_SDK.getBuyV2InstructionRaw({+ user,+ mint,+ creator,+ amount,+ quoteAmount,+ tokenProgram: TOKEN_PROGRAM_ID,+ quoteMint,+ quoteTokenProgram,+ feeRecipient,+ buybackFeeRecipient,+});+```++### Buy USDC-Paired Coin++For USDC-paired coins, pass the USDC mint as `quoteMint` and the quote mint's token program as `quoteTokenProgram`.++```ts+import { PUMP_SDK } from "@pump-fun/pump-sdk";++const amount = new BN(100_000 * 10 ** 6);+const quoteAmount = new BN(1000 * 10 ** 6);+const quoteMint = new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");+const quoteTokenProgram = TOKEN_PROGRAM_ID;++const buyInstruction = await PUMP_SDK.getBuyV2InstructionRaw({+ user,+ mint,+ creator,+ amount,+ quoteAmount,+ tokenProgram: TOKEN_2022_PROGRAM_ID,+ quoteMint,+ quoteTokenProgram,+ feeRecipient,+ buybackFeeRecipient,+});+```++## Rust SDK++The Rust client exposes `buy_v2_instructions`, which prepends the user's+base/quote ATA creates and emits the `buy_v2` instruction. The fetched+`BondingCurve` carries the coin's `quote_mint`, so the same builder works+for SOL-paired and non-native quote coins; only `quote_token_program`+needs to match the quote mint's token program.++```rust+use pump_rust_client::{constants, PumpSdk};++let sdk = PumpSdk::new();+let global = client.fetch_global().await.expect("fetch_global");+let bonding_curve = client+ .fetch_bonding_curve(&mint)+ .await+ .expect("fetch_bonding_curve");++let mut ixs = vec![ComputeBudgetInstruction::set_compute_unit_limit(400_000)];+ixs.extend(+ sdk.buy_v2_instructions(+ &global,+ &bonding_curve,+ mint,+ constants::SPL_TOKEN_PROGRAM_ID, // quote_token_program; For native sol pass SPL_TOKEN_PROGRAM_ID+ user.pubkey(),+ 300_000_000, // amount (base token units, 6 decimals)+ LAMPORTS_PER_SOL, // max_quote_tokens (slippage cap, quote base units)+ )+ .expect("buy_v2_instructions"),+);+```diff --git a/docs/pumpfun-program/docs/instructions/CLAIM_CASHBACK.md b/docs/pumpfun-program/docs/instructions/CLAIM_CASHBACK.mdnew file mode 100644index 000000000..d74465561--- /dev/null+++ b/docs/pumpfun-program/docs/instructions/CLAIM_CASHBACK.md@@ -0,0 +1,103 @@+# Claim Cashback++The `claim_cashback_v2` instruction claims cashback accrued in a user's volume accumulator. It supports both legacy SOL cashback and non-SOL quote mint cashback through the same interface. The instruction is permissionless: `user` is the cashback recipient, but does not need to sign the transaction.++## Accounts+++| # | Account | Seeds / derivation | `init_if_needed` / SOL cost |+| --- | ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |+| 1 | `user` | Cashback recipient. For legacy SOL cashback, receives all lamports held above rent-exempt balance in `user_volume_accumulator`. | - |+| 2 | `user_volume_accumulator` | Pump PDA: seeds `[b"user_volume_accumulator", user]`. | - |+| 3 | `quote_mint` | Quote mint for the cashback being claimed. Pass wrapped SOL, `So11111111111111111111111111111111111111112`, for legacy SOL cashback. | - |+| 4 | `quote_token_program` | Token program for `quote_mint`. Pass the legacy SPL Token Program, `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`, for legacy SOL cashback. | - |+| 5 | `associated_token_program` | Associated Token Program: `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`. | - |+| 6 | `associated_user_volume_accumulator` | Associated token account for `quote_mint`, owned by `user_volume_accumulator`, using `quote_token_program`. For legacy SOL cashback, this account may not exist. | - |+| 7 | `associated_quote_user` | Associated token account for `quote_mint`, owned by `user`, using `quote_token_program`. For legacy SOL cashback, this account may not exist. | - |+| 8 | `system_program` | System Program: `11111111111111111111111111111111`. | - |+| 9 | `event_authority` | Pump PDA: seeds `[b"__event_authority"]`. | - |+| 10 | `program` | Pump program account. | - |+++## Instruction Data++The `claim_cashback_v2` instruction takes no instruction data arguments.+++## TS SDK++### Claim Legacy SOL-Paired Mint Cashback++Pass wrapped SOL as `quoteMint`. This claims lamports directly from the user's volume accumulator to `user`.++```ts+import { getPumpProgram } from "@pump-fun/pump-sdk";++const pumpProgram = getPumpProgram(connection);+const quoteMint = NATIVE_MINT;+const quoteTokenProgram = TOKEN_PROGRAM_ID;++const claimCashbackInstruction = await pumpProgram.methods+ .claimCashbackV2()+ .accountsPartial({+ user,+ quoteMint,+ quoteTokenProgram,+ })+ .instruction();+```++### Claim USDC-Paired Mint Cashback++For non-SOL quote mints, pass the quote mint and its token program. This claims tokens from the user's volume accumulator quote ATA to the user's quote ATA.++```ts+import { getPumpProgram } from "@pump-fun/pump-sdk";++const pumpProgram = getPumpProgram(connection);+const quoteMint = new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");+const quoteTokenProgram = TOKEN_PROGRAM_ID;++const claimCashbackInstruction = await pumpProgram.methods+ .claimCashbackV2()+ .accountsPartial({+ user,+ quoteMint,+ quoteTokenProgram,+ })+ .instruction();+```++## Rust SDK++The Rust client exposes `claim_cashback_v2_instruction`. Pass+`Pubkey::default()` (or wSOL) as `quote_mint` for legacy SOL cashback, or+the desired quote mint (e.g. USDC) for non-SOL cashback. `quote_token_program`+must match the quote mint's token program.++### Claim Legacy SOL-Paired Mint Cashback++```rust+use pump_rust_client::{constants, PumpSdk};+use solana_sdk::pubkey::Pubkey;++let sdk = PumpSdk::new();++let ix = sdk.claim_cashback_v2_instruction(+ user.pubkey(),+ Pubkey::default(), // quote_mint — default → wSOL+ constants::SPL_TOKEN_PROGRAM_ID, // quote_token_program+);+```++### Claim USDC-Paired Mint Cashback++```rust+let usdc = pubkey!("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");++let ix = sdk.claim_cashback_v2_instruction(+ user.pubkey(),+ usdc, // quote_mint+ constants::SPL_TOKEN_PROGRAM_ID, // quote_token_program+);+```diff --git a/docs/pumpfun-program/docs/instructions/COIN_CREATION.md b/docs/pumpfun-program/docs/instructions/COIN_CREATION.mdnew file mode 100644index 000000000..33215405f--- /dev/null+++ b/docs/pumpfun-program/docs/instructions/COIN_CREATION.md@@ -0,0 +1,149 @@+# Coin Creation Accounts++The `create_v2` instruction uses the following accounts. Accounts 1-16 are present in the generated IDL. Accounts 17-19 are optional `remaining_accounts` and must be appended in this exact order when creating a coin with a non-native quote mint.+++| # | Account | Seeds / derivation | Added to IDL? |+| --- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |+| 1 | `mint` | New Token-2022 mint account. Signer, initialized with `decimals = 6`, `mint_authority`, `token_program`, and metadata pointer set to `mint`. | Yes |+| 2 | `mint_authority` | Pump PDA: seeds `[b"mint-authority"]`. | Yes |+| 3 | `bonding_curve` | Pump PDA: seeds `[b"bonding-curve", mint]`. | Yes |+| 4 | `associated_bonding_curve` | Associated token account for `mint`, owned by `bonding_curve`, using `token_program` and `associated_token_program`. | Yes |+| 5 | `global` | Pump PDA: seeds `[b"global"]`. | Yes |+| 6 | `user` | Transaction signer and payer. | Yes |+| 7 | `system_program` | System Program: `11111111111111111111111111111111`. | Yes |+| 8 | `token_program` | Token-2022 Program: `TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb`. | Yes |+| 9 | `associated_token_program` | Associated Token Program: `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`. | Yes |+| 10 | `mayhem_program_id` | Mayhem Program: `MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e`. | Yes |+| 11 | `global_params` | Mayhem PDA: seeds `[b"global-params"]`. | Yes |+| 12 | `sol_vault` | Mayhem PDA: seeds `[b"sol-vault"]`. | Yes |+| 13 | `mayhem_state` | Mayhem PDA: seeds `[b"mayhem-state", mint]`. | Yes |+| 14 | `mayhem_token_vault` | Associated token account for `mint`, owned by `sol_vault`, using the Token-2022 program. | Yes |+| 15 | `event_authority` | Pump PDA generated by `#[event_cpi]`: seeds `[b"__event_authority"]`. | Yes |+| 16 | `program` | Pump program account, generated by `#[event_cpi]`. | Yes |+| 17 | `quote_mint` | Optional remaining account at index `0`. Must be a supported quote mint. If left empty, or if passed as wrapped SOL (`So11111111111111111111111111111111111111112`), `bonding_curve.quote_mint` becomes `Pubkey::default()`, which is the correct value for a coin traded against SOL. | No |+| 18 | `associated_quote_bonding_curve` | Optional remaining account at index `1`. Associated token account for `quote_mint`, owned by `bonding_curve`, using the quote mint's token program. Required for non-native quote mints. | No |+| 19 | `quote_token_program` | Optional remaining account at index `2`. Must be the token program for `quote_mint`; this is not necessarily the legacy SPL Token Program. | No |+++When any optional quote account is supplied, all three optional remaining accounts must be supplied.++## Instruction Data++The `create_v2` instruction takes the following instruction data arguments.+++| # | Argument | Type | Description / validation | Optional? |+| --- | --------------------- | ------------ | ------------------------------------------------- | --------- |+| 1 | `name` | `String` | Coin name. Maximum 32 characters. | No |+| 2 | `symbol` | `String` | Coin symbol. Maximum 13 characters. | No |+| 3 | `uri` | `String` | Metadata URI. Maximum 200 characters. | No |+| 4 | `creator` | `Pubkey` | Creator address. Must not be `Pubkey::default()`. | No |+| 5 | `is_mayhem_mode` | `bool` | Enables mayhem mode for the coin. | No |+| 6 | `is_cashback_enabled` | `OptionBool` | Enables cashback for the coin. | Yes |++## TS SDK++### Default SOL-Paired Mint++When `quoteMint` is omitted, the coin is created as a SOL-paired mint.++```ts+import { PUMP_SDK } from "@pump-fun/pump-sdk";++const mintKeypair = Keypair.generate();++const createInstruction = await PUMP_SDK.createV2Instruction({+ mint: mintKeypair.publicKey,+ name: "Name",+ symbol: "symbol",+ uri: "<your ipfs uri>",+ creator,+ user,+ mayhemMode: false, // Can be set to true.+ cashback: false, // Can be set to true.+});+```++### USDC-Paired Mint++Pass the USDC mint as `quoteMint` to create a USDC-paired mint.++```ts+import { PUMP_SDK } from "@pump-fun/pump-sdk";++const mintKeypair = Keypair.generate();+const quoteMint = new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");++const createInstruction = await PUMP_SDK.createV2Instruction({+ mint: mintKeypair.publicKey,+ name: "Name",+ symbol: "symbol",+ uri: "<your ipfs uri>",+ creator,+ user,+ mayhemMode: false, // Can be set to true.+ cashback: false, // Can be set to true.+ quoteMint,+});+```++## Rust SDK++The Rust client exposes `create_v2_and_buy_instruction`, which returns the+`create_v2` instruction followed by a `buy_v2` instruction so the creator can+seed the curve in a single transaction. Pass `Pubkey::default()` for a+SOL-paired coin or the desired quote mint (e.g. USDC) for a non-native quote.++### Default SOL-Paired Mint++```rust+use pump_rust_client::{constants, PumpSdk};+use solana_sdk::pubkey::Pubkey;++let sdk = PumpSdk::new();+let global = client.fetch_global().await.expect("fetch_global");++let ixs = sdk+ .create_v2_and_buy_instruction(+ mint.pubkey(),+ user.pubkey(),+ "Example",+ "EX",+ "https://example.com/ex.json",+ user.pubkey(), // creator+ Pubkey::default(), // quote_mint — default → wSOL+ false, // mayhem_mode+ false, // cashback+ None, // tokenized_agent_buyback_bps+ &global,+ 1_000_000_000, // amount (token base units, 6 decimals)+ LAMPORTS_PER_SOL, // max_quote_tokens (slippage cap, in quote base units)+ )+ .expect("create_v2_and_buy_instruction");+```++### USDC-Paired Mint++```rust+let usdc = pubkey!("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");++let ixs = sdk+ .create_v2_and_buy_instruction(+ mint.pubkey(),+ user.pubkey(),+ "Example",+ "EX",+ "https://example.com/ex.json",+ user.pubkey(),+ usdc, // quote_mint+ false,+ false,+ None,+ &global,+ 1_000_000_000,+ max_quote_tokens, // slippage cap, expressed in the quote mint's base units+ )+ .expect("create_v2_and_buy_instruction");+```+diff --git a/docs/pumpfun-program/docs/instructions/COLLECT_CREATOR_FEE.md b/docs/pumpfun-program/docs/instructions/COLLECT_CREATOR_FEE.mdnew file mode 100644index 000000000..af02f9a2d--- /dev/null+++ b/docs/pumpfun-program/docs/instructions/COLLECT_CREATOR_FEE.md@@ -0,0 +1,95 @@+# Collect Creator Fee++> **Note:** These instructions only apply to coins that do **not** have a `sharing_config` — i.e. single-creator-recipient coins. Once a coin's creator vault has been migrated to a `sharing_config`, fees must be distributed through the Pump Fees program instead, and both instructions below will fail.++Coin creators accrue fees in two separate vaults:++1. A **bonding curve creator vault** held by the Pump program, drained via `collect_creator_fee_v2`.+2. An **AMM coin creator vault** held by the Pump AMM program (post-migration), drained via `collect_coin_creator_fee`.++The two instructions are independent: a creator typically calls both to fully sweep their fees. Unlike the legacy `collect_creator_fee`, the V2 / AMM variants use a unified account layout that supports both SOL-paired and non-SOL-paired coins.++## `collect_creator_fee_v2` (Bonding Curve)++The `collect_creator_fee_v2` instruction sweeps creator fees out of the bonding curve creator vault into the creator's wallet (for SOL-paired coins) or the creator's token account (for non-SOL-paired coins). It is permissionless: anyone can call it for a given creator.++### Accounts+++| # | Account | Seeds / derivation | `init_if_needed` / SOL cost |+| --- | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |+| 1 | `creator` | The coin creator account that receives the fees. Must not be owned by the Pump Fees program (otherwise the vault has been migrated to a `sharing_config`) and must not be executable. | - |+| 2 | `creator_token_account` | Associated token PDA for `(creator, quote_token_program, quote_mint)`. Destination of the token transfer. | Expected to be initialized; may be uninitialized when `quote_mint` is wrapped SOL. |+| 3 | `creator_vault` | Pump PDA: seeds `[b"creator-vault", creator]`. Holds the accrued creator fees (either as lamports for SOL-paired coins or as a token-account authority for non-SOL coins). | - |+| 4 | `creator_vault_token_account` | Associated token PDA for `(creator_vault, quote_token_program, quote_mint)`. Source of the token transfer. | Expected to be initialized; may be uninitialized when `quote_mint` is wrapped SOL. |+| 5 | `quote_mint` | Quote mint for the coin. For SOL-paired coins, pass wrapped SOL: `So11111111111111111111111111111111111111112`. | - |+| 6 | `quote_token_program` | Token program for `quote_mint`. | - |+| 7 | `associated_token_program` | Associated Token Program: `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`. | - |+| 8 | `system_program` | System Program: `11111111111111111111111111111111`. | - |+| 9 | `event_authority` | Pump PDA: seeds `[b"__event_authority"]`. | - |+| 10 | `program` | Pump program account. | - |+++When `quote_mint` is wrapped SOL the program performs a lamport transfer from `creator_vault` to `creator`, leaving the vault rent-exempt, and `creator_token_account` / `creator_vault_token_account` are unused. For non-SOL quotes the program reads the balance of `creator_vault_token_account` and transfers it via `quote_token_program` into `creator_token_account`.++## `collect_coin_creator_fee` (Pump AMM)++The `collect_coin_creator_fee` instruction sweeps coin creator fees that have accrued on the Pump AMM out of the coin creator's vault ATA into the coin creator's token account. It is permissionless: anyone can call it for a given coin creator. The coin creator account must not be owned by the Pump Fees program (otherwise the vault has been migrated to a `sharing_config`).++### Accounts+++| # | Account | Seeds / derivation | `init_if_needed` / SOL cost |+| --- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |+| 1 | `quote_mint` | Quote mint for the coin. For SOL-paired coins, pass wrapped SOL: `So11111111111111111111111111111111111111112`. | - |+| 2 | `quote_token_program` | Token program for `quote_mint`. | - |+| 3 | `coin_creator` | Coin creator account. Must not be owned by the Pump Fees program. | - |+| 4 | `coin_creator_vault_authority` | Pump AMM PDA: seeds `[b"creator_vault", coin_creator]`. Authority over `coin_creator_vault_ata`. | - |+| 5 | `coin_creator_vault_ata` | Associated token account for `quote_mint`, owned by `coin_creator_vault_authority`, using `quote_token_program`. Source of the transfer. | Must be initialized. |+| 6 | `coin_creator_token_account` | Token account for `quote_mint` owned by `coin_creator`, using `quote_token_program`. Destination of the transfer. | Must be initialized. |+| 7 | `event_authority` | Pump AMM PDA: seeds `[b"__event_authority"]`. | - |+| 8 | `program` | Pump AMM program account. | - |++## Rust SDK++Sweep the bonding curve creator vault, and (if the coin has graduated) the AMM coin creator vault. `quote_mint` can be wrapped SOL or USDC, pass the matching token program as `quote_token_program`.++```rust+use pump_rust_client::accounts::pump_amm::decode_pool;+use pump_rust_client::constants::NATIVE_MINT;+use pump_rust_client::{constants, pda, PumpSdk};+use solana_sdk::compute_budget::ComputeBudgetInstruction;++let sdk = PumpSdk::new();++// For SOL-paired coins:+let quote_mint = NATIVE_MINT;+let quote_token_program = constants::SPL_TOKEN_PROGRAM_ID;+// For USDC-paired coins, set `quote_mint` to the USDC mint instead+// (token program remains `SPL_TOKEN_PROGRAM_ID`).++let mut ixs = vec![ComputeBudgetInstruction::set_compute_unit_limit(200_000)];++if graduated {+ let pool_creator = pda::pump::pool_authority(&mint).0;+ let pool_address = pda::pump_amm::pool(0, &pool_creator, &mint, "e_mint).0;+ let pool = decode_pool(&rpc.get_account(&pool_address).await?.data)?;++ ixs.extend(sdk.collect_coin_creator_fee_instructions(+ payer,+ pool.coin_creator,+ quote_mint,+ quote_token_program,+ true,+ ));+}++// 2. Sweep the bonding curve creator vault to `creator`.+ixs.extend(sdk.collect_creator_fee_v2_instructions(+ payer,+ creator,+ quote_mint,+ quote_token_program,+ true,+));+```diff --git a/docs/pumpfun-program/docs/instructions/CREATOR_FEE_SHARING.md b/docs/pumpfun-program/docs/instructions/CREATOR_FEE_SHARING.mdnew file mode 100644index 000000000..24ac88810--- /dev/null+++ b/docs/pumpfun-program/docs/instructions/CREATOR_FEE_SHARING.md@@ -0,0 +1,347 @@+# Creator Fee Sharing++> **Note:** These instructions only apply to coins that **have** a `sharing_config` — i.e. coins whose creator vault has been migrated to the Pump Fees program for multi-recipient distribution. For single-creator-recipient coins (no `sharing_config`), use [`collect_creator_fee_v2` / `collect_coin_creator_fee`](./COLLECT_CREATOR_FEE.md) instead.++The lifecycle is:++1. `create_fee_sharing_config` (Pump Fees) — opt the coin into shared distribution. Migrates the bonding curve creator (and AMM `pool.coin_creator` if graduated) to the new `sharing_config` PDA.+2. `update_fee_shares_v2` (Pump Fees) — set the final list of shareholders. Sweeps any pending creator fees from both the AMM and the bonding curve via CPI before applying the new shares. Can only be called once per `sharing_config` (the admin is revoked after).+3. `transfer_creator_fees_to_pump_v2` (Pump AMM) — sweep coin creator fees accrued on the AMM into the bonding curve's creator vault so they can be distributed by the pump program. Permissionless.+4. `distribute_creator_fees_v2` (Pump program) — pay out the bonding curve's creator vault to each shareholder according to their `share_bps`. Permissionless.++For every token account in the tables below, the third column tells you who is responsible for initialization: whether the caller must initialize it beforehand, whether the instruction will initialize it on the fly, or whether it can be left uninitialized when `quote_mint` is wrapped SOL (the SOL-paired code path never touches it).++## `create_fee_sharing_config` (Pump Fees)++Creates the `sharing_config` PDA for a coin and CPIs into the Pump program (and the Pump AMM program if the coin has graduated) to point the creator vault at `sharing_config`. The initial shareholder set is `[(creator, 10_000 bps)]`. Callable by either the global `admin_set_creator_authority` or the current coin creator.++### Accounts+++| # | Account | Seeds / derivation | `init_if_needed` / SOL cost |+| --- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |+| 1 | `event_authority` | Pump Fees PDA: seeds `[b"__event_authority"]`. | - |+| 2 | `program` | Pump Fees program account. | - |+| 3 | `payer` | Transaction signer. Must be `global.admin_set_creator_authority` or the coin creator (`bonding_curve.creator` for pre-graduation, `pool.coin_creator` for graduated coins). Pays the rent for `sharing_config`. | - |+| 4 | `global` | Pump PDA: seeds `[b"global"]`. | - |+| 5 | `mint` | Base token mint. | - |+| 6 | `sharing_config` | Pump Fees PDA: seeds `[b"sharing-config", mint]`. Allocates up to `SharingConfig::MAX_SIZE` (1024 bytes). Calling twice is a no-op. | Rent for a 1024-byte account |+| 7 | `system_program` | System Program: `11111111111111111111111111111111`. | - |+| 8 | `bonding_curve` | Pump PDA: seeds `[b"bonding-curve", mint]`. Mutated by the CPI into `pump::migrate_bonding_curve_creator` (its `creator` field is updated to `sharing_config`). | - |+| 9 | `pump_program` | Pump program account. | - |+| 10 | `pump_event_authority` | Pump PDA: seeds `[b"__event_authority"]`. | - |+| 11 | `pool` | Optional. Pump AMM `Pool` account for the coin. **Required** if the coin has graduated; omit otherwise. | - |+| 12 | `pump_amm_program` | Optional. Pump AMM program account. **Required** if `pool` is set. | - |+| 13 | `pump_amm_event_authority` | Optional. Pump AMM PDA: seeds `[b"__event_authority"]`. **Required** if `pool` is set. | - |+++### Instruction Data++`create_fee_sharing_config` takes no instruction data arguments.++## `update_fee_shares_v2` (Pump Fees)++Sets the final shareholder list on the `sharing_config` and revokes further admin updates. Before applying the new shares, this instruction CPIs into the AMM to sweep any AMM-side creator fees into the bonding curve (if the coin has graduated and the AMM-side vault has accrued fees), and CPIs into the Pump program to distribute any currently pending bonding-curve creator fees to the **current** shareholder list. Callable by the `sharing_config.admin`.++### Accounts+++| # | Account | Seeds / derivation | `init_if_needed` / SOL cost |+| --- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |+| 1 | `event_authority` | Pump Fees PDA: seeds `[b"__event_authority"]`. | - |+| 2 | `program` | Pump Fees program account. | - |+| 3 | `authority` | Transaction signer. Must equal `sharing_config.admin`. | - |+| 4 | `global` | Pump PDA: seeds `[b"global"]`. | - |+| 5 | `mint` | Base token mint. | - |+| 6 | `sharing_config` | Pump Fees PDA: seeds `[b"sharing-config", mint]`. Must already exist and have `version != 1` (i.e. created by the V2 deployment). | - |+| 7 | `bonding_curve` | Pump PDA: seeds `[b"bonding-curve", mint]`. Used by the CPI into `distribute_creator_fees_v2`. | - |+| 8 | `pump_creator_vault` | Pump PDA: seeds `[b"creator-vault", sharing_config]`. Source of the bonding-curve-side creator fees. | - |+| 9 | `pump_creator_vault_ata` | Associated token PDA for `(pump_creator_vault, token_program, quote_mint)`. Source of the token transfer for non-native quote mints during the CPI'd distribution. | Expected to be initialized; may be uninitialized when `quote_mint` is wrapped SOL. |+| 10 | `system_program` | System Program: `11111111111111111111111111111111`. | - |+| 11 | `pump_program` | Pump program account. | - |+| 12 | `pump_event_authority` | Pump PDA: seeds `[b"__event_authority"]`. | - |+| 13 | `pump_amm_program` | Pump AMM program account. | - |+| 14 | `amm_event_authority` | Pump AMM PDA: seeds `[b"__event_authority"]`. | - |+| 15 | `quote_mint` | Quote mint for the coin. For SOL-paired coins, pass wrapped SOL: `So11111111111111111111111111111111111111112`. | - |+| 16 | `token_program` | Token program for `quote_mint`. | - |+| 17 | `associated_token_program` | Associated Token Program: `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`. | - |+| 18 | `coin_creator_vault_authority`| Pump AMM PDA: seeds `[b"creator_vault", sharing_config]`. Used by the AMM-sweep CPI when the coin has graduated. | - |+| 19 | `coin_creator_vault_ata` | Associated token PDA for `(coin_creator_vault_authority, token_program, quote_mint)`. Source of the AMM-sweep CPI. | Expected to be initialized; may be uninitialized when `quote_mint` is wrapped SOL. |+++### Remaining Accounts++The remaining accounts are forwarded to the inner `distribute_creator_fees_v2` CPI and follow its shape:++| Quote mint | Layout of `remainingAccounts` |+| ----------------------------- | ------------------------------------------------------------------------------ |+| Wrapped SOL | `[shareholder_1, …, shareholder_N]` |+| Non-native (e.g. USDC) | `[shareholder_1, …, shareholder_N, ata_1, …, ata_N]` where `ata_i` is the ATA for `(shareholder_i, token_program, quote_mint)`. |++The order must match the current `sharing_config.shareholders`. For non-native quote mints, missing shareholder ATAs are created on the fly by the CPI'd `distribute_creator_fees_v2` (which is invoked with `initialize_ata = true` from this instruction).++### Instruction Data++| # | Argument | Type | Description / validation | Optional? |+| --- | -------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |+| 1 | `shareholders` | `Vec<Shareholder>` | New list of `{ address, share_bps }`. Must be non-empty, contain at most 10 entries, have no duplicates, every `share_bps > 0`, and `sum(share_bps) == 10_000`. Replaces the current shareholders and sets `admin_revoked = true`, so this instruction can only effectively be used once per `sharing_config`. | No |++## `transfer_creator_fees_to_pump_v2` (Pump AMM)++Sweeps coin creator fees accrued on the Pump AMM out of the AMM coin creator vault and into the Pump program's `creator_vault` for the same creator, so they can be paid out via `distribute_creator_fees_v2`. Permissionless. For wrapped-SOL quotes the instruction unwraps via close-and-recreate to forward lamports directly to `pump_creator_vault`; for non-native quotes it does a token transfer between ATAs and creates the destination ATA if needed.++### Accounts+++| # | Account | Seeds / derivation | `init_if_needed` / SOL cost |+| --- | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |+| 1 | `payer` | Transaction signer. Pays the rent for `pump_creator_vault_ata` when it is initialized by the instruction (non-native quote only). | - |+| 2 | `quote_mint` | Quote mint for the coin. For SOL-paired coins, pass wrapped SOL: `So11111111111111111111111111111111111111112`. | - |+| 3 | `token_program` | Token program for `quote_mint`. | - |+| 4 | `system_program` | System Program: `11111111111111111111111111111111`. | - |+| 5 | `associated_token_program` | Associated Token Program: `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`. | - |+| 6 | `coin_creator` | Coin creator account (the `sharing_config` PDA once the coin has been migrated). | - |+| 7 | `coin_creator_vault_authority`| Pump AMM PDA: seeds `[b"creator_vault", coin_creator]`. Authority over `coin_creator_vault_ata`. Mutated when its lamports are forwarded for wrapped SOL. | - |+| 8 | `coin_creator_vault_ata` | Associated token account for `quote_mint`, owned by `coin_creator_vault_authority`, using `token_program`. Source of the transfer. | Must be initialized. |+| 9 | `pump_creator_vault` | Pump PDA: seeds `[b"creator-vault", coin_creator]`. Destination of the lamport transfer for wrapped SOL. | - |+| 10 | `pump_creator_vault_ata` | Associated token PDA for `(pump_creator_vault, token_program, quote_mint)`. Destination of the token transfer for non-native quotes. | Expected to be initialized; initialized by the instruction if empty (non-native quote only). For wrapped SOL the account is unused and may be uninitialized. |+| 11 | `event_authority` | Pump AMM PDA: seeds `[b"__event_authority"]`. | - |+| 12 | `program` | Pump AMM program account. | - |+++### Instruction Data++`transfer_creator_fees_to_pump_v2` takes no instruction data arguments.++## `distribute_creator_fees_v2` (Pump program)++Pays out the bonding curve creator vault to every shareholder in `sharing_config.shareholders` proportionally to their `share_bps`. Permissionless. For wrapped-SOL quotes the instruction transfers lamports directly to each shareholder address (leaving the vault rent-exempt). For non-native quotes it transfers tokens from the vault's ATA to each shareholder's ATA, and — if `initialize_ata = true` is passed — creates any missing shareholder ATAs along the way (paid for by `payer`).++### Accounts+++| # | Account | Seeds / derivation | `init_if_needed` / SOL cost |+| --- | ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |+| 1 | `payer` | Transaction signer. Pays the rent for any shareholder ATAs created during this call when `initialize_ata = true`. | - |+| 2 | `mint` | Base token mint. | - |+| 3 | `bonding_curve` | Pump PDA: seeds `[b"bonding-curve", mint]`. Must have `bonding_curve.creator == sharing_config`. | - |+| 4 | `sharing_config` | Pump Fees PDA: seeds `[b"sharing-config", mint]`. Must be `Active`. | - |+| 5 | `creator_vault` | Pump PDA: seeds `[b"creator-vault", sharing_config]` (since `bonding_curve.creator == sharing_config`). Source of the distribution. | - |+| 6 | `system_program` | System Program: `11111111111111111111111111111111`. | - |+| 7 | `event_authority` | Pump PDA: seeds `[b"__event_authority"]`. | - |+| 8 | `program` | Pump program account. | - |+| 9 | `creator_vault_quote_token_account` | Associated token PDA for `(creator_vault, quote_token_program, quote_mint)`. Source of the token transfer for non-native quotes. | Expected to be initialized; may be uninitialized when `quote_mint` is wrapped SOL. |+| 10 | `quote_mint` | Quote mint for the coin. For SOL-paired coins, pass wrapped SOL: `So11111111111111111111111111111111111111112`. Must match the bonding curve's quote mint. | - |+| 11 | `quote_token_program` | Token program for `quote_mint`. | - |+| 12 | `associated_token_program` | Associated Token Program: `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`. | - |+++### Remaining Accounts++| Quote mint | Layout of `remainingAccounts` |+| ----------------------------- | ------------------------------------------------------------------------------ |+| Wrapped SOL | `[shareholder_1, …, shareholder_N]` |+| Non-native (e.g. USDC) | `[shareholder_1, …, shareholder_N, ata_1, …, ata_N]` where `ata_i` is the ATA for `(shareholder_i, quote_token_program, quote_mint)`. |++The order must match `sharing_config.shareholders` exactly. For wrapped-SOL coins, each shareholder receives lamports directly and only the wallet pubkeys are required. For non-native quote coins, each `ata_i` is enforced to be the canonical ATA for that shareholder; if `initialize_ata = true` is passed, any missing ATAs are created on the fly (rent paid by `payer`), and if `initialize_ata = false` the instruction fails on the first uninitialized ATA.++### Instruction Data++| # | Argument | Type | Description / validation | Optional? |+| --- | ---------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |+| 1 | `initialize_ata` | `bool` | If `true`, the instruction will create any missing shareholder ATAs (paid by `payer`) before transferring tokens. If `false`, missing ATAs cause the instruction to fail. Ignored for wrapped-SOL coins (no ATAs involved). | No |++## TS SDK++End-to-end flow: opt the coin into fee sharing, set the final shareholder list, and (after fees have accrued from trading) sweep AMM-side fees into the bonding curve vault and distribute them to the shareholders.++### SOL-Paired Coin++For SOL-paired coins, use wrapped SOL as the `quoteMint` and the SPL token program as `quoteTokenProgram`.++```ts+import { PUMP_SDK, feeSharingConfigPda } from "@pump-fun/pump-sdk";+import { NATIVE_MINT, TOKEN_PROGRAM_ID } from "@solana/spl-token";++// 1. Opt the coin into shared distribution. After this CPI, `bonding_curve.creator`+// (and `pool.coin_creator` if graduated) point at `sharing_config`, and the+// default shareholder list is `[(creator, 10_000 bps)]`.+const createSharingConfigIx = await PUMP_SDK.createFeeSharingConfig({+ creator,+ mint,+ pool, // canonical Pump AMM pool, or `null` if the coin hasn't graduated+});++// 2. Set the final shareholder list. Sweeps any pending bonding-curve creator fees+// to the *current* shareholders before applying the new list, then revokes+// further admin updates on this sharing_config.+const updateFeeSharesIx = await PUMP_SDK.updateFeeSharesV2({+ authority: creator, // = sharing_config.admin (bonding_curve.creator at this point)+ mint,+ currentShareholders: [creator], // matches what was set by `createFeeSharingConfig`+ newShareholders: [+ { address: wallet1, shareBps: 5000 }, // 50%+ { address: wallet2, shareBps: 3000 }, // 30%+ { address: wallet3, shareBps: 2000 }, // 20%+ ],+ quoteMint: NATIVE_MINT,+ quoteTokenProgram: TOKEN_PROGRAM_ID,+});++// --- Trades occur over time and creator fees accumulate in the bonding curve+// creator vault and, for graduated coins, in the AMM coin creator vault. ---++// 3. (Graduated coins only.) Sweep AMM-side creator fees into the bonding curve+// creator vault so they can be distributed alongside the bonding-curve fees.+const transferIx = await PUMP_SDK.transferCreatorFeesToPumpV2({+ payer: user,+ mint,+ quoteMint: NATIVE_MINT,+ quoteTokenProgram: TOKEN_PROGRAM_ID,+});++// 4. Distribute the accumulated bonding-curve creator fees to the shareholders.+const sharingConfigAddress = feeSharingConfigPda(mint);+const sharingConfigAccountInfo = await connection.getAccountInfo(+ sharingConfigAddress,+);+const sharingConfig = PUMP_SDK.decodeSharingConfig(sharingConfigAccountInfo!);++const distributeIx = await PUMP_SDK.distributeCreatorFeesV2({+ mint,+ sharingConfig,+ sharingConfigAddress,+ quoteMint: NATIVE_MINT,+ payer: user,+ shouldInitializeAta: true, // create missing recipient ATAs (non-WSOL only)+ quoteTokenProgram: TOKEN_PROGRAM_ID,+});+```++### USDC-Paired Coin++For USDC-paired coins, pass the USDC mint as `quoteMint` and the USDC token program as `quoteTokenProgram`. Setting `shouldInitializeAta: true` on the distribute call ensures any missing shareholder USDC ATAs are created on the fly (rent paid by `payer`).++```ts+import { PUMP_SDK, feeSharingConfigPda } from "@pump-fun/pump-sdk";+import { TOKEN_PROGRAM_ID } from "@solana/spl-token";+import { PublicKey } from "@solana/web3.js";++const quoteMint = new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");+const quoteTokenProgram = TOKEN_PROGRAM_ID;++// 1. Opt the coin into shared distribution.+const createSharingConfigIx = await PUMP_SDK.createFeeSharingConfig({+ creator,+ mint,+ pool, // canonical Pump AMM pool, or `null` if the coin hasn't graduated+});++// 2. Set the final shareholder list. For non-WSOL quotes, the inner CPI distributes+// pending fees as USDC, so the current shareholder ATAs must already exist (the+// initial shareholder is just `creator`, whose ATA will be auto-created here).+const updateFeeSharesIx = await PUMP_SDK.updateFeeSharesV2({+ authority: creator,+ mint,+ currentShareholders: [creator],+ newShareholders: [+ { address: wallet1, shareBps: 5000 },+ { address: wallet2, shareBps: 3000 },+ { address: wallet3, shareBps: 2000 },+ ],+ quoteMint,+ quoteTokenProgram,+});++// --- Trades occur over time and creator fees accumulate in the bonding curve+// creator vault and, for graduated coins, in the AMM coin creator vault. ---++// 3. (Graduated coins only.) Sweep AMM-side creator fees into the bonding curve+// creator vault. For non-WSOL quotes this transfers tokens via ATAs and creates+// the destination `pump_creator_vault_ata` on the fly if it doesn't exist yet+// (rent paid by `payer`).+const transferIx = await PUMP_SDK.transferCreatorFeesToPumpV2({+ payer: user,+ mint,+ quoteMint,+ quoteTokenProgram,+});++// 4. Distribute the accumulated USDC creator fees to the shareholders.+const sharingConfigAddress = feeSharingConfigPda(mint);+const sharingConfigAccountInfo = await connection.getAccountInfo(+ sharingConfigAddress,+);+const sharingConfig = PUMP_SDK.decodeSharingConfig(sharingConfigAccountInfo!);++const distributeIx = await PUMP_SDK.distributeCreatorFeesV2({+ mint,+ sharingConfig,+ sharingConfigAddress,+ quoteMint,+ payer: user,+ shouldInitializeAta: true, // create missing shareholder USDC ATAs as needed+ quoteTokenProgram,+});+```++## Rust SDK++Sweep AMM-side creator fees into the bonding curve vault, then distribute them to the shareholders. `quote_mint` can be wrapped SOL or USDC, pass the matching token program as `quote_token_program`.++```rust+use pump_rust_client::accounts::decode_sharing_config;+use pump_rust_client::accounts::pump_amm::decode_pool;+use pump_rust_client::constants::NATIVE_MINT;+use pump_rust_client::{constants, pda, PumpSdk};+use solana_sdk::compute_budget::ComputeBudgetInstruction;+use solana_sdk::pubkey::Pubkey;++let sdk = PumpSdk::new();++// For SOL-paired coins:+let quote_mint = NATIVE_MINT;+let quote_token_program = constants::SPL_TOKEN_PROGRAM_ID;+// For USDC-paired coins, set `quote_mint` to the USDC mint instead+// (token program remains `SPL_TOKEN_PROGRAM_ID`).++let pool_creator = pda::pump::pool_authority(&mint).0;+let pool_address = pda::pump_amm::pool(0, &pool_creator, &mint, "e_mint).0;+let pool = decode_pool(&rpc.get_account(&pool_address).await?.data)?;++// 1. (Graduated coins only.) Sweep AMM-side creator fees into the bonding+// curve creator vault.+let transfer_ix = sdk.transfer_creator_fees_to_pump_v2_instruction(+ payer,+ pool.coin_creator,+ quote_mint,+ quote_token_program,+);++// 2. Distribute the bonding curve creator vault to the shareholders.+let sharing_config = decode_sharing_config(+ &rpc.get_account(&pda::pump::sharing_config(&mint).0).await?.data,+)?;+let shareholders: Vec<Pubkey> = sharing_config+ .shareholders+ .iter()+ .map(|s| s.address)+ .collect();++let bc = client.fetch_bonding_curve(&mint).await?;++let mut ixs = vec![+ ComputeBudgetInstruction::set_compute_unit_limit(400_000),+ transfer_ix,+];+ixs.extend(sdk.distribute_creator_fees_v2_instructions(+ payer,+ mint,+ bc.creator,+ quote_mint,+ quote_token_program,+ false,+ true,+ &shareholders,+));+```diff --git a/docs/pumpfun-program/docs/instructions/SELL.md b/docs/pumpfun-program/docs/instructions/SELL.mdnew file mode 100644index 000000000..d32837a0b--- /dev/null+++ b/docs/pumpfun-program/docs/instructions/SELL.md@@ -0,0 +1,171 @@+# Sell V2++The `sell_v2` instruction sells base tokens into a bonding curve using the curve's quote mint. Like `buy_v2`, it uses a single unified account interface for both SOL-paired and non-SOL-paired coins.++## Accounts+++| # | Account | Seeds / derivation | `init_if_needed` / SOL cost |+| --- | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |+| 1 | `global` | Pump PDA: seeds `[b"global"]`. | - |+| 2 | `base_mint` | Base token mint for the coin being sold. | - |+| 3 | `quote_mint` | Quote mint for the coin. For SOL-paired coins, pass wrapped SOL: `So11111111111111111111111111111111111111112`. | - |+| 4 | `base_token_program` | Token program for `base_mint`. For `create_v2` coins this is Token-2022: `TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb`. | - |+| 5 | `quote_token_program` | Token program for `quote_mint`. This is not necessarily the same as `base_token_program`. | - |+| 6 | `associated_token_program` | Associated Token Program: `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL`. | - |+| 7 | `fee_recipient` | Fee recipient selected from the global config. | - |+| 8 | `associated_quote_fee_recipient` | Associated token account for `quote_mint`, owned by `fee_recipient`, using `quote_token_program`. | ATA rent if missing |+| 9 | `buyback_fee_recipient` | Buyback fee recipient checked against the global config. | - |+| 10 | `associated_quote_buyback_fee_recipient` | Associated token account for `quote_mint`, owned by `buyback_fee_recipient`, using `quote_token_program`. | - |+| 11 | `bonding_curve` | Pump PDA: seeds `[b"bonding-curve", base_mint]`. For SOL-paired coins, `bonding_curve.quote_mint` is `Pubkey::default()` and `quote_mint` should be wrapped SOL. | Rent top-up to make the account data length 115 bytes if it is smaller |+| 12 | `associated_base_bonding_curve` | Associated token account for `base_mint`, owned by `bonding_curve`, using `base_token_program`. | - |+| 13 | `associated_quote_bonding_curve` | Associated token account for `quote_mint`, owned by `bonding_curve`, using `quote_token_program`. | - |+| 14 | `user` | Transaction signer and seller. | - |+| 15 | `associated_base_user` | User's associated token account for `base_mint`, using `base_token_program`. | - |+| 16 | `associated_quote_user` | User's associated token account for `quote_mint`, using `quote_token_program`. For SOL-paired coins, this is seed constrained but native SOL is used for the transfer. | - |+| 17 | `creator_vault` | Pump PDA: seeds `[b"creator-vault", bonding_curve.creator]`. | Rent-exempt top-up if needed |+| 18 | `associated_creator_vault` | Associated token account for `quote_mint`, owned by `creator_vault`, using `quote_token_program`. | ATA rent if missing |+| 19 | `sharing_config` | Pump Fees PDA: seeds `[b"sharing-config", base_mint]`. | - |+| 20 | `user_volume_accumulator` | Pump PDA: seeds `[b"user_volume_accumulator", user]`. Initialized if needed, paid by `user`. | Rent for 137-byte account if missing: 0.0018444 SOL |+| 21 | `associated_user_volume_accumulator` | Associated token account for `quote_mint`, owned by `user_volume_accumulator`, using `quote_token_program`. | ATA rent if missing |+| 22 | `fee_config` | Pump Fees PDA: seeds `[b"fee_config", pump_program_id]`. | - |+| 23 | `fee_program` | Pump Fees Program. | - |+| 24 | `system_program` | System Program: `11111111111111111111111111111111`. | - |+| 25 | `event_authority` | Pump PDA: seeds `[b"__event_authority"]`. | - |+| 26 | `program` | Pump program account. | - |+++## Instruction Data++The `sell_v2` instruction takes the following instruction data arguments.+++| # | Argument | Type | Description / validation | Optional? |+| --- | ---------------- | ----- | ----------------------------------------------------------------------------------------------------------------------------- | --------- |+| 1 | `amount` | `u64` | Amount of base tokens to sell, in base token units. Must be greater than `0` and cannot exceed the user's base token balance. | No |+| 2 | `min_sol_output` | `u64` | Minimum quote amount the seller is willing to receive after protocol and creator fees. | No |+++## Fee Recipients++All `sell_v2` calls need a `feeRecipient` and a `buybackFeeRecipient`.++- For non-mayhem coins, choose one of the 8 normal fee recipients as `feeRecipient`.+- For mayhem mode coins, choose one of the 8 reserved fee recipients as `feeRecipient`.+- For all coins, choose one of the 8 buyback fee recipients as `buybackFeeRecipient`.++See [Fee Recipients](../FEE_RECIPIENTS.md) for the full address lists.++## TS SDK++### Sell SOL-Paired Coin++For SOL-paired coins, use wrapped SOL as the `quoteMint`.++```ts+import { PUMP_SDK } from "@pump-fun/pump-sdk";++const amount = new BN(100_000 * 10 ** 6);+const quoteAmount = new BN(0);+const quoteMint = NATIVE_MINT;+const quoteTokenProgram = TOKEN_PROGRAM_ID;++const sellInstruction = await PUMP_SDK.getSellV2InstructionRaw({+ user,+ mint,+ creator,+ amount,+ quoteAmount,+ tokenProgram: TOKEN_2022_PROGRAM_ID,+ quoteMint,+ quoteTokenProgram,+ feeRecipient,+ buybackFeeRecipient,+});+```++### Sell Legacy SOL-Paired Coin++For legacy coins where the base mint uses the legacy SPL Token Program, pass `TOKEN_PROGRAM_ID` as both the base `tokenProgram` and `quoteTokenProgram`.++```ts+import { PUMP_SDK } from "@pump-fun/pump-sdk";++const amount = new BN(100_000 * 10 ** 6);+const quoteAmount = new BN(0);+const quoteMint = NATIVE_MINT;+const quoteTokenProgram = TOKEN_PROGRAM_ID;++const sellInstruction = await PUMP_SDK.getSellV2InstructionRaw({+ user,+ mint,+ creator,+ amount,+ quoteAmount,+ tokenProgram: TOKEN_PROGRAM_ID,+ quoteMint,+ quoteTokenProgram,+ feeRecipient,+ buybackFeeRecipient,+});+```++### Sell USDC-Paired Coin++For USDC-paired coins, pass the USDC mint as `quoteMint` and the quote mint's token program as `quoteTokenProgram`.++```ts+import { PUMP_SDK } from "@pump-fun/pump-sdk";++const amount = new BN(100_000 * 10 ** 6);+const quoteAmount = new BN(0);+const quoteMint = new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");+const quoteTokenProgram = TOKEN_PROGRAM_ID;++const sellInstruction = await PUMP_SDK.getSellV2InstructionRaw({+ user,+ mint,+ creator,+ amount,+ quoteAmount,+ tokenProgram: TOKEN_2022_PROGRAM_ID,+ quoteMint,+ quoteTokenProgram,+ feeRecipient,+ buybackFeeRecipient,+});+```++## Rust SDK++The Rust client exposes `sell_v2_instructions`, which prepends the user's+base/quote ATA creates and emits the `sell_v2` instruction. The fetched+`BondingCurve` carries the coin's `quote_mint`, so the same builder works+for SOL-paired and non-native quote coins; only `quote_token_program`+needs to match the quote mint's token program.++```rust+use pump_rust_client::{constants, PumpSdk};++let sdk = PumpSdk::new();+let global = client.fetch_global().await.expect("fetch_global");+let bonding_curve = client+ .fetch_bonding_curve(&mint)+ .await+ .expect("fetch_bonding_curve");++let mut ixs = vec![ComputeBudgetInstruction::set_compute_unit_limit(400_000)];+ixs.extend(+ sdk.sell_v2_instructions(+ &global,+ &bonding_curve,+ mint,+ constants::SPL_TOKEN_PROGRAM_ID, // quote_token_program+ user.pubkey(),+ 300_000_000, // amount (base token units, 6 decimals)+ 1, // min_sol_output (slippage floor, quote base units)+ )+ .expect("sell_v2_instructions"),+);+```+diff --git a/docs/pumpfun-program/idl/pump.json b/docs/pumpfun-program/idl/pump.jsonnew file mode 100644index 000000000..062e66f03--- /dev/null+++ b/docs/pumpfun-program/idl/pump.json@@ -0,0 +1,6813 @@+{+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P",+ "metadata": {+ "name": "pump",+ "version": "0.1.0",+ "spec": "0.1.0",+ "description": "Created with Anchor"+ },+ "instructions": [+ {+ "name": "add_quote_mint",+ "discriminator": [111, 121, 21, 56, 40, 24, 94, 209],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "quote_mint",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "admin_set_creator",+ "docs": [+ "Allows Global::admin_set_creator_authority to override the bonding curve creator"+ ],+ "discriminator": [69, 25, 171, 142, 57, 239, 13, 4],+ "accounts": [+ {+ "name": "admin_set_creator_authority",+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "mint"+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "creator",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "admin_set_idl_authority",+ "discriminator": [8, 217, 96, 231, 144, 104, 192, 5],+ "accounts": [+ {+ "name": "authority",+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "idl_account",+ "writable": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "program_signer",+ "pda": {+ "seeds": []+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "idl_authority",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "admin_update_token_incentives",+ "discriminator": [209, 11, 115, 87, 213, 23, 124, 204],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "global_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ }+ ]+ }+ },+ {+ "name": "mint"+ },+ {+ "name": "global_incentive_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "global_volume_accumulator"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_program"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "start_time",+ "type": "i64"+ },+ {+ "name": "end_time",+ "type": "i64"+ },+ {+ "name": "seconds_in_a_day",+ "type": "i64"+ },+ {+ "name": "day_number",+ "type": "u64"+ },+ {+ "name": "pump_token_supply_per_day",+ "type": "u64"+ }+ ]+ },+ {+ "name": "buy",+ "docs": ["Buys tokens from a bonding curve."],+ "discriminator": [102, 6, 61, 18, 1, 218, 235, 234],+ "accounts": [+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "fee_recipient",+ "writable": true+ },+ {+ "name": "mint"+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "associated_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "associated_user",+ "writable": true+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_program"+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "global_volume_accumulator",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ }+ ]+ }+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "fee_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [102, 101, 101, 95, 99, 111, 110, 102, 105, 103]+ },+ {+ "kind": "const",+ "value": [+ 1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23,+ 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43,+ 182, 253, 109, 24, 176+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }+ }+ },+ {+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ }+ ],+ "args": [+ {+ "name": "amount",+ "type": "u64"+ },+ {+ "name": "max_sol_cost",+ "type": "u64"+ },+ {+ "name": "track_volume",+ "type": {+ "defined": {+ "name": "OptionBool"+ }+ }+ }+ ]+ },+ {+ "name": "buy_exact_quote_in_v2",+ "discriminator": [194, 171, 28, 70, 104, 77, 91, 47],+ "accounts": [+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "base_mint"+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "base_token_program"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "fee_recipient",+ "writable": true+ },+ {+ "name": "associated_quote_fee_recipient",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "fee_recipient"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "buyback_fee_recipient",+ "writable": true+ },+ {+ "name": "associated_quote_buyback_fee_recipient",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "buyback_fee_recipient"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ]+ }+ },+ {+ "name": "associated_base_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "base_token_program"+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "associated_quote_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "associated_base_user",+ "writable": true+ },+ {+ "name": "associated_quote_user",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"+ }+ ]+ }+ },+ {+ "name": "associated_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "creator_vault"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "sharing_config",+ "docs": [+ "seeds; the account is intentionally not deserialized here because it may be uninitialized",+ "for mints that have not created a fee sharing config. Handlers must check",+ "`data_is_empty()` / owner before reading."+ ],+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }+ }+ },+ {+ "name": "global_volume_accumulator",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ }+ ]+ }+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "associated_user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user_volume_accumulator"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "fee_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [102, 101, 101, 95, 99, 111, 110, 102, 105, 103]+ },+ {+ "kind": "const",+ "value": [+ 1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23,+ 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43,+ 182, 253, 109, 24, 176+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }+ }+ },+ {+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ }+ ],+ "args": [+ {+ "name": "spendable_quote_in",+ "type": "u64"+ },+ {+ "name": "min_tokens_out",+ "type": "u64"+ }+ ]+ },+ {+ "name": "buy_exact_sol_in",+ "docs": [+ "Given a budget of spendable SOL, buy at least min_tokens_out tokens.",+ "Fees are deducted from spendable_sol_in.",+ "",+ "# Quote formulas",+ "Where:",+ "- total_fee_bps = protocol_fee_bps + creator_fee_bps (creator_fee_bps is 0 if no creator)",+ "- floor(a/b) = a / b (integer division)",+ "- ceil(a/b) = (a + b - 1) / b",+ "",+ "SOL → tokens quote",+ "To calculate tokens_out for a given spendable_sol_in:",+ "1. net_sol = floor(spendable_sol_in * 10_000 / (10_000 + total_fee_bps))",+ "2. fees = ceil(net_sol * protocol_fee_bps / 10_000) + ceil(net_sol * creator_fee_bps / 10_000) (creator_fee_bps is 0 if no creator)",+ "3. if net_sol + fees > spendable_sol_in: net_sol = net_sol - (net_sol + fees - spendable_sol_in)",+ "4. tokens_out = floor((net_sol - 1) * virtual_token_reserves / (virtual_sol_reserves + net_sol - 1))",+ "",+ "Reverse quote (tokens → SOL)",+ "To calculate spendable_sol_in for a desired number of tokens:",+ "1. net_sol = ceil(tokens * virtual_sol_reserves / (virtual_token_reserves - tokens)) + 1",+ "2. spendable_sol_in = ceil(net_sol * (10_000 + total_fee_bps) / 10_000)",+ "",+ "Rent",+ "Separately make sure the instruction's payer has enough SOL to cover rent for:",+ "- creator_vault: rent.minimum_balance(0)",+ "- user_volume_accumulator: rent.minimum_balance(UserVolumeAccumulator::LEN)"+ ],+ "discriminator": [56, 252, 116, 8, 158, 223, 205, 95],+ "accounts": [+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "fee_recipient",+ "writable": true+ },+ {+ "name": "mint"+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "associated_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "associated_user",+ "writable": true+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_program"+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "global_volume_accumulator",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ }+ ]+ }+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "fee_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [102, 101, 101, 95, 99, 111, 110, 102, 105, 103]+ },+ {+ "kind": "const",+ "value": [+ 1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23,+ 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43,+ 182, 253, 109, 24, 176+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }+ }+ },+ {+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ }+ ],+ "args": [+ {+ "name": "spendable_sol_in",+ "type": "u64"+ },+ {+ "name": "min_tokens_out",+ "type": "u64"+ },+ {+ "name": "track_volume",+ "type": {+ "defined": {+ "name": "OptionBool"+ }+ }+ }+ ]+ },+ {+ "name": "buy_v2",+ "discriminator": [184, 23, 238, 97, 103, 197, 211, 61],+ "accounts": [+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "base_mint"+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "base_token_program"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "fee_recipient",+ "writable": true+ },+ {+ "name": "associated_quote_fee_recipient",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "fee_recipient"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "buyback_fee_recipient",+ "writable": true+ },+ {+ "name": "associated_quote_buyback_fee_recipient",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "buyback_fee_recipient"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ]+ }+ },+ {+ "name": "associated_base_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "base_token_program"+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "associated_quote_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "associated_base_user",+ "writable": true+ },+ {+ "name": "associated_quote_user",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"+ }+ ]+ }+ },+ {+ "name": "associated_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "creator_vault"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "sharing_config",+ "docs": [+ "seeds; the account is intentionally not deserialized here because it may be uninitialized",+ "for mints that have not created a fee sharing config. Handlers must check",+ "`data_is_empty()` / owner before reading."+ ],+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }+ }+ },+ {+ "name": "global_volume_accumulator",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ }+ ]+ }+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "associated_user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user_volume_accumulator"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "fee_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [102, 101, 101, 95, 99, 111, 110, 102, 105, 103]+ },+ {+ "kind": "const",+ "value": [+ 1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23,+ 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43,+ 182, 253, 109, 24, 176+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }+ }+ },+ {+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ }+ ],+ "args": [+ {+ "name": "amount",+ "type": "u64"+ },+ {+ "name": "max_sol_cost",+ "type": "u64"+ }+ ]+ },+ {+ "name": "claim_cashback",+ "discriminator": [37, 58, 35, 126, 190, 53, 228, 197],+ "accounts": [+ {+ "name": "user",+ "writable": true+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ }+ ],+ "args": []+ },+ {+ "name": "claim_cashback_v2",+ "discriminator": [122, 243, 204, 65, 94, 116, 29, 55],+ "accounts": [+ {+ "name": "user",+ "writable": true+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "associated_user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user_volume_accumulator"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "associated_quote_user",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ }+ ],+ "args": []+ },+ {+ "name": "claim_token_incentives",+ "discriminator": [16, 4, 71, 28, 204, 1, 40, 27],+ "accounts": [+ {+ "name": "user"+ },+ {+ "name": "user_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "global_volume_accumulator",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ }+ ]+ }+ },+ {+ "name": "global_incentive_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "global_volume_accumulator"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "mint",+ "relations": ["global_volume_accumulator"]+ },+ {+ "name": "token_program"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "payer",+ "writable": true,+ "signer": true+ }+ ],+ "args": []+ },+ {+ "name": "close_user_volume_accumulator",+ "discriminator": [249, 69, 164, 218, 150, 103, 84, 138],+ "accounts": [+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "collect_creator_fee",+ "docs": [+ "Collects creator_fee from creator_vault to the coin creator account"+ ],+ "discriminator": [20, 22, 86, 123, 198, 28, 219, 132],+ "accounts": [+ {+ "name": "creator",+ "writable": true+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "creator"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "collect_creator_fee_v2",+ "docs": [+ "Collects creator_fee from creator_vault to the coin creator account"+ ],+ "discriminator": [207, 17, 138, 242, 4, 34, 19, 56],+ "accounts": [+ {+ "name": "creator",+ "writable": true+ },+ {+ "name": "creator_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "creator"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "creator"+ }+ ]+ }+ },+ {+ "name": "creator_vault_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "creator_vault"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "create",+ "docs": ["Creates a new coin and bonding curve."],+ "discriminator": [24, 30, 200, 40, 5, 28, 7, 119],+ "accounts": [+ {+ "name": "mint",+ "writable": true,+ "signer": true+ },+ {+ "name": "mint_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 109, 105, 110, 116, 45, 97, 117, 116, 104, 111, 114, 105, 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "associated_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "const",+ "value": [+ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206,+ 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140,+ 245, 133, 126, 255, 0, 169+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "mpl_token_metadata",+ "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"+ },+ {+ "name": "metadata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [109, 101, 116, 97, 100, 97, 116, 97]+ },+ {+ "kind": "const",+ "value": [+ 11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107,+ 4, 195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182,+ 209, 188, 3, 248, 41, 70+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "mpl_token_metadata"+ }+ }+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "rent",+ "address": "SysvarRent111111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "name",+ "type": "string"+ },+ {+ "name": "symbol",+ "type": "string"+ },+ {+ "name": "uri",+ "type": "string"+ },+ {+ "name": "creator",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "create_v2",+ "docs": ["Creates a new spl-22 coin and bonding curve."],+ "discriminator": [214, 144, 76, 236, 95, 139, 49, 180],+ "accounts": [+ {+ "name": "mint",+ "writable": true,+ "signer": true+ },+ {+ "name": "mint_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 109, 105, 110, 116, 45, 97, 117, 116, 104, 111, 114, 105, 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "associated_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_program",+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "mayhem_program_id",+ "writable": true,+ "address": "MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e"+ },+ {+ "name": "global_params",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 45, 112, 97, 114, 97, 109, 115+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 5, 42, 229, 215, 167, 218, 167, 36, 166, 234, 176, 167, 41, 84,+ 145, 133, 90, 212, 160, 103, 22, 96, 103, 76, 78, 3, 69, 89,+ 128, 61, 101, 163+ ]+ }+ }+ },+ {+ "name": "sol_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [115, 111, 108, 45, 118, 97, 117, 108, 116]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 5, 42, 229, 215, 167, 218, 167, 36, 166, 234, 176, 167, 41, 84,+ 145, 133, 90, 212, 160, 103, 22, 96, 103, 76, 78, 3, 69, 89,+ 128, 61, 101, 163+ ]+ }+ }+ },+ {+ "name": "mayhem_state",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 109, 97, 121, 104, 101, 109, 45, 115, 116, 97, 116, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 5, 42, 229, 215, 167, 218, 167, 36, 166, 234, 176, 167, 41, 84,+ 145, 133, 90, 212, 160, 103, 22, 96, 103, 76, 78, 3, 69, 89,+ 128, 61, 101, 163+ ]+ }+ }+ },+ {+ "name": "mayhem_token_vault",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "name",+ "type": "string"+ },+ {+ "name": "symbol",+ "type": "string"+ },+ {+ "name": "uri",+ "type": "string"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "is_mayhem_mode",+ "type": "bool"+ },+ {+ "name": "is_cashback_enabled",+ "type": {+ "defined": {+ "name": "OptionBool"+ }+ }+ }+ ]+ },+ {+ "name": "distribute_creator_fees",+ "docs": [+ "Distributes creator fees to shareholders based on their share percentages",+ "The creator vault needs to have at least the minimum distributable amount to distribute fees",+ "This can be checked with the get_minimum_distributable_fee instruction"+ ],+ "discriminator": [165, 114, 103, 0, 121, 206, 247, 81],+ "accounts": [+ {+ "name": "mint",+ "relations": ["sharing_config"]+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "sharing_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }+ }+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ }+ ],+ "args": [],+ "returns": {+ "defined": {+ "name": "DistributeCreatorFeesEvent"+ }+ }+ },+ {+ "name": "distribute_creator_fees_v2",+ "discriminator": [255, 203, 19, 79, 244, 68, 8, 159],+ "accounts": [+ {+ "name": "payer",+ "writable": true,+ "signer": true+ },+ {+ "name": "mint",+ "relations": ["sharing_config"]+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "sharing_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }+ }+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "creator_vault_quote_token_account",+ "docs": [+ "Deserialized manually in the handler for non-legacy quote mints."+ ],+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "creator_vault"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ }+ ],+ "args": [+ {+ "name": "initialize_ata",+ "type": "bool"+ }+ ],+ "returns": {+ "defined": {+ "name": "DistributeCreatorFeesEvent"+ }+ }+ },+ {+ "name": "extend_account",+ "docs": ["Extends the size of program-owned accounts"],+ "discriminator": [234, 102, 194, 203, 150, 72, 62, 229],+ "accounts": [+ {+ "name": "account",+ "writable": true+ },+ {+ "name": "user",+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "get_minimum_distributable_fee",+ "docs": [+ "Permissionless instruction to check the minimum required fees for distribution",+ "Returns the minimum required balance from the creator_vault and whether distribution can proceed"+ ],+ "discriminator": [117, 225, 127, 202, 134, 95, 68, 35],+ "accounts": [+ {+ "name": "mint",+ "relations": ["sharing_config"]+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "sharing_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }+ }+ },+ {+ "name": "creator_vault",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"+ }+ ]+ }+ }+ ],+ "args": [],+ "returns": {+ "defined": {+ "name": "MinimumDistributableFeeEvent"+ }+ }+ },+ {+ "name": "init_user_volume_accumulator",+ "discriminator": [94, 6, 202, 115, 255, 96, 232, 183],+ "accounts": [+ {+ "name": "payer",+ "writable": true,+ "signer": true+ },+ {+ "name": "user"+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "initialize",+ "docs": ["Creates the global state."],+ "discriminator": [175, 175, 109, 31, 13, 152, 155, 237],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ }+ ],+ "args": []+ },+ {+ "name": "migrate",+ "docs": [+ "Migrates liquidity to pump_amm if the bonding curve is complete"+ ],+ "discriminator": [155, 234, 231, 146, 236, 158, 162, 30],+ "accounts": [+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "withdraw_authority",+ "writable": true,+ "relations": ["global"]+ },+ {+ "name": "mint"+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "associated_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "mint"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "user",+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "pump_amm",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "pool",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [112, 111, 111, 108]+ },+ {+ "kind": "const",+ "value": [0, 0]+ },+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "mint"+ },+ {+ "kind": "account",+ "path": "wsol_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "pool_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 112, 111, 111, 108, 45, 97, 117, 116, 104, 111, 114, 105, 116,+ 121+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "pool_authority_mint_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "mint"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "pool_authority_wsol_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "wsol_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "amm_global_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 95, 99, 111, 110, 102, 105, 103+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "wsol_mint",+ "address": "So11111111111111111111111111111111111111112"+ },+ {+ "name": "lp_mint",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 112, 111, 111, 108, 95, 108, 112, 95, 109, 105, 110, 116+ ]+ },+ {+ "kind": "account",+ "path": "pool"+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "user_pool_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "token_2022_program"+ },+ {+ "kind": "account",+ "path": "lp_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "pool_base_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool"+ },+ {+ "kind": "account",+ "path": "mint"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "pool_quote_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "wsol_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "token_2022_program",+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "pump_amm_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "rent",+ "address": "SysvarRent111111111111111111111111111111111"+ }+ ],+ "args": []+ },+ {+ "name": "migrate_bonding_curve_creator",+ "discriminator": [87, 124, 52, 191, 52, 38, 214, 232],+ "accounts": [+ {+ "name": "mint",+ "relations": ["sharing_config"]+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "sharing_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "migrate_v2",+ "docs": [+ "Migrates liquidity to pump_amm if the bonding curve is complete"+ ],+ "discriminator": [187, 203, 18, 31, 206, 237, 254, 41],+ "accounts": [+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "withdraw_authority",+ "writable": true,+ "relations": ["global"]+ },+ {+ "name": "base_mint"+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ]+ }+ },+ {+ "name": "associated_base_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "base_token_program"+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "associated_quote_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "user",+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "pump_amm",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "pool",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [112, 111, 111, 108]+ },+ {+ "kind": "const",+ "value": [0, 0]+ },+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "base_mint"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "pool_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 112, 111, 111, 108, 45, 97, 117, 116, 104, 111, 114, 105, 116,+ 121+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ]+ }+ },+ {+ "name": "pool_authority_mint_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "base_token_program"+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "pool_authority_quote_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "amm_global_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 95, 99, 111, 110, 102, 105, 103+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "lp_mint",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 112, 111, 111, 108, 95, 108, 112, 95, 109, 105, 110, 116+ ]+ },+ {+ "kind": "account",+ "path": "pool"+ }+ ],+ "program": {+ "kind": "account",+ "path": "pump_amm"+ }+ }+ },+ {+ "name": "user_pool_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool_authority"+ },+ {+ "kind": "account",+ "path": "token_2022_program"+ },+ {+ "kind": "account",+ "path": "lp_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "pool_base_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool"+ },+ {+ "kind": "account",+ "path": "base_token_program"+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "pool_quote_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "base_token_program"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "token_2022_program",+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "pump_amm_event_authority"+ },+ {+ "name": "rent",+ "address": "SysvarRent111111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "remove_quote_mint",+ "discriminator": [177, 65, 223, 38, 88, 209, 158, 155],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "quote_mint",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "sell",+ "docs": [+ "Sells tokens into a bonding curve.",+ "For cashback coins, pass as remaining_accounts: [0] user_volume_accumulator,",+ "[1] bonding_curve_v2. If provided and valid, creator_fee goes to user_volume_accumulator.",+ "Otherwise, falls back to transferring creator_fee to creator_vault."+ ],+ "discriminator": [51, 230, 133, 164, 1, 127, 131, 173],+ "accounts": [+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "fee_recipient",+ "writable": true+ },+ {+ "name": "mint"+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "associated_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "associated_user",+ "writable": true+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"+ }+ ]+ }+ },+ {+ "name": "token_program"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "fee_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [102, 101, 101, 95, 99, 111, 110, 102, 105, 103]+ },+ {+ "kind": "const",+ "value": [+ 1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23,+ 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43,+ 182, 253, 109, 24, 176+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }+ }+ },+ {+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ }+ ],+ "args": [+ {+ "name": "amount",+ "type": "u64"+ },+ {+ "name": "min_sol_output",+ "type": "u64"+ }+ ]+ },+ {+ "name": "sell_v2",+ "discriminator": [93, 246, 130, 60, 231, 233, 64, 178],+ "accounts": [+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "base_mint"+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "base_token_program"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "fee_recipient",+ "writable": true+ },+ {+ "name": "associated_quote_fee_recipient",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "fee_recipient"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "buyback_fee_recipient",+ "writable": true+ },+ {+ "name": "associated_quote_buyback_fee_recipient",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "buyback_fee_recipient"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ]+ }+ },+ {+ "name": "associated_base_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "base_token_program"+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "associated_quote_bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "bonding_curve"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "associated_base_user",+ "writable": true+ },+ {+ "name": "associated_quote_user",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116+ ]+ },+ {+ "kind": "account",+ "path": "bonding_curve.creator",+ "account": "BondingCurve"+ }+ ]+ }+ },+ {+ "name": "associated_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "creator_vault"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "sharing_config",+ "docs": [+ "seeds; the account is intentionally not deserialized here because it may be uninitialized",+ "for mints that have not created a fee sharing config. Handlers must check",+ "`data_is_empty()` / owner before reading."+ ],+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12, 53, 255, 169, 5, 90, 142, 86, 141, 168, 247, 188, 7, 86, 21,+ 39, 76, 241, 201, 44, 164, 31, 64, 0, 156, 81, 106, 164, 20,+ 194, 124, 112+ ]+ }+ }+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "associated_user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user_volume_accumulator"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "fee_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [102, 101, 101, 95, 99, 111, 110, 102, 105, 103]+ },+ {+ "kind": "const",+ "value": [+ 1, 86, 224, 246, 147, 102, 90, 207, 68, 219, 21, 104, 191, 23,+ 91, 170, 81, 137, 203, 151, 245, 210, 255, 59, 101, 93, 43,+ 182, 253, 109, 24, 176+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }+ }+ },+ {+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ }+ ],+ "args": [+ {+ "name": "amount",+ "type": "u64"+ },+ {+ "name": "min_sol_output",+ "type": "u64"+ }+ ]+ },+ {+ "name": "set_creator",+ "docs": [+ "Allows Global::set_creator_authority to set the bonding curve creator from Metaplex metadata or input argument"+ ],+ "discriminator": [254, 148, 255, 112, 207, 142, 170, 165],+ "accounts": [+ {+ "name": "set_creator_authority",+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "mint"+ },+ {+ "name": "metadata",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [109, 101, 116, 97, 100, 97, 116, 97]+ },+ {+ "kind": "const",+ "value": [+ 11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107,+ 4, 195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182,+ 209, 188, 3, 248, 41, 70+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107, 4,+ 195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182, 209,+ 188, 3, 248, 41, 70+ ]+ }+ }+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "creator",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "set_mayhem_virtual_params",+ "discriminator": [61, 169, 188, 191, 153, 149, 42, 97],+ "accounts": [+ {+ "name": "sol_vault_authority",+ "writable": true,+ "signer": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [115, 111, 108, 45, 118, 97, 117, 108, 116]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 5, 42, 229, 215, 167, 218, 167, 36, 166, 234, 176, 167, 41, 84,+ 145, 133, 90, 212, 160, 103, 22, 96, 103, 76, 78, 3, 69, 89,+ 128, 61, 101, 163+ ]+ }+ }+ },+ {+ "name": "mayhem_token_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "sol_vault_authority"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,+ 219, 233, 248, 89+ ]+ }+ }+ },+ {+ "name": "mint"+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "token_program",+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "set_metaplex_creator",+ "docs": [+ "Syncs the bonding curve creator with the Metaplex metadata creator if it exists"+ ],+ "discriminator": [138, 96, 174, 217, 48, 85, 197, 246],+ "accounts": [+ {+ "name": "mint"+ },+ {+ "name": "metadata",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [109, 101, 116, 97, 100, 97, 116, 97]+ },+ {+ "kind": "const",+ "value": [+ 11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107,+ 4, 195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182,+ 209, 188, 3, 248, 41, 70+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 11, 112, 101, 177, 227, 209, 124, 69, 56, 157, 82, 127, 107, 4,+ 195, 205, 88, 184, 108, 115, 26, 160, 253, 181, 73, 182, 209,+ 188, 3, 248, 41, 70+ ]+ }+ }+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "set_params",+ "docs": ["Sets the global state parameters."],+ "discriminator": [27, 234, 178, 52, 147, 2, 187, 141],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "initial_virtual_token_reserves",+ "type": "u64"+ },+ {+ "name": "initial_virtual_sol_reserves",+ "type": "u64"+ },+ {+ "name": "initial_real_token_reserves",+ "type": "u64"+ },+ {+ "name": "token_total_supply",+ "type": "u64"+ },+ {+ "name": "fee_basis_points",+ "type": "u64"+ },+ {+ "name": "withdraw_authority",+ "type": "pubkey"+ },+ {+ "name": "enable_migrate",+ "type": "bool"+ },+ {+ "name": "pool_migration_fee",+ "type": "u64"+ },+ {+ "name": "creator_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "set_creator_authority",+ "type": "pubkey"+ },+ {+ "name": "admin_set_creator_authority",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "set_reserved_fee_recipients",+ "discriminator": [111, 172, 162, 232, 114, 89, 213, 142],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "whitelist_pda",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "set_virtual_quote_reserves",+ "discriminator": [101, 135, 191, 104, 9, 88, 20, 96],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "initial_virtual_quote_reserves",+ "type": "u64"+ }+ ]+ },+ {+ "name": "sync_user_volume_accumulator",+ "discriminator": [86, 31, 192, 87, 163, 87, 79, 238],+ "accounts": [+ {+ "name": "user"+ },+ {+ "name": "global_volume_accumulator",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103, 108, 111, 98, 97, 108, 95, 118, 111, 108, 117, 109, 101,+ 95, 97, 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ }+ ]+ }+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97,+ 99, 99, 117, 109, 117, 108, 97, 116, 111, 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "toggle_cashback_enabled",+ "discriminator": [115, 103, 224, 255, 189, 89, 86, 195],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "enabled",+ "type": "bool"+ }+ ]+ },+ {+ "name": "toggle_create_v2",+ "discriminator": [28, 255, 230, 240, 172, 107, 203, 171],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "enabled",+ "type": "bool"+ }+ ]+ },+ {+ "name": "toggle_mayhem_mode",+ "discriminator": [1, 9, 111, 208, 100, 31, 255, 163],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "enabled",+ "type": "bool"+ }+ ]+ },+ {+ "name": "update_buyback_config",+ "discriminator": [251, 224, 171, 146, 160, 26, 113, 233],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "buyback_basis_points",+ "type": {+ "option": "u64"+ }+ }+ ]+ },+ {+ "name": "update_global_authority",+ "discriminator": [227, 181, 74, 196, 208, 21, 97, 213],+ "accounts": [+ {+ "name": "global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [103, 108, 111, 98, 97, 108]+ }+ ]+ }+ },+ {+ "name": "authority",+ "signer": true,+ "relations": ["global"]+ },+ {+ "name": "new_authority"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111,+ 114, 105, 116, 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ }+ ],+ "accounts": [+ {+ "name": "BondingCurve",+ "discriminator": [23, 183, 248, 55, 96, 216, 172, 96]+ },+ {+ "name": "FeeConfig",+ "discriminator": [143, 52, 146, 187, 219, 123, 76, 155]+ },+ {+ "name": "Global",+ "discriminator": [167, 232, 232, 177, 200, 108, 114, 127]+ },+ {+ "name": "GlobalVolumeAccumulator",+ "discriminator": [202, 42, 246, 43, 142, 190, 30, 255]+ },+ {+ "name": "SharingConfig",+ "discriminator": [216, 74, 9, 0, 56, 140, 93, 75]+ },+ {+ "name": "UserVolumeAccumulator",+ "discriminator": [86, 255, 112, 14, 102, 53, 154, 250]+ }+ ],+ "events": [+ {+ "name": "AdminSetCreatorEvent",+ "discriminator": [64, 69, 192, 104, 29, 30, 25, 107]+ },+ {+ "name": "AdminSetIdlAuthorityEvent",+ "discriminator": [245, 59, 70, 34, 75, 185, 109, 92]+ },+ {+ "name": "AdminUpdateTokenIncentivesEvent",+ "discriminator": [147, 250, 108, 120, 247, 29, 67, 222]+ },+ {+ "name": "ClaimCashbackEvent",+ "discriminator": [226, 214, 246, 33, 7, 242, 147, 229]+ },+ {+ "name": "ClaimTokenIncentivesEvent",+ "discriminator": [79, 172, 246, 49, 205, 91, 206, 232]+ },+ {+ "name": "CloseUserVolumeAccumulatorEvent",+ "discriminator": [146, 159, 189, 172, 146, 88, 56, 244]+ },+ {+ "name": "CollectCreatorFeeEvent",+ "discriminator": [122, 2, 127, 1, 14, 191, 12, 175]+ },+ {+ "name": "CompleteEvent",+ "discriminator": [95, 114, 97, 156, 212, 46, 152, 8]+ },+ {+ "name": "CompletePumpAmmMigrationEvent",+ "discriminator": [189, 233, 93, 185, 92, 148, 234, 148]+ },+ {+ "name": "CreateEvent",+ "discriminator": [27, 114, 169, 77, 222, 235, 99, 118]+ },+ {+ "name": "DistributeCreatorFeesEvent",+ "discriminator": [165, 55, 129, 112, 4, 179, 202, 40]+ },+ {+ "name": "ExtendAccountEvent",+ "discriminator": [97, 97, 215, 144, 93, 146, 22, 124]+ },+ {+ "name": "InitUserVolumeAccumulatorEvent",+ "discriminator": [134, 36, 13, 72, 232, 101, 130, 216]+ },+ {+ "name": "MigrateBondingCurveCreatorEvent",+ "discriminator": [155, 167, 104, 220, 213, 108, 243, 3]+ },+ {+ "name": "MinimumDistributableFeeEvent",+ "discriminator": [168, 216, 132, 239, 235, 182, 49, 52]+ },+ {+ "name": "ReservedFeeRecipientsEvent",+ "discriminator": [43, 188, 250, 18, 221, 75, 187, 95]+ },+ {+ "name": "SetCreatorEvent",+ "discriminator": [237, 52, 123, 37, 245, 251, 72, 210]+ },+ {+ "name": "SetMetaplexCreatorEvent",+ "discriminator": [142, 203, 6, 32, 127, 105, 191, 162]+ },+ {+ "name": "SetParamsEvent",+ "discriminator": [223, 195, 159, 246, 62, 48, 143, 131]+ },+ {+ "name": "SyncUserVolumeAccumulatorEvent",+ "discriminator": [197, 122, 167, 124, 116, 81, 91, 255]+ },+ {+ "name": "TradeEvent",+ "discriminator": [189, 219, 127, 211, 78, 230, 97, 238]+ },+ {+ "name": "UpdateGlobalAuthorityEvent",+ "discriminator": [182, 195, 137, 42, 35, 206, 207, 247]+ },+ {+ "name": "UpdateMayhemVirtualParamsEvent",+ "discriminator": [117, 123, 228, 182, 161, 168, 220, 214]+ }+ ],+ "errors": [+ {+ "code": 6000,+ "name": "NotAuthorized",+ "msg": "The given account is not authorized to execute this instruction."+ },+ {+ "code": 6001,+ "name": "AlreadyInitialized",+ "msg": "The program is already initialized."+ },+ {+ "code": 6002,+ "name": "TooMuchSolRequired",+ "msg": "slippage: Too much SOL required to buy the given amount of tokens."+ },+ {+ "code": 6003,+ "name": "TooLittleSolReceived",+ "msg": "slippage: Too little SOL received to sell the given amount of tokens."+ },+ {+ "code": 6004,+ "name": "MintDoesNotMatchBondingCurve",+ "msg": "The mint does not match the bonding curve."+ },+ {+ "code": 6005,+ "name": "BondingCurveComplete",+ "msg": "The bonding curve has completed and liquidity migrated to raydium."+ },+ {+ "code": 6006,+ "name": "BondingCurveNotComplete",+ "msg": "The bonding curve has not completed."+ },+ {+ "code": 6007,+ "name": "NotInitialized",+ "msg": "The program is not initialized."+ },+ {+ "code": 6008,+ "name": "WithdrawTooFrequent",+ "msg": "Withdraw too frequent"+ },+ {+ "code": 6009,+ "name": "NewSizeShouldBeGreaterThanCurrentSize",+ "msg": "new_size should be > current_size"+ },+ {+ "code": 6010,+ "name": "AccountTypeNotSupported",+ "msg": "Account type not supported"+ },+ {+ "code": 6011,+ "name": "InitialRealTokenReservesShouldBeLessThanTokenTotalSupply",+ "msg": "initial_real_token_reserves should be less than token_total_supply"+ },+ {+ "code": 6012,+ "name": "InitialVirtualTokenReservesShouldBeGreaterThanInitialRealTokenReserves",+ "msg": "initial_virtual_token_reserves should be greater than initial_real_token_reserves"+ },+ {+ "code": 6013,+ "name": "FeeBasisPointsGreaterThanMaximum",+ "msg": "fee_basis_points greater than maximum"+ },+ {+ "code": 6014,+ "name": "AllZerosWithdrawAuthority",+ "msg": "Withdraw authority cannot be set to System Program ID"+ },+ {+ "code": 6015,+ "name": "PoolMigrationFeeShouldBeLessThanFinalRealSolReserves",+ "msg": "pool_migration_fee should be less than final_real_sol_reserves"+ },+ {+ "code": 6016,+ "name": "PoolMigrationFeeShouldBeGreaterThanCreatorFeePlusMaxMigrateFees",+ "msg": "pool_migration_fee should be greater than creator_fee + MAX_MIGRATE_FEES"+ },+ {+ "code": 6017,+ "name": "DisabledWithdraw",+ "msg": "Migrate instruction is disabled"+ },+ {+ "code": 6018,+ "name": "DisabledMigrate",+ "msg": "Migrate instruction is disabled"+ },+ {+ "code": 6019,+ "name": "InvalidCreator",+ "msg": "Invalid creator pubkey"+ },+ {+ "code": 6020,+ "name": "BuyZeroAmount",+ "msg": "Buy zero amount"+ },+ {+ "code": 6021,+ "name": "NotEnoughTokensToBuy",+ "msg": "Not enough tokens to buy"+ },+ {+ "code": 6022,+ "name": "SellZeroAmount",+ "msg": "Sell zero amount"+ },+ {+ "code": 6023,+ "name": "NotEnoughTokensToSell",+ "msg": "Not enough tokens to sell"+ },+ {+ "code": 6024,+ "name": "Overflow",+ "msg": "Overflow"+ },+ {+ "code": 6025,+ "name": "Truncation",+ "msg": "Truncation"+ },+ {+ "code": 6026,+ "name": "DivisionByZero",+ "msg": "Division by zero"+ },+ {+ "code": 6027,+ "name": "NotEnoughRemainingAccounts",+ "msg": "Not enough remaining accounts"+ },+ {+ "code": 6028,+ "name": "AllFeeRecipientsShouldBeNonZero",+ "msg": "All fee recipients should be non-zero"+ },+ {+ "code": 6029,+ "name": "UnsortedNotUniqueFeeRecipients",+ "msg": "Unsorted or not unique fee recipients"+ },+ {+ "code": 6030,+ "name": "CreatorShouldNotBeZero",+ "msg": "Creator should not be zero"+ },+ {+ "code": 6031,+ "name": "StartTimeInThePast"+ },+ {+ "code": 6032,+ "name": "EndTimeInThePast"+ },+ {+ "code": 6033,+ "name": "EndTimeBeforeStartTime"+ },+ {+ "code": 6034,+ "name": "TimeRangeTooLarge"+ },+ {+ "code": 6035,+ "name": "EndTimeBeforeCurrentDay"+ },+ {+ "code": 6036,+ "name": "SupplyUpdateForFinishedRange"+ },+ {+ "code": 6037,+ "name": "DayIndexAfterEndIndex"+ },+ {+ "code": 6038,+ "name": "DayInActiveRange"+ },+ {+ "code": 6039,+ "name": "InvalidIncentiveMint"+ },+ {+ "code": 6040,+ "name": "BuyNotEnoughSolToCoverRent",+ "msg": "Buy: Not enough SOL to cover for rent exemption."+ },+ {+ "code": 6041,+ "name": "BuyNotEnoughSolToCoverFees",+ "msg": "Buy: Not enough SOL to cover for fees."+ },+ {+ "code": 6042,+ "name": "BuySlippageBelowMinTokensOut",+ "msg": "Slippage: Would buy less tokens than expected min_tokens_out"+ },+ {+ "code": 6043,+ "name": "NameTooLong"+ },+ {+ "code": 6044,+ "name": "SymbolTooLong"+ },+ {+ "code": 6045,+ "name": "UriTooLong"+ },+ {+ "code": 6046,+ "name": "CreateV2Disabled"+ },+ {+ "code": 6047,+ "name": "CpitializeMayhemFailed"+ },+ {+ "code": 6048,+ "name": "MayhemModeDisabled"+ },+ {+ "code": 6049,+ "name": "CreatorMigratedToSharingConfig",+ "msg": "creator has been migrated to sharing config, use pump_fees::reset_fee_sharing_config instead"+ },+ {+ "code": 6050,+ "name": "UnableToDistributeCreatorVaultMigratedToSharingConfig",+ "msg": "creator_vault has been migrated to sharing config, use pump:distribute_creator_fees instead"+ },+ {+ "code": 6051,+ "name": "SharingConfigNotActive",+ "msg": "Sharing config is not active"+ },+ {+ "code": 6052,+ "name": "UnableToDistributeCreatorFeesToExecutableRecipient",+ "msg": "The recipient account is executable, so it cannot receive lamports, remove it from the team first"+ },+ {+ "code": 6053,+ "name": "BondingCurveAndSharingConfigCreatorMismatch",+ "msg": "Bonding curve creator does not match sharing config"+ },+ {+ "code": 6054,+ "name": "ShareholdersAndRemainingAccountsMismatch",+ "msg": "Remaining accounts do not match shareholders, make sure to pass exactly the same pubkeys in the same order"+ },+ {+ "code": 6055,+ "name": "InvalidShareBps",+ "msg": "Share bps must be greater than 0"+ },+ {+ "code": 6056,+ "name": "CashbackNotEnabled",+ "msg": "Cashback is not enabled"+ },+ {+ "code": 6057,+ "name": "BuybackFeeRecipientNotAuthorized",+ "msg": "Buyback fee recipient not authorized"+ },+ {+ "code": 6058,+ "name": "AllBuybackFeeRecipientsShouldBeNonZero"+ },+ {+ "code": 6059,+ "name": "NotUniqueBuybackFeeRecipients"+ },+ {+ "code": 6060,+ "name": "BuybackBasisPointsOutOfRange",+ "msg": "buyback_basis_points must be <= 10_000"+ },+ {+ "code": 6061,+ "name": "WrongBuybackFeeRecipientsCount",+ "msg": "buyback fee recipients require exactly 8 remaining accounts (or none)"+ },+ {+ "code": 6062,+ "name": "BuybackFeeRecipientMissing"+ },+ {+ "code": 6063,+ "name": "UnsupportedQuoteMint",+ "msg": "Unsupported quote mint"+ },+ {+ "code": 6064,+ "name": "InvalidQuoteTokenProgram",+ "msg": "Create v2: quote token program must be legacy SPL Token"+ },+ {+ "code": 6065,+ "name": "InvalidAssociatedQuoteBondingCurve",+ "msg": "Create v2: associated quote bonding curve address does not match derivation"+ },+ {+ "code": 6066,+ "name": "QuoteMintWhitelistFull",+ "msg": "Quote mint whitelist is full"+ },+ {+ "code": 6067,+ "name": "QuoteMintAlreadyWhitelisted",+ "msg": "Quote mint is already whitelisted"+ },+ {+ "code": 6068,+ "name": "QuoteMintNotWhitelisted",+ "msg": "Quote mint is not in the whitelist"+ },+ {+ "code": 6069,+ "name": "QuoteMintNotEligibleForWhitelist",+ "msg": "Quote mint cannot be added or removed via whitelist (default or native SOL mint)"+ },+ {+ "code": 6070,+ "name": "UnableToDistributeCreatorFeesToUninitializedAccount",+ "msg": "Unable to distribute creator fees to uninitialized account"+ },+ {+ "code": 6071,+ "name": "MayhemModeQuoteMintNotAllowed",+ "msg": "Mayhem mode quote mint not allowed"+ }+ ],+ "types": [+ {+ "name": "AdminSetCreatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin_set_creator_authority",+ "type": "pubkey"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "old_creator",+ "type": "pubkey"+ },+ {+ "name": "new_creator",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "AdminSetIdlAuthorityEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "idl_authority",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "AdminUpdateTokenIncentivesEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "start_time",+ "type": "i64"+ },+ {+ "name": "end_time",+ "type": "i64"+ },+ {+ "name": "day_number",+ "type": "u64"+ },+ {+ "name": "token_supply_per_day",+ "type": "u64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "seconds_in_a_day",+ "type": "i64"+ },+ {+ "name": "timestamp",+ "type": "i64"+ }+ ]+ }+ },+ {+ "name": "BondingCurve",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "virtual_token_reserves",+ "type": "u64"+ },+ {+ "name": "virtual_quote_reserves",+ "type": "u64"+ },+ {+ "name": "real_token_reserves",+ "type": "u64"+ },+ {+ "name": "real_quote_reserves",+ "type": "u64"+ },+ {+ "name": "token_total_supply",+ "type": "u64"+ },+ {+ "name": "complete",+ "type": "bool"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "is_mayhem_mode",+ "type": "bool"+ },+ {+ "name": "is_cashback_coin",+ "type": "bool"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "ClaimCashbackEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "amount",+ "type": "u64"+ },+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "total_claimed",+ "type": "u64"+ },+ {+ "name": "total_cashback_earned",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "ClaimTokenIncentivesEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "amount",+ "type": "u64"+ },+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "total_claimed_tokens",+ "type": "u64"+ },+ {+ "name": "current_sol_volume",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "CloseUserVolumeAccumulatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "total_unclaimed_tokens",+ "type": "u64"+ },+ {+ "name": "total_claimed_tokens",+ "type": "u64"+ },+ {+ "name": "current_sol_volume",+ "type": "u64"+ },+ {+ "name": "last_update_timestamp",+ "type": "i64"+ }+ ]+ }+ },+ {+ "name": "CollectCreatorFeeEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "creator_fee",+ "type": "u64"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "CompleteEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "CompletePumpAmmMigrationEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "mint_amount",+ "type": "u64"+ },+ {+ "name": "sol_amount",+ "type": "u64"+ },+ {+ "name": "pool_migration_fee",+ "type": "u64"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "pool",+ "type": "pubkey"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "ConfigStatus",+ "type": {+ "kind": "enum",+ "variants": [+ {+ "name": "Paused"+ },+ {+ "name": "Active"+ }+ ]+ }+ },+ {+ "name": "CreateEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "name",+ "type": "string"+ },+ {+ "name": "symbol",+ "type": "string"+ },+ {+ "name": "uri",+ "type": "string"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "virtual_token_reserves",+ "type": "u64"+ },+ {+ "name": "virtual_sol_reserves",+ "type": "u64"+ },+ {+ "name": "real_token_reserves",+ "type": "u64"+ },+ {+ "name": "token_total_supply",+ "type": "u64"+ },+ {+ "name": "token_program",+ "type": "pubkey"+ },+ {+ "name": "is_mayhem_mode",+ "type": "bool"+ },+ {+ "name": "is_cashback_enabled",+ "type": "bool"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "virtual_quote_reserves",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "DistributeCreatorFeesEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "sharing_config",+ "type": "pubkey"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ },+ {+ "name": "distributed",+ "type": "u64"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "ExtendAccountEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "account",+ "type": "pubkey"+ },+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "current_size",+ "type": "u64"+ },+ {+ "name": "new_size",+ "type": "u64"+ },+ {+ "name": "timestamp",+ "type": "i64"+ }+ ]+ }+ },+ {+ "name": "FeeConfig",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "bump",+ "type": "u8"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "flat_fees",+ "type": {+ "defined": {+ "name": "Fees"+ }+ }+ },+ {+ "name": "fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "stable_fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ }+ ]+ }+ },+ {+ "name": "FeeTier",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "market_cap_lamports_threshold",+ "type": "u128"+ },+ {+ "name": "fees",+ "type": {+ "defined": {+ "name": "Fees"+ }+ }+ }+ ]+ }+ },+ {+ "name": "Fees",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "lp_fee_bps",+ "type": "u64"+ },+ {+ "name": "protocol_fee_bps",+ "type": "u64"+ },+ {+ "name": "creator_fee_bps",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "Global",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "initialized",+ "docs": ["Unused"],+ "type": "bool"+ },+ {+ "name": "authority",+ "type": "pubkey"+ },+ {+ "name": "fee_recipient",+ "type": "pubkey"+ },+ {+ "name": "initial_virtual_token_reserves",+ "type": "u64"+ },+ {+ "name": "initial_virtual_sol_reserves",+ "type": "u64"+ },+ {+ "name": "initial_real_token_reserves",+ "type": "u64"+ },+ {+ "name": "token_total_supply",+ "type": "u64"+ },+ {+ "name": "fee_basis_points",+ "type": "u64"+ },+ {+ "name": "withdraw_authority",+ "type": "pubkey"+ },+ {+ "name": "enable_migrate",+ "docs": ["Unused"],+ "type": "bool"+ },+ {+ "name": "pool_migration_fee",+ "type": "u64"+ },+ {+ "name": "creator_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "fee_recipients",+ "type": {+ "array": ["pubkey", 7]+ }+ },+ {+ "name": "set_creator_authority",+ "type": "pubkey"+ },+ {+ "name": "admin_set_creator_authority",+ "type": "pubkey"+ },+ {+ "name": "create_v2_enabled",+ "type": "bool"+ },+ {+ "name": "whitelist_pda",+ "type": "pubkey"+ },+ {+ "name": "reserved_fee_recipient",+ "type": "pubkey"+ },+ {+ "name": "mayhem_mode_enabled",+ "type": "bool"+ },+ {+ "name": "reserved_fee_recipients",+ "type": {+ "array": ["pubkey", 7]+ }+ },+ {+ "name": "is_cashback_enabled",+ "type": "bool"+ },+ {+ "name": "buyback_fee_recipients",+ "type": {+ "array": ["pubkey", 8]+ }+ },+ {+ "name": "buyback_basis_points",+ "type": "u64"+ },+ {+ "name": "initial_virtual_quote_reserves",+ "type": "u64"+ },+ {+ "name": "whitelisted_quote_mints",+ "type": {+ "array": ["pubkey", 1]+ }+ }+ ]+ }+ },+ {+ "name": "GlobalVolumeAccumulator",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "start_time",+ "type": "i64"+ },+ {+ "name": "end_time",+ "type": "i64"+ },+ {+ "name": "seconds_in_a_day",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "total_token_supply",+ "type": {+ "array": ["u64", 30]+ }+ },+ {+ "name": "sol_volumes",+ "type": {+ "array": ["u64", 30]+ }+ }+ ]+ }+ },+ {+ "name": "InitUserVolumeAccumulatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "payer",+ "type": "pubkey"+ },+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "timestamp",+ "type": "i64"+ }+ ]+ }+ },+ {+ "name": "MigrateBondingCurveCreatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "sharing_config",+ "type": "pubkey"+ },+ {+ "name": "old_creator",+ "type": "pubkey"+ },+ {+ "name": "new_creator",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "MinimumDistributableFeeEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "minimum_required",+ "type": "u64"+ },+ {+ "name": "distributable_fees",+ "type": "u64"+ },+ {+ "name": "can_distribute",+ "type": "bool"+ }+ ]+ }+ },+ {+ "name": "OptionBool",+ "type": {+ "kind": "struct",+ "fields": ["bool"]+ }+ },+ {+ "name": "ReservedFeeRecipientsEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "reserved_fee_recipient",+ "type": "pubkey"+ },+ {+ "name": "reserved_fee_recipients",+ "type": {+ "array": ["pubkey", 7]+ }+ }+ ]+ }+ },+ {+ "name": "SetCreatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "creator",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "SetMetaplexCreatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "metadata",+ "type": "pubkey"+ },+ {+ "name": "creator",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "SetParamsEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "initial_virtual_token_reserves",+ "type": "u64"+ },+ {+ "name": "initial_virtual_sol_reserves",+ "type": "u64"+ },+ {+ "name": "initial_real_token_reserves",+ "type": "u64"+ },+ {+ "name": "final_real_sol_reserves",+ "type": "u64"+ },+ {+ "name": "token_total_supply",+ "type": "u64"+ },+ {+ "name": "fee_basis_points",+ "type": "u64"+ },+ {+ "name": "withdraw_authority",+ "type": "pubkey"+ },+ {+ "name": "enable_migrate",+ "type": "bool"+ },+ {+ "name": "pool_migration_fee",+ "type": "u64"+ },+ {+ "name": "creator_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "fee_recipients",+ "type": {+ "array": ["pubkey", 8]+ }+ },+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "set_creator_authority",+ "type": "pubkey"+ },+ {+ "name": "admin_set_creator_authority",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "Shareholder",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "address",+ "type": "pubkey"+ },+ {+ "name": "share_bps",+ "type": "u16"+ }+ ]+ }+ },+ {+ "name": "SharingConfig",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "bump",+ "type": "u8"+ },+ {+ "name": "version",+ "type": "u8"+ },+ {+ "name": "status",+ "type": {+ "defined": {+ "name": "ConfigStatus"+ }+ }+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "admin_revoked",+ "type": "bool"+ },+ {+ "name": "shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ }+ ]+ }+ },+ {+ "name": "SyncUserVolumeAccumulatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "total_claimed_tokens_before",+ "type": "u64"+ },+ {+ "name": "total_claimed_tokens_after",+ "type": "u64"+ },+ {+ "name": "timestamp",+ "type": "i64"+ }+ ]+ }+ },+ {+ "name": "TradeEvent",+ "docs": ["ix_name: \"buy\" | \"sell\" | \"buy_exact_sol_in\""],+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "sol_amount",+ "type": "u64"+ },+ {+ "name": "token_amount",+ "type": "u64"+ },+ {+ "name": "is_buy",+ "type": "bool"+ },+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "virtual_sol_reserves",+ "type": "u64"+ },+ {+ "name": "virtual_token_reserves",+ "type": "u64"+ },+ {+ "name": "real_sol_reserves",+ "type": "u64"+ },+ {+ "name": "real_token_reserves",+ "type": "u64"+ },+ {+ "name": "fee_recipient",+ "type": "pubkey"+ },+ {+ "name": "fee_basis_points",+ "type": "u64"+ },+ {+ "name": "fee",+ "type": "u64"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "creator_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "creator_fee",+ "type": "u64"+ },+ {+ "name": "track_volume",+ "type": "bool"+ },+ {+ "name": "total_unclaimed_tokens",+ "type": "u64"+ },+ {+ "name": "total_claimed_tokens",+ "type": "u64"+ },+ {+ "name": "current_sol_volume",+ "type": "u64"+ },+ {+ "name": "last_update_timestamp",+ "type": "i64"+ },+ {+ "name": "ix_name",+ "type": "string"+ },+ {+ "name": "mayhem_mode",+ "type": "bool"+ },+ {+ "name": "cashback_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "cashback",+ "type": "u64"+ },+ {+ "name": "buyback_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "buyback_fee",+ "type": "u64"+ },+ {+ "name": "shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "quote_amount",+ "type": "u64"+ },+ {+ "name": "virtual_quote_reserves",+ "type": "u64"+ },+ {+ "name": "real_quote_reserves",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "UpdateGlobalAuthorityEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "global",+ "type": "pubkey"+ },+ {+ "name": "authority",+ "type": "pubkey"+ },+ {+ "name": "new_authority",+ "type": "pubkey"+ },+ {+ "name": "timestamp",+ "type": "i64"+ }+ ]+ }+ },+ {+ "name": "UpdateMayhemVirtualParamsEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "virtual_token_reserves",+ "type": "u64"+ },+ {+ "name": "virtual_sol_reserves",+ "type": "u64"+ },+ {+ "name": "new_virtual_token_reserves",+ "type": "u64"+ },+ {+ "name": "new_virtual_sol_reserves",+ "type": "u64"+ },+ {+ "name": "real_token_reserves",+ "type": "u64"+ },+ {+ "name": "real_sol_reserves",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "UserVolumeAccumulator",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "needs_claim",+ "type": "bool"+ },+ {+ "name": "total_unclaimed_tokens",+ "type": "u64"+ },+ {+ "name": "total_claimed_tokens",+ "type": "u64"+ },+ {+ "name": "current_sol_volume",+ "type": "u64"+ },+ {+ "name": "last_update_timestamp",+ "type": "i64"+ },+ {+ "name": "has_total_claimed_tokens",+ "type": "bool"+ },+ {+ "name": "cashback_earned",+ "type": "u64"+ },+ {+ "name": "total_cashback_claimed",+ "type": "u64"+ },+ {+ "name": "stable_cashback_earned",+ "type": "u64"+ },+ {+ "name": "total_stable_cashback_claimed",+ "type": "u64"+ }+ ]+ }+ }+ ]+}diff --git a/docs/pumpfun-program/idl/pump_amm.json b/docs/pumpfun-program/idl/pump_amm.jsonnew file mode 100644index 000000000..f73cf11ac--- /dev/null+++ b/docs/pumpfun-program/idl/pump_amm.json@@ -0,0 +1,6648 @@+{+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA",+ "metadata": {+ "name": "pump_amm",+ "version": "0.1.0",+ "spec": "0.1.0",+ "description": "Created with Anchor"+ },+ "instructions": [+ {+ "name": "admin_set_coin_creator",+ "docs": [+ "Overrides the coin creator for a canonical pump pool"+ ],+ "discriminator": [+ 242,+ 40,+ 117,+ 145,+ 73,+ 96,+ 105,+ 104+ ],+ "accounts": [+ {+ "name": "admin_set_coin_creator_authority",+ "signer": true,+ "relations": [+ "global_config"+ ]+ },+ {+ "name": "global_config"+ },+ {+ "name": "pool",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "coin_creator",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "admin_update_token_incentives",+ "discriminator": [+ 209,+ 11,+ 115,+ 87,+ 213,+ 23,+ 124,+ 204+ ],+ "accounts": [+ {+ "name": "admin",+ "writable": true,+ "signer": true,+ "relations": [+ "global_config"+ ]+ },+ {+ "name": "global_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ }+ ]+ }+ },+ {+ "name": "global_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ }+ ]+ }+ },+ {+ "name": "mint"+ },+ {+ "name": "global_incentive_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "global_volume_accumulator"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_program"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "start_time",+ "type": "i64"+ },+ {+ "name": "end_time",+ "type": "i64"+ },+ {+ "name": "seconds_in_a_day",+ "type": "i64"+ },+ {+ "name": "day_number",+ "type": "u64"+ },+ {+ "name": "token_supply_per_day",+ "type": "u64"+ }+ ]+ },+ {+ "name": "buy",+ "docs": [+ "For cashback coins, optionally pass user_volume_accumulator_wsol_ata as remaining_accounts[0].",+ "If provided and valid, the ATA will be initialized if needed."+ ],+ "discriminator": [+ 102,+ 6,+ 61,+ 18,+ 1,+ 218,+ 235,+ 234+ ],+ "accounts": [+ {+ "name": "pool",+ "writable": true+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "global_config"+ },+ {+ "name": "base_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "quote_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "user_base_token_account",+ "writable": true+ },+ {+ "name": "user_quote_token_account",+ "writable": true+ },+ {+ "name": "pool_base_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "pool_quote_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "protocol_fee_recipient"+ },+ {+ "name": "protocol_fee_recipient_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "protocol_fee_recipient"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "base_token_program"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "coin_creator_vault_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "pool.coin_creator",+ "account": "Pool"+ }+ ]+ }+ },+ {+ "name": "global_volume_accumulator",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ }+ ]+ }+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117,+ 115,+ 101,+ 114,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "fee_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }+ }+ },+ {+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ }+ ],+ "args": [+ {+ "name": "base_amount_out",+ "type": "u64"+ },+ {+ "name": "max_quote_amount_in",+ "type": "u64"+ },+ {+ "name": "track_volume",+ "type": {+ "defined": {+ "name": "OptionBool"+ }+ }+ }+ ]+ },+ {+ "name": "buy_exact_quote_in",+ "docs": [+ "Given a budget of spendable_quote_in, buy at least min_base_amount_out",+ "Fees will be deducted from spendable_quote_in",+ "",+ "f(quote) = tokens, where tokens >= min_base_amount_out",+ "",+ "Make sure the payer has enough SOL to cover creation of the following accounts (unless already created):",+ "- protocol_fee_recipient_token_account: rent.minimum_balance(TokenAccount::LEN)",+ "- coin_creator_vault_ata: rent.minimum_balance(TokenAccount::LEN)",+ "- user_volume_accumulator: rent.minimum_balance(UserVolumeAccumulator::LEN)",+ "",+ "For cashback coins, optionally pass user_volume_accumulator_wsol_ata as remaining_accounts[0].",+ "If provided and valid, the ATA will be initialized if needed."+ ],+ "discriminator": [+ 198,+ 46,+ 21,+ 82,+ 180,+ 217,+ 232,+ 112+ ],+ "accounts": [+ {+ "name": "pool",+ "writable": true+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "global_config"+ },+ {+ "name": "base_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "quote_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "user_base_token_account",+ "writable": true+ },+ {+ "name": "user_quote_token_account",+ "writable": true+ },+ {+ "name": "pool_base_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "pool_quote_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "protocol_fee_recipient"+ },+ {+ "name": "protocol_fee_recipient_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "protocol_fee_recipient"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "base_token_program"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "coin_creator_vault_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "pool.coin_creator",+ "account": "Pool"+ }+ ]+ }+ },+ {+ "name": "global_volume_accumulator",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ }+ ]+ }+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117,+ 115,+ 101,+ 114,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "fee_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }+ }+ },+ {+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ }+ ],+ "args": [+ {+ "name": "spendable_quote_in",+ "type": "u64"+ },+ {+ "name": "min_base_amount_out",+ "type": "u64"+ },+ {+ "name": "track_volume",+ "type": {+ "defined": {+ "name": "OptionBool"+ }+ }+ }+ ]+ },+ {+ "name": "claim_cashback",+ "discriminator": [+ 37,+ 58,+ 35,+ 126,+ 190,+ 53,+ 228,+ 197+ ],+ "accounts": [+ {+ "name": "user",+ "writable": true+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117,+ 115,+ 101,+ 114,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "user_volume_accumulator_wsol_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user_volume_accumulator"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "user_wsol_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ }+ ],+ "args": []+ },+ {+ "name": "claim_token_incentives",+ "discriminator": [+ 16,+ 4,+ 71,+ 28,+ 204,+ 1,+ 40,+ 27+ ],+ "accounts": [+ {+ "name": "user"+ },+ {+ "name": "user_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "user"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "global_volume_accumulator",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ }+ ]+ }+ },+ {+ "name": "global_incentive_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "global_volume_accumulator"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117,+ 115,+ 101,+ 114,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "mint",+ "relations": [+ "global_volume_accumulator"+ ]+ },+ {+ "name": "token_program"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "payer",+ "writable": true,+ "signer": true+ }+ ],+ "args": []+ },+ {+ "name": "close_user_volume_accumulator",+ "discriminator": [+ 249,+ 69,+ 164,+ 218,+ 150,+ 103,+ 84,+ 138+ ],+ "accounts": [+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117,+ 115,+ 101,+ 114,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "collect_coin_creator_fee",+ "discriminator": [+ 160,+ 57,+ 89,+ 42,+ 181,+ 139,+ 43,+ 66+ ],+ "accounts": [+ {+ "name": "quote_mint"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "coin_creator"+ },+ {+ "name": "coin_creator_vault_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "coin_creator"+ }+ ]+ }+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "coin_creator_token_account",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "create_config",+ "discriminator": [+ 201,+ 207,+ 243,+ 114,+ 75,+ 111,+ 47,+ 189+ ],+ "accounts": [+ {+ "name": "admin",+ "writable": true,+ "signer": true,+ "address": "8LWu7QM2dGR1G8nKDHthckea57bkCzXyBTAKPJUBDHo8"+ },+ {+ "name": "global_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "lp_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "protocol_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "protocol_fee_recipients",+ "type": {+ "array": [+ "pubkey",+ 8+ ]+ }+ },+ {+ "name": "coin_creator_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "admin_set_coin_creator_authority",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "create_pool",+ "discriminator": [+ 233,+ 146,+ 209,+ 142,+ 207,+ 104,+ 64,+ 188+ ],+ "accounts": [+ {+ "name": "pool",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 112,+ 111,+ 111,+ 108+ ]+ },+ {+ "kind": "arg",+ "path": "index"+ },+ {+ "kind": "account",+ "path": "creator"+ },+ {+ "kind": "account",+ "path": "base_mint"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ]+ }+ },+ {+ "name": "global_config"+ },+ {+ "name": "creator",+ "writable": true,+ "signer": true+ },+ {+ "name": "base_mint"+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "lp_mint",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 112,+ 111,+ 111,+ 108,+ 95,+ 108,+ 112,+ 95,+ 109,+ 105,+ 110,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "pool"+ }+ ]+ }+ },+ {+ "name": "user_base_token_account",+ "writable": true+ },+ {+ "name": "user_quote_token_account",+ "writable": true+ },+ {+ "name": "user_pool_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "creator"+ },+ {+ "kind": "account",+ "path": "token_2022_program"+ },+ {+ "kind": "account",+ "path": "lp_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "pool_base_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool"+ },+ {+ "kind": "account",+ "path": "base_token_program"+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "pool_quote_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pool"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_2022_program",+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"+ },+ {+ "name": "base_token_program"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "index",+ "type": "u16"+ },+ {+ "name": "base_amount_in",+ "type": "u64"+ },+ {+ "name": "quote_amount_in",+ "type": "u64"+ },+ {+ "name": "coin_creator",+ "type": "pubkey"+ },+ {+ "name": "is_mayhem_mode",+ "type": "bool"+ },+ {+ "name": "is_cashback_coin",+ "type": {+ "defined": {+ "name": "OptionBool"+ }+ }+ }+ ]+ },+ {+ "name": "deposit",+ "discriminator": [+ 242,+ 35,+ 198,+ 137,+ 82,+ 225,+ 242,+ 182+ ],+ "accounts": [+ {+ "name": "pool",+ "writable": true+ },+ {+ "name": "global_config"+ },+ {+ "name": "user",+ "signer": true+ },+ {+ "name": "base_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "quote_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "lp_mint",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "user_base_token_account",+ "writable": true+ },+ {+ "name": "user_quote_token_account",+ "writable": true+ },+ {+ "name": "user_pool_token_account",+ "writable": true+ },+ {+ "name": "pool_base_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "pool_quote_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "token_2022_program",+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "lp_token_amount_out",+ "type": "u64"+ },+ {+ "name": "max_base_amount_in",+ "type": "u64"+ },+ {+ "name": "max_quote_amount_in",+ "type": "u64"+ }+ ]+ },+ {+ "name": "disable",+ "discriminator": [+ 185,+ 173,+ 187,+ 90,+ 216,+ 15,+ 238,+ 233+ ],+ "accounts": [+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "global_config"+ ]+ },+ {+ "name": "global_config",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "disable_create_pool",+ "type": "bool"+ },+ {+ "name": "disable_deposit",+ "type": "bool"+ },+ {+ "name": "disable_withdraw",+ "type": "bool"+ },+ {+ "name": "disable_buy",+ "type": "bool"+ },+ {+ "name": "disable_sell",+ "type": "bool"+ }+ ]+ },+ {+ "name": "extend_account",+ "discriminator": [+ 234,+ 102,+ 194,+ 203,+ 150,+ 72,+ 62,+ 229+ ],+ "accounts": [+ {+ "name": "account",+ "writable": true+ },+ {+ "name": "user",+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "init_user_volume_accumulator",+ "discriminator": [+ 94,+ 6,+ 202,+ 115,+ 255,+ 96,+ 232,+ 183+ ],+ "accounts": [+ {+ "name": "payer",+ "writable": true,+ "signer": true+ },+ {+ "name": "user"+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117,+ 115,+ 101,+ 114,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "migrate_pool_coin_creator",+ "docs": [+ "Migrate Pool Coin Creator to Sharing Config"+ ],+ "discriminator": [+ 208,+ 8,+ 159,+ 4,+ 74,+ 175,+ 16,+ 58+ ],+ "accounts": [+ {+ "name": "pool",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 112,+ 111,+ 111,+ 108+ ]+ },+ {+ "kind": "account",+ "path": "pool.index",+ "account": "Pool"+ },+ {+ "kind": "account",+ "path": "pool.creator",+ "account": "Pool"+ },+ {+ "kind": "account",+ "path": "pool.base_mint",+ "account": "Pool"+ },+ {+ "kind": "account",+ "path": "pool.quote_mint",+ "account": "Pool"+ }+ ]+ }+ },+ {+ "name": "sharing_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115,+ 104,+ 97,+ 114,+ 105,+ 110,+ 103,+ 45,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "pool.base_mint",+ "account": "Pool"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 53,+ 255,+ 169,+ 5,+ 90,+ 142,+ 86,+ 141,+ 168,+ 247,+ 188,+ 7,+ 86,+ 21,+ 39,+ 76,+ 241,+ 201,+ 44,+ 164,+ 31,+ 64,+ 0,+ 156,+ 81,+ 106,+ 164,+ 20,+ 194,+ 124,+ 112+ ]+ }+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "sell",+ "discriminator": [+ 51,+ 230,+ 133,+ 164,+ 1,+ 127,+ 131,+ 173+ ],+ "accounts": [+ {+ "name": "pool",+ "writable": true+ },+ {+ "name": "user",+ "writable": true,+ "signer": true+ },+ {+ "name": "global_config"+ },+ {+ "name": "base_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "quote_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "user_base_token_account",+ "writable": true+ },+ {+ "name": "user_quote_token_account",+ "writable": true+ },+ {+ "name": "pool_base_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "pool_quote_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "protocol_fee_recipient"+ },+ {+ "name": "protocol_fee_recipient_token_account",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "protocol_fee_recipient"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "base_token_program"+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "coin_creator_vault_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "pool.coin_creator",+ "account": "Pool"+ }+ ]+ }+ },+ {+ "name": "fee_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ ],+ "program": {+ "kind": "account",+ "path": "fee_program"+ }+ }+ },+ {+ "name": "fee_program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ }+ ],+ "args": [+ {+ "name": "base_amount_in",+ "type": "u64"+ },+ {+ "name": "min_quote_amount_out",+ "type": "u64"+ }+ ]+ },+ {+ "name": "set_coin_creator",+ "docs": [+ "Sets Pool::coin_creator from Metaplex metadata creator or BondingCurve::creator"+ ],+ "discriminator": [+ 210,+ 149,+ 128,+ 45,+ 188,+ 58,+ 78,+ 175+ ],+ "accounts": [+ {+ "name": "pool",+ "writable": true+ },+ {+ "name": "metadata",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 109,+ 101,+ 116,+ 97,+ 100,+ 97,+ 116,+ 97+ ]+ },+ {+ "kind": "const",+ "value": [+ 11,+ 112,+ 101,+ 177,+ 227,+ 209,+ 124,+ 69,+ 56,+ 157,+ 82,+ 127,+ 107,+ 4,+ 195,+ 205,+ 88,+ 184,+ 108,+ 115,+ 26,+ 160,+ 253,+ 181,+ 73,+ 182,+ 209,+ 188,+ 3,+ 248,+ 41,+ 70+ ]+ },+ {+ "kind": "account",+ "path": "pool.base_mint",+ "account": "Pool"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 11,+ 112,+ 101,+ 177,+ 227,+ 209,+ 124,+ 69,+ 56,+ 157,+ 82,+ 127,+ 107,+ 4,+ 195,+ 205,+ 88,+ 184,+ 108,+ 115,+ 26,+ 160,+ 253,+ 181,+ 73,+ 182,+ 209,+ 188,+ 3,+ 248,+ 41,+ 70+ ]+ }+ }+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98,+ 111,+ 110,+ 100,+ 105,+ 110,+ 103,+ 45,+ 99,+ 117,+ 114,+ 118,+ 101+ ]+ },+ {+ "kind": "account",+ "path": "pool.base_mint",+ "account": "Pool"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "set_reserved_fee_recipients",+ "discriminator": [+ 111,+ 172,+ 162,+ 232,+ 114,+ 89,+ 213,+ 142+ ],+ "accounts": [+ {+ "name": "global_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ }+ ]+ }+ },+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "global_config"+ ]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "whitelist_pda",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "sync_user_volume_accumulator",+ "discriminator": [+ 86,+ 31,+ 192,+ 87,+ 163,+ 87,+ 79,+ 238+ ],+ "accounts": [+ {+ "name": "user"+ },+ {+ "name": "global_volume_accumulator",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ }+ ]+ }+ },+ {+ "name": "user_volume_accumulator",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 117,+ 115,+ 101,+ 114,+ 95,+ 118,+ 111,+ 108,+ 117,+ 109,+ 101,+ 95,+ 97,+ 99,+ 99,+ 117,+ 109,+ 117,+ 108,+ 97,+ 116,+ 111,+ 114+ ]+ },+ {+ "kind": "account",+ "path": "user"+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "toggle_cashback_enabled",+ "discriminator": [+ 115,+ 103,+ 224,+ 255,+ 189,+ 89,+ 86,+ 195+ ],+ "accounts": [+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "global_config"+ ]+ },+ {+ "name": "global_config",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "enabled",+ "type": "bool"+ }+ ]+ },+ {+ "name": "toggle_mayhem_mode",+ "discriminator": [+ 1,+ 9,+ 111,+ 208,+ 100,+ 31,+ 255,+ 163+ ],+ "accounts": [+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "global_config"+ ]+ },+ {+ "name": "global_config",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "enabled",+ "type": "bool"+ }+ ]+ },+ {+ "name": "transfer_creator_fees_to_pump",+ "docs": [+ "Transfer creator fees to pump creator vault",+ "If coin creator fees are currently below rent.minimum_balance(TokenAccount::LEN)",+ "The transfer will be skipped"+ ],+ "discriminator": [+ 139,+ 52,+ 134,+ 85,+ 228,+ 229,+ 108,+ 241+ ],+ "accounts": [+ {+ "name": "wsol_mint",+ "docs": [+ "Pump Canonical Pool are quoted in wSOL"+ ]+ },+ {+ "name": "token_program"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "coin_creator"+ },+ {+ "name": "coin_creator_vault_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "coin_creator"+ }+ ]+ }+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "wsol_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 45,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "coin_creator"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "transfer_creator_fees_to_pump_v2",+ "discriminator": [+ 1,+ 33,+ 78,+ 185,+ 33,+ 67,+ 44,+ 92+ ],+ "accounts": [+ {+ "name": "payer",+ "writable": true,+ "signer": true+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "token_program"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "coin_creator"+ },+ {+ "name": "coin_creator_vault_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "coin_creator"+ }+ ]+ }+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 45,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "coin_creator"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pump_creator_vault"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "update_admin",+ "discriminator": [+ 161,+ 176,+ 40,+ 213,+ 60,+ 184,+ 179,+ 228+ ],+ "accounts": [+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "global_config"+ ]+ },+ {+ "name": "global_config",+ "writable": true+ },+ {+ "name": "new_admin"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "update_buyback_config",+ "discriminator": [+ 251,+ 224,+ 171,+ 146,+ 160,+ 26,+ 113,+ 233+ ],+ "accounts": [+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "global_config"+ ]+ },+ {+ "name": "global_config",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "buyback_basis_points",+ "type": {+ "option": "u64"+ }+ }+ ]+ },+ {+ "name": "update_fee_config",+ "discriminator": [+ 104,+ 184,+ 103,+ 242,+ 88,+ 151,+ 107,+ 20+ ],+ "accounts": [+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "global_config"+ ]+ },+ {+ "name": "global_config",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "lp_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "protocol_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "protocol_fee_recipients",+ "type": {+ "array": [+ "pubkey",+ 8+ ]+ }+ },+ {+ "name": "coin_creator_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "admin_set_coin_creator_authority",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "withdraw",+ "discriminator": [+ 183,+ 18,+ 70,+ 156,+ 148,+ 109,+ 161,+ 34+ ],+ "accounts": [+ {+ "name": "pool",+ "writable": true+ },+ {+ "name": "global_config"+ },+ {+ "name": "user",+ "signer": true+ },+ {+ "name": "base_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "quote_mint",+ "relations": [+ "pool"+ ]+ },+ {+ "name": "lp_mint",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "user_base_token_account",+ "writable": true+ },+ {+ "name": "user_quote_token_account",+ "writable": true+ },+ {+ "name": "user_pool_token_account",+ "writable": true+ },+ {+ "name": "pool_base_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "pool_quote_token_account",+ "writable": true,+ "relations": [+ "pool"+ ]+ },+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "token_2022_program",+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "lp_token_amount_in",+ "type": "u64"+ },+ {+ "name": "min_base_amount_out",+ "type": "u64"+ },+ {+ "name": "min_quote_amount_out",+ "type": "u64"+ }+ ]+ }+ ],+ "accounts": [+ {+ "name": "BondingCurve",+ "discriminator": [+ 23,+ 183,+ 248,+ 55,+ 96,+ 216,+ 172,+ 96+ ]+ },+ {+ "name": "FeeConfig",+ "discriminator": [+ 143,+ 52,+ 146,+ 187,+ 219,+ 123,+ 76,+ 155+ ]+ },+ {+ "name": "GlobalConfig",+ "discriminator": [+ 149,+ 8,+ 156,+ 202,+ 160,+ 252,+ 176,+ 217+ ]+ },+ {+ "name": "GlobalVolumeAccumulator",+ "discriminator": [+ 202,+ 42,+ 246,+ 43,+ 142,+ 190,+ 30,+ 255+ ]+ },+ {+ "name": "Pool",+ "discriminator": [+ 241,+ 154,+ 109,+ 4,+ 17,+ 177,+ 109,+ 188+ ]+ },+ {+ "name": "SharingConfig",+ "discriminator": [+ 216,+ 74,+ 9,+ 0,+ 56,+ 140,+ 93,+ 75+ ]+ },+ {+ "name": "UserVolumeAccumulator",+ "discriminator": [+ 86,+ 255,+ 112,+ 14,+ 102,+ 53,+ 154,+ 250+ ]+ }+ ],+ "events": [+ {+ "name": "AdminSetCoinCreatorEvent",+ "discriminator": [+ 45,+ 220,+ 93,+ 24,+ 25,+ 97,+ 172,+ 104+ ]+ },+ {+ "name": "AdminUpdateTokenIncentivesEvent",+ "discriminator": [+ 147,+ 250,+ 108,+ 120,+ 247,+ 29,+ 67,+ 222+ ]+ },+ {+ "name": "BuyEvent",+ "discriminator": [+ 103,+ 244,+ 82,+ 31,+ 44,+ 245,+ 119,+ 119+ ]+ },+ {+ "name": "ClaimCashbackEvent",+ "discriminator": [+ 226,+ 214,+ 246,+ 33,+ 7,+ 242,+ 147,+ 229+ ]+ },+ {+ "name": "ClaimTokenIncentivesEvent",+ "discriminator": [+ 79,+ 172,+ 246,+ 49,+ 205,+ 91,+ 206,+ 232+ ]+ },+ {+ "name": "CloseUserVolumeAccumulatorEvent",+ "discriminator": [+ 146,+ 159,+ 189,+ 172,+ 146,+ 88,+ 56,+ 244+ ]+ },+ {+ "name": "CollectCoinCreatorFeeEvent",+ "discriminator": [+ 232,+ 245,+ 194,+ 238,+ 234,+ 218,+ 58,+ 89+ ]+ },+ {+ "name": "CreateConfigEvent",+ "discriminator": [+ 107,+ 52,+ 89,+ 129,+ 55,+ 226,+ 81,+ 22+ ]+ },+ {+ "name": "CreatePoolEvent",+ "discriminator": [+ 177,+ 49,+ 12,+ 210,+ 160,+ 118,+ 167,+ 116+ ]+ },+ {+ "name": "DepositEvent",+ "discriminator": [+ 120,+ 248,+ 61,+ 83,+ 31,+ 142,+ 107,+ 144+ ]+ },+ {+ "name": "DisableEvent",+ "discriminator": [+ 107,+ 253,+ 193,+ 76,+ 228,+ 202,+ 27,+ 104+ ]+ },+ {+ "name": "ExtendAccountEvent",+ "discriminator": [+ 97,+ 97,+ 215,+ 144,+ 93,+ 146,+ 22,+ 124+ ]+ },+ {+ "name": "InitUserVolumeAccumulatorEvent",+ "discriminator": [+ 134,+ 36,+ 13,+ 72,+ 232,+ 101,+ 130,+ 216+ ]+ },+ {+ "name": "MigratePoolCoinCreatorEvent",+ "discriminator": [+ 170,+ 221,+ 82,+ 199,+ 147,+ 165,+ 247,+ 46+ ]+ },+ {+ "name": "ReservedFeeRecipientsEvent",+ "discriminator": [+ 43,+ 188,+ 250,+ 18,+ 221,+ 75,+ 187,+ 95+ ]+ },+ {+ "name": "SellEvent",+ "discriminator": [+ 62,+ 47,+ 55,+ 10,+ 165,+ 3,+ 220,+ 42+ ]+ },+ {+ "name": "SetBondingCurveCoinCreatorEvent",+ "discriminator": [+ 242,+ 231,+ 235,+ 102,+ 65,+ 99,+ 189,+ 211+ ]+ },+ {+ "name": "SetMetaplexCoinCreatorEvent",+ "discriminator": [+ 150,+ 107,+ 199,+ 123,+ 124,+ 207,+ 102,+ 228+ ]+ },+ {+ "name": "SyncUserVolumeAccumulatorEvent",+ "discriminator": [+ 197,+ 122,+ 167,+ 124,+ 116,+ 81,+ 91,+ 255+ ]+ },+ {+ "name": "UpdateAdminEvent",+ "discriminator": [+ 225,+ 152,+ 171,+ 87,+ 246,+ 63,+ 66,+ 234+ ]+ },+ {+ "name": "UpdateFeeConfigEvent",+ "discriminator": [+ 90,+ 23,+ 65,+ 35,+ 62,+ 244,+ 188,+ 208+ ]+ },+ {+ "name": "WithdrawEvent",+ "discriminator": [+ 22,+ 9,+ 133,+ 26,+ 160,+ 44,+ 71,+ 192+ ]+ }+ ],+ "errors": [+ {+ "code": 6000,+ "name": "FeeBasisPointsExceedsMaximum"+ },+ {+ "code": 6001,+ "name": "ZeroBaseAmount"+ },+ {+ "code": 6002,+ "name": "ZeroQuoteAmount"+ },+ {+ "code": 6003,+ "name": "TooLittlePoolTokenLiquidity"+ },+ {+ "code": 6004,+ "name": "ExceededSlippage"+ },+ {+ "code": 6005,+ "name": "InvalidAdmin"+ },+ {+ "code": 6006,+ "name": "UnsupportedBaseMint"+ },+ {+ "code": 6007,+ "name": "UnsupportedQuoteMint"+ },+ {+ "code": 6008,+ "name": "InvalidBaseMint"+ },+ {+ "code": 6009,+ "name": "InvalidQuoteMint"+ },+ {+ "code": 6010,+ "name": "InvalidLpMint"+ },+ {+ "code": 6011,+ "name": "AllProtocolFeeRecipientsShouldBeNonZero"+ },+ {+ "code": 6012,+ "name": "UnsortedNotUniqueProtocolFeeRecipients"+ },+ {+ "code": 6013,+ "name": "InvalidProtocolFeeRecipient"+ },+ {+ "code": 6014,+ "name": "InvalidPoolBaseTokenAccount"+ },+ {+ "code": 6015,+ "name": "InvalidPoolQuoteTokenAccount"+ },+ {+ "code": 6016,+ "name": "BuyMoreBaseAmountThanPoolReserves"+ },+ {+ "code": 6017,+ "name": "DisabledCreatePool"+ },+ {+ "code": 6018,+ "name": "DisabledDeposit"+ },+ {+ "code": 6019,+ "name": "DisabledWithdraw"+ },+ {+ "code": 6020,+ "name": "DisabledBuy"+ },+ {+ "code": 6021,+ "name": "DisabledSell"+ },+ {+ "code": 6022,+ "name": "SameMint"+ },+ {+ "code": 6023,+ "name": "Overflow"+ },+ {+ "code": 6024,+ "name": "Truncation"+ },+ {+ "code": 6025,+ "name": "DivisionByZero"+ },+ {+ "code": 6026,+ "name": "NewSizeLessThanCurrentSize"+ },+ {+ "code": 6027,+ "name": "AccountTypeNotSupported"+ },+ {+ "code": 6028,+ "name": "OnlyCanonicalPumpPoolsCanHaveCoinCreator"+ },+ {+ "code": 6029,+ "name": "InvalidAdminSetCoinCreatorAuthority"+ },+ {+ "code": 6030,+ "name": "StartTimeInThePast"+ },+ {+ "code": 6031,+ "name": "EndTimeInThePast"+ },+ {+ "code": 6032,+ "name": "EndTimeBeforeStartTime"+ },+ {+ "code": 6033,+ "name": "TimeRangeTooLarge"+ },+ {+ "code": 6034,+ "name": "EndTimeBeforeCurrentDay"+ },+ {+ "code": 6035,+ "name": "SupplyUpdateForFinishedRange"+ },+ {+ "code": 6036,+ "name": "DayIndexAfterEndIndex"+ },+ {+ "code": 6037,+ "name": "DayInActiveRange"+ },+ {+ "code": 6038,+ "name": "InvalidIncentiveMint"+ },+ {+ "code": 6039,+ "name": "BuyNotEnoughQuoteTokensToCoverFees",+ "msg": "buy: Not enough quote tokens to cover for fees."+ },+ {+ "code": 6040,+ "name": "BuySlippageBelowMinBaseAmountOut",+ "msg": "buy: slippage - would buy less tokens than expected min_base_amount_out"+ },+ {+ "code": 6041,+ "name": "MayhemModeDisabled"+ },+ {+ "code": 6042,+ "name": "OnlyPumpPoolsMayhemMode"+ },+ {+ "code": 6043,+ "name": "MayhemModeInDesiredState"+ },+ {+ "code": 6044,+ "name": "NotEnoughRemainingAccounts"+ },+ {+ "code": 6045,+ "name": "InvalidSharingConfigBaseMint"+ },+ {+ "code": 6046,+ "name": "InvalidSharingConfigCoinCreator"+ },+ {+ "code": 6047,+ "name": "CoinCreatorMigratedToSharingConfig",+ "msg": "coin creator has been migrated to sharing config, use pump_fees::reset_fee_sharing_config instead"+ },+ {+ "code": 6048,+ "name": "CreatorVaultMigratedToSharingConfig",+ "msg": "creator_vault has been migrated to sharing config, use pump:distribute_creator_fees instead"+ },+ {+ "code": 6049,+ "name": "CashbackNotEnabled",+ "msg": "Cashback is disabled"+ },+ {+ "code": 6050,+ "name": "OnlyPumpPoolsCashback"+ },+ {+ "code": 6051,+ "name": "CashbackNotInDesiredState"+ },+ {+ "code": 6052,+ "name": "TokensInVaultLessThanCashbackEarned"+ },+ {+ "code": 6053,+ "name": "BuybackFeeRecipientNotAuthorized",+ "msg": "Buyback fee recipient not authorized"+ },+ {+ "code": 6054,+ "name": "AllBuybackFeeRecipientsShouldBeNonZero"+ },+ {+ "code": 6055,+ "name": "NotUniqueBuybackFeeRecipients"+ },+ {+ "code": 6056,+ "name": "BuybackBasisPointsOutOfRange",+ "msg": "buyback_basis_points must be <= 10_000"+ },+ {+ "code": 6057,+ "name": "WrongBuybackFeeRecipientsCount",+ "msg": "buyback fee recipients require exactly 8 remaining accounts (or none)"+ },+ {+ "code": 6058,+ "name": "BuybackFeeRecipientMissing"+ }+ ],+ "types": [+ {+ "name": "AdminSetCoinCreatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin_set_coin_creator_authority",+ "type": "pubkey"+ },+ {+ "name": "base_mint",+ "type": "pubkey"+ },+ {+ "name": "pool",+ "type": "pubkey"+ },+ {+ "name": "old_coin_creator",+ "type": "pubkey"+ },+ {+ "name": "new_coin_creator",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "AdminUpdateTokenIncentivesEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "start_time",+ "type": "i64"+ },+ {+ "name": "end_time",+ "type": "i64"+ },+ {+ "name": "day_number",+ "type": "u64"+ },+ {+ "name": "token_supply_per_day",+ "type": "u64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "seconds_in_a_day",+ "type": "i64"+ },+ {+ "name": "timestamp",+ "type": "i64"+ }+ ]+ }+ },+ {+ "name": "BondingCurve",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "virtual_token_reserves",+ "type": "u64"+ },+ {+ "name": "virtual_sol_reserves",+ "type": "u64"+ },+ {+ "name": "real_token_reserves",+ "type": "u64"+ },+ {+ "name": "real_sol_reserves",+ "type": "u64"+ },+ {+ "name": "token_total_supply",+ "type": "u64"+ },+ {+ "name": "complete",+ "type": "bool"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "is_mayhem_mode",+ "type": "bool"+ },+ {+ "name": "is_cashback_coin",+ "type": "bool"+ }+ ]+ }+ },+ {+ "name": "BuyEvent",+ "docs": [+ "ix_name: \"buy\" | \"buy_exact_quote_in\""+ ],+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "base_amount_out",+ "type": "u64"+ },+ {+ "name": "max_quote_amount_in",+ "type": "u64"+ },+ {+ "name": "user_base_token_reserves",+ "type": "u64"+ },+ {+ "name": "user_quote_token_reserves",+ "type": "u64"+ },+ {+ "name": "pool_base_token_reserves",+ "type": "u64"+ },+ {+ "name": "pool_quote_token_reserves",+ "type": "u64"+ },+ {+ "name": "quote_amount_in",+ "type": "u64"+ },+ {+ "name": "lp_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "lp_fee",+ "type": "u64"+ },+ {+ "name": "protocol_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "protocol_fee",+ "type": "u64"+ },+ {+ "name": "quote_amount_in_with_lp_fee",+ "type": "u64"+ },+ {+ "name": "user_quote_amount_in",+ "type": "u64"+ },+ {+ "name": "pool",+ "type": "pubkey"+ },+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "user_base_token_account",+ "type": "pubkey"+ },+ {+ "name": "user_quote_token_account",+ "type": "pubkey"+ },+ {+ "name": "protocol_fee_recipient",+ "type": "pubkey"+ },+ {+ "name": "protocol_fee_recipient_token_account",+ "type": "pubkey"+ },+ {+ "name": "coin_creator",+ "type": "pubkey"+ },+ {+ "name": "coin_creator_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "coin_creator_fee",+ "type": "u64"+ },+ {+ "name": "track_volume",+ "type": "bool"+ },+ {+ "name": "total_unclaimed_tokens",+ "type": "u64"+ },+ {+ "name": "total_claimed_tokens",+ "type": "u64"+ },+ {+ "name": "current_sol_volume",+ "type": "u64"+ },+ {+ "name": "last_update_timestamp",+ "type": "i64"+ },+ {+ "name": "min_base_amount_out",+ "type": "u64"+ },+ {+ "name": "ix_name",+ "type": "string"+ },+ {+ "name": "cashback_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "cashback",+ "type": "u64"+ },+ {+ "name": "buyback_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "buyback_fee",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "ClaimCashbackEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "amount",+ "type": "u64"+ },+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "total_claimed",+ "type": "u64"+ },+ {+ "name": "total_cashback_earned",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "ClaimTokenIncentivesEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "amount",+ "type": "u64"+ },+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "total_claimed_tokens",+ "type": "u64"+ },+ {+ "name": "current_sol_volume",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "CloseUserVolumeAccumulatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "total_unclaimed_tokens",+ "type": "u64"+ },+ {+ "name": "total_claimed_tokens",+ "type": "u64"+ },+ {+ "name": "current_sol_volume",+ "type": "u64"+ },+ {+ "name": "last_update_timestamp",+ "type": "i64"+ }+ ]+ }+ },+ {+ "name": "CollectCoinCreatorFeeEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "coin_creator",+ "type": "pubkey"+ },+ {+ "name": "coin_creator_fee",+ "type": "u64"+ },+ {+ "name": "coin_creator_vault_ata",+ "type": "pubkey"+ },+ {+ "name": "coin_creator_token_account",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "ConfigStatus",+ "type": {+ "kind": "enum",+ "variants": [+ {+ "name": "Paused"+ },+ {+ "name": "Active"+ }+ ]+ }+ },+ {+ "name": "CreateConfigEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "lp_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "protocol_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "protocol_fee_recipients",+ "type": {+ "array": [+ "pubkey",+ 8+ ]+ }+ },+ {+ "name": "coin_creator_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "admin_set_coin_creator_authority",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "CreatePoolEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "index",+ "type": "u16"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "base_mint",+ "type": "pubkey"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "base_mint_decimals",+ "type": "u8"+ },+ {+ "name": "quote_mint_decimals",+ "type": "u8"+ },+ {+ "name": "base_amount_in",+ "type": "u64"+ },+ {+ "name": "quote_amount_in",+ "type": "u64"+ },+ {+ "name": "pool_base_amount",+ "type": "u64"+ },+ {+ "name": "pool_quote_amount",+ "type": "u64"+ },+ {+ "name": "minimum_liquidity",+ "type": "u64"+ },+ {+ "name": "initial_liquidity",+ "type": "u64"+ },+ {+ "name": "lp_token_amount_out",+ "type": "u64"+ },+ {+ "name": "pool_bump",+ "type": "u8"+ },+ {+ "name": "pool",+ "type": "pubkey"+ },+ {+ "name": "lp_mint",+ "type": "pubkey"+ },+ {+ "name": "user_base_token_account",+ "type": "pubkey"+ },+ {+ "name": "user_quote_token_account",+ "type": "pubkey"+ },+ {+ "name": "coin_creator",+ "type": "pubkey"+ },+ {+ "name": "is_mayhem_mode",+ "type": "bool"+ }+ ]+ }+ },+ {+ "name": "DepositEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "lp_token_amount_out",+ "type": "u64"+ },+ {+ "name": "max_base_amount_in",+ "type": "u64"+ },+ {+ "name": "max_quote_amount_in",+ "type": "u64"+ },+ {+ "name": "user_base_token_reserves",+ "type": "u64"+ },+ {+ "name": "user_quote_token_reserves",+ "type": "u64"+ },+ {+ "name": "pool_base_token_reserves",+ "type": "u64"+ },+ {+ "name": "pool_quote_token_reserves",+ "type": "u64"+ },+ {+ "name": "base_amount_in",+ "type": "u64"+ },+ {+ "name": "quote_amount_in",+ "type": "u64"+ },+ {+ "name": "lp_mint_supply",+ "type": "u64"+ },+ {+ "name": "pool",+ "type": "pubkey"+ },+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "user_base_token_account",+ "type": "pubkey"+ },+ {+ "name": "user_quote_token_account",+ "type": "pubkey"+ },+ {+ "name": "user_pool_token_account",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "DisableEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "disable_create_pool",+ "type": "bool"+ },+ {+ "name": "disable_deposit",+ "type": "bool"+ },+ {+ "name": "disable_withdraw",+ "type": "bool"+ },+ {+ "name": "disable_buy",+ "type": "bool"+ },+ {+ "name": "disable_sell",+ "type": "bool"+ }+ ]+ }+ },+ {+ "name": "ExtendAccountEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "account",+ "type": "pubkey"+ },+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "current_size",+ "type": "u64"+ },+ {+ "name": "new_size",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "FeeConfig",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "bump",+ "type": "u8"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "flat_fees",+ "type": {+ "defined": {+ "name": "Fees"+ }+ }+ },+ {+ "name": "fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "stable_fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ }+ ]+ }+ },+ {+ "name": "FeeTier",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "market_cap_lamports_threshold",+ "type": "u128"+ },+ {+ "name": "fees",+ "type": {+ "defined": {+ "name": "Fees"+ }+ }+ }+ ]+ }+ },+ {+ "name": "Fees",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "lp_fee_bps",+ "type": "u64"+ },+ {+ "name": "protocol_fee_bps",+ "type": "u64"+ },+ {+ "name": "creator_fee_bps",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "GlobalConfig",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "admin",+ "docs": [+ "The admin pubkey"+ ],+ "type": "pubkey"+ },+ {+ "name": "lp_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "protocol_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "disable_flags",+ "docs": [+ "Flags to disable certain functionality",+ "bit 0 - Disable create pool",+ "bit 1 - Disable deposit",+ "bit 2 - Disable withdraw",+ "bit 3 - Disable buy",+ "bit 4 - Disable sell"+ ],+ "type": "u8"+ },+ {+ "name": "protocol_fee_recipients",+ "docs": [+ "Addresses of the protocol fee recipients"+ ],+ "type": {+ "array": [+ "pubkey",+ 8+ ]+ }+ },+ {+ "name": "coin_creator_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "admin_set_coin_creator_authority",+ "docs": [+ "The admin authority for setting coin creators"+ ],+ "type": "pubkey"+ },+ {+ "name": "whitelist_pda",+ "type": "pubkey"+ },+ {+ "name": "reserved_fee_recipient",+ "type": "pubkey"+ },+ {+ "name": "mayhem_mode_enabled",+ "type": "bool"+ },+ {+ "name": "reserved_fee_recipients",+ "type": {+ "array": [+ "pubkey",+ 7+ ]+ }+ },+ {+ "name": "is_cashback_enabled",+ "type": "bool"+ },+ {+ "name": "buyback_fee_recipients",+ "type": {+ "array": [+ "pubkey",+ 8+ ]+ }+ },+ {+ "name": "buyback_basis_points",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "GlobalVolumeAccumulator",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "start_time",+ "type": "i64"+ },+ {+ "name": "end_time",+ "type": "i64"+ },+ {+ "name": "seconds_in_a_day",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "total_token_supply",+ "type": {+ "array": [+ "u64",+ 30+ ]+ }+ },+ {+ "name": "sol_volumes",+ "type": {+ "array": [+ "u64",+ 30+ ]+ }+ }+ ]+ }+ },+ {+ "name": "InitUserVolumeAccumulatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "payer",+ "type": "pubkey"+ },+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "timestamp",+ "type": "i64"+ }+ ]+ }+ },+ {+ "name": "MigratePoolCoinCreatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "base_mint",+ "type": "pubkey"+ },+ {+ "name": "pool",+ "type": "pubkey"+ },+ {+ "name": "sharing_config",+ "type": "pubkey"+ },+ {+ "name": "old_coin_creator",+ "type": "pubkey"+ },+ {+ "name": "new_coin_creator",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "OptionBool",+ "type": {+ "kind": "struct",+ "fields": [+ "bool"+ ]+ }+ },+ {+ "name": "Pool",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "pool_bump",+ "type": "u8"+ },+ {+ "name": "index",+ "type": "u16"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "base_mint",+ "type": "pubkey"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "lp_mint",+ "type": "pubkey"+ },+ {+ "name": "pool_base_token_account",+ "type": "pubkey"+ },+ {+ "name": "pool_quote_token_account",+ "type": "pubkey"+ },+ {+ "name": "lp_supply",+ "docs": [+ "True circulating supply without burns and lock-ups"+ ],+ "type": "u64"+ },+ {+ "name": "coin_creator",+ "type": "pubkey"+ },+ {+ "name": "is_mayhem_mode",+ "type": "bool"+ },+ {+ "name": "is_cashback_coin",+ "type": "bool"+ }+ ]+ }+ },+ {+ "name": "ReservedFeeRecipientsEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "reserved_fee_recipient",+ "type": "pubkey"+ },+ {+ "name": "reserved_fee_recipients",+ "type": {+ "array": [+ "pubkey",+ 7+ ]+ }+ }+ ]+ }+ },+ {+ "name": "SellEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "base_amount_in",+ "type": "u64"+ },+ {+ "name": "min_quote_amount_out",+ "type": "u64"+ },+ {+ "name": "user_base_token_reserves",+ "type": "u64"+ },+ {+ "name": "user_quote_token_reserves",+ "type": "u64"+ },+ {+ "name": "pool_base_token_reserves",+ "type": "u64"+ },+ {+ "name": "pool_quote_token_reserves",+ "type": "u64"+ },+ {+ "name": "quote_amount_out",+ "type": "u64"+ },+ {+ "name": "lp_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "lp_fee",+ "type": "u64"+ },+ {+ "name": "protocol_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "protocol_fee",+ "type": "u64"+ },+ {+ "name": "quote_amount_out_without_lp_fee",+ "type": "u64"+ },+ {+ "name": "user_quote_amount_out",+ "type": "u64"+ },+ {+ "name": "pool",+ "type": "pubkey"+ },+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "user_base_token_account",+ "type": "pubkey"+ },+ {+ "name": "user_quote_token_account",+ "type": "pubkey"+ },+ {+ "name": "protocol_fee_recipient",+ "type": "pubkey"+ },+ {+ "name": "protocol_fee_recipient_token_account",+ "type": "pubkey"+ },+ {+ "name": "coin_creator",+ "type": "pubkey"+ },+ {+ "name": "coin_creator_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "coin_creator_fee",+ "type": "u64"+ },+ {+ "name": "cashback_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "cashback",+ "type": "u64"+ },+ {+ "name": "buyback_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "buyback_fee",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "SetBondingCurveCoinCreatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "base_mint",+ "type": "pubkey"+ },+ {+ "name": "pool",+ "type": "pubkey"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "coin_creator",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "SetMetaplexCoinCreatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "base_mint",+ "type": "pubkey"+ },+ {+ "name": "pool",+ "type": "pubkey"+ },+ {+ "name": "metadata",+ "type": "pubkey"+ },+ {+ "name": "coin_creator",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "Shareholder",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "address",+ "type": "pubkey"+ },+ {+ "name": "share_bps",+ "type": "u16"+ }+ ]+ }+ },+ {+ "name": "SharingConfig",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "bump",+ "type": "u8"+ },+ {+ "name": "version",+ "type": "u8"+ },+ {+ "name": "status",+ "type": {+ "defined": {+ "name": "ConfigStatus"+ }+ }+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "admin_revoked",+ "type": "bool"+ },+ {+ "name": "shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ }+ ]+ }+ },+ {+ "name": "SyncUserVolumeAccumulatorEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "total_claimed_tokens_before",+ "type": "u64"+ },+ {+ "name": "total_claimed_tokens_after",+ "type": "u64"+ },+ {+ "name": "timestamp",+ "type": "i64"+ }+ ]+ }+ },+ {+ "name": "UpdateAdminEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "new_admin",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "UpdateFeeConfigEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "lp_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "protocol_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "protocol_fee_recipients",+ "type": {+ "array": [+ "pubkey",+ 8+ ]+ }+ },+ {+ "name": "coin_creator_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "admin_set_coin_creator_authority",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "UserVolumeAccumulator",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "needs_claim",+ "type": "bool"+ },+ {+ "name": "total_unclaimed_tokens",+ "type": "u64"+ },+ {+ "name": "total_claimed_tokens",+ "type": "u64"+ },+ {+ "name": "current_sol_volume",+ "type": "u64"+ },+ {+ "name": "last_update_timestamp",+ "type": "i64"+ },+ {+ "name": "has_total_claimed_tokens",+ "type": "bool"+ },+ {+ "name": "cashback_earned",+ "type": "u64"+ },+ {+ "name": "total_cashback_claimed",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "WithdrawEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "lp_token_amount_in",+ "type": "u64"+ },+ {+ "name": "min_base_amount_out",+ "type": "u64"+ },+ {+ "name": "min_quote_amount_out",+ "type": "u64"+ },+ {+ "name": "user_base_token_reserves",+ "type": "u64"+ },+ {+ "name": "user_quote_token_reserves",+ "type": "u64"+ },+ {+ "name": "pool_base_token_reserves",+ "type": "u64"+ },+ {+ "name": "pool_quote_token_reserves",+ "type": "u64"+ },+ {+ "name": "base_amount_out",+ "type": "u64"+ },+ {+ "name": "quote_amount_out",+ "type": "u64"+ },+ {+ "name": "lp_mint_supply",+ "type": "u64"+ },+ {+ "name": "pool",+ "type": "pubkey"+ },+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "user_base_token_account",+ "type": "pubkey"+ },+ {+ "name": "user_quote_token_account",+ "type": "pubkey"+ },+ {+ "name": "user_pool_token_account",+ "type": "pubkey"+ }+ ]+ }+ }+ ]+}\ No newline at end of filediff --git a/docs/pumpfun-program/idl/pump_fees.json b/docs/pumpfun-program/idl/pump_fees.jsonnew file mode 100644index 000000000..900a99fba--- /dev/null+++ b/docs/pumpfun-program/idl/pump_fees.json@@ -0,0 +1,7124 @@+{+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ",+ "metadata": {+ "name": "pump_fees",+ "version": "0.1.0",+ "spec": "0.1.0",+ "description": "Created with Anchor"+ },+ "instructions": [+ {+ "name": "claim_social_fee_pda",+ "discriminator": [+ 225,+ 21,+ 251,+ 133,+ 161,+ 30,+ 199,+ 226+ ],+ "accounts": [+ {+ "name": "recipient",+ "writable": true+ },+ {+ "name": "social_fee_pda",+ "writable": true+ },+ {+ "name": "fee_program_global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "social_claim_authority",+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "user_id",+ "type": "string"+ },+ {+ "name": "platform",+ "type": "u8"+ }+ ],+ "returns": {+ "option": {+ "defined": {+ "name": "SocialFeePdaClaimed"+ }+ }+ }+ },+ {+ "name": "claim_social_fee_pda_v2",+ "discriminator": [+ 17,+ 77,+ 240,+ 134,+ 58,+ 188,+ 53,+ 149+ ],+ "accounts": [+ {+ "name": "recipient",+ "writable": true+ },+ {+ "name": "social_fee_pda",+ "writable": true+ },+ {+ "name": "quote_mint",+ "docs": [+ "Quote mint for claim"+ ],+ "writable": true+ },+ {+ "name": "associated_social_fee_pda",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "social_fee_pda"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "associated_recipient",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "recipient"+ },+ {+ "kind": "account",+ "path": "quote_token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "quote_token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "fee_program_global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "social_claim_authority",+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "user_id",+ "type": "string"+ },+ {+ "name": "platform",+ "type": "u8"+ }+ ],+ "returns": {+ "option": {+ "defined": {+ "name": "SocialFeePdaClaimed"+ }+ }+ }+ },+ {+ "name": "crank_donation_fee_pda",+ "discriminator": [+ 220,+ 10,+ 189,+ 167,+ 169,+ 17,+ 25,+ 69+ ],+ "accounts": [+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "payer",+ "docs": [+ "Pays rent when [`temp_wsol_token_account`] is created (`init_if_needed`); receives rent when it is closed after the relay CPI."+ ],+ "writable": true,+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "rent",+ "address": "SysvarRent111111111111111111111111111111111"+ },+ {+ "name": "fee_program_global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "donation_fee_pda",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 100,+ 111,+ 110,+ 97,+ 116,+ 105,+ 111,+ 110,+ 45,+ 102,+ 101,+ 101,+ 45,+ 112,+ 100,+ 97+ ]+ },+ {+ "kind": "account",+ "path": "donation_fee_pda.base_mint",+ "account": "DonationFeePda"+ },+ {+ "kind": "account",+ "path": "donation_fee_pda.config_id",+ "account": "DonationFeePda"+ }+ ]+ }+ },+ {+ "name": "quote_mint",+ "docs": [+ "Quote mint from donation fee pda."+ ],+ "writable": true+ },+ {+ "name": "donation_fee_pda_ata",+ "docs": [+ "WSOL ATA owned by `donation_fee_pda`."+ ],+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "donation_fee_pda"+ },+ {+ "kind": "const",+ "value": [+ 6,+ 221,+ 246,+ 225,+ 215,+ 101,+ 161,+ 147,+ 217,+ 203,+ 225,+ 70,+ 206,+ 235,+ 121,+ 172,+ 28,+ 180,+ 133,+ 237,+ 95,+ 91,+ 55,+ 145,+ 58,+ 140,+ 245,+ 133,+ 126,+ 255,+ 0,+ 169+ ]+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "donation_relay_program",+ "address": "RLAYHr9TRFcKB2ubYQhspcnXiaGpaVzNQvHytt47RZu"+ },+ {+ "name": "donation_relay_event_authority"+ },+ {+ "name": "mint_whitelist"+ },+ {+ "name": "epoch_tracker",+ "writable": true+ },+ {+ "name": "debouncer",+ "writable": true+ },+ {+ "name": "debouncer_ata",+ "writable": true+ }+ ],+ "args": []+ },+ {+ "name": "create_donation_fee_pda",+ "discriminator": [+ 244,+ 139,+ 16,+ 88,+ 14,+ 255,+ 122,+ 26+ ],+ "accounts": [+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "payer",+ "writable": true,+ "signer": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "fee_program_global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "donation_fee_pda",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 100,+ 111,+ 110,+ 97,+ 116,+ 105,+ 111,+ 110,+ 45,+ 102,+ 101,+ 101,+ 45,+ 112,+ 100,+ 97+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ },+ {+ "kind": "account",+ "path": "config_id"+ }+ ]+ }+ },+ {+ "name": "config_id",+ "docs": [+ "stored on the PDA, so distinct `config_id`s for the same `base_mint` derive distinct addresses."+ ]+ },+ {+ "name": "base_mint"+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98,+ 111,+ 110,+ 100,+ 105,+ 110,+ 103,+ 45,+ 99,+ 117,+ 114,+ 118,+ 101+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pool"+ },+ {+ "name": "sharing_config",+ "docs": [+ "(derived from `[SHARING_CONFIG_SEED, base_mint]`)"+ ],+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115,+ 104,+ 97,+ 114,+ 105,+ 110,+ 103,+ 45,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "base_mint"+ }+ ]+ }+ }+ ],+ "args": []+ },+ {+ "name": "create_fee_sharing_config",+ "docs": [+ "Create Fee Sharing Config"+ ],+ "discriminator": [+ 195,+ 78,+ 86,+ 76,+ 111,+ 52,+ 251,+ 213+ ],+ "accounts": [+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "payer",+ "writable": true,+ "signer": true+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "mint"+ },+ {+ "name": "sharing_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115,+ 104,+ 97,+ 114,+ 105,+ 110,+ 103,+ 45,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "bonding_curve",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98,+ 111,+ 110,+ 100,+ 105,+ 110,+ 103,+ 45,+ 99,+ 117,+ 114,+ 118,+ 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "pump_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pool",+ "writable": true,+ "optional": true+ },+ {+ "name": "pump_amm_program",+ "optional": true,+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "pump_amm_event_authority",+ "optional": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ }+ ],+ "args": []+ },+ {+ "name": "create_social_fee_pda",+ "discriminator": [+ 144,+ 224,+ 59,+ 211,+ 78,+ 248,+ 202,+ 220+ ],+ "accounts": [+ {+ "name": "payer",+ "writable": true,+ "signer": true+ },+ {+ "name": "social_fee_pda",+ "writable": true+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "fee_program_global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "user_id",+ "type": "string"+ },+ {+ "name": "platform",+ "type": "u8"+ }+ ]+ },+ {+ "name": "extend_fee_config",+ "docs": [+ "Realloc the fee_config PDA to [`FeeConfig::CURRENT_SIZE`] (signer pays rent delta)."+ ],+ "discriminator": [+ 68,+ 179,+ 244,+ 90,+ 173,+ 56,+ 17,+ 217+ ],+ "accounts": [+ {+ "name": "fee_config",+ "writable": true+ },+ {+ "name": "user",+ "signer": true+ },+ {+ "name": "config_program_id"+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "get_fees",+ "docs": [+ "Get Fees"+ ],+ "discriminator": [+ 231,+ 37,+ 126,+ 85,+ 207,+ 91,+ 63,+ 52+ ],+ "accounts": [+ {+ "name": "fee_config",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "config_program_id"+ }+ ]+ }+ },+ {+ "name": "config_program_id"+ }+ ],+ "args": [+ {+ "name": "is_pump_pool",+ "type": "bool"+ },+ {+ "name": "market_cap_lamports",+ "type": "u128"+ },+ {+ "name": "trade_size_lamports",+ "type": "u64"+ },+ {+ "name": "is_new_quote_mint",+ "type": {+ "defined": {+ "name": "OptionBool"+ }+ }+ }+ ],+ "returns": {+ "defined": {+ "name": "Fees"+ }+ }+ },+ {+ "name": "initialize_buyback",+ "discriminator": [+ 250,+ 129,+ 236,+ 160,+ 227,+ 36,+ 103,+ 134+ ],+ "accounts": [+ {+ "name": "payer",+ "writable": true,+ "signer": true+ },+ {+ "name": "buyback_vault",+ "writable": true+ },+ {+ "name": "buyback_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "buyback_vault"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "mint"+ },+ {+ "name": "token_program"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "index",+ "type": "u8"+ }+ ]+ },+ {+ "name": "initialize_fee_config",+ "docs": [+ "Initialize FeeConfig admin"+ ],+ "discriminator": [+ 62,+ 162,+ 20,+ 133,+ 121,+ 65,+ 145,+ 27+ ],+ "accounts": [+ {+ "name": "admin",+ "writable": true,+ "signer": true,+ "address": "8LWu7QM2dGR1G8nKDHthckea57bkCzXyBTAKPJUBDHo8"+ },+ {+ "name": "fee_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "config_program_id"+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "config_program_id"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "initialize_fee_program_global",+ "discriminator": [+ 35,+ 215,+ 130,+ 84,+ 233,+ 56,+ 124,+ 167+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "pump_global"+ ]+ },+ {+ "name": "pump_global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "social_claim_authority",+ "type": "pubkey"+ },+ {+ "name": "disable_flags",+ "type": "u8"+ },+ {+ "name": "claim_rate_limit",+ "type": "u64"+ }+ ]+ },+ {+ "name": "reset_fee_sharing_config",+ "docs": [+ "Reset Fee Sharing Config and distribute pending fees first"+ ],+ "discriminator": [+ 10,+ 2,+ 182,+ 95,+ 16,+ 127,+ 129,+ 186+ ],+ "accounts": [+ {+ "name": "new_admin"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "authority",+ "signer": true+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "mint",+ "relations": [+ "sharing_config"+ ]+ },+ {+ "name": "sharing_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115,+ 104,+ 97,+ 114,+ 105,+ 110,+ 103,+ 45,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98,+ 111,+ 110,+ 100,+ 105,+ 110,+ 103,+ 45,+ 99,+ 117,+ 114,+ 118,+ 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 45,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "pump_program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "pump_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_amm_program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "amm_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "wsol_mint",+ "address": "So11111111111111111111111111111111111111112"+ },+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "coin_creator_vault_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "wsol_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ }+ ],+ "args": []+ },+ {+ "name": "reset_fee_sharing_config_v2",+ "docs": [+ "Reset Fee Sharing Config and distribute pending fees first"+ ],+ "discriminator": [+ 169,+ 245,+ 17,+ 209,+ 94,+ 91,+ 248,+ 128+ ],+ "accounts": [+ {+ "name": "new_admin"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "mint",+ "relations": [+ "sharing_config"+ ]+ },+ {+ "name": "sharing_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115,+ 104,+ 97,+ 114,+ 105,+ 110,+ 103,+ 45,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98,+ 111,+ 110,+ 100,+ 105,+ 110,+ 103,+ 45,+ 99,+ 117,+ 114,+ 118,+ 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 45,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pump_creator_vault"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "pump_program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "pump_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_amm_program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "amm_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "coin_creator_vault_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ }+ ],+ "args": []+ },+ {+ "name": "revoke_fee_sharing_authority",+ "docs": [+ "Revoke Fee Sharing Authority"+ ],+ "discriminator": [+ 18,+ 233,+ 158,+ 39,+ 185,+ 207,+ 58,+ 104+ ],+ "accounts": [],+ "args": []+ },+ {+ "name": "set_authority",+ "discriminator": [+ 133,+ 250,+ 37,+ 21,+ 110,+ 163,+ 26,+ 121+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "new_authority",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "set_claim_rate_limit",+ "discriminator": [+ 185,+ 211,+ 159,+ 174,+ 212,+ 49,+ 88,+ 4+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "claim_rate_limit",+ "type": "u64"+ }+ ]+ },+ {+ "name": "set_disable_flags",+ "discriminator": [+ 194,+ 217,+ 112,+ 35,+ 114,+ 222,+ 51,+ 190+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "disable_flags",+ "type": "u8"+ }+ ]+ },+ {+ "name": "set_social_claim_authority",+ "discriminator": [+ 147,+ 54,+ 184,+ 154,+ 136,+ 237,+ 185,+ 153+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "social_claim_authority",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "sweep_buyback",+ "discriminator": [+ 138,+ 33,+ 204,+ 38,+ 207,+ 161,+ 159,+ 226+ ],+ "accounts": [+ {+ "name": "destination",+ "writable": true+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "buyback_vault"+ ]+ },+ {+ "name": "buyback_vault",+ "writable": true+ },+ {+ "name": "buyback_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "buyback_vault"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "destination_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "destination"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 140,+ 151,+ 37,+ 143,+ 78,+ 36,+ 137,+ 241,+ 187,+ 61,+ 16,+ 41,+ 20,+ 142,+ 13,+ 131,+ 11,+ 90,+ 19,+ 153,+ 218,+ 255,+ 16,+ 132,+ 4,+ 142,+ 123,+ 216,+ 219,+ 233,+ 248,+ 89+ ]+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "mint"+ },+ {+ "name": "token_program"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "index",+ "type": "u8"+ }+ ]+ },+ {+ "name": "transfer_fee_sharing_authority",+ "docs": [+ "Transfer Fee Sharing Authority"+ ],+ "discriminator": [+ 202,+ 10,+ 75,+ 200,+ 164,+ 34,+ 210,+ 96+ ],+ "accounts": [],+ "args": []+ },+ {+ "name": "update_admin",+ "docs": [+ "Update admin (only callable by admin)"+ ],+ "discriminator": [+ 161,+ 176,+ 40,+ 213,+ 60,+ 184,+ 179,+ 228+ ],+ "accounts": [+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "fee_config"+ ]+ },+ {+ "name": "fee_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "config_program_id"+ }+ ]+ }+ },+ {+ "name": "new_admin"+ },+ {+ "name": "config_program_id"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": []+ },+ {+ "name": "update_buyback_authority",+ "discriminator": [+ 66,+ 98,+ 113,+ 202,+ 121,+ 37,+ 219,+ 107+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "buyback_vault",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "index",+ "type": "u8"+ },+ {+ "name": "new_authority",+ "type": "pubkey"+ }+ ]+ },+ {+ "name": "update_buyback_claim_rate_limit",+ "discriminator": [+ 186,+ 95,+ 135,+ 190,+ 255,+ 199,+ 137,+ 170+ ],+ "accounts": [+ {+ "name": "authority",+ "writable": true,+ "signer": true,+ "relations": [+ "fee_program_global"+ ]+ },+ {+ "name": "fee_program_global",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 45,+ 112,+ 114,+ 111,+ 103,+ 114,+ 97,+ 109,+ 45,+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ]+ }+ },+ {+ "name": "buyback_vault",+ "writable": true+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "index",+ "type": "u8"+ },+ {+ "name": "claim_rate_limit",+ "type": "i64"+ }+ ]+ },+ {+ "name": "update_fee_config",+ "docs": [+ "Set/Replace fee parameters entirely (only callable by admin)"+ ],+ "discriminator": [+ 104,+ 184,+ 103,+ 242,+ 88,+ 151,+ 107,+ 20+ ],+ "accounts": [+ {+ "name": "fee_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "config_program_id"+ }+ ]+ }+ },+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "fee_config"+ ]+ },+ {+ "name": "config_program_id"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "flat_fees",+ "type": {+ "defined": {+ "name": "Fees"+ }+ }+ }+ ]+ },+ {+ "name": "update_fee_shares",+ "docs": [+ "Update Fee Shares, make sure to distribute all the fees before calling this"+ ],+ "discriminator": [+ 189,+ 13,+ 136,+ 99,+ 187,+ 164,+ 237,+ 35+ ],+ "accounts": [+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "authority",+ "signer": true+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "mint",+ "relations": [+ "sharing_config"+ ]+ },+ {+ "name": "sharing_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115,+ 104,+ 97,+ 114,+ 105,+ 110,+ 103,+ 45,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98,+ 111,+ 110,+ 100,+ 105,+ 110,+ 103,+ 45,+ 99,+ 117,+ 114,+ 118,+ 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 45,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "pump_program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "pump_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_amm_program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "amm_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "wsol_mint",+ "address": "So11111111111111111111111111111111111111112"+ },+ {+ "name": "token_program",+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "coin_creator_vault_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true+ }+ ],+ "args": [+ {+ "name": "shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ }+ ]+ },+ {+ "name": "update_fee_shares_v2",+ "docs": [+ "Update Fee Shares, make sure to distribute all the fees before calling this"+ ],+ "discriminator": [+ 111,+ 251,+ 49,+ 6,+ 78,+ 78,+ 106,+ 18+ ],+ "accounts": [+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program",+ "address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"+ },+ {+ "name": "authority",+ "writable": true,+ "signer": true+ },+ {+ "name": "global",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 103,+ 108,+ 111,+ 98,+ 97,+ 108+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "mint",+ "relations": [+ "sharing_config"+ ]+ },+ {+ "name": "sharing_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 115,+ 104,+ 97,+ 114,+ 105,+ 110,+ 103,+ 45,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ]+ }+ },+ {+ "name": "bonding_curve",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 98,+ 111,+ 110,+ 100,+ 105,+ 110,+ 103,+ 45,+ 99,+ 117,+ 114,+ 118,+ 101+ ]+ },+ {+ "kind": "account",+ "path": "mint"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 45,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "pump_creator_vault"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ },+ {+ "name": "system_program",+ "address": "11111111111111111111111111111111"+ },+ {+ "name": "pump_program",+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"+ },+ {+ "name": "pump_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 1,+ 86,+ 224,+ 246,+ 147,+ 102,+ 90,+ 207,+ 68,+ 219,+ 21,+ 104,+ 191,+ 23,+ 91,+ 170,+ 81,+ 137,+ 203,+ 151,+ 245,+ 210,+ 255,+ 59,+ 101,+ 93,+ 43,+ 182,+ 253,+ 109,+ 24,+ 176+ ]+ }+ }+ },+ {+ "name": "pump_amm_program",+ "address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"+ },+ {+ "name": "amm_event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "quote_mint"+ },+ {+ "name": "token_program"+ },+ {+ "name": "associated_token_program",+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"+ },+ {+ "name": "coin_creator_vault_authority",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 99,+ 114,+ 101,+ 97,+ 116,+ 111,+ 114,+ 95,+ 118,+ 97,+ 117,+ 108,+ 116+ ]+ },+ {+ "kind": "account",+ "path": "sharing_config"+ }+ ],+ "program": {+ "kind": "const",+ "value": [+ 12,+ 20,+ 222,+ 252,+ 130,+ 94,+ 198,+ 118,+ 148,+ 37,+ 8,+ 24,+ 187,+ 101,+ 64,+ 101,+ 244,+ 41,+ 141,+ 49,+ 86,+ 213,+ 113,+ 180,+ 212,+ 248,+ 9,+ 12,+ 24,+ 233,+ 168,+ 99+ ]+ }+ }+ },+ {+ "name": "coin_creator_vault_ata",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "account",+ "path": "coin_creator_vault_authority"+ },+ {+ "kind": "account",+ "path": "token_program"+ },+ {+ "kind": "account",+ "path": "quote_mint"+ }+ ],+ "program": {+ "kind": "account",+ "path": "associated_token_program"+ }+ }+ }+ ],+ "args": [+ {+ "name": "shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ }+ ]+ },+ {+ "name": "update_stable_fee_config",+ "docs": [+ "Set/Replace fee parameters entirely (only callable by admin)"+ ],+ "discriminator": [+ 107,+ 169,+ 100,+ 179,+ 134,+ 155,+ 146,+ 221+ ],+ "accounts": [+ {+ "name": "fee_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "config_program_id"+ }+ ]+ }+ },+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "fee_config"+ ]+ },+ {+ "name": "config_program_id"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ }+ ]+ },+ {+ "name": "upsert_fee_tiers",+ "docs": [+ "Update or expand fee tiers (only callable by admin)"+ ],+ "discriminator": [+ 227,+ 23,+ 150,+ 12,+ 77,+ 86,+ 94,+ 4+ ],+ "accounts": [+ {+ "name": "fee_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "config_program_id"+ }+ ]+ }+ },+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "fee_config"+ ]+ },+ {+ "name": "config_program_id"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "offset",+ "type": "u8"+ }+ ]+ },+ {+ "name": "upsert_stable_fee_tiers",+ "docs": [+ "Update or expand fee tiers (only callable by admin)"+ ],+ "discriminator": [+ 181,+ 160,+ 162,+ 252,+ 74,+ 76,+ 224,+ 221+ ],+ "accounts": [+ {+ "name": "fee_config",+ "writable": true,+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 102,+ 101,+ 101,+ 95,+ 99,+ 111,+ 110,+ 102,+ 105,+ 103+ ]+ },+ {+ "kind": "account",+ "path": "config_program_id"+ }+ ]+ }+ },+ {+ "name": "admin",+ "signer": true,+ "relations": [+ "fee_config"+ ]+ },+ {+ "name": "config_program_id"+ },+ {+ "name": "event_authority",+ "pda": {+ "seeds": [+ {+ "kind": "const",+ "value": [+ 95,+ 95,+ 101,+ 118,+ 101,+ 110,+ 116,+ 95,+ 97,+ 117,+ 116,+ 104,+ 111,+ 114,+ 105,+ 116,+ 121+ ]+ }+ ]+ }+ },+ {+ "name": "program"+ }+ ],+ "args": [+ {+ "name": "fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "offset",+ "type": "u8"+ }+ ]+ }+ ],+ "accounts": [+ {+ "name": "BondingCurve",+ "discriminator": [+ 23,+ 183,+ 248,+ 55,+ 96,+ 216,+ 172,+ 96+ ]+ },+ {+ "name": "BuybackVault",+ "discriminator": [+ 153,+ 166,+ 71,+ 144,+ 179,+ 189,+ 137,+ 251+ ]+ },+ {+ "name": "DonationFeePda",+ "discriminator": [+ 246,+ 197,+ 96,+ 9,+ 193,+ 30,+ 93,+ 115+ ]+ },+ {+ "name": "FeeConfig",+ "discriminator": [+ 143,+ 52,+ 146,+ 187,+ 219,+ 123,+ 76,+ 155+ ]+ },+ {+ "name": "FeeProgramGlobal",+ "discriminator": [+ 162,+ 165,+ 245,+ 49,+ 29,+ 37,+ 55,+ 242+ ]+ },+ {+ "name": "Global",+ "discriminator": [+ 167,+ 232,+ 232,+ 177,+ 200,+ 108,+ 114,+ 127+ ]+ },+ {+ "name": "Pool",+ "discriminator": [+ 241,+ 154,+ 109,+ 4,+ 17,+ 177,+ 109,+ 188+ ]+ },+ {+ "name": "SharingConfig",+ "discriminator": [+ 216,+ 74,+ 9,+ 0,+ 56,+ 140,+ 93,+ 75+ ]+ },+ {+ "name": "SocialFeePda",+ "discriminator": [+ 139,+ 96,+ 53,+ 17,+ 42,+ 169,+ 206,+ 150+ ]+ }+ ],+ "events": [+ {+ "name": "CreateFeeSharingConfigEvent",+ "discriminator": [+ 133,+ 105,+ 170,+ 200,+ 184,+ 116,+ 251,+ 88+ ]+ },+ {+ "name": "DonationFeePdaCranked",+ "discriminator": [+ 30,+ 208,+ 107,+ 93,+ 177,+ 0,+ 223,+ 78+ ]+ },+ {+ "name": "DonationFeePdaCreated",+ "discriminator": [+ 94,+ 20,+ 137,+ 239,+ 35,+ 77,+ 225,+ 235+ ]+ },+ {+ "name": "ExtendFeeConfigEvent",+ "discriminator": [+ 226,+ 203,+ 224,+ 35,+ 153,+ 10,+ 88,+ 51+ ]+ },+ {+ "name": "InitializeFeeConfigEvent",+ "discriminator": [+ 89,+ 138,+ 244,+ 230,+ 10,+ 56,+ 226,+ 126+ ]+ },+ {+ "name": "InitializeFeeProgramGlobalEvent",+ "discriminator": [+ 40,+ 233,+ 156,+ 78,+ 95,+ 0,+ 8,+ 199+ ]+ },+ {+ "name": "ResetFeeSharingConfigEvent",+ "discriminator": [+ 203,+ 204,+ 151,+ 226,+ 120,+ 55,+ 214,+ 243+ ]+ },+ {+ "name": "SetAuthorityEvent",+ "discriminator": [+ 18,+ 175,+ 132,+ 66,+ 208,+ 201,+ 87,+ 242+ ]+ },+ {+ "name": "SetClaimRateLimitEvent",+ "discriminator": [+ 13,+ 143,+ 143,+ 235,+ 181,+ 19,+ 51,+ 40+ ]+ },+ {+ "name": "SetDisableFlagsEvent",+ "discriminator": [+ 5,+ 8,+ 179,+ 65,+ 49,+ 55,+ 145,+ 126+ ]+ },+ {+ "name": "SetSocialClaimAuthorityEvent",+ "discriminator": [+ 60,+ 118,+ 127,+ 132,+ 239,+ 52,+ 254,+ 14+ ]+ },+ {+ "name": "SocialFeePdaClaimed",+ "discriminator": [+ 50,+ 18,+ 193,+ 65,+ 237,+ 210,+ 234,+ 236+ ]+ },+ {+ "name": "SocialFeePdaCreated",+ "discriminator": [+ 183,+ 183,+ 218,+ 147,+ 24,+ 124,+ 137,+ 169+ ]+ },+ {+ "name": "SweepBuybackEvent",+ "discriminator": [+ 43,+ 56,+ 42,+ 214,+ 153,+ 57,+ 166,+ 137+ ]+ },+ {+ "name": "UpdateAdminEvent",+ "discriminator": [+ 225,+ 152,+ 171,+ 87,+ 246,+ 63,+ 66,+ 234+ ]+ },+ {+ "name": "UpdateFeeConfigEvent",+ "discriminator": [+ 90,+ 23,+ 65,+ 35,+ 62,+ 244,+ 188,+ 208+ ]+ },+ {+ "name": "UpdateFeeSharesEvent",+ "discriminator": [+ 21,+ 186,+ 196,+ 184,+ 91,+ 228,+ 225,+ 203+ ]+ },+ {+ "name": "UpdateStableFeeConfigEvent",+ "discriminator": [+ 94,+ 5,+ 43,+ 237,+ 103,+ 147,+ 232,+ 245+ ]+ },+ {+ "name": "UpsertFeeTiersEvent",+ "discriminator": [+ 171,+ 89,+ 169,+ 187,+ 122,+ 186,+ 33,+ 204+ ]+ },+ {+ "name": "UpsertStableFeeTiersEvent",+ "discriminator": [+ 232,+ 237,+ 237,+ 52,+ 98,+ 146,+ 73,+ 243+ ]+ }+ ],+ "errors": [+ {+ "code": 6000,+ "name": "UnauthorizedProgram",+ "msg": "Only Pump and PumpSwap programs can call this instruction"+ },+ {+ "code": 6001,+ "name": "InvalidAdmin",+ "msg": "Invalid admin"+ },+ {+ "code": 6002,+ "name": "NoFeeTiers",+ "msg": "No fee tiers provided"+ },+ {+ "code": 6003,+ "name": "TooManyFeeTiers",+ "msg": "format"+ },+ {+ "code": 6004,+ "name": "OffsetNotContinuous",+ "msg": "The offset should be <= fee_config.fee_tiers.len()"+ },+ {+ "code": 6005,+ "name": "FeeTiersNotSorted",+ "msg": "Fee tiers must be sorted by market cap threshold (ascending)"+ },+ {+ "code": 6006,+ "name": "InvalidFeeTotal",+ "msg": "Fee total must not exceed 10_000bps"+ },+ {+ "code": 6007,+ "name": "InvalidSharingConfig",+ "msg": "Invalid Sharing Config"+ },+ {+ "code": 6008,+ "name": "InvalidPool",+ "msg": "Invalid Pool"+ },+ {+ "code": 6009,+ "name": "SharingConfigAdminRevoked",+ "msg": "Sharing config authority has been revoked - sharing config can only be updated once"+ },+ {+ "code": 6010,+ "name": "NoShareholders",+ "msg": "No shareholders provided"+ },+ {+ "code": 6011,+ "name": "TooManyShareholders",+ "msg": "format"+ },+ {+ "code": 6012,+ "name": "DuplicateShareholder",+ "msg": "Duplicate shareholder address"+ },+ {+ "code": 6013,+ "name": "NotEnoughRemainingAccounts",+ "msg": "Not enough remaining accounts"+ },+ {+ "code": 6014,+ "name": "InvalidShareTotal",+ "msg": "Invalid share total - must equal 10_000 basis points"+ },+ {+ "code": 6015,+ "name": "ShareCalculationOverflow",+ "msg": "Share calculation overflow"+ },+ {+ "code": 6016,+ "name": "NotAuthorized",+ "msg": "The given account is not authorized to execute this instruction."+ },+ {+ "code": 6017,+ "name": "ZeroShareNotAllowed",+ "msg": "Shareholder cannot have zero share"+ },+ {+ "code": 6018,+ "name": "SharingConfigNotActive",+ "msg": "Fee sharing config is not active"+ },+ {+ "code": 6019,+ "name": "AmmAccountsRequiredForGraduatedCoin",+ "msg": "AMM accounts are required for graduated coins"+ },+ {+ "code": 6020,+ "name": "ShareholderAccountMismatch",+ "msg": "Remaining account key doesn't match shareholder address"+ },+ {+ "code": 6021,+ "name": "FeatureDeactivated",+ "msg": "Feature is currently deactivated"+ },+ {+ "code": 6022,+ "name": "UserIdTooLong",+ "msg": "User ID exceeds maximum length"+ },+ {+ "code": 6023,+ "name": "DeprecatedInstruction",+ "msg": "Instruction is deprecated"+ },+ {+ "code": 6024,+ "name": "FeeSharesAlreadyUpdated",+ "msg": "Reward split can only be updated once"+ },+ {+ "code": 6025,+ "name": "MathOverflow",+ "msg": "Math overflow"+ },+ {+ "code": 6026,+ "name": "InvalidBuybackIndex",+ "msg": "Invalid buybackindex"+ },+ {+ "code": 6027,+ "name": "ClaimRateLimitExceeded",+ "msg": "Claim rate limit exceeded"+ },+ {+ "code": 6028,+ "name": "InvalidFeeConfigAccount",+ "msg": "Account is not a valid FeeConfig for this instruction"+ },+ {+ "code": 6029,+ "name": "AccountTypeNotSupported",+ "msg": "Account type not supported"+ },+ {+ "code": 6030,+ "name": "InvalidMint",+ "msg": "Mint does not match quote mint"+ },+ {+ "code": 6031,+ "name": "UnsupportedQuoteMint",+ "msg": "Unsupported quote mint"+ }+ ],+ "types": [+ {+ "name": "BondingCurve",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "virtual_token_reserves",+ "type": "u64"+ },+ {+ "name": "virtual_quote_reserves",+ "type": "u64"+ },+ {+ "name": "real_token_reserves",+ "type": "u64"+ },+ {+ "name": "real_quote_reserves",+ "type": "u64"+ },+ {+ "name": "token_total_supply",+ "type": "u64"+ },+ {+ "name": "complete",+ "type": "bool"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "is_mayhem_mode",+ "type": "bool"+ }+ ]+ }+ },+ {+ "name": "BuybackVault",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "authority",+ "type": "pubkey"+ },+ {+ "name": "total_claimed",+ "type": "u64"+ },+ {+ "name": "total_claimed_token1",+ "type": "u64"+ },+ {+ "name": "total_claimed_token2",+ "type": "u64"+ },+ {+ "name": "last_claimed",+ "type": "i64"+ },+ {+ "name": "claim_rate_limit",+ "type": "i64"+ },+ {+ "name": "_reserved",+ "type": {+ "array": [+ "u8",+ 128+ ]+ }+ }+ ]+ }+ },+ {+ "name": "ConfigStatus",+ "type": {+ "kind": "enum",+ "variants": [+ {+ "name": "Paused"+ },+ {+ "name": "Active"+ }+ ]+ }+ },+ {+ "name": "CreateFeeSharingConfigEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "bonding_curve",+ "type": "pubkey"+ },+ {+ "name": "pool",+ "type": {+ "option": "pubkey"+ }+ },+ {+ "name": "sharing_config",+ "type": "pubkey"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "initial_shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ },+ {+ "name": "status",+ "type": {+ "defined": {+ "name": "ConfigStatus"+ }+ }+ }+ ]+ }+ },+ {+ "name": "DonationFeePda",+ "docs": [+ "Escrow PDA for donation relay: one per (mint, donation campaign `config_id`)."+ ],+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "bump",+ "type": "u8"+ },+ {+ "name": "version",+ "type": "u8"+ },+ {+ "name": "config_id",+ "type": "pubkey"+ },+ {+ "name": "base_mint",+ "type": "pubkey"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "total_donated",+ "type": "u64"+ },+ {+ "name": "last_crank_ts",+ "type": "i64"+ },+ {+ "name": "_reserved",+ "type": {+ "array": [+ "u8",+ 64+ ]+ }+ }+ ]+ }+ },+ {+ "name": "DonationFeePdaCranked",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "signer",+ "type": "pubkey"+ },+ {+ "name": "donation_fee_pda",+ "type": "pubkey"+ },+ {+ "name": "config_id",+ "type": "pubkey"+ },+ {+ "name": "base_mint",+ "type": "pubkey"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "amount",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "DonationFeePdaCreated",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "created_by",+ "type": "pubkey"+ },+ {+ "name": "donation_fee_pda",+ "type": "pubkey"+ },+ {+ "name": "config_id",+ "type": "pubkey"+ },+ {+ "name": "base_mint",+ "type": "pubkey"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "creator",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "ExtendFeeConfigEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "fee_config",+ "type": "pubkey"+ },+ {+ "name": "user",+ "type": "pubkey"+ },+ {+ "name": "current_size",+ "type": "u64"+ },+ {+ "name": "new_size",+ "type": "u64"+ },+ {+ "name": "timestamp",+ "type": "i64"+ }+ ]+ }+ },+ {+ "name": "FeeConfig",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "bump",+ "docs": [+ "The bump for the PDA"+ ],+ "type": "u8"+ },+ {+ "name": "admin",+ "docs": [+ "The admin account that can update the fee config"+ ],+ "type": "pubkey"+ },+ {+ "name": "flat_fees",+ "docs": [+ "The flat fees for non-pump pools"+ ],+ "type": {+ "defined": {+ "name": "Fees"+ }+ }+ },+ {+ "name": "fee_tiers",+ "docs": [+ "The fee tiers"+ ],+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "stable_fee_tiers",+ "docs": [+ "The fee tiers"+ ],+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ }+ ]+ }+ },+ {+ "name": "FeeProgramGlobal",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "bump",+ "type": "u8"+ },+ {+ "name": "authority",+ "type": "pubkey"+ },+ {+ "name": "disable_flags",+ "type": "u8"+ },+ {+ "name": "social_claim_authority",+ "type": "pubkey"+ },+ {+ "name": "claim_rate_limit",+ "type": "u64"+ },+ {+ "name": "_reserved",+ "type": {+ "array": [+ "u8",+ 256+ ]+ }+ }+ ]+ }+ },+ {+ "name": "FeeTier",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "market_cap_lamports_threshold",+ "type": "u128"+ },+ {+ "name": "fees",+ "type": {+ "defined": {+ "name": "Fees"+ }+ }+ }+ ]+ }+ },+ {+ "name": "Fees",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "lp_fee_bps",+ "type": "u64"+ },+ {+ "name": "protocol_fee_bps",+ "type": "u64"+ },+ {+ "name": "creator_fee_bps",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "Global",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "initialized",+ "type": "bool"+ },+ {+ "name": "authority",+ "type": "pubkey"+ },+ {+ "name": "fee_recipient",+ "type": "pubkey"+ },+ {+ "name": "initial_virtual_token_reserves",+ "type": "u64"+ },+ {+ "name": "initial_virtual_sol_reserves",+ "type": "u64"+ },+ {+ "name": "initial_real_token_reserves",+ "type": "u64"+ },+ {+ "name": "token_total_supply",+ "type": "u64"+ },+ {+ "name": "fee_basis_points",+ "type": "u64"+ },+ {+ "name": "withdraw_authority",+ "type": "pubkey"+ },+ {+ "name": "enable_migrate",+ "type": "bool"+ },+ {+ "name": "pool_migration_fee",+ "type": "u64"+ },+ {+ "name": "creator_fee_basis_points",+ "type": "u64"+ },+ {+ "name": "fee_recipients",+ "type": {+ "array": [+ "pubkey",+ 7+ ]+ }+ },+ {+ "name": "set_creator_authority",+ "type": "pubkey"+ },+ {+ "name": "admin_set_creator_authority",+ "type": "pubkey"+ },+ {+ "name": "create_v2_enabled",+ "type": "bool"+ },+ {+ "name": "whitelist_pda",+ "type": "pubkey"+ },+ {+ "name": "reserved_fee_recipient",+ "type": "pubkey"+ },+ {+ "name": "mayhem_mode_enabled",+ "type": "bool"+ },+ {+ "name": "reserved_fee_recipients",+ "type": {+ "array": [+ "pubkey",+ 7+ ]+ }+ }+ ]+ }+ },+ {+ "name": "InitializeFeeConfigEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "fee_config",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "InitializeFeeProgramGlobalEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "authority",+ "type": "pubkey"+ },+ {+ "name": "social_claim_authority",+ "type": "pubkey"+ },+ {+ "name": "disable_flags",+ "type": "u8"+ },+ {+ "name": "claim_rate_limit",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "OptionBool",+ "type": {+ "kind": "struct",+ "fields": [+ "bool"+ ]+ }+ },+ {+ "name": "Pool",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "pool_bump",+ "type": "u8"+ },+ {+ "name": "index",+ "type": "u16"+ },+ {+ "name": "creator",+ "type": "pubkey"+ },+ {+ "name": "base_mint",+ "type": "pubkey"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "lp_mint",+ "type": "pubkey"+ },+ {+ "name": "pool_base_token_account",+ "type": "pubkey"+ },+ {+ "name": "pool_quote_token_account",+ "type": "pubkey"+ },+ {+ "name": "lp_supply",+ "type": "u64"+ },+ {+ "name": "coin_creator",+ "type": "pubkey"+ },+ {+ "name": "is_mayhem_mode",+ "type": "bool"+ }+ ]+ }+ },+ {+ "name": "ResetFeeSharingConfigEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "sharing_config",+ "type": "pubkey"+ },+ {+ "name": "old_admin",+ "type": "pubkey"+ },+ {+ "name": "old_shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ },+ {+ "name": "new_admin",+ "type": "pubkey"+ },+ {+ "name": "new_shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ },+ {+ "name": "old_version",+ "type": "u8"+ },+ {+ "name": "new_version",+ "type": "u8"+ }+ ]+ }+ },+ {+ "name": "SetAuthorityEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "old_authority",+ "type": "pubkey"+ },+ {+ "name": "new_authority",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "SetClaimRateLimitEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "claim_rate_limit",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "SetDisableFlagsEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "disable_flags",+ "type": "u8"+ }+ ]+ }+ },+ {+ "name": "SetSocialClaimAuthorityEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "social_claim_authority",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "Shareholder",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "address",+ "type": "pubkey"+ },+ {+ "name": "share_bps",+ "type": "u16"+ }+ ]+ }+ },+ {+ "name": "SharingConfig",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "bump",+ "type": "u8"+ },+ {+ "name": "version",+ "type": "u8"+ },+ {+ "name": "status",+ "type": {+ "defined": {+ "name": "ConfigStatus"+ }+ }+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "admin_revoked",+ "type": "bool"+ },+ {+ "name": "shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ }+ ]+ }+ },+ {+ "name": "SocialFeePda",+ "docs": [+ "Platform identifier: 0=pump, 1=twitter, etc."+ ],+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "bump",+ "type": "u8"+ },+ {+ "name": "version",+ "type": "u8"+ },+ {+ "name": "user_id",+ "docs": [+ "Max 20 characters to fit u64::MAX (18,446,744,073,709,551,615) as a string.",+ "Actual storage: 4 bytes (length prefix) + 20 bytes (content) = 24 bytes."+ ],+ "type": "string"+ },+ {+ "name": "platform",+ "type": "u8"+ },+ {+ "name": "total_claimed",+ "type": "u64"+ },+ {+ "name": "last_claimed",+ "type": "u64"+ },+ {+ "name": "total_stable_claimed",+ "type": "u64"+ },+ {+ "name": "_reserved",+ "type": {+ "array": [+ "u8",+ 120+ ]+ }+ }+ ]+ }+ },+ {+ "name": "SocialFeePdaClaimed",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "user_id",+ "type": "string"+ },+ {+ "name": "platform",+ "type": "u8"+ },+ {+ "name": "social_fee_pda",+ "type": "pubkey"+ },+ {+ "name": "recipient",+ "type": "pubkey"+ },+ {+ "name": "social_claim_authority",+ "type": "pubkey"+ },+ {+ "name": "amount_claimed",+ "type": "u64"+ },+ {+ "name": "claimable_before",+ "type": "u64"+ },+ {+ "name": "lifetime_claimed",+ "type": "u64"+ },+ {+ "name": "recipient_balance_before",+ "type": "u64"+ },+ {+ "name": "recipient_balance_after",+ "type": "u64"+ },+ {+ "name": "quote_mint",+ "type": "pubkey"+ },+ {+ "name": "lifetime_stable_claimed",+ "type": "u64"+ }+ ]+ }+ },+ {+ "name": "SocialFeePdaCreated",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "user_id",+ "type": "string"+ },+ {+ "name": "platform",+ "type": "u8"+ },+ {+ "name": "social_fee_pda",+ "type": "pubkey"+ },+ {+ "name": "created_by",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "SweepBuybackEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "index",+ "type": "u8"+ },+ {+ "name": "sol_amount",+ "type": "u64"+ },+ {+ "name": "token_amount",+ "type": "u64"+ },+ {+ "name": "destination",+ "type": "pubkey"+ },+ {+ "name": "buyback_vault",+ "type": "pubkey"+ },+ {+ "name": "mint",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "UpdateAdminEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "old_admin",+ "type": "pubkey"+ },+ {+ "name": "new_admin",+ "type": "pubkey"+ }+ ]+ }+ },+ {+ "name": "UpdateFeeConfigEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "fee_config",+ "type": "pubkey"+ },+ {+ "name": "fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "flat_fees",+ "type": {+ "defined": {+ "name": "Fees"+ }+ }+ }+ ]+ }+ },+ {+ "name": "UpdateFeeSharesEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "mint",+ "type": "pubkey"+ },+ {+ "name": "sharing_config",+ "type": "pubkey"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "new_shareholders",+ "type": {+ "vec": {+ "defined": {+ "name": "Shareholder"+ }+ }+ }+ },+ {+ "name": "version",+ "type": "u8"+ }+ ]+ }+ },+ {+ "name": "UpdateStableFeeConfigEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "fee_config",+ "type": "pubkey"+ },+ {+ "name": "stable_fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "flat_fees",+ "type": {+ "defined": {+ "name": "Fees"+ }+ }+ }+ ]+ }+ },+ {+ "name": "UpsertFeeTiersEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "fee_config",+ "type": "pubkey"+ },+ {+ "name": "fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "offset",+ "type": "u8"+ }+ ]+ }+ },+ {+ "name": "UpsertStableFeeTiersEvent",+ "type": {+ "kind": "struct",+ "fields": [+ {+ "name": "timestamp",+ "type": "i64"+ },+ {+ "name": "admin",+ "type": "pubkey"+ },+ {+ "name": "fee_config",+ "type": "pubkey"+ },+ {+ "name": "stable_fee_tiers",+ "type": {+ "vec": {+ "defined": {+ "name": "FeeTier"+ }+ }+ }+ },+ {+ "name": "offset",+ "type": "u8"+ }+ ]+ }+ }+ ],+ "constants": [+ {+ "name": "AMM_CREATOR_VAULT_AUTHORITY_SEED",+ "type": {+ "array": [+ "u8",+ 13+ ]+ },+ "value": "[99, 114, 101, 97, 116, 111, 114, 95, 118, 97, 117, 108, 116]"+ },+ {+ "name": "BUYBACK_VAULT_SEED",+ "type": {+ "array": [+ "u8",+ 13+ ]+ },+ "value": "[98, 117, 121, 98, 97, 99, 107, 45, 118, 97, 117, 108, 116]"+ },+ {+ "name": "DEBOUNCER_V1",+ "type": "bytes",+ "value": "[100, 101, 98, 111, 117, 110, 99, 101, 114, 95, 118, 49]"+ },+ {+ "name": "DONATION_FEE_PDA_SEED",+ "type": {+ "array": [+ "u8",+ 16+ ]+ },+ "value": "[100, 111, 110, 97, 116, 105, 111, 110, 45, 102, 101, 101, 45, 112, 100, 97]"+ },+ {+ "name": "EPOCH_TRACKER_V1",+ "type": "bytes",+ "value": "[101, 112, 111, 99, 104, 95, 116, 114, 97, 99, 107, 101, 114, 95, 118, 49]"+ },+ {+ "name": "FEE_CONFIG_SEED",+ "type": "bytes",+ "value": "[102, 101, 101, 95, 99, 111, 110, 102, 105, 103]"+ },+ {+ "name": "FEE_PROGRAM_GLOBAL_SEED",+ "type": {+ "array": [+ "u8",+ 18+ ]+ },+ "value": "[102, 101, 101, 45, 112, 114, 111, 103, 114, 97, 109, 45, 103, 108, 111, 98, 97, 108]"+ },+ {+ "name": "IX_DONATE_PUBKEY_CONFIG_ID_WITH_PAYER_V1",+ "type": {+ "array": [+ "u8",+ 8+ ]+ },+ "value": "[120, 217, 57, 241, 135, 104, 139, 184]"+ },+ {+ "name": "MAX_BUYBACK_INDEX",+ "type": "u8",+ "value": "8"+ },+ {+ "name": "MINT_WHITELIST_V1",+ "type": "bytes",+ "value": "[109, 105, 110, 116, 95, 119, 104, 105, 116, 101, 108, 105, 115, 116, 95, 118, 49]"+ },+ {+ "name": "PUMP_CREATOR_VAULT_SEED",+ "type": {+ "array": [+ "u8",+ 13+ ]+ },+ "value": "[99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116]"+ },+ {+ "name": "PUMP_GLOBAL_SEED",+ "docs": [+ "Bonding Curve Program Global Seed"+ ],+ "type": {+ "array": [+ "u8",+ 6+ ]+ },+ "value": "[103, 108, 111, 98, 97, 108]"+ },+ {+ "name": "SHARING_CONFIG_SEED",+ "type": {+ "array": [+ "u8",+ 14+ ]+ },+ "value": "[115, 104, 97, 114, 105, 110, 103, 45, 99, 111, 110, 102, 105, 103]"+ },+ {+ "name": "SOCIAL_FEE_PDA_SEED",+ "type": {+ "array": [+ "u8",+ 14+ ]+ },+ "value": "[115, 111, 99, 105, 97, 108, 45, 102, 101, 101, 45, 112, 100, 97]"+ }+ ]+}\ No newline at end of filediff --git a/package-lock.json b/package-lock.jsonindex e901ec0ff..56bd143c1 100644--- a/package-lock.json+++ b/package-lock.json@@ -61,7 +61,7 @@"@privy-io/js-sdk-core": "^0.67.0","@pump-fun/agent-payments-sdk": "^3.1.0","@pump-fun/pump-sdk": "^1.36.0",- "@pump-fun/pump-swap-sdk": "^1.16.0",+ "@pump-fun/pump-swap-sdk": "^1.17.0","@pythnetwork/hermes-client": "^3.1.0","@recast-navigation/core": "^0.43.1","@recast-navigation/three": "^0.43.1",diff --git a/package.json b/package.jsonindex 5fc32fa1b..4d668bb84 100644--- a/package.json+++ b/package.json@@ -58,6 +58,7 @@"dev:multi": "npm run dev --prefix multiplayer","dev:walk-all": "node scripts/dev-walk-all.mjs","dev:lib": "TARGET=lib vite",+ "presence": "node scripts/three-ws-presence.mjs","build:pages": "node scripts/build-page-index.mjs","audit:pages": "node scripts/audit-page-index.mjs","audit:web": "node scripts/page-audit.mjs",@@ -148,7 +149,7 @@"@privy-io/js-sdk-core": "^0.67.0","@pump-fun/agent-payments-sdk": "^3.1.0","@pump-fun/pump-sdk": "^1.36.0",- "@pump-fun/pump-swap-sdk": "^1.16.0",+ "@pump-fun/pump-swap-sdk": "^1.17.0","@pythnetwork/hermes-client": "^3.1.0","@recast-navigation/core": "^0.43.1","@recast-navigation/three": "^0.43.1",diff --git a/scripts/three-ws-presence.mjs b/scripts/three-ws-presence.mjsnew file mode 100644index 000000000..bf27cbff0--- /dev/null+++ b/scripts/three-ws-presence.mjs@@ -0,0 +1,600 @@+#!/usr/bin/env node+// Aggregate everywhere three.ws shows up across the web into one deduped map.+//+// Pulls from a set of providers, normalizes every hit to {url,title,snippet,source,+// date}, dedupes by canonical URL, and writes:+// • three-ws-presence.json — structured results + per-provider run report+// • three-ws-presence.md — human-readable report you can paste into X+//+// Keyless providers always run (real data, no signup):+// • GDELT — global news index+// • MCP Registry — your live Model Context Protocol server listings+// • npm — package metadata + download counts+// • GitHub — repo stats + repos that mention three.ws (anon, rate-limited)+//+// Keyed providers run only when their env var is present (otherwise skipped, logged):+// • Serper SERPER_API_KEY (google.serper.dev)+// • Exa EXA_API_KEY (api.exa.ai)+// • Brave BRAVE_API_KEY (api.search.brave.com)+// • Tavily TAVILY_API_KEY (api.tavily.com)+// • SerpApi SERPAPI_API_KEY (serpapi.com)+// • GitHub PAT GITHUB_TOKEN (raises GitHub rate limits, enables code search)+//+// Usage:+// node scripts/three-ws-presence.mjs+// node scripts/three-ws-presence.mjs --query "three.ws" --query "trythreews"+// node scripts/three-ws-presence.mjs --json out.json --md out.md+//+// Add keys to .env (same file the rest of the repo reads) to light up more sources.++import fs from 'node:fs/promises';+import path from 'node:path';++const ROOT = path.resolve(import.meta.dirname, '..');+const ENV_PATH = path.join(ROOT, '.env');++// ── Defaults ────────────────────────────────────────────────────────────────+const SITE = 'three.ws';+const HANDLE = 'trythreews';+const CONTRACT = 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump';+const DEFAULT_QUERIES = [`"${SITE}"`, HANDLE, `"3D AI agent" ${SITE}`, CONTRACT];+const NPM_PACKAGES = ['three.ws', '@three-ws/avatar-agent'];+const GITHUB_REPO = 'nirholas/three.ws';+const REQUEST_TIMEOUT_MS = 20_000;+const GDELT_THROTTLE_MS = 5_200; // GDELT allows one request per 5 seconds++const sleep = (ms) => new Promise((r) => setTimeout(r, ms));++// ── Tiny arg parser ───────────────────────────────────────────────────────────+function parseArgs(argv) {+ const out = { queries: [], json: 'three-ws-presence.json', md: 'three-ws-presence.md' };+ for (let i = 0; i < argv.length; i++) {+ const a = argv[i];+ if (a === '--query' || a === '-q') out.queries.push(argv[++i]);+ else if (a === '--json') out.json = argv[++i];+ else if (a === '--md') out.md = argv[++i];+ else if (a === '--help' || a === '-h') out.help = true;+ }+ if (!out.queries.length) out.queries = DEFAULT_QUERIES;+ return out;+}++async function loadEnv() {+ try {+ const raw = await fs.readFile(ENV_PATH, 'utf8');+ for (const line of raw.split('\n')) {+ const m = line.match(/^([A-Z_][A-Z0-9_]*)=(.*)$/);+ if (m && !process.env[m[1]]) process.env[m[1]] = m[2].replace(/^["']|["']$/g, '');+ }+ } catch {+ /* no .env — env vars may still come from the shell */+ }+}++// ── HTTP helper with timeout; never throws past the caller's try ──────────────+async function getJson(url, opts = {}) {+ const ctrl = new AbortController();+ const timer = setTimeout(() => ctrl.abort(), REQUEST_TIMEOUT_MS);+ try {+ const res = await fetch(url, {+ ...opts,+ signal: ctrl.signal,+ headers: { 'user-agent': 'three-ws-presence/1.0', ...(opts.headers || {}) },+ });+ const text = await res.text();+ let body;+ try {+ body = JSON.parse(text);+ } catch {+ body = null;+ }+ if (!res.ok) throw new Error(`HTTP ${res.status}: ${text.slice(0, 200)}`);+ if (body === null) throw new Error(`non-JSON response: ${text.slice(0, 120)}`);+ return body;+ } finally {+ clearTimeout(timer);+ }+}++// ── URL canonicalization for dedupe ───────────────────────────────────────────+function canonicalUrl(raw) {+ if (!raw) return '';+ try {+ const u = new URL(raw.trim());+ u.hash = '';+ for (const p of [...u.searchParams.keys()]) {+ if (/^utm_|^ref$|^ref_src$|^s$|^t$/i.test(p)) u.searchParams.delete(p);+ }+ let s = u.toString().replace(/\/$/, '');+ return s.replace(/^http:/, 'https:');+ } catch {+ return raw.trim();+ }+}++function hostOf(url) {+ try {+ return new URL(url).host.replace(/^www\./, '');+ } catch {+ return '';+ }+}++function hit({ url, title, snippet, date, source }) {+ return {+ url: canonicalUrl(url),+ host: hostOf(url),+ title: (title || '').trim(),+ snippet: (snippet || '').trim().slice(0, 280),+ date: date || '',+ source,+ };+}++// ── Providers ─────────────────────────────────────────────────────────────────+// Each returns { name, ran, skippedReason?, hits: [], extra?: {} } and never throws.++async function providerGdelt(queries) {+ const hits = [];+ let rateLimited = false;+ for (let i = 0; i < queries.length; i++) {+ const q = queries[i];+ if (i > 0) await sleep(GDELT_THROTTLE_MS); // stay under the 1-req/5s ceiling+ const url =+ 'https://api.gdeltproject.org/api/v2/doc/doc?' ++ new URLSearchParams({+ query: q,+ mode: 'ArtList',+ format: 'json',+ maxrecords: '75',+ sort: 'DateDesc',+ });+ // One retry on 429, since GDELT throttles by source IP (shared on CI/codespaces).+ for (let attempt = 0; attempt < 2; attempt++) {+ try {+ const body = await getJson(url);+ for (const a of body.articles || [])+ hits.push(+ hit({ url: a.url, title: a.title, snippet: a.domain, date: a.seendate, source: 'gdelt' })+ );+ break;+ } catch (err) {+ if (err.message.includes('429')) {+ rateLimited = true;+ if (attempt === 0) {+ await sleep(GDELT_THROTTLE_MS);+ continue;+ }+ }+ if (process.env.DEBUG) console.error(` gdelt "${q}": ${err.message}`);+ break;+ }+ }+ }+ const note = rateLimited && !hits.length ? 'rate-limited by GDELT (shared IP); retry from another host' : undefined;+ return { name: 'gdelt', ran: true, note, hits };+}++async function providerMcpRegistry() {+ const hits = [];+ const seen = new Set();+ for (const q of ['threews', 'three.ws', 'nirholas', 'avatar-agent']) {+ try {+ const url =+ 'https://registry.modelcontextprotocol.io/v0/servers?' ++ new URLSearchParams({ search: q, limit: '50' });+ const body = await getJson(url);+ const servers = body.servers || body.data || [];+ for (const entry of servers) {+ const s = entry.server || entry;+ const name = s.name || s.id || '';+ if (!name || seen.has(name)) continue;+ seen.add(name);+ const repo = s.repository?.url || s.repository?.source || '';+ hits.push(+ hit({+ url: repo || `https://registry.modelcontextprotocol.io/?q=${encodeURIComponent(name)}`,+ title: name,+ snippet: s.description || '',+ date: s.version || s._meta?.['io.modelcontextprotocol.registry/official']?.publishedAt || '',+ source: 'mcp-registry',+ })+ );+ }+ } catch (err) {+ if (process.env.DEBUG) console.error(` mcp "${q}": ${err.message}`);+ }+ }+ return { name: 'mcp-registry', ran: true, hits };+}++async function providerNpm() {+ const hits = [];+ const extra = {};+ for (const pkg of NPM_PACKAGES) {+ const enc = encodeURIComponent(pkg).replace('%40', '@');+ try {+ const meta = await getJson(`https://registry.npmjs.org/${enc}`);+ const latest = meta['dist-tags']?.latest;+ let downloads = null;+ try {+ const dl = await getJson(+ `https://api.npmjs.org/downloads/point/last-month/${enc}`+ );+ downloads = dl.downloads ?? null;+ } catch {+ /* downloads endpoint 404s for brand-new packages */+ }+ extra[pkg] = { latest, downloads, modified: meta.time?.modified };+ hits.push(+ hit({+ url: `https://www.npmjs.com/package/${pkg}`,+ title: `${pkg}@${latest || '?'}`,+ snippet: `${meta.description || ''}${+ downloads != null ? ` — ${downloads} downloads/mo` : ''+ }`,+ date: meta.time?.modified,+ source: 'npm',+ })+ );+ } catch (err) {+ if (process.env.DEBUG) console.error(` npm "${pkg}": ${err.message}`);+ }+ }+ return { name: 'npm', ran: true, hits, extra };+}++async function providerGithub(queries) {+ const token = process.env.GITHUB_TOKEN || process.env.GH_TOKEN;+ const headers = {+ accept: 'application/vnd.github+json',+ 'x-github-api-version': '2022-11-28',+ };+ if (token) headers.authorization = `Bearer ${token}`;+ const hits = [];+ const extra = {};++ try {+ const repo = await getJson(`https://api.github.com/repos/${GITHUB_REPO}`, { headers });+ extra.repo = {+ stars: repo.stargazers_count,+ forks: repo.forks_count,+ watchers: repo.subscribers_count,+ openIssues: repo.open_issues_count,+ };+ hits.push(+ hit({+ url: repo.html_url,+ title: `${repo.full_name} (${repo.stargazers_count}★)`,+ snippet: repo.description || '',+ date: repo.pushed_at,+ source: 'github',+ })+ );+ } catch (err) {+ if (process.env.DEBUG) console.error(` github repo: ${err.message}`);+ }++ // Repo search on the bare domain is noisy (GitHub loosely tokenizes "three.ws"),+ // so keep only repos that are actually ours or that name the project.+ const RELEVANT = /three\.ws|trythreews|three-ws|3d ai agent/i;+ try {+ const search = await getJson(+ `https://api.github.com/search/repositories?` ++ new URLSearchParams({ q: `"three.ws"`, sort: 'stars', per_page: '30' }),+ { headers }+ );+ for (const r of search.items || []) {+ if (r.full_name === GITHUB_REPO) continue;+ const relevant = r.owner?.login === 'nirholas' || RELEVANT.test(`${r.full_name} ${r.description || ''}`);+ if (!relevant) continue;+ hits.push(+ hit({+ url: r.html_url,+ title: `${r.full_name} (${r.stargazers_count}★)`,+ snippet: r.description || '',+ date: r.pushed_at,+ source: 'github',+ })+ );+ }+ } catch (err) {+ if (process.env.DEBUG) console.error(` github repo search: ${err.message}`);+ }++ // Code search finds repos that integrate three.ws. Requires auth. The bare string+ // "three.ws" tokenizes into common words and floods results, so search only the+ // unambiguous identifiers real integrations actually contain.+ if (token) {+ const codeTerms = ['"@three-ws/avatar-agent"', '"three.ws/api/mcp"', 'trythreews'];+ const seenRepo = new Set();+ for (const term of codeTerms) {+ try {+ const code = await getJson(+ `https://api.github.com/search/code?` ++ new URLSearchParams({ q: term, per_page: '30' }),+ { headers }+ );+ for (const item of code.items || []) {+ const full = item.repository?.full_name;+ if (!full || full === GITHUB_REPO || seenRepo.has(full)) continue;+ seenRepo.add(full);+ hits.push(+ hit({+ url: item.repository.html_url,+ title: `${full} (integrates three.ws)`,+ snippet: item.repository.description || '',+ source: 'github',+ })+ );+ }+ } catch (err) {+ if (process.env.DEBUG) console.error(` github code search ${term}: ${err.message}`);+ }+ await sleep(2_000); // GitHub code search is rate-limited to ~10 req/min+ }+ }++ return {+ name: 'github',+ ran: true,+ note: token+ ? 'authenticated, code search on'+ : 'anonymous (60 req/hr, no code search) — set GITHUB_TOKEN to raise limits',+ hits,+ extra,+ };+}++async function providerSerper(queries) {+ const key = process.env.SERPER_API_KEY;+ if (!key) return { name: 'serper', ran: false, skippedReason: 'SERPER_API_KEY not set', hits: [] };+ const hits = [];+ for (const q of queries) {+ try {+ const body = await getJson('https://google.serper.dev/search', {+ method: 'POST',+ headers: { 'x-api-key': key, 'content-type': 'application/json' },+ body: JSON.stringify({ q, num: 20 }),+ });+ for (const r of body.organic || [])+ hits.push(hit({ url: r.link, title: r.title, snippet: r.snippet, date: r.date, source: 'serper' }));+ for (const r of body.news || [])+ hits.push(hit({ url: r.link, title: r.title, snippet: r.snippet, date: r.date, source: 'serper' }));+ } catch (err) {+ if (process.env.DEBUG) console.error(` serper "${q}": ${err.message}`);+ }+ }+ return { name: 'serper', ran: true, hits };+}++async function providerExa(queries) {+ const key = process.env.EXA_API_KEY;+ if (!key) return { name: 'exa', ran: false, skippedReason: 'EXA_API_KEY not set', hits: [] };+ const hits = [];+ for (const q of queries) {+ try {+ const body = await getJson('https://api.exa.ai/search', {+ method: 'POST',+ headers: { 'x-api-key': key, 'content-type': 'application/json' },+ body: JSON.stringify({ query: q, numResults: 25, type: 'auto' }),+ });+ for (const r of body.results || [])+ hits.push(+ hit({ url: r.url, title: r.title, snippet: r.text || r.summary, date: r.publishedDate, source: 'exa' })+ );+ } catch (err) {+ if (process.env.DEBUG) console.error(` exa "${q}": ${err.message}`);+ }+ }+ return { name: 'exa', ran: true, hits };+}++async function providerBrave(queries) {+ const key = process.env.BRAVE_API_KEY || process.env.BRAVE_SEARCH_API_KEY;+ if (!key) return { name: 'brave', ran: false, skippedReason: 'BRAVE_API_KEY not set', hits: [] };+ const hits = [];+ for (const q of queries) {+ try {+ const url =+ 'https://api.search.brave.com/res/v1/web/search?' ++ new URLSearchParams({ q, count: '20' });+ const body = await getJson(url, {+ headers: { 'x-subscription-token': key, accept: 'application/json' },+ });+ for (const r of body.web?.results || [])+ hits.push(hit({ url: r.url, title: r.title, snippet: r.description, date: r.age, source: 'brave' }));+ } catch (err) {+ if (process.env.DEBUG) console.error(` brave "${q}": ${err.message}`);+ }+ }+ return { name: 'brave', ran: true, hits };+}++async function providerTavily(queries) {+ const key = process.env.TAVILY_API_KEY;+ if (!key) return { name: 'tavily', ran: false, skippedReason: 'TAVILY_API_KEY not set', hits: [] };+ const hits = [];+ for (const q of queries) {+ try {+ const body = await getJson('https://api.tavily.com/search', {+ method: 'POST',+ headers: { authorization: `Bearer ${key}`, 'content-type': 'application/json' },+ body: JSON.stringify({ query: q, max_results: 20, search_depth: 'advanced' }),+ });+ for (const r of body.results || [])+ hits.push(hit({ url: r.url, title: r.title, snippet: r.content, date: r.published_date, source: 'tavily' }));+ } catch (err) {+ if (process.env.DEBUG) console.error(` tavily "${q}": ${err.message}`);+ }+ }+ return { name: 'tavily', ran: true, hits };+}++async function providerSerpApi(queries) {+ const key = process.env.SERPAPI_API_KEY;+ if (!key) return { name: 'serpapi', ran: false, skippedReason: 'SERPAPI_API_KEY not set', hits: [] };+ const hits = [];+ for (const q of queries) {+ try {+ const url =+ 'https://serpapi.com/search.json?' ++ new URLSearchParams({ engine: 'google', q, num: '20', api_key: key });+ const body = await getJson(url);+ for (const r of body.organic_results || [])+ hits.push(hit({ url: r.link, title: r.title, snippet: r.snippet, date: r.date, source: 'serpapi' }));+ } catch (err) {+ if (process.env.DEBUG) console.error(` serpapi "${q}": ${err.message}`);+ }+ }+ return { name: 'serpapi', ran: true, hits };+}++// ── Dedupe + grouping ─────────────────────────────────────────────────────────+function dedupe(allHits) {+ const byUrl = new Map();+ for (const h of allHits) {+ if (!h.url) continue;+ const existing = byUrl.get(h.url);+ if (!existing) {+ byUrl.set(h.url, { ...h, sources: [h.source] });+ } else {+ if (!existing.sources.includes(h.source)) existing.sources.push(h.source);+ if (!existing.title && h.title) existing.title = h.title;+ if (!existing.snippet && h.snippet) existing.snippet = h.snippet;+ if (!existing.date && h.date) existing.date = h.date;+ }+ }+ return [...byUrl.values()].sort((a, b) => a.host.localeCompare(b.host));+}++function buildMarkdown({ generatedAt, queries, report, results, extras }) {+ const byHost = new Map();+ for (const r of results) {+ if (!byHost.has(r.host)) byHost.set(r.host, []);+ byHost.get(r.host).push(r);+ }+ const hosts = [...byHost.keys()].sort();++ const lines = [];+ lines.push(`# three.ws web presence`);+ lines.push('');+ lines.push(`Generated ${generatedAt}`);+ lines.push(`Queries: ${queries.map((q) => `\`${q}\``).join(', ')}`);+ lines.push(`Unique URLs: ${results.length} across ${hosts.length} domains`);+ lines.push('');++ lines.push(`## Providers`);+ for (const p of report) {+ const status = p.ran ? `ran, ${p.hits} hits${p.note ? ` (${p.note})` : ''}` : `skipped: ${p.skippedReason}`;+ lines.push(`- ${p.name}: ${status}`);+ }+ lines.push('');++ if (extras.npm) {+ lines.push(`## npm`);+ for (const [pkg, v] of Object.entries(extras.npm)) {+ lines.push(`- ${pkg}: v${v.latest || '?'}${v.downloads != null ? `, ${v.downloads} downloads/mo` : ''}`);+ }+ lines.push('');+ }+ if (extras.github?.repo) {+ const r = extras.github.repo;+ lines.push(`## GitHub repo`);+ lines.push(`- ${GITHUB_REPO}: ${r.stars}★, ${r.forks} forks, ${r.watchers} watchers, ${r.openIssues} open issues`);+ lines.push('');+ }++ lines.push(`## Every URL, grouped by domain`);+ for (const host of hosts) {+ lines.push('');+ lines.push(`### ${host}`);+ for (const r of byHost.get(host)) {+ const title = r.title || r.url;+ lines.push(`- [${title}](${r.url})${r.snippet ? ` — ${r.snippet}` : ''} _(${r.sources.join(', ')})_`);+ }+ }+ lines.push('');+ return lines.join('\n');+}++// ── Main ──────────────────────────────────────────────────────────────────────+async function main() {+ const args = parseArgs(process.argv.slice(2));+ if (args.help) {+ console.log('Usage: node scripts/three-ws-presence.mjs [--query Q]... [--json file] [--md file]');+ return;+ }+ await loadEnv();++ const generatedAt = new Date().toISOString();+ console.log(`three.ws presence sweep — ${generatedAt}`);+ console.log(`Queries: ${args.queries.join(' | ')}\n`);++ const providers = await Promise.all([+ providerGdelt(args.queries),+ providerMcpRegistry(),+ providerNpm(),+ providerGithub(args.queries),+ providerSerper(args.queries),+ providerExa(args.queries),+ providerBrave(args.queries),+ providerTavily(args.queries),+ providerSerpApi(args.queries),+ ]);++ const allHits = [];+ const report = [];+ const extras = {};+ for (const p of providers) {+ allHits.push(...p.hits);+ report.push({+ name: p.name,+ ran: p.ran,+ hits: p.hits.length,+ note: p.note,+ skippedReason: p.skippedReason,+ });+ if (p.name === 'npm' && p.extra) extras.npm = p.extra;+ if (p.name === 'github' && p.extra) extras.github = p.extra;+ const label = p.ran+ ? `${String(p.hits.length).padStart(3)} hits`+ : `skipped (${p.skippedReason})`;+ console.log(` ${p.name.padEnd(14)} ${label}`);+ }++ const results = dedupe(allHits);+ console.log(`\nDeduped to ${results.length} unique URLs.`);++ const jsonOut = {+ generatedAt,+ queries: args.queries,+ site: SITE,+ handle: HANDLE,+ contract: CONTRACT,+ providers: report,+ extras,+ results,+ };++ const jsonPath = path.isAbsolute(args.json) ? args.json : path.join(ROOT, args.json);+ const mdPath = path.isAbsolute(args.md) ? args.md : path.join(ROOT, args.md);+ await fs.writeFile(jsonPath, JSON.stringify(jsonOut, null, 2));+ await fs.writeFile(mdPath, buildMarkdown({ generatedAt, queries: args.queries, report, results, extras }));++ console.log(`\nWrote ${path.relative(ROOT, jsonPath)} and ${path.relative(ROOT, mdPath)}`);++ const skipped = report.filter((p) => !p.ran);+ if (skipped.length) {+ console.log(+ `\nDormant providers (add the key to .env to enable): ${skipped+ .map((p) => p.name)+ .join(', ')}`+ );+ }+}++main().catch((err) => {+ console.error('presence sweep failed:', err);+ process.exit(1);+});diff --git a/tasks/pumpfun-upstream/01-v2-trade-instructions-usdc-audit.md b/tasks/pumpfun-upstream/01-v2-trade-instructions-usdc-audit.mdnew file mode 100644index 000000000..62714e388--- /dev/null+++ b/tasks/pumpfun-upstream/01-v2-trade-instructions-usdc-audit.md@@ -0,0 +1,88 @@+# Task: Audit our pump.fun buy/sell against the v2 trade interface + decide USDC-quote support++You are a senior engineer working in the **three.ws** repo (`/workspaces/three.ws`).+Read `CLAUDE.md` first and obey it — especially: **only `$THREE` may ever be+referenced**, no mocks/fake data, real SDKs/APIs only, keep the repo clean, and+never push without explicit approval (and then to **both** remotes).++## Background++pump.fun is migrating its bonding-curve program to a **unified v2 trade+interface** so the same account layout works for both SOL-paired and **USDC-paired+("stable paired") meme coins**:++- New instructions: `buy_v2`, `sell_v2`, `buy_exact_quote_in_v2`.+- All accounts mandatory, same order for every coin type (no optional-account+ branching). `quote_mint` is explicit — wrapped SOL+ (`So11111111111111111111111111111111111111112`) for SOL coins, USDC mint for+ USDC coins.+- New mandatory accounts on every buy/sell: `sharing_config`,+ `global_volume_accumulator`, `user_volume_accumulator`,+ `associated_user_volume_accumulator`, `fee_config`, `fee_program`, plus a+ `buybackFeeRecipient` (+ its associated quote ATA).+- `create_v2` coins use **Token-2022** base mints+ (`TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb`); quote and base may use+ different token programs.+- SDK helpers (we depend on `@pump-fun/pump-sdk@^1.36.0`,+ `@pump-fun/pump-swap-sdk@^1.17.0`): `PUMP_SDK.getBuyV2InstructionRaw(...)`,+ `buy_v2_instructions(...)`, and the `sell_v2` equivalents.++The full account lists, arg validation, fee-recipient rules, and SDK call+examples are vendored locally — **read these first**:++- `docs/pumpfun-program/UPSTREAM-buy-sell-v2-announcement.md`+- `docs/pumpfun-program/docs/instructions/BUY.md`+- `docs/pumpfun-program/docs/instructions/SELL.md`+- `docs/pumpfun-program/docs/instructions/COIN_CREATION.md`+- `docs/pumpfun-program/docs/FEE_RECIPIENTS.md`+- `docs/pumpfun-program/idl/pump.json`, `idl/pump_amm.json`, `idl/pump_fees.json`++A prior recon found our code already references `buy_v2`/`sell_v2`,+`user_volume_accumulator`, and `sharing_config`, so this is expected to be mostly+an **audit**, not a rewrite.++## Our code to audit++Start here (grep for `buy_v2|sell_v2|user_volume_accumulator|sharing_config|buyback|fee_config|quote_mint`):++- `api/_lib/pump.js`+- `api/_lib/pump-swap-ix.js`+- `api/pump/[action].js` (the consolidated buy/sell/launch dispatcher)+- `api/_lib/pump-launch.js`, `api/_lib/pump-pricing.js`+- `api/_lib/solana/sdk-bridge.js`+- anything else the grep surfaces++## Goal++1. **Audit** every place we build a bonding-curve buy/sell (and the AMM swap path)+ against the vendored v2 docs + IDLs. For each instruction we build, verify:+ - all mandatory v2 accounts are present, correct, and in the right order;+ - `quote_mint` / token-program handling is correct (wSOL vs USDC; SPL vs+ Token-2022 base mints for `create_v2` coins);+ - `buybackFeeRecipient` + mayhem-vs-normal fee-recipient selection is correct;+ - slippage args (`max_sol_cost` / min-out) and decimals are right.+ - Prefer the SDK's v2 builders over hand-rolled account lists where we can.+2. Produce a written **audit report** at+ `docs/pumpfun-program/AUDIT-2026-mm-dd.md`: per buy/sell/swap path, a+ PASS / GAP verdict with file:line evidence and the exact discrepancy.+3. **Fix** any real gaps found, wired end-to-end (no stubs). If a gap is risky or+ needs product input, document it in the report and leave it clearly flagged+ rather than half-implementing.+4. **Decision: USDC-quoted coins.** Determine what it would take for three.ws to+ support buying/selling USDC-paired coins (quoting, balances UI, the swap path).+ If small and safe, implement it; otherwise write the implementation plan into+ the report. Note: per the coin rule, do not surface any specific non-`$THREE`+ coin — USDC is infrastructure/quote-asset plumbing, which is allowed, but keep+ example mints generic/runtime-supplied.++## Verification (Definition of done)++- Audit report committed; every claim backed by file:line or a doc reference.+- Any code changes: `npx prettier --check` clean, `npm run build` green, relevant+ `vitest` tests pass (add tests for new instruction-building logic — you can+ unit-test account ordering / arg encoding without hitting the chain, mirroring+ `tests/bounties-judge.test.js`). If you can exercise a real devnet buy/sell+ (env: `SOLANA_RPC_URL_DEVNET`), do it and record the tx signature; if not,+ say so explicitly.+- `git diff` self-reviewed. Do not push unless the user asks; then push to both+ `threeD` and `threews`.diff --git a/tasks/pumpfun-upstream/02-pump-fun-skills-upstream-sync.md b/tasks/pumpfun-upstream/02-pump-fun-skills-upstream-sync.mdnew file mode 100644index 000000000..c85aee3df--- /dev/null+++ b/tasks/pumpfun-upstream/02-pump-fun-skills-upstream-sync.md@@ -0,0 +1,54 @@+# Task: Sync our vendored pump-fun-skills with the official upstream repo++You are a senior engineer in the **three.ws** repo (`/workspaces/three.ws`).+Read `CLAUDE.md` and obey it — **only `$THREE` may ever be referenced**, no+mocks, real APIs/SDKs only, keep the repo clean, never push without explicit+approval (then both remotes).++## Background++Our `pump-fun-skills/` directory is a **vendored copy** of pump.fun's official+Agent Skills repo (`github.com/pump-fun/pump-fun-skills`) — same structure, and+the SKILL.md files even link to `raw.githubusercontent.com/pump-fun/pump-fun-skills/...`.++Our copy contains: `create-coin/`, `swap/`, `coin-fees/`, `tokenized-agents/`,+and `reactive/` (the last is **our addition** — drives avatar movement from the+PumpPortal feed; not in upstream).++A recon pass confirmed our skills already cover the current feature set (mayhem+mode, cashback, buyback %, Jito front-runner protection, tokenized agents, USDC),+so this is a **drift check**, not a rebuild. Upstream was last pushed 2026-04-23;+we don't know exactly when our copy was taken.++## Goal++1. Diff our `pump-fun-skills/<skill>/` against upstream `main` for each shared+ skill (`create-coin`, `swap`, `coin-fees`, `tokenized-agents`). Pull upstream+ raw files for comparison, e.g.:+ - `gh api repos/pump-fun/pump-fun-skills/git/trees/HEAD?recursive=1 --jq '.tree[].path'`+ - `gh api --header 'Accept: application/vnd.github.raw' "repos/pump-fun/pump-fun-skills/contents/<path>"`+ Compare SKILL.md **and** the helper scripts / reference files in each skill+ folder, not just the SKILL.md.+2. Write a **drift report** at `tasks/pumpfun-upstream/02-skills-drift-report.md`:+ per skill, what changed upstream since our copy (new flags, new scripts,+ changed SDK calls, new reference docs), and whether it matters for us.+3. **Apply** the upstream updates that are genuine improvements/fixes, while+ **preserving**:+ - our `reactive/` skill (untouched);+ - any deliberate three.ws-specific edits (look for divergences before+ overwriting — don't blindly clobber; if a file differs because we changed it+ on purpose, reconcile by hand and note it in the report);+ - the `$THREE`-only rule (if any upstream example uses another coin/mint,+ replace it with `$THREE` / a synthetic placeholder).+4. If the skills are duplicated elsewhere in the repo (a recon found copies under+ `examples/skills/`, `public/skills/`, `data/skills/`, and build output under+ `dist/`), decide whether those need the same update or are generated — do **not**+ hand-edit anything under `dist/` or `dist-lib/` (build artifacts).++## Verification (Definition of done)++- Drift report committed.+- Updated skill files are valid (SKILL.md frontmatter intact; any scripts run with+ `--help` without error). `npx prettier --check` clean on changed text files.+- No other-coin references introduced. `git diff` self-reviewed.+- Don't push unless asked; then both `threeD` and `threews`.diff --git a/tasks/pumpfun-upstream/03-pump-segments-sdk-investigation.md b/tasks/pumpfun-upstream/03-pump-segments-sdk-investigation.mdnew file mode 100644index 000000000..c28ef2527--- /dev/null+++ b/tasks/pumpfun-upstream/03-pump-segments-sdk-investigation.md@@ -0,0 +1,49 @@+# Task: Investigate pump-segments-sdk and whether three.ws should adopt it++You are a senior engineer in the **three.ws** repo (`/workspaces/three.ws`).+Read `CLAUDE.md` and obey it (only `$THREE`, no mocks, real APIs, clean repo,+no push without approval).++## Background++During a recon of pump.fun's GitHub org we found a **new repo** we don't use:++- `github.com/pump-fun/pump-segments-sdk` — TypeScript, created/pushed+ ~2026-04-16, 0 stars, **no description, no README**, and **not published to+ npm** (no `@pump-fun/pump-segments-sdk` on the registry as of 2026-06-08).++"Segments" is unexplained. It could relate to creator-revenue segmentation,+audience/holder segments, fee-sharing segments, or something tied to the newer+fee/sharing-config program — unknown until read.++## Goal++1. Read the repo to determine **what it is and does**:+ - List the tree: `gh api repos/pump-fun/pump-segments-sdk/git/trees/HEAD?recursive=1 --jq '.tree[].path'`+ - Read `package.json`, `src/`, any examples/tests, and exported types.+ - Check commit history / open PRs for intent.+2. Determine **relevance to three.ws**: does it unlock anything we'd want+ (e.g. for the `/go` bounty board, creator fee sharing, tokenized agents, or+ holder/community features we already have under `api/_lib/coin-communities.js`,+ `holder-pass.js`, `royalty.js`, fee-sharing in `api/pump/[action].js`)?+3. Check **availability**: is it usable yet (published anywhere, stable API), or+ pre-release? If unpublished, note that adopting it means a git dependency or+ vendoring — flag the maintenance cost.++## Deliverable++A short brief at `tasks/pumpfun-upstream/03-segments-findings.md`:++- one-paragraph "what it is",+- a capability list,+- a clear **recommendation**: adopt now / wait for npm release / not relevant,+ with reasoning and (if adopt) a rough integration sketch.++**Do not** add it as a dependency or write integration code unless the+investigation shows a clear, immediate win — in which case stop and propose it to+the user first. This task is research; default to producing the brief only.++## Verification++- Brief committed. Claims reference the actual repo contents (paths/types), not+ guesses. `git diff` self-reviewed. No push without approval.diff --git a/tasks/pumpfun-upstream/04-agent-payments-sdk-reconcile.md b/tasks/pumpfun-upstream/04-agent-payments-sdk-reconcile.mdnew file mode 100644index 000000000..9d8ffb15a--- /dev/null+++ b/tasks/pumpfun-upstream/04-agent-payments-sdk-reconcile.md@@ -0,0 +1,49 @@+# Task: Reconcile our local [email protected] with upstream's published 3.0.3++You are a senior engineer in the **three.ws** repo (`/workspaces/three.ws`).+Read `CLAUDE.md` and obey it (only `$THREE`, no mocks, real APIs, clean repo,+no push without approval). **Low priority** — nothing is broken today.++## Background++`package.json` depends on `@pump-fun/agent-payments-sdk: ^3.1.0`. That version+**does not exist on npm** — the public registry's `latest` is **3.0.3** (versions+top out there). It resolves anyway because there is a **local workspace** at+`agent-payments-sdk/` whose `package.json` is+`{"name": "@pump-fun/agent-payments-sdk", "version": "3.1.0"}` and `package.json`+lists `agent-payments-sdk` in its `workspaces` array. So in-repo installs use the+local copy; the published 3.0.3 is never fetched.++This works, but it's worth making intentional:++- If our local 3.1.0 is just a **copy that drifted ahead of a version number**,+ fresh consumers outside the workspace (or anyone reading the manifest) will be+ confused, and we miss upstream fixes.+- If our local 3.1.0 has **deliberate three.ws patches**, that's a fork we should+ document and keep in sync deliberately.++## Goal++1. Determine the relationship between our `agent-payments-sdk/` and upstream:+ - Diff our local source against upstream npm `3.0.3`+ (`npm pack @pump-fun/[email protected]` and compare), and against the+ upstream repo if one is public.+ - Identify whether our copy has real code changes or is just a version bump.+2. Decide and implement one of:+ - **(a) Keep as an intentional local fork** — add a short `agent-payments-sdk/FORK_NOTES.md`+ explaining why it diverges and what our patches are; keep the `^3.1.0` pin.+ - **(b) Track upstream** — align our local copy/version to the published+ release (or pin the dependency to `^3.0.3` and drop/justify the workspace) so+ we get upstream updates, re-applying any necessary patches on top.+ Pick the option that matches what the diff shows; explain the call.+3. Verify everything that imports it still works:+ - `grep -rl "@pump-fun/agent-payments-sdk" api/ packages/ scripts/ pump-fun-skills/`+ - Build green (`npm run build`), tokenized-agent payment flows+ (`api/agents/payments/[action].js`, `api/_lib/agent-pumpfun.js`,+ `pump-fun-skills/tokenized-agents/`) still resolve and type-check.++## Verification (Definition of done)++- A clear written decision (FORK_NOTES or a manifest/version change) committed.+- `npm install` resolves cleanly; `npm run build` green; no broken imports.+- `git diff` self-reviewed. No push without approval; then both remotes.diff --git a/tasks/pumpfun-upstream/README.md b/tasks/pumpfun-upstream/README.mdnew file mode 100644index 000000000..6dd89a514--- /dev/null+++ b/tasks/pumpfun-upstream/README.md@@ -0,0 +1,44 @@+# pump.fun upstream sync — task set++Generated 2026-06-08 from a recon pass over pump.fun's GitHub org+(`github.com/pump-fun`) and npm maintainers (`oussama-baton`, `security-baton`,+the publishers of the official `@pump-fun/*` packages).++Each `NN-*.md` here is a **self-contained prompt** — open a new chat in this repo+(`/workspaces/three.ws`) and paste the file's contents. They assume no prior+conversation context.++## Already done in the recon session (do NOT redo)++- ✅ Bumped `@pump-fun/pump-swap-sdk` manifest `^1.16.0 → ^1.17.0` in+ `package.json` (the lockfile already resolved 1.17.0; no reinstall needed).+- ✅ `@pump-fun/pump-sdk` confirmed current at `1.36.0`.+- ✅ Vendored pump.fun's public program docs + IDLs into+ [`docs/pumpfun-program/`](../../docs/pumpfun-program/) (snapshot of+ `pump-public-docs@1b82215`, 2026-06-08).+- ✅ Confirmed `@pump-fun/agent-payments-sdk` is a **local workspace**+ (`agent-payments-sdk/`, version 3.1.0) — `^3.1.0` resolves locally; in-repo+ installs are fine. (Upstream npm `latest` is 3.0.3 → see task 04.)++## Open tasks++| # | File | Priority | What |+| --- | ---------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------- |+| 01 | `01-v2-trade-instructions-usdc-audit.md` | **High** | Audit our buy/sell instruction building against the new `buy_v2`/`sell_v2` interface + decide/implement USDC-quoted-coin support. |+| 02 | `02-pump-fun-skills-upstream-sync.md` | Medium | Diff our vendored `pump-fun-skills/` against the official repo's latest; sync drift while preserving our additions. |+| 03 | `03-pump-segments-sdk-investigation.md` | Low | Figure out what `pump-segments-sdk` (new, unpublished) is and whether three.ws should adopt it. |+| 04 | `04-agent-payments-sdk-reconcile.md` | Low | Decide how to handle our local `[email protected]` vs upstream's published 3.0.3. |++## Constraints that apply to every task (from CLAUDE.md)++- **Only `$THREE` (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) may ever be+ referenced.** Never name, hardcode, or surface any other coin/mint — in code,+ tests, fixtures, docs, or commits. Generic coin-agnostic plumbing where a mint+ is supplied at runtime is the only exception.+- No mocks, no fake data, no placeholders, no TODOs, no stubs. Real APIs/SDKs only.+- Keep the repo root clean; throwaway scripts go in `scripts/` or are deleted.+- Before claiming done: `npx prettier --check` your changed files, run relevant+ tests, and review your own `git diff`.+- **Pushing:** only on explicit user approval, and push to **both** remotes+ (`git push threeD main` && `git push threews main`). Never pull/fetch from+ `threeD` (push-only mirror).