instruction

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: BSD-3-Clause Imports: 7 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 added in v0.1.2

func NewBuyBaseOutInstruction(
	network rpc.Cluster,
	userAddress solana.PublicKey,
	tokenAddress solana.PublicKey,
	bondingCurveAddress solana.PublicKey,
	userAssociatedTokenAddress solana.PublicKey,
	tokenAmountWithDecimals uint64,
	maxSolAmountWithDecimals uint64,
) (*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 CreateInstruction added in v0.7.9

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

func (*CreateInstruction) Accounts added in v0.7.9

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

func (*CreateInstruction) Data added in v0.7.9

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

func (*CreateInstruction) ProgramID added in v0.7.9

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

type SellInstruction

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

func NewCreateInstruction added in v0.7.9

func NewCreateInstruction(
	userAddress solana.PublicKey,
	tokenAddress solana.PublicKey,
	bondingCurveAddress solana.PublicKey,
	name string,
	symbol string,
	uri string,
) (*SellInstruction, error)

func NewSellBaseInInstruction added in v0.1.2

func NewSellBaseInInstruction(
	network rpc.Cluster,
	userAddress solana.PublicKey,
	tokenAddress solana.PublicKey,
	bondingCurveAddress solana.PublicKey,
	userAssociatedTokenAddress solana.PublicKey,
	tokenAmountWithDecimals uint64,
	minSolReceiveAmountWithDecimals uint64,
) (*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