Crate stable_swap_anchor[][src]

Expand description

Anchor-compatible SDK for the StableSwap program.

Structs

Accounts for a deposit instruction.



Accounts for a ‘swap’ instruction.

Swap information.

Token accounts for the output of a StableSwap instruction.

Token accounts for a ‘swap’ instruction.

Accounts for an instruction that interacts with the swap.

Accounts for a ‘withdraw’ instruction.

Accounts for a ‘withdraw_one’ instruction.

Statics

The static program ID

Functions

Confirms that a given pubkey is equivalent to the program ID

Creates and invokes a stable_swap_client::instruction::deposit instruction.

Returns the program ID

Creates and invokes a stable_swap_client::instruction::initialize instruction.

Creates and invokes a stable_swap_client::instruction::swap instruction.

Creates and invokes a stable_swap_client::instruction::withdraw instruction.

Creates and invokes a stable_swap_client::instruction::withdraw_one instruction.