{
  "address": "89f2dq3ztcyRhWDvuajaF69qsRcpFbMo9CW2NitRyHhn",
  "metadata": {
    "name": "fomo",
    "version": "1.0.2",
    "spec": "0.1.0",
    "description": "Created with Anchor"
  },
  "instructions": [
    {
      "name": "burn_unsold_tokens",
      "docs": [
        "§15 step 4 / §14: burn every token not deployed into a position."
      ],
      "discriminator": [
        120,
        35,
        119,
        172,
        187,
        79,
        54,
        200
      ],
      "accounts": [
        {
          "name": "migrator",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v3",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  51
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve_v2",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  118,
                  50
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve_authority",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint",
          "writable": true
        },
        {
          "name": "base_vault",
          "writable": true
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        }
      ],
      "args": []
    },
    {
      "name": "buy",
      "discriminator": [
        102,
        6,
        61,
        18,
        1,
        218,
        235,
        234
      ],
      "accounts": [
        {
          "name": "buyer",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v2",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  50
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint"
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "base_vault",
          "writable": true
        },
        {
          "name": "quote_vault",
          "writable": true
        },
        {
          "name": "buyer_token_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "buyer"
              },
              {
                "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": "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": "creator_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  99,
                  114,
                  101,
                  97,
                  116,
                  111,
                  114,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "bonding_curve.owner",
                "account": "BondingCurve"
              }
            ]
          }
        },
        {
          "name": "creator_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "creator_vault"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "fee_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  102,
                  101,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              }
            ]
          }
        },
        {
          "name": "fee_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "fee_authority"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        },
        {
          "name": "rent",
          "address": "SysvarRent111111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "BuyArgs"
            }
          }
        }
      ]
    },
    {
      "name": "claim_clmm_fees",
      "docs": [
        "§17: collect earned fees from a locked position. Principal is never touched."
      ],
      "discriminator": [
        224,
        247,
        150,
        26,
        146,
        28,
        145,
        56
      ],
      "accounts": [
        {
          "name": "payer",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v3",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  51
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve_v2",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  118,
                  50
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "position_record",
          "writable": true
        },
        {
          "name": "position_lock",
          "docs": [
            "in this program."
          ],
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  112,
                  111,
                  115,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  108,
                  111,
                  99,
                  107
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "fee_custody",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  99,
                  108,
                  109,
                  109,
                  95,
                  102,
                  101,
                  101,
                  95,
                  99,
                  117,
                  115,
                  116,
                  111,
                  100,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint"
        },
        {
          "name": "quote_mint",
          "address": "So11111111111111111111111111111111111111112"
        },
        {
          "name": "nft_account",
          "writable": true
        },
        {
          "name": "personal_position",
          "writable": true
        },
        {
          "name": "pool_state",
          "writable": true
        },
        {
          "name": "protocol_position"
        },
        {
          "name": "token_vault_0",
          "writable": true
        },
        {
          "name": "token_vault_1",
          "writable": true
        },
        {
          "name": "tick_array_lower",
          "writable": true
        },
        {
          "name": "tick_array_upper",
          "writable": true
        },
        {
          "name": "fee_base_account",
          "writable": true
        },
        {
          "name": "fee_quote_account",
          "writable": true
        },
        {
          "name": "vault_0_mint"
        },
        {
          "name": "vault_1_mint"
        },
        {
          "name": "clmm_program",
          "address": "CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK"
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "token_program_2022",
          "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
        },
        {
          "name": "memo_program",
          "address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "ClaimClmmFeesArgs"
            }
          }
        }
      ]
    },
    {
      "name": "claim_creator_fee",
      "discriminator": [
        26,
        97,
        138,
        203,
        132,
        171,
        141,
        252
      ],
      "accounts": [
        {
          "name": "creator",
          "writable": true,
          "signer": true
        },
        {
          "name": "creator_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "creator"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "creator_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  99,
                  114,
                  101,
                  97,
                  116,
                  111,
                  114,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "creator"
              }
            ]
          }
        },
        {
          "name": "creator_vault_quote_account",
          "writable": true
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "name": "rent",
          "address": "SysvarRent111111111111111111111111111111111"
        }
      ],
      "args": []
    },
    {
      "name": "claim_prebuy",
      "discriminator": [
        145,
        27,
        70,
        242,
        180,
        146,
        119,
        44
      ],
      "accounts": [
        {
          "name": "user",
          "writable": true,
          "signer": true
        },
        {
          "name": "base_mint"
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "global_config_v2",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  50
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_vault",
          "writable": true
        },
        {
          "name": "quote_vault",
          "writable": true
        },
        {
          "name": "prebuy_position",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  112,
                  114,
                  101,
                  98,
                  117,
                  121,
                  95,
                  112,
                  111,
                  115,
                  105,
                  116,
                  105,
                  111,
                  110
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              },
              {
                "kind": "account",
                "path": "user"
              }
            ]
          }
        },
        {
          "name": "user_base_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "user"
              },
              {
                "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": "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": "creator_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  99,
                  114,
                  101,
                  97,
                  116,
                  111,
                  114,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "bonding_curve.owner",
                "account": "BondingCurve"
              }
            ]
          }
        },
        {
          "name": "creator_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "creator_vault"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "fee_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  102,
                  101,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              }
            ]
          }
        },
        {
          "name": "fee_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "fee_authority"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        },
        {
          "name": "rent",
          "address": "SysvarRent111111111111111111111111111111111"
        }
      ],
      "args": []
    },
    {
      "name": "claim_protocol_fee",
      "discriminator": [
        165,
        228,
        133,
        48,
        99,
        249,
        255,
        33
      ],
      "accounts": [
        {
          "name": "owner",
          "writable": true,
          "signer": true
        },
        {
          "name": "owner_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "owner"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "global_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "fee_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  102,
                  101,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              }
            ]
          }
        },
        {
          "name": "fee_quote_account",
          "writable": true
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "name": "rent",
          "address": "SysvarRent111111111111111111111111111111111"
        }
      ],
      "args": []
    },
    {
      "name": "complete_curve",
      "docs": [
        "§10 + §11: freeze the curve, snapshot it, reconcile reserves against the vaults."
      ],
      "discriminator": [
        63,
        44,
        84,
        34,
        194,
        178,
        193,
        67
      ],
      "accounts": [
        {
          "name": "payer",
          "docs": [
            "The primary migrator, and only them.",
            "",
            "Every other instruction in the migration chain is migrator-gated, and this one",
            "starts the chain — it writes `completed_at`, which is the clock the §18",
            "permissionless window is measured from. Leaving it open would let anyone move a",
            "graduated token onto the CLMM path, including tokens the operator intends to send",
            "through the legacy CPMM `migrate`, which reads no migration status and would drain",
            "the vaults out from under a half-built plan. Gating here keeps the choice of path",
            "with the operator; §18 still opens the *remaining* steps to anyone once the delay",
            "has elapsed."
          ],
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v2",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  50
                ]
              }
            ]
          }
        },
        {
          "name": "global_config_v3",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  51
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve_v2",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  118,
                  50
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve_authority",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint"
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "base_vault"
        },
        {
          "name": "quote_vault"
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": []
    },
    {
      "name": "create_token",
      "discriminator": [
        84,
        52,
        204,
        228,
        24,
        140,
        234,
        75
      ],
      "accounts": [
        {
          "name": "creator",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "base_mint",
          "writable": true,
          "signer": true
        },
        {
          "name": "quote_mint",
          "writable": true,
          "address": "So11111111111111111111111111111111111111112"
        },
        {
          "name": "bonding_curve_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "bonding_curve_authority"
              },
              {
                "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": "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": "quote_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "bonding_curve_authority"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "creator_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  99,
                  114,
                  101,
                  97,
                  116,
                  111,
                  114,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "creator"
              }
            ]
          }
        },
        {
          "name": "creator_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "creator_vault"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "fee_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  102,
                  101,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              }
            ]
          }
        },
        {
          "name": "fee_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "fee_authority"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "metadata",
          "writable": true
        },
        {
          "name": "metadata_program"
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        },
        {
          "name": "rent",
          "address": "SysvarRent111111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "CreateTokenArgs"
            }
          }
        }
      ]
    },
    {
      "name": "distribute_clmm_fees",
      "docs": [
        "§17.2: split claimed fees across protocol, creator and community."
      ],
      "discriminator": [
        72,
        18,
        223,
        117,
        243,
        208,
        110,
        4
      ],
      "accounts": [
        {
          "name": "payer",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v3",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  51
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve_v2",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  118,
                  50
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "position_record",
          "writable": true
        },
        {
          "name": "fee_custody",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  99,
                  108,
                  109,
                  109,
                  95,
                  102,
                  101,
                  101,
                  95,
                  99,
                  117,
                  115,
                  116,
                  111,
                  100,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint"
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "source",
          "docs": [
            "The custody account being drained: base or quote, matching `args.distribute_quote`.",
            "",
            "Pinned to the canonical ATA rather than just \"some account the custody PDA owns\",",
            "so a caller cannot point this at an unrelated custody-owned balance."
          ],
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "fee_custody"
              },
              {
                "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": "source.mint",
                "account": "TokenAccount"
              }
            ],
            "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_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  102,
                  101,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              }
            ]
          }
        },
        {
          "name": "protocol_destination",
          "writable": true
        },
        {
          "name": "creator_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  99,
                  114,
                  101,
                  97,
                  116,
                  111,
                  114,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "bonding_curve_v2.owner",
                "account": "BondingCurveV2"
              }
            ]
          }
        },
        {
          "name": "creator_destination",
          "writable": true
        },
        {
          "name": "community_destination",
          "writable": true
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "DistributeClmmFeesArgs"
            }
          }
        }
      ]
    },
    {
      "name": "finalize_migration",
      "docs": [
        "§15 step 5: reconcile to zero and write the immutable migration record."
      ],
      "discriminator": [
        34,
        232,
        228,
        252,
        159,
        14,
        96,
        203
      ],
      "accounts": [
        {
          "name": "migrator",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v3",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  51
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve_v2",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  118,
                  50
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "migration_plan",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  109,
                  105,
                  103,
                  114,
                  97,
                  116,
                  105,
                  111,
                  110,
                  95,
                  112,
                  108,
                  97,
                  110
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "migration_record",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  109,
                  105,
                  103,
                  114,
                  97,
                  116,
                  105,
                  111,
                  110,
                  95,
                  114,
                  101,
                  99,
                  111,
                  114,
                  100
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "migration_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  109,
                  105,
                  103,
                  114,
                  97,
                  116,
                  105,
                  111,
                  110,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint",
          "docs": [
            "Mutable because the leftover-base sweep below burns dust, which lowers the supply."
          ],
          "writable": true
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "migration_base_account",
          "writable": true
        },
        {
          "name": "migration_quote_account",
          "writable": true
        },
        {
          "name": "fee_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  102,
                  101,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              }
            ]
          }
        },
        {
          "name": "fee_quote_account",
          "writable": true
        },
        {
          "name": "buffer_payer",
          "writable": true
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": []
    },
    {
      "name": "get_buy_quote",
      "discriminator": [
        66,
        108,
        54,
        29,
        254,
        167,
        56,
        232
      ],
      "accounts": [
        {
          "name": "global_config_v2",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  50
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "GetBuyQuoteArgs"
            }
          }
        }
      ],
      "returns": {
        "defined": {
          "name": "BuyQuoteResult"
        }
      }
    },
    {
      "name": "get_sell_quote",
      "discriminator": [
        103,
        136,
        93,
        205,
        200,
        245,
        27,
        29
      ],
      "accounts": [
        {
          "name": "global_config_v2",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  50
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "GetSellQuoteArgs"
            }
          }
        }
      ],
      "returns": {
        "defined": {
          "name": "SellQuoteResult"
        }
      }
    },
    {
      "name": "initialize_clmm_pool",
      "docs": [
        "§15 step 2: create the Raydium CLMM pool at the validated opening price."
      ],
      "discriminator": [
        204,
        1,
        232,
        137,
        137,
        110,
        180,
        167
      ],
      "accounts": [
        {
          "name": "migrator",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v3",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  51
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve_v2",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  118,
                  50
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "migration_plan",
          "docs": [
            "The frozen plan, read to confirm an adopted pool's price is still executable."
          ],
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  109,
                  105,
                  103,
                  114,
                  97,
                  116,
                  105,
                  111,
                  110,
                  95,
                  112,
                  108,
                  97,
                  110
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "migration_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  109,
                  105,
                  103,
                  114,
                  97,
                  116,
                  105,
                  111,
                  110,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint"
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "amm_config"
        },
        {
          "name": "pool_state",
          "writable": true
        },
        {
          "name": "token_mint_0"
        },
        {
          "name": "token_mint_1"
        },
        {
          "name": "token_vault_0",
          "writable": true
        },
        {
          "name": "token_vault_1",
          "writable": true
        },
        {
          "name": "observation_state",
          "writable": true
        },
        {
          "name": "tick_array_bitmap",
          "writable": true
        },
        {
          "name": "clmm_program",
          "address": "CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK"
        },
        {
          "name": "token_program_0"
        },
        {
          "name": "token_program_1"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        },
        {
          "name": "rent",
          "address": "SysvarRent111111111111111111111111111111111"
        }
      ],
      "args": []
    },
    {
      "name": "initialize_config",
      "discriminator": [
        208,
        127,
        21,
        1,
        194,
        190,
        196,
        70
      ],
      "accounts": [
        {
          "name": "owner",
          "writable": true,
          "signer": true
        },
        {
          "name": "program_data"
        },
        {
          "name": "global_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "native_mint",
          "writable": true,
          "address": "So11111111111111111111111111111111111111112"
        },
        {
          "name": "fee_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  102,
                  101,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              }
            ]
          }
        },
        {
          "name": "fee_wsol_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "fee_authority"
              },
              {
                "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": "native_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_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "InitializeConfigArgs"
            }
          }
        }
      ]
    },
    {
      "name": "initialize_config_v2",
      "discriminator": [
        243,
        42,
        102,
        26,
        29,
        155,
        23,
        77
      ],
      "accounts": [
        {
          "name": "owner",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v2",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  50
                ]
              }
            ]
          }
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "InitializeConfigV2Args"
            }
          }
        }
      ]
    },
    {
      "name": "initialize_config_v3",
      "discriminator": [
        154,
        83,
        28,
        164,
        86,
        51,
        12,
        174
      ],
      "accounts": [
        {
          "name": "owner",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "global_config_v3",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  51
                ]
              }
            ]
          }
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "ConfigV3Args"
            }
          }
        }
      ]
    },
    {
      "name": "lock_old_token_metadata",
      "discriminator": [
        163,
        157,
        232,
        81,
        46,
        244,
        138,
        220
      ],
      "accounts": [
        {
          "name": "authority",
          "writable": true,
          "signer": true
        },
        {
          "name": "bonding_curve",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint",
          "writable": true
        },
        {
          "name": "metadata",
          "writable": true
        },
        {
          "name": "metadata_program"
        },
        {
          "name": "sysvar_instructions",
          "address": "Sysvar1nstructions1111111111111111111111111"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": []
    },
    {
      "name": "migrate",
      "discriminator": [
        155,
        234,
        231,
        146,
        236,
        158,
        162,
        30
      ],
      "accounts": [
        {
          "name": "payer",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve_token_0_vault",
          "writable": true
        },
        {
          "name": "bonding_curve_token_1_vault",
          "writable": true
        },
        {
          "name": "base_mint",
          "writable": true
        },
        {
          "name": "token_0_mint",
          "writable": true
        },
        {
          "name": "token_1_mint",
          "writable": true
        },
        {
          "name": "payer_token_0_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "payer"
              },
              {
                "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": "token_0_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": "payer_token_1_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "payer"
              },
              {
                "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": "token_1_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": "amm_config",
          "writable": true,
          "address": "D4FPEruKEHrG5TenZ2mpDGEfu1iUvTiqBxvpU8HLBvC2"
        },
        {
          "name": "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": "cp_swap_program"
            }
          }
        },
        {
          "name": "pool_state",
          "writable": true
        },
        {
          "name": "lp_mint",
          "writable": true
        },
        {
          "name": "payer_lp_token",
          "writable": true
        },
        {
          "name": "cpmm_token_0_vault",
          "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": "token_0_mint"
              }
            ],
            "program": {
              "kind": "account",
              "path": "cp_swap_program"
            }
          }
        },
        {
          "name": "cpmm_token_1_vault",
          "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": "token_1_mint"
              }
            ],
            "program": {
              "kind": "account",
              "path": "cp_swap_program"
            }
          }
        },
        {
          "name": "observation_state",
          "writable": true
        },
        {
          "name": "create_pool_fee",
          "writable": true,
          "address": "DNXgeM9EiiaAbaWvwjHj9fQQLAX5ZsfHyvmYUNRAdNC8"
        },
        {
          "name": "cp_swap_program",
          "address": "CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C"
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        },
        {
          "name": "rent",
          "address": "SysvarRent111111111111111111111111111111111"
        }
      ],
      "args": []
    },
    {
      "name": "migrate_to_version",
      "discriminator": [
        150,
        240,
        90,
        129,
        11,
        28,
        8,
        235
      ],
      "accounts": [
        {
          "name": "owner",
          "docs": [
            "Only owner can migrate"
          ],
          "writable": true,
          "signer": true,
          "relations": [
            "global_config"
          ]
        },
        {
          "name": "global_config",
          "docs": [
            "Global config PDA (already initialized)"
          ],
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        }
      ],
      "args": []
    },
    {
      "name": "open_clmm_position",
      "docs": [
        "§15 step 3: open one approved position, NFT minted straight to the lock PDA."
      ],
      "discriminator": [
        14,
        125,
        156,
        245,
        156,
        48,
        227,
        111
      ],
      "accounts": [
        {
          "name": "migrator",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v3",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  51
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve_v2",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  118,
                  50
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "migration_plan",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  109,
                  105,
                  103,
                  114,
                  97,
                  116,
                  105,
                  111,
                  110,
                  95,
                  112,
                  108,
                  97,
                  110
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "position_record",
          "writable": true
        },
        {
          "name": "migration_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  109,
                  105,
                  103,
                  114,
                  97,
                  116,
                  105,
                  111,
                  110,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "position_lock",
          "docs": [
            "instruction that transfers, closes, or decreases liquidity from it — the only CPI",
            "it ever signs is a zero-liquidity fee collection (§16)."
          ],
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  112,
                  111,
                  115,
                  105,
                  116,
                  105,
                  111,
                  110,
                  95,
                  108,
                  111,
                  99,
                  107
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint"
        },
        {
          "name": "quote_mint",
          "address": "So11111111111111111111111111111111111111112"
        },
        {
          "name": "amm_config"
        },
        {
          "name": "migration_base_account",
          "writable": true
        },
        {
          "name": "migration_quote_account",
          "writable": true
        },
        {
          "name": "position_nft_mint",
          "writable": true,
          "signer": true
        },
        {
          "name": "position_nft_account",
          "writable": true
        },
        {
          "name": "metadata_account",
          "writable": true
        },
        {
          "name": "pool_state",
          "writable": true
        },
        {
          "name": "protocol_position"
        },
        {
          "name": "tick_array_lower",
          "writable": true
        },
        {
          "name": "tick_array_upper",
          "writable": true
        },
        {
          "name": "personal_position",
          "writable": true
        },
        {
          "name": "token_vault_0",
          "writable": true
        },
        {
          "name": "token_vault_1",
          "writable": true
        },
        {
          "name": "vault_0_mint"
        },
        {
          "name": "vault_1_mint"
        },
        {
          "name": "clmm_program",
          "address": "CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK"
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "token_program_2022",
          "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "name": "metadata_program",
          "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        },
        {
          "name": "rent",
          "address": "SysvarRent111111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "OpenClmmPositionArgs"
            }
          }
        }
      ]
    },
    {
      "name": "prebuy",
      "discriminator": [
        214,
        50,
        6,
        30,
        196,
        54,
        113,
        206
      ],
      "accounts": [
        {
          "name": "buyer",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v2",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  50
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint"
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "base_vault",
          "writable": true
        },
        {
          "name": "quote_vault",
          "writable": true
        },
        {
          "name": "prebuy_position",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  112,
                  114,
                  101,
                  98,
                  117,
                  121,
                  95,
                  112,
                  111,
                  115,
                  105,
                  116,
                  105,
                  111,
                  110
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              },
              {
                "kind": "account",
                "path": "buyer"
              }
            ]
          }
        },
        {
          "name": "creator_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  99,
                  114,
                  101,
                  97,
                  116,
                  111,
                  114,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "bonding_curve.owner",
                "account": "BondingCurve"
              }
            ]
          }
        },
        {
          "name": "creator_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "creator_vault"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "fee_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  102,
                  101,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              }
            ]
          }
        },
        {
          "name": "fee_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "fee_authority"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        },
        {
          "name": "rent",
          "address": "SysvarRent111111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "PrebuyArgs"
            }
          }
        }
      ]
    },
    {
      "name": "prepare_migration",
      "docs": [
        "§15 step 1: derive and freeze the approved position plan."
      ],
      "discriminator": [
        59,
        118,
        102,
        18,
        9,
        133,
        23,
        172
      ],
      "accounts": [
        {
          "name": "migrator",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v3",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  51
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve_v2",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  118,
                  50
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "migration_plan",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  109,
                  105,
                  103,
                  114,
                  97,
                  116,
                  105,
                  111,
                  110,
                  95,
                  112,
                  108,
                  97,
                  110
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve_authority",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "migration_authority",
          "docs": [
            "can pay Raydium's rent and sign Raydium's CPIs."
          ],
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  109,
                  105,
                  103,
                  114,
                  97,
                  116,
                  105,
                  111,
                  110,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint"
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "base_vault",
          "writable": true
        },
        {
          "name": "quote_vault",
          "writable": true
        },
        {
          "name": "migration_base_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "migration_authority"
              },
              {
                "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": "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": "migration_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "migration_authority"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "amm_config",
          "docs": [
            "the handler; its `tick_spacing` is read, never assumed."
          ]
        },
        {
          "name": "clmm_program"
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "PrepareMigrationArgs"
            }
          }
        }
      ]
    },
    {
      "name": "recover_config_owner",
      "docs": [
        "Reset `GlobalConfig.owner` under the program upgrade authority. The escape hatch",
        "for an owner accidentally set to an address nobody can sign for."
      ],
      "discriminator": [
        156,
        214,
        96,
        172,
        115,
        105,
        152,
        4
      ],
      "accounts": [
        {
          "name": "authority",
          "signer": true
        },
        {
          "name": "global_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "program",
          "address": "89f2dq3ztcyRhWDvuajaF69qsRcpFbMo9CW2NitRyHhn"
        },
        {
          "name": "program_data"
        }
      ],
      "args": [
        {
          "name": "new_owner",
          "type": "pubkey"
        }
      ]
    },
    {
      "name": "reset_migration",
      "docs": [
        "Unwind a stuck migration back to `GRADUATION_REACHED`. Authority only, and only",
        "before any liquidity has been locked."
      ],
      "discriminator": [
        211,
        7,
        195,
        252,
        73,
        79,
        113,
        115
      ],
      "accounts": [
        {
          "name": "authority",
          "docs": [
            "Only the config authority. This is the one discretionary lever in the migration",
            "path, so it is deliberately not open to the migrator or to anyone else."
          ],
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v3",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  51
                ]
              }
            ]
          }
        },
        {
          "name": "bonding_curve_v2",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  118,
                  50
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "migration_plan",
          "docs": [
            "Closed here so `prepare_migration` can derive a fresh plan afterwards."
          ],
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  109,
                  105,
                  103,
                  114,
                  97,
                  116,
                  105,
                  111,
                  110,
                  95,
                  112,
                  108,
                  97,
                  110
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve_authority",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "migration_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  109,
                  105,
                  103,
                  114,
                  97,
                  116,
                  105,
                  111,
                  110,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_mint"
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "base_vault",
          "writable": true
        },
        {
          "name": "quote_vault",
          "writable": true
        },
        {
          "name": "migration_base_account",
          "writable": true
        },
        {
          "name": "migration_quote_account",
          "writable": true
        },
        {
          "name": "buffer_payer",
          "writable": true
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": []
    },
    {
      "name": "revoke_prebuy",
      "discriminator": [
        19,
        192,
        210,
        114,
        31,
        114,
        3,
        208
      ],
      "accounts": [
        {
          "name": "user",
          "writable": true,
          "signer": true
        },
        {
          "name": "base_mint"
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "bonding_curve",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "quote_vault",
          "writable": true
        },
        {
          "name": "prebuy_position",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  112,
                  114,
                  101,
                  98,
                  117,
                  121,
                  95,
                  112,
                  111,
                  115,
                  105,
                  116,
                  105,
                  111,
                  110
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              },
              {
                "kind": "account",
                "path": "user"
              }
            ]
          }
        },
        {
          "name": "user_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "user"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "fee_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  102,
                  101,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              }
            ]
          }
        },
        {
          "name": "fee_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "fee_authority"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        },
        {
          "name": "rent",
          "address": "SysvarRent111111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "RevokePrebuyArgs"
            }
          }
        }
      ]
    },
    {
      "name": "sell",
      "discriminator": [
        51,
        230,
        133,
        164,
        1,
        127,
        131,
        173
      ],
      "accounts": [
        {
          "name": "seller",
          "writable": true,
          "signer": true
        },
        {
          "name": "global_config_v2",
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  50
                ]
              }
            ]
          }
        },
        {
          "name": "base_mint"
        },
        {
          "name": "quote_mint"
        },
        {
          "name": "bonding_curve",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "bonding_curve_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  98,
                  111,
                  110,
                  100,
                  105,
                  110,
                  103,
                  95,
                  99,
                  117,
                  114,
                  118,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              },
              {
                "kind": "account",
                "path": "base_mint"
              }
            ]
          }
        },
        {
          "name": "base_vault",
          "writable": true
        },
        {
          "name": "quote_vault",
          "writable": true
        },
        {
          "name": "seller_base_account",
          "writable": true
        },
        {
          "name": "seller_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "seller"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "creator_vault",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  99,
                  114,
                  101,
                  97,
                  116,
                  111,
                  114,
                  95,
                  118,
                  97,
                  117,
                  108,
                  116
                ]
              },
              {
                "kind": "account",
                "path": "bonding_curve.owner",
                "account": "BondingCurve"
              }
            ]
          }
        },
        {
          "name": "creator_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "creator_vault"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "fee_authority",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  102,
                  101,
                  101,
                  95,
                  97,
                  117,
                  116,
                  104,
                  111,
                  114,
                  105,
                  116,
                  121
                ]
              }
            ]
          }
        },
        {
          "name": "fee_quote_account",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "account",
                "path": "fee_authority"
              },
              {
                "kind": "const",
                "value": [
                  6,
                  221,
                  246,
                  225,
                  215,
                  101,
                  161,
                  147,
                  217,
                  203,
                  225,
                  70,
                  206,
                  235,
                  121,
                  172,
                  28,
                  180,
                  133,
                  237,
                  95,
                  91,
                  55,
                  145,
                  58,
                  140,
                  245,
                  133,
                  126,
                  255,
                  0,
                  169
                ]
              },
              {
                "kind": "account",
                "path": "quote_mint"
              }
            ],
            "program": {
              "kind": "const",
              "value": [
                140,
                151,
                37,
                143,
                78,
                36,
                137,
                241,
                187,
                61,
                16,
                41,
                20,
                142,
                13,
                131,
                11,
                90,
                19,
                153,
                218,
                255,
                16,
                132,
                4,
                142,
                123,
                216,
                219,
                233,
                248,
                89
              ]
            }
          }
        },
        {
          "name": "token_program",
          "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "name": "associated_token_program",
          "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "name": "system_program",
          "address": "11111111111111111111111111111111"
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "SellArgs"
            }
          }
        }
      ]
    },
    {
      "name": "set_config_v3_authority",
      "discriminator": [
        129,
        105,
        124,
        79,
        80,
        190,
        78,
        45
      ],
      "accounts": [
        {
          "name": "authority",
          "signer": true
        },
        {
          "name": "global_config_v3",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  51
                ]
              }
            ]
          }
        }
      ],
      "args": [
        {
          "name": "new_authority",
          "type": "pubkey"
        }
      ]
    },
    {
      "name": "update_config",
      "discriminator": [
        29,
        158,
        252,
        191,
        10,
        83,
        219,
        99
      ],
      "accounts": [
        {
          "name": "owner",
          "writable": true,
          "signer": true,
          "relations": [
            "global_config"
          ]
        },
        {
          "name": "global_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "UpdateConfigArgs"
            }
          }
        }
      ]
    },
    {
      "name": "update_config_v2",
      "discriminator": [
        193,
        227,
        6,
        0,
        222,
        184,
        176,
        80
      ],
      "accounts": [
        {
          "name": "owner",
          "writable": true,
          "signer": true,
          "relations": [
            "global_config"
          ]
        },
        {
          "name": "global_config",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  95,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103
                ]
              }
            ]
          }
        },
        {
          "name": "global_config_v2",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  50
                ]
              }
            ]
          }
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "UpdateConfigV2Args"
            }
          }
        }
      ]
    },
    {
      "name": "update_config_v3",
      "discriminator": [
        180,
        70,
        69,
        38,
        208,
        255,
        25,
        11
      ],
      "accounts": [
        {
          "name": "authority",
          "signer": true
        },
        {
          "name": "global_config_v3",
          "writable": true,
          "pda": {
            "seeds": [
              {
                "kind": "const",
                "value": [
                  103,
                  108,
                  111,
                  98,
                  97,
                  108,
                  45,
                  99,
                  111,
                  110,
                  102,
                  105,
                  103,
                  45,
                  118,
                  51
                ]
              }
            ]
          }
        }
      ],
      "args": [
        {
          "name": "args",
          "type": {
            "defined": {
              "name": "ConfigV3Args"
            }
          }
        }
      ]
    }
  ],
  "accounts": [
    {
      "name": "AmmConfig",
      "discriminator": [
        218,
        244,
        33,
        104,
        203,
        203,
        43,
        111
      ]
    },
    {
      "name": "BondingCurve",
      "discriminator": [
        23,
        183,
        248,
        55,
        96,
        216,
        172,
        96
      ]
    },
    {
      "name": "BondingCurveV2",
      "discriminator": [
        164,
        39,
        209,
        40,
        144,
        178,
        79,
        52
      ]
    },
    {
      "name": "GlobalConfig",
      "discriminator": [
        149,
        8,
        156,
        202,
        160,
        252,
        176,
        217
      ]
    },
    {
      "name": "GlobalConfigV2",
      "discriminator": [
        185,
        221,
        129,
        26,
        3,
        196,
        20,
        130
      ]
    },
    {
      "name": "GlobalConfigV3",
      "discriminator": [
        54,
        240,
        23,
        73,
        183,
        187,
        13,
        155
      ]
    },
    {
      "name": "MigrationPlanAccount",
      "discriminator": [
        28,
        58,
        140,
        29,
        8,
        198,
        38,
        244
      ]
    },
    {
      "name": "MigrationRecord",
      "discriminator": [
        16,
        36,
        116,
        243,
        192,
        61,
        40,
        1
      ]
    },
    {
      "name": "PoolState",
      "discriminator": [
        247,
        237,
        227,
        245,
        215,
        195,
        222,
        70
      ]
    },
    {
      "name": "PositionRecord",
      "discriminator": [
        108,
        204,
        45,
        207,
        168,
        255,
        213,
        158
      ]
    },
    {
      "name": "PrebuyPosition",
      "discriminator": [
        42,
        79,
        130,
        208,
        233,
        223,
        130,
        37
      ]
    }
  ],
  "events": [
    {
      "name": "CLMM_FEES_CLAIMED",
      "discriminator": [
        127,
        107,
        96,
        250,
        64,
        40,
        138,
        171
      ]
    },
    {
      "name": "CLMM_FEES_DISTRIBUTED",
      "discriminator": [
        25,
        183,
        253,
        43,
        248,
        133,
        226,
        155
      ]
    },
    {
      "name": "CLMM_POOL_INITIALIZED",
      "discriminator": [
        156,
        16,
        203,
        81,
        179,
        203,
        87,
        3
      ]
    },
    {
      "name": "CLMM_POSITION_OPENED",
      "discriminator": [
        84,
        152,
        2,
        214,
        48,
        235,
        12,
        148
      ]
    },
    {
      "name": "COMPLETE",
      "discriminator": [
        39,
        6,
        3,
        104,
        12,
        154,
        133,
        7
      ]
    },
    {
      "name": "CREATE",
      "discriminator": [
        96,
        6,
        69,
        34,
        20,
        216,
        249,
        240
      ]
    },
    {
      "name": "GRADUATED",
      "discriminator": [
        203,
        243,
        207,
        89,
        174,
        168,
        10,
        224
      ]
    },
    {
      "name": "MIGRATION_FINALIZED",
      "discriminator": [
        212,
        82,
        163,
        154,
        50,
        58,
        99,
        53
      ]
    },
    {
      "name": "MIGRATION_PREPARED",
      "discriminator": [
        175,
        95,
        47,
        217,
        224,
        94,
        155,
        47
      ]
    },
    {
      "name": "MIGRATION_RESET",
      "discriminator": [
        0,
        234,
        163,
        136,
        87,
        4,
        135,
        93
      ]
    },
    {
      "name": "PREBUY",
      "discriminator": [
        28,
        197,
        16,
        155,
        191,
        73,
        223,
        242
      ]
    },
    {
      "name": "PREBUY_CLAIM",
      "discriminator": [
        100,
        197,
        89,
        10,
        201,
        18,
        223,
        80
      ]
    },
    {
      "name": "PREBUY_REVOKE",
      "discriminator": [
        14,
        196,
        102,
        145,
        243,
        190,
        29,
        227
      ]
    },
    {
      "name": "TOKENS_BURNED",
      "discriminator": [
        112,
        243,
        48,
        254,
        116,
        173,
        215,
        242
      ]
    },
    {
      "name": "TRADE",
      "discriminator": [
        230,
        70,
        166,
        249,
        243,
        37,
        141,
        112
      ]
    }
  ],
  "errors": [
    {
      "code": 6000,
      "name": "InvalidFeeConfiguration",
      "msg": "Invalid fee configuration"
    },
    {
      "code": 6001,
      "name": "InvalidTotalSupply",
      "msg": "Total supply must be greater than zero"
    },
    {
      "code": 6002,
      "name": "ConfigNotInitialized",
      "msg": "Config account has not been initialized"
    },
    {
      "code": 6003,
      "name": "ConfigAlreadyInitialized",
      "msg": "Config account has already been initialized"
    },
    {
      "code": 6004,
      "name": "Unauthorized",
      "msg": "Only the owner may call this instruction"
    },
    {
      "code": 6005,
      "name": "InvalidQuoteMint",
      "msg": "Invalid quote mint"
    },
    {
      "code": 6006,
      "name": "InvalidMetadataAccount",
      "msg": "Metadata account does not match the expected PDA"
    },
    {
      "code": 6007,
      "name": "MathOverflow",
      "msg": "Arithmetic overflow"
    },
    {
      "code": 6008,
      "name": "InvalidReserveConfiguration",
      "msg": "Invalid reserve configuration"
    },
    {
      "code": 6009,
      "name": "InvalidQuoteAmountZero",
      "msg": "Quote amount must be greater than zero"
    },
    {
      "code": 6010,
      "name": "BondingCurveNotComplete",
      "msg": "Bonding curve is not complete"
    },
    {
      "code": 6011,
      "name": "BondingCurveAlreadyComplete",
      "msg": "Bonding curve is already complete"
    },
    {
      "code": 6012,
      "name": "BondingCurveNotOpen",
      "msg": "Bonding curve is not open"
    },
    {
      "code": 6013,
      "name": "SlippageExceeded",
      "msg": "Slippage exceeded"
    },
    {
      "code": 6014,
      "name": "InvalidTokenType",
      "msg": "Invalid token type. Must be 'A', 'B', 'C', or 'K'."
    },
    {
      "code": 6015,
      "name": "VersionTooLong",
      "msg": "Version string too long"
    },
    {
      "code": 6016,
      "name": "AlreadyOnThisVersion",
      "msg": "Already migrated to this version"
    },
    {
      "code": 6017,
      "name": "InvalidVersionLength",
      "msg": "Invalid version length"
    },
    {
      "code": 6018,
      "name": "PrebuyClosed",
      "msg": "Prebuy is closed"
    },
    {
      "code": 6019,
      "name": "NotLiveYet",
      "msg": "Token is not live yet"
    },
    {
      "code": 6020,
      "name": "NothingToClaim",
      "msg": "Nothing to claim"
    },
    {
      "code": 6021,
      "name": "PrebuyAlreadyClaimed",
      "msg": "Prebuy already claimed"
    },
    {
      "code": 6022,
      "name": "InvalidPrebuyPosition",
      "msg": "Invalid prebuy position"
    },
    {
      "code": 6023,
      "name": "PrebuyRevokeClosed",
      "msg": "Prebuy revoke is closed"
    },
    {
      "code": 6024,
      "name": "InvalidRevokeAmount",
      "msg": "Invalid revoke amount"
    },
    {
      "code": 6025,
      "name": "UnexpectedMigrationStatus",
      "msg": "Migration step called with the curve in the wrong state"
    },
    {
      "code": 6026,
      "name": "MigratorNotAuthorized",
      "msg": "Caller may not migrate this token yet"
    },
    {
      "code": 6027,
      "name": "AlreadyMigrated",
      "msg": "Migration has already been finalized"
    },
    {
      "code": 6028,
      "name": "OpeningPriceBelowCurve",
      "msg": "Opening price would be below the final bonding-curve price"
    },
    {
      "code": 6029,
      "name": "OpeningPremiumTooHigh",
      "msg": "Opening premium exceeds the approved tolerance"
    },
    {
      "code": 6030,
      "name": "OpeningPriceDeviation",
      "msg": "Realised pool price deviates from the intended opening price"
    },
    {
      "code": 6031,
      "name": "InvalidClmmProgram",
      "msg": "Raydium CLMM program address does not match the approved one"
    },
    {
      "code": 6032,
      "name": "InvalidAmmConfig",
      "msg": "Raydium AmmConfig does not match the approved one"
    },
    {
      "code": 6033,
      "name": "InvalidTokenOrdering",
      "msg": "Pool token ordering does not match the base and quote mints"
    },
    {
      "code": 6034,
      "name": "InvalidTokenDecimals",
      "msg": "Token decimals do not match the recorded mint decimals"
    },
    {
      "code": 6035,
      "name": "TickNotAligned",
      "msg": "Position tick range is not aligned to the pool tick spacing"
    },
    {
      "code": 6036,
      "name": "InvalidTickRange",
      "msg": "Position tick range is invalid or out of bounds"
    },
    {
      "code": 6037,
      "name": "PositionRangeGap",
      "msg": "Approved position ranges leave an untradeable gap"
    },
    {
      "code": 6038,
      "name": "TooManyPositions",
      "msg": "Too many positions for the approved configuration"
    },
    {
      "code": 6039,
      "name": "PositionIndexOutOfRange",
      "msg": "Position index is outside the approved plan"
    },
    {
      "code": 6040,
      "name": "PositionAlreadyOpened",
      "msg": "Position has already been opened"
    },
    {
      "code": 6041,
      "name": "PositionOutOfOrder",
      "msg": "Positions must be opened in plan order"
    },
    {
      "code": 6042,
      "name": "PositionsIncomplete",
      "msg": "Not every approved position has been opened"
    },
    {
      "code": 6043,
      "name": "InvalidPositionCustody",
      "msg": "Position custody is not held by the migration lock authority"
    },
    {
      "code": 6044,
      "name": "InvalidMigrationPlan",
      "msg": "Derived migration plan failed validation"
    },
    {
      "code": 6045,
      "name": "InvalidMigrationPolicy",
      "msg": "Migration policy configuration is invalid"
    },
    {
      "code": 6046,
      "name": "TerminalQuoteTooHigh",
      "msg": "Terminal SOL estimate exceeds the approved maximum"
    },
    {
      "code": 6047,
      "name": "InvalidTerminalTarget",
      "msg": "Terminal target configuration is invalid"
    },
    {
      "code": 6048,
      "name": "InvalidFeeShareSplit",
      "msg": "Fee share split must total 10000 bps"
    },
    {
      "code": 6049,
      "name": "ReserveReconciliationFailed",
      "msg": "Stored reserves do not match the actual vault balance"
    },
    {
      "code": 6050,
      "name": "UnreconciledBalance",
      "msg": "Migration accounts still hold an unexplained balance"
    },
    {
      "code": 6051,
      "name": "NothingToBurn",
      "msg": "Nothing left to burn"
    },
    {
      "code": 6052,
      "name": "PrincipalWithdrawalForbidden",
      "msg": "Only earned trading fees may be withdrawn; principal is locked"
    },
    {
      "code": 6053,
      "name": "ClmmMathError",
      "msg": "CLMM math failed"
    },
    {
      "code": 6054,
      "name": "CurveV2AlreadyInitialized",
      "msg": "Bonding curve v2 state has already been initialized"
    },
    {
      "code": 6055,
      "name": "InvalidQuoteMintNotWsol",
      "msg": "Quote mint must be wrapped SOL"
    },
    {
      "code": 6056,
      "name": "AdoptedPoolPriceUnusable",
      "msg": "A pool already exists at a price the approved plan cannot be executed at"
    },
    {
      "code": 6057,
      "name": "RentBufferTooSmall",
      "msg": "Rent buffer is below the amount Raydium account creation requires"
    },
    {
      "code": 6058,
      "name": "MigrationNotResettable",
      "msg": "Migration cannot be reset once liquidity has been locked"
    },
    {
      "code": 6059,
      "name": "DownsideRangeInfeasible",
      "msg": "Circulating supply is too small to absorb the raise below the opening price"
    },
    {
      "code": 6060,
      "name": "UnsupportedCurveForClmm",
      "msg": "Only constant-product curves can migrate to CLMM; use the legacy CPMM migrate"
    },
    {
      "code": 6061,
      "name": "InvalidOwnerAddress",
      "msg": "Config owner cannot be the default/zero address"
    }
  ],
  "types": [
    {
      "name": "AmmConfig",
      "docs": [
        "Holds the current owner of the factory"
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "bump",
            "docs": [
              "Bump to identify PDA"
            ],
            "type": "u8"
          },
          {
            "name": "disable_create_pool",
            "docs": [
              "Status to control if new pool can be create"
            ],
            "type": "bool"
          },
          {
            "name": "index",
            "docs": [
              "Config index"
            ],
            "type": "u16"
          },
          {
            "name": "trade_fee_rate",
            "docs": [
              "The trade fee, denominated in hundredths of a bip (10^-6)"
            ],
            "type": "u64"
          },
          {
            "name": "protocol_fee_rate",
            "docs": [
              "The protocol fee"
            ],
            "type": "u64"
          },
          {
            "name": "fund_fee_rate",
            "docs": [
              "The fund fee, denominated in hundredths of a bip (10^-6)"
            ],
            "type": "u64"
          },
          {
            "name": "create_pool_fee",
            "docs": [
              "Fee for create a new pool"
            ],
            "type": "u64"
          },
          {
            "name": "protocol_owner",
            "docs": [
              "Address of the protocol fee owner"
            ],
            "type": "pubkey"
          },
          {
            "name": "fund_owner",
            "docs": [
              "Address of the fund fee owner"
            ],
            "type": "pubkey"
          },
          {
            "name": "creator_fee_rate",
            "docs": [
              "The pool creator fee, denominated in hundredths of a bip (10^-6)"
            ],
            "type": "u64"
          },
          {
            "name": "padding",
            "docs": [
              "padding"
            ],
            "type": {
              "array": [
                "u64",
                15
              ]
            }
          }
        ]
      }
    },
    {
      "name": "BondingCurve",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "owner",
            "type": "pubkey"
          },
          {
            "name": "open_time",
            "type": "u64"
          },
          {
            "name": "real_base_reserves",
            "type": "u64"
          },
          {
            "name": "virtual_base_reserves",
            "type": "u64"
          },
          {
            "name": "real_quote_reserves",
            "type": "u64"
          },
          {
            "name": "virtual_quote_reserves",
            "type": "u64"
          },
          {
            "name": "total_supply",
            "type": "u64"
          },
          {
            "name": "real_sol_threshold",
            "type": "u64"
          },
          {
            "name": "m_fp",
            "type": "u128"
          },
          {
            "name": "b_fp",
            "type": "u128"
          },
          {
            "name": "complete",
            "type": "bool"
          }
        ]
      }
    },
    {
      "name": "BondingCurveV2",
      "docs": [
        "The versioned graduation and migration state, one per mint (§9.1).",
        "",
        "This lives at its own seed rather than replacing `BondingCurve`, so nothing about the",
        "deployed curve layout or the buy/sell hot path changes. The curve fields below are an",
        "immutable *snapshot* taken the moment the threshold was crossed — the live curve keeps",
        "running out of the original account until it is frozen."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "owner",
            "type": "pubkey"
          },
          {
            "name": "open_time",
            "type": "u64"
          },
          {
            "name": "real_base_reserves",
            "type": "u64"
          },
          {
            "name": "virtual_base_reserves",
            "type": "u64"
          },
          {
            "name": "real_quote_reserves",
            "type": "u64"
          },
          {
            "name": "virtual_quote_reserves",
            "type": "u64"
          },
          {
            "name": "total_supply",
            "type": "u64"
          },
          {
            "name": "real_sol_threshold",
            "type": "u64"
          },
          {
            "name": "m_fp",
            "type": "u128"
          },
          {
            "name": "b_fp",
            "type": "u128"
          },
          {
            "name": "complete",
            "type": "bool"
          },
          {
            "name": "migration_status",
            "type": "u8"
          },
          {
            "name": "completed_at",
            "type": "i64"
          },
          {
            "name": "completed_slot",
            "type": "u64"
          },
          {
            "name": "first_trade_price_x64",
            "type": "u128"
          },
          {
            "name": "final_curve_buy_price_x64",
            "type": "u128"
          },
          {
            "name": "final_curve_sell_price_x64",
            "type": "u128"
          },
          {
            "name": "expected_dex_price_x64",
            "docs": [
              "Quote lamports per base unit, Q64.64 — the price the pool is meant to open at."
            ],
            "type": "u128"
          },
          {
            "name": "expected_dex_sqrt_price_x64",
            "docs": [
              "The same opening price in the pool's own terms: `sqrt(token_1/token_0) * 2^64`.",
              "This is the exact value handed to Raydium's `create_pool`."
            ],
            "type": "u128"
          },
          {
            "name": "final_base_vault_balance",
            "type": "u64"
          },
          {
            "name": "final_quote_vault_balance",
            "type": "u64"
          },
          {
            "name": "gross_quote_raised",
            "type": "u64"
          },
          {
            "name": "trading_fees_paid",
            "type": "u64"
          },
          {
            "name": "creator_migrate_fee",
            "type": "u64"
          },
          {
            "name": "protocol_migrate_fee",
            "type": "u64"
          },
          {
            "name": "circulating_base",
            "docs": [
              "Tokens users hold, i.e. everything that ever left the base vault."
            ],
            "type": "u64"
          },
          {
            "name": "clmm_base_amount",
            "type": "u64"
          },
          {
            "name": "clmm_quote_amount",
            "type": "u64"
          },
          {
            "name": "burn_base_amount",
            "docs": [
              "What the approved plan says should burn."
            ],
            "type": "u64"
          },
          {
            "name": "actual_burned_base",
            "docs": [
              "What actually burned, which is larger if anyone donated to the vault."
            ],
            "type": "u64"
          },
          {
            "name": "donated_base",
            "docs": [
              "`actual_burned_base - burn_base_amount`: tokens that arrived after the graduation",
              "snapshot and are therefore already counted inside `circulating_base`."
            ],
            "type": "u64"
          },
          {
            "name": "clmm_pool",
            "type": "pubkey"
          },
          {
            "name": "amm_config",
            "type": "pubkey"
          },
          {
            "name": "position_count",
            "type": "u8"
          },
          {
            "name": "positions_opened",
            "docs": [
              "How many positions have actually been opened so far."
            ],
            "type": "u8"
          },
          {
            "name": "base_is_token_0",
            "docs": [
              "True once the base mint sorts below wSOL, i.e. the token is `token_0`."
            ],
            "type": "bool"
          },
          {
            "name": "tick_spacing",
            "type": "u16"
          },
          {
            "name": "opening_tick",
            "type": "i32"
          },
          {
            "name": "realised_opening_premium_bps",
            "docs": [
              "Premium over the final curve price the pool actually opened at, in bps —",
              "measured from Raydium's own state, not the configured intent (§20.5)."
            ],
            "type": "i64"
          },
          {
            "name": "expected_terminal_quote",
            "type": "u64"
          },
          {
            "name": "policy_opening_premium_bps",
            "type": "u16"
          },
          {
            "name": "policy_opening_half_width_ticks",
            "type": "u32"
          },
          {
            "name": "policy_opening_quote_share_bps",
            "type": "u16"
          },
          {
            "name": "policy_upside_width_ticks",
            "type": "u32"
          },
          {
            "name": "policy_upside_base_share_bps",
            "type": "u16"
          },
          {
            "name": "policy_terminal_overshoot_bps",
            "type": "u16"
          },
          {
            "name": "policy_max_undeployed_quote_bps",
            "type": "u16"
          },
          {
            "name": "policy_max_position_count",
            "type": "u8"
          },
          {
            "name": "policy_maximum_terminal_sol_lamports",
            "type": "u64"
          },
          {
            "name": "policy_permissionless_delay_seconds",
            "type": "u32"
          },
          {
            "name": "policy_trading_delay_seconds",
            "type": "u32"
          },
          {
            "name": "migration_version",
            "type": "u16"
          },
          {
            "name": "migration_buffer_lamports",
            "docs": [
              "Lamports the migrator advanced for Raydium account rent, refunded at finalize."
            ],
            "type": "u64"
          },
          {
            "name": "migration_buffer_payer",
            "docs": [
              "Who advanced them."
            ],
            "type": "pubkey"
          },
          {
            "name": "bump",
            "type": "u8"
          }
        ]
      }
    },
    {
      "name": "BuyArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "quote_amount",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "BuyQuoteResult",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "input_quote",
            "type": "u64"
          },
          {
            "name": "base_amount_out_before_fee",
            "type": "u64"
          },
          {
            "name": "base_amount_out",
            "type": "u64"
          },
          {
            "name": "actual_quote_to_curve",
            "type": "u64"
          },
          {
            "name": "net_quote",
            "type": "u64"
          },
          {
            "name": "creator_fee",
            "type": "u64"
          },
          {
            "name": "protocol_fee",
            "type": "u64"
          },
          {
            "name": "total_fee",
            "type": "u64"
          },
          {
            "name": "total_spend",
            "type": "u64"
          },
          {
            "name": "will_complete",
            "type": "bool"
          }
        ]
      }
    },
    {
      "name": "CLMM_FEES_CLAIMED",
      "docs": [
        "§17: fees pulled out of a locked position. Principal is never touched."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "position_nft_mint",
            "type": "pubkey"
          },
          {
            "name": "base_fees",
            "type": "u64"
          },
          {
            "name": "quote_fees",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "CLMM_FEES_DISTRIBUTED",
      "docs": [
        "§17.2 distribution."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "position_nft_mint",
            "type": "pubkey"
          },
          {
            "name": "protocol_amount",
            "type": "u64"
          },
          {
            "name": "creator_amount",
            "type": "u64"
          },
          {
            "name": "community_amount",
            "type": "u64"
          },
          {
            "name": "is_quote",
            "type": "bool"
          }
        ]
      }
    },
    {
      "name": "CLMM_POOL_INITIALIZED",
      "docs": [
        "§15 step 2."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "pool",
            "type": "pubkey"
          },
          {
            "name": "amm_config",
            "type": "pubkey"
          },
          {
            "name": "sqrt_price_x64",
            "type": "u128"
          },
          {
            "name": "opening_premium_bps",
            "type": "i64"
          },
          {
            "name": "trading_open_time",
            "docs": [
              "When Raydium starts accepting swaps. Deliberately in the future so positions can",
              "be opened against a price nobody can move."
            ],
            "type": "u64"
          },
          {
            "name": "adopted_existing_pool",
            "docs": [
              "True when the pool already existed and was adopted rather than created."
            ],
            "type": "bool"
          }
        ]
      }
    },
    {
      "name": "CLMM_POSITION_OPENED",
      "docs": [
        "§15 step 3, one per position."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "pool",
            "type": "pubkey"
          },
          {
            "name": "index",
            "type": "u8"
          },
          {
            "name": "category",
            "type": "u8"
          },
          {
            "name": "position_nft_mint",
            "type": "pubkey"
          },
          {
            "name": "lock_authority",
            "type": "pubkey"
          },
          {
            "name": "tick_lower",
            "type": "i32"
          },
          {
            "name": "tick_upper",
            "type": "i32"
          },
          {
            "name": "liquidity",
            "type": "u128"
          },
          {
            "name": "base_amount",
            "type": "u64"
          },
          {
            "name": "quote_amount",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "COMPLETE",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "lp_mint",
            "type": "pubkey"
          },
          {
            "name": "pool",
            "type": "pubkey"
          }
        ]
      }
    },
    {
      "name": "CREATE",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "creator",
            "type": "pubkey"
          },
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "name",
            "type": "string"
          },
          {
            "name": "symbol",
            "type": "string"
          },
          {
            "name": "decimals",
            "type": "u8"
          },
          {
            "name": "total_supply",
            "type": "u64"
          },
          {
            "name": "real_base_reserves",
            "type": "u64"
          },
          {
            "name": "virtual_base_reserves",
            "type": "u64"
          },
          {
            "name": "real_quote_reserves",
            "type": "u64"
          },
          {
            "name": "virtual_quote_reserves",
            "type": "u64"
          },
          {
            "name": "real_sol_threshold",
            "type": "u64"
          },
          {
            "name": "open_time",
            "type": "u64"
          },
          {
            "name": "m_fp",
            "type": "u128"
          },
          {
            "name": "b_fp",
            "type": "u128"
          },
          {
            "name": "uri",
            "type": "string"
          },
          {
            "name": "curve_type",
            "type": "string"
          }
        ]
      }
    },
    {
      "name": "ClaimClmmFeesArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "index",
            "type": "u8"
          }
        ]
      }
    },
    {
      "name": "ConfigV3Args",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "primary_migrator",
            "type": "pubkey"
          },
          {
            "name": "raydium_clmm_program",
            "type": "pubkey"
          },
          {
            "name": "raydium_amm_config",
            "type": "pubkey"
          },
          {
            "name": "migration_price_premium_bps",
            "type": "u16"
          },
          {
            "name": "maximum_price_deviation_bps",
            "type": "u16"
          },
          {
            "name": "target_terminal_sol_lamports",
            "type": "u64"
          },
          {
            "name": "maximum_terminal_sol_lamports",
            "type": "u64"
          },
          {
            "name": "maximum_position_count",
            "type": "u8"
          },
          {
            "name": "permissionless_migration_delay_seconds",
            "type": "u32"
          },
          {
            "name": "migration_trading_delay_seconds",
            "type": "u32"
          },
          {
            "name": "protocol_fee_share_bps",
            "type": "u16"
          },
          {
            "name": "creator_fee_share_bps",
            "type": "u16"
          },
          {
            "name": "community_fee_share_bps",
            "type": "u16"
          },
          {
            "name": "community_fee_recipient",
            "type": "pubkey"
          },
          {
            "name": "migration_version",
            "type": "u16"
          },
          {
            "name": "opening_half_width_ticks",
            "type": "u32"
          },
          {
            "name": "opening_quote_share_bps",
            "type": "u16"
          },
          {
            "name": "upside_width_ticks",
            "type": "u32"
          },
          {
            "name": "upside_base_share_bps",
            "type": "u16"
          },
          {
            "name": "terminal_overshoot_bps",
            "type": "u16"
          },
          {
            "name": "max_undeployed_quote_bps",
            "type": "u16"
          }
        ]
      }
    },
    {
      "name": "CreateTokenArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "name",
            "type": "string"
          },
          {
            "name": "symbol",
            "type": "string"
          },
          {
            "name": "uri",
            "type": "string"
          },
          {
            "name": "open_time",
            "type": "u64"
          },
          {
            "name": "curve_type",
            "type": "string"
          }
        ]
      }
    },
    {
      "name": "DistributeClmmFeesArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "index",
            "type": "u8"
          },
          {
            "name": "distribute_quote",
            "docs": [
              "True to pay out the SOL side, false for the token side."
            ],
            "type": "bool"
          }
        ]
      }
    },
    {
      "name": "GRADUATED",
      "docs": [
        "§10: the graduation snapshot, emitted with the reconciled figures (§11)."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "base_vault_balance",
            "type": "u64"
          },
          {
            "name": "quote_vault_balance",
            "type": "u64"
          },
          {
            "name": "stored_quote_reserves",
            "type": "u64"
          },
          {
            "name": "gross_quote_raised",
            "type": "u64"
          },
          {
            "name": "trading_fees_paid",
            "type": "u64"
          },
          {
            "name": "creator_migrate_fee",
            "type": "u64"
          },
          {
            "name": "protocol_migrate_fee",
            "type": "u64"
          },
          {
            "name": "circulating_base",
            "type": "u64"
          },
          {
            "name": "final_curve_buy_price_x64",
            "type": "u128"
          },
          {
            "name": "final_curve_sell_price_x64",
            "type": "u128"
          },
          {
            "name": "first_trade_price_x64",
            "type": "u128"
          },
          {
            "name": "completed_at",
            "type": "i64"
          },
          {
            "name": "completed_slot",
            "type": "u64"
          },
          {
            "name": "total_supply",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "GetBuyQuoteArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "quote_amount",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "GetSellQuoteArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "base_amount",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "GlobalConfig",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "owner",
            "type": "pubkey"
          },
          {
            "name": "protocol_fee_bps",
            "type": "u32"
          },
          {
            "name": "creator_fee_bps",
            "type": "u32"
          },
          {
            "name": "creator_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "protocol_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "price_scale",
            "type": "u128"
          },
          {
            "name": "migrator",
            "type": "pubkey"
          },
          {
            "name": "initialized",
            "type": "bool"
          },
          {
            "name": "max_total_fee_bps",
            "type": "u32"
          },
          {
            "name": "max_total_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "create_fee",
            "type": "u64"
          },
          {
            "name": "program_version",
            "type": "string"
          }
        ]
      }
    },
    {
      "name": "GlobalConfigV2",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "owner",
            "type": "pubkey"
          },
          {
            "name": "protocol_fee_bps",
            "type": "u32"
          },
          {
            "name": "creator_fee_bps",
            "type": "u32"
          },
          {
            "name": "adv_protocol_fee_bps",
            "type": "u32"
          },
          {
            "name": "adv_creator_fee_bps",
            "type": "u32"
          },
          {
            "name": "creator_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "protocol_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "price_scale",
            "type": "u128"
          },
          {
            "name": "migrator",
            "type": "pubkey"
          },
          {
            "name": "initialized",
            "type": "bool"
          },
          {
            "name": "max_total_fee_bps",
            "type": "u32"
          },
          {
            "name": "max_total_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "create_fee",
            "type": "u64"
          },
          {
            "name": "program_version",
            "type": "string"
          }
        ]
      }
    },
    {
      "name": "GlobalConfigV3",
      "docs": [
        "§21's configuration account, plus the position-shape policy that lets the contract",
        "derive its own ticks instead of trusting a caller (§12.2).",
        "",
        "Every token snapshots the policy fields into its `BondingCurveV2` at graduation, so",
        "editing this account can never retroactively change the economics of a token that has",
        "already launched."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "authority",
            "type": "pubkey"
          },
          {
            "name": "primary_migrator",
            "docs": [
              "Holds an exclusive migration window before anyone may step in (§18)."
            ],
            "type": "pubkey"
          },
          {
            "name": "raydium_clmm_program",
            "type": "pubkey"
          },
          {
            "name": "raydium_amm_config",
            "type": "pubkey"
          },
          {
            "name": "migration_price_premium_bps",
            "docs": [
              "Where the pool opens relative to the final curve price, in bps. Capped at 50."
            ],
            "type": "u16"
          },
          {
            "name": "maximum_price_deviation_bps",
            "docs": [
              "How far the realised opening price may drift from the intended one, in bps."
            ],
            "type": "u16"
          },
          {
            "name": "target_terminal_sol_lamports",
            "type": "u64"
          },
          {
            "name": "maximum_terminal_sol_lamports",
            "type": "u64"
          },
          {
            "name": "maximum_position_count",
            "type": "u8"
          },
          {
            "name": "permissionless_migration_delay_seconds",
            "type": "u32"
          },
          {
            "name": "migration_trading_delay_seconds",
            "docs": [
              "DEPRECATED — retained for account-layout compatibility, never read.",
              "",
              "This was meant to delay trading so positions could open at a frozen price, but",
              "Raydium's `create_pool` asserts `block_timestamp > open_time` and rejects any",
              "future value. The same guarantee now comes from the client opening every position",
              "in one transaction; see `initialize_clmm_pool`."
            ],
            "type": "u32"
          },
          {
            "name": "protocol_fee_share_bps",
            "docs": [
              "§17.2 fee split. Must total 10_000."
            ],
            "type": "u16"
          },
          {
            "name": "creator_fee_share_bps",
            "type": "u16"
          },
          {
            "name": "community_fee_share_bps",
            "type": "u16"
          },
          {
            "name": "community_fee_recipient",
            "docs": [
              "Receives the community share; may equal the protocol fee authority."
            ],
            "type": "pubkey"
          },
          {
            "name": "migration_version",
            "type": "u16"
          },
          {
            "name": "opening_half_width_ticks",
            "docs": [
              "Half-width of the opening range, in ticks."
            ],
            "type": "u32"
          },
          {
            "name": "opening_quote_share_bps",
            "docs": [
              "Share of net migration SOL placed in the opening range, in bps."
            ],
            "type": "u16"
          },
          {
            "name": "upside_width_ticks",
            "docs": [
              "How far above the opening range the upside token range reaches, in ticks."
            ],
            "type": "u32"
          },
          {
            "name": "upside_base_share_bps",
            "docs": [
              "Share of leftover tokens placed in the upside range; the rest burns (§14)."
            ],
            "type": "u16"
          },
          {
            "name": "terminal_overshoot_bps",
            "docs": [
              "Discount applied to circulating supply when solving the floor, in bps."
            ],
            "type": "u16"
          },
          {
            "name": "max_undeployed_quote_bps",
            "docs": [
              "Largest share of the raise allowed to stay out of the positions (§13), in bps."
            ],
            "type": "u16"
          },
          {
            "name": "initialized",
            "type": "bool"
          },
          {
            "name": "bump",
            "type": "u8"
          }
        ]
      }
    },
    {
      "name": "InitializeConfigArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "protocol_fee_bps",
            "type": "u32"
          },
          {
            "name": "creator_fee_bps",
            "type": "u32"
          },
          {
            "name": "creator_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "protocol_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "max_total_fee_bps",
            "type": "u32"
          },
          {
            "name": "max_total_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "create_fee",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "InitializeConfigV2Args",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "protocol_fee_bps",
            "type": "u32"
          },
          {
            "name": "creator_fee_bps",
            "type": "u32"
          },
          {
            "name": "adv_protocol_fee_bps",
            "type": "u32"
          },
          {
            "name": "adv_creator_fee_bps",
            "type": "u32"
          },
          {
            "name": "creator_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "protocol_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "max_total_fee_bps",
            "type": "u32"
          },
          {
            "name": "max_total_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "create_fee",
            "type": "u64"
          },
          {
            "name": "price_scale",
            "type": "u128"
          },
          {
            "name": "migrator",
            "type": "pubkey"
          },
          {
            "name": "program_version",
            "type": "string"
          }
        ]
      }
    },
    {
      "name": "MIGRATION_FINALIZED",
      "docs": [
        "§15 step 5."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "pool",
            "type": "pubkey"
          },
          {
            "name": "net_quote_deposited",
            "type": "u64"
          },
          {
            "name": "tokens_deposited_in_clmm",
            "type": "u64"
          },
          {
            "name": "tokens_burned",
            "type": "u64"
          },
          {
            "name": "position_count",
            "type": "u8"
          },
          {
            "name": "account_creation_cost",
            "type": "u64"
          },
          {
            "name": "expected_terminal_quote",
            "type": "u64"
          },
          {
            "name": "migrated_at",
            "type": "i64"
          },
          {
            "name": "migrated_slot",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "MIGRATION_PREPARED",
      "docs": [
        "§15 step 1: the derived, validated position plan."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "expected_dex_price_x64",
            "type": "u128"
          },
          {
            "name": "opening_tick",
            "type": "i32"
          },
          {
            "name": "tick_spacing",
            "type": "u16"
          },
          {
            "name": "base_is_token_0",
            "type": "bool"
          },
          {
            "name": "position_count",
            "type": "u8"
          },
          {
            "name": "clmm_base_amount",
            "type": "u64"
          },
          {
            "name": "clmm_quote_amount",
            "type": "u64"
          },
          {
            "name": "burn_base_amount",
            "type": "u64"
          },
          {
            "name": "expected_terminal_quote",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "MIGRATION_RESET",
      "docs": [
        "A migration unwound back to `GRADUATION_REACHED` by the config authority."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "previous_status",
            "type": "u8"
          },
          {
            "name": "returned_base",
            "type": "u64"
          },
          {
            "name": "returned_quote",
            "type": "u64"
          },
          {
            "name": "returned_lamports",
            "type": "u64"
          },
          {
            "name": "clmm_pool",
            "docs": [
              "Non-default when a pool was already created; the retry must adopt it."
            ],
            "type": "pubkey"
          },
          {
            "name": "reset_at",
            "type": "i64"
          }
        ]
      }
    },
    {
      "name": "MigrationPlanAccount",
      "docs": [
        "One approved position, stored on the curve account so the plan is fixed before any",
        "pool exists and cannot drift between transactions (§15 step 1)."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "position_count",
            "type": "u8"
          },
          {
            "name": "categories",
            "type": {
              "array": [
                "u8",
                3
              ]
            }
          },
          {
            "name": "tick_lowers",
            "type": {
              "array": [
                "i32",
                3
              ]
            }
          },
          {
            "name": "tick_uppers",
            "type": {
              "array": [
                "i32",
                3
              ]
            }
          },
          {
            "name": "base_amounts",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "quote_amounts",
            "type": {
              "array": [
                "u64",
                3
              ]
            }
          },
          {
            "name": "position_nft_mints",
            "docs": [
              "Position NFT mints, filled in as each position opens."
            ],
            "type": {
              "array": [
                "pubkey",
                3
              ]
            }
          },
          {
            "name": "liquidities",
            "docs": [
              "Liquidity Raydium actually minted for each position."
            ],
            "type": {
              "array": [
                "u128",
                3
              ]
            }
          },
          {
            "name": "bump",
            "type": "u8"
          }
        ]
      }
    },
    {
      "name": "MigrationRecord",
      "docs": [
        "§22's immutable per-token migration record. Written once at finalize and never",
        "updated, so the numbers the frontend shows in §20.5 are auditable on-chain."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "clmm_pool",
            "type": "pubkey"
          },
          {
            "name": "amm_config",
            "type": "pubkey"
          },
          {
            "name": "curve_final_price_x64",
            "type": "u128"
          },
          {
            "name": "dex_open_price_x64",
            "type": "u128"
          },
          {
            "name": "dex_open_sqrt_price_x64",
            "docs": [
              "The realised opening price in the pool's own terms, read back from Raydium."
            ],
            "type": "u128"
          },
          {
            "name": "opening_premium_bps",
            "docs": [
              "Realised opening premium over the final curve price, in bps."
            ],
            "type": "i64"
          },
          {
            "name": "gross_quote_raised",
            "type": "u64"
          },
          {
            "name": "trading_fees_paid",
            "type": "u64"
          },
          {
            "name": "migration_fees_paid",
            "type": "u64"
          },
          {
            "name": "net_quote_deposited",
            "type": "u64"
          },
          {
            "name": "account_creation_cost",
            "docs": [
              "Lamports the migrator advanced for Raydium account rent and got back (§13)."
            ],
            "type": "u64"
          },
          {
            "name": "tokens_sold_on_curve",
            "type": "u64"
          },
          {
            "name": "tokens_deposited_in_clmm",
            "type": "u64"
          },
          {
            "name": "tokens_burned",
            "type": "u64"
          },
          {
            "name": "donated_base",
            "docs": [
              "Tokens that arrived in a migration-controlled account after the graduation",
              "snapshot. Burned with everything else, and netted out of the §25.6 invariant so a",
              "donation cannot break it."
            ],
            "type": "u64"
          },
          {
            "name": "position_count",
            "type": "u8"
          },
          {
            "name": "expected_terminal_quote",
            "type": "u64"
          },
          {
            "name": "migrated_at",
            "type": "i64"
          },
          {
            "name": "migrated_slot",
            "type": "u64"
          },
          {
            "name": "finalized",
            "type": "bool"
          },
          {
            "name": "bump",
            "type": "u8"
          }
        ]
      }
    },
    {
      "name": "OpenClmmPositionArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "index",
            "docs": [
              "Index into the approved plan. Positions must be opened in order."
            ],
            "type": "u8"
          }
        ]
      }
    },
    {
      "name": "PREBUY",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "user",
            "type": "pubkey"
          },
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "paid_sol",
            "type": "u64"
          },
          {
            "name": "reserved_base",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "PREBUY_CLAIM",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "user",
            "type": "pubkey"
          },
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "claimed_base",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "PREBUY_REVOKE",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "user",
            "type": "pubkey"
          },
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "refunded_sol",
            "type": "u64"
          },
          {
            "name": "released_base",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "PoolState",
      "docs": [
        "The pool state",
        "",
        "PDA of `[POOL_SEED, config, token_mint_0, token_mint_1]`",
        ""
      ],
      "serialization": "bytemuckunsafe",
      "repr": {
        "kind": "c",
        "packed": true
      },
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "bump",
            "docs": [
              "Bump to identify PDA"
            ],
            "type": {
              "array": [
                "u8",
                1
              ]
            }
          },
          {
            "name": "amm_config",
            "type": "pubkey"
          },
          {
            "name": "owner",
            "type": "pubkey"
          },
          {
            "name": "token_mint_0",
            "docs": [
              "Token pair of the pool, where token_mint_0 address < token_mint_1 address"
            ],
            "type": "pubkey"
          },
          {
            "name": "token_mint_1",
            "type": "pubkey"
          },
          {
            "name": "token_vault_0",
            "docs": [
              "Token pair vault"
            ],
            "type": "pubkey"
          },
          {
            "name": "token_vault_1",
            "type": "pubkey"
          },
          {
            "name": "observation_key",
            "docs": [
              "observation account key"
            ],
            "type": "pubkey"
          },
          {
            "name": "mint_decimals_0",
            "docs": [
              "mint0 and mint1 decimals"
            ],
            "type": "u8"
          },
          {
            "name": "mint_decimals_1",
            "type": "u8"
          },
          {
            "name": "tick_spacing",
            "docs": [
              "The minimum number of ticks between initialized ticks"
            ],
            "type": "u16"
          },
          {
            "name": "liquidity",
            "docs": [
              "The currently in range liquidity available to the pool."
            ],
            "type": "u128"
          },
          {
            "name": "sqrt_price_x64",
            "docs": [
              "The current price of the pool as a sqrt(token_1/token_0) Q64.64 value"
            ],
            "type": "u128"
          },
          {
            "name": "tick_current",
            "docs": [
              "The current tick of the pool, i.e. according to the last tick transition that was run."
            ],
            "type": "i32"
          },
          {
            "name": "observation_index",
            "docs": [
              "the most-recently updated index of the observations array"
            ],
            "type": "u16"
          },
          {
            "name": "observation_update_duration",
            "type": "u16"
          },
          {
            "name": "fee_growth_global_0_x64",
            "docs": [
              "The fee growth as a Q64.64 number, i.e. fees of token_0 and token_1 collected per",
              "unit of liquidity for the entire life of the pool."
            ],
            "type": "u128"
          },
          {
            "name": "fee_growth_global_1_x64",
            "type": "u128"
          },
          {
            "name": "protocol_fees_token_0",
            "docs": [
              "The amounts of token_0 and token_1 that are owed to the protocol."
            ],
            "type": "u64"
          },
          {
            "name": "protocol_fees_token_1",
            "type": "u64"
          },
          {
            "name": "swap_in_amount_token_0",
            "docs": [
              "The amounts in and out of swap token_0 and token_1"
            ],
            "type": "u128"
          },
          {
            "name": "swap_out_amount_token_1",
            "type": "u128"
          },
          {
            "name": "swap_in_amount_token_1",
            "type": "u128"
          },
          {
            "name": "swap_out_amount_token_0",
            "type": "u128"
          },
          {
            "name": "status",
            "docs": [
              "Bitwise representation of the state of the pool",
              "bit0, 1: disable open position and increase liquidity, 0: normal",
              "bit1, 1: disable decrease liquidity, 0: normal",
              "bit2, 1: disable collect fee, 0: normal",
              "bit3, 1: disable collect reward, 0: normal",
              "bit4, 1: disable swap, 0: normal"
            ],
            "type": "u8"
          },
          {
            "name": "padding",
            "docs": [
              "Leave blank for future use"
            ],
            "type": {
              "array": [
                "u8",
                7
              ]
            }
          },
          {
            "name": "reward_infos",
            "type": {
              "array": [
                {
                  "defined": {
                    "name": "RewardInfo"
                  }
                },
                3
              ]
            }
          },
          {
            "name": "tick_array_bitmap",
            "docs": [
              "Packed initialized tick array state"
            ],
            "type": {
              "array": [
                "u64",
                16
              ]
            }
          },
          {
            "name": "total_fees_token_0",
            "docs": [
              "except protocol_fee and fund_fee"
            ],
            "type": "u64"
          },
          {
            "name": "total_fees_claimed_token_0",
            "docs": [
              "except protocol_fee and fund_fee"
            ],
            "type": "u64"
          },
          {
            "name": "total_fees_token_1",
            "type": "u64"
          },
          {
            "name": "total_fees_claimed_token_1",
            "type": "u64"
          },
          {
            "name": "fund_fees_token_0",
            "type": "u64"
          },
          {
            "name": "fund_fees_token_1",
            "type": "u64"
          },
          {
            "name": "open_time",
            "type": "u64"
          },
          {
            "name": "padding1",
            "type": {
              "array": [
                "u64",
                25
              ]
            }
          },
          {
            "name": "padding2",
            "type": {
              "array": [
                "u64",
                32
              ]
            }
          }
        ]
      }
    },
    {
      "name": "PositionRecord",
      "docs": [
        "§22's per-position record."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "clmm_pool",
            "type": "pubkey"
          },
          {
            "name": "index",
            "docs": [
              "Index within the approved plan."
            ],
            "type": "u8"
          },
          {
            "name": "category",
            "docs": [
              "0 opening, 1 downside, 2 upside."
            ],
            "type": "u8"
          },
          {
            "name": "position_nft_mint",
            "type": "pubkey"
          },
          {
            "name": "personal_position",
            "type": "pubkey"
          },
          {
            "name": "lock_authority",
            "docs": [
              "The PDA holding the NFT. Nothing in this program can move it."
            ],
            "type": "pubkey"
          },
          {
            "name": "tick_lower",
            "type": "i32"
          },
          {
            "name": "tick_upper",
            "type": "i32"
          },
          {
            "name": "initial_liquidity",
            "type": "u128"
          },
          {
            "name": "initial_base_amount",
            "type": "u64"
          },
          {
            "name": "initial_quote_amount",
            "type": "u64"
          },
          {
            "name": "trade_fee_rate",
            "docs": [
              "Raydium `trade_fee_rate` of the AmmConfig this pool uses (§22 \"fee configuration\")."
            ],
            "type": "u32"
          },
          {
            "name": "tick_spacing",
            "type": "u16"
          },
          {
            "name": "claimed_base_fees",
            "type": "u64"
          },
          {
            "name": "claimed_quote_fees",
            "type": "u64"
          },
          {
            "name": "distributed_base_fees",
            "type": "u64"
          },
          {
            "name": "distributed_quote_fees",
            "type": "u64"
          },
          {
            "name": "bump",
            "type": "u8"
          }
        ]
      }
    },
    {
      "name": "PrebuyArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "quote_amount",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "PrebuyPosition",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "user",
            "type": "pubkey"
          },
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "paid_quote",
            "type": "u64"
          },
          {
            "name": "creator_fee_due",
            "type": "u64"
          },
          {
            "name": "protocol_fee_due",
            "type": "u64"
          },
          {
            "name": "reserved_base",
            "type": "u64"
          },
          {
            "name": "claimed",
            "type": "bool"
          }
        ]
      }
    },
    {
      "name": "PrepareMigrationArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "rent_buffer_lamports",
            "docs": [
              "Lamports the migrator advances for Raydium account rent. Refunded in full at",
              "finalize, less whatever Raydium actually consumed (§13)."
            ],
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "RevokePrebuyArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "quote_amount",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "RewardInfo",
      "serialization": "bytemuckunsafe",
      "repr": {
        "kind": "c",
        "packed": true
      },
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "reward_state",
            "docs": [
              "Reward state"
            ],
            "type": "u8"
          },
          {
            "name": "open_time",
            "docs": [
              "Reward open time"
            ],
            "type": "u64"
          },
          {
            "name": "end_time",
            "docs": [
              "Reward end time"
            ],
            "type": "u64"
          },
          {
            "name": "last_update_time",
            "docs": [
              "Reward last update time"
            ],
            "type": "u64"
          },
          {
            "name": "emissions_per_second_x64",
            "docs": [
              "Q64.64 number indicates how many tokens per second are earned per unit of liquidity."
            ],
            "type": "u128"
          },
          {
            "name": "reward_total_emissioned",
            "docs": [
              "The total amount of reward emissioned"
            ],
            "type": "u64"
          },
          {
            "name": "reward_claimed",
            "docs": [
              "The total amount of claimed reward"
            ],
            "type": "u64"
          },
          {
            "name": "token_mint",
            "docs": [
              "Reward token mint."
            ],
            "type": "pubkey"
          },
          {
            "name": "token_vault",
            "docs": [
              "Reward vault token account."
            ],
            "type": "pubkey"
          },
          {
            "name": "authority",
            "docs": [
              "The owner that has permission to set reward param"
            ],
            "type": "pubkey"
          },
          {
            "name": "reward_growth_global_x64",
            "docs": [
              "Q64.64 number that tracks the total tokens earned per unit of liquidity since the reward",
              "emissions were turned on."
            ],
            "type": "u128"
          }
        ]
      }
    },
    {
      "name": "SellArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "base_amount",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "SellQuoteResult",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "input_base",
            "type": "u64"
          },
          {
            "name": "gross_quote",
            "type": "u64"
          },
          {
            "name": "net_quote",
            "type": "u64"
          },
          {
            "name": "creator_fee",
            "type": "u64"
          },
          {
            "name": "protocol_fee",
            "type": "u64"
          },
          {
            "name": "total_fee",
            "type": "u64"
          },
          {
            "name": "will_exhaust_curve",
            "type": "bool"
          }
        ]
      }
    },
    {
      "name": "TOKENS_BURNED",
      "docs": [
        "§15 step 4."
      ],
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "burned",
            "type": "u64"
          },
          {
            "name": "planned_burn",
            "docs": [
              "What the approved plan allocated to the burn."
            ],
            "type": "u64"
          },
          {
            "name": "donated",
            "docs": [
              "Tokens sent to the vault after the graduation snapshot, burned along with the rest."
            ],
            "type": "u64"
          },
          {
            "name": "effective_supply",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "TRADE",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "user",
            "type": "pubkey"
          },
          {
            "name": "mint",
            "type": "pubkey"
          },
          {
            "name": "trade_type",
            "type": "bool"
          },
          {
            "name": "base_amount",
            "type": "u64"
          },
          {
            "name": "quote_amount",
            "type": "u64"
          },
          {
            "name": "real_base_before",
            "type": "u64"
          },
          {
            "name": "real_quote_before",
            "type": "u64"
          },
          {
            "name": "virtual_base_before",
            "type": "u64"
          },
          {
            "name": "virtual_quote_before",
            "type": "u64"
          },
          {
            "name": "platform_fee",
            "type": "u64"
          },
          {
            "name": "creator_fee",
            "type": "u64"
          },
          {
            "name": "effective_sol",
            "type": "u64"
          }
        ]
      }
    },
    {
      "name": "UpdateConfigArgs",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "owner",
            "type": "pubkey"
          },
          {
            "name": "protocol_fee_bps",
            "type": "u32"
          },
          {
            "name": "creator_fee_bps",
            "type": "u32"
          },
          {
            "name": "creator_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "protocol_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "max_total_fee_bps",
            "type": "u32"
          },
          {
            "name": "max_total_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "create_fee",
            "type": "u64"
          },
          {
            "name": "migrator",
            "type": "pubkey"
          }
        ]
      }
    },
    {
      "name": "UpdateConfigV2Args",
      "type": {
        "kind": "struct",
        "fields": [
          {
            "name": "owner",
            "type": "pubkey"
          },
          {
            "name": "protocol_fee_bps",
            "type": "u32"
          },
          {
            "name": "creator_fee_bps",
            "type": "u32"
          },
          {
            "name": "adv_protocol_fee_bps",
            "type": "u32"
          },
          {
            "name": "adv_creator_fee_bps",
            "type": "u32"
          },
          {
            "name": "creator_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "protocol_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "max_total_fee_bps",
            "type": "u32"
          },
          {
            "name": "max_total_migrate_fee_bps",
            "type": "u32"
          },
          {
            "name": "create_fee",
            "type": "u64"
          },
          {
            "name": "migrator",
            "type": "pubkey"
          },
          {
            "name": "program_version",
            "type": "string"
          }
        ]
      }
    }
  ]
}