instruction

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuyInstruction

type BuyInstruction struct {
	// contains filtered or unexported fields
}

func NewBuyBaseOutInstruction

func NewBuyBaseOutInstruction(
	userAddress solana.PublicKey,
	tokenAddress solana.PublicKey,
	userWSOLAssociatedAccount solana.PublicKey,
	userTokenAssociatedAccount solana.PublicKey,
	tokenAmount type_.TokenAmountInfo,
	maxCostSolAmount string,
	raydiumSwapKeys raydium_type.RaydiumSwapKeys,
) (*BuyInstruction, error)

func (*BuyInstruction) Accounts

func (t *BuyInstruction) Accounts() []*solana.AccountMeta

func (*BuyInstruction) Data

func (t *BuyInstruction) Data() ([]byte, error)

func (*BuyInstruction) ProgramID

func (t *BuyInstruction) ProgramID() solana.PublicKey

type SellInstruction

type SellInstruction struct {
	// contains filtered or unexported fields
}

func NewSellBaseInInstruction

func NewSellBaseInInstruction(
	userAddress solana.PublicKey,
	tokenAddress solana.PublicKey,
	userWSOLAssociatedAccount solana.PublicKey,
	userTokenAssociatedAccount solana.PublicKey,
	tokenAmount type_.TokenAmountInfo,
	minReceiveSOLAmount string,
	raydiumSwapKeys raydium_type.RaydiumSwapKeys,
) (*SellInstruction, error)

func (*SellInstruction) Accounts

func (t *SellInstruction) Accounts() []*solana.AccountMeta

func (*SellInstruction) Data

func (t *SellInstruction) Data() ([]byte, error)

func (*SellInstruction) ProgramID

func (t *SellInstruction) ProgramID() solana.PublicKey

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL