diff --git a/idl/README.md b/idl/README.md index 78c0bdf..79c523d 100644 --- a/idl/README.md +++ b/idl/README.md @@ -1,14 +1,16 @@ -# IDL sources +# IDL files -Bitquery IDLs synced from `bitquery/solana-idl-lib` commit `f804b17`. +Supported DEX IDLs are stored directly in this directory. The files below were +synced from `bitquery/solana-idl-lib` commit `f804b17` and written to the SDK's +canonical local filenames. -| SDK protocol | Root IDL | Bitquery source | +| SDK protocol | Local IDL | Source path | | --- | --- | --- | -| Bonk / Raydium Launchpad | `bonk.json` | `bitquery/raydium/launchpad.json` | -| Raydium CPMM | `raydium_cpmm.json` | `bitquery/raydium/raydium_cp.json` | -| Raydium AMM v4 | `raydium_amm_v4.json` | `bitquery/raydium/raydium_amm.json` | -| Meteora DAMM v2 | `meteora_damm_v2.json` | `bitquery/meteora/cp_amm_016.json` | -| PumpFun | `pump.json` | `bitquery/pumpfun/pump.json` | -| PumpSwap | `pump_amm.json` | `bitquery/pumpswap/amm.json` | +| Bonk / Raydium Launchpad | `bonk.json` | `raydium/launchpad.json` | +| Raydium CPMM | `raydium_cpmm.json` | `raydium/raydium_cp.json` | +| Raydium AMM v4 | `raydium_amm_v4.json` | `raydium/raydium_amm.json` | +| Meteora DAMM v2 | `meteora_damm_v2.json` | `meteora/cp_amm_016.json` | +| PumpFun | `pump.json` | `pumpfun/pump.json` | +| PumpSwap | `pump_amm.json` | `pumpswap/amm.json` | -The root PumpFun/PumpSwap IDLs remain the newer local copies used for cashback and v2 instruction parity. The Bitquery snapshots are kept under `idl/bitquery/` for source comparison. +No separate source snapshot tree is kept in the repository. diff --git a/idl/bitquery/meteora/cp_amm_016.json b/idl/bitquery/meteora/cp_amm_016.json deleted file mode 100644 index 3425ca2..0000000 --- a/idl/bitquery/meteora/cp_amm_016.json +++ /dev/null @@ -1,2697 +0,0 @@ -{ - "address": "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG", - "metadata": { "name": "cp_amm", "version": "0.1.6", "spec": "0.1.0", "description": "Created with Anchor" }, - "instructions": [ - { - "name": "add_liquidity", - "discriminator": [181, 157, 89, 67, 143, 182, 52, 72], - "accounts": [ - { "name": "pool", "writable": true, "relations": ["position"] }, - { "name": "position", "writable": true }, - { "name": "token_a_account", "docs": ["The user token a account"], "writable": true }, - { "name": "token_b_account", "docs": ["The user token b account"], "writable": true }, - { - "name": "token_a_vault", - "docs": ["The vault token account for input token"], - "writable": true, - "relations": ["pool"] - }, - { - "name": "token_b_vault", - "docs": ["The vault token account for output token"], - "writable": true, - "relations": ["pool"] - }, - { "name": "token_a_mint", "docs": ["The mint of token a"], "relations": ["pool"] }, - { "name": "token_b_mint", "docs": ["The mint of token b"], "relations": ["pool"] }, - { "name": "position_nft_account", "docs": ["The token account for nft"] }, - { "name": "owner", "docs": ["owner of position"], "signer": true }, - { "name": "token_a_program", "docs": ["Token a program"] }, - { "name": "token_b_program", "docs": ["Token b 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": "params", "type": { "defined": { "name": "AddLiquidityParameters" } } }] - }, - { - "name": "claim_partner_fee", - "discriminator": [97, 206, 39, 105, 94, 94, 126, 148], - "accounts": [ - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "writable": true }, - { "name": "token_a_account", "docs": ["The treasury token a account"], "writable": true }, - { "name": "token_b_account", "docs": ["The treasury token b account"], "writable": true }, - { - "name": "token_a_vault", - "docs": ["The vault token account for input token"], - "writable": true, - "relations": ["pool"] - }, - { - "name": "token_b_vault", - "docs": ["The vault token account for output token"], - "writable": true, - "relations": ["pool"] - }, - { "name": "token_a_mint", "docs": ["The mint of token a"], "relations": ["pool"] }, - { "name": "token_b_mint", "docs": ["The mint of token b"], "relations": ["pool"] }, - { "name": "partner", "signer": true, "relations": ["pool"] }, - { "name": "token_a_program", "docs": ["Token a program"] }, - { "name": "token_b_program", "docs": ["Token b 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": "max_amount_a", "type": "u64" }, - { "name": "max_amount_b", "type": "u64" } - ] - }, - { - "name": "claim_position_fee", - "discriminator": [180, 38, 154, 17, 133, 33, 162, 211], - "accounts": [ - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "relations": ["position"] }, - { "name": "position", "writable": true }, - { "name": "token_a_account", "docs": ["The user token a account"], "writable": true }, - { "name": "token_b_account", "docs": ["The user token b account"], "writable": true }, - { - "name": "token_a_vault", - "docs": ["The vault token account for input token"], - "writable": true, - "relations": ["pool"] - }, - { - "name": "token_b_vault", - "docs": ["The vault token account for output token"], - "writable": true, - "relations": ["pool"] - }, - { "name": "token_a_mint", "docs": ["The mint of token a"], "relations": ["pool"] }, - { "name": "token_b_mint", "docs": ["The mint of token b"], "relations": ["pool"] }, - { "name": "position_nft_account", "docs": ["The token account for nft"] }, - { "name": "owner", "docs": ["owner of position"], "signer": true }, - { "name": "token_a_program", "docs": ["Token a program"] }, - { "name": "token_b_program", "docs": ["Token b 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": "claim_protocol_fee", - "discriminator": [165, 228, 133, 48, 99, 249, 255, 33], - "accounts": [ - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "writable": true }, - { - "name": "token_a_vault", - "docs": ["The vault token account for input token"], - "writable": true, - "relations": ["pool"] - }, - { - "name": "token_b_vault", - "docs": ["The vault token account for output token"], - "writable": true, - "relations": ["pool"] - }, - { "name": "token_a_mint", "docs": ["The mint of token a"], "relations": ["pool"] }, - { "name": "token_b_mint", "docs": ["The mint of token b"], "relations": ["pool"] }, - { - "name": "token_a_account", - "docs": ["The treasury token a account"], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 48, 9, 89, 123, 106, 114, 131, 251, 50, 173, 254, 250, 10, 80, 160, 84, 143, 100, - 81, 249, 134, 112, 30, 213, 50, 166, 239, 78, 53, 175, 188, 85 - ] - }, - { "kind": "account", "path": "token_a_program" }, - { "kind": "account", "path": "token_a_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": "token_b_account", - "docs": ["The treasury token b account"], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 48, 9, 89, 123, 106, 114, 131, 251, 50, 173, 254, 250, 10, 80, 160, 84, 143, 100, - 81, 249, 134, 112, 30, 213, 50, 166, 239, 78, 53, 175, 188, 85 - ] - }, - { "kind": "account", "path": "token_b_program" }, - { "kind": "account", "path": "token_b_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": "operator", "docs": ["Claim fee operator"] }, - { "name": "whitelisted_address", "docs": ["Operator"], "signer": true, "relations": ["operator"] }, - { "name": "token_a_program", "docs": ["Token a program"] }, - { "name": "token_b_program", "docs": ["Token b 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": "max_amount_a", "type": "u64" }, - { "name": "max_amount_b", "type": "u64" } - ] - }, - { - "name": "claim_reward", - "discriminator": [149, 95, 181, 242, 94, 90, 158, 162], - "accounts": [ - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "writable": true, "relations": ["position"] }, - { "name": "position", "writable": true }, - { "name": "reward_vault", "docs": ["The vault token account for reward token"], "writable": true }, - { "name": "reward_mint" }, - { "name": "user_token_account", "writable": true }, - { "name": "position_nft_account", "docs": ["The token account for nft"] }, - { "name": "owner", "docs": ["owner of position"], "signer": true }, - { "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": "reward_index", "type": "u8" }, - { "name": "skip_reward", "type": "u8" } - ] - }, - { - "name": "close_config", - "discriminator": [145, 9, 72, 157, 95, 125, 61, 85], - "accounts": [ - { "name": "config", "writable": true }, - { "name": "operator" }, - { "name": "whitelisted_address", "signer": true, "relations": ["operator"] }, - { "name": "rent_receiver", "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": "close_operator_account", - "discriminator": [171, 9, 213, 74, 120, 23, 3, 29], - "accounts": [ - { "name": "operator", "writable": true }, - { "name": "admin", "signer": true }, - { "name": "rent_receiver", "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": "close_position", - "discriminator": [123, 134, 81, 0, 49, 68, 98, 98], - "accounts": [ - { "name": "position_nft_mint", "docs": ["position_nft_mint"], "writable": true }, - { "name": "position_nft_account", "docs": ["The token account for nft"], "writable": true }, - { "name": "pool", "writable": true, "relations": ["position"] }, - { "name": "position", "writable": true }, - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "rent_receiver", "writable": true }, - { "name": "owner", "docs": ["Owner of position"], "signer": true }, - { - "name": "token_program", - "docs": ["Program to create NFT mint/token account and transfer for token22 account"], - "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": "close_token_badge", - "discriminator": [108, 146, 86, 110, 179, 254, 10, 104], - "accounts": [ - { "name": "token_badge", "writable": true }, - { "name": "operator" }, - { "name": "whitelisted_address", "signer": true, "relations": ["operator"] }, - { "name": "rent_receiver", "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", - "docs": ["OPERATOR FUNCTIONS /////"], - "discriminator": [201, 207, 243, 114, 75, 111, 47, 189], - "accounts": [ - { - "name": "config", - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [99, 111, 110, 102, 105, 103] }, - { "kind": "arg", "path": "index" } - ] - } - }, - { "name": "operator" }, - { "name": "whitelisted_address", "signer": true, "relations": ["operator"] }, - { "name": "payer", "writable": true, "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": "index", "type": "u64" }, - { "name": "config_parameters", "type": { "defined": { "name": "StaticConfigParameters" } } } - ] - }, - { - "name": "create_dynamic_config", - "discriminator": [81, 251, 122, 78, 66, 57, 208, 82], - "accounts": [ - { - "name": "config", - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [99, 111, 110, 102, 105, 103] }, - { "kind": "arg", "path": "index" } - ] - } - }, - { "name": "operator" }, - { "name": "whitelisted_address", "signer": true, "relations": ["operator"] }, - { "name": "payer", "writable": true, "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": "index", "type": "u64" }, - { "name": "config_parameters", "type": { "defined": { "name": "DynamicConfigParameters" } } } - ] - }, - { - "name": "create_operator_account", - "docs": ["ADMIN FUNCTIONS /////"], - "discriminator": [221, 64, 246, 149, 240, 153, 229, 163], - "accounts": [ - { - "name": "operator", - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [111, 112, 101, 114, 97, 116, 111, 114] }, - { "kind": "account", "path": "whitelisted_address" } - ] - } - }, - { "name": "whitelisted_address" }, - { "name": "admin", "signer": true }, - { "name": "payer", "writable": true, "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": "permission", "type": "u128" }] - }, - { - "name": "create_position", - "discriminator": [48, 215, 197, 153, 96, 203, 180, 133], - "accounts": [ - { "name": "owner" }, - { "name": "position_nft_mint", "docs": ["position_nft_mint"], "writable": true, "signer": true }, - { - "name": "position_nft_account", - "docs": ["position nft account"], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, 111, 115, 105, 116, 105, 111, 110, 95, 110, 102, 116, 95, 97, 99, 99, 111, 117, - 110, 116 - ] - }, - { "kind": "account", "path": "position_nft_mint" } - ] - } - }, - { "name": "pool", "writable": true }, - { - "name": "position", - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [112, 111, 115, 105, 116, 105, 111, 110] }, - { "kind": "account", "path": "position_nft_mint" } - ] - } - }, - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { - "name": "payer", - "docs": ["Address paying to create the position. Can be anyone"], - "writable": true, - "signer": true - }, - { - "name": "token_program", - "docs": ["Program to create NFT mint/token account and transfer for token22 account"], - "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" - }, - { "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_token_badge", - "discriminator": [88, 206, 0, 91, 60, 175, 151, 118], - "accounts": [ - { - "name": "token_badge", - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [116, 111, 107, 101, 110, 95, 98, 97, 100, 103, 101] }, - { "kind": "account", "path": "token_mint" } - ] - } - }, - { "name": "token_mint" }, - { "name": "operator" }, - { "name": "whitelisted_address", "signer": true, "relations": ["operator"] }, - { "name": "payer", "writable": true, "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": "dummy_ix", - "discriminator": [234, 95, 176, 185, 7, 42, 35, 159], - "accounts": [ - { "name": "pod_aligned_fee_time_scheduler" }, - { "name": "pod_aligned_fee_rate_limiter" }, - { "name": "pod_aligned_fee_market_cap_scheduler" } - ], - "args": [{ "name": "_ixs", "type": { "defined": { "name": "DummyParams" } } }] - }, - { - "name": "fund_reward", - "discriminator": [188, 50, 249, 165, 93, 151, 38, 63], - "accounts": [ - { "name": "pool", "writable": true }, - { "name": "reward_vault", "writable": true }, - { "name": "reward_mint" }, - { "name": "funder_token_account", "writable": true }, - { "name": "funder", "signer": true }, - { "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": "reward_index", "type": "u8" }, - { "name": "amount", "type": "u64" }, - { "name": "carry_forward", "type": "bool" } - ] - }, - { - "name": "initialize_customizable_pool", - "discriminator": [20, 161, 241, 24, 189, 221, 180, 2], - "accounts": [ - { "name": "creator" }, - { "name": "position_nft_mint", "docs": ["position_nft_mint"], "writable": true, "signer": true }, - { - "name": "position_nft_account", - "docs": ["position nft account"], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, 111, 115, 105, 116, 105, 111, 110, 95, 110, 102, 116, 95, 97, 99, 99, 111, 117, - 110, 116 - ] - }, - { "kind": "account", "path": "position_nft_mint" } - ] - } - }, - { - "name": "payer", - "docs": ["Address paying to create the pool. Can be anyone"], - "writable": true, - "signer": true - }, - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "docs": ["Initialize an account to store the pool state"], "writable": true }, - { - "name": "position", - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [112, 111, 115, 105, 116, 105, 111, 110] }, - { "kind": "account", "path": "position_nft_mint" } - ] - } - }, - { "name": "token_a_mint", "docs": ["Token a mint"] }, - { "name": "token_b_mint", "docs": ["Token b mint"] }, - { - "name": "token_a_vault", - "docs": ["Token a vault for the pool"], - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116] }, - { "kind": "account", "path": "token_a_mint" }, - { "kind": "account", "path": "pool" } - ] - } - }, - { - "name": "token_b_vault", - "docs": ["Token b vault for the pool"], - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116] }, - { "kind": "account", "path": "token_b_mint" }, - { "kind": "account", "path": "pool" } - ] - } - }, - { "name": "payer_token_a", "docs": ["payer token a account"], "writable": true }, - { "name": "payer_token_b", "docs": ["creator token b account"], "writable": true }, - { "name": "token_a_program", "docs": ["Program to create mint account and mint tokens"] }, - { "name": "token_b_program", "docs": ["Program to create mint account and mint tokens"] }, - { - "name": "token_2022_program", - "docs": ["Program to create NFT mint/token account and transfer for token22 account"], - "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" - }, - { "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": "params", "type": { "defined": { "name": "InitializeCustomizablePoolParameters" } } }] - }, - { - "name": "initialize_pool", - "docs": ["USER FUNCTIONS ////"], - "discriminator": [95, 180, 10, 172, 84, 174, 232, 40], - "accounts": [ - { "name": "creator" }, - { "name": "position_nft_mint", "docs": ["position_nft_mint"], "writable": true, "signer": true }, - { - "name": "position_nft_account", - "docs": ["position nft account"], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, 111, 115, 105, 116, 105, 111, 110, 95, 110, 102, 116, 95, 97, 99, 99, 111, 117, - 110, 116 - ] - }, - { "kind": "account", "path": "position_nft_mint" } - ] - } - }, - { - "name": "payer", - "docs": ["Address paying to create the pool. Can be anyone"], - "writable": true, - "signer": true - }, - { "name": "config", "docs": ["Which config the pool belongs to."] }, - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "docs": ["Initialize an account to store the pool state"], "writable": true }, - { - "name": "position", - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [112, 111, 115, 105, 116, 105, 111, 110] }, - { "kind": "account", "path": "position_nft_mint" } - ] - } - }, - { "name": "token_a_mint", "docs": ["Token a mint"] }, - { "name": "token_b_mint", "docs": ["Token b mint"] }, - { - "name": "token_a_vault", - "docs": ["Token a vault for the pool"], - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116] }, - { "kind": "account", "path": "token_a_mint" }, - { "kind": "account", "path": "pool" } - ] - } - }, - { - "name": "token_b_vault", - "docs": ["Token b vault for the pool"], - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116] }, - { "kind": "account", "path": "token_b_mint" }, - { "kind": "account", "path": "pool" } - ] - } - }, - { "name": "payer_token_a", "docs": ["payer token a account"], "writable": true }, - { "name": "payer_token_b", "docs": ["creator token b account"], "writable": true }, - { "name": "token_a_program", "docs": ["Program to create mint account and mint tokens"] }, - { "name": "token_b_program", "docs": ["Program to create mint account and mint tokens"] }, - { - "name": "token_2022_program", - "docs": ["Program to create NFT mint/token account and transfer for token22 account"], - "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" - }, - { "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": "params", "type": { "defined": { "name": "InitializePoolParameters" } } }] - }, - { - "name": "initialize_pool_with_dynamic_config", - "discriminator": [149, 82, 72, 197, 253, 252, 68, 15], - "accounts": [ - { "name": "creator" }, - { "name": "position_nft_mint", "docs": ["position_nft_mint"], "writable": true, "signer": true }, - { - "name": "position_nft_account", - "docs": ["position nft account"], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, 111, 115, 105, 116, 105, 111, 110, 95, 110, 102, 116, 95, 97, 99, 99, 111, 117, - 110, 116 - ] - }, - { "kind": "account", "path": "position_nft_mint" } - ] - } - }, - { - "name": "payer", - "docs": ["Address paying to create the pool. Can be anyone"], - "writable": true, - "signer": true - }, - { "name": "pool_creator_authority", "signer": true, "relations": ["config"] }, - { "name": "config", "docs": ["Which config the pool belongs to."] }, - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "docs": ["Initialize an account to store the pool state"], "writable": true }, - { - "name": "position", - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [112, 111, 115, 105, 116, 105, 111, 110] }, - { "kind": "account", "path": "position_nft_mint" } - ] - } - }, - { "name": "token_a_mint", "docs": ["Token a mint"] }, - { "name": "token_b_mint", "docs": ["Token b mint"] }, - { - "name": "token_a_vault", - "docs": ["Token a vault for the pool"], - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116] }, - { "kind": "account", "path": "token_a_mint" }, - { "kind": "account", "path": "pool" } - ] - } - }, - { - "name": "token_b_vault", - "docs": ["Token b vault for the pool"], - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116] }, - { "kind": "account", "path": "token_b_mint" }, - { "kind": "account", "path": "pool" } - ] - } - }, - { "name": "payer_token_a", "docs": ["payer token a account"], "writable": true }, - { "name": "payer_token_b", "docs": ["creator token b account"], "writable": true }, - { "name": "token_a_program", "docs": ["Program to create mint account and mint tokens"] }, - { "name": "token_b_program", "docs": ["Program to create mint account and mint tokens"] }, - { - "name": "token_2022_program", - "docs": ["Program to create NFT mint/token account and transfer for token22 account"], - "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" - }, - { "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": "params", "type": { "defined": { "name": "InitializeCustomizablePoolParameters" } } }] - }, - { - "name": "initialize_reward", - "discriminator": [95, 135, 192, 196, 242, 129, 230, 68], - "accounts": [ - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "writable": true }, - { - "name": "reward_vault", - "writable": true, - "pda": { - "seeds": [ - { "kind": "const", "value": [114, 101, 119, 97, 114, 100, 95, 118, 97, 117, 108, 116] }, - { "kind": "account", "path": "pool" }, - { "kind": "arg", "path": "reward_index" } - ] - } - }, - { "name": "reward_mint" }, - { "name": "signer", "signer": true }, - { "name": "payer", "writable": true, "signer": true }, - { "name": "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" } - ], - "args": [ - { "name": "reward_index", "type": "u8" }, - { "name": "reward_duration", "type": "u64" }, - { "name": "funder", "type": "pubkey" } - ] - }, - { - "name": "lock_position", - "discriminator": [227, 62, 2, 252, 247, 10, 171, 185], - "accounts": [ - { "name": "pool", "relations": ["position"] }, - { "name": "position", "writable": true }, - { "name": "vesting", "writable": true, "signer": true }, - { "name": "position_nft_account", "docs": ["The token account for nft"] }, - { "name": "owner", "docs": ["owner of position"], "signer": true }, - { "name": "payer", "writable": true, "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": "params", "type": { "defined": { "name": "VestingParameters" } } }] - }, - { - "name": "permanent_lock_position", - "discriminator": [165, 176, 125, 6, 231, 171, 186, 213], - "accounts": [ - { "name": "pool", "writable": true, "relations": ["position"] }, - { "name": "position", "writable": true }, - { "name": "position_nft_account", "docs": ["The token account for nft"] }, - { "name": "owner", "docs": ["owner of position"], "signer": 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": "permanent_lock_liquidity", "type": "u128" }] - }, - { - "name": "refresh_vesting", - "discriminator": [9, 94, 216, 14, 116, 204, 247, 0], - "accounts": [ - { "name": "pool", "relations": ["position"] }, - { "name": "position", "writable": true }, - { "name": "position_nft_account", "docs": ["The token account for nft"] }, - { "name": "owner" } - ], - "args": [] - }, - { - "name": "remove_all_liquidity", - "discriminator": [10, 51, 61, 35, 112, 105, 24, 85], - "accounts": [ - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "writable": true, "relations": ["position"] }, - { "name": "position", "writable": true }, - { "name": "token_a_account", "docs": ["The user token a account"], "writable": true }, - { "name": "token_b_account", "docs": ["The user token b account"], "writable": true }, - { - "name": "token_a_vault", - "docs": ["The vault token account for input token"], - "writable": true, - "relations": ["pool"] - }, - { - "name": "token_b_vault", - "docs": ["The vault token account for output token"], - "writable": true, - "relations": ["pool"] - }, - { "name": "token_a_mint", "docs": ["The mint of token a"], "relations": ["pool"] }, - { "name": "token_b_mint", "docs": ["The mint of token b"], "relations": ["pool"] }, - { "name": "position_nft_account", "docs": ["The token account for nft"] }, - { "name": "owner", "docs": ["owner of position"], "signer": true }, - { "name": "token_a_program", "docs": ["Token a program"] }, - { "name": "token_b_program", "docs": ["Token b 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": "token_a_amount_threshold", "type": "u64" }, - { "name": "token_b_amount_threshold", "type": "u64" } - ] - }, - { - "name": "remove_liquidity", - "discriminator": [80, 85, 209, 72, 24, 206, 177, 108], - "accounts": [ - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "writable": true, "relations": ["position"] }, - { "name": "position", "writable": true }, - { "name": "token_a_account", "docs": ["The user token a account"], "writable": true }, - { "name": "token_b_account", "docs": ["The user token b account"], "writable": true }, - { - "name": "token_a_vault", - "docs": ["The vault token account for input token"], - "writable": true, - "relations": ["pool"] - }, - { - "name": "token_b_vault", - "docs": ["The vault token account for output token"], - "writable": true, - "relations": ["pool"] - }, - { "name": "token_a_mint", "docs": ["The mint of token a"], "relations": ["pool"] }, - { "name": "token_b_mint", "docs": ["The mint of token b"], "relations": ["pool"] }, - { "name": "position_nft_account", "docs": ["The token account for nft"] }, - { "name": "owner", "docs": ["owner of position"], "signer": true }, - { "name": "token_a_program", "docs": ["Token a program"] }, - { "name": "token_b_program", "docs": ["Token b 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": "params", "type": { "defined": { "name": "RemoveLiquidityParameters" } } }] - }, - { - "name": "set_pool_status", - "discriminator": [112, 87, 135, 223, 83, 204, 132, 53], - "accounts": [ - { "name": "pool", "writable": true }, - { "name": "operator" }, - { "name": "whitelisted_address", "signer": true, "relations": ["operator"] }, - { - "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": "status", "type": "u8" }] - }, - { - "name": "split_position", - "discriminator": [172, 241, 221, 138, 161, 29, 253, 42], - "accounts": [ - { "name": "pool", "writable": true, "relations": ["first_position", "second_position"] }, - { "name": "first_position", "docs": ["The first position"], "writable": true }, - { "name": "first_position_nft_account", "docs": ["The token account for position nft"] }, - { "name": "second_position", "docs": ["The second position"], "writable": true }, - { "name": "second_position_nft_account", "docs": ["The token account for position nft"] }, - { "name": "first_owner", "docs": ["Owner of first position"], "signer": true }, - { "name": "second_owner", "docs": ["Owner of second position"], "signer": 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": "params", "type": { "defined": { "name": "SplitPositionParameters" } } }] - }, - { - "name": "split_position2", - "discriminator": [221, 147, 228, 207, 140, 212, 17, 119], - "accounts": [ - { "name": "pool", "writable": true, "relations": ["first_position", "second_position"] }, - { "name": "first_position", "docs": ["The first position"], "writable": true }, - { "name": "first_position_nft_account", "docs": ["The token account for position nft"] }, - { "name": "second_position", "docs": ["The second position"], "writable": true }, - { "name": "second_position_nft_account", "docs": ["The token account for position nft"] }, - { "name": "first_owner", "docs": ["Owner of first position"], "signer": true }, - { "name": "second_owner", "docs": ["Owner of second position"], "signer": 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": "numerator", "type": "u32" }] - }, - { - "name": "swap", - "discriminator": [248, 198, 158, 145, 225, 117, 135, 200], - "accounts": [ - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "docs": ["Pool account"], "writable": true }, - { "name": "input_token_account", "docs": ["The user token account for input token"], "writable": true }, - { - "name": "output_token_account", - "docs": ["The user token account for output token"], - "writable": true - }, - { - "name": "token_a_vault", - "docs": ["The vault token account for input token"], - "writable": true, - "relations": ["pool"] - }, - { - "name": "token_b_vault", - "docs": ["The vault token account for output token"], - "writable": true, - "relations": ["pool"] - }, - { "name": "token_a_mint", "docs": ["The mint of token a"] }, - { "name": "token_b_mint", "docs": ["The mint of token b"] }, - { "name": "payer", "docs": ["The user performing the swap"], "signer": true }, - { "name": "token_a_program", "docs": ["Token a program"] }, - { "name": "token_b_program", "docs": ["Token b program"] }, - { - "name": "referral_token_account", - "docs": ["referral token account"], - "writable": true, - "optional": 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": "_params", "type": { "defined": { "name": "SwapParameters" } } }] - }, - { - "name": "swap2", - "discriminator": [65, 75, 63, 76, 235, 91, 91, 136], - "accounts": [ - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "docs": ["Pool account"], "writable": true }, - { "name": "input_token_account", "docs": ["The user token account for input token"], "writable": true }, - { - "name": "output_token_account", - "docs": ["The user token account for output token"], - "writable": true - }, - { - "name": "token_a_vault", - "docs": ["The vault token account for input token"], - "writable": true, - "relations": ["pool"] - }, - { - "name": "token_b_vault", - "docs": ["The vault token account for output token"], - "writable": true, - "relations": ["pool"] - }, - { "name": "token_a_mint", "docs": ["The mint of token a"] }, - { "name": "token_b_mint", "docs": ["The mint of token b"] }, - { "name": "payer", "docs": ["The user performing the swap"], "signer": true }, - { "name": "token_a_program", "docs": ["Token a program"] }, - { "name": "token_b_program", "docs": ["Token b program"] }, - { - "name": "referral_token_account", - "docs": ["referral token account"], - "writable": true, - "optional": 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": "_params", "type": { "defined": { "name": "SwapParameters2" } } }] - }, - { - "name": "update_pool_fees", - "discriminator": [118, 217, 203, 179, 60, 8, 70, 89], - "accounts": [ - { "name": "pool", "writable": true }, - { "name": "operator" }, - { "name": "whitelisted_address", "signer": true, "relations": ["operator"] }, - { - "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": "params", "type": { "defined": { "name": "UpdatePoolFeesParameters" } } }] - }, - { - "name": "update_reward_duration", - "discriminator": [138, 174, 196, 169, 213, 235, 254, 107], - "accounts": [ - { "name": "pool", "writable": true }, - { "name": "signer", "signer": 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": "reward_index", "type": "u8" }, - { "name": "new_duration", "type": "u64" } - ] - }, - { - "name": "update_reward_funder", - "discriminator": [211, 28, 48, 32, 215, 160, 35, 23], - "accounts": [ - { "name": "pool", "writable": true }, - { "name": "signer", "signer": 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": "reward_index", "type": "u8" }, - { "name": "new_funder", "type": "pubkey" } - ] - }, - { - "name": "withdraw_ineligible_reward", - "discriminator": [148, 206, 42, 195, 247, 49, 103, 8], - "accounts": [ - { "name": "pool_authority", "address": "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC" }, - { "name": "pool", "writable": true }, - { "name": "reward_vault", "writable": true }, - { "name": "reward_mint" }, - { "name": "funder_token_account", "writable": true }, - { "name": "funder", "signer": true }, - { "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": "reward_index", "type": "u8" }] - } - ], - "accounts": [ - { "name": "Config", "discriminator": [155, 12, 170, 224, 30, 250, 204, 130] }, - { "name": "Operator", "discriminator": [219, 31, 188, 145, 69, 139, 204, 117] }, - { "name": "PodAlignedFeeMarketCapScheduler", "discriminator": [251, 130, 208, 253, 245, 27, 145, 203] }, - { "name": "PodAlignedFeeRateLimiter", "discriminator": [160, 219, 8, 251, 179, 7, 16, 117] }, - { "name": "PodAlignedFeeTimeScheduler", "discriminator": [239, 132, 138, 213, 67, 154, 130, 70] }, - { "name": "Pool", "discriminator": [241, 154, 109, 4, 17, 177, 109, 188] }, - { "name": "Position", "discriminator": [170, 188, 143, 228, 122, 64, 247, 208] }, - { "name": "TokenBadge", "discriminator": [116, 219, 204, 229, 249, 116, 255, 150] }, - { "name": "Vesting", "discriminator": [100, 149, 66, 138, 95, 200, 128, 241] } - ], - "events": [ - { "name": "EvtClaimPartnerFee", "discriminator": [118, 99, 77, 10, 226, 1, 1, 87] }, - { "name": "EvtClaimPositionFee", "discriminator": [198, 182, 183, 52, 97, 12, 49, 56] }, - { "name": "EvtClaimProtocolFee", "discriminator": [186, 244, 75, 251, 188, 13, 25, 33] }, - { "name": "EvtClaimReward", "discriminator": [218, 86, 147, 200, 235, 188, 215, 231] }, - { "name": "EvtCloseConfig", "discriminator": [36, 30, 239, 45, 58, 132, 14, 5] }, - { "name": "EvtClosePosition", "discriminator": [20, 145, 144, 68, 143, 142, 214, 178] }, - { "name": "EvtCreateConfig", "discriminator": [131, 207, 180, 174, 180, 73, 165, 54] }, - { "name": "EvtCreateDynamicConfig", "discriminator": [231, 197, 13, 164, 248, 213, 133, 152] }, - { "name": "EvtCreatePosition", "discriminator": [156, 15, 119, 198, 29, 181, 221, 55] }, - { "name": "EvtCreateTokenBadge", "discriminator": [141, 120, 134, 116, 34, 28, 114, 160] }, - { "name": "EvtFundReward", "discriminator": [104, 233, 237, 122, 199, 191, 121, 85] }, - { "name": "EvtInitializePool", "discriminator": [228, 50, 246, 85, 203, 66, 134, 37] }, - { "name": "EvtInitializeReward", "discriminator": [129, 91, 188, 3, 246, 52, 185, 249] }, - { "name": "EvtLiquidityChange", "discriminator": [197, 171, 78, 127, 224, 211, 87, 13] }, - { "name": "EvtLockPosition", "discriminator": [168, 63, 108, 83, 219, 82, 2, 200] }, - { "name": "EvtPermanentLockPosition", "discriminator": [145, 143, 162, 218, 218, 80, 67, 11] }, - { "name": "EvtSetPoolStatus", "discriminator": [100, 213, 74, 3, 95, 91, 228, 146] }, - { "name": "EvtSplitPosition2", "discriminator": [165, 32, 203, 174, 72, 100, 233, 103] }, - { "name": "EvtSwap2", "discriminator": [189, 66, 51, 168, 38, 80, 117, 153] }, - { "name": "EvtUpdatePoolFees", "discriminator": [76, 165, 246, 102, 102, 217, 156, 44] }, - { "name": "EvtUpdateRewardDuration", "discriminator": [149, 135, 65, 231, 129, 153, 65, 57] }, - { "name": "EvtUpdateRewardFunder", "discriminator": [76, 154, 208, 13, 40, 115, 246, 146] }, - { "name": "EvtWithdrawIneligibleReward", "discriminator": [248, 215, 184, 78, 31, 180, 179, 168] } - ], - "errors": [ - { "code": 6000, "name": "MathOverflow", "msg": "Math operation overflow" }, - { "code": 6001, "name": "InvalidFee", "msg": "Invalid fee setup" }, - { "code": 6002, "name": "ExceededSlippage", "msg": "Exceeded slippage tolerance" }, - { "code": 6003, "name": "PoolDisabled", "msg": "Pool disabled" }, - { "code": 6004, "name": "ExceedMaxFeeBps", "msg": "Exceeded max fee bps" }, - { "code": 6005, "name": "InvalidAdmin", "msg": "Invalid admin" }, - { "code": 6006, "name": "AmountIsZero", "msg": "Amount is zero" }, - { "code": 6007, "name": "TypeCastFailed", "msg": "Type cast error" }, - { "code": 6008, "name": "UnableToModifyActivationPoint", "msg": "Unable to modify activation point" }, - { "code": 6009, "name": "InvalidAuthorityToCreateThePool", "msg": "Invalid authority to create the pool" }, - { "code": 6010, "name": "InvalidActivationType", "msg": "Invalid activation type" }, - { "code": 6011, "name": "InvalidActivationPoint", "msg": "Invalid activation point" }, - { "code": 6012, "name": "InvalidQuoteMint", "msg": "Quote token must be SOL,USDC" }, - { "code": 6013, "name": "InvalidFeeCurve", "msg": "Invalid fee curve" }, - { "code": 6014, "name": "InvalidPriceRange", "msg": "Invalid Price Range" }, - { "code": 6015, "name": "PriceRangeViolation", "msg": "Trade is over price range" }, - { "code": 6016, "name": "InvalidParameters", "msg": "Invalid parameters" }, - { "code": 6017, "name": "InvalidCollectFeeMode", "msg": "Invalid collect fee mode" }, - { "code": 6018, "name": "InvalidInput", "msg": "Invalid input" }, - { - "code": 6019, - "name": "CannotCreateTokenBadgeOnSupportedMint", - "msg": "Cannot create token badge on supported mint" - }, - { "code": 6020, "name": "InvalidTokenBadge", "msg": "Invalid token badge" }, - { "code": 6021, "name": "InvalidMinimumLiquidity", "msg": "Invalid minimum liquidity" }, - { "code": 6022, "name": "InvalidVestingInfo", "msg": "Invalid vesting information" }, - { "code": 6023, "name": "InsufficientLiquidity", "msg": "Insufficient liquidity" }, - { "code": 6024, "name": "InvalidVestingAccount", "msg": "Invalid vesting account" }, - { "code": 6025, "name": "InvalidPoolStatus", "msg": "Invalid pool status" }, - { "code": 6026, "name": "UnsupportNativeMintToken2022", "msg": "Unsupported native mint token2022" }, - { "code": 6027, "name": "InvalidRewardIndex", "msg": "Invalid reward index" }, - { "code": 6028, "name": "InvalidRewardDuration", "msg": "Invalid reward duration" }, - { "code": 6029, "name": "RewardInitialized", "msg": "Reward already initialized" }, - { "code": 6030, "name": "RewardUninitialized", "msg": "Reward not initialized" }, - { "code": 6031, "name": "InvalidRewardVault", "msg": "Invalid reward vault" }, - { "code": 6032, "name": "MustWithdrawnIneligibleReward", "msg": "Must withdraw ineligible reward" }, - { "code": 6033, "name": "IdenticalRewardDuration", "msg": "Reward duration is the same" }, - { "code": 6034, "name": "RewardCampaignInProgress", "msg": "Reward campaign in progress" }, - { "code": 6035, "name": "IdenticalFunder", "msg": "Identical funder" }, - { "code": 6036, "name": "InvalidFunder", "msg": "Invalid funder" }, - { "code": 6037, "name": "RewardNotEnded", "msg": "Reward not ended" }, - { "code": 6038, "name": "FeeInverseIsIncorrect", "msg": "Fee inverse is incorrect" }, - { "code": 6039, "name": "PositionIsNotEmpty", "msg": "Position is not empty" }, - { "code": 6040, "name": "InvalidPoolCreatorAuthority", "msg": "Invalid pool creator authority" }, - { "code": 6041, "name": "InvalidConfigType", "msg": "Invalid config type" }, - { "code": 6042, "name": "InvalidPoolCreator", "msg": "Invalid pool creator" }, - { - "code": 6043, - "name": "RewardVaultFrozenSkipRequired", - "msg": "Reward vault is frozen, must skip reward to proceed" - }, - { "code": 6044, "name": "InvalidSplitPositionParameters", "msg": "Invalid parameters for split position" }, - { - "code": 6045, - "name": "UnsupportPositionHasVestingLock", - "msg": "Unsupported split position has vesting lock" - }, - { "code": 6046, "name": "SamePosition", "msg": "Same position" }, - { "code": 6047, "name": "InvalidBaseFeeMode", "msg": "Invalid base fee mode" }, - { "code": 6048, "name": "InvalidFeeRateLimiter", "msg": "Invalid fee rate limiter" }, - { - "code": 6049, - "name": "FailToValidateSingleSwapInstruction", - "msg": "Fail to validate single swap instruction in rate limiter" - }, - { "code": 6050, "name": "InvalidFeeTimeScheduler", "msg": "Invalid fee scheduler" }, - { "code": 6051, "name": "UndeterminedError", "msg": "Undetermined error" }, - { "code": 6052, "name": "InvalidPoolVersion", "msg": "Invalid pool version" }, - { "code": 6053, "name": "InvalidAuthority", "msg": "Invalid authority to do that action" }, - { "code": 6054, "name": "InvalidPermission", "msg": "Invalid permission" }, - { "code": 6055, "name": "InvalidFeeMarketCapScheduler", "msg": "Invalid fee market cap scheduler" }, - { "code": 6056, "name": "CannotUpdateBaseFee", "msg": "Cannot update base fee" }, - { "code": 6057, "name": "InvalidDynamicFeeParameters", "msg": "Invalid dynamic fee parameters" }, - { "code": 6058, "name": "InvalidUpdatePoolFeesParameters", "msg": "Invalid update pool fees parameters" }, - { "code": 6059, "name": "MissingOperatorAccount", "msg": "Missing operator account" } - ], - "types": [ - { - "name": "AddLiquidityParameters", - "type": { - "kind": "struct", - "fields": [ - { "name": "liquidity_delta", "docs": ["delta liquidity"], "type": "u128" }, - { "name": "token_a_amount_threshold", "docs": ["maximum token a amount"], "type": "u64" }, - { "name": "token_b_amount_threshold", "docs": ["maximum token b amount"], "type": "u64" } - ] - } - }, - { - "name": "BaseFeeInfo", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { "kind": "struct", "fields": [{ "name": "data", "type": { "array": ["u8", 32] } }] } - }, - { - "name": "BaseFeeParameters", - "type": { "kind": "struct", "fields": [{ "name": "data", "type": { "array": ["u8", 30] } }] } - }, - { - "name": "BaseFeeStruct", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "base_fee_info", "type": { "defined": { "name": "BaseFeeInfo" } } }, - { "name": "padding_1", "type": "u64" } - ] - } - }, - { - "name": "BorshFeeMarketCapScheduler", - "type": { - "kind": "struct", - "fields": [ - { "name": "cliff_fee_numerator", "type": "u64" }, - { "name": "number_of_period", "type": "u16" }, - { "name": "sqrt_price_step_bps", "type": "u32" }, - { "name": "scheduler_expiration_duration", "type": "u32" }, - { "name": "reduction_factor", "type": "u64" }, - { "name": "base_fee_mode", "type": "u8" }, - { "name": "padding", "type": { "array": ["u8", 3] } } - ] - } - }, - { - "name": "BorshFeeRateLimiter", - "docs": [ - "we denote reference_amount = x0, cliff_fee_numerator = c, fee_increment = i", - "if input_amount <= x0, then fee = input_amount * c", - "", - "if input_amount > x0, then input_amount = x0 + (a * x0 + b)", - "if a < max_index", - "then fee = x0 * c + x0 * (c + i) + .... + x0 * (c + i*a) + b * (c + i * (a+1))", - "then fee = x0 * (c + c*a + i*a*(a+1)/2) + b * (c + i * (a+1))", - "", - "if a >= max_index", - "if a = max_index + d, input_amount = x0 + max_index * x0 + (d * x0 + b)", - "then fee = x0 * (c + c*max_index + i*max_index*(max_index+1)/2) + (d * x0 + b) * MAX_FEE" - ], - "type": { - "kind": "struct", - "fields": [ - { "name": "cliff_fee_numerator", "type": "u64" }, - { "name": "fee_increment_bps", "type": "u16" }, - { "name": "max_limiter_duration", "type": "u32" }, - { "name": "max_fee_bps", "type": "u32" }, - { "name": "reference_amount", "type": "u64" }, - { "name": "base_fee_mode", "type": "u8" }, - { "name": "padding", "type": { "array": ["u8", 3] } } - ] - } - }, - { - "name": "BorshFeeTimeScheduler", - "type": { - "kind": "struct", - "fields": [ - { "name": "cliff_fee_numerator", "type": "u64" }, - { "name": "number_of_period", "type": "u16" }, - { "name": "period_frequency", "type": "u64" }, - { "name": "reduction_factor", "type": "u64" }, - { "name": "base_fee_mode", "type": "u8" }, - { "name": "padding", "type": { "array": ["u8", 3] } } - ] - } - }, - { - "name": "Config", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "vault_config_key", "docs": ["Vault config key"], "type": "pubkey" }, - { - "name": "pool_creator_authority", - "docs": [ - "Only pool_creator_authority can use the current config to initialize new pool. When it's Pubkey::default, it's a public config." - ], - "type": "pubkey" - }, - { "name": "pool_fees", "docs": ["Pool fee"], "type": { "defined": { "name": "PoolFeesConfig" } } }, - { "name": "activation_type", "docs": ["Activation type"], "type": "u8" }, - { "name": "collect_fee_mode", "docs": ["Collect fee mode"], "type": "u8" }, - { "name": "config_type", "docs": ["Config type mode, 0 for static, 1 for dynamic"], "type": "u8" }, - { "name": "_padding_0", "docs": ["padding 0"], "type": { "array": ["u8", 5] } }, - { "name": "index", "docs": ["config index"], "type": "u64" }, - { "name": "sqrt_min_price", "docs": ["sqrt min price"], "type": "u128" }, - { "name": "sqrt_max_price", "docs": ["sqrt max price"], "type": "u128" }, - { - "name": "_padding_1", - "docs": ["Fee curve point", "Padding for further use"], - "type": { "array": ["u64", 10] } - } - ] - } - }, - { - "name": "DummyParams", - "type": { - "kind": "struct", - "fields": [ - { - "name": "borsh_fee_time_scheduler_params", - "type": { "defined": { "name": "BorshFeeTimeScheduler" } } - }, - { - "name": "borsh_fee_rate_limiter_params", - "type": { "defined": { "name": "BorshFeeRateLimiter" } } - }, - { - "name": "borsh_fee_market_cap_scheduler_params", - "type": { "defined": { "name": "BorshFeeMarketCapScheduler" } } - } - ] - } - }, - { - "name": "DynamicConfigParameters", - "type": { "kind": "struct", "fields": [{ "name": "pool_creator_authority", "type": "pubkey" }] } - }, - { - "name": "DynamicFeeConfig", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "initialized", "type": "u8" }, - { "name": "padding", "type": { "array": ["u8", 7] } }, - { "name": "max_volatility_accumulator", "type": "u32" }, - { "name": "variable_fee_control", "type": "u32" }, - { "name": "bin_step", "type": "u16" }, - { "name": "filter_period", "type": "u16" }, - { "name": "decay_period", "type": "u16" }, - { "name": "reduction_factor", "type": "u16" }, - { "name": "padding_1", "type": { "array": ["u8", 8] } }, - { "name": "bin_step_u128", "type": "u128" } - ] - } - }, - { - "name": "DynamicFeeParameters", - "type": { - "kind": "struct", - "fields": [ - { "name": "bin_step", "type": "u16" }, - { "name": "bin_step_u128", "type": "u128" }, - { "name": "filter_period", "type": "u16" }, - { "name": "decay_period", "type": "u16" }, - { "name": "reduction_factor", "type": "u16" }, - { "name": "max_volatility_accumulator", "type": "u32" }, - { "name": "variable_fee_control", "type": "u32" } - ] - } - }, - { - "name": "DynamicFeeStruct", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "initialized", "type": "u8" }, - { "name": "padding", "type": { "array": ["u8", 7] } }, - { "name": "max_volatility_accumulator", "type": "u32" }, - { "name": "variable_fee_control", "type": "u32" }, - { "name": "bin_step", "type": "u16" }, - { "name": "filter_period", "type": "u16" }, - { "name": "decay_period", "type": "u16" }, - { "name": "reduction_factor", "type": "u16" }, - { "name": "last_update_timestamp", "type": "u64" }, - { "name": "bin_step_u128", "type": "u128" }, - { "name": "sqrt_price_reference", "type": "u128" }, - { "name": "volatility_accumulator", "type": "u128" }, - { "name": "volatility_reference", "type": "u128" } - ] - } - }, - { - "name": "EvtClaimPartnerFee", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "token_a_amount", "type": "u64" }, - { "name": "token_b_amount", "type": "u64" } - ] - } - }, - { - "name": "EvtClaimPositionFee", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "position", "type": "pubkey" }, - { "name": "owner", "type": "pubkey" }, - { "name": "fee_a_claimed", "type": "u64" }, - { "name": "fee_b_claimed", "type": "u64" } - ] - } - }, - { - "name": "EvtClaimProtocolFee", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "token_a_amount", "type": "u64" }, - { "name": "token_b_amount", "type": "u64" } - ] - } - }, - { - "name": "EvtClaimReward", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "position", "type": "pubkey" }, - { "name": "owner", "type": "pubkey" }, - { "name": "mint_reward", "type": "pubkey" }, - { "name": "reward_index", "type": "u8" }, - { "name": "total_reward", "type": "u64" } - ] - } - }, - { - "name": "EvtCloseConfig", - "docs": ["Close config"], - "type": { - "kind": "struct", - "fields": [ - { "name": "config", "docs": ["Config pubkey"], "type": "pubkey" }, - { "name": "admin", "docs": ["admin pk"], "type": "pubkey" } - ] - } - }, - { - "name": "EvtClosePosition", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "owner", "type": "pubkey" }, - { "name": "position", "type": "pubkey" }, - { "name": "position_nft_mint", "type": "pubkey" } - ] - } - }, - { - "name": "EvtCreateConfig", - "docs": ["Create static config"], - "type": { - "kind": "struct", - "fields": [ - { "name": "pool_fees", "type": { "defined": { "name": "PoolFeeParameters" } } }, - { "name": "vault_config_key", "type": "pubkey" }, - { "name": "pool_creator_authority", "type": "pubkey" }, - { "name": "activation_type", "type": "u8" }, - { "name": "sqrt_min_price", "type": "u128" }, - { "name": "sqrt_max_price", "type": "u128" }, - { "name": "collect_fee_mode", "type": "u8" }, - { "name": "index", "type": "u64" }, - { "name": "config", "type": "pubkey" } - ] - } - }, - { - "name": "EvtCreateDynamicConfig", - "docs": ["Create dynamic config"], - "type": { - "kind": "struct", - "fields": [ - { "name": "config", "type": "pubkey" }, - { "name": "pool_creator_authority", "type": "pubkey" }, - { "name": "index", "type": "u64" } - ] - } - }, - { - "name": "EvtCreatePosition", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "owner", "type": "pubkey" }, - { "name": "position", "type": "pubkey" }, - { "name": "position_nft_mint", "type": "pubkey" } - ] - } - }, - { - "name": "EvtCreateTokenBadge", - "docs": ["Create token badge"], - "type": { "kind": "struct", "fields": [{ "name": "token_mint", "type": "pubkey" }] } - }, - { - "name": "EvtFundReward", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "funder", "type": "pubkey" }, - { "name": "mint_reward", "type": "pubkey" }, - { "name": "reward_index", "type": "u8" }, - { "name": "amount", "type": "u64" }, - { "name": "transfer_fee_excluded_amount_in", "type": "u64" }, - { "name": "reward_duration_end", "type": "u64" }, - { "name": "pre_reward_rate", "type": "u128" }, - { "name": "post_reward_rate", "type": "u128" } - ] - } - }, - { - "name": "EvtInitializePool", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "token_a_mint", "type": "pubkey" }, - { "name": "token_b_mint", "type": "pubkey" }, - { "name": "creator", "type": "pubkey" }, - { "name": "payer", "type": "pubkey" }, - { "name": "alpha_vault", "type": "pubkey" }, - { "name": "pool_fees", "type": { "defined": { "name": "PoolFeeParameters" } } }, - { "name": "sqrt_min_price", "type": "u128" }, - { "name": "sqrt_max_price", "type": "u128" }, - { "name": "activation_type", "type": "u8" }, - { "name": "collect_fee_mode", "type": "u8" }, - { "name": "liquidity", "type": "u128" }, - { "name": "sqrt_price", "type": "u128" }, - { "name": "activation_point", "type": "u64" }, - { "name": "token_a_flag", "type": "u8" }, - { "name": "token_b_flag", "type": "u8" }, - { "name": "token_a_amount", "type": "u64" }, - { "name": "token_b_amount", "type": "u64" }, - { "name": "total_amount_a", "type": "u64" }, - { "name": "total_amount_b", "type": "u64" }, - { "name": "pool_type", "type": "u8" } - ] - } - }, - { - "name": "EvtInitializeReward", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "reward_mint", "type": "pubkey" }, - { "name": "funder", "type": "pubkey" }, - { "name": "creator", "type": "pubkey" }, - { "name": "reward_index", "type": "u8" }, - { "name": "reward_duration", "type": "u64" } - ] - } - }, - { - "name": "EvtLiquidityChange", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "position", "type": "pubkey" }, - { "name": "owner", "type": "pubkey" }, - { "name": "token_a_amount", "type": "u64" }, - { "name": "token_b_amount", "type": "u64" }, - { "name": "transfer_fee_included_token_a_amount", "type": "u64" }, - { "name": "transfer_fee_included_token_b_amount", "type": "u64" }, - { "name": "reserve_a_amount", "type": "u64" }, - { "name": "reserve_b_amount", "type": "u64" }, - { "name": "liquidity_delta", "type": "u128" }, - { "name": "token_a_amount_threshold", "type": "u64" }, - { "name": "token_b_amount_threshold", "type": "u64" }, - { "name": "change_type", "type": "u8" } - ] - } - }, - { - "name": "EvtLockPosition", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "position", "type": "pubkey" }, - { "name": "owner", "type": "pubkey" }, - { "name": "vesting", "type": "pubkey" }, - { "name": "cliff_point", "type": "u64" }, - { "name": "period_frequency", "type": "u64" }, - { "name": "cliff_unlock_liquidity", "type": "u128" }, - { "name": "liquidity_per_period", "type": "u128" }, - { "name": "number_of_period", "type": "u16" } - ] - } - }, - { - "name": "EvtPermanentLockPosition", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "position", "type": "pubkey" }, - { "name": "lock_liquidity_amount", "type": "u128" }, - { "name": "total_permanent_locked_liquidity", "type": "u128" } - ] - } - }, - { - "name": "EvtSetPoolStatus", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "status", "type": "u8" } - ] - } - }, - { - "name": "EvtSplitPosition2", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "first_owner", "type": "pubkey" }, - { "name": "second_owner", "type": "pubkey" }, - { "name": "first_position", "type": "pubkey" }, - { "name": "second_position", "type": "pubkey" }, - { "name": "current_sqrt_price", "type": "u128" }, - { "name": "amount_splits", "type": { "defined": { "name": "SplitAmountInfo" } } }, - { "name": "first_position_info", "type": { "defined": { "name": "SplitPositionInfo" } } }, - { "name": "second_position_info", "type": { "defined": { "name": "SplitPositionInfo" } } }, - { - "name": "split_position_parameters", - "type": { "defined": { "name": "SplitPositionParameters2" } } - } - ] - } - }, - { - "name": "EvtSwap2", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "trade_direction", "type": "u8" }, - { "name": "collect_fee_mode", "type": "u8" }, - { "name": "has_referral", "type": "bool" }, - { "name": "params", "type": { "defined": { "name": "SwapParameters2" } } }, - { "name": "swap_result", "type": { "defined": { "name": "SwapResult2" } } }, - { "name": "included_transfer_fee_amount_in", "type": "u64" }, - { "name": "included_transfer_fee_amount_out", "type": "u64" }, - { "name": "excluded_transfer_fee_amount_out", "type": "u64" }, - { "name": "current_timestamp", "type": "u64" }, - { "name": "reserve_a_amount", "type": "u64" }, - { "name": "reserve_b_amount", "type": "u64" } - ] - } - }, - { - "name": "EvtUpdatePoolFees", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "operator", "type": "pubkey" }, - { "name": "params", "type": { "defined": { "name": "UpdatePoolFeesParameters" } } } - ] - } - }, - { - "name": "EvtUpdateRewardDuration", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "reward_index", "type": "u8" }, - { "name": "old_reward_duration", "type": "u64" }, - { "name": "new_reward_duration", "type": "u64" } - ] - } - }, - { - "name": "EvtUpdateRewardFunder", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "reward_index", "type": "u8" }, - { "name": "old_funder", "type": "pubkey" }, - { "name": "new_funder", "type": "pubkey" } - ] - } - }, - { - "name": "EvtWithdrawIneligibleReward", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "reward_mint", "type": "pubkey" }, - { "name": "amount", "type": "u64" } - ] - } - }, - { - "name": "InitializeCustomizablePoolParameters", - "type": { - "kind": "struct", - "fields": [ - { - "name": "pool_fees", - "docs": ["pool fees"], - "type": { "defined": { "name": "PoolFeeParameters" } } - }, - { "name": "sqrt_min_price", "docs": ["sqrt min price"], "type": "u128" }, - { "name": "sqrt_max_price", "docs": ["sqrt max price"], "type": "u128" }, - { "name": "has_alpha_vault", "docs": ["has alpha vault"], "type": "bool" }, - { "name": "liquidity", "docs": ["initialize liquidity"], "type": "u128" }, - { - "name": "sqrt_price", - "docs": [ - "The init price of the pool as a sqrt(token_b/token_a) Q64.64 value. Market cap fee scheduler minimum price will be derived from this value" - ], - "type": "u128" - }, - { "name": "activation_type", "docs": ["activation type"], "type": "u8" }, - { "name": "collect_fee_mode", "docs": ["collect fee mode"], "type": "u8" }, - { "name": "activation_point", "docs": ["activation point"], "type": { "option": "u64" } } - ] - } - }, - { - "name": "InitializePoolParameters", - "type": { - "kind": "struct", - "fields": [ - { "name": "liquidity", "docs": ["initialize liquidity"], "type": "u128" }, - { - "name": "sqrt_price", - "docs": ["The init price of the pool as a sqrt(token_b/token_a) Q64.64 value"], - "type": "u128" - }, - { "name": "activation_point", "docs": ["activation point"], "type": { "option": "u64" } } - ] - } - }, - { - "name": "Operator", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "whitelisted_address", "type": "pubkey" }, - { "name": "permission", "type": "u128" }, - { "name": "padding", "type": { "array": ["u64", 2] } } - ] - } - }, - { - "name": "PodAlignedFeeMarketCapScheduler", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "cliff_fee_numerator", "type": "u64" }, - { "name": "base_fee_mode", "type": "u8" }, - { "name": "padding", "type": { "array": ["u8", 5] } }, - { "name": "number_of_period", "type": "u16" }, - { "name": "sqrt_price_step_bps", "type": "u32" }, - { "name": "scheduler_expiration_duration", "type": "u32" }, - { "name": "reduction_factor", "type": "u64" } - ] - } - }, - { - "name": "PodAlignedFeeRateLimiter", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "cliff_fee_numerator", "type": "u64" }, - { "name": "base_fee_mode", "type": "u8" }, - { "name": "padding", "type": { "array": ["u8", 5] } }, - { "name": "fee_increment_bps", "type": "u16" }, - { "name": "max_limiter_duration", "type": "u32" }, - { "name": "max_fee_bps", "type": "u32" }, - { "name": "reference_amount", "type": "u64" } - ] - } - }, - { - "name": "PodAlignedFeeTimeScheduler", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "cliff_fee_numerator", "type": "u64" }, - { "name": "base_fee_mode", "type": "u8" }, - { "name": "padding", "type": { "array": ["u8", 5] } }, - { "name": "number_of_period", "type": "u16" }, - { "name": "period_frequency", "type": "u64" }, - { "name": "reduction_factor", "type": "u64" } - ] - } - }, - { - "name": "Pool", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "pool_fees", "docs": ["Pool fee"], "type": { "defined": { "name": "PoolFeesStruct" } } }, - { "name": "token_a_mint", "docs": ["token a mint"], "type": "pubkey" }, - { "name": "token_b_mint", "docs": ["token b mint"], "type": "pubkey" }, - { "name": "token_a_vault", "docs": ["token a vault"], "type": "pubkey" }, - { "name": "token_b_vault", "docs": ["token b vault"], "type": "pubkey" }, - { - "name": "whitelisted_vault", - "docs": ["Whitelisted vault to be able to buy pool before activation_point"], - "type": "pubkey" - }, - { "name": "partner", "docs": ["partner"], "type": "pubkey" }, - { "name": "liquidity", "docs": ["liquidity share"], "type": "u128" }, - { - "name": "_padding", - "docs": ["padding, previous reserve amount, be careful to use that field"], - "type": "u128" - }, - { "name": "protocol_a_fee", "docs": ["protocol a fee"], "type": "u64" }, - { "name": "protocol_b_fee", "docs": ["protocol b fee"], "type": "u64" }, - { "name": "partner_a_fee", "docs": ["partner a fee"], "type": "u64" }, - { "name": "partner_b_fee", "docs": ["partner b fee"], "type": "u64" }, - { "name": "sqrt_min_price", "docs": ["min price"], "type": "u128" }, - { "name": "sqrt_max_price", "docs": ["max price"], "type": "u128" }, - { "name": "sqrt_price", "docs": ["current price"], "type": "u128" }, - { - "name": "activation_point", - "docs": ["Activation point, can be slot or timestamp"], - "type": "u64" - }, - { - "name": "activation_type", - "docs": ["Activation type, 0 means by slot, 1 means by timestamp"], - "type": "u8" - }, - { "name": "pool_status", "docs": ["pool status, 0: enable, 1 disable"], "type": "u8" }, - { "name": "token_a_flag", "docs": ["token a flag"], "type": "u8" }, - { "name": "token_b_flag", "docs": ["token b flag"], "type": "u8" }, - { - "name": "collect_fee_mode", - "docs": ["0 is collect fee in both token, 1 only collect fee only in token b"], - "type": "u8" - }, - { "name": "pool_type", "docs": ["pool type"], "type": "u8" }, - { - "name": "version", - "docs": ["pool version, 0: max_fee is still capped at 50%, 1: max_fee is capped at 99%"], - "type": "u8" - }, - { "name": "_padding_0", "docs": ["padding"], "type": "u8" }, - { "name": "fee_a_per_liquidity", "docs": ["cumulative"], "type": { "array": ["u8", 32] } }, - { "name": "fee_b_per_liquidity", "docs": ["cumulative"], "type": { "array": ["u8", 32] } }, - { "name": "permanent_lock_liquidity", "type": "u128" }, - { "name": "metrics", "docs": ["metrics"], "type": { "defined": { "name": "PoolMetrics" } } }, - { "name": "creator", "docs": ["pool creator"], "type": "pubkey" }, - { "name": "_padding_1", "docs": ["Padding for further use"], "type": { "array": ["u64", 6] } }, - { - "name": "reward_infos", - "docs": ["Farming reward information"], - "type": { "array": [{ "defined": { "name": "RewardInfo" } }, 2] } - } - ] - } - }, - { - "name": "PoolFeeParameters", - "docs": ["Information regarding fee charges"], - "type": { - "kind": "struct", - "fields": [ - { - "name": "base_fee", - "docs": ["Base fee"], - "type": { "defined": { "name": "BaseFeeParameters" } } - }, - { - "name": "dynamic_fee", - "docs": ["dynamic fee"], - "type": { "option": { "defined": { "name": "DynamicFeeParameters" } } } - } - ] - } - }, - { - "name": "PoolFeesConfig", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "base_fee", "type": { "defined": { "name": "BaseFeeInfo" } } }, - { "name": "dynamic_fee", "type": { "defined": { "name": "DynamicFeeConfig" } } }, - { "name": "protocol_fee_percent", "type": "u8" }, - { "name": "partner_fee_percent", "type": "u8" }, - { "name": "referral_fee_percent", "type": "u8" }, - { "name": "padding_0", "type": { "array": ["u8", 5] } }, - { "name": "padding_1", "type": { "array": ["u64", 5] } } - ] - } - }, - { - "name": "PoolFeesStruct", - "docs": [ - "Information regarding fee charges", - "trading_fee = amount * trade_fee_numerator / denominator", - "protocol_fee = trading_fee * protocol_fee_percentage / 100", - "referral_fee = protocol_fee * referral_percentage / 100", - "partner_fee = (protocol_fee - referral_fee) * partner_fee_percentage / denominator" - ], - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { - "name": "base_fee", - "docs": [ - "Trade fees are extra token amounts that are held inside the token", - "accounts during a trade, making the value of liquidity tokens rise.", - "Trade fee numerator" - ], - "type": { "defined": { "name": "BaseFeeStruct" } } - }, - { - "name": "protocol_fee_percent", - "docs": [ - "Protocol trading fees are extra token amounts that are held inside the token", - "accounts during a trade, with the equivalent in pool tokens minted to", - "the protocol of the program.", - "Protocol trade fee numerator" - ], - "type": "u8" - }, - { "name": "partner_fee_percent", "docs": ["partner fee"], "type": "u8" }, - { "name": "referral_fee_percent", "docs": ["referral fee"], "type": "u8" }, - { "name": "padding_0", "docs": ["padding"], "type": { "array": ["u8", 5] } }, - { - "name": "dynamic_fee", - "docs": ["dynamic fee"], - "type": { "defined": { "name": "DynamicFeeStruct" } } - }, - { "name": "init_sqrt_price", "type": "u128" } - ] - } - }, - { - "name": "PoolMetrics", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "total_lp_a_fee", "type": "u128" }, - { "name": "total_lp_b_fee", "type": "u128" }, - { "name": "total_protocol_a_fee", "type": "u64" }, - { "name": "total_protocol_b_fee", "type": "u64" }, - { "name": "total_partner_a_fee", "type": "u64" }, - { "name": "total_partner_b_fee", "type": "u64" }, - { "name": "total_position", "type": "u64" }, - { "name": "padding", "type": "u64" } - ] - } - }, - { - "name": "Position", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "pool", "type": "pubkey" }, - { "name": "nft_mint", "docs": ["nft mint"], "type": "pubkey" }, - { - "name": "fee_a_per_token_checkpoint", - "docs": ["fee a checkpoint"], - "type": { "array": ["u8", 32] } - }, - { - "name": "fee_b_per_token_checkpoint", - "docs": ["fee b checkpoint"], - "type": { "array": ["u8", 32] } - }, - { "name": "fee_a_pending", "docs": ["fee a pending"], "type": "u64" }, - { "name": "fee_b_pending", "docs": ["fee b pending"], "type": "u64" }, - { "name": "unlocked_liquidity", "docs": ["unlock liquidity"], "type": "u128" }, - { "name": "vested_liquidity", "docs": ["vesting liquidity"], "type": "u128" }, - { "name": "permanent_locked_liquidity", "docs": ["permanent locked liquidity"], "type": "u128" }, - { "name": "metrics", "docs": ["metrics"], "type": { "defined": { "name": "PositionMetrics" } } }, - { - "name": "reward_infos", - "docs": ["Farming reward information"], - "type": { "array": [{ "defined": { "name": "UserRewardInfo" } }, 2] } - }, - { "name": "padding", "docs": ["padding for future usage"], "type": { "array": ["u128", 6] } } - ] - } - }, - { - "name": "PositionMetrics", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "total_claimed_a_fee", "type": "u64" }, - { "name": "total_claimed_b_fee", "type": "u64" } - ] - } - }, - { - "name": "RemoveLiquidityParameters", - "type": { - "kind": "struct", - "fields": [ - { "name": "liquidity_delta", "docs": ["delta liquidity"], "type": "u128" }, - { "name": "token_a_amount_threshold", "docs": ["minimum token a amount"], "type": "u64" }, - { "name": "token_b_amount_threshold", "docs": ["minimum token b amount"], "type": "u64" } - ] - } - }, - { - "name": "RewardInfo", - "docs": ["Stores the state relevant for tracking liquidity mining rewards"], - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "initialized", "docs": ["Indicates if the reward has been initialized"], "type": "u8" }, - { "name": "reward_token_flag", "docs": ["reward token flag"], "type": "u8" }, - { "name": "_padding_0", "docs": ["padding"], "type": { "array": ["u8", 6] } }, - { - "name": "_padding_1", - "docs": ["Padding to ensure `reward_rate: u128` is 16-byte aligned"], - "type": { "array": ["u8", 8] } - }, - { "name": "mint", "docs": ["Reward token mint."], "type": "pubkey" }, - { "name": "vault", "docs": ["Reward vault token account."], "type": "pubkey" }, - { "name": "funder", "docs": ["Authority account that allows to fund rewards"], "type": "pubkey" }, - { "name": "reward_duration", "docs": ["reward duration"], "type": "u64" }, - { "name": "reward_duration_end", "docs": ["reward duration end"], "type": "u64" }, - { "name": "reward_rate", "docs": ["reward rate"], "type": "u128" }, - { - "name": "reward_per_token_stored", - "docs": ["Reward per token stored"], - "type": { "array": ["u8", 32] } - }, - { - "name": "last_update_time", - "docs": ["The last time reward states were updated."], - "type": "u64" - }, - { - "name": "cumulative_seconds_with_empty_liquidity_reward", - "docs": [ - "Accumulated seconds when the farm distributed rewards but the bin was empty.", - "These rewards will be carried over to the next reward time window." - ], - "type": "u64" - } - ] - } - }, - { - "name": "SplitAmountInfo", - "type": { - "kind": "struct", - "fields": [ - { "name": "permanent_locked_liquidity", "type": "u128" }, - { "name": "unlocked_liquidity", "type": "u128" }, - { "name": "fee_a", "type": "u64" }, - { "name": "fee_b", "type": "u64" }, - { "name": "reward_0", "type": "u64" }, - { "name": "reward_1", "type": "u64" } - ] - } - }, - { - "name": "SplitPositionInfo", - "type": { - "kind": "struct", - "fields": [ - { "name": "liquidity", "type": "u128" }, - { "name": "fee_a", "type": "u64" }, - { "name": "fee_b", "type": "u64" }, - { "name": "reward_0", "type": "u64" }, - { "name": "reward_1", "type": "u64" } - ] - } - }, - { - "name": "SplitPositionParameters", - "type": { - "kind": "struct", - "fields": [ - { - "name": "unlocked_liquidity_percentage", - "docs": ["Percentage of unlocked liquidity to split to the second position"], - "type": "u8" - }, - { - "name": "permanent_locked_liquidity_percentage", - "docs": ["Percentage of permanent locked liquidity to split to the second position"], - "type": "u8" - }, - { - "name": "fee_a_percentage", - "docs": ["Percentage of fee A pending to split to the second position"], - "type": "u8" - }, - { - "name": "fee_b_percentage", - "docs": ["Percentage of fee B pending to split to the second position"], - "type": "u8" - }, - { - "name": "reward_0_percentage", - "docs": ["Percentage of reward 0 pending to split to the second position"], - "type": "u8" - }, - { - "name": "reward_1_percentage", - "docs": ["Percentage of reward 1 pending to split to the second position"], - "type": "u8" - }, - { "name": "padding", "docs": ["padding for future"], "type": { "array": ["u8", 16] } } - ] - } - }, - { - "name": "SplitPositionParameters2", - "type": { - "kind": "struct", - "fields": [ - { "name": "unlocked_liquidity_numerator", "type": "u32" }, - { "name": "permanent_locked_liquidity_numerator", "type": "u32" }, - { "name": "fee_a_numerator", "type": "u32" }, - { "name": "fee_b_numerator", "type": "u32" }, - { "name": "reward_0_numerator", "type": "u32" }, - { "name": "reward_1_numerator", "type": "u32" } - ] - } - }, - { - "name": "StaticConfigParameters", - "type": { - "kind": "struct", - "fields": [ - { "name": "pool_fees", "type": { "defined": { "name": "PoolFeeParameters" } } }, - { "name": "sqrt_min_price", "type": "u128" }, - { "name": "sqrt_max_price", "type": "u128" }, - { "name": "vault_config_key", "type": "pubkey" }, - { "name": "pool_creator_authority", "type": "pubkey" }, - { "name": "activation_type", "type": "u8" }, - { "name": "collect_fee_mode", "type": "u8" } - ] - } - }, - { - "name": "SwapParameters", - "type": { - "kind": "struct", - "fields": [ - { "name": "amount_in", "type": "u64" }, - { "name": "minimum_amount_out", "type": "u64" } - ] - } - }, - { - "name": "SwapParameters2", - "type": { - "kind": "struct", - "fields": [ - { - "name": "amount_0", - "docs": [ - "When it's exact in, partial fill, this will be amount_in. When it's exact out, this will be amount_out" - ], - "type": "u64" - }, - { - "name": "amount_1", - "docs": [ - "When it's exact in, partial fill, this will be minimum_amount_out. When it's exact out, this will be maximum_amount_in" - ], - "type": "u64" - }, - { "name": "swap_mode", "docs": ["Swap mode, refer [SwapMode]"], "type": "u8" } - ] - } - }, - { - "name": "SwapResult2", - "type": { - "kind": "struct", - "fields": [ - { "name": "included_fee_input_amount", "type": "u64" }, - { "name": "excluded_fee_input_amount", "type": "u64" }, - { "name": "amount_left", "type": "u64" }, - { "name": "output_amount", "type": "u64" }, - { "name": "next_sqrt_price", "type": "u128" }, - { "name": "trading_fee", "type": "u64" }, - { "name": "protocol_fee", "type": "u64" }, - { "name": "partner_fee", "type": "u64" }, - { "name": "referral_fee", "type": "u64" } - ] - } - }, - { - "name": "TokenBadge", - "docs": ["Parameter that set by the protocol"], - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "token_mint", "docs": ["token mint"], "type": "pubkey" }, - { "name": "_padding", "docs": ["Reserve"], "type": { "array": ["u8", 128] } } - ] - } - }, - { - "name": "UpdatePoolFeesParameters", - "type": { - "kind": "struct", - "fields": [ - { - "name": "cliff_fee_numerator", - "docs": [ - "Base fee update mode:", - "- None: skip base fee update", - "- Some: update new cliff_fee_numerator if base fee is static" - ], - "type": { "option": "u64" } - }, - { - "name": "dynamic_fee", - "docs": [ - "Dynamic fee update mode:", - "- None: skip dynamic fee update", - "- Some(with default value): disable dynamic fee", - "- Some(with non default value): enable dynamic fee if disabled or update dynamic fee if enabled" - ], - "type": { "option": { "defined": { "name": "DynamicFeeParameters" } } } - } - ] - } - }, - { - "name": "UserRewardInfo", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { - "name": "reward_per_token_checkpoint", - "docs": ["The latest update reward checkpoint"], - "type": { "array": ["u8", 32] } - }, - { "name": "reward_pendings", "docs": ["Current pending rewards"], "type": "u64" }, - { "name": "total_claimed_rewards", "docs": ["Total claimed rewards"], "type": "u64" } - ] - } - }, - { - "name": "Vesting", - "serialization": "bytemuck", - "repr": { "kind": "c" }, - "type": { - "kind": "struct", - "fields": [ - { "name": "position", "type": "pubkey" }, - { "name": "cliff_point", "type": "u64" }, - { "name": "period_frequency", "type": "u64" }, - { "name": "cliff_unlock_liquidity", "type": "u128" }, - { "name": "liquidity_per_period", "type": "u128" }, - { "name": "total_released_liquidity", "type": "u128" }, - { "name": "number_of_period", "type": "u16" }, - { "name": "padding", "type": { "array": ["u8", 14] } }, - { "name": "padding2", "type": { "array": ["u128", 4] } } - ] - } - }, - { - "name": "VestingParameters", - "type": { - "kind": "struct", - "fields": [ - { "name": "cliff_point", "type": { "option": "u64" } }, - { "name": "period_frequency", "type": "u64" }, - { "name": "cliff_unlock_liquidity", "type": "u128" }, - { "name": "liquidity_per_period", "type": "u128" }, - { "name": "number_of_period", "type": "u16" } - ] - } - } - ], - "constants": [ - { "name": "BIN_STEP_BPS_DEFAULT", "type": "u16", "value": "1" }, - { - "name": "BIN_STEP_U128_DEFAULT_LE_BYTES", - "type": { "array": ["u8", 16] }, - "value": "[203, 16, 199, 186, 184, 141, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0]" - }, - { "name": "CUSTOMIZABLE_POOL_PREFIX", "type": "bytes", "value": "[99, 112, 111, 111, 108]" }, - { - "name": "FEE_DENOMINATOR", - "docs": [ - "Default fee denominator. DO NOT simply update it as it will break logic that depends on it as default value." - ], - "type": "u64", - "value": "1000000000" - }, - { "name": "MAX_BASIS_POINT", "docs": ["Max basis point. 100% in pct"], "type": "u64", "value": "10000" }, - { - "name": "MAX_SQRT_PRICE_LE_BYTES", - "type": { "array": ["u8", 16] }, - "value": "[155, 87, 105, 78, 169, 26, 92, 132, 177, 196, 254, 255, 0, 0, 0, 0]" - }, - { - "name": "MIN_SQRT_PRICE_LE_BYTES", - "type": { "array": ["u8", 16] }, - "value": "[80, 59, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]" - }, - { - "name": "POOL_AUTHORITY_PREFIX", - "type": "bytes", - "value": "[112, 111, 111, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]" - }, - { "name": "POOL_PREFIX", "type": "bytes", "value": "[112, 111, 111, 108]" }, - { - "name": "POSITION_NFT_ACCOUNT_PREFIX", - "type": "bytes", - "value": "[112, 111, 115, 105, 116, 105, 111, 110, 95, 110, 102, 116, 95, 97, 99, 99, 111, 117, 110, 116]" - }, - { "name": "POSITION_PREFIX", "type": "bytes", "value": "[112, 111, 115, 105, 116, 105, 111, 110]" }, - { "name": "SPLIT_POSITION_DENOMINATOR", "type": "u32", "value": "1000000000" }, - { - "name": "TOKEN_VAULT_PREFIX", - "type": "bytes", - "value": "[116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116]" - } - ] -} diff --git a/idl/bitquery/pumpfun/pump.json b/idl/bitquery/pumpfun/pump.json deleted file mode 100644 index 2af9f4c..0000000 --- a/idl/bitquery/pumpfun/pump.json +++ /dev/null @@ -1,3564 +0,0 @@ -{ - "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", - "metadata": { - "name": "pump", - "version": "0.1.0", - "spec": "0.1.0", - "description": "Created with Anchor" - }, - "instructions": [ - { - "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", - "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": "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": "buy_exact_sol_in", - "docs": [ - "Given a budget of spendable SOL, buy at least min_tokens_out", - "Account creation and fees will be deducted from the spendable SOL", - "", - "f(sol) = tokens, where tokens >= min_tokens_out and sol > rent + fees", - "", - "max_slippage = min_tokens_out = 1", - "", - "Make sure the sol budget is enough to cover creation of the following accounts (unless already created):", - "- creator_vault: rent.minimum_balance(SystemAccount::LEN)", - "- 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", - "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": "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": "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": "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, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "sol_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": "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": "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": "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" - } - ], - "args": [] - }, - { - "name": "sell", - "docs": ["Sells tokens into a bonding curve."], - "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": "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_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_recipient", - "discriminator": [207, 189, 178, 71, 167, 122, 68, 180], - "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": "reserved_fee_recipient", - "type": "pubkey" - }, - { - "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_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_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": "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": "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": "ExtendAccountEvent", - "discriminator": [97, 97, 215, 144, 93, 146, 22, 124] - }, - { - "name": "InitUserVolumeAccumulatorEvent", - "discriminator": [134, 36, 13, 72, 232, 101, 130, 216] - }, - { - "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] - } - ], - "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" - } - ], - "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_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": "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": "CompleteEvent", - "type": { - "kind": "struct", - "fields": [ - { - "name": "user", - "type": "pubkey" - }, - { - "name": "mint", - "type": "pubkey" - }, - { - "name": "bonding_curve", - "type": "pubkey" - }, - { - "name": "timestamp", - "type": "i64" - } - ] - } - }, - { - "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": "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": "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": "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": "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": "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": "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": "UpdateGlobalAuthorityEvent", - "type": { - "kind": "struct", - "fields": [ - { - "name": "global", - "type": "pubkey" - }, - { - "name": "authority", - "type": "pubkey" - }, - { - "name": "new_authority", - "type": "pubkey" - }, - { - "name": "timestamp", - "type": "i64" - } - ] - } - }, - { - "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" - } - ] - } - } - ] -} diff --git a/idl/bitquery/pumpswap/amm.json b/idl/bitquery/pumpswap/amm.json deleted file mode 100644 index fbd5f14..0000000 --- a/idl/bitquery/pumpswap/amm.json +++ /dev/null @@ -1,3433 +0,0 @@ -{ - "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", - "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", - "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": "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": "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)" - ], - "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", - "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": "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": "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": "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": "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_recipient", - "discriminator": [207, 189, 178, 71, 167, 122, 68, 180], - "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": "reserved_fee_recipient", - "type": "pubkey" - }, - { - "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_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": "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_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": "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": "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": "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" - } - ], - "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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" - } - ] - } - } - ] -} diff --git a/idl/bitquery/raydium/launchpad.json b/idl/bitquery/raydium/launchpad.json deleted file mode 100644 index 1cea6fa..0000000 --- a/idl/bitquery/raydium/launchpad.json +++ /dev/null @@ -1,5783 +0,0 @@ -{ - "address": "LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj", - "metadata": { - "name": "raydium_launchpad", - "version": "0.2.0", - "spec": "0.1.0", - "description": "Created with Anchor" - }, - "instructions": [ - { - "name": "buy_exact_in", - "docs": [ - "Use the given amount of quote tokens to purchase base tokens.", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "* `amount_in` - Amount of quote token to purchase", - "* `minimum_amount_out` - Minimum amount of base token to receive (slippage protection)", - "* `share_fee_rate` - Fee rate for the share", - "" - ], - "discriminator": [ - 250, - 234, - 13, - 123, - 213, - 156, - 19, - 236 - ], - "accounts": [ - { - "name": "payer", - "docs": [ - "The user performing the swap operation", - "Must sign the transaction and pay for fees" - ], - "signer": true - }, - { - "name": "authority", - "docs": [ - "PDA that acts as the authority for pool vault operations", - "Generated using AUTH_SEED" - ], - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "global_config", - "docs": [ - "Global configuration account containing protocol-wide settings", - "Used to read protocol fee rates and curve type" - ] - }, - { - "name": "platform_config", - "docs": [ - "Platform configuration account containing platform-wide settings", - "Used to read platform fee rate" - ] - }, - { - "name": "pool_state", - "docs": [ - "The pool state account where the swap will be performed", - "Contains current pool parameters and balances" - ], - "writable": true - }, - { - "name": "user_base_token", - "docs": [ - "The user's token account for base tokens (tokens being bought)", - "Will receive the output tokens after the swap" - ], - "writable": true - }, - { - "name": "user_quote_token", - "docs": [ - "The user's token account for quote tokens (tokens being sold)", - "Will be debited for the input amount" - ], - "writable": true - }, - { - "name": "base_vault", - "docs": [ - "The pool's vault for base tokens", - "Will be debited to send tokens to the user" - ], - "writable": true - }, - { - "name": "quote_vault", - "docs": [ - "The pool's vault for quote tokens", - "Will receive the input tokens from the user" - ], - "writable": true - }, - { - "name": "base_token_mint", - "docs": [ - "The mint of the base token", - "Used for transfer fee calculations if applicable" - ] - }, - { - "name": "quote_token_mint", - "docs": [ - "The mint of the quote token" - ] - }, - { - "name": "base_token_program", - "docs": [ - "SPL Token program for base token transfers" - ] - }, - { - "name": "quote_token_program", - "docs": [ - "SPL Token program for quote token transfers" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "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": "amount_in", - "type": "u64" - }, - { - "name": "minimum_amount_out", - "type": "u64" - }, - { - "name": "share_fee_rate", - "type": "u64" - } - ] - }, - { - "name": "buy_exact_out", - "docs": [ - "Use quote tokens to purchase the given amount of base tokens.", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "* `amount_out` - Amount of base token to receive", - "* `maximum_amount_in` - Maximum amount of quote token to purchase (slippage protection)", - "* `share_fee_rate` - Fee rate for the share" - ], - "discriminator": [ - 24, - 211, - 116, - 40, - 105, - 3, - 153, - 56 - ], - "accounts": [ - { - "name": "payer", - "docs": [ - "The user performing the swap operation", - "Must sign the transaction and pay for fees" - ], - "signer": true - }, - { - "name": "authority", - "docs": [ - "PDA that acts as the authority for pool vault operations", - "Generated using AUTH_SEED" - ], - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "global_config", - "docs": [ - "Global configuration account containing protocol-wide settings", - "Used to read protocol fee rates and curve type" - ] - }, - { - "name": "platform_config", - "docs": [ - "Platform configuration account containing platform-wide settings", - "Used to read platform fee rate" - ] - }, - { - "name": "pool_state", - "docs": [ - "The pool state account where the swap will be performed", - "Contains current pool parameters and balances" - ], - "writable": true - }, - { - "name": "user_base_token", - "docs": [ - "The user's token account for base tokens (tokens being bought)", - "Will receive the output tokens after the swap" - ], - "writable": true - }, - { - "name": "user_quote_token", - "docs": [ - "The user's token account for quote tokens (tokens being sold)", - "Will be debited for the input amount" - ], - "writable": true - }, - { - "name": "base_vault", - "docs": [ - "The pool's vault for base tokens", - "Will be debited to send tokens to the user" - ], - "writable": true - }, - { - "name": "quote_vault", - "docs": [ - "The pool's vault for quote tokens", - "Will receive the input tokens from the user" - ], - "writable": true - }, - { - "name": "base_token_mint", - "docs": [ - "The mint of the base token", - "Used for transfer fee calculations if applicable" - ] - }, - { - "name": "quote_token_mint", - "docs": [ - "The mint of the quote token" - ] - }, - { - "name": "base_token_program", - "docs": [ - "SPL Token program for base token transfers" - ] - }, - { - "name": "quote_token_program", - "docs": [ - "SPL Token program for quote token transfers" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "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": "amount_out", - "type": "u64" - }, - { - "name": "maximum_amount_in", - "type": "u64" - }, - { - "name": "share_fee_rate", - "type": "u64" - } - ] - }, - { - "name": "claim_creator_fee", - "docs": [ - "Claim the fee from the exclusive creator fee vault.", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "" - ], - "discriminator": [ - 26, - 97, - 138, - 203, - 132, - 171, - 141, - 252 - ], - "accounts": [ - { - "name": "creator", - "docs": [ - "The pool creator" - ], - "writable": true, - "signer": true - }, - { - "name": "fee_vault_authority", - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 99, - 114, - 101, - 97, - 116, - 111, - 114, - 95, - 102, - 101, - 101, - 95, - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "creator_fee_vault", - "docs": [ - "The creator fee vault" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "creator" - }, - { - "kind": "account", - "path": "quote_mint" - } - ] - } - }, - { - "name": "recipient_token_account", - "writable": true, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "creator" - }, - { - "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": "quote_mint", - "docs": [ - "The mint for the quote token" - ] - }, - { - "name": "token_program", - "docs": [ - "SPL Token program for the quote token" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "name": "system_program", - "docs": [ - "Required for account creation" - ], - "address": "11111111111111111111111111111111" - }, - { - "name": "associated_token_program", - "docs": [ - "Required for associated token program" - ], - "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" - } - ], - "args": [] - }, - { - "name": "claim_platform_fee", - "docs": [ - "Claim platform fee", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "" - ], - "discriminator": [ - 156, - 39, - 208, - 135, - 76, - 237, - 61, - 72 - ], - "accounts": [ - { - "name": "platform_fee_wallet", - "docs": [ - "Only the wallet stored in platform_config can collect platform fees" - ], - "writable": true, - "signer": true - }, - { - "name": "authority", - "docs": [ - "PDA that acts as the authority for pool vault and mint operations", - "Generated using AUTH_SEED" - ], - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "pool_state", - "docs": [ - "Account that stores the pool's state and parameters", - "PDA generated using POOL_SEED and both token mints" - ], - "writable": true - }, - { - "name": "platform_config", - "docs": [ - "The platform config account" - ] - }, - { - "name": "quote_vault", - "writable": true - }, - { - "name": "recipient_token_account", - "docs": [ - "The address that receives the collected quote token fees" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "platform_fee_wallet" - }, - { - "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": "quote_mint", - "docs": [ - "The mint of quote token vault" - ] - }, - { - "name": "token_program", - "docs": [ - "SPL program for input token transfers" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "name": "system_program", - "docs": [ - "Required for account creation" - ], - "address": "11111111111111111111111111111111" - }, - { - "name": "associated_token_program", - "docs": [ - "Required for associated token program" - ], - "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" - } - ], - "args": [] - }, - { - "name": "claim_platform_fee_from_vault", - "docs": [ - "Claim the fee from the exclusive platform fee vault.", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "" - ], - "discriminator": [ - 117, - 241, - 198, - 168, - 248, - 218, - 80, - 29 - ], - "accounts": [ - { - "name": "platform_fee_wallet", - "docs": [ - "Only the wallet stored in platform_config can collect platform fees" - ], - "writable": true, - "signer": true - }, - { - "name": "fee_vault_authority", - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 108, - 97, - 116, - 102, - 111, - 114, - 109, - 95, - 102, - 101, - 101, - 95, - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "platform_config", - "docs": [ - "The platform config account" - ] - }, - { - "name": "platform_fee_vault", - "docs": [ - "The platform fee vault" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "platform_config" - }, - { - "kind": "account", - "path": "quote_mint" - } - ] - } - }, - { - "name": "recipient_token_account", - "docs": [ - "The address that receives the collected quote token fees" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "platform_fee_wallet" - }, - { - "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": "quote_mint", - "docs": [ - "The mint of quote token vault" - ] - }, - { - "name": "token_program", - "docs": [ - "SPL program for input token transfers" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "name": "system_program", - "docs": [ - "Required for account creation" - ], - "address": "11111111111111111111111111111111" - }, - { - "name": "associated_token_program", - "docs": [ - "Required for associated token program" - ], - "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" - } - ], - "args": [] - }, - { - "name": "claim_vested_token", - "docs": [ - "Claim vested token", - "# Arguments" - ], - "discriminator": [ - 49, - 33, - 104, - 30, - 189, - 157, - 79, - 35 - ], - "accounts": [ - { - "name": "beneficiary", - "docs": [ - "The beneficiary of the vesting account" - ], - "writable": true, - "signer": true - }, - { - "name": "authority", - "docs": [ - "PDA that acts as the authority for pool vault and mint operations", - "Generated using AUTH_SEED" - ], - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "pool_state", - "docs": [ - "Account that stores the pool's state and parameters", - "PDA generated using POOL_SEED and both token mints" - ], - "writable": true - }, - { - "name": "vesting_record", - "docs": [ - "The vesting record account" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108, - 95, - 118, - 101, - 115, - 116, - 105, - 110, - 103 - ] - }, - { - "kind": "account", - "path": "pool_state" - }, - { - "kind": "account", - "path": "beneficiary" - } - ] - } - }, - { - "name": "base_vault", - "docs": [ - "The pool's vault for base tokens", - "Will be debited to send tokens to the user" - ], - "writable": true - }, - { - "name": "user_base_token", - "writable": true, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "beneficiary" - }, - { - "kind": "account", - "path": "base_token_program" - }, - { - "kind": "account", - "path": "base_token_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_mint", - "docs": [ - "The mint for the base token (token being sold)", - "Created in this instruction with specified decimals" - ] - }, - { - "name": "base_token_program", - "docs": [ - "SPL Token program for the base token", - "Must be the standard Token program" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "name": "system_program", - "docs": [ - "Required for account creation" - ], - "address": "11111111111111111111111111111111" - }, - { - "name": "associated_token_program", - "docs": [ - "Required for associated token program" - ], - "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" - } - ], - "args": [] - }, - { - "name": "collect_fee", - "docs": [ - "Collects accumulated fees from the pool", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "" - ], - "discriminator": [ - 60, - 173, - 247, - 103, - 4, - 93, - 130, - 48 - ], - "accounts": [ - { - "name": "owner", - "docs": [ - "Only protocol_fee_owner saved in global_config can collect protocol fee now" - ], - "signer": true - }, - { - "name": "authority", - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "pool_state", - "docs": [ - "Pool state stores accumulated protocol fee amount" - ], - "writable": true - }, - { - "name": "global_config", - "docs": [ - "Global config account stores owner" - ] - }, - { - "name": "quote_vault", - "docs": [ - "The address that holds pool tokens for quote token" - ], - "writable": true - }, - { - "name": "quote_mint", - "docs": [ - "The mint of quote token vault" - ] - }, - { - "name": "recipient_token_account", - "docs": [ - "The address that receives the collected quote token fees" - ], - "writable": true - }, - { - "name": "token_program", - "docs": [ - "SPL program for input token transfers" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - } - ], - "args": [] - }, - { - "name": "collect_migrate_fee", - "docs": [ - "Collects migrate fees from the pool", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "" - ], - "discriminator": [ - 255, - 186, - 150, - 223, - 235, - 118, - 201, - 186 - ], - "accounts": [ - { - "name": "owner", - "docs": [ - "Only migrate_fee_owner saved in global_config can collect migrate fee now" - ], - "signer": true - }, - { - "name": "authority", - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "pool_state", - "docs": [ - "Pool state stores accumulated protocol fee amount" - ], - "writable": true - }, - { - "name": "global_config", - "docs": [ - "Global config account stores owner" - ] - }, - { - "name": "quote_vault", - "docs": [ - "The address that holds pool tokens for quote token" - ], - "writable": true - }, - { - "name": "quote_mint", - "docs": [ - "The mint of quote token vault" - ] - }, - { - "name": "recipient_token_account", - "docs": [ - "The address that receives the collected quote token fees" - ], - "writable": true - }, - { - "name": "token_program", - "docs": [ - "SPL program for input token transfers" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - } - ], - "args": [] - }, - { - "name": "create_config", - "docs": [ - "Creates a new configuration", - "# Arguments", - "", - "* `ctx` - The accounts needed by instruction", - "* `curve_type` - The type of bonding curve (0: ConstantProduct)", - "* `index` - The index of config, there may be multiple config with the same curve type.", - "* `trade_fee_rate` - Trade fee rate, must be less than RATE_DENOMINATOR_VALUE", - "" - ], - "discriminator": [ - 201, - 207, - 243, - 114, - 75, - 111, - 47, - 189 - ], - "accounts": [ - { - "name": "owner", - "docs": [ - "The protocol owner/admin account", - "Must match the predefined admin address", - "Has authority to create and modify protocol configurations" - ], - "writable": true, - "signer": true, - "address": "GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ" - }, - { - "name": "global_config", - "docs": [ - "Global configuration account that stores protocol-wide settings", - "PDA generated using GLOBAL_CONFIG_SEED, quote token mint, and curve type", - "Stores fee rates and protocol parameters" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 103, - 108, - 111, - 98, - 97, - 108, - 95, - 99, - 111, - 110, - 102, - 105, - 103 - ] - }, - { - "kind": "account", - "path": "quote_token_mint" - }, - { - "kind": "arg", - "path": "curve_type" - }, - { - "kind": "arg", - "path": "index" - } - ] - } - }, - { - "name": "quote_token_mint", - "docs": [ - "The mint address of the quote token (token used for buying)", - "This will be the standard token used for all pools with this config" - ] - }, - { - "name": "protocol_fee_owner", - "docs": [ - "Account that will receive protocol fees" - ] - }, - { - "name": "migrate_fee_owner", - "docs": [ - "Account that will receive migrate fees" - ] - }, - { - "name": "migrate_to_amm_wallet", - "docs": [ - "The control wallet address for migrating to amm" - ] - }, - { - "name": "migrate_to_cpswap_wallet", - "docs": [ - "The control wallet address for migrating to cpswap" - ] - }, - { - "name": "system_program", - "docs": [ - "Required for account creation" - ], - "address": "11111111111111111111111111111111" - } - ], - "args": [ - { - "name": "curve_type", - "type": "u8" - }, - { - "name": "index", - "type": "u16" - }, - { - "name": "migrate_fee", - "type": "u64" - }, - { - "name": "trade_fee_rate", - "type": "u64" - } - ] - }, - { - "name": "create_platform_config", - "docs": [ - "Create platform config account", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "# Fields", - "* `fee_rate` - Fee rate of the platform", - "* `name` - Name of the platform", - "* `web` - Website of the platform", - "* `img` - Image link of the platform", - "" - ], - "discriminator": [ - 176, - 90, - 196, - 175, - 253, - 113, - 220, - 20 - ], - "accounts": [ - { - "name": "platform_admin", - "docs": [ - "The account paying for the initialization costs" - ], - "writable": true, - "signer": true - }, - { - "name": "platform_fee_wallet" - }, - { - "name": "platform_nft_wallet" - }, - { - "name": "platform_config", - "docs": [ - "The platform config account" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 108, - 97, - 116, - 102, - 111, - 114, - 109, - 95, - 99, - 111, - 110, - 102, - 105, - 103 - ] - }, - { - "kind": "account", - "path": "platform_admin" - } - ] - } - }, - { - "name": "cpswap_config" - }, - { - "name": "system_program", - "docs": [ - "Required for account creation" - ], - "address": "11111111111111111111111111111111" - }, - { - "name": "transfer_fee_extension_authority" - } - ], - "args": [ - { - "name": "platform_params", - "type": { - "defined": { - "name": "PlatformParams" - } - } - } - ] - }, - { - "name": "create_vesting_account", - "docs": [ - "Create vesting account", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "* `share` - The share amount of base token to be vested", - "" - ], - "discriminator": [ - 129, - 178, - 2, - 13, - 217, - 172, - 230, - 218 - ], - "accounts": [ - { - "name": "creator", - "docs": [ - "The account paying for the initialization costs", - "This can be any account with sufficient SOL to cover the transaction" - ], - "writable": true, - "signer": true - }, - { - "name": "beneficiary", - "docs": [ - "The beneficiary is used to receive the allocated linear release of tokens.", - "Once this account is set, it cannot be modified, so please ensure the validity of this account,", - "otherwise, the unlocked tokens will not be claimable." - ], - "writable": true - }, - { - "name": "pool_state", - "docs": [ - "The pool state account" - ], - "writable": true - }, - { - "name": "vesting_record", - "docs": [ - "The vesting record account" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108, - 95, - 118, - 101, - 115, - 116, - 105, - 110, - 103 - ] - }, - { - "kind": "account", - "path": "pool_state" - }, - { - "kind": "account", - "path": "beneficiary" - } - ] - } - }, - { - "name": "system_program", - "docs": [ - "Required for account creation" - ], - "address": "11111111111111111111111111111111" - } - ], - "args": [ - { - "name": "share_amount", - "type": "u64" - } - ] - }, - { - "name": "initialize", - "docs": [ - "Initializes a new trading pool", - "# Arguments", - "", - "* `ctx` - The context of accounts containing pool and token information", - "" - ], - "discriminator": [ - 175, - 175, - 109, - 31, - 13, - 152, - 155, - 237 - ], - "accounts": [ - { - "name": "payer", - "docs": [ - "The account paying for the initialization costs", - "This can be any account with sufficient SOL to cover the transaction" - ], - "writable": true, - "signer": true - }, - { - "name": "creator" - }, - { - "name": "global_config", - "docs": [ - "Global configuration account containing protocol-wide settings", - "Includes settings like quote token mint and fee parameters" - ] - }, - { - "name": "platform_config", - "docs": [ - "Platform configuration account containing platform info", - "Includes settings like the fee_rate, name, web, img of the platform" - ] - }, - { - "name": "authority", - "docs": [ - "PDA that acts as the authority for pool vault and mint operations", - "Generated using AUTH_SEED" - ], - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "pool_state", - "docs": [ - "Account that stores the pool's state and parameters", - "PDA generated using POOL_SEED and both token mints" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108 - ] - }, - { - "kind": "account", - "path": "base_mint" - }, - { - "kind": "account", - "path": "quote_mint" - } - ] - } - }, - { - "name": "base_mint", - "docs": [ - "The mint for the base token (token being sold)", - "Created in this instruction with specified decimals" - ], - "writable": true, - "signer": true - }, - { - "name": "quote_mint", - "docs": [ - "The mint for the quote token (token used to buy)", - "Must match the quote_mint specified in global config" - ] - }, - { - "name": "base_vault", - "docs": [ - "Token account that holds the pool's base tokens", - "PDA generated using POOL_VAULT_SEED" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108, - 95, - 118, - 97, - 117, - 108, - 116 - ] - }, - { - "kind": "account", - "path": "pool_state" - }, - { - "kind": "account", - "path": "base_mint" - } - ] - } - }, - { - "name": "quote_vault", - "docs": [ - "Token account that holds the pool's quote tokens", - "PDA generated using POOL_VAULT_SEED" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108, - 95, - 118, - 97, - 117, - 108, - 116 - ] - }, - { - "kind": "account", - "path": "pool_state" - }, - { - "kind": "account", - "path": "quote_mint" - } - ] - } - }, - { - "name": "metadata_account", - "docs": [ - "Account to store the base token's metadata", - "Created using Metaplex metadata program" - ], - "writable": true - }, - { - "name": "base_token_program", - "docs": [ - "SPL Token program for the base token", - "Must be the standard Token program" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "name": "quote_token_program", - "docs": [ - "SPL Token program for the quote token" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "name": "metadata_program", - "docs": [ - "Metaplex Token Metadata program", - "Used to create metadata for the base token" - ], - "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" - }, - { - "name": "system_program", - "docs": [ - "Required for account creation" - ], - "address": "11111111111111111111111111111111" - }, - { - "name": "rent_program", - "docs": [ - "Required for rent exempt calculations" - ], - "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": "base_mint_param", - "type": { - "defined": { - "name": "MintParams" - } - } - }, - { - "name": "curve_param", - "type": { - "defined": { - "name": "CurveParams" - } - } - }, - { - "name": "vesting_param", - "type": { - "defined": { - "name": "VestingParams" - } - } - } - ] - }, - { - "name": "initialize_v2", - "docs": [ - "Initializes a new trading pool", - "# Arguments", - "", - "* `ctx` - The context of accounts containing pool and token information", - "" - ], - "discriminator": [ - 67, - 153, - 175, - 39, - 218, - 16, - 38, - 32 - ], - "accounts": [ - { - "name": "payer", - "docs": [ - "The account paying for the initialization costs", - "This can be any account with sufficient SOL to cover the transaction" - ], - "writable": true, - "signer": true - }, - { - "name": "creator" - }, - { - "name": "global_config", - "docs": [ - "Global configuration account containing protocol-wide settings", - "Includes settings like quote token mint and fee parameters" - ] - }, - { - "name": "platform_config", - "docs": [ - "Platform configuration account containing platform info", - "Includes settings like the fee_rate, name, web, img of the platform" - ] - }, - { - "name": "authority", - "docs": [ - "PDA that acts as the authority for pool vault and mint operations", - "Generated using AUTH_SEED" - ], - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "pool_state", - "docs": [ - "Account that stores the pool's state and parameters", - "PDA generated using POOL_SEED and both token mints" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108 - ] - }, - { - "kind": "account", - "path": "base_mint" - }, - { - "kind": "account", - "path": "quote_mint" - } - ] - } - }, - { - "name": "base_mint", - "docs": [ - "The mint for the base token (token being sold)", - "Created in this instruction with specified decimals" - ], - "writable": true, - "signer": true - }, - { - "name": "quote_mint", - "docs": [ - "The mint for the quote token (token used to buy)", - "Must match the quote_mint specified in global config" - ] - }, - { - "name": "base_vault", - "docs": [ - "Token account that holds the pool's base tokens", - "PDA generated using POOL_VAULT_SEED" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108, - 95, - 118, - 97, - 117, - 108, - 116 - ] - }, - { - "kind": "account", - "path": "pool_state" - }, - { - "kind": "account", - "path": "base_mint" - } - ] - } - }, - { - "name": "quote_vault", - "docs": [ - "Token account that holds the pool's quote tokens", - "PDA generated using POOL_VAULT_SEED" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108, - 95, - 118, - 97, - 117, - 108, - 116 - ] - }, - { - "kind": "account", - "path": "pool_state" - }, - { - "kind": "account", - "path": "quote_mint" - } - ] - } - }, - { - "name": "metadata_account", - "docs": [ - "Account to store the base token's metadata", - "Created using Metaplex metadata program" - ], - "writable": true - }, - { - "name": "base_token_program", - "docs": [ - "SPL Token program for the base token", - "Must be the standard Token program" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "name": "quote_token_program", - "docs": [ - "SPL Token program for the quote token" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "name": "metadata_program", - "docs": [ - "Metaplex Token Metadata program", - "Used to create metadata for the base token" - ], - "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" - }, - { - "name": "system_program", - "docs": [ - "Required for account creation" - ], - "address": "11111111111111111111111111111111" - }, - { - "name": "rent_program", - "docs": [ - "Required for rent exempt calculations" - ], - "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": "base_mint_param", - "type": { - "defined": { - "name": "MintParams" - } - } - }, - { - "name": "curve_param", - "type": { - "defined": { - "name": "CurveParams" - } - } - }, - { - "name": "vesting_param", - "type": { - "defined": { - "name": "VestingParams" - } - } - }, - { - "name": "amm_fee_on", - "type": { - "defined": { - "name": "AmmCreatorFeeOn" - } - } - } - ] - }, - { - "name": "initialize_with_token_2022", - "docs": [ - "Initializes a new trading pool with base token belongs to spl-token-2022,", - "pool created by this instruction must be migrated to cpswap after fundraising ends, i.e., curve_param.migrate_type = 1", - "# Arguments", - "", - "* `ctx` - The context of accounts containing pool and token information", - "" - ], - "discriminator": [ - 37, - 190, - 126, - 222, - 44, - 154, - 171, - 17 - ], - "accounts": [ - { - "name": "payer", - "docs": [ - "The account paying for the initialization costs", - "This can be any account with sufficient SOL to cover the transaction" - ], - "writable": true, - "signer": true - }, - { - "name": "creator" - }, - { - "name": "global_config", - "docs": [ - "Global configuration account containing protocol-wide settings", - "Includes settings like quote token mint and fee parameters" - ] - }, - { - "name": "platform_config", - "docs": [ - "Platform configuration account containing platform info", - "Includes settings like the fee_rate, name, web, img of the platform" - ] - }, - { - "name": "authority", - "docs": [ - "PDA that acts as the authority for pool vault and mint operations", - "Generated using AUTH_SEED" - ], - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "pool_state", - "docs": [ - "Account that stores the pool's state and parameters", - "PDA generated using POOL_SEED and both token mints" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108 - ] - }, - { - "kind": "account", - "path": "base_mint" - }, - { - "kind": "account", - "path": "quote_mint" - } - ] - } - }, - { - "name": "base_mint", - "docs": [ - "The mint for the base token (token being sold)", - "Created in this instruction with specified decimals" - ], - "writable": true, - "signer": true - }, - { - "name": "quote_mint", - "docs": [ - "The mint for the quote token (token used to buy)", - "Must match the quote_mint specified in global config" - ] - }, - { - "name": "base_vault", - "docs": [ - "Token account that holds the pool's base tokens", - "PDA generated using POOL_VAULT_SEED" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108, - 95, - 118, - 97, - 117, - 108, - 116 - ] - }, - { - "kind": "account", - "path": "pool_state" - }, - { - "kind": "account", - "path": "base_mint" - } - ] - } - }, - { - "name": "quote_vault", - "docs": [ - "Token account that holds the pool's quote tokens", - "PDA generated using POOL_VAULT_SEED" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108, - 95, - 118, - 97, - 117, - 108, - 116 - ] - }, - { - "kind": "account", - "path": "pool_state" - }, - { - "kind": "account", - "path": "quote_mint" - } - ] - } - }, - { - "name": "base_token_program", - "docs": [ - "SPL Token program for the base token" - ], - "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" - }, - { - "name": "quote_token_program", - "docs": [ - "SPL Token program for the quote token" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "name": "system_program", - "docs": [ - "Required for account creation" - ], - "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": "base_mint_param", - "type": { - "defined": { - "name": "MintParams" - } - } - }, - { - "name": "curve_param", - "type": { - "defined": { - "name": "CurveParams" - } - } - }, - { - "name": "vesting_param", - "type": { - "defined": { - "name": "VestingParams" - } - } - }, - { - "name": "amm_fee_on", - "type": { - "defined": { - "name": "AmmCreatorFeeOn" - } - } - }, - { - "name": "transfer_fee_extension_param", - "type": { - "option": { - "defined": { - "name": "TransferFeeExtensionParams" - } - } - } - } - ] - }, - { - "name": "migrate_to_amm", - "docs": [ - "# Arguments", - "", - "* `ctx` - The context of accounts", - "" - ], - "discriminator": [ - 207, - 82, - 192, - 145, - 254, - 207, - 145, - 223 - ], - "accounts": [ - { - "name": "payer", - "docs": [ - "Only migrate_to_amm_wallet can migrate to cpswap pool", - "This signer must match the migrate_to_amm_wallet saved in global_config" - ], - "writable": true, - "signer": true - }, - { - "name": "base_mint", - "docs": [ - "The mint for the base token (token being sold)" - ] - }, - { - "name": "quote_mint", - "docs": [ - "The mint for the quote token (token used to buy)" - ] - }, - { - "name": "openbook_program", - "address": "srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX" - }, - { - "name": "market", - "docs": [ - "Account created and asigned to openbook_program but not been initialized" - ], - "writable": true - }, - { - "name": "request_queue", - "docs": [ - "Account created and asigned to openbook_program but not been initialized" - ], - "writable": true - }, - { - "name": "event_queue", - "docs": [ - "Account created and asigned to openbook_program but not been initialized" - ], - "writable": true - }, - { - "name": "bids", - "docs": [ - "Account created and asigned to openbook_program but not been initialized" - ], - "writable": true - }, - { - "name": "asks", - "docs": [ - "Account created and asigned to openbook_program but not been initialized" - ], - "writable": true - }, - { - "name": "market_vault_signer" - }, - { - "name": "market_base_vault", - "docs": [ - "Token account that holds the market's base tokens" - ], - "writable": true - }, - { - "name": "market_quote_vault", - "docs": [ - "Token account that holds the market's quote tokens" - ], - "writable": true - }, - { - "name": "amm_program", - "address": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8" - }, - { - "name": "amm_pool", - "writable": true, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "amm_program" - }, - { - "kind": "account", - "path": "market" - }, - { - "kind": "const", - "value": [ - 97, - 109, - 109, - 95, - 97, - 115, - 115, - 111, - 99, - 105, - 97, - 116, - 101, - 100, - 95, - 115, - 101, - 101, - 100 - ] - } - ], - "program": { - "kind": "account", - "path": "amm_program" - } - } - }, - { - "name": "amm_authority", - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 97, - 109, - 109, - 32, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 - ] - } - ], - "program": { - "kind": "account", - "path": "amm_program" - } - } - }, - { - "name": "amm_open_orders", - "writable": true, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "amm_program" - }, - { - "kind": "account", - "path": "market" - }, - { - "kind": "const", - "value": [ - 111, - 112, - 101, - 110, - 95, - 111, - 114, - 100, - 101, - 114, - 95, - 97, - 115, - 115, - 111, - 99, - 105, - 97, - 116, - 101, - 100, - 95, - 115, - 101, - 101, - 100 - ] - } - ], - "program": { - "kind": "account", - "path": "amm_program" - } - } - }, - { - "name": "amm_lp_mint", - "writable": true, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "amm_program" - }, - { - "kind": "account", - "path": "market" - }, - { - "kind": "const", - "value": [ - 108, - 112, - 95, - 109, - 105, - 110, - 116, - 95, - 97, - 115, - 115, - 111, - 99, - 105, - 97, - 116, - 101, - 100, - 95, - 115, - 101, - 101, - 100 - ] - } - ], - "program": { - "kind": "account", - "path": "amm_program" - } - } - }, - { - "name": "amm_base_vault", - "writable": true, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "amm_program" - }, - { - "kind": "account", - "path": "market" - }, - { - "kind": "const", - "value": [ - 99, - 111, - 105, - 110, - 95, - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 115, - 115, - 111, - 99, - 105, - 97, - 116, - 101, - 100, - 95, - 115, - 101, - 101, - 100 - ] - } - ], - "program": { - "kind": "account", - "path": "amm_program" - } - } - }, - { - "name": "amm_quote_vault", - "writable": true, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "amm_program" - }, - { - "kind": "account", - "path": "market" - }, - { - "kind": "const", - "value": [ - 112, - 99, - 95, - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 115, - 115, - 111, - 99, - 105, - 97, - 116, - 101, - 100, - 95, - 115, - 101, - 101, - 100 - ] - } - ], - "program": { - "kind": "account", - "path": "amm_program" - } - } - }, - { - "name": "amm_target_orders", - "writable": true, - "pda": { - "seeds": [ - { - "kind": "account", - "path": "amm_program" - }, - { - "kind": "account", - "path": "market" - }, - { - "kind": "const", - "value": [ - 116, - 97, - 114, - 103, - 101, - 116, - 95, - 97, - 115, - 115, - 111, - 99, - 105, - 97, - 116, - 101, - 100, - 95, - 115, - 101, - 101, - 100 - ] - } - ], - "program": { - "kind": "account", - "path": "amm_program" - } - } - }, - { - "name": "amm_config", - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 97, - 109, - 109, - 95, - 99, - 111, - 110, - 102, - 105, - 103, - 95, - 97, - 99, - 99, - 111, - 117, - 110, - 116, - 95, - 115, - 101, - 101, - 100 - ] - } - ], - "program": { - "kind": "account", - "path": "amm_program" - } - } - }, - { - "name": "amm_create_fee_destination", - "writable": true - }, - { - "name": "authority", - "docs": [ - "PDA that acts as the authority for pool vault operations", - "Generated using AUTH_SEED" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "pool_state", - "docs": [ - "Account that stores the pool's state and parameters", - "PDA generated using POOL_SEED and both token mints" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108 - ] - }, - { - "kind": "account", - "path": "base_mint" - }, - { - "kind": "account", - "path": "quote_mint" - } - ] - } - }, - { - "name": "global_config", - "docs": [ - "Global config account stores owner" - ] - }, - { - "name": "base_vault", - "docs": [ - "The pool's vault for base tokens", - "Will be fully drained during migration" - ], - "writable": true - }, - { - "name": "quote_vault", - "docs": [ - "The pool's vault for quote tokens", - "Will be fully drained during migration" - ], - "writable": true - }, - { - "name": "pool_lp_token", - "writable": true - }, - { - "name": "spl_token_program", - "docs": [ - "SPL Token program for the base token", - "Must be the standard Token program" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "name": "associated_token_program", - "docs": [ - "Program to create an ATA for receiving fee NFT" - ], - "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" - }, - { - "name": "system_program", - "docs": [ - "Required for account creation" - ], - "address": "11111111111111111111111111111111" - }, - { - "name": "rent_program", - "docs": [ - "Required for rent exempt calculations" - ], - "address": "SysvarRent111111111111111111111111111111111" - } - ], - "args": [ - { - "name": "base_lot_size", - "type": "u64" - }, - { - "name": "quote_lot_size", - "type": "u64" - }, - { - "name": "market_vault_signer_nonce", - "type": "u8" - } - ] - }, - { - "name": "migrate_to_cpswap", - "docs": [ - "# Arguments", - "", - "* `ctx` - The context of accounts", - "" - ], - "discriminator": [ - 136, - 92, - 200, - 103, - 28, - 218, - 144, - 140 - ], - "accounts": [ - { - "name": "payer", - "docs": [ - "Only migrate_to_cpswap_wallet can migrate to cpswap pool", - "This signer must match the migrate_to_cpswap_wallet saved in global_config" - ], - "writable": true, - "signer": true - }, - { - "name": "base_mint", - "docs": [ - "The mint for the base token (token being sold)" - ], - "writable": true - }, - { - "name": "quote_mint", - "docs": [ - "The mint for the quote token (token used to buy)" - ] - }, - { - "name": "platform_config", - "docs": [ - "Platform configuration account containing platform-wide settings", - "Used to read platform fee rate" - ] - }, - { - "name": "cpswap_program", - "address": "CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C" - }, - { - "name": "cpswap_pool", - "docs": [ - "PDA account:", - "seeds = [", - "b\"pool\",", - "cpswap_config.key().as_ref(),", - "token_0_mint.key().as_ref(),", - "token_1_mint.key().as_ref(),", - "],", - "seeds::program = cpswap_program,", - "", - "Or random account: must be signed by cli" - ], - "writable": true - }, - { - "name": "cpswap_authority", - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 110, - 100, - 95, - 108, - 112, - 95, - 109, - 105, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ], - "program": { - "kind": "account", - "path": "cpswap_program" - } - } - }, - { - "name": "cpswap_lp_mint", - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108, - 95, - 108, - 112, - 95, - 109, - 105, - 110, - 116 - ] - }, - { - "kind": "account", - "path": "cpswap_pool" - } - ], - "program": { - "kind": "account", - "path": "cpswap_program" - } - } - }, - { - "name": "cpswap_base_vault", - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108, - 95, - 118, - 97, - 117, - 108, - 116 - ] - }, - { - "kind": "account", - "path": "cpswap_pool" - }, - { - "kind": "account", - "path": "base_mint" - } - ], - "program": { - "kind": "account", - "path": "cpswap_program" - } - } - }, - { - "name": "cpswap_quote_vault", - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108, - 95, - 118, - 97, - 117, - 108, - 116 - ] - }, - { - "kind": "account", - "path": "cpswap_pool" - }, - { - "kind": "account", - "path": "quote_mint" - } - ], - "program": { - "kind": "account", - "path": "cpswap_program" - } - } - }, - { - "name": "cpswap_config" - }, - { - "name": "cpswap_create_pool_fee", - "writable": true - }, - { - "name": "cpswap_observation", - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 111, - 98, - 115, - 101, - 114, - 118, - 97, - 116, - 105, - 111, - 110 - ] - }, - { - "kind": "account", - "path": "cpswap_pool" - } - ], - "program": { - "kind": "account", - "path": "cpswap_program" - } - } - }, - { - "name": "lock_program", - "address": "LockrWmn6K5twhz3y9w1dQERbmgSaRkfnTeTKbpofwE" - }, - { - "name": "lock_authority", - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 108, - 111, - 99, - 107, - 95, - 99, - 112, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121, - 95, - 115, - 101, - 101, - 100 - ] - } - ], - "program": { - "kind": "account", - "path": "lock_program" - } - } - }, - { - "name": "lock_lp_vault", - "writable": true - }, - { - "name": "authority", - "docs": [ - "PDA that acts as the authority for pool vault operations", - "Generated using AUTH_SEED" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "pool_state", - "docs": [ - "Account that stores the pool's state and parameters", - "PDA generated using POOL_SEED and both token mints" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 111, - 111, - 108 - ] - }, - { - "kind": "account", - "path": "base_mint" - }, - { - "kind": "account", - "path": "quote_mint" - } - ] - } - }, - { - "name": "global_config", - "docs": [ - "Global config account stores owner" - ] - }, - { - "name": "base_vault", - "docs": [ - "The pool's vault for base tokens", - "Will be fully drained during migration" - ], - "writable": true - }, - { - "name": "quote_vault", - "docs": [ - "The pool's vault for quote tokens", - "Will be fully drained during migration" - ], - "writable": true - }, - { - "name": "pool_lp_token", - "writable": true - }, - { - "name": "base_token_program", - "docs": [ - "SPL Token program for the base token", - "Must be the standard Token program" - ] - }, - { - "name": "quote_token_program", - "docs": [ - "SPL Token program for the quote token" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "name": "associated_token_program", - "docs": [ - "Program to create an ATA for receiving fee NFT" - ], - "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" - }, - { - "name": "system_program", - "docs": [ - "Required for account creation" - ], - "address": "11111111111111111111111111111111" - }, - { - "name": "rent_program", - "docs": [ - "Required for rent exempt calculations" - ], - "address": "SysvarRent111111111111111111111111111111111" - }, - { - "name": "metadata_program", - "docs": [ - "Program to create NFT metadata accunt" - ], - "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" - } - ], - "args": [] - }, - { - "name": "remove_platform_curve_param", - "docs": [ - "Remove platform launch param", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "* `index` - The index of the curve param to remove", - "" - ], - "discriminator": [ - 27, - 30, - 62, - 169, - 93, - 224, - 24, - 145 - ], - "accounts": [ - { - "name": "platform_admin", - "docs": [ - "The account paying for the initialization costs" - ], - "signer": true - }, - { - "name": "platform_config", - "docs": [ - "Platform config account to be changed" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 108, - 97, - 116, - 102, - 111, - 114, - 109, - 95, - 99, - 111, - 110, - 102, - 105, - 103 - ] - }, - { - "kind": "account", - "path": "platform_admin" - } - ] - } - } - ], - "args": [ - { - "name": "index", - "type": "u8" - } - ] - }, - { - "name": "sell_exact_in", - "docs": [ - "Use the given amount of base tokens to sell for quote tokens.", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "* `amount_in` - Amount of base token to sell", - "* `minimum_amount_out` - Minimum amount of quote token to receive (slippage protection)", - "* `share_fee_rate` - Fee rate for the share", - "" - ], - "discriminator": [ - 149, - 39, - 222, - 155, - 211, - 124, - 152, - 26 - ], - "accounts": [ - { - "name": "payer", - "docs": [ - "The user performing the swap operation", - "Must sign the transaction and pay for fees" - ], - "signer": true - }, - { - "name": "authority", - "docs": [ - "PDA that acts as the authority for pool vault operations", - "Generated using AUTH_SEED" - ], - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "global_config", - "docs": [ - "Global configuration account containing protocol-wide settings", - "Used to read protocol fee rates and curve type" - ] - }, - { - "name": "platform_config", - "docs": [ - "Platform configuration account containing platform-wide settings", - "Used to read platform fee rate" - ] - }, - { - "name": "pool_state", - "docs": [ - "The pool state account where the swap will be performed", - "Contains current pool parameters and balances" - ], - "writable": true - }, - { - "name": "user_base_token", - "docs": [ - "The user's token account for base tokens (tokens being bought)", - "Will receive the output tokens after the swap" - ], - "writable": true - }, - { - "name": "user_quote_token", - "docs": [ - "The user's token account for quote tokens (tokens being sold)", - "Will be debited for the input amount" - ], - "writable": true - }, - { - "name": "base_vault", - "docs": [ - "The pool's vault for base tokens", - "Will be debited to send tokens to the user" - ], - "writable": true - }, - { - "name": "quote_vault", - "docs": [ - "The pool's vault for quote tokens", - "Will receive the input tokens from the user" - ], - "writable": true - }, - { - "name": "base_token_mint", - "docs": [ - "The mint of the base token", - "Used for transfer fee calculations if applicable" - ] - }, - { - "name": "quote_token_mint", - "docs": [ - "The mint of the quote token" - ] - }, - { - "name": "base_token_program", - "docs": [ - "SPL Token program for base token transfers" - ] - }, - { - "name": "quote_token_program", - "docs": [ - "SPL Token program for quote token transfers" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "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": "amount_in", - "type": "u64" - }, - { - "name": "minimum_amount_out", - "type": "u64" - }, - { - "name": "share_fee_rate", - "type": "u64" - } - ] - }, - { - "name": "sell_exact_out", - "docs": [ - "Sell base tokens for the given amount of quote tokens.", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "* `amount_out` - Amount of quote token to receive", - "* `maximum_amount_in` - Maximum amount of base token to purchase (slippage protection)", - "* `share_fee_rate` - Fee rate for the share", - "" - ], - "discriminator": [ - 95, - 200, - 71, - 34, - 8, - 9, - 11, - 166 - ], - "accounts": [ - { - "name": "payer", - "docs": [ - "The user performing the swap operation", - "Must sign the transaction and pay for fees" - ], - "signer": true - }, - { - "name": "authority", - "docs": [ - "PDA that acts as the authority for pool vault operations", - "Generated using AUTH_SEED" - ], - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 118, - 97, - 117, - 108, - 116, - 95, - 97, - 117, - 116, - 104, - 95, - 115, - 101, - 101, - 100 - ] - } - ] - } - }, - { - "name": "global_config", - "docs": [ - "Global configuration account containing protocol-wide settings", - "Used to read protocol fee rates and curve type" - ] - }, - { - "name": "platform_config", - "docs": [ - "Platform configuration account containing platform-wide settings", - "Used to read platform fee rate" - ] - }, - { - "name": "pool_state", - "docs": [ - "The pool state account where the swap will be performed", - "Contains current pool parameters and balances" - ], - "writable": true - }, - { - "name": "user_base_token", - "docs": [ - "The user's token account for base tokens (tokens being bought)", - "Will receive the output tokens after the swap" - ], - "writable": true - }, - { - "name": "user_quote_token", - "docs": [ - "The user's token account for quote tokens (tokens being sold)", - "Will be debited for the input amount" - ], - "writable": true - }, - { - "name": "base_vault", - "docs": [ - "The pool's vault for base tokens", - "Will be debited to send tokens to the user" - ], - "writable": true - }, - { - "name": "quote_vault", - "docs": [ - "The pool's vault for quote tokens", - "Will receive the input tokens from the user" - ], - "writable": true - }, - { - "name": "base_token_mint", - "docs": [ - "The mint of the base token", - "Used for transfer fee calculations if applicable" - ] - }, - { - "name": "quote_token_mint", - "docs": [ - "The mint of the quote token" - ] - }, - { - "name": "base_token_program", - "docs": [ - "SPL Token program for base token transfers" - ] - }, - { - "name": "quote_token_program", - "docs": [ - "SPL Token program for quote token transfers" - ], - "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" - }, - { - "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": "amount_out", - "type": "u64" - }, - { - "name": "maximum_amount_in", - "type": "u64" - }, - { - "name": "share_fee_rate", - "type": "u64" - } - ] - }, - { - "name": "update_config", - "docs": [ - "Updates configuration parameters", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "* `param` - Parameter to update:", - "- 0: Update trade_fee_rate", - "- 1: Update fee owner", - "* `value` - New value for the selected parameter", - "" - ], - "discriminator": [ - 29, - 158, - 252, - 191, - 10, - 83, - 219, - 99 - ], - "accounts": [ - { - "name": "owner", - "docs": [ - "The global config owner or admin" - ], - "signer": true, - "address": "GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ" - }, - { - "name": "global_config", - "docs": [ - "Global config account to be changed" - ], - "writable": true - } - ], - "args": [ - { - "name": "param", - "type": "u8" - }, - { - "name": "value", - "type": "u64" - } - ] - }, - { - "name": "update_platform_config", - "docs": [ - "Update platform config", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "* `param` - Parameter to update", - "" - ], - "discriminator": [ - 195, - 60, - 76, - 129, - 146, - 45, - 67, - 143 - ], - "accounts": [ - { - "name": "platform_admin", - "docs": [ - "The account paying for the initialization costs" - ], - "signer": true - }, - { - "name": "platform_config", - "docs": [ - "Platform config account to be changed" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 108, - 97, - 116, - 102, - 111, - 114, - 109, - 95, - 99, - 111, - 110, - 102, - 105, - 103 - ] - }, - { - "kind": "account", - "path": "platform_admin" - } - ] - } - } - ], - "args": [ - { - "name": "param", - "type": { - "defined": { - "name": "PlatformConfigParam" - } - } - } - ] - }, - { - "name": "update_platform_curve_param", - "docs": [ - "Update platform launch param", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "* `bonding_curve_param` - Parameter to update", - "" - ], - "discriminator": [ - 138, - 144, - 138, - 250, - 220, - 128, - 4, - 57 - ], - "accounts": [ - { - "name": "platform_admin", - "docs": [ - "The account paying for the initialization costs" - ], - "writable": true, - "signer": true - }, - { - "name": "platform_config", - "docs": [ - "Platform config account to be changed" - ], - "writable": true, - "pda": { - "seeds": [ - { - "kind": "const", - "value": [ - 112, - 108, - 97, - 116, - 102, - 111, - 114, - 109, - 95, - 99, - 111, - 110, - 102, - 105, - 103 - ] - }, - { - "kind": "account", - "path": "platform_admin" - } - ] - } - }, - { - "name": "global_config", - "docs": [ - "Global configuration account containing protocol-wide settings", - "Includes settings like quote token mint and fee parameters" - ] - }, - { - "name": "system_program", - "docs": [ - "System program for lamport transfers" - ], - "address": "11111111111111111111111111111111" - } - ], - "args": [ - { - "name": "index", - "type": "u8" - }, - { - "name": "bonding_curve_param", - "type": { - "defined": { - "name": "BondingCurveParam" - } - } - } - ] - } - ], - "accounts": [ - { - "name": "GlobalConfig", - "discriminator": [ - 149, - 8, - 156, - 202, - 160, - 252, - 176, - 217 - ] - }, - { - "name": "PlatformConfig", - "discriminator": [ - 160, - 78, - 128, - 0, - 248, - 83, - 230, - 160 - ] - }, - { - "name": "PoolState", - "discriminator": [ - 247, - 237, - 227, - 245, - 215, - 195, - 222, - 70 - ] - }, - { - "name": "VestingRecord", - "discriminator": [ - 106, - 243, - 221, - 205, - 230, - 126, - 85, - 83 - ] - } - ], - "events": [ - { - "name": "ClaimVestedEvent", - "discriminator": [ - 21, - 194, - 114, - 87, - 120, - 211, - 226, - 32 - ] - }, - { - "name": "CreateVestingEvent", - "discriminator": [ - 150, - 152, - 11, - 179, - 52, - 210, - 191, - 125 - ] - }, - { - "name": "PoolCreateEvent", - "discriminator": [ - 151, - 215, - 226, - 9, - 118, - 161, - 115, - 174 - ] - }, - { - "name": "TradeEvent", - "discriminator": [ - 189, - 219, - 127, - 211, - 78, - 230, - 97, - 238 - ] - } - ], - "errors": [ - { - "code": 6000, - "name": "NotApproved", - "msg": "Not approved" - }, - { - "code": 6001, - "name": "InvalidOwner", - "msg": "Input account owner is not the program address" - }, - { - "code": 6002, - "name": "InvalidInput", - "msg": "InvalidInput" - }, - { - "code": 6003, - "name": "InputNotMatchCurveConfig", - "msg": "The input params are not match with curve type in config" - }, - { - "code": 6004, - "name": "ExceededSlippage", - "msg": "Exceeds desired slippage limit" - }, - { - "code": 6005, - "name": "PoolFunding", - "msg": "Pool funding" - }, - { - "code": 6006, - "name": "PoolMigrated", - "msg": "Pool migrated" - }, - { - "code": 6007, - "name": "MigrateTypeNotMatch", - "msg": "Migrate type not match" - }, - { - "code": 6008, - "name": "MathOverflow", - "msg": "Math overflow" - }, - { - "code": 6009, - "name": "NoAssetsToCollect", - "msg": "No assets to collect" - }, - { - "code": 6010, - "name": "VestingRatioTooHigh", - "msg": "Vesting ratio too high" - }, - { - "code": 6011, - "name": "VestingSettingEnded", - "msg": "Vesting setting ended" - }, - { - "code": 6012, - "name": "VestingNotStarted", - "msg": "Vesting not started" - }, - { - "code": 6013, - "name": "NoVestingSchedule", - "msg": "No vesting schedule" - }, - { - "code": 6014, - "name": "InvalidPlatformInfo", - "msg": "The platform info input is invalid" - }, - { - "code": 6015, - "name": "PoolNotMigrated", - "msg": "Pool not migrated" - }, - { - "code": 6016, - "name": "InvalidCpSwapConfig", - "msg": "The input cp swap config account is invalid" - }, - { - "code": 6017, - "name": "NoSupportExtension", - "msg": "No support extension" - }, - { - "code": 6018, - "name": "NotEnoughRemainingAccounts", - "msg": "Not enough remaining accounts" - }, - { - "code": 6019, - "name": "TransferFeeCalculateNotMatch", - "msg": "TransferFee calculate not match" - }, - { - "code": 6020, - "name": "CurveParamIsNotExist", - "msg": "Curve param is not exist" - } - ], - "types": [ - { - "name": "AmmCreatorFeeOn", - "docs": [ - "migrate to cpmm, creator fee on quote token or both token" - ], - "type": { - "kind": "enum", - "variants": [ - { - "name": "QuoteToken" - }, - { - "name": "BothToken" - } - ] - } - }, - { - "name": "BondingCurveParam", - "type": { - "kind": "struct", - "fields": [ - { - "name": "migrate_type", - "docs": [ - "Migrate to AMM or CpSwap, 0: amm, 1: cpswap,", - "Neither 0 nor 1: invalid" - ], - "type": "u8" - }, - { - "name": "migrate_cpmm_fee_on", - "docs": [ - "The migrate fee on, 0 means fee on the quote token, 1 means fee on both token", - "Neither 0 nor 1: invalid" - ], - "type": "u8" - }, - { - "name": "supply", - "docs": [ - "The supply of the token,", - "0: invalid" - ], - "type": "u64" - }, - { - "name": "total_base_sell", - "docs": [ - "The total base sell of the token", - "0: invalid" - ], - "type": "u64" - }, - { - "name": "total_quote_fund_raising", - "docs": [ - "The total quote fund raising of the token", - "0: invalid" - ], - "type": "u64" - }, - { - "name": "total_locked_amount", - "docs": [ - "total amount of tokens to be unlocked", - "u64::MAX: invalid" - ], - "type": "u64" - }, - { - "name": "cliff_period", - "docs": [ - "Waiting time in seconds before unlocking after fundraising ends", - "u64::MAX: invalid" - ], - "type": "u64" - }, - { - "name": "unlock_period", - "docs": [ - "Unlocking period in seconds", - "u64::MAX: invalid" - ], - "type": "u64" - } - ] - } - }, - { - "name": "ClaimVestedEvent", - "docs": [ - "Emitted when vesting token claimed by beneficiary" - ], - "type": { - "kind": "struct", - "fields": [ - { - "name": "pool_state", - "type": "pubkey" - }, - { - "name": "beneficiary", - "type": "pubkey" - }, - { - "name": "claim_amount", - "type": "u64" - } - ] - } - }, - { - "name": "ConstantCurve", - "type": { - "kind": "struct", - "fields": [ - { - "name": "supply", - "type": "u64" - }, - { - "name": "total_base_sell", - "type": "u64" - }, - { - "name": "total_quote_fund_raising", - "type": "u64" - }, - { - "name": "migrate_type", - "type": "u8" - } - ] - } - }, - { - "name": "CreateVestingEvent", - "docs": [ - "Emitted when vest_account created" - ], - "type": { - "kind": "struct", - "fields": [ - { - "name": "pool_state", - "type": "pubkey" - }, - { - "name": "beneficiary", - "type": "pubkey" - }, - { - "name": "share_amount", - "type": "u64" - } - ] - } - }, - { - "name": "CurveParams", - "type": { - "kind": "enum", - "variants": [ - { - "name": "Constant", - "fields": [ - { - "name": "data", - "type": { - "defined": { - "name": "ConstantCurve" - } - } - } - ] - }, - { - "name": "Fixed", - "fields": [ - { - "name": "data", - "type": { - "defined": { - "name": "FixedCurve" - } - } - } - ] - }, - { - "name": "Linear", - "fields": [ - { - "name": "data", - "type": { - "defined": { - "name": "LinearCurve" - } - } - } - ] - } - ] - } - }, - { - "name": "FixedCurve", - "type": { - "kind": "struct", - "fields": [ - { - "name": "supply", - "type": "u64" - }, - { - "name": "total_quote_fund_raising", - "type": "u64" - }, - { - "name": "migrate_type", - "type": "u8" - } - ] - } - }, - { - "name": "GlobalConfig", - "docs": [ - "Holds the current owner of the factory" - ], - "type": { - "kind": "struct", - "fields": [ - { - "name": "epoch", - "docs": [ - "Account update epoch" - ], - "type": "u64" - }, - { - "name": "curve_type", - "docs": [ - "0: Constant Product Curve", - "1: Fixed Price Curve", - "2: Linear Price Curve" - ], - "type": "u8" - }, - { - "name": "index", - "docs": [ - "Config index" - ], - "type": "u16" - }, - { - "name": "migrate_fee", - "docs": [ - "The fee of migrate to amm" - ], - "type": "u64" - }, - { - "name": "trade_fee_rate", - "docs": [ - "The trade fee rate, denominated in hundredths of a bip (10^-6)" - ], - "type": "u64" - }, - { - "name": "max_share_fee_rate", - "docs": [ - "The maximum share fee rate, denominated in hundredths of a bip (10^-6)" - ], - "type": "u64" - }, - { - "name": "min_base_supply", - "docs": [ - "The minimum base supply, the value without decimals" - ], - "type": "u64" - }, - { - "name": "max_lock_rate", - "docs": [ - "The maximum lock rate, denominated in hundredths of a bip (10^-6)" - ], - "type": "u64" - }, - { - "name": "min_base_sell_rate", - "docs": [ - "The minimum base sell rate, denominated in hundredths of a bip (10^-6)" - ], - "type": "u64" - }, - { - "name": "min_base_migrate_rate", - "docs": [ - "The minimum base migrate rate, denominated in hundredths of a bip (10^-6)" - ], - "type": "u64" - }, - { - "name": "min_quote_fund_raising", - "docs": [ - "The minimum quote fund raising, the value with decimals" - ], - "type": "u64" - }, - { - "name": "quote_mint", - "docs": [ - "Mint information for quote token" - ], - "type": "pubkey" - }, - { - "name": "protocol_fee_owner", - "docs": [ - "Protocol Fee owner" - ], - "type": "pubkey" - }, - { - "name": "migrate_fee_owner", - "docs": [ - "Migrate Fee owner" - ], - "type": "pubkey" - }, - { - "name": "migrate_to_amm_wallet", - "docs": [ - "Migrate to amm control wallet" - ], - "type": "pubkey" - }, - { - "name": "migrate_to_cpswap_wallet", - "docs": [ - "Migrate to cpswap wallet" - ], - "type": "pubkey" - }, - { - "name": "padding", - "docs": [ - "padding for future updates" - ], - "type": { - "array": [ - "u64", - 16 - ] - } - } - ] - } - }, - { - "name": "LinearCurve", - "type": { - "kind": "struct", - "fields": [ - { - "name": "supply", - "type": "u64" - }, - { - "name": "total_quote_fund_raising", - "type": "u64" - }, - { - "name": "migrate_type", - "type": "u8" - } - ] - } - }, - { - "name": "MigrateNftInfo", - "docs": [ - "Represents the parameters for initializing a platform config account(Only support MigrateType::CPSWAP)", - "# Fields", - "* `platform_scale` - Scale of the platform liquidity quantity rights will be converted into NFT", - "* `creator_scale` - Scale of the token creator liquidity quantity rights will be converted into NFT", - "* `burn_scale` - Scale of liquidity directly to burn", - "", - "* platform_scale + creator_scale + burn_scale = RATE_DENOMINATOR_VALUE" - ], - "type": { - "kind": "struct", - "fields": [ - { - "name": "platform_scale", - "type": "u64" - }, - { - "name": "creator_scale", - "type": "u64" - }, - { - "name": "burn_scale", - "type": "u64" - } - ] - } - }, - { - "name": "MintParams", - "docs": [ - "Represents the parameters for initializing a new token mint", - "# Fields", - "* `decimals` - Number of decimal places for the token", - "* `name` - Name of the token", - "* `symbol` - Symbol/ticker of the token", - "* `uri` - URI pointing to token metadata" - ], - "type": { - "kind": "struct", - "fields": [ - { - "name": "decimals", - "type": "u8" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "symbol", - "type": "string" - }, - { - "name": "uri", - "type": "string" - } - ] - } - }, - { - "name": "PlatformConfig", - "type": { - "kind": "struct", - "fields": [ - { - "name": "epoch", - "docs": [ - "The epoch for update interval" - ], - "type": "u64" - }, - { - "name": "platform_fee_wallet", - "docs": [ - "The platform fee wallet" - ], - "type": "pubkey" - }, - { - "name": "platform_nft_wallet", - "docs": [ - "The platform nft wallet to receive the platform NFT after migration if platform_scale is not 0(Only support MigrateType::CPSWAP)" - ], - "type": "pubkey" - }, - { - "name": "platform_scale", - "docs": [ - "Scale of the platform liquidity quantity rights will be converted into NFT(Only support MigrateType::CPSWAP)" - ], - "type": "u64" - }, - { - "name": "creator_scale", - "docs": [ - "Scale of the token creator liquidity quantity rights will be converted into NFT(Only support MigrateType::CPSWAP)" - ], - "type": "u64" - }, - { - "name": "burn_scale", - "docs": [ - "Scale of liquidity directly to burn" - ], - "type": "u64" - }, - { - "name": "fee_rate", - "docs": [ - "The platform fee rate" - ], - "type": "u64" - }, - { - "name": "name", - "docs": [ - "The platform name" - ], - "type": { - "array": [ - "u8", - 64 - ] - } - }, - { - "name": "web", - "docs": [ - "The platform website" - ], - "type": { - "array": [ - "u8", - 256 - ] - } - }, - { - "name": "img", - "docs": [ - "The platform img link" - ], - "type": { - "array": [ - "u8", - 256 - ] - } - }, - { - "name": "cpswap_config", - "docs": [ - "The platform specifies the trade fee rate after migration to cp swap" - ], - "type": "pubkey" - }, - { - "name": "creator_fee_rate", - "docs": [ - "Creator fee rate" - ], - "type": "u64" - }, - { - "name": "transfer_fee_extension_auth", - "docs": [ - "If the base token belongs to token2022, then you can choose to support the transferfeeConfig extension, which includes permissions such as `transfer_fee_config_authority`` and `withdraw_withheld_authority`.", - "When initializing mint, `withdraw_withheld_authority` and `transfer_fee_config_authority` both belongs to the contract.", - "Once the token is migrated to AMM, the authorities will be reset to this value" - ], - "type": "pubkey" - }, - { - "name": "padding", - "docs": [ - "padding for future updates" - ], - "type": { - "array": [ - "u8", - 180 - ] - } - }, - { - "name": "curve_params", - "docs": [ - "The parameters for launching the pool" - ], - "type": { - "vec": { - "defined": { - "name": "PlatformCurveParam" - } - } - } - } - ] - } - }, - { - "name": "PlatformConfigInfo", - "type": { - "kind": "struct", - "fields": [ - { - "name": "fee_wallet", - "type": "pubkey" - }, - { - "name": "nft_wallet", - "type": "pubkey" - }, - { - "name": "migrate_nft_info", - "type": { - "defined": { - "name": "MigrateNftInfo" - } - } - }, - { - "name": "fee_rate", - "type": "u64" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "web", - "type": "string" - }, - { - "name": "img", - "type": "string" - }, - { - "name": "transfer_fee_extension_auth", - "type": "pubkey" - }, - { - "name": "creator_fee_rate", - "type": "u64" - } - ] - } - }, - { - "name": "PlatformConfigParam", - "type": { - "kind": "enum", - "variants": [ - { - "name": "FeeWallet", - "fields": [ - "pubkey" - ] - }, - { - "name": "NFTWallet", - "fields": [ - "pubkey" - ] - }, - { - "name": "MigrateNftInfo", - "fields": [ - { - "defined": { - "name": "MigrateNftInfo" - } - } - ] - }, - { - "name": "FeeRate", - "fields": [ - "u64" - ] - }, - { - "name": "Name", - "fields": [ - "string" - ] - }, - { - "name": "Web", - "fields": [ - "string" - ] - }, - { - "name": "Img", - "fields": [ - "string" - ] - }, - { - "name": "CpSwapConfig" - }, - { - "name": "AllInfo", - "fields": [ - { - "defined": { - "name": "PlatformConfigInfo" - } - } - ] - } - ] - } - }, - { - "name": "PlatformCurveParam", - "type": { - "kind": "struct", - "fields": [ - { - "name": "epoch", - "docs": [ - "The epoch for update interval, 0 means not update" - ], - "type": "u64" - }, - { - "name": "index", - "docs": [ - "The curve params index" - ], - "type": "u8" - }, - { - "name": "global_config", - "docs": [ - "The global config address" - ], - "type": "pubkey" - }, - { - "name": "bonding_curve_param", - "docs": [ - "bonding curve param" - ], - "type": { - "defined": { - "name": "BondingCurveParam" - } - } - }, - { - "name": "padding", - "docs": [ - "padding for future updates" - ], - "type": { - "array": [ - "u64", - 50 - ] - } - } - ] - } - }, - { - "name": "PlatformParams", - "docs": [ - "Represents the parameters for initializing a platform config account", - "# Fields", - "* `migrate_nft_info` - The platform configures liquidity info during migration(Only support MigrateType::CPSWAP)", - "* `fee_rate` - Fee rate of the platform", - "* `name` - Name of the platform", - "* `web` - Website of the platform", - "* `img` - Image link of the platform", - "/// * `creator_fee_rate` - The fee rate charged by the creator for each transaction." - ], - "type": { - "kind": "struct", - "fields": [ - { - "name": "migrate_nft_info", - "type": { - "defined": { - "name": "MigrateNftInfo" - } - } - }, - { - "name": "fee_rate", - "type": "u64" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "web", - "type": "string" - }, - { - "name": "img", - "type": "string" - }, - { - "name": "creator_fee_rate", - "type": "u64" - } - ] - } - }, - { - "name": "PoolCreateEvent", - "docs": [ - "Emitted when pool created" - ], - "type": { - "kind": "struct", - "fields": [ - { - "name": "pool_state", - "type": "pubkey" - }, - { - "name": "creator", - "type": "pubkey" - }, - { - "name": "config", - "type": "pubkey" - }, - { - "name": "base_mint_param", - "type": { - "defined": { - "name": "MintParams" - } - } - }, - { - "name": "curve_param", - "type": { - "defined": { - "name": "CurveParams" - } - } - }, - { - "name": "vesting_param", - "type": { - "defined": { - "name": "VestingParams" - } - } - }, - { - "name": "amm_fee_on", - "type": { - "defined": { - "name": "AmmCreatorFeeOn" - } - } - } - ] - } - }, - { - "name": "PoolState", - "docs": [ - "Represents the state of a trading pool in the protocol", - "Stores all essential information about pool balances, fees, and configuration" - ], - "type": { - "kind": "struct", - "fields": [ - { - "name": "epoch", - "docs": [ - "Account update epoch" - ], - "type": "u64" - }, - { - "name": "auth_bump", - "docs": [ - "Bump seed used for PDA address derivation" - ], - "type": "u8" - }, - { - "name": "status", - "docs": [ - "Current status of the pool", - "* 0: Pool is funding", - "* 1: Pool funding is end, waiting for migration", - "* 2: Pool migration is done" - ], - "type": "u8" - }, - { - "name": "base_decimals", - "docs": [ - "Decimals of the pool base token" - ], - "type": "u8" - }, - { - "name": "quote_decimals", - "docs": [ - "Decimals of the pool quote token" - ], - "type": "u8" - }, - { - "name": "migrate_type", - "docs": [ - "Migrate to AMM or CpSwap, 0: amm, 1: cpswap" - ], - "type": "u8" - }, - { - "name": "supply", - "docs": [ - "Supply of the pool base token" - ], - "type": "u64" - }, - { - "name": "total_base_sell", - "docs": [ - "Total sell amount of the base token" - ], - "type": "u64" - }, - { - "name": "virtual_base", - "docs": [ - "For different curves, virtual_base and virtual_quote have different meanings", - "For constant product curve, virtual_base and virtual_quote are virtual liquidity, virtual_quote/virtual_base is the initial price", - "For linear price curve, virtual_base is the price slope parameter a, virtual_quote has no effect", - "For fixed price curve, virtual_quote/virtual_base is the initial price" - ], - "type": "u64" - }, - { - "name": "virtual_quote", - "type": "u64" - }, - { - "name": "real_base", - "docs": [ - "Actual base token amount in the pool", - "Represents the real tokens available for trading" - ], - "type": "u64" - }, - { - "name": "real_quote", - "docs": [ - "Actual quote token amount in the pool", - "Represents the real tokens available for trading" - ], - "type": "u64" - }, - { - "name": "total_quote_fund_raising", - "docs": [ - "The total quote fund raising of the pool" - ], - "type": "u64" - }, - { - "name": "quote_protocol_fee", - "docs": [ - "Accumulated trading fees in quote tokens", - "Can be collected by the protocol fee owner" - ], - "type": "u64" - }, - { - "name": "platform_fee", - "docs": [ - "Accumulated platform fees in quote tokens", - "Can be collected by the platform wallet stored in platform config" - ], - "type": "u64" - }, - { - "name": "migrate_fee", - "docs": [ - "The fee of migrate to amm" - ], - "type": "u64" - }, - { - "name": "vesting_schedule", - "docs": [ - "Vesting schedule for the base token" - ], - "type": { - "defined": { - "name": "VestingSchedule" - } - } - }, - { - "name": "global_config", - "docs": [ - "Public key of the global configuration account", - "Contains protocol-wide settings this pool adheres to" - ], - "type": "pubkey" - }, - { - "name": "platform_config", - "docs": [ - "Public key of the platform configuration account", - "Contains platform-wide settings this pool adheres to" - ], - "type": "pubkey" - }, - { - "name": "base_mint", - "docs": [ - "Public key of the base mint address" - ], - "type": "pubkey" - }, - { - "name": "quote_mint", - "docs": [ - "Public key of the quote mint address" - ], - "type": "pubkey" - }, - { - "name": "base_vault", - "docs": [ - "Public key of the base token vault", - "Holds the actual base tokens owned by the pool" - ], - "type": "pubkey" - }, - { - "name": "quote_vault", - "docs": [ - "Public key of the quote token vault", - "Holds the actual quote tokens owned by the pool" - ], - "type": "pubkey" - }, - { - "name": "creator", - "docs": [ - "The creator of base token" - ], - "type": "pubkey" - }, - { - "name": "token_program_flag", - "docs": [ - "token program bits", - "bit0: base token program flag", - "0: spl_token_program", - "1: token_program_2022", - "", - "bit1: quote token program flag", - "0: spl_token_program", - "1: token_program_2022" - ], - "type": "u8" - }, - { - "name": "amm_creator_fee_on", - "docs": [ - "migrate to cpmm, creator fee on quote token or both token" - ], - "type": { - "defined": { - "name": "AmmCreatorFeeOn" - } - } - }, - { - "name": "padding", - "docs": [ - "padding for future updates" - ], - "type": { - "array": [ - "u8", - 62 - ] - } - } - ] - } - }, - { - "name": "PoolStatus", - "docs": [ - "Represents the different states a pool can be in", - "* Fund - Initial state where pool is accepting funds", - "* Migrate - Pool funding has ended and waiting for migration", - "* Trade - Pool migration is complete and amm trading is enabled" - ], - "type": { - "kind": "enum", - "variants": [ - { - "name": "Fund" - }, - { - "name": "Migrate" - }, - { - "name": "Trade" - } - ] - } - }, - { - "name": "TradeDirection", - "docs": [ - "Specifies the direction of a trade in the bonding curve", - "This is important because curves can treat tokens differently through weights or offsets" - ], - "type": { - "kind": "enum", - "variants": [ - { - "name": "Buy" - }, - { - "name": "Sell" - } - ] - } - }, - { - "name": "TradeEvent", - "docs": [ - "Emitted when trade process" - ], - "type": { - "kind": "struct", - "fields": [ - { - "name": "pool_state", - "type": "pubkey" - }, - { - "name": "total_base_sell", - "type": "u64" - }, - { - "name": "virtual_base", - "type": "u64" - }, - { - "name": "virtual_quote", - "type": "u64" - }, - { - "name": "real_base_before", - "type": "u64" - }, - { - "name": "real_quote_before", - "type": "u64" - }, - { - "name": "real_base_after", - "type": "u64" - }, - { - "name": "real_quote_after", - "type": "u64" - }, - { - "name": "amount_in", - "type": "u64" - }, - { - "name": "amount_out", - "type": "u64" - }, - { - "name": "protocol_fee", - "type": "u64" - }, - { - "name": "platform_fee", - "type": "u64" - }, - { - "name": "creator_fee", - "type": "u64" - }, - { - "name": "share_fee", - "type": "u64" - }, - { - "name": "trade_direction", - "type": { - "defined": { - "name": "TradeDirection" - } - } - }, - { - "name": "pool_status", - "type": { - "defined": { - "name": "PoolStatus" - } - } - }, - { - "name": "exact_in", - "type": "bool" - } - ] - } - }, - { - "name": "TransferFeeExtensionParams", - "type": { - "kind": "struct", - "fields": [ - { - "name": "transfer_fee_basis_points", - "docs": [ - "denominator is 10000, currently, this value cannot exceed 5%, which is 500." - ], - "type": "u16" - }, - { - "name": "maximum_fee", - "docs": [ - "Maximum fee on each transfers, the value must exceed supply * transfer_fee_basis_points / 10000" - ], - "type": "u64" - } - ] - } - }, - { - "name": "VestingParams", - "type": { - "kind": "struct", - "fields": [ - { - "name": "total_locked_amount", - "type": "u64" - }, - { - "name": "cliff_period", - "type": "u64" - }, - { - "name": "unlock_period", - "type": "u64" - } - ] - } - }, - { - "name": "VestingRecord", - "type": { - "kind": "struct", - "fields": [ - { - "name": "epoch", - "docs": [ - "Account update epoch" - ], - "type": "u64" - }, - { - "name": "pool", - "docs": [ - "The pool state account" - ], - "type": "pubkey" - }, - { - "name": "beneficiary", - "docs": [ - "The beneficiary of the vesting account" - ], - "type": "pubkey" - }, - { - "name": "claimed_amount", - "docs": [ - "The amount of tokens claimed" - ], - "type": "u64" - }, - { - "name": "token_share_amount", - "docs": [ - "The share amount of the token to be vested" - ], - "type": "u64" - }, - { - "name": "padding", - "docs": [ - "padding for future updates" - ], - "type": { - "array": [ - "u64", - 8 - ] - } - } - ] - } - }, - { - "name": "VestingSchedule", - "type": { - "kind": "struct", - "fields": [ - { - "name": "total_locked_amount", - "type": "u64" - }, - { - "name": "cliff_period", - "type": "u64" - }, - { - "name": "unlock_period", - "type": "u64" - }, - { - "name": "start_time", - "type": "u64" - }, - { - "name": "allocated_share_amount", - "docs": [ - "Total allocated share amount of the base token, not greater than total_locked_amount" - ], - "type": "u64" - } - ] - } - } - ] -} \ No newline at end of file diff --git a/idl/bitquery/raydium/raydium_amm.json b/idl/bitquery/raydium/raydium_amm.json deleted file mode 100644 index 291f168..0000000 --- a/idl/bitquery/raydium/raydium_amm.json +++ /dev/null @@ -1,2401 +0,0 @@ -{ - "version": "0.3.0", - "name": "raydium_amm", - "instructions": [ - { - "name": "initialize", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "rent", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOpenOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "lpMintAddress", - "isMut": true, - "isSigner": false - }, - { - "name": "coinMintAddress", - "isMut": false, - "isSigner": false - }, - { - "name": "pcMintAddress", - "isMut": false, - "isSigner": false - }, - { - "name": "poolCoinTokenAccount", - "isMut": false, - "isSigner": false - }, - { - "name": "poolPcTokenAccount", - "isMut": false, - "isSigner": false - }, - { - "name": "poolWithdrawQueue", - "isMut": true, - "isSigner": false - }, - { - "name": "poolTargetOrdersAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userLpTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolTempLpTokenAccount", - "isMut": false, - "isSigner": false - }, - { - "name": "serumProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": false, - "isSigner": false - }, - { - "name": "userWallet", - "isMut": true, - "isSigner": true - } - ], - "args": [ - { - "name": "nonce", - "type": "u8" - }, - { - "name": "openTime", - "type": "u64" - } - ] - }, - { - "name": "initialize2", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "splAssociatedTokenAccount", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "rent", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOpenOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "lpMint", - "isMut": true, - "isSigner": false - }, - { - "name": "coinMint", - "isMut": false, - "isSigner": false - }, - { - "name": "pcMint", - "isMut": false, - "isSigner": false - }, - { - "name": "poolCoinTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolPcTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolWithdrawQueue", - "isMut": true, - "isSigner": false - }, - { - "name": "ammTargetOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "poolTempLp", - "isMut": true, - "isSigner": false - }, - { - "name": "serumProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": false, - "isSigner": false - }, - { - "name": "userWallet", - "isMut": true, - "isSigner": true - }, - { - "name": "userTokenCoin", - "isMut": true, - "isSigner": false - }, - { - "name": "userTokenPc", - "isMut": true, - "isSigner": false - }, - { - "name": "userLpTokenAccount", - "isMut": true, - "isSigner": false - } - ], - "args": [ - { - "name": "nonce", - "type": "u8" - }, - { - "name": "openTime", - "type": "u64" - }, - { - "name": "initPcAmount", - "type": "u64" - }, - { - "name": "initCoinAmount", - "type": "u64" - } - ] - }, - { - "name": "monitorStep", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "rent", - "isMut": false, - "isSigner": false - }, - { - "name": "clock", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOpenOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "ammTargetOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "poolCoinTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolPcTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolWithdrawQueue", - "isMut": true, - "isSigner": false - }, - { - "name": "serumProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": true, - "isSigner": false - }, - { - "name": "serumCoinVaultAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumPcVaultAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumVaultSigner", - "isMut": false, - "isSigner": false - }, - { - "name": "serumReqQ", - "isMut": true, - "isSigner": false - }, - { - "name": "serumEventQ", - "isMut": true, - "isSigner": false - }, - { - "name": "serumBids", - "isMut": true, - "isSigner": false - }, - { - "name": "serumAsks", - "isMut": true, - "isSigner": false - } - ], - "args": [ - { - "name": "planOrderLimit", - "type": "u16" - }, - { - "name": "placeOrderLimit", - "type": "u16" - }, - { - "name": "cancelOrderLimit", - "type": "u16" - } - ] - }, - { - "name": "deposit", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOpenOrders", - "isMut": false, - "isSigner": false - }, - { - "name": "ammTargetOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "lpMintAddress", - "isMut": true, - "isSigner": false - }, - { - "name": "poolCoinTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolPcTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": false, - "isSigner": false - }, - { - "name": "userCoinTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userPcTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userLpTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userOwner", - "isMut": false, - "isSigner": true - }, - { - "name": "serumEventQueue", - "isMut": false, - "isSigner": false - } - ], - "args": [ - { - "name": "maxCoinAmount", - "type": "u64" - }, - { - "name": "maxPcAmount", - "type": "u64" - }, - { - "name": "baseSide", - "type": "u64" - } - ] - }, - { - "name": "withdraw", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOpenOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "ammTargetOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "lpMintAddress", - "isMut": true, - "isSigner": false - }, - { - "name": "poolCoinTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolPcTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolWithdrawQueue", - "isMut": true, - "isSigner": false - }, - { - "name": "poolTempLpTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": true, - "isSigner": false - }, - { - "name": "serumCoinVaultAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumPcVaultAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumVaultSigner", - "isMut": false, - "isSigner": false - }, - { - "name": "userLpTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userCoinTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userPcTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userOwner", - "isMut": false, - "isSigner": true - }, - { - "name": "serumEventQ", - "isMut": true, - "isSigner": false - }, - { - "name": "serumBids", - "isMut": true, - "isSigner": false - }, - { - "name": "serumAsks", - "isMut": true, - "isSigner": false - } - ], - "args": [ - { - "name": "amount", - "type": "u64" - } - ] - }, - { - "name": "migrateToOpenBook", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "rent", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOpenOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "ammTokenCoin", - "isMut": true, - "isSigner": false - }, - { - "name": "ammTokenPc", - "isMut": true, - "isSigner": false - }, - { - "name": "ammTargetOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "serumProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": true, - "isSigner": false - }, - { - "name": "serumBids", - "isMut": true, - "isSigner": false - }, - { - "name": "serumAsks", - "isMut": true, - "isSigner": false - }, - { - "name": "serumEventQueue", - "isMut": true, - "isSigner": false - }, - { - "name": "serumCoinVault", - "isMut": true, - "isSigner": false - }, - { - "name": "serumPcVault", - "isMut": true, - "isSigner": false - }, - { - "name": "serumVaultSigner", - "isMut": false, - "isSigner": false - }, - { - "name": "newAmmOpenOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "newSerumProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "newSerumMarket", - "isMut": false, - "isSigner": false - }, - { - "name": "admin", - "isMut": true, - "isSigner": true - } - ], - "args": [] - }, - { - "name": "setParams", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOpenOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "ammTargetOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "ammCoinVault", - "isMut": true, - "isSigner": false - }, - { - "name": "ammPcVault", - "isMut": true, - "isSigner": false - }, - { - "name": "serumProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": true, - "isSigner": false - }, - { - "name": "serumCoinVault", - "isMut": true, - "isSigner": false - }, - { - "name": "serumPcVault", - "isMut": true, - "isSigner": false - }, - { - "name": "serumVaultSigner", - "isMut": false, - "isSigner": false - }, - { - "name": "serumEventQueue", - "isMut": true, - "isSigner": false - }, - { - "name": "serumBids", - "isMut": true, - "isSigner": false - }, - { - "name": "serumAsks", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAdminAccount", - "isMut": false, - "isSigner": true - } - ], - "args": [ - { - "name": "param", - "type": "u8" - }, - { - "name": "value", - "type": { - "option": "u64" - } - }, - { - "name": "newPubkey", - "type": { - "option": "publicKey" - } - }, - { - "name": "fees", - "type": { - "option": { - "defined": "Fees" - } - } - }, - { - "name": "lastOrderDistance", - "type": { - "option": { - "defined": "LastOrderDistance" - } - } - }, - { - "name": "needTakeAmounts", - "type": { - "option": { - "defined": "NeedTake" - } - } - } - ] - }, - { - "name": "withdrawPnl", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": true, - "isSigner": false - }, - { - "name": "ammConfig", - "isMut": false, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOpenOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "poolCoinTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolPcTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "coinPnlTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "pcPnlTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "pnlOwnerAccount", - "isMut": false, - "isSigner": true - }, - { - "name": "ammTargetOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "serumProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": true, - "isSigner": false - }, - { - "name": "serumEventQueue", - "isMut": false, - "isSigner": false - }, - { - "name": "serumCoinVaultAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumPcVaultAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumVaultSigner", - "isMut": false, - "isSigner": false - } - ], - "args": [] - }, - { - "name": "withdrawSrm", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOwnerAccount", - "isMut": false, - "isSigner": true - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "srmToken", - "isMut": true, - "isSigner": false - }, - { - "name": "destSrmToken", - "isMut": true, - "isSigner": false - } - ], - "args": [ - { - "name": "amount", - "type": "u64" - } - ] - }, - { - "name": "swapBaseIn", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOpenOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "ammTargetOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "poolCoinTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolPcTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": true, - "isSigner": false - }, - { - "name": "serumBids", - "isMut": true, - "isSigner": false - }, - { - "name": "serumAsks", - "isMut": true, - "isSigner": false - }, - { - "name": "serumEventQueue", - "isMut": true, - "isSigner": false - }, - { - "name": "serumCoinVaultAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumPcVaultAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumVaultSigner", - "isMut": false, - "isSigner": false - }, - { - "name": "userSourceTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userDestinationTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userSourceOwner", - "isMut": false, - "isSigner": true - } - ], - "args": [ - { - "name": "amountIn", - "type": "u64" - }, - { - "name": "minimumAmountOut", - "type": "u64" - } - ] - }, - { - "name": "preInitialize", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "rent", - "isMut": false, - "isSigner": false - }, - { - "name": "ammTargetOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "poolWithdrawQueue", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "lpMintAddress", - "isMut": true, - "isSigner": false - }, - { - "name": "coinMintAddress", - "isMut": false, - "isSigner": false - }, - { - "name": "pcMintAddress", - "isMut": false, - "isSigner": false - }, - { - "name": "poolCoinTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolPcTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolTempLpTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": false, - "isSigner": false - }, - { - "name": "userWallet", - "isMut": true, - "isSigner": true - } - ], - "args": [ - { - "name": "nonce", - "type": "u8" - } - ] - }, - { - "name": "swapBaseOut", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOpenOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "ammTargetOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "poolCoinTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolPcTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": true, - "isSigner": false - }, - { - "name": "serumBids", - "isMut": true, - "isSigner": false - }, - { - "name": "serumAsks", - "isMut": true, - "isSigner": false - }, - { - "name": "serumEventQueue", - "isMut": true, - "isSigner": false - }, - { - "name": "serumCoinVaultAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumPcVaultAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumVaultSigner", - "isMut": false, - "isSigner": false - }, - { - "name": "userSourceTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userDestinationTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userSourceOwner", - "isMut": false, - "isSigner": true - } - ], - "args": [ - { - "name": "maxAmountIn", - "type": "u64" - }, - { - "name": "amountOut", - "type": "u64" - } - ] - }, - { - "name": "simulateInfo", - "accounts": [ - { - "name": "amm", - "isMut": false, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOpenOrders", - "isMut": false, - "isSigner": false - }, - { - "name": "poolCoinTokenAccount", - "isMut": false, - "isSigner": false - }, - { - "name": "poolPcTokenAccount", - "isMut": false, - "isSigner": false - }, - { - "name": "lpMintAddress", - "isMut": false, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": false, - "isSigner": false - }, - { - "name": "serumEventQueue", - "isMut": false, - "isSigner": false - } - ], - "args": [ - { - "name": "param", - "type": "u8" - }, - { - "name": "swapBaseInValue", - "type": { - "option": { - "defined": "SwapInstructionBaseIn" - } - } - }, - { - "name": "swapBaseOutValue", - "type": { - "option": { - "defined": "SwapInstructionBaseOut" - } - } - } - ] - }, - { - "name": "adminCancelOrders", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": false, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammOpenOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "ammTargetOrders", - "isMut": true, - "isSigner": false - }, - { - "name": "poolCoinTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "poolPcTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "ammOwnerAccount", - "isMut": false, - "isSigner": true - }, - { - "name": "ammConfig", - "isMut": true, - "isSigner": false - }, - { - "name": "serumProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "serumMarket", - "isMut": true, - "isSigner": false - }, - { - "name": "serumCoinVaultAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumPcVaultAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "serumVaultSigner", - "isMut": false, - "isSigner": false - }, - { - "name": "serumEventQ", - "isMut": true, - "isSigner": false - }, - { - "name": "serumBids", - "isMut": true, - "isSigner": false - }, - { - "name": "serumAsks", - "isMut": true, - "isSigner": false - } - ], - "args": [ - { - "name": "limit", - "type": "u16" - } - ] - }, - { - "name": "createConfigAccount", - "accounts": [ - { - "name": "admin", - "isMut": true, - "isSigner": true - }, - { - "name": "ammConfig", - "isMut": true, - "isSigner": false - }, - { - "name": "owner", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "rent", - "isMut": false, - "isSigner": false - } - ], - "args": [] - }, - { - "name": "updateConfigAccount", - "accounts": [ - { - "name": "admin", - "isMut": false, - "isSigner": true - }, - { - "name": "ammConfig", - "isMut": true, - "isSigner": false - } - ], - "args": [ - { - "name": "param", - "type": "u8" - }, - { - "name": "owner", - "type": "publicKey" - } - ] - }, - { - "name": "swapBaseInV2", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammCoinVault", - "isMut": true, - "isSigner": false - }, - { - "name": "ammPcVault", - "isMut": true, - "isSigner": false - }, - { - "name": "userSourceTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userDestinationTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userWalletAccount", - "isMut": false, - "isSigner": true - } - ], - "args": [ - { - "name": "amountIn", - "type": "u64" - }, - { - "name": "minimumAmountOut", - "type": "u64" - } - ] - }, - { - "name": "swapBaseOutV2", - "accounts": [ - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "amm", - "isMut": true, - "isSigner": false - }, - { - "name": "ammAuthority", - "isMut": false, - "isSigner": false - }, - { - "name": "ammCoinVault", - "isMut": true, - "isSigner": false - }, - { - "name": "ammPcVault", - "isMut": true, - "isSigner": false - }, - { - "name": "userSourceTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userDestinationTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "userWalletAccount", - "isMut": false, - "isSigner": true - } - ], - "args": [ - { - "name": "maxAmountIn", - "type": "u64" - }, - { - "name": "amountOut", - "type": "u64" - } - ] - } - ], - "accounts": [ - { - "name": "TargetOrders", - "type": { - "kind": "struct", - "fields": [ - { - "name": "owner", - "type": { - "array": ["u64", 4] - } - }, - { - "name": "buyOrders", - "type": { - "array": [ - { - "defined": "TargetOrder" - }, - 50 - ] - } - }, - { - "name": "padding1", - "type": { - "array": ["u64", 8] - } - }, - { - "name": "targetX", - "type": "u128" - }, - { - "name": "targetY", - "type": "u128" - }, - { - "name": "planXBuy", - "type": "u128" - }, - { - "name": "planYBuy", - "type": "u128" - }, - { - "name": "planXSell", - "type": "u128" - }, - { - "name": "planYSell", - "type": "u128" - }, - { - "name": "placedX", - "type": "u128" - }, - { - "name": "placedY", - "type": "u128" - }, - { - "name": "calcPnlX", - "type": "u128" - }, - { - "name": "calcPnlY", - "type": "u128" - }, - { - "name": "sellOrders", - "type": { - "array": [ - { - "defined": "TargetOrder" - }, - 50 - ] - } - }, - { - "name": "padding2", - "type": { - "array": ["u64", 6] - } - }, - { - "name": "replaceBuyClientId", - "type": { - "array": ["u64", 10] - } - }, - { - "name": "replaceSellClientId", - "type": { - "array": ["u64", 10] - } - }, - { - "name": "lastOrderNumerator", - "type": "u64" - }, - { - "name": "lastOrderDenominator", - "type": "u64" - }, - { - "name": "planOrdersCur", - "type": "u64" - }, - { - "name": "placeOrdersCur", - "type": "u64" - }, - { - "name": "validBuyOrderNum", - "type": "u64" - }, - { - "name": "validSellOrderNum", - "type": "u64" - }, - { - "name": "padding3", - "type": { - "array": ["u64", 10] - } - }, - { - "name": "freeSlotBits", - "type": "u128" - } - ] - } - }, - { - "name": "Fees", - "type": { - "kind": "struct", - "fields": [ - { - "name": "minSeparateNumerator", - "type": "u64" - }, - { - "name": "minSeparateDenominator", - "type": "u64" - }, - { - "name": "tradeFeeNumerator", - "type": "u64" - }, - { - "name": "tradeFeeDenominator", - "type": "u64" - }, - { - "name": "pnlNumerator", - "type": "u64" - }, - { - "name": "pnlDenominator", - "type": "u64" - }, - { - "name": "swapFeeNumerator", - "type": "u64" - }, - { - "name": "swapFeeDenominator", - "type": "u64" - } - ] - } - }, - { - "name": "AmmInfo", - "type": { - "kind": "struct", - "fields": [ - { - "name": "status", - "type": "u64" - }, - { - "name": "nonce", - "type": "u64" - }, - { - "name": "orderNum", - "type": "u64" - }, - { - "name": "depth", - "type": "u64" - }, - { - "name": "coinDecimals", - "type": "u64" - }, - { - "name": "pcDecimals", - "type": "u64" - }, - { - "name": "state", - "type": "u64" - }, - { - "name": "resetFlag", - "type": "u64" - }, - { - "name": "minSize", - "type": "u64" - }, - { - "name": "volMaxCutRatio", - "type": "u64" - }, - { - "name": "amountWave", - "type": "u64" - }, - { - "name": "coinLotSize", - "type": "u64" - }, - { - "name": "pcLotSize", - "type": "u64" - }, - { - "name": "minPriceMultiplier", - "type": "u64" - }, - { - "name": "maxPriceMultiplier", - "type": "u64" - }, - { - "name": "sysDecimalValue", - "type": "u64" - }, - { - "name": "fees", - "type": { - "defined": "Fees" - } - }, - { - "name": "outPut", - "type": { - "defined": "OutPutData" - } - }, - { - "name": "tokenCoin", - "type": "publicKey" - }, - { - "name": "tokenPc", - "type": "publicKey" - }, - { - "name": "coinMint", - "type": "publicKey" - }, - { - "name": "pcMint", - "type": "publicKey" - }, - { - "name": "lpMint", - "type": "publicKey" - }, - { - "name": "openOrders", - "type": "publicKey" - }, - { - "name": "market", - "type": "publicKey" - }, - { - "name": "serumDex", - "type": "publicKey" - }, - { - "name": "targetOrders", - "type": "publicKey" - }, - { - "name": "withdrawQueue", - "type": "publicKey" - }, - { - "name": "tokenTempLp", - "type": "publicKey" - }, - { - "name": "ammOwner", - "type": "publicKey" - }, - { - "name": "lpAmount", - "type": "u64" - }, - { - "name": "clientOrderId", - "type": "u64" - }, - { - "name": "padding", - "type": { - "array": ["u64", 2] - } - } - ] - } - } - ], - "types": [ - { - "name": "WithdrawDestToken", - "type": { - "kind": "struct", - "fields": [ - { - "name": "withdrawAmount", - "type": "u64" - }, - { - "name": "coinAmount", - "type": "u64" - }, - { - "name": "pcAmount", - "type": "u64" - }, - { - "name": "destTokenCoin", - "type": "publicKey" - }, - { - "name": "destTokenPc", - "type": "publicKey" - } - ] - } - }, - { - "name": "WithdrawQueue", - "type": { - "kind": "struct", - "fields": [ - { - "name": "owner", - "type": { - "array": ["u64", 4] - } - }, - { - "name": "head", - "type": "u64" - }, - { - "name": "count", - "type": "u64" - }, - { - "name": "buf", - "type": { - "array": [ - { - "defined": "WithdrawDestToken" - }, - 64 - ] - } - } - ] - } - }, - { - "name": "TargetOrder", - "type": { - "kind": "struct", - "fields": [ - { - "name": "price", - "type": "u64" - }, - { - "name": "vol", - "type": "u64" - } - ] - } - }, - { - "name": "OutPutData", - "type": { - "kind": "struct", - "fields": [ - { - "name": "needTakePnlCoin", - "type": "u64" - }, - { - "name": "needTakePnlPc", - "type": "u64" - }, - { - "name": "totalPnlPc", - "type": "u64" - }, - { - "name": "totalPnlCoin", - "type": "u64" - }, - { - "name": "poolOpenTime", - "type": "u64" - }, - { - "name": "punishPcAmount", - "type": "u64" - }, - { - "name": "punishCoinAmount", - "type": "u64" - }, - { - "name": "orderbookToInitTime", - "type": "u64" - }, - { - "name": "swapCoinInAmount", - "type": "u128" - }, - { - "name": "swapPcOutAmount", - "type": "u128" - }, - { - "name": "swapTakePcFee", - "type": "u64" - }, - { - "name": "swapPcInAmount", - "type": "u128" - }, - { - "name": "swapCoinOutAmount", - "type": "u128" - }, - { - "name": "swapTakeCoinFee", - "type": "u64" - } - ] - } - }, - { - "name": "AmmConfig", - "type": { - "kind": "struct", - "fields": [ - { - "name": "pnlOwner", - "type": "publicKey" - }, - { - "name": "cancelOwner", - "type": "publicKey" - }, - { - "name": "pending1", - "type": { - "array": ["u64", 28] - } - }, - { - "name": "pending2", - "type": { - "array": ["u64", 32] - } - } - ] - } - }, - { - "name": "LastOrderDistance", - "type": { - "kind": "struct", - "fields": [ - { - "name": "lastOrderNumerator", - "type": "u64" - }, - { - "name": "lastOrderDenominator", - "type": "u64" - } - ] - } - }, - { - "name": "NeedTake", - "type": { - "kind": "struct", - "fields": [ - { - "name": "needTakePc", - "type": "u64" - }, - { - "name": "needTakeCoin", - "type": "u64" - } - ] - } - }, - { - "name": "SwapInstructionBaseIn", - "type": { - "kind": "struct", - "fields": [ - { - "name": "amountIn", - "type": "u64" - }, - { - "name": "minimumAmountOut", - "type": "u64" - } - ] - } - }, - { - "name": "SwapInstructionBaseOut", - "type": { - "kind": "struct", - "fields": [ - { - "name": "maxAmountIn", - "type": "u64" - }, - { - "name": "amountOut", - "type": "u64" - } - ] - } - } - ], - "errors": [ - { - "code": 0, - "name": "AlreadyInUse", - "msg": "AlreadyInUse" - }, - { - "code": 1, - "name": "InvalidProgramAddress", - "msg": "InvalidProgramAddress" - }, - { - "code": 2, - "name": "ExpectedMint", - "msg": "ExpectedMint" - }, - { - "code": 3, - "name": "ExpectedAccount", - "msg": "ExpectedAccount" - }, - { - "code": 4, - "name": "InvalidCoinVault", - "msg": "InvalidCoinVault" - }, - { - "code": 5, - "name": "InvalidPCVault", - "msg": "InvalidPCVault" - }, - { - "code": 6, - "name": "InvalidTokenLP", - "msg": "InvalidTokenLP" - }, - { - "code": 7, - "name": "InvalidDestTokenCoin", - "msg": "InvalidDestTokenCoin" - }, - { - "code": 8, - "name": "InvalidDestTokenPC", - "msg": "InvalidDestTokenPC" - }, - { - "code": 9, - "name": "InvalidPoolMint", - "msg": "InvalidPoolMint" - }, - { - "code": 10, - "name": "InvalidOpenOrders", - "msg": "InvalidOpenOrders" - }, - { - "code": 11, - "name": "InvalidSerumMarket", - "msg": "InvalidSerumMarket" - }, - { - "code": 12, - "name": "InvalidSerumProgram", - "msg": "InvalidSerumProgram" - }, - { - "code": 13, - "name": "InvalidTargetOrders", - "msg": "InvalidTargetOrders" - }, - { - "code": 14, - "name": "InvalidWithdrawQueue", - "msg": "InvalidWithdrawQueue" - }, - { - "code": 15, - "name": "InvalidTempLp", - "msg": "InvalidTempLp" - }, - { - "code": 16, - "name": "InvalidCoinMint", - "msg": "InvalidCoinMint" - }, - { - "code": 17, - "name": "InvalidPCMint", - "msg": "InvalidPCMint" - }, - { - "code": 18, - "name": "InvalidOwner", - "msg": "InvalidOwner" - }, - { - "code": 19, - "name": "InvalidSupply", - "msg": "InvalidSupply" - }, - { - "code": 20, - "name": "InvalidDelegate", - "msg": "InvalidDelegate" - }, - { - "code": 21, - "name": "InvalidSignAccount", - "msg": "Invalid Sign Account" - }, - { - "code": 22, - "name": "InvalidStatus", - "msg": "InvalidStatus" - }, - { - "code": 23, - "name": "InvalidInstruction", - "msg": "Invalid instruction" - }, - { - "code": 24, - "name": "WrongAccountsNumber", - "msg": "Wrong accounts number" - }, - { - "code": 25, - "name": "WithdrawTransferBusy", - "msg": "Withdraw_transfer is busy" - }, - { - "code": 26, - "name": "WithdrawQueueFull", - "msg": "WithdrawQueue is full" - }, - { - "code": 27, - "name": "WithdrawQueueEmpty", - "msg": "WithdrawQueue is empty" - }, - { - "code": 28, - "name": "InvalidParamsSet", - "msg": "Params Set is invalid" - }, - { - "code": 29, - "name": "InvalidInput", - "msg": "InvalidInput" - }, - { - "code": 30, - "name": "ExceededSlippage", - "msg": "instruction exceeds desired slippage limit" - }, - { - "code": 31, - "name": "CalculationExRateFailure", - "msg": "CalculationExRateFailure" - }, - { - "code": 32, - "name": "CheckedSubOverflow", - "msg": "Checked_Sub Overflow" - }, - { - "code": 33, - "name": "CheckedAddOverflow", - "msg": "Checked_Add Overflow" - }, - { - "code": 34, - "name": "CheckedMulOverflow", - "msg": "Checked_Mul Overflow" - }, - { - "code": 35, - "name": "CheckedDivOverflow", - "msg": "Checked_Div Overflow" - }, - { - "code": 36, - "name": "CheckedEmptyFunds", - "msg": "Empty Funds" - }, - { - "code": 37, - "name": "CalcPnlError", - "msg": "Calc pnl error" - }, - { - "code": 38, - "name": "InvalidSplTokenProgram", - "msg": "InvalidSplTokenProgram" - }, - { - "code": 39, - "name": "TakePnlError", - "msg": "Take Pnl error" - }, - { - "code": 40, - "name": "InsufficientFunds", - "msg": "Insufficient funds" - }, - { - "code": 41, - "name": "ConversionFailure", - "msg": "Conversion to u64 failed with an overflow or underflow" - }, - { - "code": 42, - "name": "InvalidUserToken", - "msg": "user token input does not match amm" - }, - { - "code": 43, - "name": "InvalidSrmMint", - "msg": "InvalidSrmMint" - }, - { - "code": 44, - "name": "InvalidSrmToken", - "msg": "InvalidSrmToken" - }, - { - "code": 45, - "name": "TooManyOpenOrders", - "msg": "TooManyOpenOrders" - }, - { - "code": 46, - "name": "OrderAtSlotIsPlaced", - "msg": "OrderAtSlotIsPlaced" - }, - { - "code": 47, - "name": "InvalidSysProgramAddress", - "msg": "InvalidSysProgramAddress" - }, - { - "code": 48, - "name": "InvalidFee", - "msg": "The provided fee does not match the program owner's constraints" - }, - { - "code": 49, - "name": "RepeatCreateAmm", - "msg": "Repeat create amm about market" - }, - { - "code": 50, - "name": "NotAllowZeroLP", - "msg": "Not allow Zero LP" - }, - { - "code": 51, - "name": "InvalidCloseAuthority", - "msg": "Token account has a close authority" - }, - { - "code": 52, - "name": "InvalidFreezeAuthority", - "msg": "Pool token mint has a freeze authority" - }, - { - "code": 53, - "name": "InvalidReferPCMint", - "msg": "InvalidReferPCMint" - }, - { - "code": 54, - "name": "InvalidConfigAccount", - "msg": "InvalidConfigAccount" - }, - { - "code": 55, - "name": "RepeatCreateConfigAccount", - "msg": "Repeat create staking config account" - }, - { - "code": 56, - "name": "UnknownAmmError", - "msg": "Unknown Amm Error" - } - ], - "metadata": { - "instruction_selector_type": "index", - "address": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8" - } -} diff --git a/idl/bitquery/raydium/raydium_cp.json b/idl/bitquery/raydium/raydium_cp.json deleted file mode 100644 index 86958f1..0000000 --- a/idl/bitquery/raydium/raydium_cp.json +++ /dev/null @@ -1,1093 +0,0 @@ -{ - "version": "0.1.0", - "name": "raydium_cp_swap", - "metadata": { - "address": "CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C" - }, - "instructions": [ - { - "name": "createAmmConfig", - "docs": [ - "# Arguments", - "", - "* `ctx`- The accounts needed by instruction.", - "* `index` - The index of amm config, there may be multiple config.", - "* `trade_fee_rate` - Trade fee rate, can be changed.", - "* `protocol_fee_rate` - The rate of protocol fee within tarde fee.", - "* `fund_fee_rate` - The rate of fund fee within tarde fee.", - "" - ], - "accounts": [ - { - "name": "owner", - "isMut": true, - "isSigner": true, - "docs": ["Address to be set as protocol owner."] - }, - { - "name": "ammConfig", - "isMut": true, - "isSigner": false, - "docs": [ - "Initialize config state account to store protocol owner address and fee rates." - ] - }, - { "name": "systemProgram", "isMut": false, "isSigner": false } - ], - "args": [ - { "name": "index", "type": "u16" }, - { "name": "tradeFeeRate", "type": "u64" }, - { "name": "protocolFeeRate", "type": "u64" }, - { "name": "fundFeeRate", "type": "u64" }, - { "name": "createPoolFee", "type": "u64" } - ] - }, - { - "name": "updateAmmConfig", - "docs": [ - "Updates the owner of the amm config", - "Must be called by the current owner or admin", - "", - "# Arguments", - "", - "* `ctx`- The context of accounts", - "* `trade_fee_rate`- The new trade fee rate of amm config, be set when `param` is 0", - "* `protocol_fee_rate`- The new protocol fee rate of amm config, be set when `param` is 1", - "* `fund_fee_rate`- The new fund fee rate of amm config, be set when `param` is 2", - "* `new_owner`- The config's new owner, be set when `param` is 3", - "* `new_fund_owner`- The config's new fund owner, be set when `param` is 4", - "* `param`- The vaule can be 0 | 1 | 2 | 3 | 4, otherwise will report a error", - "" - ], - "accounts": [ - { - "name": "owner", - "isMut": false, - "isSigner": true, - "docs": ["The amm config owner or admin"] - }, - { - "name": "ammConfig", - "isMut": true, - "isSigner": false, - "docs": ["Amm config account to be changed"] - } - ], - "args": [ - { "name": "param", "type": "u8" }, - { "name": "value", "type": "u64" } - ] - }, - { - "name": "updatePoolStatus", - "docs": [ - "Update pool status for given vaule", - "", - "# Arguments", - "", - "* `ctx`- The context of accounts", - "* `status` - The vaule of status", - "" - ], - "accounts": [ - { "name": "authority", "isMut": false, "isSigner": true }, - { "name": "poolState", "isMut": true, "isSigner": false } - ], - "args": [{ "name": "status", "type": "u8" }] - }, - { - "name": "collectProtocolFee", - "docs": [ - "Collect the protocol fee accrued to the pool", - "", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "* `amount_0_requested` - The maximum amount of token_0 to send, can be 0 to collect fees in only token_1", - "* `amount_1_requested` - The maximum amount of token_1 to send, can be 0 to collect fees in only token_0", - "" - ], - "accounts": [ - { - "name": "owner", - "isMut": false, - "isSigner": true, - "docs": ["Only admin or owner can collect fee now"] - }, - { "name": "authority", "isMut": false, "isSigner": false }, - { - "name": "poolState", - "isMut": true, - "isSigner": false, - "docs": ["Pool state stores accumulated protocol fee amount"] - }, - { - "name": "ammConfig", - "isMut": false, - "isSigner": false, - "docs": ["Amm config account stores owner"] - }, - { - "name": "token0Vault", - "isMut": true, - "isSigner": false, - "docs": ["The address that holds pool tokens for token_0"] - }, - { - "name": "token1Vault", - "isMut": true, - "isSigner": false, - "docs": ["The address that holds pool tokens for token_1"] - }, - { - "name": "vault0Mint", - "isMut": false, - "isSigner": false, - "docs": ["The mint of token_0 vault"] - }, - { - "name": "vault1Mint", - "isMut": false, - "isSigner": false, - "docs": ["The mint of token_1 vault"] - }, - { - "name": "recipientToken0Account", - "isMut": true, - "isSigner": false, - "docs": [ - "The address that receives the collected token_0 protocol fees" - ] - }, - { - "name": "recipientToken1Account", - "isMut": true, - "isSigner": false, - "docs": [ - "The address that receives the collected token_1 protocol fees" - ] - }, - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false, - "docs": ["The SPL program to perform token transfers"] - }, - { - "name": "tokenProgram2022", - "isMut": false, - "isSigner": false, - "docs": ["The SPL program 2022 to perform token transfers"] - } - ], - "args": [ - { "name": "amount0Requested", "type": "u64" }, - { "name": "amount1Requested", "type": "u64" } - ] - }, - { - "name": "collectFundFee", - "docs": [ - "Collect the fund fee accrued to the pool", - "", - "# Arguments", - "", - "* `ctx` - The context of accounts", - "* `amount_0_requested` - The maximum amount of token_0 to send, can be 0 to collect fees in only token_1", - "* `amount_1_requested` - The maximum amount of token_1 to send, can be 0 to collect fees in only token_0", - "" - ], - "accounts": [ - { - "name": "owner", - "isMut": false, - "isSigner": true, - "docs": ["Only admin or fund_owner can collect fee now"] - }, - { "name": "authority", "isMut": false, "isSigner": false }, - { - "name": "poolState", - "isMut": true, - "isSigner": false, - "docs": ["Pool state stores accumulated protocol fee amount"] - }, - { - "name": "ammConfig", - "isMut": false, - "isSigner": false, - "docs": ["Amm config account stores fund_owner"] - }, - { - "name": "token0Vault", - "isMut": true, - "isSigner": false, - "docs": ["The address that holds pool tokens for token_0"] - }, - { - "name": "token1Vault", - "isMut": true, - "isSigner": false, - "docs": ["The address that holds pool tokens for token_1"] - }, - { - "name": "vault0Mint", - "isMut": false, - "isSigner": false, - "docs": ["The mint of token_0 vault"] - }, - { - "name": "vault1Mint", - "isMut": false, - "isSigner": false, - "docs": ["The mint of token_1 vault"] - }, - { - "name": "recipientToken0Account", - "isMut": true, - "isSigner": false, - "docs": ["The address that receives the collected token_0 fund fees"] - }, - { - "name": "recipientToken1Account", - "isMut": true, - "isSigner": false, - "docs": ["The address that receives the collected token_1 fund fees"] - }, - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false, - "docs": ["The SPL program to perform token transfers"] - }, - { - "name": "tokenProgram2022", - "isMut": false, - "isSigner": false, - "docs": ["The SPL program 2022 to perform token transfers"] - } - ], - "args": [ - { "name": "amount0Requested", "type": "u64" }, - { "name": "amount1Requested", "type": "u64" } - ] - }, - { - "name": "initialize", - "docs": [ - "Creates a pool for the given token pair and the initial price", - "", - "# Arguments", - "", - "* `ctx`- The context of accounts", - "* `init_amount_0` - the initial amount_0 to deposit", - "* `init_amount_1` - the initial amount_1 to deposit", - "* `open_time` - the timestamp allowed for swap", - "" - ], - "accounts": [ - { - "name": "creator", - "isMut": true, - "isSigner": true, - "docs": ["Address paying to create the pool. Can be anyone"] - }, - { - "name": "ammConfig", - "isMut": false, - "isSigner": false, - "docs": ["Which config the pool belongs to."] - }, - { "name": "authority", "isMut": false, "isSigner": false }, - { - "name": "poolState", - "isMut": true, - "isSigner": false, - "docs": ["Initialize an account to store the pool state"] - }, - { - "name": "token0Mint", - "isMut": false, - "isSigner": false, - "docs": ["Token_0 mint, the key must smaller then token_1 mint."] - }, - { - "name": "token1Mint", - "isMut": false, - "isSigner": false, - "docs": ["Token_1 mint, the key must grater then token_0 mint."] - }, - { - "name": "lpMint", - "isMut": true, - "isSigner": false, - "docs": ["pool lp mint"] - }, - { - "name": "creatorToken0", - "isMut": true, - "isSigner": false, - "docs": ["payer token0 account"] - }, - { - "name": "creatorToken1", - "isMut": true, - "isSigner": false, - "docs": ["creator token1 account"] - }, - { - "name": "creatorLpToken", - "isMut": true, - "isSigner": false, - "docs": ["creator lp token account"] - }, - { "name": "token0Vault", "isMut": true, "isSigner": false }, - { "name": "token1Vault", "isMut": true, "isSigner": false }, - { - "name": "createPoolFee", - "isMut": true, - "isSigner": false, - "docs": ["create pool fee account"] - }, - { - "name": "observationState", - "isMut": true, - "isSigner": false, - "docs": ["an account to store oracle observations"] - }, - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false, - "docs": ["Program to create mint account and mint tokens"] - }, - { - "name": "token0Program", - "isMut": false, - "isSigner": false, - "docs": ["Spl token program or token program 2022"] - }, - { - "name": "token1Program", - "isMut": false, - "isSigner": false, - "docs": ["Spl token program or token program 2022"] - }, - { - "name": "associatedTokenProgram", - "isMut": false, - "isSigner": false, - "docs": ["Program to create an ATA for receiving position NFT"] - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false, - "docs": ["To create a new program account"] - }, - { - "name": "rent", - "isMut": false, - "isSigner": false, - "docs": ["Sysvar for program account"] - } - ], - "args": [ - { "name": "initAmount0", "type": "u64" }, - { "name": "initAmount1", "type": "u64" }, - { "name": "openTime", "type": "u64" } - ] - }, - { - "name": "deposit", - "docs": [ - "Creates a pool for the given token pair and the initial price", - "", - "# Arguments", - "", - "* `ctx`- The context of accounts", - "* `lp_token_amount` - Pool token amount to transfer. token_a and token_b amount are set by the current exchange rate and size of the pool", - "* `maximum_token_0_amount` - Maximum token 0 amount to deposit, prevents excessive slippage", - "* `maximum_token_1_amount` - Maximum token 1 amount to deposit, prevents excessive slippage", - "" - ], - "accounts": [ - { - "name": "owner", - "isMut": false, - "isSigner": true, - "docs": ["Pays to mint the position"] - }, - { "name": "authority", "isMut": false, "isSigner": false }, - { "name": "poolState", "isMut": true, "isSigner": false }, - { - "name": "ownerLpToken", - "isMut": true, - "isSigner": false, - "docs": ["Owner lp tokan account"] - }, - { - "name": "token0Account", - "isMut": true, - "isSigner": false, - "docs": ["The payer's token account for token_0"] - }, - { - "name": "token1Account", - "isMut": true, - "isSigner": false, - "docs": ["The payer's token account for token_1"] - }, - { - "name": "token0Vault", - "isMut": true, - "isSigner": false, - "docs": ["The address that holds pool tokens for token_0"] - }, - { - "name": "token1Vault", - "isMut": true, - "isSigner": false, - "docs": ["The address that holds pool tokens for token_1"] - }, - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false, - "docs": ["token Program"] - }, - { - "name": "tokenProgram2022", - "isMut": false, - "isSigner": false, - "docs": ["Token program 2022"] - }, - { - "name": "vault0Mint", - "isMut": false, - "isSigner": false, - "docs": ["The mint of token_0 vault"] - }, - { - "name": "vault1Mint", - "isMut": false, - "isSigner": false, - "docs": ["The mint of token_1 vault"] - }, - { - "name": "lpMint", - "isMut": true, - "isSigner": false, - "docs": ["Lp token mint"] - } - ], - "args": [ - { "name": "lpTokenAmount", "type": "u64" }, - { "name": "maximumToken0Amount", "type": "u64" }, - { "name": "maximumToken1Amount", "type": "u64" } - ] - }, - { - "name": "withdraw", - "docs": [ - "Withdraw lp for token0 ande token1", - "", - "# Arguments", - "", - "* `ctx`- The context of accounts", - "* `lp_token_amount` - Amount of pool tokens to burn. User receives an output of token a and b based on the percentage of the pool tokens that are returned.", - "* `minimum_token_0_amount` - Minimum amount of token 0 to receive, prevents excessive slippage", - "* `minimum_token_1_amount` - Minimum amount of token 1 to receive, prevents excessive slippage", - "" - ], - "accounts": [ - { - "name": "owner", - "isMut": false, - "isSigner": true, - "docs": ["Pays to mint the position"] - }, - { "name": "authority", "isMut": false, "isSigner": false }, - { - "name": "poolState", - "isMut": true, - "isSigner": false, - "docs": ["Pool state account"] - }, - { - "name": "ownerLpToken", - "isMut": true, - "isSigner": false, - "docs": ["Owner lp token account"] - }, - { - "name": "token0Account", - "isMut": true, - "isSigner": false, - "docs": ["The owner's token account for receive token_0"] - }, - { - "name": "token1Account", - "isMut": true, - "isSigner": false, - "docs": ["The owner's token account for receive token_1"] - }, - { - "name": "token0Vault", - "isMut": true, - "isSigner": false, - "docs": ["The address that holds pool tokens for token_0"] - }, - { - "name": "token1Vault", - "isMut": true, - "isSigner": false, - "docs": ["The address that holds pool tokens for token_1"] - }, - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false, - "docs": ["token Program"] - }, - { - "name": "tokenProgram2022", - "isMut": false, - "isSigner": false, - "docs": ["Token program 2022"] - }, - { - "name": "vault0Mint", - "isMut": false, - "isSigner": false, - "docs": ["The mint of token_0 vault"] - }, - { - "name": "vault1Mint", - "isMut": false, - "isSigner": false, - "docs": ["The mint of token_1 vault"] - }, - { - "name": "lpMint", - "isMut": true, - "isSigner": false, - "docs": ["Pool lp token mint"] - }, - { - "name": "memoProgram", - "isMut": false, - "isSigner": false, - "docs": ["memo program"] - } - ], - "args": [ - { "name": "lpTokenAmount", "type": "u64" }, - { "name": "minimumToken0Amount", "type": "u64" }, - { "name": "minimumToken1Amount", "type": "u64" } - ] - }, - { - "name": "swapBaseInput", - "docs": [ - "Swap the tokens in the pool base input amount", - "", - "# Arguments", - "", - "* `ctx`- The context of accounts", - "* `amount_in` - input amount to transfer, output to DESTINATION is based on the exchange rate", - "* `minimum_amount_out` - Minimum amount of output token, prevents excessive slippage", - "" - ], - "accounts": [ - { - "name": "payer", - "isMut": false, - "isSigner": true, - "docs": ["The user performing the swap"] - }, - { "name": "authority", "isMut": false, "isSigner": false }, - { - "name": "ammConfig", - "isMut": false, - "isSigner": false, - "docs": ["The factory state to read protocol fees"] - }, - { - "name": "poolState", - "isMut": true, - "isSigner": false, - "docs": [ - "The program account of the pool in which the swap will be performed" - ] - }, - { - "name": "inputTokenAccount", - "isMut": true, - "isSigner": false, - "docs": ["The user token account for input token"] - }, - { - "name": "outputTokenAccount", - "isMut": true, - "isSigner": false, - "docs": ["The user token account for output token"] - }, - { - "name": "inputVault", - "isMut": true, - "isSigner": false, - "docs": ["The vault token account for input token"] - }, - { - "name": "outputVault", - "isMut": true, - "isSigner": false, - "docs": ["The vault token account for output token"] - }, - { - "name": "inputTokenProgram", - "isMut": false, - "isSigner": false, - "docs": ["SPL program for input token transfers"] - }, - { - "name": "outputTokenProgram", - "isMut": false, - "isSigner": false, - "docs": ["SPL program for output token transfers"] - }, - { - "name": "inputTokenMint", - "isMut": false, - "isSigner": false, - "docs": ["The mint of input token"] - }, - { - "name": "outputTokenMint", - "isMut": false, - "isSigner": false, - "docs": ["The mint of output token"] - }, - { - "name": "observationState", - "isMut": true, - "isSigner": false, - "docs": ["The program account for the most recent oracle observation"] - } - ], - "args": [ - { "name": "amountIn", "type": "u64" }, - { "name": "minimumAmountOut", "type": "u64" } - ] - }, - { - "name": "swapBaseOutput", - "docs": [ - "Swap the tokens in the pool base output amount", - "", - "# Arguments", - "", - "* `ctx`- The context of accounts", - "* `max_amount_in` - input amount prevents excessive slippage", - "* `amount_out` - amount of output token", - "" - ], - "accounts": [ - { - "name": "payer", - "isMut": false, - "isSigner": true, - "docs": ["The user performing the swap"] - }, - { "name": "authority", "isMut": false, "isSigner": false }, - { - "name": "ammConfig", - "isMut": false, - "isSigner": false, - "docs": ["The factory state to read protocol fees"] - }, - { - "name": "poolState", - "isMut": true, - "isSigner": false, - "docs": [ - "The program account of the pool in which the swap will be performed" - ] - }, - { - "name": "inputTokenAccount", - "isMut": true, - "isSigner": false, - "docs": ["The user token account for input token"] - }, - { - "name": "outputTokenAccount", - "isMut": true, - "isSigner": false, - "docs": ["The user token account for output token"] - }, - { - "name": "inputVault", - "isMut": true, - "isSigner": false, - "docs": ["The vault token account for input token"] - }, - { - "name": "outputVault", - "isMut": true, - "isSigner": false, - "docs": ["The vault token account for output token"] - }, - { - "name": "inputTokenProgram", - "isMut": false, - "isSigner": false, - "docs": ["SPL program for input token transfers"] - }, - { - "name": "outputTokenProgram", - "isMut": false, - "isSigner": false, - "docs": ["SPL program for output token transfers"] - }, - { - "name": "inputTokenMint", - "isMut": false, - "isSigner": false, - "docs": ["The mint of input token"] - }, - { - "name": "outputTokenMint", - "isMut": false, - "isSigner": false, - "docs": ["The mint of output token"] - }, - { - "name": "observationState", - "isMut": true, - "isSigner": false, - "docs": ["The program account for the most recent oracle observation"] - } - ], - "args": [ - { "name": "maxAmountIn", "type": "u64" }, - { "name": "amountOut", "type": "u64" } - ] - } - ], - "accounts": [ - { - "name": "AmmConfig", - "docs": ["Holds the current owner of the factory"], - "type": { - "kind": "struct", - "fields": [ - { "name": "bump", "docs": ["Bump to identify PDA"], "type": "u8" }, - { - "name": "disableCreatePool", - "docs": ["Status to control if new pool can be create"], - "type": "bool" - }, - { "name": "index", "docs": ["Config index"], "type": "u16" }, - { - "name": "tradeFeeRate", - "docs": [ - "The trade fee, denominated in hundredths of a bip (10^-6)" - ], - "type": "u64" - }, - { - "name": "protocolFeeRate", - "docs": ["The protocol fee"], - "type": "u64" - }, - { - "name": "fundFeeRate", - "docs": [ - "The fund fee, denominated in hundredths of a bip (10^-6)" - ], - "type": "u64" - }, - { - "name": "createPoolFee", - "docs": ["Fee for create a new pool"], - "type": "u64" - }, - { - "name": "protocolOwner", - "docs": ["Address of the protocol fee owner"], - "type": "publicKey" - }, - { - "name": "fundOwner", - "docs": ["Address of the fund fee owner"], - "type": "publicKey" - }, - { - "name": "padding", - "docs": ["padding"], - "type": { "array": ["u64", 16] } - } - ] - } - }, - { - "name": "ObservationState", - "type": { - "kind": "struct", - "fields": [ - { - "name": "initialized", - "docs": ["Whether the ObservationState is initialized"], - "type": "bool" - }, - { - "name": "observationIndex", - "docs": [ - "the most-recently updated index of the observations array" - ], - "type": "u16" - }, - { "name": "poolId", "type": "publicKey" }, - { - "name": "observations", - "docs": ["observation array"], - "type": { "array": [{ "defined": "Observation" }, 100] } - }, - { - "name": "padding", - "docs": ["padding for feature update"], - "type": { "array": ["u64", 4] } - } - ] - } - }, - { - "name": "PoolState", - "type": { - "kind": "struct", - "fields": [ - { - "name": "ammConfig", - "docs": ["Which config the pool belongs"], - "type": "publicKey" - }, - { - "name": "poolCreator", - "docs": ["pool creator"], - "type": "publicKey" - }, - { "name": "token0Vault", "docs": ["Token A"], "type": "publicKey" }, - { "name": "token1Vault", "docs": ["Token B"], "type": "publicKey" }, - { - "name": "lpMint", - "docs": [ - "Pool tokens are issued when A or B tokens are deposited.", - "Pool tokens can be withdrawn back to the original A or B token." - ], - "type": "publicKey" - }, - { - "name": "token0Mint", - "docs": ["Mint information for token A"], - "type": "publicKey" - }, - { - "name": "token1Mint", - "docs": ["Mint information for token B"], - "type": "publicKey" - }, - { - "name": "token0Program", - "docs": ["token_0 program"], - "type": "publicKey" - }, - { - "name": "token1Program", - "docs": ["token_1 program"], - "type": "publicKey" - }, - { - "name": "observationKey", - "docs": ["observation account to store oracle data"], - "type": "publicKey" - }, - { "name": "authBump", "type": "u8" }, - { - "name": "status", - "docs": [ - "Bitwise representation of the state of the pool", - "bit0, 1: disable deposit(vaule is 1), 0: normal", - "bit1, 1: disable withdraw(vaule is 2), 0: normal", - "bit2, 1: disable swap(vaule is 4), 0: normal" - ], - "type": "u8" - }, - { "name": "lpMintDecimals", "type": "u8" }, - { - "name": "mint0Decimals", - "docs": ["mint0 and mint1 decimals"], - "type": "u8" - }, - { "name": "mint1Decimals", "type": "u8" }, - { "name": "lpSupply", "docs": ["lp mint supply"], "type": "u64" }, - { - "name": "protocolFeesToken0", - "docs": [ - "The amounts of token_0 and token_1 that are owed to the liquidity provider." - ], - "type": "u64" - }, - { "name": "protocolFeesToken1", "type": "u64" }, - { "name": "fundFeesToken0", "type": "u64" }, - { "name": "fundFeesToken1", "type": "u64" }, - { - "name": "openTime", - "docs": ["The timestamp allowed for swap in the pool."], - "type": "u64" - }, - { - "name": "padding", - "docs": ["padding for future updates"], - "type": { "array": ["u64", 32] } - } - ] - } - } - ], - "types": [ - { - "name": "Observation", - "docs": ["The element of observations in ObservationState"], - "type": { - "kind": "struct", - "fields": [ - { - "name": "blockTimestamp", - "docs": ["The block timestamp of the observation"], - "type": "u64" - }, - { - "name": "cumulativeToken0PriceX32", - "docs": [ - "the cumulative of token0 price during the duration time, Q32.32, the remaining 64 bit for overflow" - ], - "type": "u128" - }, - { - "name": "cumulativeToken1PriceX32", - "docs": [ - "the cumulative of token1 price during the duration time, Q32.32, the remaining 64 bit for overflow" - ], - "type": "u128" - } - ] - } - }, - { - "name": "TradeDirection", - "docs": [ - "The direction of a trade, since curves can be specialized to treat each", - "token differently (by adding offsets or weights)" - ], - "type": { - "kind": "enum", - "variants": [{ "name": "ZeroForOne" }, { "name": "OneForZero" }] - } - }, - { - "name": "RoundDirection", - "docs": [ - "The direction to round. Used for pool token to trading token conversions to", - "avoid losing value on any deposit or withdrawal." - ], - "type": { - "kind": "enum", - "variants": [{ "name": "Floor" }, { "name": "Ceiling" }] - } - }, - { - "name": "PoolStatusBitIndex", - "type": { - "kind": "enum", - "variants": [ - { "name": "Deposit" }, - { "name": "Withdraw" }, - { "name": "Swap" } - ] - } - }, - { - "name": "PoolStatusBitFlag", - "type": { - "kind": "enum", - "variants": [{ "name": "Enable" }, { "name": "Disable" }] - } - } - ], - "events": [ - { - "name": "LpChangeEvent", - "fields": [ - { "name": "poolId", "type": "publicKey", "index": true }, - { "name": "lpAmountBefore", "type": "u64", "index": false }, - { "name": "token0VaultBefore", "type": "u64", "index": false }, - { "name": "token1VaultBefore", "type": "u64", "index": false }, - { "name": "token0Amount", "type": "u64", "index": false }, - { "name": "token1Amount", "type": "u64", "index": false }, - { "name": "token0TransferFee", "type": "u64", "index": false }, - { "name": "token1TransferFee", "type": "u64", "index": false }, - { "name": "changeType", "type": "u8", "index": false } - ] - }, - { - "name": "SwapEvent", - "fields": [ - { "name": "poolId", "type": "publicKey", "index": true }, - { "name": "inputVaultBefore", "type": "u64", "index": false }, - { "name": "outputVaultBefore", "type": "u64", "index": false }, - { "name": "inputAmount", "type": "u64", "index": false }, - { "name": "outputAmount", "type": "u64", "index": false }, - { "name": "inputTransferFee", "type": "u64", "index": false }, - { "name": "outputTransferFee", "type": "u64", "index": false }, - { "name": "baseInput", "type": "bool", "index": false } - ] - } - ], - "errors": [ - { "code": 6000, "name": "NotApproved", "msg": "Not approved" }, - { - "code": 6001, - "name": "InvalidOwner", - "msg": "Input account owner is not the program address" - }, - { "code": 6002, "name": "EmptySupply", "msg": "Input token account empty" }, - { "code": 6003, "name": "InvalidInput", "msg": "InvalidInput" }, - { - "code": 6004, - "name": "IncorrectLpMint", - "msg": "Address of the provided lp token mint is incorrect" - }, - { - "code": 6005, - "name": "ExceededSlippage", - "msg": "Exceeds desired slippage limit" - }, - { - "code": 6006, - "name": "ZeroTradingTokens", - "msg": "Given pool token amount results in zero trading tokens" - }, - { - "code": 6007, - "name": "NotSupportMint", - "msg": "Not support token_2022 mint extension" - }, - { "code": 6008, "name": "InvalidVault", "msg": "invaild vault" }, - { - "code": 6009, - "name": "InitLpAmountTooLess", - "msg": "Init lp amount is too less(Because 100 amount lp will be locked)" - } - ] -} diff --git a/idl/pump.json b/idl/pump.json index 1b4d4b5..2af9f4c 100644 --- a/idl/pump.json +++ b/idl/pump.json @@ -7,58 +7,9 @@ "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" - ], + "docs": ["Allows Global::admin_set_creator_authority to override the bonding curve creator"], "discriminator": [69, 25, 171, 142, 57, 239, 13, 4], "accounts": [ { @@ -87,9 +38,7 @@ "seeds": [ { "kind": "const", - "value": [ - 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101 - ] + "value": [98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101] }, { "kind": "account", @@ -105,8 +54,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -164,8 +112,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -211,8 +158,8 @@ { "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 + 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 ] } ] @@ -242,9 +189,8 @@ "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 + 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 ] } } @@ -267,8 +213,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -331,9 +276,7 @@ "seeds": [ { "kind": "const", - "value": [ - 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101 - ] + "value": [98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101] }, { "kind": "account", @@ -363,9 +306,8 @@ "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 + 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 ] } } @@ -393,9 +335,7 @@ "seeds": [ { "kind": "const", - "value": [ - 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116 - ] + "value": [99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116] }, { "kind": "account", @@ -412,8 +352,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -425,13 +364,14 @@ }, { "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 + 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 ] } ] @@ -445,8 +385,8 @@ { "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 + 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97, 99, 99, 117, 109, 117, + 108, 97, 116, 111, 114 ] }, { @@ -467,9 +407,8 @@ { "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 + 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 ] } ], @@ -492,450 +431,21 @@ { "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.", + "Given a budget of spendable SOL, buy at least min_tokens_out", + "Account creation and fees will be deducted from the spendable SOL", "", - "# 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", + "f(sol) = tokens, where tokens >= min_tokens_out and sol > rent + fees", "", - "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))", + "max_slippage = min_tokens_out = 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)", + "Make sure the sol budget is enough to cover creation of the following accounts (unless already created):", + "- creator_vault: rent.minimum_balance(SystemAccount::LEN)", "- user_volume_accumulator: rent.minimum_balance(UserVolumeAccumulator::LEN)" ], "discriminator": [56, 252, 116, 8, 158, 223, 205, 95], @@ -965,9 +475,7 @@ "seeds": [ { "kind": "const", - "value": [ - 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101 - ] + "value": [98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101] }, { "kind": "account", @@ -997,9 +505,8 @@ "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 + 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 ] } } @@ -1027,9 +534,7 @@ "seeds": [ { "kind": "const", - "value": [ - 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116 - ] + "value": [99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116] }, { "kind": "account", @@ -1046,8 +551,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -1059,13 +563,14 @@ }, { "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 + 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 ] } ] @@ -1079,8 +584,8 @@ { "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 + 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97, 99, 99, 117, 109, 117, + 108, 97, 116, 111, 114 ] }, { @@ -1101,9 +606,8 @@ { "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 + 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 ] } ], @@ -1126,585 +630,9 @@ { "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], @@ -1733,9 +661,8 @@ "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 + 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 ] } } @@ -1747,8 +674,8 @@ { "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 + 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 ] } ] @@ -1775,9 +702,8 @@ "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 + 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 ] } } @@ -1790,8 +716,8 @@ { "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 + 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97, 99, 99, 117, 109, 117, + 108, 97, 116, 111, 114 ] }, { @@ -1823,8 +749,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -1859,8 +784,8 @@ { "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 + 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97, 99, 99, 117, 109, 117, + 108, 97, 116, 111, 114 ] }, { @@ -1877,8 +802,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -1892,9 +816,7 @@ }, { "name": "collect_creator_fee", - "docs": [ - "Collects creator_fee from creator_vault to the coin creator account" - ], + "docs": ["Collects creator_fee from creator_vault to the coin creator account"], "discriminator": [20, 22, 86, 123, 198, 28, 219, 132], "accounts": [ { @@ -1908,9 +830,7 @@ "seeds": [ { "kind": "const", - "value": [ - 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116 - ] + "value": [99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116] }, { "kind": "account", @@ -1930,8 +850,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -1959,10 +878,7 @@ "seeds": [ { "kind": "const", - "value": [ - 109, 105, 110, 116, 45, 97, 117, 116, 104, 111, 114, 105, 116, - 121 - ] + "value": [109, 105, 110, 116, 45, 97, 117, 116, 104, 111, 114, 105, 116, 121] } ] } @@ -1974,9 +890,7 @@ "seeds": [ { "kind": "const", - "value": [ - 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101 - ] + "value": [98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101] }, { "kind": "account", @@ -1997,9 +911,8 @@ { "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 + 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 ] }, { @@ -2010,9 +923,8 @@ "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 + 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 ] } } @@ -2044,9 +956,8 @@ { "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 + 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 ] }, { @@ -2088,8 +999,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -2134,10 +1044,7 @@ "seeds": [ { "kind": "const", - "value": [ - 109, 105, 110, 116, 45, 97, 117, 116, 104, 111, 114, 105, 116, - 121 - ] + "value": [109, 105, 110, 116, 45, 97, 117, 116, 104, 111, 114, 105, 116, 121] } ] } @@ -2149,9 +1056,7 @@ "seeds": [ { "kind": "const", - "value": [ - 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101 - ] + "value": [98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101] }, { "kind": "account", @@ -2181,9 +1086,8 @@ "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 + 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 ] } } @@ -2227,17 +1131,14 @@ "seeds": [ { "kind": "const", - "value": [ - 103, 108, 111, 98, 97, 108, 45, 112, 97, 114, 97, 109, 115 - ] + "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 + 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 ] } } @@ -2255,9 +1156,8 @@ "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 + 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 ] } } @@ -2269,9 +1169,7 @@ "seeds": [ { "kind": "const", - "value": [ - 109, 97, 121, 104, 101, 109, 45, 115, 116, 97, 116, 101 - ] + "value": [109, 97, 121, 104, 101, 109, 45, 115, 116, 97, 116, 101] }, { "kind": "account", @@ -2281,16 +1179,38 @@ "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 + 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 + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "sol_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": "event_authority", @@ -2299,8 +1219,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -2330,122 +1249,9 @@ { "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": "extend_account", "docs": ["Extends the size of program-owned accounts"], @@ -2470,8 +1276,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -2483,87 +1288,6 @@ ], "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], @@ -2584,8 +1308,8 @@ { "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 + 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97, 99, 99, 117, 109, 117, + 108, 97, 116, 111, 114 ] }, { @@ -2606,8 +1330,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -2650,9 +1373,7 @@ }, { "name": "migrate", - "docs": [ - "Migrates liquidity to pump_amm if the bonding curve is complete" - ], + "docs": ["Migrates liquidity to pump_amm if the bonding curve is complete"], "discriminator": [155, 234, 231, 146, 236, 158, 162, 30], "accounts": [ { @@ -2681,9 +1402,7 @@ "seeds": [ { "kind": "const", - "value": [ - 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101 - ] + "value": [98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101] }, { "kind": "account", @@ -2713,9 +1432,8 @@ "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 + 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 ] } } @@ -2775,10 +1493,7 @@ "seeds": [ { "kind": "const", - "value": [ - 112, 111, 111, 108, 45, 97, 117, 116, 104, 111, 114, 105, 116, - 121 - ] + "value": [112, 111, 111, 108, 45, 97, 117, 116, 104, 111, 114, 105, 116, 121] }, { "kind": "account", @@ -2841,9 +1556,7 @@ "seeds": [ { "kind": "const", - "value": [ - 103, 108, 111, 98, 97, 108, 95, 99, 111, 110, 102, 105, 103 - ] + "value": [103, 108, 111, 98, 97, 108, 95, 99, 111, 110, 102, 105, 103] } ], "program": { @@ -2863,9 +1576,7 @@ "seeds": [ { "kind": "const", - "value": [ - 112, 111, 111, 108, 95, 108, 112, 95, 109, 105, 110, 116 - ] + "value": [112, 111, 111, 108, 95, 108, 112, 95, 109, 105, 110, 116] }, { "kind": "account", @@ -2965,8 +1676,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ], @@ -2983,85 +1693,7 @@ { "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 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -3073,423 +1705,9 @@ ], "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." - ], + "docs": ["Sells tokens into a bonding curve."], "discriminator": [51, 230, 133, 164, 1, 127, 131, 173], "accounts": [ { @@ -3517,9 +1735,7 @@ "seeds": [ { "kind": "const", - "value": [ - 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101 - ] + "value": [98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101] }, { "kind": "account", @@ -3549,9 +1765,8 @@ "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 + 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 ] } } @@ -3576,9 +1791,7 @@ "seeds": [ { "kind": "const", - "value": [ - 99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116 - ] + "value": [99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116] }, { "kind": "account", @@ -3598,8 +1811,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -3620,9 +1832,8 @@ { "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 + 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 ] } ], @@ -3648,398 +1859,6 @@ } ] }, - { - "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": [ @@ -4077,9 +1896,8 @@ { "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 + 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 ] }, { @@ -4090,9 +1908,8 @@ "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 + 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 ] } } @@ -4104,9 +1921,7 @@ "seeds": [ { "kind": "const", - "value": [ - 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101 - ] + "value": [98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101] }, { "kind": "account", @@ -4122,8 +1937,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -4140,120 +1954,9 @@ } ] }, - { - "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" - ], + "docs": ["Syncs the bonding curve creator with the Metaplex metadata creator if it exists"], "discriminator": [138, 96, 174, 217, 48, 85, 197, 246], "accounts": [ { @@ -4270,9 +1973,8 @@ { "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 + 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 ] }, { @@ -4283,9 +1985,8 @@ "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 + 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 ] } } @@ -4297,9 +1998,7 @@ "seeds": [ { "kind": "const", - "value": [ - 98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101 - ] + "value": [98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101] }, { "kind": "account", @@ -4315,8 +2014,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -4358,8 +2056,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -4417,8 +2114,8 @@ ] }, { - "name": "set_reserved_fee_recipients", - "discriminator": [111, 172, 162, 232, 114, 89, 213, 142], + "name": "set_reserved_fee_recipient", + "discriminator": [207, 189, 178, 71, 167, 122, 68, 180], "accounts": [ { "name": "global", @@ -4434,6 +2131,7 @@ }, { "name": "authority", + "writable": true, "signer": true, "relations": ["global"] }, @@ -4444,8 +2142,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -4456,59 +2153,16 @@ } ], "args": [ + { + "name": "reserved_fee_recipient", + "type": "pubkey" + }, { "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], @@ -4523,8 +2177,8 @@ { "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 + 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 ] } ] @@ -4538,8 +2192,8 @@ { "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 + 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97, 99, 99, 117, 109, 117, + 108, 97, 116, 111, 114 ] }, { @@ -4556,8 +2210,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -4569,53 +2222,6 @@ ], "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], @@ -4645,8 +2251,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -4692,8 +2297,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -4710,55 +2314,6 @@ } ] }, - { - "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], @@ -4790,8 +2345,7 @@ { "kind": "const", "value": [ - 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, - 114, 105, 116, 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -4821,10 +2375,6 @@ "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] @@ -4843,10 +2393,6 @@ "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] @@ -4871,10 +2417,6 @@ "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] @@ -4883,18 +2425,6 @@ "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] @@ -4918,10 +2448,6 @@ { "name": "UpdateGlobalAuthorityEvent", "discriminator": [182, 195, 137, 42, 35, 206, 207, 247] - }, - { - "name": "UpdateMayhemVirtualParamsEvent", - "discriminator": [117, 123, 228, 182, 161, 168, 220, 214] } ], "errors": [ @@ -5154,108 +2680,6 @@ { "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)" } ], "types": [ @@ -5349,7 +2773,7 @@ "type": "u64" }, { - "name": "virtual_quote_reserves", + "name": "virtual_sol_reserves", "type": "u64" }, { @@ -5357,7 +2781,7 @@ "type": "u64" }, { - "name": "real_quote_reserves", + "name": "real_sol_reserves", "type": "u64" }, { @@ -5375,42 +2799,6 @@ { "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" } ] } @@ -5519,10 +2907,6 @@ { "name": "timestamp", "type": "i64" - }, - { - "name": "quote_mint", - "type": "pubkey" } ] } @@ -5567,20 +2951,6 @@ ] } }, - { - "name": "ConfigStatus", - "type": { - "kind": "enum", - "variants": [ - { - "name": "Paused" - }, - { - "name": "Active" - } - ] - } - }, { "name": "CreateEvent", "type": { @@ -5641,60 +3011,6 @@ { "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" } ] } @@ -5757,16 +3073,6 @@ } } } - }, - { - "name": "stable_fee_tiers", - "type": { - "vec": { - "defined": { - "name": "FeeTier" - } - } - } } ] } @@ -5895,36 +3201,6 @@ { "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] - } } ] } @@ -5985,87 +3261,6 @@ ] } }, - { - "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": { @@ -6184,68 +3379,6 @@ ] } }, - { - "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": { @@ -6363,52 +3496,6 @@ { "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" } ] } @@ -6437,46 +3524,6 @@ ] } }, - { - "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": { @@ -6509,14 +3556,6 @@ { "name": "has_total_claimed_tokens", "type": "bool" - }, - { - "name": "cashback_earned", - "type": "u64" - }, - { - "name": "total_cashback_claimed", - "type": "u64" } ] } diff --git a/idl/pump_amm.json b/idl/pump_amm.json index 47d7b95..fbd5f14 100644 --- a/idl/pump_amm.json +++ b/idl/pump_amm.json @@ -9,26 +9,13 @@ "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 - ], + "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" - ] + "relations": ["global_config"] }, { "name": "global_config" @@ -44,23 +31,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -79,24 +50,13 @@ }, { "name": "admin_update_token_incentives", - "discriminator": [ - 209, - 11, - 115, - 87, - 213, - 23, - 124, - 204 - ], + "discriminator": [209, 11, 115, 87, 213, 23, 124, 204], "accounts": [ { "name": "admin", "writable": true, "signer": true, - "relations": [ - "global_config" - ] + "relations": ["global_config"] }, { "name": "global_config", @@ -104,21 +64,7 @@ "seeds": [ { "kind": "const", - "value": [ - 103, - 108, - 111, - 98, - 97, - 108, - 95, - 99, - 111, - 110, - 102, - 105, - 103 - ] + "value": [103, 108, 111, 98, 97, 108, 95, 99, 111, 110, 102, 105, 103] } ] } @@ -131,31 +77,8 @@ { "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 + 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 ] } ] @@ -185,38 +108,8 @@ "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 + 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 ] } } @@ -239,23 +132,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -290,20 +167,7 @@ }, { "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 - ], + "discriminator": [102, 6, 61, 18, 1, 218, 235, 234], "accounts": [ { "name": "pool", @@ -319,15 +183,11 @@ }, { "name": "base_mint", - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "quote_mint", - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "user_base_token_account", @@ -340,16 +200,12 @@ { "name": "pool_base_token_account", "writable": true, - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "pool_quote_token_account", "writable": true, - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "protocol_fee_recipient" @@ -375,38 +231,8 @@ "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 + 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 ] } } @@ -432,23 +258,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -479,38 +289,8 @@ "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 + 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 ] } } @@ -521,21 +301,7 @@ "seeds": [ { "kind": "const", - "value": [ - 99, - 114, - 101, - 97, - 116, - 111, - 114, - 95, - 118, - 97, - 117, - 108, - 116 - ] + "value": [99, 114, 101, 97, 116, 111, 114, 95, 118, 97, 117, 108, 116] }, { "kind": "account", @@ -547,36 +313,14 @@ }, { "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 + 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 ] } ] @@ -590,29 +334,8 @@ { "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 + 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97, 99, 99, 117, 109, 117, + 108, 97, 116, 111, 114 ] }, { @@ -628,54 +351,13 @@ "seeds": [ { "kind": "const", - "value": [ - 102, - 101, - 101, - 95, - 99, - 111, - 110, - 102, - 105, - 103 - ] + "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 + 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 ] } ], @@ -698,14 +380,6 @@ { "name": "max_quote_amount_in", "type": "u64" - }, - { - "name": "track_volume", - "type": { - "defined": { - "name": "OptionBool" - } - } } ] }, @@ -720,21 +394,9 @@ "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 + "- user_volume_accumulator: rent.minimum_balance(UserVolumeAccumulator::LEN)" ], + "discriminator": [198, 46, 21, 82, 180, 217, 232, 112], "accounts": [ { "name": "pool", @@ -750,15 +412,11 @@ }, { "name": "base_mint", - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "quote_mint", - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "user_base_token_account", @@ -771,16 +429,12 @@ { "name": "pool_base_token_account", "writable": true, - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "pool_quote_token_account", "writable": true, - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "protocol_fee_recipient" @@ -806,38 +460,8 @@ "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 + 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 ] } } @@ -863,23 +487,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -910,38 +518,8 @@ "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 + 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 ] } } @@ -952,21 +530,7 @@ "seeds": [ { "kind": "const", - "value": [ - 99, - 114, - 101, - 97, - 116, - 111, - 114, - 95, - 118, - 97, - 117, - 108, - 116 - ] + "value": [99, 114, 101, 97, 116, 111, 114, 95, 118, 97, 117, 108, 116] }, { "kind": "account", @@ -978,36 +542,14 @@ }, { "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 + 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 ] } ] @@ -1021,29 +563,8 @@ { "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 + 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97, 99, 99, 117, 109, 117, + 108, 97, 116, 111, 114 ] }, { @@ -1059,54 +580,13 @@ "seeds": [ { "kind": "const", - "value": [ - 102, - 101, - 101, - 95, - 99, - 111, - 110, - 102, - 105, - 103 - ] + "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 + 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 ] } ], @@ -1129,246 +609,12 @@ { "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 - ], + "discriminator": [16, 4, 71, 28, 204, 1, 40, 27], "accounts": [ { "name": "user" @@ -1394,38 +640,8 @@ "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 + 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 ] } } @@ -1437,31 +653,8 @@ { "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 + 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 ] } ] @@ -1488,38 +681,8 @@ "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 + 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 ] } } @@ -1532,29 +695,8 @@ { "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 + 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97, 99, 99, 117, 109, 117, + 108, 97, 116, 111, 114 ] }, { @@ -1566,9 +708,7 @@ }, { "name": "mint", - "relations": [ - "global_volume_accumulator" - ] + "relations": ["global_volume_accumulator"] }, { "name": "token_program" @@ -1588,23 +728,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -1624,16 +748,7 @@ }, { "name": "close_user_volume_accumulator", - "discriminator": [ - 249, - 69, - 164, - 218, - 150, - 103, - 84, - 138 - ], + "discriminator": [249, 69, 164, 218, 150, 103, 84, 138], "accounts": [ { "name": "user", @@ -1648,29 +763,8 @@ { "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 + 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97, 99, 99, 117, 109, 117, + 108, 97, 116, 111, 114 ] }, { @@ -1687,23 +781,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -1717,16 +795,7 @@ }, { "name": "collect_coin_creator_fee", - "discriminator": [ - 160, - 57, - 89, - 42, - 181, - 139, - 43, - 66 - ], + "discriminator": [160, 57, 89, 42, 181, 139, 43, 66], "accounts": [ { "name": "quote_mint" @@ -1743,21 +812,7 @@ "seeds": [ { "kind": "const", - "value": [ - 99, - 114, - 101, - 97, - 116, - 111, - 114, - 95, - 118, - 97, - 117, - 108, - 116 - ] + "value": [99, 114, 101, 97, 116, 111, 114, 95, 118, 97, 117, 108, 116] }, { "kind": "account", @@ -1787,38 +842,8 @@ "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 + 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 ] } } @@ -1834,23 +859,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -1864,16 +873,7 @@ }, { "name": "create_config", - "discriminator": [ - 201, - 207, - 243, - 114, - 75, - 111, - 47, - 189 - ], + "discriminator": [201, 207, 243, 114, 75, 111, 47, 189], "accounts": [ { "name": "admin", @@ -1888,21 +888,7 @@ "seeds": [ { "kind": "const", - "value": [ - 103, - 108, - 111, - 98, - 97, - 108, - 95, - 99, - 111, - 110, - 102, - 105, - 103 - ] + "value": [103, 108, 111, 98, 97, 108, 95, 99, 111, 110, 102, 105, 103] } ] } @@ -1918,23 +904,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -1956,10 +926,7 @@ { "name": "protocol_fee_recipients", "type": { - "array": [ - "pubkey", - 8 - ] + "array": ["pubkey", 8] } }, { @@ -1974,16 +941,7 @@ }, { "name": "create_pool", - "discriminator": [ - 233, - 146, - 209, - 142, - 207, - 104, - 64, - 188 - ], + "discriminator": [233, 146, 209, 142, 207, 104, 64, 188], "accounts": [ { "name": "pool", @@ -1992,12 +950,7 @@ "seeds": [ { "kind": "const", - "value": [ - 112, - 111, - 111, - 108 - ] + "value": [112, 111, 111, 108] }, { "kind": "arg", @@ -2039,20 +992,7 @@ "seeds": [ { "kind": "const", - "value": [ - 112, - 111, - 111, - 108, - 95, - 108, - 112, - 95, - 109, - 105, - 110, - 116 - ] + "value": [112, 111, 111, 108, 95, 108, 112, 95, 109, 105, 110, 116] }, { "kind": "account", @@ -2090,38 +1030,8 @@ "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 + 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 ] } } @@ -2147,38 +1057,8 @@ "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 + 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 ] } } @@ -2204,38 +1084,8 @@ "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 + 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 ] } } @@ -2265,23 +1115,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -2311,29 +1145,12 @@ { "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 - ], + "discriminator": [242, 35, 198, 137, 82, 225, 242, 182], "accounts": [ { "name": "pool", @@ -2348,22 +1165,16 @@ }, { "name": "base_mint", - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "quote_mint", - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "lp_mint", "writable": true, - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "user_base_token_account", @@ -2380,16 +1191,12 @@ { "name": "pool_base_token_account", "writable": true, - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "pool_quote_token_account", "writable": true, - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "token_program", @@ -2406,23 +1213,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -2449,23 +1240,12 @@ }, { "name": "disable", - "discriminator": [ - 185, - 173, - 187, - 90, - 216, - 15, - 238, - 233 - ], + "discriminator": [185, 173, 187, 90, 216, 15, 238, 233], "accounts": [ { "name": "admin", "signer": true, - "relations": [ - "global_config" - ] + "relations": ["global_config"] }, { "name": "global_config", @@ -2478,23 +1258,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -2529,16 +1293,7 @@ }, { "name": "extend_account", - "discriminator": [ - 234, - 102, - 194, - 203, - 150, - 72, - 62, - 229 - ], + "discriminator": [234, 102, 194, 203, 150, 72, 62, 229], "accounts": [ { "name": "account", @@ -2559,23 +1314,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -2589,16 +1328,7 @@ }, { "name": "init_user_volume_accumulator", - "discriminator": [ - 94, - 6, - 202, - 115, - 255, - 96, - 232, - 183 - ], + "discriminator": [94, 6, 202, 115, 255, 96, 232, 183], "accounts": [ { "name": "payer", @@ -2616,29 +1346,8 @@ { "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 + 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97, 99, 99, 117, 109, 117, + 108, 97, 116, 111, 114 ] }, { @@ -2659,179 +1368,7 @@ { "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 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -2845,16 +1382,7 @@ }, { "name": "sell", - "discriminator": [ - 51, - 230, - 133, - 164, - 1, - 127, - 131, - 173 - ], + "discriminator": [51, 230, 133, 164, 1, 127, 131, 173], "accounts": [ { "name": "pool", @@ -2870,15 +1398,11 @@ }, { "name": "base_mint", - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "quote_mint", - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "user_base_token_account", @@ -2891,16 +1415,12 @@ { "name": "pool_base_token_account", "writable": true, - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "pool_quote_token_account", "writable": true, - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "protocol_fee_recipient" @@ -2926,38 +1446,8 @@ "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 + 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 ] } } @@ -2983,23 +1473,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -3030,38 +1504,8 @@ "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 + 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 ] } } @@ -3072,21 +1516,7 @@ "seeds": [ { "kind": "const", - "value": [ - 99, - 114, - 101, - 97, - 116, - 111, - 114, - 95, - 118, - 97, - 117, - 108, - 116 - ] + "value": [99, 114, 101, 97, 116, 111, 114, 95, 118, 97, 117, 108, 116] }, { "kind": "account", @@ -3102,54 +1532,13 @@ "seeds": [ { "kind": "const", - "value": [ - 102, - 101, - 101, - 95, - 99, - 111, - 110, - 102, - 105, - 103 - ] + "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 + 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 ] } ], @@ -3177,19 +1566,8 @@ }, { "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 - ], + "docs": ["Sets Pool::coin_creator from Metaplex metadata creator or BondingCurve::creator"], + "discriminator": [210, 149, 128, 45, 188, 58, 78, 175], "accounts": [ { "name": "pool", @@ -3201,52 +1579,13 @@ "seeds": [ { "kind": "const", - "value": [ - 109, - 101, - 116, - 97, - 100, - 97, - 116, - 97 - ] + "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 + 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 ] }, { @@ -3258,38 +1597,8 @@ "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 + 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 ] } } @@ -3300,21 +1609,7 @@ "seeds": [ { "kind": "const", - "value": [ - 98, - 111, - 110, - 100, - 105, - 110, - 103, - 45, - 99, - 117, - 114, - 118, - 101 - ] + "value": [98, 111, 110, 100, 105, 110, 103, 45, 99, 117, 114, 118, 101] }, { "kind": "account", @@ -3325,38 +1620,8 @@ "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 + 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 ] } } @@ -3368,23 +1633,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -3397,50 +1646,17 @@ "args": [] }, { - "name": "set_reserved_fee_recipients", - "discriminator": [ - 111, - 172, - 162, - 232, - 114, - 89, - 213, - 142 - ], + "name": "set_reserved_fee_recipient", + "discriminator": [207, 189, 178, 71, 167, 122, 68, 180], "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" - ] + "relations": ["global_config"] + }, + { + "name": "global_config", + "writable": true }, { "name": "event_authority", @@ -3449,23 +1665,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -3476,6 +1676,10 @@ } ], "args": [ + { + "name": "reserved_fee_recipient", + "type": "pubkey" + }, { "name": "whitelist_pda", "type": "pubkey" @@ -3484,16 +1688,7 @@ }, { "name": "sync_user_volume_accumulator", - "discriminator": [ - 86, - 31, - 192, - 87, - 163, - 87, - 79, - 238 - ], + "discriminator": [86, 31, 192, 87, 163, 87, 79, 238], "accounts": [ { "name": "user" @@ -3505,31 +1700,8 @@ { "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 + 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 ] } ] @@ -3543,29 +1715,8 @@ { "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 + 117, 115, 101, 114, 95, 118, 111, 108, 117, 109, 101, 95, 97, 99, 99, 117, 109, 117, + 108, 97, 116, 111, 114 ] }, { @@ -3582,23 +1733,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -3610,89 +1745,14 @@ ], "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 - ], + "discriminator": [1, 9, 111, 208, 100, 31, 255, 163], "accounts": [ { "name": "admin", "signer": true, - "relations": [ - "global_config" - ] + "relations": ["global_config"] }, { "name": "global_config", @@ -3705,23 +1765,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -3738,252 +1782,14 @@ } ] }, - { - "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": "update_admin", - "discriminator": [ - 161, - 176, - 40, - 213, - 60, - 184, - 179, - 228 - ], + "discriminator": [161, 176, 40, 213, 60, 184, 179, 228], "accounts": [ { "name": "admin", "signer": true, - "relations": [ - "global_config" - ] + "relations": ["global_config"] }, { "name": "global_config", @@ -3999,23 +1805,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -4029,23 +1819,12 @@ }, { "name": "update_fee_config", - "discriminator": [ - 104, - 184, - 103, - 242, - 88, - 151, - 107, - 20 - ], + "discriminator": [104, 184, 103, 242, 88, 151, 107, 20], "accounts": [ { "name": "admin", "signer": true, - "relations": [ - "global_config" - ] + "relations": ["global_config"] }, { "name": "global_config", @@ -4058,23 +1837,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -4096,10 +1859,7 @@ { "name": "protocol_fee_recipients", "type": { - "array": [ - "pubkey", - 8 - ] + "array": ["pubkey", 8] } }, { @@ -4114,16 +1874,7 @@ }, { "name": "withdraw", - "discriminator": [ - 183, - 18, - 70, - 156, - 148, - 109, - 161, - 34 - ], + "discriminator": [183, 18, 70, 156, 148, 109, 161, 34], "accounts": [ { "name": "pool", @@ -4138,22 +1889,16 @@ }, { "name": "base_mint", - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "quote_mint", - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "lp_mint", "writable": true, - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "user_base_token_account", @@ -4170,16 +1915,12 @@ { "name": "pool_base_token_account", "writable": true, - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "pool_quote_token_account", "writable": true, - "relations": [ - "pool" - ] + "relations": ["pool"] }, { "name": "token_program", @@ -4196,23 +1937,7 @@ { "kind": "const", "value": [ - 95, - 95, - 101, - 118, - 101, - 110, - 116, - 95, - 97, - 117, - 116, - 104, - 111, - 114, - 105, - 116, - 121 + 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] @@ -4241,382 +1966,105 @@ "accounts": [ { "name": "BondingCurve", - "discriminator": [ - 23, - 183, - 248, - 55, - 96, - 216, - 172, - 96 - ] + "discriminator": [23, 183, 248, 55, 96, 216, 172, 96] }, { "name": "FeeConfig", - "discriminator": [ - 143, - 52, - 146, - 187, - 219, - 123, - 76, - 155 - ] + "discriminator": [143, 52, 146, 187, 219, 123, 76, 155] }, { "name": "GlobalConfig", - "discriminator": [ - 149, - 8, - 156, - 202, - 160, - 252, - 176, - 217 - ] + "discriminator": [149, 8, 156, 202, 160, 252, 176, 217] }, { "name": "GlobalVolumeAccumulator", - "discriminator": [ - 202, - 42, - 246, - 43, - 142, - 190, - 30, - 255 - ] + "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 - ] + "discriminator": [241, 154, 109, 4, 17, 177, 109, 188] }, { "name": "UserVolumeAccumulator", - "discriminator": [ - 86, - 255, - 112, - 14, - 102, - 53, - 154, - 250 - ] + "discriminator": [86, 255, 112, 14, 102, 53, 154, 250] } ], "events": [ { "name": "AdminSetCoinCreatorEvent", - "discriminator": [ - 45, - 220, - 93, - 24, - 25, - 97, - 172, - 104 - ] + "discriminator": [45, 220, 93, 24, 25, 97, 172, 104] }, { "name": "AdminUpdateTokenIncentivesEvent", - "discriminator": [ - 147, - 250, - 108, - 120, - 247, - 29, - 67, - 222 - ] + "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 - ] + "discriminator": [103, 244, 82, 31, 44, 245, 119, 119] }, { "name": "ClaimTokenIncentivesEvent", - "discriminator": [ - 79, - 172, - 246, - 49, - 205, - 91, - 206, - 232 - ] + "discriminator": [79, 172, 246, 49, 205, 91, 206, 232] }, { "name": "CloseUserVolumeAccumulatorEvent", - "discriminator": [ - 146, - 159, - 189, - 172, - 146, - 88, - 56, - 244 - ] + "discriminator": [146, 159, 189, 172, 146, 88, 56, 244] }, { "name": "CollectCoinCreatorFeeEvent", - "discriminator": [ - 232, - 245, - 194, - 238, - 234, - 218, - 58, - 89 - ] + "discriminator": [232, 245, 194, 238, 234, 218, 58, 89] }, { "name": "CreateConfigEvent", - "discriminator": [ - 107, - 52, - 89, - 129, - 55, - 226, - 81, - 22 - ] + "discriminator": [107, 52, 89, 129, 55, 226, 81, 22] }, { "name": "CreatePoolEvent", - "discriminator": [ - 177, - 49, - 12, - 210, - 160, - 118, - 167, - 116 - ] + "discriminator": [177, 49, 12, 210, 160, 118, 167, 116] }, { "name": "DepositEvent", - "discriminator": [ - 120, - 248, - 61, - 83, - 31, - 142, - 107, - 144 - ] + "discriminator": [120, 248, 61, 83, 31, 142, 107, 144] }, { "name": "DisableEvent", - "discriminator": [ - 107, - 253, - 193, - 76, - 228, - 202, - 27, - 104 - ] + "discriminator": [107, 253, 193, 76, 228, 202, 27, 104] }, { "name": "ExtendAccountEvent", - "discriminator": [ - 97, - 97, - 215, - 144, - 93, - 146, - 22, - 124 - ] + "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 - ] + "discriminator": [134, 36, 13, 72, 232, 101, 130, 216] }, { "name": "SellEvent", - "discriminator": [ - 62, - 47, - 55, - 10, - 165, - 3, - 220, - 42 - ] + "discriminator": [62, 47, 55, 10, 165, 3, 220, 42] }, { "name": "SetBondingCurveCoinCreatorEvent", - "discriminator": [ - 242, - 231, - 235, - 102, - 65, - 99, - 189, - 211 - ] + "discriminator": [242, 231, 235, 102, 65, 99, 189, 211] }, { "name": "SetMetaplexCoinCreatorEvent", - "discriminator": [ - 150, - 107, - 199, - 123, - 124, - 207, - 102, - 228 - ] + "discriminator": [150, 107, 199, 123, 124, 207, 102, 228] }, { "name": "SyncUserVolumeAccumulatorEvent", - "discriminator": [ - 197, - 122, - 167, - 124, - 116, - 81, - 91, - 255 - ] + "discriminator": [197, 122, 167, 124, 116, 81, 91, 255] }, { "name": "UpdateAdminEvent", - "discriminator": [ - 225, - 152, - 171, - 87, - 246, - 63, - 66, - 234 - ] + "discriminator": [225, 152, 171, 87, 246, 63, 66, 234] }, { "name": "UpdateFeeConfigEvent", - "discriminator": [ - 90, - 23, - 65, - 35, - 62, - 244, - 188, - 208 - ] + "discriminator": [90, 23, 65, 35, 62, 244, 188, 208] }, { "name": "WithdrawEvent", - "discriminator": [ - 22, - 9, - 133, - 26, - 160, - 44, - 71, - 192 - ] + "discriminator": [22, 9, 133, 26, 160, 44, 71, 192] } ], "errors": [ @@ -4797,45 +2245,6 @@ { "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": "CashbackEarnedDoesNotMatchTokenInVault" } ], "types": [ @@ -4939,23 +2348,13 @@ { "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\"" - ], + "docs": ["ix_name: \"buy\" | \"buy_exact_quote_in\""], "type": { "kind": "struct", "fields": [ @@ -5078,42 +2477,6 @@ { "name": "ix_name", "type": "string" - }, - { - "name": "cashback_fee_basis_points", - "type": "u64" - }, - { - "name": "cashback", - "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" } ] } @@ -5210,20 +2573,6 @@ ] } }, - { - "name": "ConfigStatus", - "type": { - "kind": "enum", - "variants": [ - { - "name": "Paused" - }, - { - "name": "Active" - } - ] - } - }, { "name": "CreateConfigEvent", "type": { @@ -5248,10 +2597,7 @@ { "name": "protocol_fee_recipients", "type": { - "array": [ - "pubkey", - 8 - ] + "array": ["pubkey", 8] } }, { @@ -5574,9 +2920,7 @@ "fields": [ { "name": "admin", - "docs": [ - "The admin pubkey" - ], + "docs": ["The admin pubkey"], "type": "pubkey" }, { @@ -5601,14 +2945,9 @@ }, { "name": "protocol_fee_recipients", - "docs": [ - "Addresses of the protocol fee recipients" - ], + "docs": ["Addresses of the protocol fee recipients"], "type": { - "array": [ - "pubkey", - 8 - ] + "array": ["pubkey", 8] } }, { @@ -5617,9 +2956,7 @@ }, { "name": "admin_set_coin_creator_authority", - "docs": [ - "The admin authority for setting coin creators" - ], + "docs": ["The admin authority for setting coin creators"], "type": "pubkey" }, { @@ -5633,19 +2970,6 @@ { "name": "mayhem_mode_enabled", "type": "bool" - }, - { - "name": "reserved_fee_recipients", - "type": { - "array": [ - "pubkey", - 7 - ] - } - }, - { - "name": "is_cashback_enabled", - "type": "bool" } ] } @@ -5674,19 +2998,13 @@ { "name": "total_token_supply", "type": { - "array": [ - "u64", - 30 - ] + "array": ["u64", 30] } }, { "name": "sol_volumes", "type": { - "array": [ - "u64", - 30 - ] + "array": ["u64", 30] } } ] @@ -5712,47 +3030,6 @@ ] } }, - { - "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": { @@ -5792,9 +3069,7 @@ }, { "name": "lp_supply", - "docs": [ - "True circulating supply without burns and lock-ups" - ], + "docs": ["True circulating supply without burns and lock-ups"], "type": "u64" }, { @@ -5804,35 +3079,6 @@ { "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 - ] - } } ] } @@ -5933,14 +3179,6 @@ { "name": "coin_creator_fee", "type": "u64" - }, - { - "name": "cashback_fee_basis_points", - "type": "u64" - }, - { - "name": "cashback", - "type": "u64" } ] } @@ -6001,68 +3239,6 @@ ] } }, - { - "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": { @@ -6131,10 +3307,7 @@ { "name": "protocol_fee_recipients", "type": { - "array": [ - "pubkey", - 8 - ] + "array": ["pubkey", 8] } }, { @@ -6180,14 +3353,6 @@ { "name": "has_total_claimed_tokens", "type": "bool" - }, - { - "name": "cashback_earned", - "type": "u64" - }, - { - "name": "total_cashback_claimed", - "type": "u64" } ] } @@ -6265,4 +3430,4 @@ } } ] -} \ No newline at end of file +}