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 NewBuyInstruction ¶
func NewBuyInstruction( userAddress solana.PublicKey, tokenAddress solana.PublicKey, bondingCurveAddress solana.PublicKey, userAssociatedTokenAddress solana.PublicKey, tokenAmount string, maxCostSolAmount string, ) (*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 NewSellInstruction ¶
func NewSellInstruction( userAddress solana.PublicKey, tokenAddress solana.PublicKey, bondingCurveAddress solana.PublicKey, userAssociatedTokenAddress solana.PublicKey, tokenAmount string, minSolReceiveAmount string, ) (*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
Click to show internal directories.
Click to hide internal directories.