Documentation ¶
Index ¶
- Constants
- Variables
- func InstructionIDToName(id ag_binary.TypeID) string
- func SetProgramID(pubkey ag_solanago.PublicKey)
- type AddItem
- func (inst AddItem) Build() *Instruction
- func (inst *AddItem) EncodeToTree(parent ag_treeout.Branches)
- func (inst *AddItem) GetItemAccount() *ag_solanago.AccountMeta
- func (inst *AddItem) GetMintAccount() *ag_solanago.AccountMeta
- func (inst *AddItem) GetOwnerAccount() *ag_solanago.AccountMeta
- func (inst *AddItem) GetSystemProgramAccount() *ag_solanago.AccountMeta
- func (obj AddItem) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *AddItem) SetBump(bump uint8) *AddItem
- func (inst *AddItem) SetFoxy(foxy bool) *AddItem
- func (inst *AddItem) SetItemAccount(item ag_solanago.PublicKey) *AddItem
- func (inst *AddItem) SetMintAccount(mint ag_solanago.PublicKey) *AddItem
- func (inst *AddItem) SetOwnerAccount(owner ag_solanago.PublicKey) *AddItem
- func (inst *AddItem) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *AddItem
- func (obj *AddItem) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *AddItem) Validate() error
- func (inst AddItem) ValidateAndBuild() (*Instruction, error)
- type BuyItem
- func (inst BuyItem) Build() *Instruction
- func (inst *BuyItem) EncodeToTree(parent ag_treeout.Branches)
- func (inst *BuyItem) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetBuyerFoxyAccountAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetFoxyAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetFuckoffAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetItemAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetMintAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetMintMarketAccountAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetMintUserAccountAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetOwnerAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetPaymentAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetRentAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetSellerFoxyAccountAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetSignerAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetSystemProgramAccount() *ag_solanago.AccountMeta
- func (inst *BuyItem) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (obj BuyItem) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *BuyItem) SetAmount(amount uint64) *BuyItem
- func (inst *BuyItem) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetBuyerFoxyAccountAccount(buyerFoxyAccount ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetFoxyAccount(foxy ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetFuckoff(fuckoff uint64) *BuyItem
- func (inst *BuyItem) SetFuckoffAccount(fuckoff ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetItemAccount(item ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetMintAccount(mint ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetMintMarketAccountAccount(mintMarketAccount ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetMintUserAccountAccount(mintUserAccount ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetOwnerAccount(owner ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetPaymentAccount(payment ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetPrice(price uint64) *BuyItem
- func (inst *BuyItem) SetRentAccount(rent ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetSellerFoxyAccountAccount(sellerFoxyAccount ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetSignerAccount(signer ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetSixtynine(sixtynine uint64) *BuyItem
- func (inst *BuyItem) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *BuyItem
- func (inst *BuyItem) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *BuyItem
- func (obj *BuyItem) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *BuyItem) Validate() error
- func (inst BuyItem) ValidateAndBuild() (*Instruction, error)
- type CancelOrder
- func (inst CancelOrder) Build() *Instruction
- func (inst *CancelOrder) EncodeToTree(parent ag_treeout.Branches)
- func (inst *CancelOrder) GetMintAccount() *ag_solanago.AccountMeta
- func (inst *CancelOrder) GetOrderAccount() *ag_solanago.AccountMeta
- func (inst *CancelOrder) GetOwnerAccount() *ag_solanago.AccountMeta
- func (obj CancelOrder) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *CancelOrder) SetMintAccount(mint ag_solanago.PublicKey) *CancelOrder
- func (inst *CancelOrder) SetOrderAccount(order ag_solanago.PublicKey) *CancelOrder
- func (inst *CancelOrder) SetOwnerAccount(owner ag_solanago.PublicKey) *CancelOrder
- func (obj *CancelOrder) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *CancelOrder) Validate() error
- func (inst CancelOrder) ValidateAndBuild() (*Instruction, error)
- type CloseItem
- func (inst CloseItem) Build() *Instruction
- func (inst *CloseItem) EncodeToTree(parent ag_treeout.Branches)
- func (inst *CloseItem) GetItemAccount() *ag_solanago.AccountMeta
- func (inst *CloseItem) GetMintAccount() *ag_solanago.AccountMeta
- func (inst *CloseItem) GetOwnerAccount() *ag_solanago.AccountMeta
- func (inst *CloseItem) GetSignerAccount() *ag_solanago.AccountMeta
- func (obj CloseItem) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *CloseItem) SetItemAccount(item ag_solanago.PublicKey) *CloseItem
- func (inst *CloseItem) SetMintAccount(mint ag_solanago.PublicKey) *CloseItem
- func (inst *CloseItem) SetOwnerAccount(owner ag_solanago.PublicKey) *CloseItem
- func (inst *CloseItem) SetSignerAccount(signer ag_solanago.PublicKey) *CloseItem
- func (obj *CloseItem) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *CloseItem) Validate() error
- func (inst CloseItem) ValidateAndBuild() (*Instruction, error)
- type CloseOrder
- func (inst CloseOrder) Build() *Instruction
- func (inst *CloseOrder) EncodeToTree(parent ag_treeout.Branches)
- func (inst *CloseOrder) GetMintAccount() *ag_solanago.AccountMeta
- func (inst *CloseOrder) GetOrderAccount() *ag_solanago.AccountMeta
- func (inst *CloseOrder) GetOwnerAccount() *ag_solanago.AccountMeta
- func (inst *CloseOrder) GetSignerAccount() *ag_solanago.AccountMeta
- func (obj CloseOrder) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *CloseOrder) SetMintAccount(mint ag_solanago.PublicKey) *CloseOrder
- func (inst *CloseOrder) SetOrderAccount(order ag_solanago.PublicKey) *CloseOrder
- func (inst *CloseOrder) SetOwnerAccount(owner ag_solanago.PublicKey) *CloseOrder
- func (inst *CloseOrder) SetSignerAccount(signer ag_solanago.PublicKey) *CloseOrder
- func (obj *CloseOrder) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *CloseOrder) Validate() error
- func (inst CloseOrder) ValidateAndBuild() (*Instruction, error)
- type CreateOrder
- func (inst CreateOrder) Build() *Instruction
- func (inst *CreateOrder) EncodeToTree(parent ag_treeout.Branches)
- func (inst *CreateOrder) GetMintAccount() *ag_solanago.AccountMeta
- func (inst *CreateOrder) GetOrderAccount() *ag_solanago.AccountMeta
- func (inst *CreateOrder) GetOwnerAccount() *ag_solanago.AccountMeta
- func (inst *CreateOrder) GetRentAccount() *ag_solanago.AccountMeta
- func (inst *CreateOrder) GetSystemProgramAccount() *ag_solanago.AccountMeta
- func (obj CreateOrder) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *CreateOrder) SetAmount(amount uint64) *CreateOrder
- func (inst *CreateOrder) SetBump(bump uint8) *CreateOrder
- func (inst *CreateOrder) SetCost(cost uint64) *CreateOrder
- func (inst *CreateOrder) SetExpiry(expiry uint64) *CreateOrder
- func (inst *CreateOrder) SetFoxy(foxy bool) *CreateOrder
- func (inst *CreateOrder) SetMintAccount(mint ag_solanago.PublicKey) *CreateOrder
- func (inst *CreateOrder) SetOrderAccount(order ag_solanago.PublicKey) *CreateOrder
- func (inst *CreateOrder) SetOwnerAccount(owner ag_solanago.PublicKey) *CreateOrder
- func (inst *CreateOrder) SetRentAccount(rent ag_solanago.PublicKey) *CreateOrder
- func (inst *CreateOrder) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *CreateOrder
- func (obj *CreateOrder) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *CreateOrder) Validate() error
- func (inst CreateOrder) ValidateAndBuild() (*Instruction, error)
- type DelistItem
- func (inst DelistItem) Build() *Instruction
- func (inst *DelistItem) EncodeToTree(parent ag_treeout.Branches)
- func (inst *DelistItem) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *DelistItem) GetItemAccount() *ag_solanago.AccountMeta
- func (inst *DelistItem) GetMintAccount() *ag_solanago.AccountMeta
- func (inst *DelistItem) GetMintAccountAccount() *ag_solanago.AccountMeta
- func (inst *DelistItem) GetMintMarketAccountAccount() *ag_solanago.AccountMeta
- func (inst *DelistItem) GetOwnerAccount() *ag_solanago.AccountMeta
- func (inst *DelistItem) GetRentAccount() *ag_solanago.AccountMeta
- func (inst *DelistItem) GetSystemProgramAccount() *ag_solanago.AccountMeta
- func (inst *DelistItem) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (obj DelistItem) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *DelistItem) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *DelistItem
- func (inst *DelistItem) SetItemAccount(item ag_solanago.PublicKey) *DelistItem
- func (inst *DelistItem) SetMintAccount(mint ag_solanago.PublicKey) *DelistItem
- func (inst *DelistItem) SetMintAccountAccount(mintAccount ag_solanago.PublicKey) *DelistItem
- func (inst *DelistItem) SetMintMarketAccountAccount(mintMarketAccount ag_solanago.PublicKey) *DelistItem
- func (inst *DelistItem) SetOwnerAccount(owner ag_solanago.PublicKey) *DelistItem
- func (inst *DelistItem) SetRentAccount(rent ag_solanago.PublicKey) *DelistItem
- func (inst *DelistItem) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *DelistItem
- func (inst *DelistItem) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *DelistItem
- func (obj *DelistItem) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *DelistItem) Validate() error
- func (inst DelistItem) ValidateAndBuild() (*Instruction, error)
- type FillOrder
- func (inst FillOrder) Build() *Instruction
- func (inst *FillOrder) EncodeToTree(parent ag_treeout.Branches)
- func (inst *FillOrder) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *FillOrder) GetBuyerAccountAccount() *ag_solanago.AccountMeta
- func (inst *FillOrder) GetMintAccount() *ag_solanago.AccountMeta
- func (inst *FillOrder) GetOrderAccount() *ag_solanago.AccountMeta
- func (inst *FillOrder) GetOwnerAccount() *ag_solanago.AccountMeta
- func (inst *FillOrder) GetPaymentAccount() *ag_solanago.AccountMeta
- func (inst *FillOrder) GetRentAccount() *ag_solanago.AccountMeta
- func (inst *FillOrder) GetSellerAccount() *ag_solanago.AccountMeta
- func (inst *FillOrder) GetSellerAccountAccount() *ag_solanago.AccountMeta
- func (inst *FillOrder) GetSystemProgramAccount() *ag_solanago.AccountMeta
- func (inst *FillOrder) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (obj FillOrder) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *FillOrder) SetAmount(amount uint64) *FillOrder
- func (inst *FillOrder) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *FillOrder
- func (inst *FillOrder) SetBuyerAccountAccount(buyerAccount ag_solanago.PublicKey) *FillOrder
- func (inst *FillOrder) SetMintAccount(mint ag_solanago.PublicKey) *FillOrder
- func (inst *FillOrder) SetOrderAccount(order ag_solanago.PublicKey) *FillOrder
- func (inst *FillOrder) SetOwnerAccount(owner ag_solanago.PublicKey) *FillOrder
- func (inst *FillOrder) SetPaymentAccount(payment ag_solanago.PublicKey) *FillOrder
- func (inst *FillOrder) SetPrice(price uint64) *FillOrder
- func (inst *FillOrder) SetRentAccount(rent ag_solanago.PublicKey) *FillOrder
- func (inst *FillOrder) SetSellerAccount(seller ag_solanago.PublicKey) *FillOrder
- func (inst *FillOrder) SetSellerAccountAccount(sellerAccount ag_solanago.PublicKey) *FillOrder
- func (inst *FillOrder) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *FillOrder
- func (inst *FillOrder) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *FillOrder
- func (obj *FillOrder) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *FillOrder) Validate() error
- func (inst FillOrder) ValidateAndBuild() (*Instruction, error)
- type Fox
- type Instruction
- func (inst *Instruction) Accounts() (out []*ag_solanago.AccountMeta)
- func (inst *Instruction) Data() ([]byte, error)
- func (inst *Instruction) EncodeToTree(parent ag_treeout.Branches)
- func (inst *Instruction) MarshalWithEncoder(encoder *ag_binary.Encoder) error
- func (inst *Instruction) ProgramID() ag_solanago.PublicKey
- func (inst *Instruction) TextEncode(encoder *ag_text.Encoder, option *ag_text.Option) error
- func (inst *Instruction) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error
- type Item
- type KickItem
- func (inst KickItem) Build() *Instruction
- func (inst *KickItem) EncodeToTree(parent ag_treeout.Branches)
- func (inst *KickItem) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *KickItem) GetAuthorityAccount() *ag_solanago.AccountMeta
- func (inst *KickItem) GetItemAccount() *ag_solanago.AccountMeta
- func (inst *KickItem) GetMintAccount() *ag_solanago.AccountMeta
- func (inst *KickItem) GetMintAccountAccount() *ag_solanago.AccountMeta
- func (inst *KickItem) GetMintMarketAccountAccount() *ag_solanago.AccountMeta
- func (inst *KickItem) GetOwnerAccount() *ag_solanago.AccountMeta
- func (inst *KickItem) GetRentAccount() *ag_solanago.AccountMeta
- func (inst *KickItem) GetSystemProgramAccount() *ag_solanago.AccountMeta
- func (inst *KickItem) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (obj KickItem) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *KickItem) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *KickItem
- func (inst *KickItem) SetAuthorityAccount(authority ag_solanago.PublicKey) *KickItem
- func (inst *KickItem) SetItemAccount(item ag_solanago.PublicKey) *KickItem
- func (inst *KickItem) SetMintAccount(mint ag_solanago.PublicKey) *KickItem
- func (inst *KickItem) SetMintAccountAccount(mintAccount ag_solanago.PublicKey) *KickItem
- func (inst *KickItem) SetMintMarketAccountAccount(mintMarketAccount ag_solanago.PublicKey) *KickItem
- func (inst *KickItem) SetOwnerAccount(owner ag_solanago.PublicKey) *KickItem
- func (inst *KickItem) SetRentAccount(rent ag_solanago.PublicKey) *KickItem
- func (inst *KickItem) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *KickItem
- func (inst *KickItem) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *KickItem
- func (obj *KickItem) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *KickItem) Validate() error
- func (inst KickItem) ValidateAndBuild() (*Instruction, error)
- type ListItem
- func (inst ListItem) Build() *Instruction
- func (inst *ListItem) EncodeToTree(parent ag_treeout.Branches)
- func (inst *ListItem) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
- func (inst *ListItem) GetItemAccount() *ag_solanago.AccountMeta
- func (inst *ListItem) GetMintAccount() *ag_solanago.AccountMeta
- func (inst *ListItem) GetMintAccountAccount() *ag_solanago.AccountMeta
- func (inst *ListItem) GetMintMarketAccountAccount() *ag_solanago.AccountMeta
- func (inst *ListItem) GetOwnerAccount() *ag_solanago.AccountMeta
- func (inst *ListItem) GetRentAccount() *ag_solanago.AccountMeta
- func (inst *ListItem) GetSystemProgramAccount() *ag_solanago.AccountMeta
- func (inst *ListItem) GetTokenProgramAccount() *ag_solanago.AccountMeta
- func (obj ListItem) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *ListItem) SetAmount(amount uint64) *ListItem
- func (inst *ListItem) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *ListItem
- func (inst *ListItem) SetCost(cost uint64) *ListItem
- func (inst *ListItem) SetItemAccount(item ag_solanago.PublicKey) *ListItem
- func (inst *ListItem) SetMintAccount(mint ag_solanago.PublicKey) *ListItem
- func (inst *ListItem) SetMintAccountAccount(mintAccount ag_solanago.PublicKey) *ListItem
- func (inst *ListItem) SetMintMarketAccountAccount(mintMarketAccount ag_solanago.PublicKey) *ListItem
- func (inst *ListItem) SetOwnerAccount(owner ag_solanago.PublicKey) *ListItem
- func (inst *ListItem) SetRentAccount(rent ag_solanago.PublicKey) *ListItem
- func (inst *ListItem) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *ListItem
- func (inst *ListItem) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *ListItem
- func (obj *ListItem) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *ListItem) Validate() error
- func (inst ListItem) ValidateAndBuild() (*Instruction, error)
- type Order
- type StakingAccount
- type UpdateItem
- func (inst UpdateItem) Build() *Instruction
- func (inst *UpdateItem) EncodeToTree(parent ag_treeout.Branches)
- func (inst *UpdateItem) GetItemAccount() *ag_solanago.AccountMeta
- func (inst *UpdateItem) GetMintAccount() *ag_solanago.AccountMeta
- func (inst *UpdateItem) GetOwnerAccount() *ag_solanago.AccountMeta
- func (obj UpdateItem) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *UpdateItem) SetCost(cost uint64) *UpdateItem
- func (inst *UpdateItem) SetItemAccount(item ag_solanago.PublicKey) *UpdateItem
- func (inst *UpdateItem) SetMintAccount(mint ag_solanago.PublicKey) *UpdateItem
- func (inst *UpdateItem) SetOwnerAccount(owner ag_solanago.PublicKey) *UpdateItem
- func (obj *UpdateItem) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *UpdateItem) Validate() error
- func (inst UpdateItem) ValidateAndBuild() (*Instruction, error)
- type UpdateOrder
- func (inst UpdateOrder) Build() *Instruction
- func (inst *UpdateOrder) EncodeToTree(parent ag_treeout.Branches)
- func (inst *UpdateOrder) GetMintAccount() *ag_solanago.AccountMeta
- func (inst *UpdateOrder) GetOrderAccount() *ag_solanago.AccountMeta
- func (inst *UpdateOrder) GetOwnerAccount() *ag_solanago.AccountMeta
- func (inst *UpdateOrder) GetSystemProgramAccount() *ag_solanago.AccountMeta
- func (obj UpdateOrder) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
- func (inst *UpdateOrder) SetAmount(amount uint64) *UpdateOrder
- func (inst *UpdateOrder) SetCost(cost uint64) *UpdateOrder
- func (inst *UpdateOrder) SetExpiry(expiry uint64) *UpdateOrder
- func (inst *UpdateOrder) SetMintAccount(mint ag_solanago.PublicKey) *UpdateOrder
- func (inst *UpdateOrder) SetOrderAccount(order ag_solanago.PublicKey) *UpdateOrder
- func (inst *UpdateOrder) SetOwnerAccount(owner ag_solanago.PublicKey) *UpdateOrder
- func (inst *UpdateOrder) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *UpdateOrder
- func (obj *UpdateOrder) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
- func (inst *UpdateOrder) Validate() error
- func (inst UpdateOrder) ValidateAndBuild() (*Instruction, error)
Constants ¶
const ProgramName = "Wlmarket"
Variables ¶
var ( Instruction_AddItem = ag_binary.TypeID([8]byte{225, 38, 79, 147, 116, 142, 147, 57}) Instruction_UpdateItem = ag_binary.TypeID([8]byte{28, 222, 44, 175, 216, 228, 171, 184}) Instruction_ListItem = ag_binary.TypeID([8]byte{174, 245, 22, 211, 228, 103, 121, 13}) Instruction_DelistItem = ag_binary.TypeID([8]byte{243, 224, 175, 39, 170, 10, 179, 114}) Instruction_CloseItem = ag_binary.TypeID([8]byte{232, 80, 56, 56, 194, 171, 176, 235}) Instruction_BuyItem = ag_binary.TypeID([8]byte{80, 82, 193, 201, 216, 27, 70, 184}) Instruction_KickItem = ag_binary.TypeID([8]byte{28, 209, 188, 254, 32, 170, 103, 12}) Instruction_CreateOrder = ag_binary.TypeID([8]byte{141, 54, 37, 207, 237, 210, 250, 215}) Instruction_CancelOrder = ag_binary.TypeID([8]byte{95, 129, 237, 240, 8, 49, 223, 132}) Instruction_UpdateOrder = ag_binary.TypeID([8]byte{54, 8, 208, 207, 34, 134, 239, 168}) Instruction_FillOrder = ag_binary.TypeID([8]byte{232, 122, 115, 25, 199, 143, 136, 162}) Instruction_CloseOrder = ag_binary.TypeID([8]byte{90, 103, 209, 28, 7, 63, 168, 4}) )
var FoxDiscriminator = [8]byte{90, 157, 16, 49, 91, 22, 164, 213}
var InstructionImplDef = ag_binary.NewVariantDefinition( ag_binary.AnchorTypeIDEncoding, []ag_binary.VariantType{ { "add_item", (*AddItem)(nil), }, { "update_item", (*UpdateItem)(nil), }, { "list_item", (*ListItem)(nil), }, { "delist_item", (*DelistItem)(nil), }, { "close_item", (*CloseItem)(nil), }, { "buy_item", (*BuyItem)(nil), }, { "kick_item", (*KickItem)(nil), }, { "create_order", (*CreateOrder)(nil), }, { "cancel_order", (*CancelOrder)(nil), }, { "update_order", (*UpdateOrder)(nil), }, { "fill_order", (*FillOrder)(nil), }, { "close_order", (*CloseOrder)(nil), }, }, )
var ItemDiscriminator = [8]byte{92, 157, 163, 130, 72, 254, 86, 216}
var OrderDiscriminator = [8]byte{134, 173, 223, 185, 77, 86, 28, 51}
var ProgramID ag_solanago.PublicKey
var StakingAccountDiscriminator = [8]byte{52, 178, 251, 157, 180, 186, 98, 234}
Functions ¶
func InstructionIDToName ¶
InstructionIDToName returns the name of the instruction given its ID.
func SetProgramID ¶
func SetProgramID(pubkey ag_solanago.PublicKey)
Types ¶
type AddItem ¶
type AddItem struct { Bump *uint8 Foxy *bool // [0] = [WRITE] item // // [1] = [SIGNER] owner // // [2] = [] mint // // [3] = [] systemProgram ag_solanago.AccountMetaSlice `bin:"-"` }
AddItem is the `addItem` instruction.
func NewAddItemInstruction ¶
func NewAddItemInstruction( bump uint8, foxy bool, item ag_solanago.PublicKey, owner ag_solanago.PublicKey, mint ag_solanago.PublicKey, systemProgram ag_solanago.PublicKey) *AddItem
NewAddItemInstruction declares a new AddItem instruction with the provided parameters and accounts.
func NewAddItemInstructionBuilder ¶
func NewAddItemInstructionBuilder() *AddItem
NewAddItemInstructionBuilder creates a new `AddItem` instruction builder.
func (AddItem) Build ¶
func (inst AddItem) Build() *Instruction
func (*AddItem) EncodeToTree ¶
func (inst *AddItem) EncodeToTree(parent ag_treeout.Branches)
func (*AddItem) GetItemAccount ¶
func (inst *AddItem) GetItemAccount() *ag_solanago.AccountMeta
GetItemAccount gets the "item" account.
func (*AddItem) GetMintAccount ¶
func (inst *AddItem) GetMintAccount() *ag_solanago.AccountMeta
GetMintAccount gets the "mint" account.
func (*AddItem) GetOwnerAccount ¶
func (inst *AddItem) GetOwnerAccount() *ag_solanago.AccountMeta
GetOwnerAccount gets the "owner" account.
func (*AddItem) GetSystemProgramAccount ¶
func (inst *AddItem) GetSystemProgramAccount() *ag_solanago.AccountMeta
GetSystemProgramAccount gets the "systemProgram" account.
func (AddItem) MarshalWithEncoder ¶
func (*AddItem) SetItemAccount ¶
func (inst *AddItem) SetItemAccount(item ag_solanago.PublicKey) *AddItem
SetItemAccount sets the "item" account.
func (*AddItem) SetMintAccount ¶
func (inst *AddItem) SetMintAccount(mint ag_solanago.PublicKey) *AddItem
SetMintAccount sets the "mint" account.
func (*AddItem) SetOwnerAccount ¶
func (inst *AddItem) SetOwnerAccount(owner ag_solanago.PublicKey) *AddItem
SetOwnerAccount sets the "owner" account.
func (*AddItem) SetSystemProgramAccount ¶
func (inst *AddItem) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *AddItem
SetSystemProgramAccount sets the "systemProgram" account.
func (*AddItem) UnmarshalWithDecoder ¶
func (AddItem) ValidateAndBuild ¶
func (inst AddItem) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type BuyItem ¶
type BuyItem struct { Sixtynine *uint64 Amount *uint64 Price *uint64 Fuckoff *uint64 // [0] = [WRITE] item // // [1] = [WRITE, SIGNER] signer // // [2] = [WRITE] owner // // [3] = [] mint // // [4] = [WRITE] payment // // [5] = [WRITE] fuckoff // // [6] = [WRITE] mintMarketAccount // // [7] = [WRITE] mintUserAccount // // [8] = [WRITE] foxy // // [9] = [WRITE] sellerFoxyAccount // // [10] = [WRITE] buyerFoxyAccount // // [11] = [] associatedTokenProgram // // [12] = [] tokenProgram // // [13] = [] systemProgram // // [14] = [] rent ag_solanago.AccountMetaSlice `bin:"-"` }
BuyItem is the `buyItem` instruction.
func NewBuyItemInstruction ¶
func NewBuyItemInstruction( sixtynine uint64, amount uint64, price uint64, fuckoff uint64, item ag_solanago.PublicKey, signer ag_solanago.PublicKey, owner ag_solanago.PublicKey, mint ag_solanago.PublicKey, payment ag_solanago.PublicKey, fuckoffAccount ag_solanago.PublicKey, mintMarketAccount ag_solanago.PublicKey, mintUserAccount ag_solanago.PublicKey, foxy ag_solanago.PublicKey, sellerFoxyAccount ag_solanago.PublicKey, buyerFoxyAccount ag_solanago.PublicKey, associatedTokenProgram ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey, systemProgram ag_solanago.PublicKey, rent ag_solanago.PublicKey) *BuyItem
NewBuyItemInstruction declares a new BuyItem instruction with the provided parameters and accounts.
func NewBuyItemInstructionBuilder ¶
func NewBuyItemInstructionBuilder() *BuyItem
NewBuyItemInstructionBuilder creates a new `BuyItem` instruction builder.
func (BuyItem) Build ¶
func (inst BuyItem) Build() *Instruction
func (*BuyItem) EncodeToTree ¶
func (inst *BuyItem) EncodeToTree(parent ag_treeout.Branches)
func (*BuyItem) GetAssociatedTokenProgramAccount ¶
func (inst *BuyItem) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.
func (*BuyItem) GetBuyerFoxyAccountAccount ¶
func (inst *BuyItem) GetBuyerFoxyAccountAccount() *ag_solanago.AccountMeta
GetBuyerFoxyAccountAccount gets the "buyerFoxyAccount" account.
func (*BuyItem) GetFoxyAccount ¶
func (inst *BuyItem) GetFoxyAccount() *ag_solanago.AccountMeta
GetFoxyAccount gets the "foxy" account.
func (*BuyItem) GetFuckoffAccount ¶
func (inst *BuyItem) GetFuckoffAccount() *ag_solanago.AccountMeta
GetFuckoffAccount gets the "fuckoff" account.
func (*BuyItem) GetItemAccount ¶
func (inst *BuyItem) GetItemAccount() *ag_solanago.AccountMeta
GetItemAccount gets the "item" account.
func (*BuyItem) GetMintAccount ¶
func (inst *BuyItem) GetMintAccount() *ag_solanago.AccountMeta
GetMintAccount gets the "mint" account.
func (*BuyItem) GetMintMarketAccountAccount ¶
func (inst *BuyItem) GetMintMarketAccountAccount() *ag_solanago.AccountMeta
GetMintMarketAccountAccount gets the "mintMarketAccount" account.
func (*BuyItem) GetMintUserAccountAccount ¶
func (inst *BuyItem) GetMintUserAccountAccount() *ag_solanago.AccountMeta
GetMintUserAccountAccount gets the "mintUserAccount" account.
func (*BuyItem) GetOwnerAccount ¶
func (inst *BuyItem) GetOwnerAccount() *ag_solanago.AccountMeta
GetOwnerAccount gets the "owner" account.
func (*BuyItem) GetPaymentAccount ¶
func (inst *BuyItem) GetPaymentAccount() *ag_solanago.AccountMeta
GetPaymentAccount gets the "payment" account.
func (*BuyItem) GetRentAccount ¶
func (inst *BuyItem) GetRentAccount() *ag_solanago.AccountMeta
GetRentAccount gets the "rent" account.
func (*BuyItem) GetSellerFoxyAccountAccount ¶
func (inst *BuyItem) GetSellerFoxyAccountAccount() *ag_solanago.AccountMeta
GetSellerFoxyAccountAccount gets the "sellerFoxyAccount" account.
func (*BuyItem) GetSignerAccount ¶
func (inst *BuyItem) GetSignerAccount() *ag_solanago.AccountMeta
GetSignerAccount gets the "signer" account.
func (*BuyItem) GetSystemProgramAccount ¶
func (inst *BuyItem) GetSystemProgramAccount() *ag_solanago.AccountMeta
GetSystemProgramAccount gets the "systemProgram" account.
func (*BuyItem) GetTokenProgramAccount ¶
func (inst *BuyItem) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (BuyItem) MarshalWithEncoder ¶
func (*BuyItem) SetAssociatedTokenProgramAccount ¶
func (inst *BuyItem) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *BuyItem
SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.
func (*BuyItem) SetBuyerFoxyAccountAccount ¶
func (inst *BuyItem) SetBuyerFoxyAccountAccount(buyerFoxyAccount ag_solanago.PublicKey) *BuyItem
SetBuyerFoxyAccountAccount sets the "buyerFoxyAccount" account.
func (*BuyItem) SetFoxyAccount ¶
func (inst *BuyItem) SetFoxyAccount(foxy ag_solanago.PublicKey) *BuyItem
SetFoxyAccount sets the "foxy" account.
func (*BuyItem) SetFuckoff ¶ added in v0.4.6
SetFuckoff sets the "fuckoff" parameter.
func (*BuyItem) SetFuckoffAccount ¶
func (inst *BuyItem) SetFuckoffAccount(fuckoff ag_solanago.PublicKey) *BuyItem
SetFuckoffAccount sets the "fuckoff" account.
func (*BuyItem) SetItemAccount ¶
func (inst *BuyItem) SetItemAccount(item ag_solanago.PublicKey) *BuyItem
SetItemAccount sets the "item" account.
func (*BuyItem) SetMintAccount ¶
func (inst *BuyItem) SetMintAccount(mint ag_solanago.PublicKey) *BuyItem
SetMintAccount sets the "mint" account.
func (*BuyItem) SetMintMarketAccountAccount ¶
func (inst *BuyItem) SetMintMarketAccountAccount(mintMarketAccount ag_solanago.PublicKey) *BuyItem
SetMintMarketAccountAccount sets the "mintMarketAccount" account.
func (*BuyItem) SetMintUserAccountAccount ¶
func (inst *BuyItem) SetMintUserAccountAccount(mintUserAccount ag_solanago.PublicKey) *BuyItem
SetMintUserAccountAccount sets the "mintUserAccount" account.
func (*BuyItem) SetOwnerAccount ¶
func (inst *BuyItem) SetOwnerAccount(owner ag_solanago.PublicKey) *BuyItem
SetOwnerAccount sets the "owner" account.
func (*BuyItem) SetPaymentAccount ¶
func (inst *BuyItem) SetPaymentAccount(payment ag_solanago.PublicKey) *BuyItem
SetPaymentAccount sets the "payment" account.
func (*BuyItem) SetRentAccount ¶
func (inst *BuyItem) SetRentAccount(rent ag_solanago.PublicKey) *BuyItem
SetRentAccount sets the "rent" account.
func (*BuyItem) SetSellerFoxyAccountAccount ¶
func (inst *BuyItem) SetSellerFoxyAccountAccount(sellerFoxyAccount ag_solanago.PublicKey) *BuyItem
SetSellerFoxyAccountAccount sets the "sellerFoxyAccount" account.
func (*BuyItem) SetSignerAccount ¶
func (inst *BuyItem) SetSignerAccount(signer ag_solanago.PublicKey) *BuyItem
SetSignerAccount sets the "signer" account.
func (*BuyItem) SetSixtynine ¶ added in v0.4.7
SetSixtynine sets the "sixtynine" parameter.
func (*BuyItem) SetSystemProgramAccount ¶
func (inst *BuyItem) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *BuyItem
SetSystemProgramAccount sets the "systemProgram" account.
func (*BuyItem) SetTokenProgramAccount ¶
func (inst *BuyItem) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *BuyItem
SetTokenProgramAccount sets the "tokenProgram" account.
func (*BuyItem) UnmarshalWithDecoder ¶
func (BuyItem) ValidateAndBuild ¶
func (inst BuyItem) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type CancelOrder ¶
type CancelOrder struct { // [0] = [WRITE] order // // [1] = [] mint // // [2] = [WRITE, SIGNER] owner ag_solanago.AccountMetaSlice `bin:"-"` }
CancelOrder is the `cancelOrder` instruction.
func NewCancelOrderInstruction ¶
func NewCancelOrderInstruction( order ag_solanago.PublicKey, mint ag_solanago.PublicKey, owner ag_solanago.PublicKey) *CancelOrder
NewCancelOrderInstruction declares a new CancelOrder instruction with the provided parameters and accounts.
func NewCancelOrderInstructionBuilder ¶
func NewCancelOrderInstructionBuilder() *CancelOrder
NewCancelOrderInstructionBuilder creates a new `CancelOrder` instruction builder.
func (CancelOrder) Build ¶
func (inst CancelOrder) Build() *Instruction
func (*CancelOrder) EncodeToTree ¶
func (inst *CancelOrder) EncodeToTree(parent ag_treeout.Branches)
func (*CancelOrder) GetMintAccount ¶
func (inst *CancelOrder) GetMintAccount() *ag_solanago.AccountMeta
GetMintAccount gets the "mint" account.
func (*CancelOrder) GetOrderAccount ¶
func (inst *CancelOrder) GetOrderAccount() *ag_solanago.AccountMeta
GetOrderAccount gets the "order" account.
func (*CancelOrder) GetOwnerAccount ¶
func (inst *CancelOrder) GetOwnerAccount() *ag_solanago.AccountMeta
GetOwnerAccount gets the "owner" account.
func (CancelOrder) MarshalWithEncoder ¶
func (obj CancelOrder) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*CancelOrder) SetMintAccount ¶
func (inst *CancelOrder) SetMintAccount(mint ag_solanago.PublicKey) *CancelOrder
SetMintAccount sets the "mint" account.
func (*CancelOrder) SetOrderAccount ¶
func (inst *CancelOrder) SetOrderAccount(order ag_solanago.PublicKey) *CancelOrder
SetOrderAccount sets the "order" account.
func (*CancelOrder) SetOwnerAccount ¶
func (inst *CancelOrder) SetOwnerAccount(owner ag_solanago.PublicKey) *CancelOrder
SetOwnerAccount sets the "owner" account.
func (*CancelOrder) UnmarshalWithDecoder ¶
func (obj *CancelOrder) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*CancelOrder) Validate ¶
func (inst *CancelOrder) Validate() error
func (CancelOrder) ValidateAndBuild ¶
func (inst CancelOrder) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type CloseItem ¶
type CloseItem struct { // [0] = [WRITE] item // // [1] = [WRITE] owner // // [2] = [SIGNER] signer // // [3] = [WRITE] mint ag_solanago.AccountMetaSlice `bin:"-"` }
CloseItem is the `closeItem` instruction.
func NewCloseItemInstruction ¶
func NewCloseItemInstruction( item ag_solanago.PublicKey, owner ag_solanago.PublicKey, signer ag_solanago.PublicKey, mint ag_solanago.PublicKey) *CloseItem
NewCloseItemInstruction declares a new CloseItem instruction with the provided parameters and accounts.
func NewCloseItemInstructionBuilder ¶
func NewCloseItemInstructionBuilder() *CloseItem
NewCloseItemInstructionBuilder creates a new `CloseItem` instruction builder.
func (CloseItem) Build ¶
func (inst CloseItem) Build() *Instruction
func (*CloseItem) EncodeToTree ¶
func (inst *CloseItem) EncodeToTree(parent ag_treeout.Branches)
func (*CloseItem) GetItemAccount ¶
func (inst *CloseItem) GetItemAccount() *ag_solanago.AccountMeta
GetItemAccount gets the "item" account.
func (*CloseItem) GetMintAccount ¶
func (inst *CloseItem) GetMintAccount() *ag_solanago.AccountMeta
GetMintAccount gets the "mint" account.
func (*CloseItem) GetOwnerAccount ¶
func (inst *CloseItem) GetOwnerAccount() *ag_solanago.AccountMeta
GetOwnerAccount gets the "owner" account.
func (*CloseItem) GetSignerAccount ¶
func (inst *CloseItem) GetSignerAccount() *ag_solanago.AccountMeta
GetSignerAccount gets the "signer" account.
func (CloseItem) MarshalWithEncoder ¶
func (*CloseItem) SetItemAccount ¶
func (inst *CloseItem) SetItemAccount(item ag_solanago.PublicKey) *CloseItem
SetItemAccount sets the "item" account.
func (*CloseItem) SetMintAccount ¶
func (inst *CloseItem) SetMintAccount(mint ag_solanago.PublicKey) *CloseItem
SetMintAccount sets the "mint" account.
func (*CloseItem) SetOwnerAccount ¶
func (inst *CloseItem) SetOwnerAccount(owner ag_solanago.PublicKey) *CloseItem
SetOwnerAccount sets the "owner" account.
func (*CloseItem) SetSignerAccount ¶
func (inst *CloseItem) SetSignerAccount(signer ag_solanago.PublicKey) *CloseItem
SetSignerAccount sets the "signer" account.
func (*CloseItem) UnmarshalWithDecoder ¶
func (CloseItem) ValidateAndBuild ¶
func (inst CloseItem) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type CloseOrder ¶
type CloseOrder struct { // [0] = [WRITE] order // // [1] = [] mint // // [2] = [WRITE] owner // // [3] = [SIGNER] signer ag_solanago.AccountMetaSlice `bin:"-"` }
CloseOrder is the `closeOrder` instruction.
func NewCloseOrderInstruction ¶
func NewCloseOrderInstruction( order ag_solanago.PublicKey, mint ag_solanago.PublicKey, owner ag_solanago.PublicKey, signer ag_solanago.PublicKey) *CloseOrder
NewCloseOrderInstruction declares a new CloseOrder instruction with the provided parameters and accounts.
func NewCloseOrderInstructionBuilder ¶
func NewCloseOrderInstructionBuilder() *CloseOrder
NewCloseOrderInstructionBuilder creates a new `CloseOrder` instruction builder.
func (CloseOrder) Build ¶
func (inst CloseOrder) Build() *Instruction
func (*CloseOrder) EncodeToTree ¶
func (inst *CloseOrder) EncodeToTree(parent ag_treeout.Branches)
func (*CloseOrder) GetMintAccount ¶
func (inst *CloseOrder) GetMintAccount() *ag_solanago.AccountMeta
GetMintAccount gets the "mint" account.
func (*CloseOrder) GetOrderAccount ¶
func (inst *CloseOrder) GetOrderAccount() *ag_solanago.AccountMeta
GetOrderAccount gets the "order" account.
func (*CloseOrder) GetOwnerAccount ¶
func (inst *CloseOrder) GetOwnerAccount() *ag_solanago.AccountMeta
GetOwnerAccount gets the "owner" account.
func (*CloseOrder) GetSignerAccount ¶
func (inst *CloseOrder) GetSignerAccount() *ag_solanago.AccountMeta
GetSignerAccount gets the "signer" account.
func (CloseOrder) MarshalWithEncoder ¶
func (obj CloseOrder) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*CloseOrder) SetMintAccount ¶
func (inst *CloseOrder) SetMintAccount(mint ag_solanago.PublicKey) *CloseOrder
SetMintAccount sets the "mint" account.
func (*CloseOrder) SetOrderAccount ¶
func (inst *CloseOrder) SetOrderAccount(order ag_solanago.PublicKey) *CloseOrder
SetOrderAccount sets the "order" account.
func (*CloseOrder) SetOwnerAccount ¶
func (inst *CloseOrder) SetOwnerAccount(owner ag_solanago.PublicKey) *CloseOrder
SetOwnerAccount sets the "owner" account.
func (*CloseOrder) SetSignerAccount ¶
func (inst *CloseOrder) SetSignerAccount(signer ag_solanago.PublicKey) *CloseOrder
SetSignerAccount sets the "signer" account.
func (*CloseOrder) UnmarshalWithDecoder ¶
func (obj *CloseOrder) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*CloseOrder) Validate ¶
func (inst *CloseOrder) Validate() error
func (CloseOrder) ValidateAndBuild ¶
func (inst CloseOrder) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type CreateOrder ¶
type CreateOrder struct { Bump *uint8 Cost *uint64 Amount *uint64 Foxy *bool Expiry *uint64 // [0] = [WRITE] order // // [1] = [WRITE, SIGNER] owner // // [2] = [] mint // // [3] = [] systemProgram // // [4] = [] rent ag_solanago.AccountMetaSlice `bin:"-"` }
CreateOrder is the `createOrder` instruction.
func NewCreateOrderInstruction ¶
func NewCreateOrderInstruction( bump uint8, cost uint64, amount uint64, foxy bool, expiry uint64, order ag_solanago.PublicKey, owner ag_solanago.PublicKey, mint ag_solanago.PublicKey, systemProgram ag_solanago.PublicKey, rent ag_solanago.PublicKey) *CreateOrder
NewCreateOrderInstruction declares a new CreateOrder instruction with the provided parameters and accounts.
func NewCreateOrderInstructionBuilder ¶
func NewCreateOrderInstructionBuilder() *CreateOrder
NewCreateOrderInstructionBuilder creates a new `CreateOrder` instruction builder.
func (CreateOrder) Build ¶
func (inst CreateOrder) Build() *Instruction
func (*CreateOrder) EncodeToTree ¶
func (inst *CreateOrder) EncodeToTree(parent ag_treeout.Branches)
func (*CreateOrder) GetMintAccount ¶
func (inst *CreateOrder) GetMintAccount() *ag_solanago.AccountMeta
GetMintAccount gets the "mint" account.
func (*CreateOrder) GetOrderAccount ¶
func (inst *CreateOrder) GetOrderAccount() *ag_solanago.AccountMeta
GetOrderAccount gets the "order" account.
func (*CreateOrder) GetOwnerAccount ¶
func (inst *CreateOrder) GetOwnerAccount() *ag_solanago.AccountMeta
GetOwnerAccount gets the "owner" account.
func (*CreateOrder) GetRentAccount ¶
func (inst *CreateOrder) GetRentAccount() *ag_solanago.AccountMeta
GetRentAccount gets the "rent" account.
func (*CreateOrder) GetSystemProgramAccount ¶
func (inst *CreateOrder) GetSystemProgramAccount() *ag_solanago.AccountMeta
GetSystemProgramAccount gets the "systemProgram" account.
func (CreateOrder) MarshalWithEncoder ¶
func (obj CreateOrder) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*CreateOrder) SetAmount ¶
func (inst *CreateOrder) SetAmount(amount uint64) *CreateOrder
SetAmount sets the "amount" parameter.
func (*CreateOrder) SetBump ¶
func (inst *CreateOrder) SetBump(bump uint8) *CreateOrder
SetBump sets the "bump" parameter.
func (*CreateOrder) SetCost ¶
func (inst *CreateOrder) SetCost(cost uint64) *CreateOrder
SetCost sets the "cost" parameter.
func (*CreateOrder) SetExpiry ¶
func (inst *CreateOrder) SetExpiry(expiry uint64) *CreateOrder
SetExpiry sets the "expiry" parameter.
func (*CreateOrder) SetFoxy ¶
func (inst *CreateOrder) SetFoxy(foxy bool) *CreateOrder
SetFoxy sets the "foxy" parameter.
func (*CreateOrder) SetMintAccount ¶
func (inst *CreateOrder) SetMintAccount(mint ag_solanago.PublicKey) *CreateOrder
SetMintAccount sets the "mint" account.
func (*CreateOrder) SetOrderAccount ¶
func (inst *CreateOrder) SetOrderAccount(order ag_solanago.PublicKey) *CreateOrder
SetOrderAccount sets the "order" account.
func (*CreateOrder) SetOwnerAccount ¶
func (inst *CreateOrder) SetOwnerAccount(owner ag_solanago.PublicKey) *CreateOrder
SetOwnerAccount sets the "owner" account.
func (*CreateOrder) SetRentAccount ¶
func (inst *CreateOrder) SetRentAccount(rent ag_solanago.PublicKey) *CreateOrder
SetRentAccount sets the "rent" account.
func (*CreateOrder) SetSystemProgramAccount ¶
func (inst *CreateOrder) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *CreateOrder
SetSystemProgramAccount sets the "systemProgram" account.
func (*CreateOrder) UnmarshalWithDecoder ¶
func (obj *CreateOrder) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*CreateOrder) Validate ¶
func (inst *CreateOrder) Validate() error
func (CreateOrder) ValidateAndBuild ¶
func (inst CreateOrder) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type DelistItem ¶
type DelistItem struct { // [0] = [WRITE] item // // [1] = [WRITE, SIGNER] owner // // [2] = [WRITE] mint // // [3] = [WRITE] mintAccount // // [4] = [WRITE] mintMarketAccount // // [5] = [] associatedTokenProgram // // [6] = [] tokenProgram // // [7] = [] systemProgram // // [8] = [] rent ag_solanago.AccountMetaSlice `bin:"-"` }
DelistItem is the `delistItem` instruction.
func NewDelistItemInstruction ¶
func NewDelistItemInstruction( item ag_solanago.PublicKey, owner ag_solanago.PublicKey, mint ag_solanago.PublicKey, mintAccount ag_solanago.PublicKey, mintMarketAccount ag_solanago.PublicKey, associatedTokenProgram ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey, systemProgram ag_solanago.PublicKey, rent ag_solanago.PublicKey) *DelistItem
NewDelistItemInstruction declares a new DelistItem instruction with the provided parameters and accounts.
func NewDelistItemInstructionBuilder ¶
func NewDelistItemInstructionBuilder() *DelistItem
NewDelistItemInstructionBuilder creates a new `DelistItem` instruction builder.
func (DelistItem) Build ¶
func (inst DelistItem) Build() *Instruction
func (*DelistItem) EncodeToTree ¶
func (inst *DelistItem) EncodeToTree(parent ag_treeout.Branches)
func (*DelistItem) GetAssociatedTokenProgramAccount ¶
func (inst *DelistItem) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.
func (*DelistItem) GetItemAccount ¶
func (inst *DelistItem) GetItemAccount() *ag_solanago.AccountMeta
GetItemAccount gets the "item" account.
func (*DelistItem) GetMintAccount ¶
func (inst *DelistItem) GetMintAccount() *ag_solanago.AccountMeta
GetMintAccount gets the "mint" account.
func (*DelistItem) GetMintAccountAccount ¶
func (inst *DelistItem) GetMintAccountAccount() *ag_solanago.AccountMeta
GetMintAccountAccount gets the "mintAccount" account.
func (*DelistItem) GetMintMarketAccountAccount ¶
func (inst *DelistItem) GetMintMarketAccountAccount() *ag_solanago.AccountMeta
GetMintMarketAccountAccount gets the "mintMarketAccount" account.
func (*DelistItem) GetOwnerAccount ¶
func (inst *DelistItem) GetOwnerAccount() *ag_solanago.AccountMeta
GetOwnerAccount gets the "owner" account.
func (*DelistItem) GetRentAccount ¶
func (inst *DelistItem) GetRentAccount() *ag_solanago.AccountMeta
GetRentAccount gets the "rent" account.
func (*DelistItem) GetSystemProgramAccount ¶
func (inst *DelistItem) GetSystemProgramAccount() *ag_solanago.AccountMeta
GetSystemProgramAccount gets the "systemProgram" account.
func (*DelistItem) GetTokenProgramAccount ¶
func (inst *DelistItem) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (DelistItem) MarshalWithEncoder ¶
func (obj DelistItem) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*DelistItem) SetAssociatedTokenProgramAccount ¶
func (inst *DelistItem) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *DelistItem
SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.
func (*DelistItem) SetItemAccount ¶
func (inst *DelistItem) SetItemAccount(item ag_solanago.PublicKey) *DelistItem
SetItemAccount sets the "item" account.
func (*DelistItem) SetMintAccount ¶
func (inst *DelistItem) SetMintAccount(mint ag_solanago.PublicKey) *DelistItem
SetMintAccount sets the "mint" account.
func (*DelistItem) SetMintAccountAccount ¶
func (inst *DelistItem) SetMintAccountAccount(mintAccount ag_solanago.PublicKey) *DelistItem
SetMintAccountAccount sets the "mintAccount" account.
func (*DelistItem) SetMintMarketAccountAccount ¶
func (inst *DelistItem) SetMintMarketAccountAccount(mintMarketAccount ag_solanago.PublicKey) *DelistItem
SetMintMarketAccountAccount sets the "mintMarketAccount" account.
func (*DelistItem) SetOwnerAccount ¶
func (inst *DelistItem) SetOwnerAccount(owner ag_solanago.PublicKey) *DelistItem
SetOwnerAccount sets the "owner" account.
func (*DelistItem) SetRentAccount ¶
func (inst *DelistItem) SetRentAccount(rent ag_solanago.PublicKey) *DelistItem
SetRentAccount sets the "rent" account.
func (*DelistItem) SetSystemProgramAccount ¶
func (inst *DelistItem) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *DelistItem
SetSystemProgramAccount sets the "systemProgram" account.
func (*DelistItem) SetTokenProgramAccount ¶
func (inst *DelistItem) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *DelistItem
SetTokenProgramAccount sets the "tokenProgram" account.
func (*DelistItem) UnmarshalWithDecoder ¶
func (obj *DelistItem) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*DelistItem) Validate ¶
func (inst *DelistItem) Validate() error
func (DelistItem) ValidateAndBuild ¶
func (inst DelistItem) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type FillOrder ¶
type FillOrder struct { Amount *uint64 Price *uint64 // [0] = [WRITE] order // // [1] = [] mint // // [2] = [WRITE] owner // // [3] = [WRITE, SIGNER] seller // // [4] = [WRITE] sellerAccount // // [5] = [WRITE] buyerAccount // // [6] = [WRITE] payment // // [7] = [] associatedTokenProgram // // [8] = [] tokenProgram // // [9] = [] systemProgram // // [10] = [] rent ag_solanago.AccountMetaSlice `bin:"-"` }
FillOrder is the `fillOrder` instruction.
func NewFillOrderInstruction ¶
func NewFillOrderInstruction( amount uint64, price uint64, order ag_solanago.PublicKey, mint ag_solanago.PublicKey, owner ag_solanago.PublicKey, seller ag_solanago.PublicKey, sellerAccount ag_solanago.PublicKey, buyerAccount ag_solanago.PublicKey, payment ag_solanago.PublicKey, associatedTokenProgram ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey, systemProgram ag_solanago.PublicKey, rent ag_solanago.PublicKey) *FillOrder
NewFillOrderInstruction declares a new FillOrder instruction with the provided parameters and accounts.
func NewFillOrderInstructionBuilder ¶
func NewFillOrderInstructionBuilder() *FillOrder
NewFillOrderInstructionBuilder creates a new `FillOrder` instruction builder.
func (FillOrder) Build ¶
func (inst FillOrder) Build() *Instruction
func (*FillOrder) EncodeToTree ¶
func (inst *FillOrder) EncodeToTree(parent ag_treeout.Branches)
func (*FillOrder) GetAssociatedTokenProgramAccount ¶
func (inst *FillOrder) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.
func (*FillOrder) GetBuyerAccountAccount ¶
func (inst *FillOrder) GetBuyerAccountAccount() *ag_solanago.AccountMeta
GetBuyerAccountAccount gets the "buyerAccount" account.
func (*FillOrder) GetMintAccount ¶
func (inst *FillOrder) GetMintAccount() *ag_solanago.AccountMeta
GetMintAccount gets the "mint" account.
func (*FillOrder) GetOrderAccount ¶
func (inst *FillOrder) GetOrderAccount() *ag_solanago.AccountMeta
GetOrderAccount gets the "order" account.
func (*FillOrder) GetOwnerAccount ¶
func (inst *FillOrder) GetOwnerAccount() *ag_solanago.AccountMeta
GetOwnerAccount gets the "owner" account.
func (*FillOrder) GetPaymentAccount ¶
func (inst *FillOrder) GetPaymentAccount() *ag_solanago.AccountMeta
GetPaymentAccount gets the "payment" account.
func (*FillOrder) GetRentAccount ¶
func (inst *FillOrder) GetRentAccount() *ag_solanago.AccountMeta
GetRentAccount gets the "rent" account.
func (*FillOrder) GetSellerAccount ¶
func (inst *FillOrder) GetSellerAccount() *ag_solanago.AccountMeta
GetSellerAccount gets the "seller" account.
func (*FillOrder) GetSellerAccountAccount ¶
func (inst *FillOrder) GetSellerAccountAccount() *ag_solanago.AccountMeta
GetSellerAccountAccount gets the "sellerAccount" account.
func (*FillOrder) GetSystemProgramAccount ¶
func (inst *FillOrder) GetSystemProgramAccount() *ag_solanago.AccountMeta
GetSystemProgramAccount gets the "systemProgram" account.
func (*FillOrder) GetTokenProgramAccount ¶
func (inst *FillOrder) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (FillOrder) MarshalWithEncoder ¶
func (*FillOrder) SetAssociatedTokenProgramAccount ¶
func (inst *FillOrder) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *FillOrder
SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.
func (*FillOrder) SetBuyerAccountAccount ¶
func (inst *FillOrder) SetBuyerAccountAccount(buyerAccount ag_solanago.PublicKey) *FillOrder
SetBuyerAccountAccount sets the "buyerAccount" account.
func (*FillOrder) SetMintAccount ¶
func (inst *FillOrder) SetMintAccount(mint ag_solanago.PublicKey) *FillOrder
SetMintAccount sets the "mint" account.
func (*FillOrder) SetOrderAccount ¶
func (inst *FillOrder) SetOrderAccount(order ag_solanago.PublicKey) *FillOrder
SetOrderAccount sets the "order" account.
func (*FillOrder) SetOwnerAccount ¶
func (inst *FillOrder) SetOwnerAccount(owner ag_solanago.PublicKey) *FillOrder
SetOwnerAccount sets the "owner" account.
func (*FillOrder) SetPaymentAccount ¶
func (inst *FillOrder) SetPaymentAccount(payment ag_solanago.PublicKey) *FillOrder
SetPaymentAccount sets the "payment" account.
func (*FillOrder) SetRentAccount ¶
func (inst *FillOrder) SetRentAccount(rent ag_solanago.PublicKey) *FillOrder
SetRentAccount sets the "rent" account.
func (*FillOrder) SetSellerAccount ¶
func (inst *FillOrder) SetSellerAccount(seller ag_solanago.PublicKey) *FillOrder
SetSellerAccount sets the "seller" account.
func (*FillOrder) SetSellerAccountAccount ¶
func (inst *FillOrder) SetSellerAccountAccount(sellerAccount ag_solanago.PublicKey) *FillOrder
SetSellerAccountAccount sets the "sellerAccount" account.
func (*FillOrder) SetSystemProgramAccount ¶
func (inst *FillOrder) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *FillOrder
SetSystemProgramAccount sets the "systemProgram" account.
func (*FillOrder) SetTokenProgramAccount ¶
func (inst *FillOrder) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *FillOrder
SetTokenProgramAccount sets the "tokenProgram" account.
func (*FillOrder) UnmarshalWithDecoder ¶
func (FillOrder) ValidateAndBuild ¶
func (inst FillOrder) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type Fox ¶
type Fox struct { Fox ag_solanago.PublicKey Owner ag_solanago.PublicKey Tff bool Other bool Xp uint64 Missions uint64 Multiplier uint64 }
func (Fox) MarshalWithEncoder ¶
type Instruction ¶
type Instruction struct {
ag_binary.BaseVariant
}
func DecodeInstruction ¶
func DecodeInstruction(accounts []*ag_solanago.AccountMeta, data []byte) (*Instruction, error)
func (*Instruction) Accounts ¶
func (inst *Instruction) Accounts() (out []*ag_solanago.AccountMeta)
func (*Instruction) Data ¶
func (inst *Instruction) Data() ([]byte, error)
func (*Instruction) EncodeToTree ¶
func (inst *Instruction) EncodeToTree(parent ag_treeout.Branches)
func (*Instruction) MarshalWithEncoder ¶
func (inst *Instruction) MarshalWithEncoder(encoder *ag_binary.Encoder) error
func (*Instruction) ProgramID ¶
func (inst *Instruction) ProgramID() ag_solanago.PublicKey
func (*Instruction) TextEncode ¶
func (*Instruction) UnmarshalWithDecoder ¶
func (inst *Instruction) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error
type Item ¶
type Item struct { Bump uint8 Mint ag_solanago.PublicKey Owner ag_solanago.PublicKey Cost uint64 Count uint64 Foxy bool Staked bool }
func (Item) MarshalWithEncoder ¶
type KickItem ¶
type KickItem struct { // [0] = [WRITE] item // // [1] = [WRITE, SIGNER] authority // // [2] = [WRITE] owner // // [3] = [WRITE] mint // // [4] = [WRITE] mintAccount // // [5] = [WRITE] mintMarketAccount // // [6] = [] associatedTokenProgram // // [7] = [] tokenProgram // // [8] = [] systemProgram // // [9] = [] rent ag_solanago.AccountMetaSlice `bin:"-"` }
KickItem is the `kickItem` instruction.
func NewKickItemInstruction ¶
func NewKickItemInstruction( item ag_solanago.PublicKey, authority ag_solanago.PublicKey, owner ag_solanago.PublicKey, mint ag_solanago.PublicKey, mintAccount ag_solanago.PublicKey, mintMarketAccount ag_solanago.PublicKey, associatedTokenProgram ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey, systemProgram ag_solanago.PublicKey, rent ag_solanago.PublicKey) *KickItem
NewKickItemInstruction declares a new KickItem instruction with the provided parameters and accounts.
func NewKickItemInstructionBuilder ¶
func NewKickItemInstructionBuilder() *KickItem
NewKickItemInstructionBuilder creates a new `KickItem` instruction builder.
func (KickItem) Build ¶
func (inst KickItem) Build() *Instruction
func (*KickItem) EncodeToTree ¶
func (inst *KickItem) EncodeToTree(parent ag_treeout.Branches)
func (*KickItem) GetAssociatedTokenProgramAccount ¶
func (inst *KickItem) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.
func (*KickItem) GetAuthorityAccount ¶
func (inst *KickItem) GetAuthorityAccount() *ag_solanago.AccountMeta
GetAuthorityAccount gets the "authority" account.
func (*KickItem) GetItemAccount ¶
func (inst *KickItem) GetItemAccount() *ag_solanago.AccountMeta
GetItemAccount gets the "item" account.
func (*KickItem) GetMintAccount ¶
func (inst *KickItem) GetMintAccount() *ag_solanago.AccountMeta
GetMintAccount gets the "mint" account.
func (*KickItem) GetMintAccountAccount ¶
func (inst *KickItem) GetMintAccountAccount() *ag_solanago.AccountMeta
GetMintAccountAccount gets the "mintAccount" account.
func (*KickItem) GetMintMarketAccountAccount ¶
func (inst *KickItem) GetMintMarketAccountAccount() *ag_solanago.AccountMeta
GetMintMarketAccountAccount gets the "mintMarketAccount" account.
func (*KickItem) GetOwnerAccount ¶
func (inst *KickItem) GetOwnerAccount() *ag_solanago.AccountMeta
GetOwnerAccount gets the "owner" account.
func (*KickItem) GetRentAccount ¶
func (inst *KickItem) GetRentAccount() *ag_solanago.AccountMeta
GetRentAccount gets the "rent" account.
func (*KickItem) GetSystemProgramAccount ¶
func (inst *KickItem) GetSystemProgramAccount() *ag_solanago.AccountMeta
GetSystemProgramAccount gets the "systemProgram" account.
func (*KickItem) GetTokenProgramAccount ¶
func (inst *KickItem) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (KickItem) MarshalWithEncoder ¶
func (*KickItem) SetAssociatedTokenProgramAccount ¶
func (inst *KickItem) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *KickItem
SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.
func (*KickItem) SetAuthorityAccount ¶
func (inst *KickItem) SetAuthorityAccount(authority ag_solanago.PublicKey) *KickItem
SetAuthorityAccount sets the "authority" account.
func (*KickItem) SetItemAccount ¶
func (inst *KickItem) SetItemAccount(item ag_solanago.PublicKey) *KickItem
SetItemAccount sets the "item" account.
func (*KickItem) SetMintAccount ¶
func (inst *KickItem) SetMintAccount(mint ag_solanago.PublicKey) *KickItem
SetMintAccount sets the "mint" account.
func (*KickItem) SetMintAccountAccount ¶
func (inst *KickItem) SetMintAccountAccount(mintAccount ag_solanago.PublicKey) *KickItem
SetMintAccountAccount sets the "mintAccount" account.
func (*KickItem) SetMintMarketAccountAccount ¶
func (inst *KickItem) SetMintMarketAccountAccount(mintMarketAccount ag_solanago.PublicKey) *KickItem
SetMintMarketAccountAccount sets the "mintMarketAccount" account.
func (*KickItem) SetOwnerAccount ¶
func (inst *KickItem) SetOwnerAccount(owner ag_solanago.PublicKey) *KickItem
SetOwnerAccount sets the "owner" account.
func (*KickItem) SetRentAccount ¶
func (inst *KickItem) SetRentAccount(rent ag_solanago.PublicKey) *KickItem
SetRentAccount sets the "rent" account.
func (*KickItem) SetSystemProgramAccount ¶
func (inst *KickItem) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *KickItem
SetSystemProgramAccount sets the "systemProgram" account.
func (*KickItem) SetTokenProgramAccount ¶
func (inst *KickItem) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *KickItem
SetTokenProgramAccount sets the "tokenProgram" account.
func (*KickItem) UnmarshalWithDecoder ¶
func (KickItem) ValidateAndBuild ¶
func (inst KickItem) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type ListItem ¶
type ListItem struct { Amount *uint64 Cost *uint64 // [0] = [WRITE] item // // [1] = [WRITE, SIGNER] owner // // [2] = [] mint // // [3] = [WRITE] mintAccount // // [4] = [WRITE] mintMarketAccount // // [5] = [] associatedTokenProgram // // [6] = [] tokenProgram // // [7] = [] systemProgram // // [8] = [] rent ag_solanago.AccountMetaSlice `bin:"-"` }
ListItem is the `listItem` instruction.
func NewListItemInstruction ¶
func NewListItemInstruction( amount uint64, cost uint64, item ag_solanago.PublicKey, owner ag_solanago.PublicKey, mint ag_solanago.PublicKey, mintAccount ag_solanago.PublicKey, mintMarketAccount ag_solanago.PublicKey, associatedTokenProgram ag_solanago.PublicKey, tokenProgram ag_solanago.PublicKey, systemProgram ag_solanago.PublicKey, rent ag_solanago.PublicKey) *ListItem
NewListItemInstruction declares a new ListItem instruction with the provided parameters and accounts.
func NewListItemInstructionBuilder ¶
func NewListItemInstructionBuilder() *ListItem
NewListItemInstructionBuilder creates a new `ListItem` instruction builder.
func (ListItem) Build ¶
func (inst ListItem) Build() *Instruction
func (*ListItem) EncodeToTree ¶
func (inst *ListItem) EncodeToTree(parent ag_treeout.Branches)
func (*ListItem) GetAssociatedTokenProgramAccount ¶
func (inst *ListItem) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta
GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.
func (*ListItem) GetItemAccount ¶
func (inst *ListItem) GetItemAccount() *ag_solanago.AccountMeta
GetItemAccount gets the "item" account.
func (*ListItem) GetMintAccount ¶
func (inst *ListItem) GetMintAccount() *ag_solanago.AccountMeta
GetMintAccount gets the "mint" account.
func (*ListItem) GetMintAccountAccount ¶
func (inst *ListItem) GetMintAccountAccount() *ag_solanago.AccountMeta
GetMintAccountAccount gets the "mintAccount" account.
func (*ListItem) GetMintMarketAccountAccount ¶
func (inst *ListItem) GetMintMarketAccountAccount() *ag_solanago.AccountMeta
GetMintMarketAccountAccount gets the "mintMarketAccount" account.
func (*ListItem) GetOwnerAccount ¶
func (inst *ListItem) GetOwnerAccount() *ag_solanago.AccountMeta
GetOwnerAccount gets the "owner" account.
func (*ListItem) GetRentAccount ¶
func (inst *ListItem) GetRentAccount() *ag_solanago.AccountMeta
GetRentAccount gets the "rent" account.
func (*ListItem) GetSystemProgramAccount ¶
func (inst *ListItem) GetSystemProgramAccount() *ag_solanago.AccountMeta
GetSystemProgramAccount gets the "systemProgram" account.
func (*ListItem) GetTokenProgramAccount ¶
func (inst *ListItem) GetTokenProgramAccount() *ag_solanago.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" account.
func (ListItem) MarshalWithEncoder ¶
func (*ListItem) SetAssociatedTokenProgramAccount ¶
func (inst *ListItem) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *ListItem
SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.
func (*ListItem) SetItemAccount ¶
func (inst *ListItem) SetItemAccount(item ag_solanago.PublicKey) *ListItem
SetItemAccount sets the "item" account.
func (*ListItem) SetMintAccount ¶
func (inst *ListItem) SetMintAccount(mint ag_solanago.PublicKey) *ListItem
SetMintAccount sets the "mint" account.
func (*ListItem) SetMintAccountAccount ¶
func (inst *ListItem) SetMintAccountAccount(mintAccount ag_solanago.PublicKey) *ListItem
SetMintAccountAccount sets the "mintAccount" account.
func (*ListItem) SetMintMarketAccountAccount ¶
func (inst *ListItem) SetMintMarketAccountAccount(mintMarketAccount ag_solanago.PublicKey) *ListItem
SetMintMarketAccountAccount sets the "mintMarketAccount" account.
func (*ListItem) SetOwnerAccount ¶
func (inst *ListItem) SetOwnerAccount(owner ag_solanago.PublicKey) *ListItem
SetOwnerAccount sets the "owner" account.
func (*ListItem) SetRentAccount ¶
func (inst *ListItem) SetRentAccount(rent ag_solanago.PublicKey) *ListItem
SetRentAccount sets the "rent" account.
func (*ListItem) SetSystemProgramAccount ¶
func (inst *ListItem) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *ListItem
SetSystemProgramAccount sets the "systemProgram" account.
func (*ListItem) SetTokenProgramAccount ¶
func (inst *ListItem) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *ListItem
SetTokenProgramAccount sets the "tokenProgram" account.
func (*ListItem) UnmarshalWithDecoder ¶
func (ListItem) ValidateAndBuild ¶
func (inst ListItem) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type Order ¶
type Order struct { Bump uint8 Mint ag_solanago.PublicKey Owner ag_solanago.PublicKey Cost uint64 Count uint64 Foxy bool Time uint64 Expiry uint64 }
func (Order) MarshalWithEncoder ¶
type StakingAccount ¶
type StakingAccount struct { Bump uint8 Fox ag_solanago.PublicKey Owner ag_solanago.PublicKey Lock int64 LastClaim int64 Tff bool V2 bool }
func (StakingAccount) MarshalWithEncoder ¶
func (obj StakingAccount) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*StakingAccount) UnmarshalWithDecoder ¶
func (obj *StakingAccount) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
type UpdateItem ¶
type UpdateItem struct { Cost *uint64 // [0] = [WRITE] item // // [1] = [WRITE, SIGNER] owner // // [2] = [] mint ag_solanago.AccountMetaSlice `bin:"-"` }
UpdateItem is the `updateItem` instruction.
func NewUpdateItemInstruction ¶
func NewUpdateItemInstruction( cost uint64, item ag_solanago.PublicKey, owner ag_solanago.PublicKey, mint ag_solanago.PublicKey) *UpdateItem
NewUpdateItemInstruction declares a new UpdateItem instruction with the provided parameters and accounts.
func NewUpdateItemInstructionBuilder ¶
func NewUpdateItemInstructionBuilder() *UpdateItem
NewUpdateItemInstructionBuilder creates a new `UpdateItem` instruction builder.
func (UpdateItem) Build ¶
func (inst UpdateItem) Build() *Instruction
func (*UpdateItem) EncodeToTree ¶
func (inst *UpdateItem) EncodeToTree(parent ag_treeout.Branches)
func (*UpdateItem) GetItemAccount ¶
func (inst *UpdateItem) GetItemAccount() *ag_solanago.AccountMeta
GetItemAccount gets the "item" account.
func (*UpdateItem) GetMintAccount ¶
func (inst *UpdateItem) GetMintAccount() *ag_solanago.AccountMeta
GetMintAccount gets the "mint" account.
func (*UpdateItem) GetOwnerAccount ¶
func (inst *UpdateItem) GetOwnerAccount() *ag_solanago.AccountMeta
GetOwnerAccount gets the "owner" account.
func (UpdateItem) MarshalWithEncoder ¶
func (obj UpdateItem) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*UpdateItem) SetCost ¶
func (inst *UpdateItem) SetCost(cost uint64) *UpdateItem
SetCost sets the "cost" parameter.
func (*UpdateItem) SetItemAccount ¶
func (inst *UpdateItem) SetItemAccount(item ag_solanago.PublicKey) *UpdateItem
SetItemAccount sets the "item" account.
func (*UpdateItem) SetMintAccount ¶
func (inst *UpdateItem) SetMintAccount(mint ag_solanago.PublicKey) *UpdateItem
SetMintAccount sets the "mint" account.
func (*UpdateItem) SetOwnerAccount ¶
func (inst *UpdateItem) SetOwnerAccount(owner ag_solanago.PublicKey) *UpdateItem
SetOwnerAccount sets the "owner" account.
func (*UpdateItem) UnmarshalWithDecoder ¶
func (obj *UpdateItem) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*UpdateItem) Validate ¶
func (inst *UpdateItem) Validate() error
func (UpdateItem) ValidateAndBuild ¶
func (inst UpdateItem) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.
type UpdateOrder ¶
type UpdateOrder struct { Amount *uint64 Cost *uint64 Expiry *uint64 // [0] = [WRITE] order // // [1] = [] mint // // [2] = [WRITE, SIGNER] owner // // [3] = [] systemProgram ag_solanago.AccountMetaSlice `bin:"-"` }
UpdateOrder is the `updateOrder` instruction.
func NewUpdateOrderInstruction ¶
func NewUpdateOrderInstruction( amount uint64, cost uint64, expiry uint64, order ag_solanago.PublicKey, mint ag_solanago.PublicKey, owner ag_solanago.PublicKey, systemProgram ag_solanago.PublicKey) *UpdateOrder
NewUpdateOrderInstruction declares a new UpdateOrder instruction with the provided parameters and accounts.
func NewUpdateOrderInstructionBuilder ¶
func NewUpdateOrderInstructionBuilder() *UpdateOrder
NewUpdateOrderInstructionBuilder creates a new `UpdateOrder` instruction builder.
func (UpdateOrder) Build ¶
func (inst UpdateOrder) Build() *Instruction
func (*UpdateOrder) EncodeToTree ¶
func (inst *UpdateOrder) EncodeToTree(parent ag_treeout.Branches)
func (*UpdateOrder) GetMintAccount ¶
func (inst *UpdateOrder) GetMintAccount() *ag_solanago.AccountMeta
GetMintAccount gets the "mint" account.
func (*UpdateOrder) GetOrderAccount ¶
func (inst *UpdateOrder) GetOrderAccount() *ag_solanago.AccountMeta
GetOrderAccount gets the "order" account.
func (*UpdateOrder) GetOwnerAccount ¶
func (inst *UpdateOrder) GetOwnerAccount() *ag_solanago.AccountMeta
GetOwnerAccount gets the "owner" account.
func (*UpdateOrder) GetSystemProgramAccount ¶
func (inst *UpdateOrder) GetSystemProgramAccount() *ag_solanago.AccountMeta
GetSystemProgramAccount gets the "systemProgram" account.
func (UpdateOrder) MarshalWithEncoder ¶
func (obj UpdateOrder) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)
func (*UpdateOrder) SetAmount ¶
func (inst *UpdateOrder) SetAmount(amount uint64) *UpdateOrder
SetAmount sets the "amount" parameter.
func (*UpdateOrder) SetCost ¶
func (inst *UpdateOrder) SetCost(cost uint64) *UpdateOrder
SetCost sets the "cost" parameter.
func (*UpdateOrder) SetExpiry ¶
func (inst *UpdateOrder) SetExpiry(expiry uint64) *UpdateOrder
SetExpiry sets the "expiry" parameter.
func (*UpdateOrder) SetMintAccount ¶
func (inst *UpdateOrder) SetMintAccount(mint ag_solanago.PublicKey) *UpdateOrder
SetMintAccount sets the "mint" account.
func (*UpdateOrder) SetOrderAccount ¶
func (inst *UpdateOrder) SetOrderAccount(order ag_solanago.PublicKey) *UpdateOrder
SetOrderAccount sets the "order" account.
func (*UpdateOrder) SetOwnerAccount ¶
func (inst *UpdateOrder) SetOwnerAccount(owner ag_solanago.PublicKey) *UpdateOrder
SetOwnerAccount sets the "owner" account.
func (*UpdateOrder) SetSystemProgramAccount ¶
func (inst *UpdateOrder) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *UpdateOrder
SetSystemProgramAccount sets the "systemProgram" account.
func (*UpdateOrder) UnmarshalWithDecoder ¶
func (obj *UpdateOrder) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)
func (*UpdateOrder) Validate ¶
func (inst *UpdateOrder) Validate() error
func (UpdateOrder) ValidateAndBuild ¶
func (inst UpdateOrder) ValidateAndBuild() (*Instruction, error)
ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.