MCPcopy Create free account

hub / github.com/alphaoinker/Pump.fun-Smart-Contract / functions

Functions24 in github.com/alphaoinker/Pump.fun-Smart-Contract

↓ 2 callersMethodbuy
( &mut self, // _bonding_configuration_account: &Account<'info, CurveConfiguration>, t
programs/bonding_curve/src/state.rs:232
↓ 2 callersMethodsell
( &mut self, token_accounts: ( &mut Account<'info, Mint>, &mut Account
programs/bonding_curve/src/state.rs:296
↓ 2 callersMethodtransfer_sol_from_pool
( &self, from: &mut AccountInfo<'info>, to: &Signer<'info>, amount: u64,
programs/bonding_curve/src/state.rs:431
↓ 2 callersMethodtransfer_sol_to_pool
( &self, from: &Signer<'info>, to: &mut AccountInfo<'info>, amount: u64,
programs/bonding_curve/src/state.rs:461
↓ 2 callersMethodtransfer_token_from_pool
( &self, from: &Account<'info, TokenAccount>, to: &Account<'info, TokenAccount>,
programs/bonding_curve/src/state.rs:383
↓ 2 callersMethodtransfer_token_to_pool
( &self, from: &Account<'info, TokenAccount>, to: &Account<'info, TokenAccount>,
programs/bonding_curve/src/state.rs:409
↓ 1 callersMethodupdate_reserves
(&mut self, reserve_token: u64, reserve_sol: u64)
programs/bonding_curve/src/state.rs:168
Functionadd_liquidity
( ctx: Context<AddLiquidity>, )
programs/bonding_curve/src/lib.rs:25
Methodadd_liquidity
( &mut self, token_accounts: ( &mut Account<'info, Mint>, &mut Account
programs/bonding_curve/src/state.rs:174
Functionbuy
(ctx: Context<Buy>, amount: u64)
programs/bonding_curve/src/lib.rs:35
Functionbuy
(ctx: Context<Buy>, amount: u64)
programs/bonding_curve/src/instructions/buy.rs:9
Functioncalculate_amount_out
(reserve_token_with_decimal: u64, amount_with_decimal: u64)
programs/bonding_curve/src/state.rs:484
Functionconvert_from_float
(value: f64, decimals: u8)
programs/bonding_curve/src/utils/calc.rs:7
Functionconvert_to_float
(value: u64, decimals: u8)
programs/bonding_curve/src/utils/calc.rs:3
Functioncreate_pool
(ctx: Context<CreateLiquidityPool>)
programs/bonding_curve/src/lib.rs:21
Functioncreate_pool
(ctx: Context<CreateLiquidityPool>)
programs/bonding_curve/src/instructions/create_pool.rs:8
Functioninitialize
(ctx: Context<InitializeCurveConfiguration>, fee: f64)
programs/bonding_curve/src/lib.rs:17
Functioninitialize
( ctx: Context<InitializeCurveConfiguration>, fees: f64, )
programs/bonding_curve/src/instructions/initialize.rs:4
Methodnew
(fees: f64)
programs/bonding_curve/src/state.rs:20
Functionremove_liquidity
(ctx: Context<RemoveLiquidity>, bump: u8)
programs/bonding_curve/src/lib.rs:31
Methodremove_liquidity
( &mut self, token_accounts: ( &mut Account<'info, Mint>, &mut Account
programs/bonding_curve/src/state.rs:206
Functionsell
(ctx: Context<Sell>, amount: u64, bump: u8)
programs/bonding_curve/src/lib.rs:39
Functionsell
(ctx: Context<Sell>, amount: u64, bump: u8)
programs/bonding_curve/src/instructions/sell.rs:9
Functionsleep
(ms: number)
tests/bonding-curve.ts:18