Expand description
Anchor-compatible SDK for the StableSwap program.
Structs§
- Admin
User Context - Accounts for an instruction that requires admin permission.
- Admin
User Context Bumps - Commit
NewAdmin - Accounts for a crate::apply_new_admin instruction.
- Commit
NewAdmin Bumps - Deposit
- Accounts for a crate::deposit instruction.
- Deposit
Bumps - Init
Token - Token accounts for initializing a crate::SwapInfo.
- Init
Token Bumps - Initialize
- Accounts for an crate::initialize instruction.
- Initialize
Bumps - SetFee
Account - Accounts for a crate::set_fee_account instruction.
- SetFee
Account Bumps - Stable
Swap - The StableSwap program.
- Swap
- Accounts for a crate::swap instruction.
- Swap
Bumps - Swap
Info - StableSwap account wrapper for Anchor programs.
- Swap
Output - Token accounts for the output of a StableSwap instruction.
- Swap
Output Bumps - Swap
Token - Token accounts for a crate::swap instruction.
- Swap
Token Bumps - Swap
User Context - Accounts for an instruction that interacts with the swap.
- Swap
User Context Bumps - Withdraw
- Accounts for a crate::withdraw instruction.
- Withdraw
Bumps - Withdraw
One - Accounts for a crate::withdraw_one instruction.
- Withdraw
OneBumps
Constants§
- ID_
CONST - Const version of
ID
Statics§
- ID
- The static program ID
Functions§
- apply_
new_ admin - Creates and invokes a stable_swap_client::instruction::apply_new_admin instruction.
- check_
id - Confirms that a given pubkey is equivalent to the program ID
- commit_
new_ admin - Creates and invokes a stable_swap_client::instruction::commit_new_admin instruction
- deposit
- Creates and invokes a stable_swap_client::instruction::deposit instruction.
- id
- Returns the program ID
- id_
const - Const version of
ID - initialize
- Creates and invokes a stable_swap_client::instruction::initialize instruction.
- pause
- Creates and invokes a stable_swap_client::instruction::pause instruction.
- ramp_a
- Creates and invokes a stable_swap_client::instruction::ramp_a instruction.
- set_
fee_ account - Creates and invokes a stable_swap_client::instruction::set_fee_account instruction.
- set_
new_ fees - Creates and invokes a stable_swap_client::instruction::set_new_fees instruction.
- stop_
ramp_ a - Creates and invokes a stable_swap_client::instruction::stop_ramp_a instruction.
- swap
- Creates and invokes a stable_swap_client::instruction::swap instruction.
- unpause
- Creates and invokes a stable_swap_client::instruction::unpause instruction.
- withdraw
- Creates and invokes a stable_swap_client::instruction::withdraw instruction.
- withdraw_
one - Creates and invokes a stable_swap_client::instruction::withdraw_one instruction.