{ "address": "PdMDrKEMaX8q7CCJb7NvUCxerBCcsFUa4LjBEynTtEd", "metadata": { "name": "pumpup", "version": "0.1.0", "spec": "0.1.0", "description": "Created with Anchor" }, "instructions": [ { "name": "add_liquidity", "discriminator": [ 181, 157, 89, 67, 143, 182, 52, 72 ], "accounts": [ { "name": "pool", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "pool.token_a_mint", "account": "Pool" }, { "kind": "account", "path": "pool.token_b_mint", "account": "Pool" } ] } }, { "name": "token_a_vault", "docs": [ "CHECK" ], "writable": true }, { "name": "token_b_vault", "docs": [ "CHECK" ], "writable": true }, { "name": "lp_mint", "docs": [ "CHECK" ], "writable": true }, { "name": "user_token_a", "writable": true }, { "name": "user_token_b", "writable": true }, { "name": "user_lp_token", "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": "lp_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "user", "writable": true, "signer": true }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "token_a_amount", "type": "u64" }, { "name": "token_b_amount", "type": "u64" }, { "name": "minimum_lp_tokens", "type": "u64" } ] }, { "name": "buy", "discriminator": [ 102, 6, 61, 18, 1, 218, 235, 234 ], "accounts": [ { "name": "config", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "mint" }, { "name": "pool_token_account", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_sol_account" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "pool_sol_account", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "mint" } ] } }, { "name": "ai_token_account", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "config" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "pumpup_fee", "writable": true }, { "name": "user_token_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": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "user", "writable": true, "signer": true }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "token_amount", "type": "u64" }, { "name": "max_sol_amount", "type": "u64" } ] }, { "name": "create", "discriminator": [ 24, 30, 200, 40, 5, 28, 7, 119 ], "accounts": [ { "name": "creator", "writable": true, "signer": true }, { "name": "mint", "writable": true, "signer": true }, { "name": "mint_authority", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 109, 105, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "pool_sol_account", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "mint" } ] } }, { "name": "pool_token_account", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_sol_account" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "metadata_account", "writable": true }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "token_metadata_program", "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "name", "type": "string" }, { "name": "symbol", "type": "string" }, { "name": "uri", "type": "string" } ] }, { "name": "create_leverage", "discriminator": [ 71, 62, 173, 225, 174, 65, 205, 227 ], "accounts": [ { "name": "creator", "writable": true, "signer": true }, { "name": "mint", "writable": true, "signer": true }, { "name": "mint_authority", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 109, 105, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "pool_sol_account", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "mint" } ] } }, { "name": "pool_token_account", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_sol_account" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "metadata_account", "writable": true }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "token_metadata_program", "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "name", "type": "string" }, { "name": "symbol", "type": "string" }, { "name": "uri", "type": "string" } ] }, { "name": "feed", "discriminator": [ 46, 213, 237, 176, 190, 113, 182, 94 ], "accounts": [ { "name": "config", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "mint" }, { "name": "original", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 111, 114, 105, 103, 105, 110, 97, 108, 46, 100, 97, 116, 97 ] }, { "kind": "account", "path": "mint" } ] } }, { "name": "migration_address", "writable": true, "signer": true }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "datas", "type": { "array": [ "f64", 33 ] } } ] }, { "name": "inference", "discriminator": [ 1, 249, 84, 211, 187, 82, 82, 51 ], "accounts": [ { "name": "config", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "mint" }, { "name": "original", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 111, 114, 105, 103, 105, 110, 97, 108, 46, 100, 97, 116, 97 ] }, { "kind": "account", "path": "mint" } ] } }, { "name": "pool_sol_account", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "mint" } ] } }, { "name": "migration_address", "writable": true, "signer": true }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "period", "type": "u64" } ] }, { "name": "init_ai_token", "discriminator": [ 195, 26, 226, 86, 175, 143, 32, 58 ], "accounts": [ { "name": "creator", "writable": true, "signer": true }, { "name": "config", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "mint" }, { "name": "ai_token_account", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "config" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "system_program", "address": "11111111111111111111111111111111" } ], "args": [] }, { "name": "initialize", "discriminator": [ 175, 175, 109, 31, 13, 152, 155, 237 ], "accounts": [ { "name": "config", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "fee_address", "docs": [ "CHECK" ], "writable": true }, { "name": "migration_address", "docs": [ "CHECK" ], "writable": true }, { "name": "mint_authority", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 109, 105, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "authority_address", "writable": true, "signer": true }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" }, { "name": "system_program", "address": "11111111111111111111111111111111" } ], "args": [ { "name": "fee_rate", "type": "u64" } ] }, { "name": "initialize_divide", "discriminator": [ 82, 21, 35, 146, 161, 99, 102, 28 ], "accounts": [ { "name": "pool", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "pool.token_a_mint", "account": "Pool" }, { "kind": "account", "path": "pool.token_b_mint", "account": "Pool" } ] } }, { "name": "token_b_mint" }, { "name": "fee_address" }, { "name": "fee_recipient", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "fee_address" }, { "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_b_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "payer", "writable": true, "signer": true }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" } ], "args": [ { "name": "fee_rate", "type": "u16" } ] }, { "name": "initialize_lp_token", "discriminator": [ 124, 21, 221, 232, 250, 37, 120, 35 ], "accounts": [ { "name": "pool", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "pool.token_a_mint", "account": "Pool" }, { "kind": "account", "path": "pool.token_b_mint", "account": "Pool" } ] } }, { "name": "lp_mint", "docs": [ "LP代币Mint账户 - 用于铸造流动性提供者代币" ], "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 108, 112, 95, 109, 105, 110, 116 ] }, { "kind": "account", "path": "pool" } ] } }, { "name": "payer", "writable": true, "signer": true }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" } ], "args": [] }, { "name": "initialize_pool", "discriminator": [ 95, 180, 10, 172, 84, 174, 232, 40 ], "accounts": [ { "name": "pool", "docs": [ "新的流动性池账户" ], "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "token_a_mint" }, { "kind": "account", "path": "token_b_mint" } ] } }, { "name": "token_a_mint", "docs": [ "代币A的Mint账户" ] }, { "name": "token_b_mint", "docs": [ "代币B的Mint账户(USDT)" ] }, { "name": "config", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "fee_address" }, { "name": "fee_recipient", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "fee_address" }, { "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_b_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "payer", "writable": true, "signer": true }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [] }, { "name": "initialize_tokena", "discriminator": [ 209, 97, 45, 4, 27, 32, 11, 205 ], "accounts": [ { "name": "pool", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "pool.token_a_mint", "account": "Pool" }, { "kind": "account", "path": "pool.token_b_mint", "account": "Pool" } ] } }, { "name": "token_a_mint", "docs": [ "代币Mint账户" ] }, { "name": "token_a_vault", "docs": [ "代币的保险库账户 - 存储池中的对应代币A" ], "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 118, 97, 117, 108, 116 ] }, { "kind": "account", "path": "pool" }, { "kind": "account", "path": "token_a_mint" } ] } }, { "name": "payer", "writable": true, "signer": true }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" } ], "args": [] }, { "name": "initialize_tokenb", "discriminator": [ 218, 101, 38, 193, 111, 170, 244, 254 ], "accounts": [ { "name": "pool", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "pool.token_a_mint", "account": "Pool" }, { "kind": "account", "path": "pool.token_b_mint", "account": "Pool" } ] } }, { "name": "token_b_mint", "docs": [ "代币B的Mint账户(USDT)" ] }, { "name": "token_b_vault", "docs": [ "代币的保险库账户 - 存储池中的对应代币A" ], "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 118, 97, 117, 108, 116 ] }, { "kind": "account", "path": "pool" }, { "kind": "account", "path": "token_b_mint" } ] } }, { "name": "payer", "writable": true, "signer": true }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" } ], "args": [] }, { "name": "migrate_pool", "discriminator": [ 55, 170, 171, 123, 210, 69, 39, 172 ], "accounts": [ { "name": "pool", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "pool.token_a_mint", "account": "Pool" }, { "kind": "account", "path": "pool.token_b_mint", "account": "Pool" } ] } }, { "name": "token_b_mint" }, { "name": "fee_address2" }, { "name": "fee_recipient2", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "fee_address2" }, { "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_b_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "payer", "writable": true, "signer": true }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" } ], "args": [] }, { "name": "quick_create", "discriminator": [ 127, 6, 145, 127, 36, 205, 4, 225 ], "accounts": [ { "name": "creator", "writable": true, "signer": true }, { "name": "mint", "writable": true, "signer": true }, { "name": "mint_authority", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 109, 105, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "pool_sol_account", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "mint" } ] } }, { "name": "pool_token_account", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_sol_account" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "metadata_account", "writable": true }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "token_metadata_program", "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "name", "type": "string" }, { "name": "symbol", "type": "string" }, { "name": "uri", "type": "string" } ] }, { "name": "quick_create_leverage", "discriminator": [ 24, 2, 81, 246, 97, 77, 131, 127 ], "accounts": [ { "name": "creator", "writable": true, "signer": true }, { "name": "mint", "writable": true, "signer": true }, { "name": "mint_authority", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 109, 105, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "pool_sol_account", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "mint" } ] } }, { "name": "pool_token_account", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_sol_account" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "metadata_account", "writable": true }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "token_metadata_program", "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "name", "type": "string" }, { "name": "symbol", "type": "string" }, { "name": "uri", "type": "string" } ] }, { "name": "remove_liquidity", "docs": [ "移除流动性" ], "discriminator": [ 80, 85, 209, 72, 24, 206, 177, 108 ], "accounts": [ { "name": "pool", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "pool.token_a_mint", "account": "Pool" }, { "kind": "account", "path": "pool.token_b_mint", "account": "Pool" } ] } }, { "name": "token_a_vault", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 118, 97, 117, 108, 116 ] }, { "kind": "account", "path": "pool" }, { "kind": "account", "path": "pool.token_a_mint", "account": "Pool" } ] } }, { "name": "token_b_vault", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 118, 97, 117, 108, 116 ] }, { "kind": "account", "path": "pool" }, { "kind": "account", "path": "pool.token_b_mint", "account": "Pool" } ] } }, { "name": "lp_mint", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 108, 112, 95, 109, 105, 110, 116 ] }, { "kind": "account", "path": "pool" } ] } }, { "name": "user_token_a", "writable": true }, { "name": "user_token_b", "writable": true }, { "name": "user_lp_token", "writable": true }, { "name": "user", "writable": true, "signer": true }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" } ], "args": [ { "name": "lp_token_amount", "type": "u64" }, { "name": "minimum_token_a", "type": "u64" }, { "name": "minimum_token_b", "type": "u64" } ] }, { "name": "sell", "discriminator": [ 51, 230, 133, 164, 1, 127, 131, 173 ], "accounts": [ { "name": "config", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "mint" }, { "name": "pool_token_account", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_sol_account" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "pool_sol_account", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "mint" } ] } }, { "name": "ai_token_account", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "config" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "pumpup_fee", "writable": true }, { "name": "user_token_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": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "user", "writable": true, "signer": true }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "token_amount", "type": "u64" }, { "name": "min_sol_amount", "type": "u64" } ] }, { "name": "swap", "discriminator": [ 248, 198, 158, 145, 225, 117, 135, 200 ], "accounts": [ { "name": "pool", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "pool.token_a_mint", "account": "Pool" }, { "kind": "account", "path": "pool.token_b_mint", "account": "Pool" } ] } }, { "name": "token_a_vault", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 118, 97, 117, 108, 116 ] }, { "kind": "account", "path": "pool" }, { "kind": "account", "path": "pool.token_a_mint", "account": "Pool" } ] } }, { "name": "token_b_vault", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 114, 119, 97, 46, 118, 97, 117, 108, 116 ] }, { "kind": "account", "path": "pool" }, { "kind": "account", "path": "pool.token_b_mint", "account": "Pool" } ] } }, { "name": "user_token_in", "writable": true }, { "name": "user_token_out", "writable": true }, { "name": "fee_recipient_token", "writable": true }, { "name": "fee_recipient_token2", "writable": true }, { "name": "user", "writable": true, "signer": true }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "amount_in", "type": "u64" }, { "name": "minimum_amount_out", "type": "u64" } ] }, { "name": "withdraw", "discriminator": [ 183, 18, 70, 156, 148, 109, 161, 34 ], "accounts": [ { "name": "config", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "mint", "writable": true }, { "name": "pool_token_account", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_sol_account" }, { "kind": "account", "path": "token_program" }, { "kind": "account", "path": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "pool_sol_account", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 117, 109, 112, 117, 112, 46, 112, 111, 111, 108 ] }, { "kind": "account", "path": "mint" } ] } }, { "name": "ai_token_account", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "config" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "pumpup_fee", "writable": true }, { "name": "to_sol_account", "writable": true, "signer": true }, { "name": "rent", "address": "SysvarRent111111111111111111111111111111111" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "launch_account", "writable": true }, { "name": "launch_token_account", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "launch_account" }, { "kind": "account", "path": "token_program" }, { "kind": "account", "path": "mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "pumpup_migration_amount", "type": "u64" } ] } ], "accounts": [ { "name": "AIOriginalDataAccount", "discriminator": [ 125, 158, 65, 141, 197, 244, 39, 160 ] }, { "name": "BondingCurve", "discriminator": [ 23, 183, 248, 55, 96, 216, 172, 96 ] }, { "name": "Pool", "discriminator": [ 241, 154, 109, 4, 17, 177, 109, 188 ] }, { "name": "PumpupConfiguration", "discriminator": [ 36, 175, 125, 65, 27, 3, 84, 217 ] } ], "events": [ { "name": "CreateMintEvent", "discriminator": [ 239, 193, 191, 44, 156, 194, 85, 141 ] }, { "name": "FeedEvent", "discriminator": [ 250, 174, 105, 83, 244, 245, 23, 11 ] }, { "name": "MintLeverageEvent", "discriminator": [ 64, 149, 175, 150, 7, 170, 9, 69 ] }, { "name": "RWAInitEvent", "discriminator": [ 171, 102, 39, 251, 156, 173, 88, 8 ] }, { "name": "RWATradeEvent", "discriminator": [ 163, 38, 91, 101, 120, 148, 151, 90 ] }, { "name": "TradeEvent", "discriminator": [ 189, 219, 127, 211, 78, 230, 97, 238 ] } ], "errors": [ { "code": 6000, "name": "InvalidAmount", "msg": "Invalid amount provided" }, { "code": 6001, "name": "InvalidFeeRecipient", "msg": "Invalid fee recipient" }, { "code": 6002, "name": "InsufficientLiquidity", "msg": "Insufficient liquidity in the pool" }, { "code": 6003, "name": "SlippageExceeded", "msg": "Slippage tolerance exceeded" }, { "code": 6004, "name": "InvalidTokenMint", "msg": "Invalid token mint" }, { "code": 6005, "name": "DuplicateTokens", "msg": "Duplicate tokens" }, { "code": 6006, "name": "InvalidTokenAVault", "msg": "Invalid token_a_vault account" }, { "code": 6007, "name": "InvalidTokenBVault", "msg": "Invalid token_b_vault account" }, { "code": 6008, "name": "InvalidLpMint", "msg": "Invalid lp_mint account" }, { "code": 6009, "name": "PoolPaused", "msg": "Pool is paused" }, { "code": 6010, "name": "Unauthorized", "msg": "Unauthorized access" }, { "code": 6011, "name": "InvalidFeeRate", "msg": "Invalid fee rate" }, { "code": 6012, "name": "PoolAlreadyExists", "msg": "Pool already exists" }, { "code": 6013, "name": "MathOverflow", "msg": "Mathematical overflow" }, { "code": 6014, "name": "InvalidLpTokenAmount", "msg": "Invalid LP token amount" }, { "code": 6015, "name": "MinimumLiquidityNotMet", "msg": "Minimum liquidity not met" }, { "code": 6016, "name": "TokenBMustBeUsdt", "msg": "Token B must be USDT" }, { "code": 6017, "name": "InvalidPayer", "msg": "Invalid payer" } ], "types": [ { "name": "AIOriginalDataAccount", "type": { "kind": "struct", "fields": [ { "name": "bump", "type": "u8" }, { "name": "period", "type": "u64" }, { "name": "period_done", "type": "bool" }, { "name": "regulated", "type": "bool" }, { "name": "sol", "type": "f64" }, { "name": "datas", "type": { "array": [ "f64", 42 ] } } ] } }, { "name": "BondingCurve", "type": { "kind": "struct", "fields": [ { "name": "launch_token_surplus", "type": "u64" }, { "name": "virtual_sol", "type": "u64" }, { "name": "real_sol", "type": "u64" }, { "name": "pool_sol_reserves", "type": "u64" }, { "name": "pool_token_reserves", "type": "u64" }, { "name": "current_leverage_index", "type": "u8" }, { "name": "leverage", "type": { "vec": { "array": [ "u64", 3 ] } } } ] } }, { "name": "CreateMintEvent", "type": { "kind": "struct", "fields": [ { "name": "mint", "type": "pubkey" }, { "name": "name", "type": "string" }, { "name": "symbol", "type": "string" }, { "name": "uri", "type": "string" }, { "name": "pool_sol_address", "type": "pubkey" }, { "name": "pool_token_address", "type": "pubkey" }, { "name": "user", "type": "pubkey" }, { "name": "timestamp", "type": "i64" }, { "name": "launch_token_surplus", "type": "u64" }, { "name": "pool_sol_reserves", "type": "u64" }, { "name": "pool_token_reserves", "type": "u64" }, { "name": "is_leverage", "type": "bool" } ] } }, { "name": "FeedEvent", "type": { "kind": "struct", "fields": [ { "name": "period", "type": "u64" } ] } }, { "name": "InitProgress", "type": { "kind": "enum", "variants": [ { "name": "START" }, { "name": "COMPLETED" } ] } }, { "name": "MintLeverageEvent", "type": { "kind": "struct", "fields": [ { "name": "mint", "type": "pubkey" }, { "name": "period", "type": "u64" }, { "name": "regulated", "type": "bool" }, { "name": "timestamp", "type": "i64" }, { "name": "launch_token_surplus", "type": "u64" }, { "name": "pool_sol_reserves", "type": "u64" }, { "name": "pool_token_reserves", "type": "u64" }, { "name": "leverage", "type": { "vec": { "array": [ "u64", 3 ] } } } ] } }, { "name": "Pool", "type": { "kind": "struct", "fields": [ { "name": "token_a_mint", "docs": [ "代币A的mint地址" ], "type": "pubkey" }, { "name": "token_b_mint", "docs": [ "代币B的mint地址(USDT)" ], "type": "pubkey" }, { "name": "token_a_vault", "docs": [ "代币A金库账户" ], "type": "pubkey" }, { "name": "token_b_vault", "docs": [ "代币B金库账户" ], "type": "pubkey" }, { "name": "lp_mint", "docs": [ "LP代币mint" ], "type": "pubkey" }, { "name": "fee_recipient", "docs": [ "手续费接收地址" ], "type": "pubkey" }, { "name": "token_a_reserve", "docs": [ "代币A储备量" ], "type": "u64" }, { "name": "token_b_reserve", "docs": [ "代币B储备量" ], "type": "u64" }, { "name": "lp_token_supply", "docs": [ "LP代币总供应量" ], "type": "u64" }, { "name": "fee_rate", "docs": [ "手续费率(基点,100=1%)" ], "type": "u16" }, { "name": "bump", "docs": [ "PDA bump" ], "type": "u8" }, { "name": "fee_recipient2", "type": "pubkey" }, { "name": "fee_rate2", "docs": [ "分润比(基点,100=1%)" ], "type": "u16" } ] } }, { "name": "PumpupConfiguration", "serialization": "bytemuckunsafe", "repr": { "kind": "rust", "packed": true }, "type": { "kind": "struct", "fields": [ { "name": "bump", "type": "u8" }, { "name": "fee_rate", "type": "u64" }, { "name": "authority_address", "type": "pubkey" }, { "name": "fee_address", "type": "pubkey" }, { "name": "migration_address", "type": "pubkey" } ] } }, { "name": "RWAInitEvent", "type": { "kind": "struct", "fields": [ { "name": "pool", "type": "pubkey" }, { "name": "init_progress", "type": { "defined": { "name": "InitProgress" } } }, { "name": "token_a_mint", "type": "pubkey" }, { "name": "token_b_mint", "type": "pubkey" }, { "name": "token_a_vault", "type": "pubkey" }, { "name": "token_b_vault", "type": "pubkey" }, { "name": "timestamp", "type": "i64" }, { "name": "lp_mint", "type": "pubkey" }, { "name": "fee_recipient", "type": "pubkey" }, { "name": "token_a_reserve", "type": "u64" }, { "name": "token_b_reserve", "type": "u64" }, { "name": "lp_token_supply", "type": "u64" }, { "name": "fee_rate", "type": "u16" } ] } }, { "name": "RWATradeEvent", "type": { "kind": "struct", "fields": [ { "name": "pool", "type": "pubkey" }, { "name": "event_type", "type": { "defined": { "name": "TradeEventType" } } }, { "name": "token_a_mint", "type": "pubkey" }, { "name": "token_a_amount", "type": "u64" }, { "name": "token_b_mint", "type": "pubkey" }, { "name": "token_b_amount", "type": "u64" }, { "name": "fee_amount", "type": "u64" }, { "name": "user", "type": "pubkey" }, { "name": "pool_tokena_reserves", "type": "u64" }, { "name": "pool_tokenb_reserves", "type": "u64" }, { "name": "timestamp", "type": "i64" } ] } }, { "name": "TradeEvent", "type": { "kind": "struct", "fields": [ { "name": "mint", "type": "pubkey" }, { "name": "sol_amount", "type": "u64" }, { "name": "token_amount", "type": "u64" }, { "name": "ai_token_amount", "type": "u64" }, { "name": "event_type", "type": { "defined": { "name": "TradeEventType" } } }, { "name": "user", "type": "pubkey" }, { "name": "timestamp", "type": "i64" }, { "name": "pumpup_fee", "type": "u64" }, { "name": "pool_real_sol_amount", "type": "u64" }, { "name": "pool_sol_reserves", "type": "u64" }, { "name": "pool_token_reserves", "type": "u64" } ] } }, { "name": "TradeEventType", "type": { "kind": "enum", "variants": [ { "name": "BUY" }, { "name": "SELL" }, { "name": "WITHDRAW" }, { "name": "RwaBuy" }, { "name": "RwaSell" } ] } } ] }