Module spl_token_swap::instruction [−][src]
Instruction types
Structs
DepositAllTokenTypes | DepositAllTokenTypes instruction data |
DepositSingleTokenTypeExactAmountIn | Deposit one token type, exact amount in instruction data |
Initialize | Initialize instruction data |
Swap | Swap instruction data |
WithdrawAllTokenTypes | WithdrawAllTokenTypes instruction data |
WithdrawSingleTokenTypeExactAmountOut | WithdrawAllTokenTypes instruction data |
Enums
SwapInstruction | Instructions supported by the token swap program. |
Functions
deposit_all_token_types | Creates a ‘deposit_all_token_types’ instruction. |
deposit_single_token_type_exact_amount_in | Creates a ‘deposit_single_token_type_exact_amount_in’ instruction. |
initialize | Creates an ‘initialize’ instruction. |
swap | Creates a ‘swap’ instruction. |
unpack | Unpacks a reference from a bytes buffer. TODO actually pack / unpack instead of relying on normal memory layout. |
withdraw_all_token_types | Creates a ‘withdraw_all_token_types’ instruction. |
withdraw_single_token_type_exact_amount_out | Creates a ‘withdraw_single_token_type_exact_amount_out’ instruction. |