Documentation ¶
Index ¶
- Constants
- Variables
- func FindAssociatedAddress(mint web3.PublicKey) (web3.PublicKey, error)
- func FindAssociatedAddressAndBumpSeed(mint web3.PublicKey) (web3.PublicKey, uint8, error)
- func InstructionIDToName(id uint8) string
- func SetProgramID(pubkey common.PublicKey)
- type AddressNotInReservationError
- type AlreadyInitializedError
- type AlreadyUnverifiedError
- type AlreadyVerifiedError
- type AmountMustBeGreaterThanZeroError
- type ApproveCollectionAuthority
- func (obj *ApproveCollectionAuthority) Build() *Instruction
- func (obj *ApproveCollectionAuthority) EncodeToTree(parent treeout.Branches)
- func (obj *ApproveCollectionAuthority) GetCollectionAuthorityRecordAccount() *common.AccountMeta
- func (obj *ApproveCollectionAuthority) GetMetadataAccount() *common.AccountMeta
- func (obj *ApproveCollectionAuthority) GetMintAccount() *common.AccountMeta
- func (obj *ApproveCollectionAuthority) GetNewCollectionAuthorityAccount() *common.AccountMeta
- func (obj *ApproveCollectionAuthority) GetPayerAccount() *common.AccountMeta
- func (obj *ApproveCollectionAuthority) GetRentAccount() *common.AccountMeta
- func (obj *ApproveCollectionAuthority) GetSystemProgramAccount() *common.AccountMeta
- func (obj *ApproveCollectionAuthority) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *ApproveCollectionAuthority) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *ApproveCollectionAuthority) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey) *ApproveCollectionAuthority
- func (obj *ApproveCollectionAuthority) SetMetadataAccount(metadata common.PublicKey) *ApproveCollectionAuthority
- func (obj *ApproveCollectionAuthority) SetMintAccount(mint common.PublicKey) *ApproveCollectionAuthority
- func (obj *ApproveCollectionAuthority) SetNewCollectionAuthorityAccount(newCollectionAuthority common.PublicKey) *ApproveCollectionAuthority
- func (obj *ApproveCollectionAuthority) SetPayerAccount(payer common.PublicKey) *ApproveCollectionAuthority
- func (obj *ApproveCollectionAuthority) SetProgramId(programId *common.PublicKey) *ApproveCollectionAuthority
- func (obj *ApproveCollectionAuthority) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *ApproveCollectionAuthority
- func (obj *ApproveCollectionAuthority) SetSystemProgramAccount(systemProgram common.PublicKey) *ApproveCollectionAuthority
- func (obj *ApproveCollectionAuthority) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *ApproveCollectionAuthority
- func (obj *ApproveCollectionAuthority) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *ApproveCollectionAuthority) Validate() error
- func (obj *ApproveCollectionAuthority) ValidateAndBuild() (*Instruction, error)
- type ApproveUseAuthority
- func (obj *ApproveUseAuthority) Build() *Instruction
- func (obj *ApproveUseAuthority) EncodeToTree(parent treeout.Branches)
- func (obj *ApproveUseAuthority) GetBurnerAccount() *common.AccountMeta
- func (obj *ApproveUseAuthority) GetMetadataAccount() *common.AccountMeta
- func (obj *ApproveUseAuthority) GetMintAccount() *common.AccountMeta
- func (obj *ApproveUseAuthority) GetOwnerAccount() *common.AccountMeta
- func (obj *ApproveUseAuthority) GetOwnerTokenAccountAccount() *common.AccountMeta
- func (obj *ApproveUseAuthority) GetPayerAccount() *common.AccountMeta
- func (obj *ApproveUseAuthority) GetRentAccount() *common.AccountMeta
- func (obj *ApproveUseAuthority) GetSystemProgramAccount() *common.AccountMeta
- func (obj *ApproveUseAuthority) GetTokenProgramAccount() *common.AccountMeta
- func (obj *ApproveUseAuthority) GetUseAuthorityRecordAccount() *common.AccountMeta
- func (obj *ApproveUseAuthority) GetUserAccount() *common.AccountMeta
- func (obj *ApproveUseAuthority) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *ApproveUseAuthority) SetApproveUseAuthorityArgs(approveUseAuthorityArgs ApproveUseAuthorityArgs) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) SetBurnerAccount(burner common.PublicKey) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) SetMetadataAccount(metadata common.PublicKey) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) SetMintAccount(mint common.PublicKey) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) SetOwnerAccount(owner common.PublicKey) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) SetOwnerTokenAccountAccount(ownerTokenAccount common.PublicKey) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) SetPayerAccount(payer common.PublicKey) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) SetProgramId(programId *common.PublicKey) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) SetSystemProgramAccount(systemProgram common.PublicKey) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) SetTokenProgramAccount(tokenProgram common.PublicKey) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) SetUseAuthorityRecordAccount(useAuthorityRecord common.PublicKey) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) SetUserAccount(user common.PublicKey) *ApproveUseAuthority
- func (obj *ApproveUseAuthority) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *ApproveUseAuthority) Validate() error
- func (obj *ApproveUseAuthority) ValidateAndBuild() (*Instruction, error)
- type ApproveUseAuthorityArgs
- type AssetData
- type AuthorityType
- type AuthorizationData
- type AuthorizationTokenAccountOwnerMismatchError
- type BeyondAlottedAddressSizeError
- type BeyondMaxAddressSizeError
- type BorshDeserializationError
- type BorshSerializationError
- type BubblegumSetCollectionSize
- func (obj *BubblegumSetCollectionSize) Build() *Instruction
- func (obj *BubblegumSetCollectionSize) EncodeToTree(parent treeout.Branches)
- func (obj *BubblegumSetCollectionSize) GetBubblegumSignerAccount() *common.AccountMeta
- func (obj *BubblegumSetCollectionSize) GetCollectionAuthorityAccount() *common.AccountMeta
- func (obj *BubblegumSetCollectionSize) GetCollectionAuthorityRecordAccount() *common.AccountMeta
- func (obj *BubblegumSetCollectionSize) GetCollectionMetadataAccount() *common.AccountMeta
- func (obj *BubblegumSetCollectionSize) GetCollectionMintAccount() *common.AccountMeta
- func (obj *BubblegumSetCollectionSize) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *BubblegumSetCollectionSize) SetBubblegumSignerAccount(bubblegumSigner common.PublicKey) *BubblegumSetCollectionSize
- func (obj *BubblegumSetCollectionSize) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *BubblegumSetCollectionSize
- func (obj *BubblegumSetCollectionSize) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *BubblegumSetCollectionSize
- func (obj *BubblegumSetCollectionSize) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *BubblegumSetCollectionSize
- func (obj *BubblegumSetCollectionSize) SetCollectionMintAccount(collectionMint common.PublicKey) *BubblegumSetCollectionSize
- func (obj *BubblegumSetCollectionSize) SetProgramId(programId *common.PublicKey) *BubblegumSetCollectionSize
- func (obj *BubblegumSetCollectionSize) SetSetCollectionSizeArgs(setCollectionSizeArgs SetCollectionSizeArgs) *BubblegumSetCollectionSize
- func (obj *BubblegumSetCollectionSize) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *BubblegumSetCollectionSize) Validate() error
- func (obj *BubblegumSetCollectionSize) ValidateAndBuild() (*Instruction, error)
- type Burn
- func (obj *Burn) Build() *Instruction
- func (obj *Burn) EncodeToTree(parent treeout.Branches)
- func (obj *Burn) GetAuthorityAccount() *common.AccountMeta
- func (obj *Burn) GetCollectionMetadataAccount() *common.AccountMeta
- func (obj *Burn) GetEditionAccount() *common.AccountMeta
- func (obj *Burn) GetEditionMarkerAccount() *common.AccountMeta
- func (obj *Burn) GetMasterEditionAccount() *common.AccountMeta
- func (obj *Burn) GetMasterEditionMintAccount() *common.AccountMeta
- func (obj *Burn) GetMasterEditionTokenAccount() *common.AccountMeta
- func (obj *Burn) GetMetadataAccount() *common.AccountMeta
- func (obj *Burn) GetMintAccount() *common.AccountMeta
- func (obj *Burn) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *Burn) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Burn) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Burn) GetTokenAccount() *common.AccountMeta
- func (obj *Burn) GetTokenRecordAccount() *common.AccountMeta
- func (obj *Burn) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Burn) SetAuthorityAccount(authority common.PublicKey) *Burn
- func (obj *Burn) SetBurnArgs(burnArgs BurnArgs) *Burn
- func (obj *Burn) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *Burn
- func (obj *Burn) SetEditionAccount(edition common.PublicKey) *Burn
- func (obj *Burn) SetEditionMarkerAccount(editionMarker common.PublicKey) *Burn
- func (obj *Burn) SetMasterEditionAccount(masterEdition common.PublicKey) *Burn
- func (obj *Burn) SetMasterEditionMintAccount(masterEditionMint common.PublicKey) *Burn
- func (obj *Burn) SetMasterEditionTokenAccount(masterEditionToken common.PublicKey) *Burn
- func (obj *Burn) SetMetadataAccount(metadata common.PublicKey) *Burn
- func (obj *Burn) SetMintAccount(mint common.PublicKey) *Burn
- func (obj *Burn) SetProgramId(programId *common.PublicKey) *Burn
- func (obj *Burn) SetSplTokenProgramAccount(splTokenProgram common.PublicKey, multiSigners ...common.PublicKey) *Burn
- func (obj *Burn) SetSystemProgramAccount(systemProgram common.PublicKey) *Burn
- func (obj *Burn) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Burn
- func (obj *Burn) SetTokenAccount(token common.PublicKey) *Burn
- func (obj *Burn) SetTokenRecordAccount(tokenRecord common.PublicKey) *Burn
- func (obj *Burn) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Burn) Validate() error
- func (obj *Burn) ValidateAndBuild() (*Instruction, error)
- type BurnArgs
- type BurnArgsV1
- type BurnEditionNft
- func (obj *BurnEditionNft) Build() *Instruction
- func (obj *BurnEditionNft) EncodeToTree(parent treeout.Branches)
- func (obj *BurnEditionNft) GetEditionMarkerAccountAccount() *common.AccountMeta
- func (obj *BurnEditionNft) GetMasterEditionAccountAccount() *common.AccountMeta
- func (obj *BurnEditionNft) GetMasterEditionMintAccount() *common.AccountMeta
- func (obj *BurnEditionNft) GetMasterEditionTokenAccountAccount() *common.AccountMeta
- func (obj *BurnEditionNft) GetMetadataAccount() *common.AccountMeta
- func (obj *BurnEditionNft) GetOwnerAccount() *common.AccountMeta
- func (obj *BurnEditionNft) GetPrintEditionAccountAccount() *common.AccountMeta
- func (obj *BurnEditionNft) GetPrintEditionMintAccount() *common.AccountMeta
- func (obj *BurnEditionNft) GetPrintEditionTokenAccountAccount() *common.AccountMeta
- func (obj *BurnEditionNft) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *BurnEditionNft) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *BurnEditionNft) SetEditionMarkerAccountAccount(editionMarkerAccount common.PublicKey) *BurnEditionNft
- func (obj *BurnEditionNft) SetMasterEditionAccountAccount(masterEditionAccount common.PublicKey) *BurnEditionNft
- func (obj *BurnEditionNft) SetMasterEditionMintAccount(masterEditionMint common.PublicKey) *BurnEditionNft
- func (obj *BurnEditionNft) SetMasterEditionTokenAccountAccount(masterEditionTokenAccount common.PublicKey) *BurnEditionNft
- func (obj *BurnEditionNft) SetMetadataAccount(metadata common.PublicKey) *BurnEditionNft
- func (obj *BurnEditionNft) SetOwnerAccount(owner common.PublicKey) *BurnEditionNft
- func (obj *BurnEditionNft) SetPrintEditionAccountAccount(printEditionAccount common.PublicKey) *BurnEditionNft
- func (obj *BurnEditionNft) SetPrintEditionMintAccount(printEditionMint common.PublicKey) *BurnEditionNft
- func (obj *BurnEditionNft) SetPrintEditionTokenAccountAccount(printEditionTokenAccount common.PublicKey) *BurnEditionNft
- func (obj *BurnEditionNft) SetProgramId(programId *common.PublicKey) *BurnEditionNft
- func (obj *BurnEditionNft) SetSplTokenProgramAccount(splTokenProgram common.PublicKey, multiSigners ...common.PublicKey) *BurnEditionNft
- func (obj *BurnEditionNft) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *BurnEditionNft) Validate() error
- func (obj *BurnEditionNft) ValidateAndBuild() (*Instruction, error)
- type BurnNft
- func (obj *BurnNft) Build() *Instruction
- func (obj *BurnNft) EncodeToTree(parent treeout.Branches)
- func (obj *BurnNft) GetCollectionMetadataAccount() *common.AccountMeta
- func (obj *BurnNft) GetMasterEditionAccountAccount() *common.AccountMeta
- func (obj *BurnNft) GetMetadataAccount() *common.AccountMeta
- func (obj *BurnNft) GetMintAccount() *common.AccountMeta
- func (obj *BurnNft) GetOwnerAccount() *common.AccountMeta
- func (obj *BurnNft) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *BurnNft) GetTokenAccountAccount() *common.AccountMeta
- func (obj *BurnNft) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *BurnNft) SetCollectionMetadataAccount(collectionMetadata common.PublicKey, multiSigners ...common.PublicKey) *BurnNft
- func (obj *BurnNft) SetMasterEditionAccountAccount(masterEditionAccount common.PublicKey) *BurnNft
- func (obj *BurnNft) SetMetadataAccount(metadata common.PublicKey) *BurnNft
- func (obj *BurnNft) SetMintAccount(mint common.PublicKey) *BurnNft
- func (obj *BurnNft) SetOwnerAccount(owner common.PublicKey) *BurnNft
- func (obj *BurnNft) SetProgramId(programId *common.PublicKey) *BurnNft
- func (obj *BurnNft) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *BurnNft
- func (obj *BurnNft) SetTokenAccountAccount(tokenAccount common.PublicKey) *BurnNft
- func (obj *BurnNft) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *BurnNft) Validate() error
- func (obj *BurnNft) ValidateAndBuild() (*Instruction, error)
- type CannotAdjustVerifiedCreatorError
- type CannotBurnWithDelegateError
- type CannotChangeUpdateAuthorityWithDelegateError
- type CannotChangeUseMethodAfterFirstUseError
- type CannotChangeUsesAfterFirstUseError
- type CannotRemoveVerifiedCreatorError
- type CannotUnverifyAnotherCreatorError
- type CannotUpdateAssetWithDelegateError
- type CannotUpdateVerifiedCollectionError
- type CannotVerifyAnotherCreatorError
- type CannotWipeVerifiedCreatorsError
- type CloseEscrowAccount
- func (obj *CloseEscrowAccount) Build() *Instruction
- func (obj *CloseEscrowAccount) EncodeToTree(parent treeout.Branches)
- func (obj *CloseEscrowAccount) GetEditionAccount() *common.AccountMeta
- func (obj *CloseEscrowAccount) GetEscrowAccount() *common.AccountMeta
- func (obj *CloseEscrowAccount) GetMetadataAccount() *common.AccountMeta
- func (obj *CloseEscrowAccount) GetMintAccount() *common.AccountMeta
- func (obj *CloseEscrowAccount) GetPayerAccount() *common.AccountMeta
- func (obj *CloseEscrowAccount) GetSystemProgramAccount() *common.AccountMeta
- func (obj *CloseEscrowAccount) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *CloseEscrowAccount) GetTokenAccountAccount() *common.AccountMeta
- func (obj *CloseEscrowAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *CloseEscrowAccount) SetEditionAccount(edition common.PublicKey) *CloseEscrowAccount
- func (obj *CloseEscrowAccount) SetEscrowAccount(escrow common.PublicKey) *CloseEscrowAccount
- func (obj *CloseEscrowAccount) SetMetadataAccount(metadata common.PublicKey) *CloseEscrowAccount
- func (obj *CloseEscrowAccount) SetMintAccount(mint common.PublicKey) *CloseEscrowAccount
- func (obj *CloseEscrowAccount) SetPayerAccount(payer common.PublicKey) *CloseEscrowAccount
- func (obj *CloseEscrowAccount) SetProgramId(programId *common.PublicKey) *CloseEscrowAccount
- func (obj *CloseEscrowAccount) SetSystemProgramAccount(systemProgram common.PublicKey) *CloseEscrowAccount
- func (obj *CloseEscrowAccount) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey, multiSigners ...common.PublicKey) *CloseEscrowAccount
- func (obj *CloseEscrowAccount) SetTokenAccountAccount(tokenAccount common.PublicKey) *CloseEscrowAccount
- func (obj *CloseEscrowAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *CloseEscrowAccount) Validate() error
- func (obj *CloseEscrowAccount) ValidateAndBuild() (*Instruction, error)
- type Collect
- func (obj *Collect) Build() *Instruction
- func (obj *Collect) EncodeToTree(parent treeout.Branches)
- func (obj *Collect) GetAuthorityAccount() *common.AccountMeta
- func (obj *Collect) GetRecipientAccount() *common.AccountMeta
- func (obj *Collect) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Collect) SetAuthorityAccount(authority common.PublicKey) *Collect
- func (obj *Collect) SetProgramId(programId *common.PublicKey) *Collect
- func (obj *Collect) SetRecipientAccount(recipient common.PublicKey, multiSigners ...common.PublicKey) *Collect
- func (obj *Collect) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Collect) Validate() error
- func (obj *Collect) ValidateAndBuild() (*Instruction, error)
- type Collection
- type CollectionAuthorityDoesNotExistError
- type CollectionAuthorityRecord
- type CollectionAuthorityRecordAlreadyExistsError
- type CollectionCannotBeVerifiedInThisInstructionError
- type CollectionDetails
- func (obj *CollectionDetails) AsV1() CollectionDetailsV1
- func (obj *CollectionDetails) IsV1() bool
- func (obj *CollectionDetails) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *CollectionDetails) String() string
- func (obj *CollectionDetails) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- type CollectionDetailsToggle
- func (obj *CollectionDetailsToggle) AsSet() CollectionDetailsToggleSet
- func (obj *CollectionDetailsToggle) IsClear() bool
- func (obj *CollectionDetailsToggle) IsNone() bool
- func (obj *CollectionDetailsToggle) IsSet() bool
- func (obj *CollectionDetailsToggle) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *CollectionDetailsToggle) String() string
- func (obj *CollectionDetailsToggle) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- type CollectionDetailsToggleSet
- type CollectionDetailsV1
- type CollectionMasterEditionAccountInvalidError
- type CollectionMustBeAUniqueMasterEditionError
- type CollectionNotFoundError
- type CollectionToggle
- func (obj *CollectionToggle) AsSet() CollectionToggleSet
- func (obj *CollectionToggle) IsClear() bool
- func (obj *CollectionToggle) IsNone() bool
- func (obj *CollectionToggle) IsSet() bool
- func (obj *CollectionToggle) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *CollectionToggle) String() string
- func (obj *CollectionToggle) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- type CollectionToggleSet
- type ConvertMasterEditionV1ToV2
- func (obj *ConvertMasterEditionV1ToV2) Build() *Instruction
- func (obj *ConvertMasterEditionV1ToV2) EncodeToTree(parent treeout.Branches)
- func (obj *ConvertMasterEditionV1ToV2) GetMasterEditionAccount() *common.AccountMeta
- func (obj *ConvertMasterEditionV1ToV2) GetOneTimeAuthAccount() *common.AccountMeta
- func (obj *ConvertMasterEditionV1ToV2) GetPrintingMintAccount() *common.AccountMeta
- func (obj *ConvertMasterEditionV1ToV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *ConvertMasterEditionV1ToV2) SetMasterEditionAccount(masterEdition common.PublicKey) *ConvertMasterEditionV1ToV2
- func (obj *ConvertMasterEditionV1ToV2) SetOneTimeAuthAccount(oneTimeAuth common.PublicKey) *ConvertMasterEditionV1ToV2
- func (obj *ConvertMasterEditionV1ToV2) SetPrintingMintAccount(printingMint common.PublicKey, multiSigners ...common.PublicKey) *ConvertMasterEditionV1ToV2
- func (obj *ConvertMasterEditionV1ToV2) SetProgramId(programId *common.PublicKey) *ConvertMasterEditionV1ToV2
- func (obj *ConvertMasterEditionV1ToV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *ConvertMasterEditionV1ToV2) Validate() error
- func (obj *ConvertMasterEditionV1ToV2) ValidateAndBuild() (*Instruction, error)
- type CouldNotDetermineTokenStandardError
- type Create
- func (obj *Create) Build() *Instruction
- func (obj *Create) EncodeToTree(parent treeout.Branches)
- func (obj *Create) GetAuthorityAccount() *common.AccountMeta
- func (obj *Create) GetMasterEditionAccount() *common.AccountMeta
- func (obj *Create) GetMetadataAccount() *common.AccountMeta
- func (obj *Create) GetMintAccount() *common.AccountMeta
- func (obj *Create) GetPayerAccount() *common.AccountMeta
- func (obj *Create) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *Create) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Create) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Create) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *Create) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Create) SetAuthorityAccount(authority common.PublicKey) *Create
- func (obj *Create) SetCreateArgs(createArgs CreateArgs) *Create
- func (obj *Create) SetMasterEditionAccount(masterEdition common.PublicKey) *Create
- func (obj *Create) SetMetadataAccount(metadata common.PublicKey) *Create
- func (obj *Create) SetMintAccount(mint common.PublicKey) *Create
- func (obj *Create) SetPayerAccount(payer common.PublicKey) *Create
- func (obj *Create) SetProgramId(programId *common.PublicKey) *Create
- func (obj *Create) SetSplTokenProgramAccount(splTokenProgram common.PublicKey, multiSigners ...common.PublicKey) *Create
- func (obj *Create) SetSystemProgramAccount(systemProgram common.PublicKey) *Create
- func (obj *Create) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Create
- func (obj *Create) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *Create
- func (obj *Create) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Create) Validate() error
- func (obj *Create) ValidateAndBuild() (*Instruction, error)
- type CreateArgs
- type CreateArgsV1
- type CreateEscrowAccount
- func (obj *CreateEscrowAccount) Build() *Instruction
- func (obj *CreateEscrowAccount) EncodeToTree(parent treeout.Branches)
- func (obj *CreateEscrowAccount) GetAuthorityAccount() *common.AccountMeta
- func (obj *CreateEscrowAccount) GetEditionAccount() *common.AccountMeta
- func (obj *CreateEscrowAccount) GetEscrowAccount() *common.AccountMeta
- func (obj *CreateEscrowAccount) GetMetadataAccount() *common.AccountMeta
- func (obj *CreateEscrowAccount) GetMintAccount() *common.AccountMeta
- func (obj *CreateEscrowAccount) GetPayerAccount() *common.AccountMeta
- func (obj *CreateEscrowAccount) GetSystemProgramAccount() *common.AccountMeta
- func (obj *CreateEscrowAccount) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *CreateEscrowAccount) GetTokenAccountAccount() *common.AccountMeta
- func (obj *CreateEscrowAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *CreateEscrowAccount) SetAuthorityAccount(authority common.PublicKey, multiSigners ...common.PublicKey) *CreateEscrowAccount
- func (obj *CreateEscrowAccount) SetEditionAccount(edition common.PublicKey) *CreateEscrowAccount
- func (obj *CreateEscrowAccount) SetEscrowAccount(escrow common.PublicKey) *CreateEscrowAccount
- func (obj *CreateEscrowAccount) SetMetadataAccount(metadata common.PublicKey) *CreateEscrowAccount
- func (obj *CreateEscrowAccount) SetMintAccount(mint common.PublicKey) *CreateEscrowAccount
- func (obj *CreateEscrowAccount) SetPayerAccount(payer common.PublicKey) *CreateEscrowAccount
- func (obj *CreateEscrowAccount) SetProgramId(programId *common.PublicKey) *CreateEscrowAccount
- func (obj *CreateEscrowAccount) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateEscrowAccount
- func (obj *CreateEscrowAccount) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *CreateEscrowAccount
- func (obj *CreateEscrowAccount) SetTokenAccountAccount(tokenAccount common.PublicKey) *CreateEscrowAccount
- func (obj *CreateEscrowAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *CreateEscrowAccount) Validate() error
- func (obj *CreateEscrowAccount) ValidateAndBuild() (*Instruction, error)
- type CreateMasterEdition
- func (obj *CreateMasterEdition) Build() *Instruction
- func (obj *CreateMasterEdition) EncodeToTree(parent treeout.Branches)
- func (obj *CreateMasterEdition) GetEditionAccount() *common.AccountMeta
- func (obj *CreateMasterEdition) GetMetadataAccount() *common.AccountMeta
- func (obj *CreateMasterEdition) GetMintAccount() *common.AccountMeta
- func (obj *CreateMasterEdition) GetMintAuthorityAccount() *common.AccountMeta
- func (obj *CreateMasterEdition) GetPayerAccount() *common.AccountMeta
- func (obj *CreateMasterEdition) GetRentAccount() *common.AccountMeta
- func (obj *CreateMasterEdition) GetSystemProgramAccount() *common.AccountMeta
- func (obj *CreateMasterEdition) GetTokenProgramAccount() *common.AccountMeta
- func (obj *CreateMasterEdition) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *CreateMasterEdition) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *CreateMasterEdition) SetEditionAccount(edition common.PublicKey) *CreateMasterEdition
- func (obj *CreateMasterEdition) SetMetadataAccount(metadata common.PublicKey) *CreateMasterEdition
- func (obj *CreateMasterEdition) SetMintAccount(mint common.PublicKey) *CreateMasterEdition
- func (obj *CreateMasterEdition) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMasterEdition
- func (obj *CreateMasterEdition) SetPayerAccount(payer common.PublicKey) *CreateMasterEdition
- func (obj *CreateMasterEdition) SetProgramId(programId *common.PublicKey) *CreateMasterEdition
- func (obj *CreateMasterEdition) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMasterEdition
- func (obj *CreateMasterEdition) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMasterEdition
- func (obj *CreateMasterEdition) SetTokenProgramAccount(tokenProgram common.PublicKey) *CreateMasterEdition
- func (obj *CreateMasterEdition) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMasterEdition
- func (obj *CreateMasterEdition) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *CreateMasterEdition) Validate() error
- func (obj *CreateMasterEdition) ValidateAndBuild() (*Instruction, error)
- type CreateMasterEditionArgs
- type CreateMasterEditionV3
- func (obj *CreateMasterEditionV3) Build() *Instruction
- func (obj *CreateMasterEditionV3) EncodeToTree(parent treeout.Branches)
- func (obj *CreateMasterEditionV3) GetEditionAccount() *common.AccountMeta
- func (obj *CreateMasterEditionV3) GetMetadataAccount() *common.AccountMeta
- func (obj *CreateMasterEditionV3) GetMintAccount() *common.AccountMeta
- func (obj *CreateMasterEditionV3) GetMintAuthorityAccount() *common.AccountMeta
- func (obj *CreateMasterEditionV3) GetPayerAccount() *common.AccountMeta
- func (obj *CreateMasterEditionV3) GetRentAccount() *common.AccountMeta
- func (obj *CreateMasterEditionV3) GetSystemProgramAccount() *common.AccountMeta
- func (obj *CreateMasterEditionV3) GetTokenProgramAccount() *common.AccountMeta
- func (obj *CreateMasterEditionV3) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *CreateMasterEditionV3) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *CreateMasterEditionV3) SetCreateMasterEditionArgs(createMasterEditionArgs CreateMasterEditionArgs) *CreateMasterEditionV3
- func (obj *CreateMasterEditionV3) SetEditionAccount(edition common.PublicKey) *CreateMasterEditionV3
- func (obj *CreateMasterEditionV3) SetMetadataAccount(metadata common.PublicKey) *CreateMasterEditionV3
- func (obj *CreateMasterEditionV3) SetMintAccount(mint common.PublicKey) *CreateMasterEditionV3
- func (obj *CreateMasterEditionV3) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMasterEditionV3
- func (obj *CreateMasterEditionV3) SetPayerAccount(payer common.PublicKey) *CreateMasterEditionV3
- func (obj *CreateMasterEditionV3) SetProgramId(programId *common.PublicKey) *CreateMasterEditionV3
- func (obj *CreateMasterEditionV3) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMasterEditionV3
- func (obj *CreateMasterEditionV3) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMasterEditionV3
- func (obj *CreateMasterEditionV3) SetTokenProgramAccount(tokenProgram common.PublicKey) *CreateMasterEditionV3
- func (obj *CreateMasterEditionV3) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMasterEditionV3
- func (obj *CreateMasterEditionV3) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *CreateMasterEditionV3) Validate() error
- func (obj *CreateMasterEditionV3) ValidateAndBuild() (*Instruction, error)
- type CreateMetadataAccount
- func (obj *CreateMetadataAccount) Build() *Instruction
- func (obj *CreateMetadataAccount) EncodeToTree(parent treeout.Branches)
- func (obj *CreateMetadataAccount) GetMetadataAccount() *common.AccountMeta
- func (obj *CreateMetadataAccount) GetMintAccount() *common.AccountMeta
- func (obj *CreateMetadataAccount) GetMintAuthorityAccount() *common.AccountMeta
- func (obj *CreateMetadataAccount) GetPayerAccount() *common.AccountMeta
- func (obj *CreateMetadataAccount) GetRentAccount() *common.AccountMeta
- func (obj *CreateMetadataAccount) GetSystemProgramAccount() *common.AccountMeta
- func (obj *CreateMetadataAccount) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *CreateMetadataAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *CreateMetadataAccount) SetMetadataAccount(metadata common.PublicKey) *CreateMetadataAccount
- func (obj *CreateMetadataAccount) SetMintAccount(mint common.PublicKey) *CreateMetadataAccount
- func (obj *CreateMetadataAccount) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMetadataAccount
- func (obj *CreateMetadataAccount) SetPayerAccount(payer common.PublicKey) *CreateMetadataAccount
- func (obj *CreateMetadataAccount) SetProgramId(programId *common.PublicKey) *CreateMetadataAccount
- func (obj *CreateMetadataAccount) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMetadataAccount
- func (obj *CreateMetadataAccount) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMetadataAccount
- func (obj *CreateMetadataAccount) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMetadataAccount
- func (obj *CreateMetadataAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *CreateMetadataAccount) Validate() error
- func (obj *CreateMetadataAccount) ValidateAndBuild() (*Instruction, error)
- type CreateMetadataAccountArgsV3
- type CreateMetadataAccountV2
- func (obj *CreateMetadataAccountV2) Build() *Instruction
- func (obj *CreateMetadataAccountV2) EncodeToTree(parent treeout.Branches)
- func (obj *CreateMetadataAccountV2) GetMetadataAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV2) GetMintAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV2) GetMintAuthorityAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV2) GetPayerAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV2) GetRentAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV2) GetSystemProgramAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV2) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *CreateMetadataAccountV2) SetMetadataAccount(metadata common.PublicKey) *CreateMetadataAccountV2
- func (obj *CreateMetadataAccountV2) SetMintAccount(mint common.PublicKey) *CreateMetadataAccountV2
- func (obj *CreateMetadataAccountV2) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMetadataAccountV2
- func (obj *CreateMetadataAccountV2) SetPayerAccount(payer common.PublicKey) *CreateMetadataAccountV2
- func (obj *CreateMetadataAccountV2) SetProgramId(programId *common.PublicKey) *CreateMetadataAccountV2
- func (obj *CreateMetadataAccountV2) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMetadataAccountV2
- func (obj *CreateMetadataAccountV2) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMetadataAccountV2
- func (obj *CreateMetadataAccountV2) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMetadataAccountV2
- func (obj *CreateMetadataAccountV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *CreateMetadataAccountV2) Validate() error
- func (obj *CreateMetadataAccountV2) ValidateAndBuild() (*Instruction, error)
- type CreateMetadataAccountV3
- func (obj *CreateMetadataAccountV3) Build() *Instruction
- func (obj *CreateMetadataAccountV3) EncodeToTree(parent treeout.Branches)
- func (obj *CreateMetadataAccountV3) GetMetadataAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV3) GetMintAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV3) GetMintAuthorityAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV3) GetPayerAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV3) GetRentAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV3) GetSystemProgramAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV3) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *CreateMetadataAccountV3) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *CreateMetadataAccountV3) SetCreateMetadataAccountArgsV3(createMetadataAccountArgsV3 CreateMetadataAccountArgsV3) *CreateMetadataAccountV3
- func (obj *CreateMetadataAccountV3) SetMetadataAccount(metadata common.PublicKey) *CreateMetadataAccountV3
- func (obj *CreateMetadataAccountV3) SetMintAccount(mint common.PublicKey) *CreateMetadataAccountV3
- func (obj *CreateMetadataAccountV3) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMetadataAccountV3
- func (obj *CreateMetadataAccountV3) SetPayerAccount(payer common.PublicKey) *CreateMetadataAccountV3
- func (obj *CreateMetadataAccountV3) SetProgramId(programId *common.PublicKey) *CreateMetadataAccountV3
- func (obj *CreateMetadataAccountV3) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMetadataAccountV3
- func (obj *CreateMetadataAccountV3) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMetadataAccountV3
- func (obj *CreateMetadataAccountV3) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMetadataAccountV3
- func (obj *CreateMetadataAccountV3) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *CreateMetadataAccountV3) Validate() error
- func (obj *CreateMetadataAccountV3) ValidateAndBuild() (*Instruction, error)
- type Creator
- type CreatorNotFoundError
- type CreatorsMustBeAtleastOneError
- type CreatorsTooLongError
- type Data
- type DataIncrementLimitExceededError
- type DataIsEmptyOrZeroedError
- type DataIsImmutableError
- type DataTypeMismatchError
- type DataV2
- type Delegate
- func (obj *Delegate) Build() *Instruction
- func (obj *Delegate) EncodeToTree(parent treeout.Branches)
- func (obj *Delegate) GetAuthorityAccount() *common.AccountMeta
- func (obj *Delegate) GetAuthorizationRulesAccount() *common.AccountMeta
- func (obj *Delegate) GetAuthorizationRulesProgramAccount() *common.AccountMeta
- func (obj *Delegate) GetDelegateAccount() *common.AccountMeta
- func (obj *Delegate) GetDelegateRecordAccount() *common.AccountMeta
- func (obj *Delegate) GetMasterEditionAccount() *common.AccountMeta
- func (obj *Delegate) GetMetadataAccount() *common.AccountMeta
- func (obj *Delegate) GetMintAccount() *common.AccountMeta
- func (obj *Delegate) GetPayerAccount() *common.AccountMeta
- func (obj *Delegate) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *Delegate) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Delegate) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Delegate) GetTokenAccount() *common.AccountMeta
- func (obj *Delegate) GetTokenRecordAccount() *common.AccountMeta
- func (obj *Delegate) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Delegate) SetAuthorityAccount(authority common.PublicKey) *Delegate
- func (obj *Delegate) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Delegate
- func (obj *Delegate) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Delegate
- func (obj *Delegate) SetDelegateAccount(delegate common.PublicKey) *Delegate
- func (obj *Delegate) SetDelegateArgs(delegateArgs DelegateArgs) *Delegate
- func (obj *Delegate) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Delegate
- func (obj *Delegate) SetMasterEditionAccount(masterEdition common.PublicKey) *Delegate
- func (obj *Delegate) SetMetadataAccount(metadata common.PublicKey) *Delegate
- func (obj *Delegate) SetMintAccount(mint common.PublicKey) *Delegate
- func (obj *Delegate) SetPayerAccount(payer common.PublicKey) *Delegate
- func (obj *Delegate) SetProgramId(programId *common.PublicKey) *Delegate
- func (obj *Delegate) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Delegate
- func (obj *Delegate) SetSystemProgramAccount(systemProgram common.PublicKey) *Delegate
- func (obj *Delegate) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Delegate
- func (obj *Delegate) SetTokenAccount(token common.PublicKey) *Delegate
- func (obj *Delegate) SetTokenRecordAccount(tokenRecord common.PublicKey) *Delegate
- func (obj *Delegate) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Delegate) Validate() error
- func (obj *Delegate) ValidateAndBuild() (*Instruction, error)
- type DelegateAlreadyExistsError
- type DelegateArgs
- func NewDelegateArgs_AuthorityItemV1(authorizationData *AuthorizationData) DelegateArgs
- func NewDelegateArgs_CollectionItemV1(authorizationData *AuthorizationData) DelegateArgs
- func NewDelegateArgs_CollectionV1(authorizationData *AuthorizationData) DelegateArgs
- func NewDelegateArgs_DataItemV1(authorizationData *AuthorizationData) DelegateArgs
- func NewDelegateArgs_DataV1(authorizationData *AuthorizationData) DelegateArgs
- func NewDelegateArgs_LockedTransferV1(amount uint64, lockedAddress common.PublicKey, ...) DelegateArgs
- func NewDelegateArgs_ProgrammableConfigItemV1(authorizationData *AuthorizationData) DelegateArgs
- func NewDelegateArgs_ProgrammableConfigV1(authorizationData *AuthorizationData) DelegateArgs
- func NewDelegateArgs_SaleV1(amount uint64, authorizationData *AuthorizationData) DelegateArgs
- func NewDelegateArgs_StakingV1(amount uint64, authorizationData *AuthorizationData) DelegateArgs
- func NewDelegateArgs_StandardV1(amount uint64) DelegateArgs
- func NewDelegateArgs_TransferV1(amount uint64, authorizationData *AuthorizationData) DelegateArgs
- func NewDelegateArgs_UtilityV1(amount uint64, authorizationData *AuthorizationData) DelegateArgs
- func (obj *DelegateArgs) AsAuthorityItemV1() DelegateArgsAuthorityItemV1
- func (obj *DelegateArgs) AsCollectionItemV1() DelegateArgsCollectionItemV1
- func (obj *DelegateArgs) AsCollectionV1() DelegateArgsCollectionV1
- func (obj *DelegateArgs) AsDataItemV1() DelegateArgsDataItemV1
- func (obj *DelegateArgs) AsDataV1() DelegateArgsDataV1
- func (obj *DelegateArgs) AsLockedTransferV1() DelegateArgsLockedTransferV1
- func (obj *DelegateArgs) AsProgrammableConfigItemV1() DelegateArgsProgrammableConfigItemV1
- func (obj *DelegateArgs) AsProgrammableConfigV1() DelegateArgsProgrammableConfigV1
- func (obj *DelegateArgs) AsSaleV1() DelegateArgsSaleV1
- func (obj *DelegateArgs) AsStakingV1() DelegateArgsStakingV1
- func (obj *DelegateArgs) AsStandardV1() DelegateArgsStandardV1
- func (obj *DelegateArgs) AsTransferV1() DelegateArgsTransferV1
- func (obj *DelegateArgs) AsUtilityV1() DelegateArgsUtilityV1
- func (obj *DelegateArgs) IsAuthorityItemV1() bool
- func (obj *DelegateArgs) IsCollectionItemV1() bool
- func (obj *DelegateArgs) IsCollectionV1() bool
- func (obj *DelegateArgs) IsDataItemV1() bool
- func (obj *DelegateArgs) IsDataV1() bool
- func (obj *DelegateArgs) IsLockedTransferV1() bool
- func (obj *DelegateArgs) IsProgrammableConfigItemV1() bool
- func (obj *DelegateArgs) IsProgrammableConfigV1() bool
- func (obj *DelegateArgs) IsSaleV1() bool
- func (obj *DelegateArgs) IsStakingV1() bool
- func (obj *DelegateArgs) IsStandardV1() bool
- func (obj *DelegateArgs) IsTransferV1() bool
- func (obj *DelegateArgs) IsUtilityV1() bool
- func (obj *DelegateArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *DelegateArgs) String() string
- func (obj *DelegateArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- type DelegateArgsAuthorityItemV1
- type DelegateArgsCollectionItemV1
- type DelegateArgsCollectionV1
- type DelegateArgsDataItemV1
- type DelegateArgsDataV1
- type DelegateArgsLockedTransferV1
- type DelegateArgsProgrammableConfigItemV1
- type DelegateArgsProgrammableConfigV1
- type DelegateArgsSaleV1
- type DelegateArgsStakingV1
- type DelegateArgsStandardV1
- type DelegateArgsTransferV1
- type DelegateArgsUtilityV1
- type DelegateNotFoundError
- type DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) Build() *Instruction
- func (obj *DeprecatedCreateMasterEdition) EncodeToTree(parent treeout.Branches)
- func (obj *DeprecatedCreateMasterEdition) GetEditionAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) GetMetadataAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) GetMintAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) GetMintAuthorityAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAuthorityAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) GetPayerAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) GetPrintingMintAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) GetPrintingMintAuthorityAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) GetRentAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) GetSystemProgramAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) GetTokenProgramAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *DeprecatedCreateMasterEdition) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *DeprecatedCreateMasterEdition) SetEditionAccount(edition common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetMetadataAccount(metadata common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetMintAccount(mint common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetMintAuthorityAccount(mintAuthority common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAccount(oneTimePrintingAuthorizationMint common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAuthorityAccount(oneTimePrintingAuthorizationMintAuthority common.PublicKey, ...) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetPayerAccount(payer common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetPrintingMintAccount(printingMint common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetPrintingMintAuthorityAccount(printingMintAuthority common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetProgramId(programId *common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetRentAccount(rent common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetSystemProgramAccount(systemProgram common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetTokenProgramAccount(tokenProgram common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *DeprecatedCreateMasterEdition
- func (obj *DeprecatedCreateMasterEdition) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *DeprecatedCreateMasterEdition) Validate() error
- func (obj *DeprecatedCreateMasterEdition) ValidateAndBuild() (*Instruction, error)
- type DeprecatedCreateReservationList
- func (obj *DeprecatedCreateReservationList) Build() *Instruction
- func (obj *DeprecatedCreateReservationList) EncodeToTree(parent treeout.Branches)
- func (obj *DeprecatedCreateReservationList) GetMasterEditionAccount() *common.AccountMeta
- func (obj *DeprecatedCreateReservationList) GetMetadataAccount() *common.AccountMeta
- func (obj *DeprecatedCreateReservationList) GetPayerAccount() *common.AccountMeta
- func (obj *DeprecatedCreateReservationList) GetRentAccount() *common.AccountMeta
- func (obj *DeprecatedCreateReservationList) GetReservationListAccount() *common.AccountMeta
- func (obj *DeprecatedCreateReservationList) GetResourceAccount() *common.AccountMeta
- func (obj *DeprecatedCreateReservationList) GetSystemProgramAccount() *common.AccountMeta
- func (obj *DeprecatedCreateReservationList) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *DeprecatedCreateReservationList) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *DeprecatedCreateReservationList) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedCreateReservationList
- func (obj *DeprecatedCreateReservationList) SetMetadataAccount(metadata common.PublicKey) *DeprecatedCreateReservationList
- func (obj *DeprecatedCreateReservationList) SetPayerAccount(payer common.PublicKey) *DeprecatedCreateReservationList
- func (obj *DeprecatedCreateReservationList) SetProgramId(programId *common.PublicKey) *DeprecatedCreateReservationList
- func (obj *DeprecatedCreateReservationList) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedCreateReservationList
- func (obj *DeprecatedCreateReservationList) SetReservationListAccount(reservationList common.PublicKey) *DeprecatedCreateReservationList
- func (obj *DeprecatedCreateReservationList) SetResourceAccount(resource common.PublicKey) *DeprecatedCreateReservationList
- func (obj *DeprecatedCreateReservationList) SetSystemProgramAccount(systemProgram common.PublicKey) *DeprecatedCreateReservationList
- func (obj *DeprecatedCreateReservationList) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *DeprecatedCreateReservationList
- func (obj *DeprecatedCreateReservationList) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *DeprecatedCreateReservationList) Validate() error
- func (obj *DeprecatedCreateReservationList) ValidateAndBuild() (*Instruction, error)
- type DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction(metadata common.PublicKey, edition common.PublicKey, ...) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionBuilder() *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) Build() *Instruction
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) EncodeToTree(parent treeout.Branches)
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetBurnAuthorityAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetEditionAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetEditionMarkerAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterEditionAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterMetadataAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterTokenAccountAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterUpdateAuthorityAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMetadataAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMintAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMintAuthorityAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetPayerAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetPrintingMintAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetRentAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetReservationListAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetSystemProgramAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetTokenProgramAccount() *common.AccountMeta
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetBurnAuthorityAccount(burnAuthority common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetEditionAccount(edition common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetEditionMarkerAccount(editionMarker common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterMetadataAccount(masterMetadata common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterTokenAccountAccount(masterTokenAccount common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterUpdateAuthorityAccount(masterUpdateAuthority common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMetadataAccount(metadata common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMintAccount(mint common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMintAuthorityAccount(mintAuthority common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetPayerAccount(payer common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetPrintingMintAccount(printingMint common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetProgramId(programId *common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetRentAccount(rent common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetReservationListAccount(reservationList common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetSystemProgramAccount(systemProgram common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetTokenProgramAccount(tokenProgram common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) Validate() error
- func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) ValidateAndBuild() (*Instruction, error)
- type DeprecatedMintPrintingTokens
- func (obj *DeprecatedMintPrintingTokens) Build() *Instruction
- func (obj *DeprecatedMintPrintingTokens) EncodeToTree(parent treeout.Branches)
- func (obj *DeprecatedMintPrintingTokens) GetDestinationAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokens) GetMasterEditionAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokens) GetMetadataAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokens) GetPrintingMintAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokens) GetRentAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokens) GetTokenProgramAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokens) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokens) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *DeprecatedMintPrintingTokens) SetDestinationAccount(destination common.PublicKey) *DeprecatedMintPrintingTokens
- func (obj *DeprecatedMintPrintingTokens) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedMintPrintingTokens
- func (obj *DeprecatedMintPrintingTokens) SetMetadataAccount(metadata common.PublicKey) *DeprecatedMintPrintingTokens
- func (obj *DeprecatedMintPrintingTokens) SetPrintingMintAccount(printingMint common.PublicKey) *DeprecatedMintPrintingTokens
- func (obj *DeprecatedMintPrintingTokens) SetProgramId(programId *common.PublicKey) *DeprecatedMintPrintingTokens
- func (obj *DeprecatedMintPrintingTokens) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedMintPrintingTokens
- func (obj *DeprecatedMintPrintingTokens) SetTokenProgramAccount(tokenProgram common.PublicKey) *DeprecatedMintPrintingTokens
- func (obj *DeprecatedMintPrintingTokens) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *DeprecatedMintPrintingTokens
- func (obj *DeprecatedMintPrintingTokens) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *DeprecatedMintPrintingTokens) Validate() error
- func (obj *DeprecatedMintPrintingTokens) ValidateAndBuild() (*Instruction, error)
- type DeprecatedMintPrintingTokensViaToken
- func (obj *DeprecatedMintPrintingTokensViaToken) Build() *Instruction
- func (obj *DeprecatedMintPrintingTokensViaToken) EncodeToTree(parent treeout.Branches)
- func (obj *DeprecatedMintPrintingTokensViaToken) GetBurnAuthorityAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokensViaToken) GetDestinationAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokensViaToken) GetMasterEditionAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokensViaToken) GetMetadataAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokensViaToken) GetOneTimePrintingAuthorizationMintAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokensViaToken) GetPrintingMintAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokensViaToken) GetRentAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokensViaToken) GetTokenAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokensViaToken) GetTokenProgramAccount() *common.AccountMeta
- func (obj *DeprecatedMintPrintingTokensViaToken) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *DeprecatedMintPrintingTokensViaToken) SetBurnAuthorityAccount(burnAuthority common.PublicKey) *DeprecatedMintPrintingTokensViaToken
- func (obj *DeprecatedMintPrintingTokensViaToken) SetDestinationAccount(destination common.PublicKey) *DeprecatedMintPrintingTokensViaToken
- func (obj *DeprecatedMintPrintingTokensViaToken) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedMintPrintingTokensViaToken
- func (obj *DeprecatedMintPrintingTokensViaToken) SetMetadataAccount(metadata common.PublicKey) *DeprecatedMintPrintingTokensViaToken
- func (obj *DeprecatedMintPrintingTokensViaToken) SetOneTimePrintingAuthorizationMintAccount(oneTimePrintingAuthorizationMint common.PublicKey) *DeprecatedMintPrintingTokensViaToken
- func (obj *DeprecatedMintPrintingTokensViaToken) SetPrintingMintAccount(printingMint common.PublicKey) *DeprecatedMintPrintingTokensViaToken
- func (obj *DeprecatedMintPrintingTokensViaToken) SetProgramId(programId *common.PublicKey) *DeprecatedMintPrintingTokensViaToken
- func (obj *DeprecatedMintPrintingTokensViaToken) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedMintPrintingTokensViaToken
- func (obj *DeprecatedMintPrintingTokensViaToken) SetTokenAccount(token common.PublicKey) *DeprecatedMintPrintingTokensViaToken
- func (obj *DeprecatedMintPrintingTokensViaToken) SetTokenProgramAccount(tokenProgram common.PublicKey) *DeprecatedMintPrintingTokensViaToken
- func (obj *DeprecatedMintPrintingTokensViaToken) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *DeprecatedMintPrintingTokensViaToken) Validate() error
- func (obj *DeprecatedMintPrintingTokensViaToken) ValidateAndBuild() (*Instruction, error)
- type DeprecatedSetReservationList
- func (obj *DeprecatedSetReservationList) Build() *Instruction
- func (obj *DeprecatedSetReservationList) EncodeToTree(parent treeout.Branches)
- func (obj *DeprecatedSetReservationList) GetMasterEditionAccount() *common.AccountMeta
- func (obj *DeprecatedSetReservationList) GetReservationListAccount() *common.AccountMeta
- func (obj *DeprecatedSetReservationList) GetResourceAccount() *common.AccountMeta
- func (obj *DeprecatedSetReservationList) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *DeprecatedSetReservationList) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedSetReservationList
- func (obj *DeprecatedSetReservationList) SetProgramId(programId *common.PublicKey) *DeprecatedSetReservationList
- func (obj *DeprecatedSetReservationList) SetReservationListAccount(reservationList common.PublicKey) *DeprecatedSetReservationList
- func (obj *DeprecatedSetReservationList) SetResourceAccount(resource common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedSetReservationList
- func (obj *DeprecatedSetReservationList) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *DeprecatedSetReservationList) Validate() error
- func (obj *DeprecatedSetReservationList) ValidateAndBuild() (*Instruction, error)
- type DerivedKeyInvalidError
- type DestinationMintMismatchError
- type DisabledError
- type DuplicateCreatorAddressError
- type Edition
- type EditionAlreadyMintedError
- type EditionMarker
- type EditionMarkerV2
- type EditionMintDecimalsShouldBeZeroError
- type EditionNumberGreaterThanMaxSupplyError
- type EditionOverrideCannotBeZeroError
- type EditionsMustHaveExactlyOneTokenError
- type EscrowAuthority
- func (obj *EscrowAuthority) AsCd() EscrowAuthorityCd
- func (obj *EscrowAuthority) AsCreator() EscrowAuthorityCreator
- func (obj *EscrowAuthority) IsCd() bool
- func (obj *EscrowAuthority) IsCreator() bool
- func (obj *EscrowAuthority) IsTokenOwner() bool
- func (obj *EscrowAuthority) IsTokenOwner2() bool
- func (obj *EscrowAuthority) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *EscrowAuthority) String() string
- func (obj *EscrowAuthority) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- type EscrowAuthorityCd
- type EscrowAuthorityCreator
- type EscrowParentHasDelegateError
- type FeatureNotSupportedError
- type FreezeDelegatedAccount
- func (obj *FreezeDelegatedAccount) Build() *Instruction
- func (obj *FreezeDelegatedAccount) EncodeToTree(parent treeout.Branches)
- func (obj *FreezeDelegatedAccount) GetDelegateAccount() *common.AccountMeta
- func (obj *FreezeDelegatedAccount) GetEditionAccount() *common.AccountMeta
- func (obj *FreezeDelegatedAccount) GetMintAccount() *common.AccountMeta
- func (obj *FreezeDelegatedAccount) GetTokenAccountAccount() *common.AccountMeta
- func (obj *FreezeDelegatedAccount) GetTokenProgramAccount() *common.AccountMeta
- func (obj *FreezeDelegatedAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *FreezeDelegatedAccount) SetDelegateAccount(delegate common.PublicKey) *FreezeDelegatedAccount
- func (obj *FreezeDelegatedAccount) SetEditionAccount(edition common.PublicKey) *FreezeDelegatedAccount
- func (obj *FreezeDelegatedAccount) SetMintAccount(mint common.PublicKey) *FreezeDelegatedAccount
- func (obj *FreezeDelegatedAccount) SetProgramId(programId *common.PublicKey) *FreezeDelegatedAccount
- func (obj *FreezeDelegatedAccount) SetTokenAccountAccount(tokenAccount common.PublicKey) *FreezeDelegatedAccount
- func (obj *FreezeDelegatedAccount) SetTokenProgramAccount(tokenProgram common.PublicKey, multiSigners ...common.PublicKey) *FreezeDelegatedAccount
- func (obj *FreezeDelegatedAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *FreezeDelegatedAccount) Validate() error
- func (obj *FreezeDelegatedAccount) ValidateAndBuild() (*Instruction, error)
- type IncorrectOwnerError
- type IncorrectTokenStateError
- type Instruction
- func (obj *Instruction) Accounts() (out []*common.AccountMeta)
- func (obj *Instruction) Data() ([]byte, error)
- func (obj *Instruction) EncodeToTree(parent treeout.Branches)
- func (obj *Instruction) MarshalWithEncoder(encoder *binary.Encoder) error
- func (obj *Instruction) ProgramID() common.PublicKey
- func (obj *Instruction) TextEncode(encoder *text.Encoder, option *text.Option) error
- func (obj *Instruction) UnmarshalWithDecoder(decoder *binary.Decoder) error
- type InstructionNotSupportedError
- type InstructionPackError
- type InstructionUnpackError
- type InsufficientTokenBalanceError
- type InsufficientTokensError
- type InvalidAmountError
- type InvalidAssociatedTokenAccountProgramError
- type InvalidAuthorityTypeError
- type InvalidAuthorizationRulesError
- type InvalidBasisPointsError
- type InvalidBubblegumSignerError
- type InvalidCloseAuthorityError
- type InvalidCollectionAuthorityRecordError
- type InvalidCollectionSizeChangeError
- type InvalidCollectionUpdateAuthorityError
- type InvalidDelegateArgsError
- type InvalidDelegateError
- type InvalidDelegateRoleError
- type InvalidDelegateRoleForTransferError
- type InvalidEditionIndexError
- type InvalidEditionKeyError
- type InvalidEditionMarkerError
- type InvalidEscrowBumpSeedError
- type InvalidFeeAccountError
- type InvalidFreezeAuthorityError
- type InvalidInstructionError
- type InvalidInstructionsSysvarError
- type InvalidLockedTransferAddressError
- type InvalidMasterEditionAccountLengthError
- type InvalidMasterEditionError
- type InvalidMetadataFlagsError
- type InvalidMetadataKeyError
- type InvalidMetadataPointerError
- type InvalidMintAuthorityError
- type InvalidMintCloseAuthorityError
- type InvalidMintExtensionTypeError
- type InvalidMintForTokenStandardError
- type InvalidOperationError
- type InvalidOwnerError
- type InvalidParentAccountsError
- type InvalidPrintEditionError
- type InvalidProgrammableConfigError
- type InvalidSystemProgramError
- type InvalidSystemWalletError
- type InvalidTokenExtensionTypeError
- type InvalidTokenProgramError
- type InvalidTokenRecordError
- type InvalidTokenStandardError
- type InvalidTransferAuthorityError
- type InvalidUpdateArgsError
- type InvalidUseAuthorityRecordError
- type InvalidUseMethodError
- type InvalidUserError
- type IsMutableCanOnlyBeFlippedToFalseError
- type Key
- type KeyMismatchError
- type Lock
- func (obj *Lock) Build() *Instruction
- func (obj *Lock) EncodeToTree(parent treeout.Branches)
- func (obj *Lock) GetAuthorityAccount() *common.AccountMeta
- func (obj *Lock) GetAuthorizationRulesAccount() *common.AccountMeta
- func (obj *Lock) GetAuthorizationRulesProgramAccount() *common.AccountMeta
- func (obj *Lock) GetEditionAccount() *common.AccountMeta
- func (obj *Lock) GetMetadataAccount() *common.AccountMeta
- func (obj *Lock) GetMintAccount() *common.AccountMeta
- func (obj *Lock) GetPayerAccount() *common.AccountMeta
- func (obj *Lock) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *Lock) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Lock) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Lock) GetTokenAccount() *common.AccountMeta
- func (obj *Lock) GetTokenOwnerAccount() *common.AccountMeta
- func (obj *Lock) GetTokenRecordAccount() *common.AccountMeta
- func (obj *Lock) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Lock) SetAuthorityAccount(authority common.PublicKey) *Lock
- func (obj *Lock) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Lock
- func (obj *Lock) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Lock
- func (obj *Lock) SetEditionAccount(edition common.PublicKey) *Lock
- func (obj *Lock) SetLockArgs(lockArgs LockArgs) *Lock
- func (obj *Lock) SetMetadataAccount(metadata common.PublicKey) *Lock
- func (obj *Lock) SetMintAccount(mint common.PublicKey) *Lock
- func (obj *Lock) SetPayerAccount(payer common.PublicKey) *Lock
- func (obj *Lock) SetProgramId(programId *common.PublicKey) *Lock
- func (obj *Lock) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Lock
- func (obj *Lock) SetSystemProgramAccount(systemProgram common.PublicKey) *Lock
- func (obj *Lock) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Lock
- func (obj *Lock) SetTokenAccount(token common.PublicKey) *Lock
- func (obj *Lock) SetTokenOwnerAccount(tokenOwner common.PublicKey) *Lock
- func (obj *Lock) SetTokenRecordAccount(tokenRecord common.PublicKey) *Lock
- func (obj *Lock) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Lock) Validate() error
- func (obj *Lock) ValidateAndBuild() (*Instruction, error)
- type LockArgs
- type LockArgsV1
- type LockedTokenError
- type MasterEditionHasPrintsError
- type MasterEditionV1
- type MasterEditionV2
- type MasterRecordMismatchError
- type MaxEditionsMintedAlreadyError
- type Metadata
- type MetadataDelegateRecord
- type MetadataDelegateRole
- type Migrate
- func (obj *Migrate) Build() *Instruction
- func (obj *Migrate) EncodeToTree(parent treeout.Branches)
- func (obj *Migrate) GetAuthorityAccount() *common.AccountMeta
- func (obj *Migrate) GetAuthorizationRulesAccount() *common.AccountMeta
- func (obj *Migrate) GetAuthorizationRulesProgramAccount() *common.AccountMeta
- func (obj *Migrate) GetCollectionMetadataAccount() *common.AccountMeta
- func (obj *Migrate) GetDelegateRecordAccount() *common.AccountMeta
- func (obj *Migrate) GetEditionAccount() *common.AccountMeta
- func (obj *Migrate) GetMetadataAccount() *common.AccountMeta
- func (obj *Migrate) GetMintAccount() *common.AccountMeta
- func (obj *Migrate) GetPayerAccount() *common.AccountMeta
- func (obj *Migrate) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *Migrate) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Migrate) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Migrate) GetTokenAccount() *common.AccountMeta
- func (obj *Migrate) GetTokenOwnerAccount() *common.AccountMeta
- func (obj *Migrate) GetTokenRecordAccount() *common.AccountMeta
- func (obj *Migrate) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Migrate) SetAuthorityAccount(authority common.PublicKey) *Migrate
- func (obj *Migrate) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Migrate
- func (obj *Migrate) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Migrate
- func (obj *Migrate) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *Migrate
- func (obj *Migrate) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Migrate
- func (obj *Migrate) SetEditionAccount(edition common.PublicKey) *Migrate
- func (obj *Migrate) SetMetadataAccount(metadata common.PublicKey) *Migrate
- func (obj *Migrate) SetMintAccount(mint common.PublicKey) *Migrate
- func (obj *Migrate) SetPayerAccount(payer common.PublicKey) *Migrate
- func (obj *Migrate) SetProgramId(programId *common.PublicKey) *Migrate
- func (obj *Migrate) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Migrate
- func (obj *Migrate) SetSystemProgramAccount(systemProgram common.PublicKey) *Migrate
- func (obj *Migrate) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Migrate
- func (obj *Migrate) SetTokenAccount(token common.PublicKey) *Migrate
- func (obj *Migrate) SetTokenOwnerAccount(tokenOwner common.PublicKey) *Migrate
- func (obj *Migrate) SetTokenRecordAccount(tokenRecord common.PublicKey) *Migrate
- func (obj *Migrate) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Migrate) Validate() error
- func (obj *Migrate) ValidateAndBuild() (*Instruction, error)
- type MigrationType
- type Mint
- func (obj *Mint) Build() *Instruction
- func (obj *Mint) EncodeToTree(parent treeout.Branches)
- func (obj *Mint) GetAuthorityAccount() *common.AccountMeta
- func (obj *Mint) GetAuthorizationRulesAccount() *common.AccountMeta
- func (obj *Mint) GetAuthorizationRulesProgramAccount() *common.AccountMeta
- func (obj *Mint) GetDelegateRecordAccount() *common.AccountMeta
- func (obj *Mint) GetMasterEditionAccount() *common.AccountMeta
- func (obj *Mint) GetMetadataAccount() *common.AccountMeta
- func (obj *Mint) GetMintAccount() *common.AccountMeta
- func (obj *Mint) GetPayerAccount() *common.AccountMeta
- func (obj *Mint) GetSplAtaProgramAccount() *common.AccountMeta
- func (obj *Mint) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *Mint) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Mint) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Mint) GetTokenAccount() *common.AccountMeta
- func (obj *Mint) GetTokenOwnerAccount() *common.AccountMeta
- func (obj *Mint) GetTokenRecordAccount() *common.AccountMeta
- func (obj *Mint) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Mint) SetAuthorityAccount(authority common.PublicKey) *Mint
- func (obj *Mint) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Mint
- func (obj *Mint) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Mint
- func (obj *Mint) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Mint
- func (obj *Mint) SetMasterEditionAccount(masterEdition common.PublicKey) *Mint
- func (obj *Mint) SetMetadataAccount(metadata common.PublicKey) *Mint
- func (obj *Mint) SetMintAccount(mint common.PublicKey) *Mint
- func (obj *Mint) SetMintArgs(mintArgs MintArgs) *Mint
- func (obj *Mint) SetPayerAccount(payer common.PublicKey) *Mint
- func (obj *Mint) SetProgramId(programId *common.PublicKey) *Mint
- func (obj *Mint) SetSplAtaProgramAccount(splAtaProgram common.PublicKey) *Mint
- func (obj *Mint) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Mint
- func (obj *Mint) SetSystemProgramAccount(systemProgram common.PublicKey) *Mint
- func (obj *Mint) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Mint
- func (obj *Mint) SetTokenAccount(token common.PublicKey) *Mint
- func (obj *Mint) SetTokenOwnerAccount(tokenOwner common.PublicKey) *Mint
- func (obj *Mint) SetTokenRecordAccount(tokenRecord common.PublicKey) *Mint
- func (obj *Mint) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Mint) Validate() error
- func (obj *Mint) ValidateAndBuild() (*Instruction, error)
- type MintArgs
- type MintArgsV1
- type MintIsNotSignerError
- type MintMismatchError
- type MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) Build() *Instruction
- func (obj *MintNewEditionFromMasterEditionViaToken) EncodeToTree(parent treeout.Branches)
- func (obj *MintNewEditionFromMasterEditionViaToken) GetEditionMarkPdaAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetMasterEditionAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetMetadataAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetNewEditionAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetNewMetadataAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetNewMetadataUpdateAuthorityAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetNewMintAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetNewMintAuthorityAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetPayerAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetRentAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetSystemProgramAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetTokenAccountAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetTokenAccountOwnerAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) GetTokenProgramAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaToken) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *MintNewEditionFromMasterEditionViaToken) SetEditionMarkPdaAccount(editionMarkPda common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetMasterEditionAccount(masterEdition common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetMetadataAccount(metadata common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetMintNewEditionFromMasterEditionViaTokenArgs(...) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetNewEditionAccount(newEdition common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetNewMetadataAccount(newMetadata common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetNewMetadataUpdateAuthorityAccount(newMetadataUpdateAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetNewMintAccount(newMint common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetNewMintAuthorityAccount(newMintAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetPayerAccount(payer common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetProgramId(programId *common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetSystemProgramAccount(systemProgram common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetTokenAccountAccount(tokenAccount common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetTokenAccountOwnerAccount(tokenAccountOwner common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) SetTokenProgramAccount(tokenProgram common.PublicKey) *MintNewEditionFromMasterEditionViaToken
- func (obj *MintNewEditionFromMasterEditionViaToken) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *MintNewEditionFromMasterEditionViaToken) Validate() error
- func (obj *MintNewEditionFromMasterEditionViaToken) ValidateAndBuild() (*Instruction, error)
- type MintNewEditionFromMasterEditionViaTokenArgs
- type MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) Build() *Instruction
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) EncodeToTree(parent treeout.Branches)
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetEditionMarkPdaAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetMasterEditionAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetMetadataAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewEditionAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataUpdateAuthorityAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMintAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMintAuthorityAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetPayerAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetRentAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositBoxAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositStoreAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetSystemProgramAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetTokenProgramAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetTokenVaultProgramAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAuthorityAccount() *common.AccountMeta
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetEditionMarkPdaAccount(editionMarkPda common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetMasterEditionAccount(masterEdition common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetMetadataAccount(metadata common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetMintNewEditionFromMasterEditionViaTokenArgs(...) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetNewEditionAccount(newEdition common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataAccount(newMetadata common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataUpdateAuthorityAccount(newMetadataUpdateAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetNewMintAccount(newMint common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetNewMintAuthorityAccount(newMintAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetPayerAccount(payer common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetProgramId(programId *common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositBoxAccount(safetyDepositBox common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositStoreAccount(safetyDepositStore common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetSystemProgramAccount(systemProgram common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetTokenProgramAccount(tokenProgram common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetTokenVaultProgramAccount(tokenVaultProgram common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetVaultAccount(vault common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetVaultAuthorityAccount(vaultAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) Validate() error
- func (obj *MintNewEditionFromMasterEditionViaVaultProxy) ValidateAndBuild() (*Instruction, error)
- type MintSupplyMustBeZeroError
- type MissingAccountInBuilderError
- type MissingArgumentInBuilderError
- type MissingAuthorizationRulesError
- type MissingAuthorizationRulesProgramError
- type MissingCollectionMasterEditionError
- type MissingCollectionMetadataError
- type MissingCollectionMintError
- type MissingDelegateRecordError
- type MissingDelegateRoleError
- type MissingEditionAccountError
- type MissingEditionError
- type MissingEditionMarkerAccountError
- type MissingImmutableOwnerExtensionError
- type MissingLockedTransferAddressError
- type MissingMasterEditionAccountError
- type MissingMasterEditionMintAccountError
- type MissingMasterEditionTokenAccountError
- type MissingPrintSupplyError
- type MissingProgrammableConfigError
- type MissingSplTokenProgramError
- type MissingTokenAccountError
- type MissingTokenOwnerAccountError
- type MissingTokenRecordError
- type MustBeBurnedError
- type MustBeEscrowAuthorityError
- type MustBeNonFungibleError
- type MustBeOneOfCreatorsError
- type MustUnverifyError
- type NameTooLongError
- type NoBalanceInAccountForAuthorizationError
- type NoCreatorsPresentOnMetadataError
- type NoFreezeAuthoritySetError
- type NotACollectionParentError
- type NotAMasterEditionError
- type NotAMemberOfCollectionError
- type NotAPrintEditionError
- type NotAllowedToChangeSellerFeeBasisPointsError
- type NotEnoughTokensError
- type NotEnoughUsesError
- type NotMintAuthorityError
- type NotRentExemptError
- type NotVerifiedMemberOfCollectionError
- type NumericalOverflowError
- type OneTimeAuthMintSupplyMustBeZeroForConversionError
- type OneTimePrintingAuthMintMismatchError
- type OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError
- type OnlySaleDelegateCanTransferError
- type OwnerMismatchError
- type Payload
- type PayloadKey
- type PayloadType
- func (obj *PayloadType) AsMerkleProof() PayloadTypeMerkleProof
- func (obj *PayloadType) AsNumber() PayloadTypeNumber
- func (obj *PayloadType) AsPubkey() PayloadTypePubkey
- func (obj *PayloadType) AsSeeds() PayloadTypeSeeds
- func (obj *PayloadType) IsMerkleProof() bool
- func (obj *PayloadType) IsNumber() bool
- func (obj *PayloadType) IsPubkey() bool
- func (obj *PayloadType) IsSeeds() bool
- func (obj *PayloadType) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *PayloadType) String() string
- func (obj *PayloadType) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- type PayloadTypeMerkleProof
- type PayloadTypeNumber
- type PayloadTypePubkey
- type PayloadTypeSeeds
- type PrimarySaleCanOnlyBeFlippedToTrueError
- type Print
- func (obj *Print) Build() *Instruction
- func (obj *Print) EncodeToTree(parent treeout.Branches)
- func (obj *Print) GetEditionAccount() *common.AccountMeta
- func (obj *Print) GetEditionMarkerPdaAccount() *common.AccountMeta
- func (obj *Print) GetEditionMetadataAccount() *common.AccountMeta
- func (obj *Print) GetEditionMintAccount() *common.AccountMeta
- func (obj *Print) GetEditionMintAuthorityAccount() *common.AccountMeta
- func (obj *Print) GetEditionTokenAccountAccount() *common.AccountMeta
- func (obj *Print) GetEditionTokenAccountOwnerAccount() *common.AccountMeta
- func (obj *Print) GetEditionTokenRecordAccount() *common.AccountMeta
- func (obj *Print) GetMasterEditionAccount() *common.AccountMeta
- func (obj *Print) GetMasterMetadataAccount() *common.AccountMeta
- func (obj *Print) GetMasterTokenAccountAccount() *common.AccountMeta
- func (obj *Print) GetMasterTokenAccountOwnerAccount() *common.AccountMeta
- func (obj *Print) GetPayerAccount() *common.AccountMeta
- func (obj *Print) GetSplAtaProgramAccount() *common.AccountMeta
- func (obj *Print) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *Print) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Print) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Print) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *Print) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Print) SetEditionAccount(edition common.PublicKey) *Print
- func (obj *Print) SetEditionMarkerPdaAccount(editionMarkerPda common.PublicKey) *Print
- func (obj *Print) SetEditionMetadataAccount(editionMetadata common.PublicKey) *Print
- func (obj *Print) SetEditionMintAccount(editionMint common.PublicKey) *Print
- func (obj *Print) SetEditionMintAuthorityAccount(editionMintAuthority common.PublicKey) *Print
- func (obj *Print) SetEditionTokenAccountAccount(editionTokenAccount common.PublicKey) *Print
- func (obj *Print) SetEditionTokenAccountOwnerAccount(editionTokenAccountOwner common.PublicKey) *Print
- func (obj *Print) SetEditionTokenRecordAccount(editionTokenRecord common.PublicKey) *Print
- func (obj *Print) SetMasterEditionAccount(masterEdition common.PublicKey) *Print
- func (obj *Print) SetMasterMetadataAccount(masterMetadata common.PublicKey) *Print
- func (obj *Print) SetMasterTokenAccountAccount(masterTokenAccount common.PublicKey) *Print
- func (obj *Print) SetMasterTokenAccountOwnerAccount(masterTokenAccountOwner common.PublicKey) *Print
- func (obj *Print) SetPayerAccount(payer common.PublicKey) *Print
- func (obj *Print) SetPrintArgs(printArgs PrintArgs) *Print
- func (obj *Print) SetProgramId(programId *common.PublicKey) *Print
- func (obj *Print) SetSplAtaProgramAccount(splAtaProgram common.PublicKey) *Print
- func (obj *Print) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Print
- func (obj *Print) SetSystemProgramAccount(systemProgram common.PublicKey, multiSigners ...common.PublicKey) *Print
- func (obj *Print) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Print
- func (obj *Print) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *Print
- func (obj *Print) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Print) Validate() error
- func (obj *Print) ValidateAndBuild() (*Instruction, error)
- type PrintArgs
- type PrintArgsV1
- type PrintEditionDoesNotMatchMasterEditionError
- type PrintSupply
- func (obj *PrintSupply) AsLimited() PrintSupplyLimited
- func (obj *PrintSupply) IsLimited() bool
- func (obj *PrintSupply) IsUnlimited() bool
- func (obj *PrintSupply) IsZero() bool
- func (obj *PrintSupply) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *PrintSupply) String() string
- func (obj *PrintSupply) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- type PrintSupplyLimited
- type PrintingMintAuthorizationAccountMismatchError
- type PrintingMintDecimalsShouldBeZeroError
- type PrintingMintMismatchError
- type PrintingMintSupplyMustBeZeroForConversionError
- type PrintingWouldBreachMaximumSupplyError
- type ProgramError
- type ProgrammableConfig
- func (obj *ProgrammableConfig) AsV1() ProgrammableConfigV1
- func (obj *ProgrammableConfig) IsV1() bool
- func (obj *ProgrammableConfig) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *ProgrammableConfig) String() string
- func (obj *ProgrammableConfig) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- type ProgrammableConfigV1
- type ProofInfo
- type PuffMetadata
- func (obj *PuffMetadata) Build() *Instruction
- func (obj *PuffMetadata) EncodeToTree(parent treeout.Branches)
- func (obj *PuffMetadata) GetMetadataAccount() *common.AccountMeta
- func (obj *PuffMetadata) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *PuffMetadata) SetMetadataAccount(metadata common.PublicKey, multiSigners ...common.PublicKey) *PuffMetadata
- func (obj *PuffMetadata) SetProgramId(programId *common.PublicKey) *PuffMetadata
- func (obj *PuffMetadata) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *PuffMetadata) Validate() error
- func (obj *PuffMetadata) ValidateAndBuild() (*Instruction, error)
- type RemoveCreatorVerification
- func (obj *RemoveCreatorVerification) Build() *Instruction
- func (obj *RemoveCreatorVerification) EncodeToTree(parent treeout.Branches)
- func (obj *RemoveCreatorVerification) GetCreatorAccount() *common.AccountMeta
- func (obj *RemoveCreatorVerification) GetMetadataAccount() *common.AccountMeta
- func (obj *RemoveCreatorVerification) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *RemoveCreatorVerification) SetCreatorAccount(creator common.PublicKey, multiSigners ...common.PublicKey) *RemoveCreatorVerification
- func (obj *RemoveCreatorVerification) SetMetadataAccount(metadata common.PublicKey) *RemoveCreatorVerification
- func (obj *RemoveCreatorVerification) SetProgramId(programId *common.PublicKey) *RemoveCreatorVerification
- func (obj *RemoveCreatorVerification) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *RemoveCreatorVerification) Validate() error
- func (obj *RemoveCreatorVerification) ValidateAndBuild() (*Instruction, error)
- type RemovedError
- type Reservation
- type ReservationAlreadyMadeError
- type ReservationArrayShouldBeSizeOneError
- type ReservationBreachesMaximumSupplyError
- type ReservationDoesNotExistError
- type ReservationExistsError
- type ReservationListDeprecatedError
- type ReservationListV1
- type ReservationListV2
- type ReservationNotCompleteError
- type ReservationNotSetError
- type ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError
- type ReservationV1
- type Revoke
- func (obj *Revoke) Build() *Instruction
- func (obj *Revoke) EncodeToTree(parent treeout.Branches)
- func (obj *Revoke) GetAuthorityAccount() *common.AccountMeta
- func (obj *Revoke) GetAuthorizationRulesAccount() *common.AccountMeta
- func (obj *Revoke) GetAuthorizationRulesProgramAccount() *common.AccountMeta
- func (obj *Revoke) GetDelegateAccount() *common.AccountMeta
- func (obj *Revoke) GetDelegateRecordAccount() *common.AccountMeta
- func (obj *Revoke) GetMasterEditionAccount() *common.AccountMeta
- func (obj *Revoke) GetMetadataAccount() *common.AccountMeta
- func (obj *Revoke) GetMintAccount() *common.AccountMeta
- func (obj *Revoke) GetPayerAccount() *common.AccountMeta
- func (obj *Revoke) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *Revoke) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Revoke) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Revoke) GetTokenAccount() *common.AccountMeta
- func (obj *Revoke) GetTokenRecordAccount() *common.AccountMeta
- func (obj *Revoke) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Revoke) SetAuthorityAccount(authority common.PublicKey) *Revoke
- func (obj *Revoke) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Revoke
- func (obj *Revoke) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Revoke
- func (obj *Revoke) SetDelegateAccount(delegate common.PublicKey) *Revoke
- func (obj *Revoke) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Revoke
- func (obj *Revoke) SetMasterEditionAccount(masterEdition common.PublicKey) *Revoke
- func (obj *Revoke) SetMetadataAccount(metadata common.PublicKey) *Revoke
- func (obj *Revoke) SetMintAccount(mint common.PublicKey) *Revoke
- func (obj *Revoke) SetPayerAccount(payer common.PublicKey) *Revoke
- func (obj *Revoke) SetProgramId(programId *common.PublicKey) *Revoke
- func (obj *Revoke) SetRevokeArgs(revokeArgs RevokeArgs) *Revoke
- func (obj *Revoke) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Revoke
- func (obj *Revoke) SetSystemProgramAccount(systemProgram common.PublicKey) *Revoke
- func (obj *Revoke) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Revoke
- func (obj *Revoke) SetTokenAccount(token common.PublicKey) *Revoke
- func (obj *Revoke) SetTokenRecordAccount(tokenRecord common.PublicKey) *Revoke
- func (obj *Revoke) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Revoke) Validate() error
- func (obj *Revoke) ValidateAndBuild() (*Instruction, error)
- type RevokeArgs
- type RevokeCollectionAuthority
- func (obj *RevokeCollectionAuthority) Build() *Instruction
- func (obj *RevokeCollectionAuthority) EncodeToTree(parent treeout.Branches)
- func (obj *RevokeCollectionAuthority) GetCollectionAuthorityRecordAccount() *common.AccountMeta
- func (obj *RevokeCollectionAuthority) GetDelegateAuthorityAccount() *common.AccountMeta
- func (obj *RevokeCollectionAuthority) GetMetadataAccount() *common.AccountMeta
- func (obj *RevokeCollectionAuthority) GetMintAccount() *common.AccountMeta
- func (obj *RevokeCollectionAuthority) GetRevokeAuthorityAccount() *common.AccountMeta
- func (obj *RevokeCollectionAuthority) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *RevokeCollectionAuthority) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey) *RevokeCollectionAuthority
- func (obj *RevokeCollectionAuthority) SetDelegateAuthorityAccount(delegateAuthority common.PublicKey) *RevokeCollectionAuthority
- func (obj *RevokeCollectionAuthority) SetMetadataAccount(metadata common.PublicKey) *RevokeCollectionAuthority
- func (obj *RevokeCollectionAuthority) SetMintAccount(mint common.PublicKey, multiSigners ...common.PublicKey) *RevokeCollectionAuthority
- func (obj *RevokeCollectionAuthority) SetProgramId(programId *common.PublicKey) *RevokeCollectionAuthority
- func (obj *RevokeCollectionAuthority) SetRevokeAuthorityAccount(revokeAuthority common.PublicKey) *RevokeCollectionAuthority
- func (obj *RevokeCollectionAuthority) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *RevokeCollectionAuthority) Validate() error
- func (obj *RevokeCollectionAuthority) ValidateAndBuild() (*Instruction, error)
- type RevokeCollectionAuthoritySignerIncorrectError
- type RevokeUseAuthority
- func (obj *RevokeUseAuthority) Build() *Instruction
- func (obj *RevokeUseAuthority) EncodeToTree(parent treeout.Branches)
- func (obj *RevokeUseAuthority) GetMetadataAccount() *common.AccountMeta
- func (obj *RevokeUseAuthority) GetMintAccount() *common.AccountMeta
- func (obj *RevokeUseAuthority) GetOwnerAccount() *common.AccountMeta
- func (obj *RevokeUseAuthority) GetOwnerTokenAccountAccount() *common.AccountMeta
- func (obj *RevokeUseAuthority) GetRentAccount() *common.AccountMeta
- func (obj *RevokeUseAuthority) GetSystemProgramAccount() *common.AccountMeta
- func (obj *RevokeUseAuthority) GetTokenProgramAccount() *common.AccountMeta
- func (obj *RevokeUseAuthority) GetUseAuthorityRecordAccount() *common.AccountMeta
- func (obj *RevokeUseAuthority) GetUserAccount() *common.AccountMeta
- func (obj *RevokeUseAuthority) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *RevokeUseAuthority) SetMetadataAccount(metadata common.PublicKey) *RevokeUseAuthority
- func (obj *RevokeUseAuthority) SetMintAccount(mint common.PublicKey) *RevokeUseAuthority
- func (obj *RevokeUseAuthority) SetOwnerAccount(owner common.PublicKey) *RevokeUseAuthority
- func (obj *RevokeUseAuthority) SetOwnerTokenAccountAccount(ownerTokenAccount common.PublicKey) *RevokeUseAuthority
- func (obj *RevokeUseAuthority) SetProgramId(programId *common.PublicKey) *RevokeUseAuthority
- func (obj *RevokeUseAuthority) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *RevokeUseAuthority
- func (obj *RevokeUseAuthority) SetSystemProgramAccount(systemProgram common.PublicKey) *RevokeUseAuthority
- func (obj *RevokeUseAuthority) SetTokenProgramAccount(tokenProgram common.PublicKey) *RevokeUseAuthority
- func (obj *RevokeUseAuthority) SetUseAuthorityRecordAccount(useAuthorityRecord common.PublicKey) *RevokeUseAuthority
- func (obj *RevokeUseAuthority) SetUserAccount(user common.PublicKey) *RevokeUseAuthority
- func (obj *RevokeUseAuthority) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *RevokeUseAuthority) Validate() error
- func (obj *RevokeUseAuthority) ValidateAndBuild() (*Instruction, error)
- type RuleSetToggle
- func (obj *RuleSetToggle) AsSet() RuleSetToggleSet
- func (obj *RuleSetToggle) IsClear() bool
- func (obj *RuleSetToggle) IsNone() bool
- func (obj *RuleSetToggle) IsSet() bool
- func (obj *RuleSetToggle) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *RuleSetToggle) String() string
- func (obj *RuleSetToggle) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- type RuleSetToggleSet
- type SeedsVec
- type SetAndVerifyCollection
- func (obj *SetAndVerifyCollection) Build() *Instruction
- func (obj *SetAndVerifyCollection) EncodeToTree(parent treeout.Branches)
- func (obj *SetAndVerifyCollection) GetCollectionAccount() *common.AccountMeta
- func (obj *SetAndVerifyCollection) GetCollectionAuthorityAccount() *common.AccountMeta
- func (obj *SetAndVerifyCollection) GetCollectionAuthorityRecordAccount() *common.AccountMeta
- func (obj *SetAndVerifyCollection) GetCollectionMasterEditionAccountAccount() *common.AccountMeta
- func (obj *SetAndVerifyCollection) GetCollectionMintAccount() *common.AccountMeta
- func (obj *SetAndVerifyCollection) GetMetadataAccount() *common.AccountMeta
- func (obj *SetAndVerifyCollection) GetPayerAccount() *common.AccountMeta
- func (obj *SetAndVerifyCollection) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *SetAndVerifyCollection) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *SetAndVerifyCollection) SetCollectionAccount(collection common.PublicKey) *SetAndVerifyCollection
- func (obj *SetAndVerifyCollection) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *SetAndVerifyCollection
- func (obj *SetAndVerifyCollection) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *SetAndVerifyCollection
- func (obj *SetAndVerifyCollection) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *SetAndVerifyCollection
- func (obj *SetAndVerifyCollection) SetCollectionMintAccount(collectionMint common.PublicKey) *SetAndVerifyCollection
- func (obj *SetAndVerifyCollection) SetMetadataAccount(metadata common.PublicKey) *SetAndVerifyCollection
- func (obj *SetAndVerifyCollection) SetPayerAccount(payer common.PublicKey) *SetAndVerifyCollection
- func (obj *SetAndVerifyCollection) SetProgramId(programId *common.PublicKey) *SetAndVerifyCollection
- func (obj *SetAndVerifyCollection) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *SetAndVerifyCollection
- func (obj *SetAndVerifyCollection) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *SetAndVerifyCollection) Validate() error
- func (obj *SetAndVerifyCollection) ValidateAndBuild() (*Instruction, error)
- type SetAndVerifySizedCollectionItem
- func (obj *SetAndVerifySizedCollectionItem) Build() *Instruction
- func (obj *SetAndVerifySizedCollectionItem) EncodeToTree(parent treeout.Branches)
- func (obj *SetAndVerifySizedCollectionItem) GetCollectionAccount() *common.AccountMeta
- func (obj *SetAndVerifySizedCollectionItem) GetCollectionAuthorityAccount() *common.AccountMeta
- func (obj *SetAndVerifySizedCollectionItem) GetCollectionAuthorityRecordAccount() *common.AccountMeta
- func (obj *SetAndVerifySizedCollectionItem) GetCollectionMasterEditionAccountAccount() *common.AccountMeta
- func (obj *SetAndVerifySizedCollectionItem) GetCollectionMintAccount() *common.AccountMeta
- func (obj *SetAndVerifySizedCollectionItem) GetMetadataAccount() *common.AccountMeta
- func (obj *SetAndVerifySizedCollectionItem) GetPayerAccount() *common.AccountMeta
- func (obj *SetAndVerifySizedCollectionItem) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *SetAndVerifySizedCollectionItem) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *SetAndVerifySizedCollectionItem) SetCollectionAccount(collection common.PublicKey) *SetAndVerifySizedCollectionItem
- func (obj *SetAndVerifySizedCollectionItem) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *SetAndVerifySizedCollectionItem
- func (obj *SetAndVerifySizedCollectionItem) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *SetAndVerifySizedCollectionItem
- func (obj *SetAndVerifySizedCollectionItem) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *SetAndVerifySizedCollectionItem
- func (obj *SetAndVerifySizedCollectionItem) SetCollectionMintAccount(collectionMint common.PublicKey) *SetAndVerifySizedCollectionItem
- func (obj *SetAndVerifySizedCollectionItem) SetMetadataAccount(metadata common.PublicKey) *SetAndVerifySizedCollectionItem
- func (obj *SetAndVerifySizedCollectionItem) SetPayerAccount(payer common.PublicKey) *SetAndVerifySizedCollectionItem
- func (obj *SetAndVerifySizedCollectionItem) SetProgramId(programId *common.PublicKey) *SetAndVerifySizedCollectionItem
- func (obj *SetAndVerifySizedCollectionItem) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *SetAndVerifySizedCollectionItem
- func (obj *SetAndVerifySizedCollectionItem) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *SetAndVerifySizedCollectionItem) Validate() error
- func (obj *SetAndVerifySizedCollectionItem) ValidateAndBuild() (*Instruction, error)
- type SetCollectionSize
- func (obj *SetCollectionSize) Build() *Instruction
- func (obj *SetCollectionSize) EncodeToTree(parent treeout.Branches)
- func (obj *SetCollectionSize) GetCollectionAuthorityAccount() *common.AccountMeta
- func (obj *SetCollectionSize) GetCollectionAuthorityRecordAccount() *common.AccountMeta
- func (obj *SetCollectionSize) GetCollectionMetadataAccount() *common.AccountMeta
- func (obj *SetCollectionSize) GetCollectionMintAccount() *common.AccountMeta
- func (obj *SetCollectionSize) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *SetCollectionSize) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *SetCollectionSize
- func (obj *SetCollectionSize) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *SetCollectionSize
- func (obj *SetCollectionSize) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *SetCollectionSize
- func (obj *SetCollectionSize) SetCollectionMintAccount(collectionMint common.PublicKey) *SetCollectionSize
- func (obj *SetCollectionSize) SetProgramId(programId *common.PublicKey) *SetCollectionSize
- func (obj *SetCollectionSize) SetSetCollectionSizeArgs(setCollectionSizeArgs SetCollectionSizeArgs) *SetCollectionSize
- func (obj *SetCollectionSize) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *SetCollectionSize) Validate() error
- func (obj *SetCollectionSize) ValidateAndBuild() (*Instruction, error)
- type SetCollectionSizeArgs
- type SetTokenStandard
- func (obj *SetTokenStandard) Build() *Instruction
- func (obj *SetTokenStandard) EncodeToTree(parent treeout.Branches)
- func (obj *SetTokenStandard) GetEditionAccount() *common.AccountMeta
- func (obj *SetTokenStandard) GetMetadataAccount() *common.AccountMeta
- func (obj *SetTokenStandard) GetMintAccount() *common.AccountMeta
- func (obj *SetTokenStandard) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *SetTokenStandard) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *SetTokenStandard) SetEditionAccount(edition common.PublicKey, multiSigners ...common.PublicKey) *SetTokenStandard
- func (obj *SetTokenStandard) SetMetadataAccount(metadata common.PublicKey) *SetTokenStandard
- func (obj *SetTokenStandard) SetMintAccount(mint common.PublicKey) *SetTokenStandard
- func (obj *SetTokenStandard) SetProgramId(programId *common.PublicKey) *SetTokenStandard
- func (obj *SetTokenStandard) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *SetTokenStandard
- func (obj *SetTokenStandard) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *SetTokenStandard) Validate() error
- func (obj *SetTokenStandard) ValidateAndBuild() (*Instruction, error)
- type ShareTotalMustBe100Error
- type SignMetadata
- func (obj *SignMetadata) Build() *Instruction
- func (obj *SignMetadata) EncodeToTree(parent treeout.Branches)
- func (obj *SignMetadata) GetCreatorAccount() *common.AccountMeta
- func (obj *SignMetadata) GetMetadataAccount() *common.AccountMeta
- func (obj *SignMetadata) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *SignMetadata) SetCreatorAccount(creator common.PublicKey, multiSigners ...common.PublicKey) *SignMetadata
- func (obj *SignMetadata) SetMetadataAccount(metadata common.PublicKey) *SignMetadata
- func (obj *SignMetadata) SetProgramId(programId *common.PublicKey) *SignMetadata
- func (obj *SignMetadata) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *SignMetadata) Validate() error
- func (obj *SignMetadata) ValidateAndBuild() (*Instruction, error)
- type SizedCollectionError
- type SpotMismatchError
- type SymbolTooLongError
- type ThawDelegatedAccount
- func (obj *ThawDelegatedAccount) Build() *Instruction
- func (obj *ThawDelegatedAccount) EncodeToTree(parent treeout.Branches)
- func (obj *ThawDelegatedAccount) GetDelegateAccount() *common.AccountMeta
- func (obj *ThawDelegatedAccount) GetEditionAccount() *common.AccountMeta
- func (obj *ThawDelegatedAccount) GetMintAccount() *common.AccountMeta
- func (obj *ThawDelegatedAccount) GetTokenAccountAccount() *common.AccountMeta
- func (obj *ThawDelegatedAccount) GetTokenProgramAccount() *common.AccountMeta
- func (obj *ThawDelegatedAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *ThawDelegatedAccount) SetDelegateAccount(delegate common.PublicKey) *ThawDelegatedAccount
- func (obj *ThawDelegatedAccount) SetEditionAccount(edition common.PublicKey) *ThawDelegatedAccount
- func (obj *ThawDelegatedAccount) SetMintAccount(mint common.PublicKey) *ThawDelegatedAccount
- func (obj *ThawDelegatedAccount) SetProgramId(programId *common.PublicKey) *ThawDelegatedAccount
- func (obj *ThawDelegatedAccount) SetTokenAccountAccount(tokenAccount common.PublicKey) *ThawDelegatedAccount
- func (obj *ThawDelegatedAccount) SetTokenProgramAccount(tokenProgram common.PublicKey, multiSigners ...common.PublicKey) *ThawDelegatedAccount
- func (obj *ThawDelegatedAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *ThawDelegatedAccount) Validate() error
- func (obj *ThawDelegatedAccount) ValidateAndBuild() (*Instruction, error)
- type TokenAccountMintMismatchError
- type TokenAccountMintMismatchV2Error
- type TokenAccountOneTimeAuthMintMismatchError
- type TokenBurnFailedError
- type TokenCloseFailedError
- type TokenDelegateRole
- type TokenMintToFailedError
- type TokenOwnedEscrow
- type TokenRecord
- type TokenStandard
- type TokenState
- type Transfer
- func (obj *Transfer) Build() *Instruction
- func (obj *Transfer) EncodeToTree(parent treeout.Branches)
- func (obj *Transfer) GetAuthorityAccount() *common.AccountMeta
- func (obj *Transfer) GetAuthorizationRulesAccount() *common.AccountMeta
- func (obj *Transfer) GetAuthorizationRulesProgramAccount() *common.AccountMeta
- func (obj *Transfer) GetDestinationAccount() *common.AccountMeta
- func (obj *Transfer) GetDestinationOwnerAccount() *common.AccountMeta
- func (obj *Transfer) GetDestinationTokenRecordAccount() *common.AccountMeta
- func (obj *Transfer) GetEditionAccount() *common.AccountMeta
- func (obj *Transfer) GetMetadataAccount() *common.AccountMeta
- func (obj *Transfer) GetMintAccount() *common.AccountMeta
- func (obj *Transfer) GetOwnerTokenRecordAccount() *common.AccountMeta
- func (obj *Transfer) GetPayerAccount() *common.AccountMeta
- func (obj *Transfer) GetSplAtaProgramAccount() *common.AccountMeta
- func (obj *Transfer) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *Transfer) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Transfer) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Transfer) GetTokenAccount() *common.AccountMeta
- func (obj *Transfer) GetTokenOwnerAccount() *common.AccountMeta
- func (obj *Transfer) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Transfer) SetAuthorityAccount(authority common.PublicKey) *Transfer
- func (obj *Transfer) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Transfer
- func (obj *Transfer) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Transfer
- func (obj *Transfer) SetDestinationAccount(destination common.PublicKey) *Transfer
- func (obj *Transfer) SetDestinationOwnerAccount(destinationOwner common.PublicKey) *Transfer
- func (obj *Transfer) SetDestinationTokenRecordAccount(destinationTokenRecord common.PublicKey) *Transfer
- func (obj *Transfer) SetEditionAccount(edition common.PublicKey) *Transfer
- func (obj *Transfer) SetMetadataAccount(metadata common.PublicKey) *Transfer
- func (obj *Transfer) SetMintAccount(mint common.PublicKey) *Transfer
- func (obj *Transfer) SetOwnerTokenRecordAccount(ownerTokenRecord common.PublicKey) *Transfer
- func (obj *Transfer) SetPayerAccount(payer common.PublicKey) *Transfer
- func (obj *Transfer) SetProgramId(programId *common.PublicKey) *Transfer
- func (obj *Transfer) SetSplAtaProgramAccount(splAtaProgram common.PublicKey) *Transfer
- func (obj *Transfer) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Transfer
- func (obj *Transfer) SetSystemProgramAccount(systemProgram common.PublicKey) *Transfer
- func (obj *Transfer) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Transfer
- func (obj *Transfer) SetTokenAccount(token common.PublicKey) *Transfer
- func (obj *Transfer) SetTokenOwnerAccount(tokenOwner common.PublicKey) *Transfer
- func (obj *Transfer) SetTransferArgs(transferArgs TransferArgs) *Transfer
- func (obj *Transfer) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Transfer) Validate() error
- func (obj *Transfer) ValidateAndBuild() (*Instruction, error)
- type TransferArgs
- type TransferArgsV1
- type TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) Build() *Instruction
- func (obj *TransferOutOfEscrow) EncodeToTree(parent treeout.Branches)
- func (obj *TransferOutOfEscrow) GetAtaProgramAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) GetAttributeDstAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) GetAttributeMintAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) GetAttributeSrcAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) GetAuthorityAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) GetEscrowAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) GetEscrowAccountAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) GetEscrowMintAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) GetMetadataAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) GetPayerAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) GetSystemProgramAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) GetTokenProgramAccount() *common.AccountMeta
- func (obj *TransferOutOfEscrow) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *TransferOutOfEscrow) SetAtaProgramAccount(ataProgram common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetAttributeDstAccount(attributeDst common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetAttributeMintAccount(attributeMint common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetAttributeSrcAccount(attributeSrc common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetAuthorityAccount(authority common.PublicKey, multiSigners ...common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetEscrowAccount(escrow common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetEscrowAccountAccount(escrowAccount common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetEscrowMintAccount(escrowMint common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetMetadataAccount(metadata common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetPayerAccount(payer common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetProgramId(programId *common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetSystemProgramAccount(systemProgram common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetTokenProgramAccount(tokenProgram common.PublicKey) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) SetTransferOutOfEscrowArgs(transferOutOfEscrowArgs TransferOutOfEscrowArgs) *TransferOutOfEscrow
- func (obj *TransferOutOfEscrow) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *TransferOutOfEscrow) Validate() error
- func (obj *TransferOutOfEscrow) ValidateAndBuild() (*Instruction, error)
- type TransferOutOfEscrowArgs
- type TriedToReplaceAnExistingReservationError
- type UninitializedError
- type Unlock
- func (obj *Unlock) Build() *Instruction
- func (obj *Unlock) EncodeToTree(parent treeout.Branches)
- func (obj *Unlock) GetAuthorityAccount() *common.AccountMeta
- func (obj *Unlock) GetAuthorizationRulesAccount() *common.AccountMeta
- func (obj *Unlock) GetAuthorizationRulesProgramAccount() *common.AccountMeta
- func (obj *Unlock) GetEditionAccount() *common.AccountMeta
- func (obj *Unlock) GetMetadataAccount() *common.AccountMeta
- func (obj *Unlock) GetMintAccount() *common.AccountMeta
- func (obj *Unlock) GetPayerAccount() *common.AccountMeta
- func (obj *Unlock) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *Unlock) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Unlock) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Unlock) GetTokenAccount() *common.AccountMeta
- func (obj *Unlock) GetTokenOwnerAccount() *common.AccountMeta
- func (obj *Unlock) GetTokenRecordAccount() *common.AccountMeta
- func (obj *Unlock) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Unlock) SetAuthorityAccount(authority common.PublicKey) *Unlock
- func (obj *Unlock) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Unlock
- func (obj *Unlock) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Unlock
- func (obj *Unlock) SetEditionAccount(edition common.PublicKey) *Unlock
- func (obj *Unlock) SetMetadataAccount(metadata common.PublicKey) *Unlock
- func (obj *Unlock) SetMintAccount(mint common.PublicKey) *Unlock
- func (obj *Unlock) SetPayerAccount(payer common.PublicKey) *Unlock
- func (obj *Unlock) SetProgramId(programId *common.PublicKey) *Unlock
- func (obj *Unlock) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Unlock
- func (obj *Unlock) SetSystemProgramAccount(systemProgram common.PublicKey) *Unlock
- func (obj *Unlock) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Unlock
- func (obj *Unlock) SetTokenAccount(token common.PublicKey) *Unlock
- func (obj *Unlock) SetTokenOwnerAccount(tokenOwner common.PublicKey) *Unlock
- func (obj *Unlock) SetTokenRecordAccount(tokenRecord common.PublicKey) *Unlock
- func (obj *Unlock) SetUnlockArgs(unlockArgs UnlockArgs) *Unlock
- func (obj *Unlock) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Unlock) Validate() error
- func (obj *Unlock) ValidateAndBuild() (*Instruction, error)
- type UnlockArgs
- type UnlockArgsV1
- type UnlockedTokenError
- type UnsizedCollectionError
- type UnusableError
- type Unverify
- func (obj *Unverify) Build() *Instruction
- func (obj *Unverify) EncodeToTree(parent treeout.Branches)
- func (obj *Unverify) GetAuthorityAccount() *common.AccountMeta
- func (obj *Unverify) GetCollectionMetadataAccount() *common.AccountMeta
- func (obj *Unverify) GetCollectionMintAccount() *common.AccountMeta
- func (obj *Unverify) GetDelegateRecordAccount() *common.AccountMeta
- func (obj *Unverify) GetMetadataAccount() *common.AccountMeta
- func (obj *Unverify) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Unverify) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Unverify) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Unverify) SetAuthorityAccount(authority common.PublicKey) *Unverify
- func (obj *Unverify) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *Unverify
- func (obj *Unverify) SetCollectionMintAccount(collectionMint common.PublicKey) *Unverify
- func (obj *Unverify) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Unverify
- func (obj *Unverify) SetMetadataAccount(metadata common.PublicKey) *Unverify
- func (obj *Unverify) SetProgramId(programId *common.PublicKey) *Unverify
- func (obj *Unverify) SetSystemProgramAccount(systemProgram common.PublicKey) *Unverify
- func (obj *Unverify) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey, multiSigners ...common.PublicKey) *Unverify
- func (obj *Unverify) SetVerificationArgs(verificationArgs VerificationArgs) *Unverify
- func (obj *Unverify) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Unverify) Validate() error
- func (obj *Unverify) ValidateAndBuild() (*Instruction, error)
- type UnverifyCollection
- func (obj *UnverifyCollection) Build() *Instruction
- func (obj *UnverifyCollection) EncodeToTree(parent treeout.Branches)
- func (obj *UnverifyCollection) GetCollectionAccount() *common.AccountMeta
- func (obj *UnverifyCollection) GetCollectionAuthorityAccount() *common.AccountMeta
- func (obj *UnverifyCollection) GetCollectionAuthorityRecordAccount() *common.AccountMeta
- func (obj *UnverifyCollection) GetCollectionMasterEditionAccountAccount() *common.AccountMeta
- func (obj *UnverifyCollection) GetCollectionMintAccount() *common.AccountMeta
- func (obj *UnverifyCollection) GetMetadataAccount() *common.AccountMeta
- func (obj *UnverifyCollection) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *UnverifyCollection) SetCollectionAccount(collection common.PublicKey) *UnverifyCollection
- func (obj *UnverifyCollection) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *UnverifyCollection
- func (obj *UnverifyCollection) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *UnverifyCollection
- func (obj *UnverifyCollection) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *UnverifyCollection
- func (obj *UnverifyCollection) SetCollectionMintAccount(collectionMint common.PublicKey) *UnverifyCollection
- func (obj *UnverifyCollection) SetMetadataAccount(metadata common.PublicKey) *UnverifyCollection
- func (obj *UnverifyCollection) SetProgramId(programId *common.PublicKey) *UnverifyCollection
- func (obj *UnverifyCollection) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *UnverifyCollection) Validate() error
- func (obj *UnverifyCollection) ValidateAndBuild() (*Instruction, error)
- type UnverifySizedCollectionItem
- func (obj *UnverifySizedCollectionItem) Build() *Instruction
- func (obj *UnverifySizedCollectionItem) EncodeToTree(parent treeout.Branches)
- func (obj *UnverifySizedCollectionItem) GetCollectionAccount() *common.AccountMeta
- func (obj *UnverifySizedCollectionItem) GetCollectionAuthorityAccount() *common.AccountMeta
- func (obj *UnverifySizedCollectionItem) GetCollectionAuthorityRecordAccount() *common.AccountMeta
- func (obj *UnverifySizedCollectionItem) GetCollectionMasterEditionAccountAccount() *common.AccountMeta
- func (obj *UnverifySizedCollectionItem) GetCollectionMintAccount() *common.AccountMeta
- func (obj *UnverifySizedCollectionItem) GetMetadataAccount() *common.AccountMeta
- func (obj *UnverifySizedCollectionItem) GetPayerAccount() *common.AccountMeta
- func (obj *UnverifySizedCollectionItem) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *UnverifySizedCollectionItem) SetCollectionAccount(collection common.PublicKey) *UnverifySizedCollectionItem
- func (obj *UnverifySizedCollectionItem) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *UnverifySizedCollectionItem
- func (obj *UnverifySizedCollectionItem) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *UnverifySizedCollectionItem
- func (obj *UnverifySizedCollectionItem) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *UnverifySizedCollectionItem
- func (obj *UnverifySizedCollectionItem) SetCollectionMintAccount(collectionMint common.PublicKey) *UnverifySizedCollectionItem
- func (obj *UnverifySizedCollectionItem) SetMetadataAccount(metadata common.PublicKey) *UnverifySizedCollectionItem
- func (obj *UnverifySizedCollectionItem) SetPayerAccount(payer common.PublicKey) *UnverifySizedCollectionItem
- func (obj *UnverifySizedCollectionItem) SetProgramId(programId *common.PublicKey) *UnverifySizedCollectionItem
- func (obj *UnverifySizedCollectionItem) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *UnverifySizedCollectionItem) Validate() error
- func (obj *UnverifySizedCollectionItem) ValidateAndBuild() (*Instruction, error)
- type Update
- func (obj *Update) Build() *Instruction
- func (obj *Update) EncodeToTree(parent treeout.Branches)
- func (obj *Update) GetAuthorityAccount() *common.AccountMeta
- func (obj *Update) GetAuthorizationRulesAccount() *common.AccountMeta
- func (obj *Update) GetAuthorizationRulesProgramAccount() *common.AccountMeta
- func (obj *Update) GetDelegateRecordAccount() *common.AccountMeta
- func (obj *Update) GetEditionAccount() *common.AccountMeta
- func (obj *Update) GetMetadataAccount() *common.AccountMeta
- func (obj *Update) GetMintAccount() *common.AccountMeta
- func (obj *Update) GetPayerAccount() *common.AccountMeta
- func (obj *Update) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Update) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Update) GetTokenAccount() *common.AccountMeta
- func (obj *Update) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Update) SetAuthorityAccount(authority common.PublicKey) *Update
- func (obj *Update) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Update
- func (obj *Update) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Update
- func (obj *Update) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Update
- func (obj *Update) SetEditionAccount(edition common.PublicKey) *Update
- func (obj *Update) SetMetadataAccount(metadata common.PublicKey) *Update
- func (obj *Update) SetMintAccount(mint common.PublicKey) *Update
- func (obj *Update) SetPayerAccount(payer common.PublicKey) *Update
- func (obj *Update) SetProgramId(programId *common.PublicKey) *Update
- func (obj *Update) SetSystemProgramAccount(systemProgram common.PublicKey) *Update
- func (obj *Update) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Update
- func (obj *Update) SetTokenAccount(token common.PublicKey) *Update
- func (obj *Update) SetUpdateArgs(updateArgs UpdateArgs) *Update
- func (obj *Update) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Update) Validate() error
- func (obj *Update) ValidateAndBuild() (*Instruction, error)
- type UpdateArgs
- func NewUpdateArgs_AsAuthorityItemDelegateV2(newUpdateAuthority *common.PublicKey, primarySaleHappened *bool, ...) UpdateArgs
- func NewUpdateArgs_AsCollectionDelegateV2(collection CollectionToggle, authorizationData *AuthorizationData) UpdateArgs
- func NewUpdateArgs_AsCollectionItemDelegateV2(collection CollectionToggle, authorizationData *AuthorizationData) UpdateArgs
- func NewUpdateArgs_AsDataDelegateV2(data *Data, authorizationData *AuthorizationData) UpdateArgs
- func NewUpdateArgs_AsDataItemDelegateV2(data *Data, authorizationData *AuthorizationData) UpdateArgs
- func NewUpdateArgs_AsProgrammableConfigDelegateV2(ruleSet RuleSetToggle, authorizationData *AuthorizationData) UpdateArgs
- func NewUpdateArgs_AsProgrammableConfigItemDelegateV2(ruleSet RuleSetToggle, authorizationData *AuthorizationData) UpdateArgs
- func NewUpdateArgs_AsUpdateAuthorityV2(newUpdateAuthority *common.PublicKey, data *Data, primarySaleHappened *bool, ...) UpdateArgs
- func NewUpdateArgs_V1(newUpdateAuthority *common.PublicKey, data *Data, primarySaleHappened *bool, ...) UpdateArgs
- func (obj *UpdateArgs) AsAsAuthorityItemDelegateV2() UpdateArgsAsAuthorityItemDelegateV2
- func (obj *UpdateArgs) AsAsCollectionDelegateV2() UpdateArgsAsCollectionDelegateV2
- func (obj *UpdateArgs) AsAsCollectionItemDelegateV2() UpdateArgsAsCollectionItemDelegateV2
- func (obj *UpdateArgs) AsAsDataDelegateV2() UpdateArgsAsDataDelegateV2
- func (obj *UpdateArgs) AsAsDataItemDelegateV2() UpdateArgsAsDataItemDelegateV2
- func (obj *UpdateArgs) AsAsProgrammableConfigDelegateV2() UpdateArgsAsProgrammableConfigDelegateV2
- func (obj *UpdateArgs) AsAsProgrammableConfigItemDelegateV2() UpdateArgsAsProgrammableConfigItemDelegateV2
- func (obj *UpdateArgs) AsAsUpdateAuthorityV2() UpdateArgsAsUpdateAuthorityV2
- func (obj *UpdateArgs) AsV1() UpdateArgsV1
- func (obj *UpdateArgs) IsAsAuthorityItemDelegateV2() bool
- func (obj *UpdateArgs) IsAsCollectionDelegateV2() bool
- func (obj *UpdateArgs) IsAsCollectionItemDelegateV2() bool
- func (obj *UpdateArgs) IsAsDataDelegateV2() bool
- func (obj *UpdateArgs) IsAsDataItemDelegateV2() bool
- func (obj *UpdateArgs) IsAsProgrammableConfigDelegateV2() bool
- func (obj *UpdateArgs) IsAsProgrammableConfigItemDelegateV2() bool
- func (obj *UpdateArgs) IsAsUpdateAuthorityV2() bool
- func (obj *UpdateArgs) IsV1() bool
- func (obj *UpdateArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *UpdateArgs) String() string
- func (obj *UpdateArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- type UpdateArgsAsAuthorityItemDelegateV2
- type UpdateArgsAsCollectionDelegateV2
- type UpdateArgsAsCollectionItemDelegateV2
- type UpdateArgsAsDataDelegateV2
- type UpdateArgsAsDataItemDelegateV2
- type UpdateArgsAsProgrammableConfigDelegateV2
- type UpdateArgsAsProgrammableConfigItemDelegateV2
- type UpdateArgsAsUpdateAuthorityV2
- type UpdateArgsV1
- type UpdateAuthorityIncorrectError
- type UpdateAuthorityIsNotSignerError
- type UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError
- type UpdateMetadataAccount
- func (obj *UpdateMetadataAccount) Build() *Instruction
- func (obj *UpdateMetadataAccount) EncodeToTree(parent treeout.Branches)
- func (obj *UpdateMetadataAccount) GetMetadataAccount() *common.AccountMeta
- func (obj *UpdateMetadataAccount) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *UpdateMetadataAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *UpdateMetadataAccount) SetMetadataAccount(metadata common.PublicKey) *UpdateMetadataAccount
- func (obj *UpdateMetadataAccount) SetProgramId(programId *common.PublicKey) *UpdateMetadataAccount
- func (obj *UpdateMetadataAccount) SetUpdateAuthorityAccount(updateAuthority common.PublicKey, multiSigners ...common.PublicKey) *UpdateMetadataAccount
- func (obj *UpdateMetadataAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *UpdateMetadataAccount) Validate() error
- func (obj *UpdateMetadataAccount) ValidateAndBuild() (*Instruction, error)
- type UpdateMetadataAccountArgsV2
- type UpdateMetadataAccountV2
- func (obj *UpdateMetadataAccountV2) Build() *Instruction
- func (obj *UpdateMetadataAccountV2) EncodeToTree(parent treeout.Branches)
- func (obj *UpdateMetadataAccountV2) GetMetadataAccount() *common.AccountMeta
- func (obj *UpdateMetadataAccountV2) GetUpdateAuthorityAccount() *common.AccountMeta
- func (obj *UpdateMetadataAccountV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *UpdateMetadataAccountV2) SetMetadataAccount(metadata common.PublicKey) *UpdateMetadataAccountV2
- func (obj *UpdateMetadataAccountV2) SetProgramId(programId *common.PublicKey) *UpdateMetadataAccountV2
- func (obj *UpdateMetadataAccountV2) SetUpdateAuthorityAccount(updateAuthority common.PublicKey, multiSigners ...common.PublicKey) *UpdateMetadataAccountV2
- func (obj *UpdateMetadataAccountV2) SetUpdateMetadataAccountArgsV2(updateMetadataAccountArgsV2 UpdateMetadataAccountArgsV2) *UpdateMetadataAccountV2
- func (obj *UpdateMetadataAccountV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *UpdateMetadataAccountV2) Validate() error
- func (obj *UpdateMetadataAccountV2) ValidateAndBuild() (*Instruction, error)
- type UpdatePrimarySaleHappenedViaToken
- func (obj *UpdatePrimarySaleHappenedViaToken) Build() *Instruction
- func (obj *UpdatePrimarySaleHappenedViaToken) EncodeToTree(parent treeout.Branches)
- func (obj *UpdatePrimarySaleHappenedViaToken) GetMetadataAccount() *common.AccountMeta
- func (obj *UpdatePrimarySaleHappenedViaToken) GetOwnerAccount() *common.AccountMeta
- func (obj *UpdatePrimarySaleHappenedViaToken) GetTokenAccount() *common.AccountMeta
- func (obj *UpdatePrimarySaleHappenedViaToken) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *UpdatePrimarySaleHappenedViaToken) SetMetadataAccount(metadata common.PublicKey) *UpdatePrimarySaleHappenedViaToken
- func (obj *UpdatePrimarySaleHappenedViaToken) SetOwnerAccount(owner common.PublicKey) *UpdatePrimarySaleHappenedViaToken
- func (obj *UpdatePrimarySaleHappenedViaToken) SetProgramId(programId *common.PublicKey) *UpdatePrimarySaleHappenedViaToken
- func (obj *UpdatePrimarySaleHappenedViaToken) SetTokenAccount(token common.PublicKey, multiSigners ...common.PublicKey) *UpdatePrimarySaleHappenedViaToken
- func (obj *UpdatePrimarySaleHappenedViaToken) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *UpdatePrimarySaleHappenedViaToken) Validate() error
- func (obj *UpdatePrimarySaleHappenedViaToken) ValidateAndBuild() (*Instruction, error)
- type UriTooLongError
- type Use
- func (obj *Use) Build() *Instruction
- func (obj *Use) EncodeToTree(parent treeout.Branches)
- func (obj *Use) GetAuthorityAccount() *common.AccountMeta
- func (obj *Use) GetAuthorizationRulesAccount() *common.AccountMeta
- func (obj *Use) GetAuthorizationRulesProgramAccount() *common.AccountMeta
- func (obj *Use) GetDelegateRecordAccount() *common.AccountMeta
- func (obj *Use) GetEditionAccount() *common.AccountMeta
- func (obj *Use) GetMetadataAccount() *common.AccountMeta
- func (obj *Use) GetMintAccount() *common.AccountMeta
- func (obj *Use) GetPayerAccount() *common.AccountMeta
- func (obj *Use) GetSplTokenProgramAccount() *common.AccountMeta
- func (obj *Use) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Use) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Use) GetTokenAccount() *common.AccountMeta
- func (obj *Use) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Use) SetAuthorityAccount(authority common.PublicKey) *Use
- func (obj *Use) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Use
- func (obj *Use) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Use
- func (obj *Use) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Use
- func (obj *Use) SetEditionAccount(edition common.PublicKey) *Use
- func (obj *Use) SetMetadataAccount(metadata common.PublicKey) *Use
- func (obj *Use) SetMintAccount(mint common.PublicKey) *Use
- func (obj *Use) SetPayerAccount(payer common.PublicKey) *Use
- func (obj *Use) SetProgramId(programId *common.PublicKey) *Use
- func (obj *Use) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Use
- func (obj *Use) SetSystemProgramAccount(systemProgram common.PublicKey) *Use
- func (obj *Use) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Use
- func (obj *Use) SetTokenAccount(token common.PublicKey) *Use
- func (obj *Use) SetUseArgs(useArgs UseArgs) *Use
- func (obj *Use) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Use) Validate() error
- func (obj *Use) ValidateAndBuild() (*Instruction, error)
- type UseArgs
- type UseArgsV1
- type UseAuthorityRecord
- type UseAuthorityRecordAlreadyExistsError
- type UseAuthorityRecordAlreadyRevokedError
- type UseMethod
- type Uses
- type UsesToggle
- func (obj *UsesToggle) AsSet() UsesToggleSet
- func (obj *UsesToggle) IsClear() bool
- func (obj *UsesToggle) IsNone() bool
- func (obj *UsesToggle) IsSet() bool
- func (obj *UsesToggle) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *UsesToggle) String() string
- func (obj *UsesToggle) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- type UsesToggleSet
- type Utilize
- func (obj *Utilize) Build() *Instruction
- func (obj *Utilize) EncodeToTree(parent treeout.Branches)
- func (obj *Utilize) GetAtaProgramAccount() *common.AccountMeta
- func (obj *Utilize) GetBurnerAccount() *common.AccountMeta
- func (obj *Utilize) GetMetadataAccount() *common.AccountMeta
- func (obj *Utilize) GetMintAccount() *common.AccountMeta
- func (obj *Utilize) GetOwnerAccount() *common.AccountMeta
- func (obj *Utilize) GetRentAccount() *common.AccountMeta
- func (obj *Utilize) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Utilize) GetTokenAccountAccount() *common.AccountMeta
- func (obj *Utilize) GetTokenProgramAccount() *common.AccountMeta
- func (obj *Utilize) GetUseAuthorityAccount() *common.AccountMeta
- func (obj *Utilize) GetUseAuthorityRecordAccount() *common.AccountMeta
- func (obj *Utilize) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Utilize) SetAtaProgramAccount(ataProgram common.PublicKey) *Utilize
- func (obj *Utilize) SetBurnerAccount(burner common.PublicKey, multiSigners ...common.PublicKey) *Utilize
- func (obj *Utilize) SetMetadataAccount(metadata common.PublicKey) *Utilize
- func (obj *Utilize) SetMintAccount(mint common.PublicKey) *Utilize
- func (obj *Utilize) SetOwnerAccount(owner common.PublicKey) *Utilize
- func (obj *Utilize) SetProgramId(programId *common.PublicKey) *Utilize
- func (obj *Utilize) SetRentAccount(rent common.PublicKey) *Utilize
- func (obj *Utilize) SetSystemProgramAccount(systemProgram common.PublicKey) *Utilize
- func (obj *Utilize) SetTokenAccountAccount(tokenAccount common.PublicKey) *Utilize
- func (obj *Utilize) SetTokenProgramAccount(tokenProgram common.PublicKey) *Utilize
- func (obj *Utilize) SetUseAuthorityAccount(useAuthority common.PublicKey) *Utilize
- func (obj *Utilize) SetUseAuthorityRecordAccount(useAuthorityRecord common.PublicKey) *Utilize
- func (obj *Utilize) SetUtilizeArgs(utilizeArgs UtilizeArgs) *Utilize
- func (obj *Utilize) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Utilize) Validate() error
- func (obj *Utilize) ValidateAndBuild() (*Instruction, error)
- type UtilizeArgs
- type VerificationArgs
- type Verify
- func (obj *Verify) Build() *Instruction
- func (obj *Verify) EncodeToTree(parent treeout.Branches)
- func (obj *Verify) GetAuthorityAccount() *common.AccountMeta
- func (obj *Verify) GetCollectionMasterEditionAccount() *common.AccountMeta
- func (obj *Verify) GetCollectionMetadataAccount() *common.AccountMeta
- func (obj *Verify) GetCollectionMintAccount() *common.AccountMeta
- func (obj *Verify) GetDelegateRecordAccount() *common.AccountMeta
- func (obj *Verify) GetMetadataAccount() *common.AccountMeta
- func (obj *Verify) GetSystemProgramAccount() *common.AccountMeta
- func (obj *Verify) GetSysvarInstructionsAccount() *common.AccountMeta
- func (obj *Verify) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *Verify) SetAuthorityAccount(authority common.PublicKey) *Verify
- func (obj *Verify) SetCollectionMasterEditionAccount(collectionMasterEdition common.PublicKey) *Verify
- func (obj *Verify) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *Verify
- func (obj *Verify) SetCollectionMintAccount(collectionMint common.PublicKey) *Verify
- func (obj *Verify) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Verify
- func (obj *Verify) SetMetadataAccount(metadata common.PublicKey) *Verify
- func (obj *Verify) SetProgramId(programId *common.PublicKey) *Verify
- func (obj *Verify) SetSystemProgramAccount(systemProgram common.PublicKey) *Verify
- func (obj *Verify) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey, multiSigners ...common.PublicKey) *Verify
- func (obj *Verify) SetVerificationArgs(verificationArgs VerificationArgs) *Verify
- func (obj *Verify) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *Verify) Validate() error
- func (obj *Verify) ValidateAndBuild() (*Instruction, error)
- type VerifyCollection
- func (obj *VerifyCollection) Build() *Instruction
- func (obj *VerifyCollection) EncodeToTree(parent treeout.Branches)
- func (obj *VerifyCollection) GetCollectionAccount() *common.AccountMeta
- func (obj *VerifyCollection) GetCollectionAuthorityAccount() *common.AccountMeta
- func (obj *VerifyCollection) GetCollectionAuthorityRecordAccount() *common.AccountMeta
- func (obj *VerifyCollection) GetCollectionMasterEditionAccountAccount() *common.AccountMeta
- func (obj *VerifyCollection) GetCollectionMintAccount() *common.AccountMeta
- func (obj *VerifyCollection) GetMetadataAccount() *common.AccountMeta
- func (obj *VerifyCollection) GetPayerAccount() *common.AccountMeta
- func (obj *VerifyCollection) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *VerifyCollection) SetCollectionAccount(collection common.PublicKey) *VerifyCollection
- func (obj *VerifyCollection) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *VerifyCollection
- func (obj *VerifyCollection) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *VerifyCollection
- func (obj *VerifyCollection) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *VerifyCollection
- func (obj *VerifyCollection) SetCollectionMintAccount(collectionMint common.PublicKey) *VerifyCollection
- func (obj *VerifyCollection) SetMetadataAccount(metadata common.PublicKey) *VerifyCollection
- func (obj *VerifyCollection) SetPayerAccount(payer common.PublicKey) *VerifyCollection
- func (obj *VerifyCollection) SetProgramId(programId *common.PublicKey) *VerifyCollection
- func (obj *VerifyCollection) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *VerifyCollection) Validate() error
- func (obj *VerifyCollection) ValidateAndBuild() (*Instruction, error)
- type VerifySizedCollectionItem
- func (obj *VerifySizedCollectionItem) Build() *Instruction
- func (obj *VerifySizedCollectionItem) EncodeToTree(parent treeout.Branches)
- func (obj *VerifySizedCollectionItem) GetCollectionAccount() *common.AccountMeta
- func (obj *VerifySizedCollectionItem) GetCollectionAuthorityAccount() *common.AccountMeta
- func (obj *VerifySizedCollectionItem) GetCollectionAuthorityRecordAccount() *common.AccountMeta
- func (obj *VerifySizedCollectionItem) GetCollectionMasterEditionAccountAccount() *common.AccountMeta
- func (obj *VerifySizedCollectionItem) GetCollectionMintAccount() *common.AccountMeta
- func (obj *VerifySizedCollectionItem) GetMetadataAccount() *common.AccountMeta
- func (obj *VerifySizedCollectionItem) GetPayerAccount() *common.AccountMeta
- func (obj *VerifySizedCollectionItem) MarshalWithEncoder(encoder *binary.Encoder) (err error)
- func (obj *VerifySizedCollectionItem) SetCollectionAccount(collection common.PublicKey) *VerifySizedCollectionItem
- func (obj *VerifySizedCollectionItem) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *VerifySizedCollectionItem
- func (obj *VerifySizedCollectionItem) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *VerifySizedCollectionItem
- func (obj *VerifySizedCollectionItem) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *VerifySizedCollectionItem
- func (obj *VerifySizedCollectionItem) SetCollectionMintAccount(collectionMint common.PublicKey) *VerifySizedCollectionItem
- func (obj *VerifySizedCollectionItem) SetMetadataAccount(metadata common.PublicKey) *VerifySizedCollectionItem
- func (obj *VerifySizedCollectionItem) SetPayerAccount(payer common.PublicKey) *VerifySizedCollectionItem
- func (obj *VerifySizedCollectionItem) SetProgramId(programId *common.PublicKey) *VerifySizedCollectionItem
- func (obj *VerifySizedCollectionItem) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
- func (obj *VerifySizedCollectionItem) Validate() error
- func (obj *VerifySizedCollectionItem) ValidateAndBuild() (*Instruction, error)
Constants ¶
const APPROVE_USE_AUTHORITY_ARGS_SIZE = 8
const COLLECTION_AUTHORITY_RECORD_SIZE = 35
const COLLECTION_SIZE = 33
const CREATE_MASTER_EDITION_ARGS_SIZE = 9
const CREATOR_SIZE = 34
const EDITION_SIZE = 41
const MASTER_EDITION_V1_SIZE = 82
const MASTER_EDITION_V2_SIZE = 18
const METADATA_DELEGATE_RECORD_SIZE = 98
const MINT_NEW_EDITION_FROM_MASTER_EDITION_VIA_TOKEN_ARGS_SIZE = 8
const ProgramName = "mpl_token_metadata"
const RESERVATION_LIST_V1_SIZE = 76
const RESERVATION_LIST_V2_SIZE = 106
const RESERVATION_SIZE = 48
const RESERVATION_V1_SIZE = 34
const SET_COLLECTION_SIZE_ARGS_SIZE = 8
const TOKEN_RECORD_SIZE = 80
const TRANSFER_OUT_OF_ESCROW_ARGS_SIZE = 8
const USES_SIZE = 17
const USE_AUTHORITY_RECORD_SIZE = 10
const UTILIZE_ARGS_SIZE = 8
Variables ¶
var ( Instruction_CreateMetadataAccount uint8 = 0 Instruction_UpdateMetadataAccount uint8 = 1 Instruction_DeprecatedCreateMasterEdition uint8 = 2 Instruction_DeprecatedMintNewEditionFromMasterEditionViaPrintingToken uint8 = 3 Instruction_UpdatePrimarySaleHappenedViaToken uint8 = 4 Instruction_DeprecatedSetReservationList uint8 = 5 Instruction_DeprecatedCreateReservationList uint8 = 6 Instruction_SignMetadata uint8 = 7 Instruction_DeprecatedMintPrintingTokensViaToken uint8 = 8 Instruction_DeprecatedMintPrintingTokens uint8 = 9 Instruction_CreateMasterEdition uint8 = 10 Instruction_MintNewEditionFromMasterEditionViaToken uint8 = 11 Instruction_ConvertMasterEditionV1ToV2 uint8 = 12 Instruction_MintNewEditionFromMasterEditionViaVaultProxy uint8 = 13 Instruction_PuffMetadata uint8 = 14 Instruction_UpdateMetadataAccountV2 uint8 = 15 Instruction_CreateMetadataAccountV2 uint8 = 16 Instruction_CreateMasterEditionV3 uint8 = 17 Instruction_VerifyCollection uint8 = 18 Instruction_Utilize uint8 = 19 Instruction_ApproveUseAuthority uint8 = 20 Instruction_RevokeUseAuthority uint8 = 21 Instruction_UnverifyCollection uint8 = 22 Instruction_ApproveCollectionAuthority uint8 = 23 Instruction_RevokeCollectionAuthority uint8 = 24 Instruction_SetAndVerifyCollection uint8 = 25 Instruction_FreezeDelegatedAccount uint8 = 26 Instruction_ThawDelegatedAccount uint8 = 27 Instruction_RemoveCreatorVerification uint8 = 28 Instruction_BurnNft uint8 = 29 Instruction_VerifySizedCollectionItem uint8 = 30 Instruction_UnverifySizedCollectionItem uint8 = 31 Instruction_SetAndVerifySizedCollectionItem uint8 = 32 Instruction_CreateMetadataAccountV3 uint8 = 33 Instruction_SetCollectionSize uint8 = 34 Instruction_SetTokenStandard uint8 = 35 Instruction_BubblegumSetCollectionSize uint8 = 36 Instruction_BurnEditionNft uint8 = 37 Instruction_CreateEscrowAccount uint8 = 38 Instruction_CloseEscrowAccount uint8 = 39 Instruction_TransferOutOfEscrow uint8 = 40 Instruction_Burn uint8 = 41 Instruction_Create uint8 = 42 Instruction_Mint uint8 = 43 Instruction_Delegate uint8 = 44 Instruction_Revoke uint8 = 45 Instruction_Lock uint8 = 46 Instruction_Unlock uint8 = 47 Instruction_Migrate uint8 = 48 Instruction_Transfer uint8 = 49 Instruction_Update uint8 = 50 Instruction_Use uint8 = 51 Instruction_Verify uint8 = 52 Instruction_Unverify uint8 = 53 Instruction_Collect uint8 = 54 Instruction_Print uint8 = 55 )
var InstructionImplDef = binary.NewVariantDefinition(binary.Uint8TypeIDEncoding, []binary.VariantType{ { "create_metadata_account", (*CreateMetadataAccount)(nil), }, { "update_metadata_account", (*UpdateMetadataAccount)(nil), }, { "deprecated_create_master_edition", (*DeprecatedCreateMasterEdition)(nil), }, { "deprecated_mint_new_edition_from_master_edition_via_printing_token", (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken)(nil), }, { "update_primary_sale_happened_via_token", (*UpdatePrimarySaleHappenedViaToken)(nil), }, { "deprecated_set_reservation_list", (*DeprecatedSetReservationList)(nil), }, { "deprecated_create_reservation_list", (*DeprecatedCreateReservationList)(nil), }, { "sign_metadata", (*SignMetadata)(nil), }, { "deprecated_mint_printing_tokens_via_token", (*DeprecatedMintPrintingTokensViaToken)(nil), }, { "deprecated_mint_printing_tokens", (*DeprecatedMintPrintingTokens)(nil), }, { "create_master_edition", (*CreateMasterEdition)(nil), }, { "mint_new_edition_from_master_edition_via_token", (*MintNewEditionFromMasterEditionViaToken)(nil), }, { "convert_master_edition_v1_to_v2", (*ConvertMasterEditionV1ToV2)(nil), }, { "mint_new_edition_from_master_edition_via_vault_proxy", (*MintNewEditionFromMasterEditionViaVaultProxy)(nil), }, { "puff_metadata", (*PuffMetadata)(nil), }, { "update_metadata_account_v2", (*UpdateMetadataAccountV2)(nil), }, { "create_metadata_account_v2", (*CreateMetadataAccountV2)(nil), }, { "create_master_edition_v3", (*CreateMasterEditionV3)(nil), }, { "verify_collection", (*VerifyCollection)(nil), }, { "utilize", (*Utilize)(nil), }, { "approve_use_authority", (*ApproveUseAuthority)(nil), }, { "revoke_use_authority", (*RevokeUseAuthority)(nil), }, { "unverify_collection", (*UnverifyCollection)(nil), }, { "approve_collection_authority", (*ApproveCollectionAuthority)(nil), }, { "revoke_collection_authority", (*RevokeCollectionAuthority)(nil), }, { "set_and_verify_collection", (*SetAndVerifyCollection)(nil), }, { "freeze_delegated_account", (*FreezeDelegatedAccount)(nil), }, { "thaw_delegated_account", (*ThawDelegatedAccount)(nil), }, { "remove_creator_verification", (*RemoveCreatorVerification)(nil), }, { "burn_nft", (*BurnNft)(nil), }, { "verify_sized_collection_item", (*VerifySizedCollectionItem)(nil), }, { "unverify_sized_collection_item", (*UnverifySizedCollectionItem)(nil), }, { "set_and_verify_sized_collection_item", (*SetAndVerifySizedCollectionItem)(nil), }, { "create_metadata_account_v3", (*CreateMetadataAccountV3)(nil), }, { "set_collection_size", (*SetCollectionSize)(nil), }, { "set_token_standard", (*SetTokenStandard)(nil), }, { "bubblegum_set_collection_size", (*BubblegumSetCollectionSize)(nil), }, { "burn_edition_nft", (*BurnEditionNft)(nil), }, { "create_escrow_account", (*CreateEscrowAccount)(nil), }, { "close_escrow_account", (*CloseEscrowAccount)(nil), }, { "transfer_out_of_escrow", (*TransferOutOfEscrow)(nil), }, { "burn", (*Burn)(nil), }, { "create", (*Create)(nil), }, { "mint", (*Mint)(nil), }, { "delegate", (*Delegate)(nil), }, { "revoke", (*Revoke)(nil), }, { "lock", (*Lock)(nil), }, { "unlock", (*Unlock)(nil), }, { "migrate", (*Migrate)(nil), }, { "transfer", (*Transfer)(nil), }, { "update", (*Update)(nil), }, { "use", (*Use)(nil), }, { "verify", (*Verify)(nil), }, { "unverify", (*Unverify)(nil), }, { "collect", (*Collect)(nil), }, { "print", (*Print)(nil), }, })
var ProgramID common.PublicKey = common.MustPublicKeyFromBase58("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")
Functions ¶
func FindAssociatedAddress ¶
func InstructionIDToName ¶
InstructionIDToName returns the name of the instruction given its ID.
func SetProgramID ¶
Types ¶
type AddressNotInReservationError ¶
type AddressNotInReservationError struct{}
AddressNotInReservationError Error: 53 “
func (AddressNotInReservationError) Code ¶
func (e AddressNotInReservationError) Code() int
func (AddressNotInReservationError) Error ¶
func (e AddressNotInReservationError) Error() string
type AlreadyInitializedError ¶
type AlreadyInitializedError struct{}
AlreadyInitializedError Error: 3 `Already initialized`
func (AlreadyInitializedError) Code ¶
func (e AlreadyInitializedError) Code() int
func (AlreadyInitializedError) Error ¶
func (e AlreadyInitializedError) Error() string
type AlreadyUnverifiedError ¶
type AlreadyUnverifiedError struct{}
AlreadyUnverifiedError Error: 115 “
func (AlreadyUnverifiedError) Code ¶
func (e AlreadyUnverifiedError) Code() int
func (AlreadyUnverifiedError) Error ¶
func (e AlreadyUnverifiedError) Error() string
type AlreadyVerifiedError ¶
type AlreadyVerifiedError struct{}
AlreadyVerifiedError Error: 114 `Item is already verified.`
func (AlreadyVerifiedError) Code ¶
func (e AlreadyVerifiedError) Code() int
func (AlreadyVerifiedError) Error ¶
func (e AlreadyVerifiedError) Error() string
type AmountMustBeGreaterThanZeroError ¶
type AmountMustBeGreaterThanZeroError struct{}
AmountMustBeGreaterThanZeroError Error: 168 `Amount must be greater than zero`
func (AmountMustBeGreaterThanZeroError) Code ¶
func (e AmountMustBeGreaterThanZeroError) Code() int
func (AmountMustBeGreaterThanZeroError) Error ¶
func (e AmountMustBeGreaterThanZeroError) Error() string
type ApproveCollectionAuthority ¶
type ApproveCollectionAuthority struct { // [0] = [WRITE] collectionAuthorityRecord `Collection Authority Record PDA` // [1] = [] newCollectionAuthority `A Collection Authority` // [2] = [WRITE, SIGNER] updateAuthority `Update Authority of Collection NFT` // [3] = [WRITE, SIGNER] payer `Payer` // [4] = [] metadata `Collection Metadata account` // [5] = [] mint `Mint of Collection Metadata` // [6] = [] systemProgram `System program` // [7] = [] rent `Rent info` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
ApproveCollectionAuthority Instruction
func NewApproveCollectionAuthorityInstruction ¶
func NewApproveCollectionAuthorityInstruction( collectionAuthorityRecord common.PublicKey, newCollectionAuthority common.PublicKey, updateAuthority common.PublicKey, payer common.PublicKey, metadata common.PublicKey, mint common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, ) *ApproveCollectionAuthority
NewApproveCollectionAuthorityInstruction
Parameters:
collectionAuthorityRecord: Collection Authority Record PDA newCollectionAuthority: A Collection Authority updateAuthority: Update Authority of Collection NFT payer: Payer metadata: Collection Metadata account mint: Mint of Collection Metadata systemProgram: System program rent: Rent info
func NewApproveCollectionAuthorityInstructionBuilder ¶
func NewApproveCollectionAuthorityInstructionBuilder() *ApproveCollectionAuthority
NewApproveCollectionAuthorityInstructionBuilder creates a new `ApproveCollectionAuthority` instruction builder.
func (*ApproveCollectionAuthority) Build ¶
func (obj *ApproveCollectionAuthority) Build() *Instruction
func (*ApproveCollectionAuthority) EncodeToTree ¶
func (obj *ApproveCollectionAuthority) EncodeToTree(parent treeout.Branches)
func (*ApproveCollectionAuthority) GetCollectionAuthorityRecordAccount ¶
func (obj *ApproveCollectionAuthority) GetCollectionAuthorityRecordAccount() *common.AccountMeta
GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*ApproveCollectionAuthority) GetMetadataAccount ¶
func (obj *ApproveCollectionAuthority) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Collection Metadata account
func (*ApproveCollectionAuthority) GetMintAccount ¶
func (obj *ApproveCollectionAuthority) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of Collection Metadata
func (*ApproveCollectionAuthority) GetNewCollectionAuthorityAccount ¶
func (obj *ApproveCollectionAuthority) GetNewCollectionAuthorityAccount() *common.AccountMeta
GetNewCollectionAuthorityAccount gets the "newCollectionAuthority" parameter. A Collection Authority
func (*ApproveCollectionAuthority) GetPayerAccount ¶
func (obj *ApproveCollectionAuthority) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*ApproveCollectionAuthority) GetRentAccount ¶
func (obj *ApproveCollectionAuthority) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*ApproveCollectionAuthority) GetSystemProgramAccount ¶
func (obj *ApproveCollectionAuthority) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*ApproveCollectionAuthority) GetUpdateAuthorityAccount ¶
func (obj *ApproveCollectionAuthority) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update Authority of Collection NFT
func (*ApproveCollectionAuthority) MarshalWithEncoder ¶
func (obj *ApproveCollectionAuthority) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*ApproveCollectionAuthority) SetCollectionAuthorityRecordAccount ¶
func (obj *ApproveCollectionAuthority) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey) *ApproveCollectionAuthority
SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*ApproveCollectionAuthority) SetMetadataAccount ¶
func (obj *ApproveCollectionAuthority) SetMetadataAccount(metadata common.PublicKey) *ApproveCollectionAuthority
SetMetadataAccount sets the "metadata" parameter. Collection Metadata account
func (*ApproveCollectionAuthority) SetMintAccount ¶
func (obj *ApproveCollectionAuthority) SetMintAccount(mint common.PublicKey) *ApproveCollectionAuthority
SetMintAccount sets the "mint" parameter. Mint of Collection Metadata
func (*ApproveCollectionAuthority) SetNewCollectionAuthorityAccount ¶
func (obj *ApproveCollectionAuthority) SetNewCollectionAuthorityAccount(newCollectionAuthority common.PublicKey) *ApproveCollectionAuthority
SetNewCollectionAuthorityAccount sets the "newCollectionAuthority" parameter. A Collection Authority
func (*ApproveCollectionAuthority) SetPayerAccount ¶
func (obj *ApproveCollectionAuthority) SetPayerAccount(payer common.PublicKey) *ApproveCollectionAuthority
SetPayerAccount sets the "payer" parameter. Payer
func (*ApproveCollectionAuthority) SetProgramId ¶
func (obj *ApproveCollectionAuthority) SetProgramId(programId *common.PublicKey) *ApproveCollectionAuthority
func (*ApproveCollectionAuthority) SetRentAccount ¶
func (obj *ApproveCollectionAuthority) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *ApproveCollectionAuthority
SetRentAccount sets the "rent" parameter. Rent info
func (*ApproveCollectionAuthority) SetSystemProgramAccount ¶
func (obj *ApproveCollectionAuthority) SetSystemProgramAccount(systemProgram common.PublicKey) *ApproveCollectionAuthority
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*ApproveCollectionAuthority) SetUpdateAuthorityAccount ¶
func (obj *ApproveCollectionAuthority) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *ApproveCollectionAuthority
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update Authority of Collection NFT
func (*ApproveCollectionAuthority) UnmarshalWithDecoder ¶
func (obj *ApproveCollectionAuthority) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*ApproveCollectionAuthority) Validate ¶
func (obj *ApproveCollectionAuthority) Validate() error
func (*ApproveCollectionAuthority) ValidateAndBuild ¶
func (obj *ApproveCollectionAuthority) 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 ApproveUseAuthority ¶
type ApproveUseAuthority struct { ApproveUseAuthorityArgs *ApproveUseAuthorityArgs // [0] = [WRITE] useAuthorityRecord `Use Authority Record PDA` // [1] = [WRITE, SIGNER] owner `Owner` // [2] = [WRITE, SIGNER] payer `Payer` // [3] = [] user `A Use Authority` // [4] = [WRITE] ownerTokenAccount `Owned Token Account Of Mint` // [5] = [] metadata `Metadata account` // [6] = [] mint `Mint of Metadata` // [7] = [] burner `Program As Signer (Burner)` // [8] = [] tokenProgram `Token program` // [9] = [] systemProgram `System program` // [10] = [] rent `Rent info` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
ApproveUseAuthority Instruction
func NewApproveUseAuthorityInstruction ¶
func NewApproveUseAuthorityInstruction( approveUseAuthorityArgs ApproveUseAuthorityArgs, useAuthorityRecord common.PublicKey, owner common.PublicKey, payer common.PublicKey, user common.PublicKey, ownerTokenAccount common.PublicKey, metadata common.PublicKey, mint common.PublicKey, burner common.PublicKey, tokenProgram common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, ) *ApproveUseAuthority
NewApproveUseAuthorityInstruction
Parameters:
approveUseAuthorityArgs: useAuthorityRecord: Use Authority Record PDA owner: Owner payer: Payer user: A Use Authority ownerTokenAccount: Owned Token Account Of Mint metadata: Metadata account mint: Mint of Metadata burner: Program As Signer (Burner) tokenProgram: Token program systemProgram: System program rent: Rent info
func NewApproveUseAuthorityInstructionBuilder ¶
func NewApproveUseAuthorityInstructionBuilder() *ApproveUseAuthority
NewApproveUseAuthorityInstructionBuilder creates a new `ApproveUseAuthority` instruction builder.
func (*ApproveUseAuthority) Build ¶
func (obj *ApproveUseAuthority) Build() *Instruction
func (*ApproveUseAuthority) EncodeToTree ¶
func (obj *ApproveUseAuthority) EncodeToTree(parent treeout.Branches)
func (*ApproveUseAuthority) GetBurnerAccount ¶
func (obj *ApproveUseAuthority) GetBurnerAccount() *common.AccountMeta
GetBurnerAccount gets the "burner" parameter. Program As Signer (Burner)
func (*ApproveUseAuthority) GetMetadataAccount ¶
func (obj *ApproveUseAuthority) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*ApproveUseAuthority) GetMintAccount ¶
func (obj *ApproveUseAuthority) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of Metadata
func (*ApproveUseAuthority) GetOwnerAccount ¶
func (obj *ApproveUseAuthority) GetOwnerAccount() *common.AccountMeta
GetOwnerAccount gets the "owner" parameter. Owner
func (*ApproveUseAuthority) GetOwnerTokenAccountAccount ¶
func (obj *ApproveUseAuthority) GetOwnerTokenAccountAccount() *common.AccountMeta
GetOwnerTokenAccountAccount gets the "ownerTokenAccount" parameter. Owned Token Account Of Mint
func (*ApproveUseAuthority) GetPayerAccount ¶
func (obj *ApproveUseAuthority) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*ApproveUseAuthority) GetRentAccount ¶
func (obj *ApproveUseAuthority) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*ApproveUseAuthority) GetSystemProgramAccount ¶
func (obj *ApproveUseAuthority) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*ApproveUseAuthority) GetTokenProgramAccount ¶
func (obj *ApproveUseAuthority) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token program
func (*ApproveUseAuthority) GetUseAuthorityRecordAccount ¶
func (obj *ApproveUseAuthority) GetUseAuthorityRecordAccount() *common.AccountMeta
GetUseAuthorityRecordAccount gets the "useAuthorityRecord" parameter. Use Authority Record PDA
func (*ApproveUseAuthority) GetUserAccount ¶
func (obj *ApproveUseAuthority) GetUserAccount() *common.AccountMeta
GetUserAccount gets the "user" parameter. A Use Authority
func (*ApproveUseAuthority) MarshalWithEncoder ¶
func (obj *ApproveUseAuthority) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*ApproveUseAuthority) SetApproveUseAuthorityArgs ¶
func (obj *ApproveUseAuthority) SetApproveUseAuthorityArgs(approveUseAuthorityArgs ApproveUseAuthorityArgs) *ApproveUseAuthority
SetApproveUseAuthorityArgs sets the "approveUseAuthorityArgs" parameter.
func (*ApproveUseAuthority) SetBurnerAccount ¶
func (obj *ApproveUseAuthority) SetBurnerAccount(burner common.PublicKey) *ApproveUseAuthority
SetBurnerAccount sets the "burner" parameter. Program As Signer (Burner)
func (*ApproveUseAuthority) SetMetadataAccount ¶
func (obj *ApproveUseAuthority) SetMetadataAccount(metadata common.PublicKey) *ApproveUseAuthority
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*ApproveUseAuthority) SetMintAccount ¶
func (obj *ApproveUseAuthority) SetMintAccount(mint common.PublicKey) *ApproveUseAuthority
SetMintAccount sets the "mint" parameter. Mint of Metadata
func (*ApproveUseAuthority) SetOwnerAccount ¶
func (obj *ApproveUseAuthority) SetOwnerAccount(owner common.PublicKey) *ApproveUseAuthority
SetOwnerAccount sets the "owner" parameter. Owner
func (*ApproveUseAuthority) SetOwnerTokenAccountAccount ¶
func (obj *ApproveUseAuthority) SetOwnerTokenAccountAccount(ownerTokenAccount common.PublicKey) *ApproveUseAuthority
SetOwnerTokenAccountAccount sets the "ownerTokenAccount" parameter. Owned Token Account Of Mint
func (*ApproveUseAuthority) SetPayerAccount ¶
func (obj *ApproveUseAuthority) SetPayerAccount(payer common.PublicKey) *ApproveUseAuthority
SetPayerAccount sets the "payer" parameter. Payer
func (*ApproveUseAuthority) SetProgramId ¶
func (obj *ApproveUseAuthority) SetProgramId(programId *common.PublicKey) *ApproveUseAuthority
func (*ApproveUseAuthority) SetRentAccount ¶
func (obj *ApproveUseAuthority) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *ApproveUseAuthority
SetRentAccount sets the "rent" parameter. Rent info
func (*ApproveUseAuthority) SetSystemProgramAccount ¶
func (obj *ApproveUseAuthority) SetSystemProgramAccount(systemProgram common.PublicKey) *ApproveUseAuthority
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*ApproveUseAuthority) SetTokenProgramAccount ¶
func (obj *ApproveUseAuthority) SetTokenProgramAccount(tokenProgram common.PublicKey) *ApproveUseAuthority
SetTokenProgramAccount sets the "tokenProgram" parameter. Token program
func (*ApproveUseAuthority) SetUseAuthorityRecordAccount ¶
func (obj *ApproveUseAuthority) SetUseAuthorityRecordAccount(useAuthorityRecord common.PublicKey) *ApproveUseAuthority
SetUseAuthorityRecordAccount sets the "useAuthorityRecord" parameter. Use Authority Record PDA
func (*ApproveUseAuthority) SetUserAccount ¶
func (obj *ApproveUseAuthority) SetUserAccount(user common.PublicKey) *ApproveUseAuthority
SetUserAccount sets the "user" parameter. A Use Authority
func (*ApproveUseAuthority) UnmarshalWithDecoder ¶
func (obj *ApproveUseAuthority) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*ApproveUseAuthority) Validate ¶
func (obj *ApproveUseAuthority) Validate() error
func (*ApproveUseAuthority) ValidateAndBuild ¶
func (obj *ApproveUseAuthority) 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 ApproveUseAuthorityArgs ¶
type ApproveUseAuthorityArgs struct {
NumberOfUses uint64
}
ApproveUseAuthorityArgs Struct
func (*ApproveUseAuthorityArgs) MarshalWithEncoder ¶
func (obj *ApproveUseAuthorityArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*ApproveUseAuthorityArgs) UnmarshalWithDecoder ¶
func (obj *ApproveUseAuthorityArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type AssetData ¶
type AssetData struct { Name string Symbol string Uri string SellerFeeBasisPoints uint16 Creators []Creator `bin:"optional"` PrimarySaleHappened bool IsMutable bool TokenStandard TokenStandard Collection *Collection `bin:"optional"` Uses *Uses `bin:"optional"` CollectionDetails *CollectionDetails `bin:"optional"` RuleSet *common.PublicKey `bin:"optional"` }
AssetData Struct
func (*AssetData) MarshalWithEncoder ¶
type AuthorityType ¶
AuthorityType Enum
const ( AuthorityTypeNone AuthorityType = iota AuthorityTypeMetadata AuthorityTypeHolder AuthorityTypeMetadataDelegate AuthorityTypeTokenDelegate )
func (AuthorityType) String ¶
func (value AuthorityType) String() string
type AuthorizationData ¶
type AuthorizationData struct {
Payload Payload
}
AuthorizationData Struct
func (*AuthorizationData) MarshalWithEncoder ¶
func (obj *AuthorizationData) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*AuthorizationData) UnmarshalWithDecoder ¶
func (obj *AuthorizationData) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type AuthorizationTokenAccountOwnerMismatchError ¶
type AuthorizationTokenAccountOwnerMismatchError struct{}
AuthorizationTokenAccountOwnerMismatchError Error: 34 “
func (AuthorizationTokenAccountOwnerMismatchError) Code ¶
func (e AuthorizationTokenAccountOwnerMismatchError) Code() int
func (AuthorizationTokenAccountOwnerMismatchError) Error ¶
func (e AuthorizationTokenAccountOwnerMismatchError) Error() string
type BeyondAlottedAddressSizeError ¶
type BeyondAlottedAddressSizeError struct{}
BeyondAlottedAddressSizeError Error: 64 “
func (BeyondAlottedAddressSizeError) Code ¶
func (e BeyondAlottedAddressSizeError) Code() int
func (BeyondAlottedAddressSizeError) Error ¶
func (e BeyondAlottedAddressSizeError) Error() string
type BeyondMaxAddressSizeError ¶
type BeyondMaxAddressSizeError struct{}
BeyondMaxAddressSizeError Error: 50 “
func (BeyondMaxAddressSizeError) Code ¶
func (e BeyondMaxAddressSizeError) Code() int
func (BeyondMaxAddressSizeError) Error ¶
func (e BeyondMaxAddressSizeError) Error() string
type BorshDeserializationError ¶
type BorshDeserializationError struct{}
BorshDeserializationError Error: 111 “
func (BorshDeserializationError) Code ¶
func (e BorshDeserializationError) Code() int
func (BorshDeserializationError) Error ¶
func (e BorshDeserializationError) Error() string
type BorshSerializationError ¶
type BorshSerializationError struct{}
BorshSerializationError Error: 129 `Borsh Serialization Error`
func (BorshSerializationError) Code ¶
func (e BorshSerializationError) Code() int
func (BorshSerializationError) Error ¶
func (e BorshSerializationError) Error() string
type BubblegumSetCollectionSize ¶
type BubblegumSetCollectionSize struct { SetCollectionSizeArgs *SetCollectionSizeArgs // [0] = [WRITE] collectionMetadata `Collection Metadata account` // [1] = [SIGNER] collectionAuthority `Collection Update authority` // [2] = [] collectionMint `Mint of the Collection` // [3] = [SIGNER] bubblegumSigner `Signing PDA of Bubblegum program` // [4] = [] collectionAuthorityRecord `Collection Authority Record PDA` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
BubblegumSetCollectionSize Instruction
func NewBubblegumSetCollectionSizeInstruction ¶
func NewBubblegumSetCollectionSizeInstruction( setCollectionSizeArgs SetCollectionSizeArgs, collectionMetadata common.PublicKey, collectionAuthority common.PublicKey, collectionMint common.PublicKey, bubblegumSigner common.PublicKey, collectionAuthorityRecord common.PublicKey, ) *BubblegumSetCollectionSize
NewBubblegumSetCollectionSizeInstruction
Parameters:
setCollectionSizeArgs: collectionMetadata: Collection Metadata account collectionAuthority: Collection Update authority collectionMint: Mint of the Collection bubblegumSigner: Signing PDA of Bubblegum program collectionAuthorityRecord: Collection Authority Record PDA
func NewBubblegumSetCollectionSizeInstructionBuilder ¶
func NewBubblegumSetCollectionSizeInstructionBuilder() *BubblegumSetCollectionSize
NewBubblegumSetCollectionSizeInstructionBuilder creates a new `BubblegumSetCollectionSize` instruction builder.
func (*BubblegumSetCollectionSize) Build ¶
func (obj *BubblegumSetCollectionSize) Build() *Instruction
func (*BubblegumSetCollectionSize) EncodeToTree ¶
func (obj *BubblegumSetCollectionSize) EncodeToTree(parent treeout.Branches)
func (*BubblegumSetCollectionSize) GetBubblegumSignerAccount ¶
func (obj *BubblegumSetCollectionSize) GetBubblegumSignerAccount() *common.AccountMeta
GetBubblegumSignerAccount gets the "bubblegumSigner" parameter. Signing PDA of Bubblegum program
func (*BubblegumSetCollectionSize) GetCollectionAuthorityAccount ¶
func (obj *BubblegumSetCollectionSize) GetCollectionAuthorityAccount() *common.AccountMeta
GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Update authority
func (*BubblegumSetCollectionSize) GetCollectionAuthorityRecordAccount ¶
func (obj *BubblegumSetCollectionSize) GetCollectionAuthorityRecordAccount() *common.AccountMeta
GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*BubblegumSetCollectionSize) GetCollectionMetadataAccount ¶
func (obj *BubblegumSetCollectionSize) GetCollectionMetadataAccount() *common.AccountMeta
GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Collection Metadata account
func (*BubblegumSetCollectionSize) GetCollectionMintAccount ¶
func (obj *BubblegumSetCollectionSize) GetCollectionMintAccount() *common.AccountMeta
GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection
func (*BubblegumSetCollectionSize) MarshalWithEncoder ¶
func (obj *BubblegumSetCollectionSize) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*BubblegumSetCollectionSize) SetBubblegumSignerAccount ¶
func (obj *BubblegumSetCollectionSize) SetBubblegumSignerAccount(bubblegumSigner common.PublicKey) *BubblegumSetCollectionSize
SetBubblegumSignerAccount sets the "bubblegumSigner" parameter. Signing PDA of Bubblegum program
func (*BubblegumSetCollectionSize) SetCollectionAuthorityAccount ¶
func (obj *BubblegumSetCollectionSize) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *BubblegumSetCollectionSize
SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Update authority
func (*BubblegumSetCollectionSize) SetCollectionAuthorityRecordAccount ¶
func (obj *BubblegumSetCollectionSize) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *BubblegumSetCollectionSize
SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*BubblegumSetCollectionSize) SetCollectionMetadataAccount ¶
func (obj *BubblegumSetCollectionSize) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *BubblegumSetCollectionSize
SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Collection Metadata account
func (*BubblegumSetCollectionSize) SetCollectionMintAccount ¶
func (obj *BubblegumSetCollectionSize) SetCollectionMintAccount(collectionMint common.PublicKey) *BubblegumSetCollectionSize
SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection
func (*BubblegumSetCollectionSize) SetProgramId ¶
func (obj *BubblegumSetCollectionSize) SetProgramId(programId *common.PublicKey) *BubblegumSetCollectionSize
func (*BubblegumSetCollectionSize) SetSetCollectionSizeArgs ¶
func (obj *BubblegumSetCollectionSize) SetSetCollectionSizeArgs(setCollectionSizeArgs SetCollectionSizeArgs) *BubblegumSetCollectionSize
SetSetCollectionSizeArgs sets the "setCollectionSizeArgs" parameter.
func (*BubblegumSetCollectionSize) UnmarshalWithDecoder ¶
func (obj *BubblegumSetCollectionSize) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*BubblegumSetCollectionSize) Validate ¶
func (obj *BubblegumSetCollectionSize) Validate() error
func (*BubblegumSetCollectionSize) ValidateAndBuild ¶
func (obj *BubblegumSetCollectionSize) 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 Burn ¶
type Burn struct { BurnArgs *BurnArgs // [0] = [WRITE, SIGNER] authority `Asset owner or Utility delegate` // [1] = [WRITE] collectionMetadata `Metadata of the Collection` // [2] = [WRITE] metadata `Metadata (pda of ['metadata', program id, mint id])` // [3] = [WRITE] edition `Edition of the asset` // [4] = [WRITE] mint `Mint of token asset` // [5] = [WRITE] token `Token account to close` // [6] = [WRITE] masterEdition `Master edition account` // [7] = [] masterEditionMint `Master edition mint of the asset` // [8] = [] masterEditionToken `Master edition token account` // [9] = [WRITE] editionMarker `Edition marker account` // [10] = [WRITE] tokenRecord `Token record account` // [11] = [] systemProgram `System program` // [12] = [] sysvarInstructions `Instructions sysvar account` // [13] = [] splTokenProgram `SPL Token Program` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Burn Instruction
func NewBurnInstruction ¶
func NewBurnInstruction( burnArgs BurnArgs, authority common.PublicKey, collectionMetadata common.PublicKey, metadata common.PublicKey, edition common.PublicKey, mint common.PublicKey, token common.PublicKey, masterEdition common.PublicKey, masterEditionMint common.PublicKey, masterEditionToken common.PublicKey, editionMarker common.PublicKey, tokenRecord common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, splTokenProgram common.PublicKey, ) *Burn
NewBurnInstruction
Parameters:
burnArgs: authority: Asset owner or Utility delegate collectionMetadata: Metadata of the Collection metadata: Metadata (pda of ['metadata', program id, mint id]) edition: Edition of the asset mint: Mint of token asset token: Token account to close masterEdition: Master edition account masterEditionMint: Master edition mint of the asset masterEditionToken: Master edition token account editionMarker: Edition marker account tokenRecord: Token record account systemProgram: System program sysvarInstructions: Instructions sysvar account splTokenProgram: SPL Token Program
func NewBurnInstructionBuilder ¶
func NewBurnInstructionBuilder() *Burn
NewBurnInstructionBuilder creates a new `Burn` instruction builder.
func (*Burn) Build ¶
func (obj *Burn) Build() *Instruction
func (*Burn) EncodeToTree ¶
func (*Burn) GetAuthorityAccount ¶
func (obj *Burn) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Asset owner or Utility delegate
func (*Burn) GetCollectionMetadataAccount ¶
func (obj *Burn) GetCollectionMetadataAccount() *common.AccountMeta
GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Metadata of the Collection
func (*Burn) GetEditionAccount ¶
func (obj *Burn) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Edition of the asset
func (*Burn) GetEditionMarkerAccount ¶
func (obj *Burn) GetEditionMarkerAccount() *common.AccountMeta
GetEditionMarkerAccount gets the "editionMarker" parameter. Edition marker account
func (*Burn) GetMasterEditionAccount ¶
func (obj *Burn) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Master edition account
func (*Burn) GetMasterEditionMintAccount ¶
func (obj *Burn) GetMasterEditionMintAccount() *common.AccountMeta
GetMasterEditionMintAccount gets the "masterEditionMint" parameter. Master edition mint of the asset
func (*Burn) GetMasterEditionTokenAccount ¶
func (obj *Burn) GetMasterEditionTokenAccount() *common.AccountMeta
GetMasterEditionTokenAccount gets the "masterEditionToken" parameter. Master edition token account
func (*Burn) GetMetadataAccount ¶
func (obj *Burn) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])
func (*Burn) GetMintAccount ¶
func (obj *Burn) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of token asset
func (*Burn) GetSplTokenProgramAccount ¶
func (obj *Burn) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program
func (*Burn) GetSystemProgramAccount ¶
func (obj *Burn) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*Burn) GetSysvarInstructionsAccount ¶
func (obj *Burn) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Burn) GetTokenAccount ¶
func (obj *Burn) GetTokenAccount() *common.AccountMeta
GetTokenAccount gets the "token" parameter. Token account to close
func (*Burn) GetTokenRecordAccount ¶
func (obj *Burn) GetTokenRecordAccount() *common.AccountMeta
GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account
func (*Burn) MarshalWithEncoder ¶
func (*Burn) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Asset owner or Utility delegate
func (*Burn) SetBurnArgs ¶
SetBurnArgs sets the "burnArgs" parameter.
func (*Burn) SetCollectionMetadataAccount ¶
SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Metadata of the Collection
func (*Burn) SetEditionAccount ¶
SetEditionAccount sets the "edition" parameter. Edition of the asset
func (*Burn) SetEditionMarkerAccount ¶
SetEditionMarkerAccount sets the "editionMarker" parameter. Edition marker account
func (*Burn) SetMasterEditionAccount ¶
SetMasterEditionAccount sets the "masterEdition" parameter. Master edition account
func (*Burn) SetMasterEditionMintAccount ¶
SetMasterEditionMintAccount sets the "masterEditionMint" parameter. Master edition mint of the asset
func (*Burn) SetMasterEditionTokenAccount ¶
SetMasterEditionTokenAccount sets the "masterEditionToken" parameter. Master edition token account
func (*Burn) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])
func (*Burn) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint of token asset
func (*Burn) SetSplTokenProgramAccount ¶
func (obj *Burn) SetSplTokenProgramAccount(splTokenProgram common.PublicKey, multiSigners ...common.PublicKey) *Burn
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program
func (*Burn) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*Burn) SetSysvarInstructionsAccount ¶
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Burn) SetTokenAccount ¶
SetTokenAccount sets the "token" parameter. Token account to close
func (*Burn) SetTokenRecordAccount ¶
SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account
func (*Burn) UnmarshalWithDecoder ¶
func (*Burn) ValidateAndBuild ¶
func (obj *Burn) 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 BurnArgs ¶
type BurnArgs struct {
V1 *BurnArgsV1 `bin:"optional"`
}
BurnArgs Enum
func NewBurnArgs_V1 ¶
func (*BurnArgs) AsV1 ¶
func (obj *BurnArgs) AsV1() BurnArgsV1
func (*BurnArgs) MarshalWithEncoder ¶
type BurnArgsV1 ¶
type BurnArgsV1 struct {
Amount uint64
}
func (*BurnArgsV1) MarshalWithEncoder ¶
func (obj *BurnArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*BurnArgsV1) UnmarshalWithDecoder ¶
func (obj *BurnArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type BurnEditionNft ¶
type BurnEditionNft struct { // [0] = [WRITE] metadata `Metadata (pda of ['metadata', program id, mint id])` // [1] = [WRITE, SIGNER] owner `NFT owner` // [2] = [WRITE] printEditionMint `Mint of the print edition NFT` // [3] = [] masterEditionMint `Mint of the original/master NFT` // [4] = [WRITE] printEditionTokenAccount `Token account the print edition NFT is in` // [5] = [] masterEditionTokenAccount `Token account the Master Edition NFT is in` // [6] = [WRITE] masterEditionAccount `MasterEdition2 of the original NFT` // [7] = [WRITE] printEditionAccount `Print Edition account of the NFT` // [8] = [WRITE] editionMarkerAccount `Edition Marker PDA of the NFT` // [9] = [] splTokenProgram `SPL Token Program` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
BurnEditionNft Instruction
func NewBurnEditionNftInstruction ¶
func NewBurnEditionNftInstruction( metadata common.PublicKey, owner common.PublicKey, printEditionMint common.PublicKey, masterEditionMint common.PublicKey, printEditionTokenAccount common.PublicKey, masterEditionTokenAccount common.PublicKey, masterEditionAccount common.PublicKey, printEditionAccount common.PublicKey, editionMarkerAccount common.PublicKey, splTokenProgram common.PublicKey, ) *BurnEditionNft
NewBurnEditionNftInstruction
Parameters:
metadata: Metadata (pda of ['metadata', program id, mint id]) owner: NFT owner printEditionMint: Mint of the print edition NFT masterEditionMint: Mint of the original/master NFT printEditionTokenAccount: Token account the print edition NFT is in masterEditionTokenAccount: Token account the Master Edition NFT is in masterEditionAccount: MasterEdition2 of the original NFT printEditionAccount: Print Edition account of the NFT editionMarkerAccount: Edition Marker PDA of the NFT splTokenProgram: SPL Token Program
func NewBurnEditionNftInstructionBuilder ¶
func NewBurnEditionNftInstructionBuilder() *BurnEditionNft
NewBurnEditionNftInstructionBuilder creates a new `BurnEditionNft` instruction builder.
func (*BurnEditionNft) Build ¶
func (obj *BurnEditionNft) Build() *Instruction
func (*BurnEditionNft) EncodeToTree ¶
func (obj *BurnEditionNft) EncodeToTree(parent treeout.Branches)
func (*BurnEditionNft) GetEditionMarkerAccountAccount ¶
func (obj *BurnEditionNft) GetEditionMarkerAccountAccount() *common.AccountMeta
GetEditionMarkerAccountAccount gets the "editionMarkerAccount" parameter. Edition Marker PDA of the NFT
func (*BurnEditionNft) GetMasterEditionAccountAccount ¶
func (obj *BurnEditionNft) GetMasterEditionAccountAccount() *common.AccountMeta
GetMasterEditionAccountAccount gets the "masterEditionAccount" parameter. MasterEdition2 of the original NFT
func (*BurnEditionNft) GetMasterEditionMintAccount ¶
func (obj *BurnEditionNft) GetMasterEditionMintAccount() *common.AccountMeta
GetMasterEditionMintAccount gets the "masterEditionMint" parameter. Mint of the original/master NFT
func (*BurnEditionNft) GetMasterEditionTokenAccountAccount ¶
func (obj *BurnEditionNft) GetMasterEditionTokenAccountAccount() *common.AccountMeta
GetMasterEditionTokenAccountAccount gets the "masterEditionTokenAccount" parameter. Token account the Master Edition NFT is in
func (*BurnEditionNft) GetMetadataAccount ¶
func (obj *BurnEditionNft) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])
func (*BurnEditionNft) GetOwnerAccount ¶
func (obj *BurnEditionNft) GetOwnerAccount() *common.AccountMeta
GetOwnerAccount gets the "owner" parameter. NFT owner
func (*BurnEditionNft) GetPrintEditionAccountAccount ¶
func (obj *BurnEditionNft) GetPrintEditionAccountAccount() *common.AccountMeta
GetPrintEditionAccountAccount gets the "printEditionAccount" parameter. Print Edition account of the NFT
func (*BurnEditionNft) GetPrintEditionMintAccount ¶
func (obj *BurnEditionNft) GetPrintEditionMintAccount() *common.AccountMeta
GetPrintEditionMintAccount gets the "printEditionMint" parameter. Mint of the print edition NFT
func (*BurnEditionNft) GetPrintEditionTokenAccountAccount ¶
func (obj *BurnEditionNft) GetPrintEditionTokenAccountAccount() *common.AccountMeta
GetPrintEditionTokenAccountAccount gets the "printEditionTokenAccount" parameter. Token account the print edition NFT is in
func (*BurnEditionNft) GetSplTokenProgramAccount ¶
func (obj *BurnEditionNft) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program
func (*BurnEditionNft) MarshalWithEncoder ¶
func (obj *BurnEditionNft) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*BurnEditionNft) SetEditionMarkerAccountAccount ¶
func (obj *BurnEditionNft) SetEditionMarkerAccountAccount(editionMarkerAccount common.PublicKey) *BurnEditionNft
SetEditionMarkerAccountAccount sets the "editionMarkerAccount" parameter. Edition Marker PDA of the NFT
func (*BurnEditionNft) SetMasterEditionAccountAccount ¶
func (obj *BurnEditionNft) SetMasterEditionAccountAccount(masterEditionAccount common.PublicKey) *BurnEditionNft
SetMasterEditionAccountAccount sets the "masterEditionAccount" parameter. MasterEdition2 of the original NFT
func (*BurnEditionNft) SetMasterEditionMintAccount ¶
func (obj *BurnEditionNft) SetMasterEditionMintAccount(masterEditionMint common.PublicKey) *BurnEditionNft
SetMasterEditionMintAccount sets the "masterEditionMint" parameter. Mint of the original/master NFT
func (*BurnEditionNft) SetMasterEditionTokenAccountAccount ¶
func (obj *BurnEditionNft) SetMasterEditionTokenAccountAccount(masterEditionTokenAccount common.PublicKey) *BurnEditionNft
SetMasterEditionTokenAccountAccount sets the "masterEditionTokenAccount" parameter. Token account the Master Edition NFT is in
func (*BurnEditionNft) SetMetadataAccount ¶
func (obj *BurnEditionNft) SetMetadataAccount(metadata common.PublicKey) *BurnEditionNft
SetMetadataAccount sets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])
func (*BurnEditionNft) SetOwnerAccount ¶
func (obj *BurnEditionNft) SetOwnerAccount(owner common.PublicKey) *BurnEditionNft
SetOwnerAccount sets the "owner" parameter. NFT owner
func (*BurnEditionNft) SetPrintEditionAccountAccount ¶
func (obj *BurnEditionNft) SetPrintEditionAccountAccount(printEditionAccount common.PublicKey) *BurnEditionNft
SetPrintEditionAccountAccount sets the "printEditionAccount" parameter. Print Edition account of the NFT
func (*BurnEditionNft) SetPrintEditionMintAccount ¶
func (obj *BurnEditionNft) SetPrintEditionMintAccount(printEditionMint common.PublicKey) *BurnEditionNft
SetPrintEditionMintAccount sets the "printEditionMint" parameter. Mint of the print edition NFT
func (*BurnEditionNft) SetPrintEditionTokenAccountAccount ¶
func (obj *BurnEditionNft) SetPrintEditionTokenAccountAccount(printEditionTokenAccount common.PublicKey) *BurnEditionNft
SetPrintEditionTokenAccountAccount sets the "printEditionTokenAccount" parameter. Token account the print edition NFT is in
func (*BurnEditionNft) SetProgramId ¶
func (obj *BurnEditionNft) SetProgramId(programId *common.PublicKey) *BurnEditionNft
func (*BurnEditionNft) SetSplTokenProgramAccount ¶
func (obj *BurnEditionNft) SetSplTokenProgramAccount(splTokenProgram common.PublicKey, multiSigners ...common.PublicKey) *BurnEditionNft
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program
func (*BurnEditionNft) UnmarshalWithDecoder ¶
func (obj *BurnEditionNft) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*BurnEditionNft) Validate ¶
func (obj *BurnEditionNft) Validate() error
func (*BurnEditionNft) ValidateAndBuild ¶
func (obj *BurnEditionNft) 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 BurnNft ¶
type BurnNft struct { // [0] = [WRITE] metadata `Metadata (pda of ['metadata', program id, mint id])` // [1] = [WRITE, SIGNER] owner `NFT owner` // [2] = [WRITE] mint `Mint of the NFT` // [3] = [WRITE] tokenAccount `Token account to close` // [4] = [WRITE] masterEditionAccount `MasterEdition2 of the NFT` // [5] = [] splTokenProgram `SPL Token Program` // [6] = [WRITE] collectionMetadata `Metadata of the Collection` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
BurnNft Instruction
func NewBurnNftInstruction ¶
func NewBurnNftInstruction( metadata common.PublicKey, owner common.PublicKey, mint common.PublicKey, tokenAccount common.PublicKey, masterEditionAccount common.PublicKey, splTokenProgram common.PublicKey, collectionMetadata common.PublicKey, ) *BurnNft
NewBurnNftInstruction
Parameters:
metadata: Metadata (pda of ['metadata', program id, mint id]) owner: NFT owner mint: Mint of the NFT tokenAccount: Token account to close masterEditionAccount: MasterEdition2 of the NFT splTokenProgram: SPL Token Program collectionMetadata: Metadata of the Collection
func NewBurnNftInstructionBuilder ¶
func NewBurnNftInstructionBuilder() *BurnNft
NewBurnNftInstructionBuilder creates a new `BurnNft` instruction builder.
func (*BurnNft) Build ¶
func (obj *BurnNft) Build() *Instruction
func (*BurnNft) EncodeToTree ¶
func (*BurnNft) GetCollectionMetadataAccount ¶
func (obj *BurnNft) GetCollectionMetadataAccount() *common.AccountMeta
GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Metadata of the Collection
func (*BurnNft) GetMasterEditionAccountAccount ¶
func (obj *BurnNft) GetMasterEditionAccountAccount() *common.AccountMeta
GetMasterEditionAccountAccount gets the "masterEditionAccount" parameter. MasterEdition2 of the NFT
func (*BurnNft) GetMetadataAccount ¶
func (obj *BurnNft) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])
func (*BurnNft) GetMintAccount ¶
func (obj *BurnNft) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of the NFT
func (*BurnNft) GetOwnerAccount ¶
func (obj *BurnNft) GetOwnerAccount() *common.AccountMeta
GetOwnerAccount gets the "owner" parameter. NFT owner
func (*BurnNft) GetSplTokenProgramAccount ¶
func (obj *BurnNft) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program
func (*BurnNft) GetTokenAccountAccount ¶
func (obj *BurnNft) GetTokenAccountAccount() *common.AccountMeta
GetTokenAccountAccount gets the "tokenAccount" parameter. Token account to close
func (*BurnNft) MarshalWithEncoder ¶
func (*BurnNft) SetCollectionMetadataAccount ¶
func (obj *BurnNft) SetCollectionMetadataAccount(collectionMetadata common.PublicKey, multiSigners ...common.PublicKey) *BurnNft
SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Metadata of the Collection
func (*BurnNft) SetMasterEditionAccountAccount ¶
SetMasterEditionAccountAccount sets the "masterEditionAccount" parameter. MasterEdition2 of the NFT
func (*BurnNft) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])
func (*BurnNft) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint of the NFT
func (*BurnNft) SetOwnerAccount ¶
SetOwnerAccount sets the "owner" parameter. NFT owner
func (*BurnNft) SetProgramId ¶
func (*BurnNft) SetSplTokenProgramAccount ¶
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program
func (*BurnNft) SetTokenAccountAccount ¶
SetTokenAccountAccount sets the "tokenAccount" parameter. Token account to close
func (*BurnNft) UnmarshalWithDecoder ¶
func (*BurnNft) ValidateAndBuild ¶
func (obj *BurnNft) 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 CannotAdjustVerifiedCreatorError ¶
type CannotAdjustVerifiedCreatorError struct{}
CannotAdjustVerifiedCreatorError Error: 93 “
func (CannotAdjustVerifiedCreatorError) Code ¶
func (e CannotAdjustVerifiedCreatorError) Code() int
func (CannotAdjustVerifiedCreatorError) Error ¶
func (e CannotAdjustVerifiedCreatorError) Error() string
type CannotBurnWithDelegateError ¶
type CannotBurnWithDelegateError struct{}
CannotBurnWithDelegateError Error: 178 `Cannot burn while persistent delegate is set`
func (CannotBurnWithDelegateError) Code ¶
func (e CannotBurnWithDelegateError) Code() int
func (CannotBurnWithDelegateError) Error ¶
func (e CannotBurnWithDelegateError) Error() string
type CannotChangeUpdateAuthorityWithDelegateError ¶
type CannotChangeUpdateAuthorityWithDelegateError struct{}
CannotChangeUpdateAuthorityWithDelegateError Error: 193 `Cannot change the update authority with a delegate`
func (CannotChangeUpdateAuthorityWithDelegateError) Code ¶
func (e CannotChangeUpdateAuthorityWithDelegateError) Code() int
func (CannotChangeUpdateAuthorityWithDelegateError) Error ¶
func (e CannotChangeUpdateAuthorityWithDelegateError) Error() string
type CannotChangeUseMethodAfterFirstUseError ¶
type CannotChangeUseMethodAfterFirstUseError struct{}
CannotChangeUseMethodAfterFirstUseError Error: 78 `Cannot Change Use Method after the first use`
func (CannotChangeUseMethodAfterFirstUseError) Code ¶
func (e CannotChangeUseMethodAfterFirstUseError) Code() int
func (CannotChangeUseMethodAfterFirstUseError) Error ¶
func (e CannotChangeUseMethodAfterFirstUseError) Error() string
type CannotChangeUsesAfterFirstUseError ¶
type CannotChangeUsesAfterFirstUseError struct{}
CannotChangeUsesAfterFirstUseError Error: 79 `Cannot Change Remaining or Available uses after the first use`
func (CannotChangeUsesAfterFirstUseError) Code ¶
func (e CannotChangeUsesAfterFirstUseError) Code() int
func (CannotChangeUsesAfterFirstUseError) Error ¶
func (e CannotChangeUsesAfterFirstUseError) Error() string
type CannotRemoveVerifiedCreatorError ¶
type CannotRemoveVerifiedCreatorError struct{}
CannotRemoveVerifiedCreatorError Error: 94 `Verified creators cannot be removed.`
func (CannotRemoveVerifiedCreatorError) Code ¶
func (e CannotRemoveVerifiedCreatorError) Code() int
func (CannotRemoveVerifiedCreatorError) Error ¶
func (e CannotRemoveVerifiedCreatorError) Error() string
type CannotUnverifyAnotherCreatorError ¶
type CannotUnverifyAnotherCreatorError struct{}
CannotUnverifyAnotherCreatorError Error: 55 `You cannot unilaterally unverify another creator`
func (CannotUnverifyAnotherCreatorError) Code ¶
func (e CannotUnverifyAnotherCreatorError) Code() int
func (CannotUnverifyAnotherCreatorError) Error ¶
func (e CannotUnverifyAnotherCreatorError) Error() string
type CannotUpdateAssetWithDelegateError ¶
type CannotUpdateAssetWithDelegateError struct{}
CannotUpdateAssetWithDelegateError Error: 173 `Cannot update the rule set of a programmable asset that has a delegate`
func (CannotUpdateAssetWithDelegateError) Code ¶
func (e CannotUpdateAssetWithDelegateError) Code() int
func (CannotUpdateAssetWithDelegateError) Error ¶
func (e CannotUpdateAssetWithDelegateError) Error() string
type CannotUpdateVerifiedCollectionError ¶
type CannotUpdateVerifiedCollectionError struct{}
CannotUpdateVerifiedCollectionError Error: 112 `Cannot update a verified collection in this command`
func (CannotUpdateVerifiedCollectionError) Code ¶
func (e CannotUpdateVerifiedCollectionError) Code() int
func (CannotUpdateVerifiedCollectionError) Error ¶
func (e CannotUpdateVerifiedCollectionError) Error() string
type CannotVerifyAnotherCreatorError ¶
type CannotVerifyAnotherCreatorError struct{}
CannotVerifyAnotherCreatorError Error: 54 `You cannot unilaterally verify another creator, they must sign`
func (CannotVerifyAnotherCreatorError) Code ¶
func (e CannotVerifyAnotherCreatorError) Code() int
func (CannotVerifyAnotherCreatorError) Error ¶
func (e CannotVerifyAnotherCreatorError) Error() string
type CannotWipeVerifiedCreatorsError ¶
type CannotWipeVerifiedCreatorsError struct{}
CannotWipeVerifiedCreatorsError Error: 95 “
func (CannotWipeVerifiedCreatorsError) Code ¶
func (e CannotWipeVerifiedCreatorsError) Code() int
func (CannotWipeVerifiedCreatorsError) Error ¶
func (e CannotWipeVerifiedCreatorsError) Error() string
type CloseEscrowAccount ¶
type CloseEscrowAccount struct { // [0] = [WRITE] escrow `Escrow account` // [1] = [WRITE] metadata `Metadata account` // [2] = [] mint `Mint account` // [3] = [] tokenAccount `Token account` // [4] = [] edition `Edition account` // [5] = [WRITE, SIGNER] payer `Wallet paying for the transaction and new account` // [6] = [] systemProgram `System program` // [7] = [] sysvarInstructions `Instructions sysvar account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
CloseEscrowAccount Instruction
func NewCloseEscrowAccountInstruction ¶
func NewCloseEscrowAccountInstruction( escrow common.PublicKey, metadata common.PublicKey, mint common.PublicKey, tokenAccount common.PublicKey, edition common.PublicKey, payer common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, ) *CloseEscrowAccount
NewCloseEscrowAccountInstruction
Parameters:
escrow: Escrow account metadata: Metadata account mint: Mint account tokenAccount: Token account edition: Edition account payer: Wallet paying for the transaction and new account systemProgram: System program sysvarInstructions: Instructions sysvar account
func NewCloseEscrowAccountInstructionBuilder ¶
func NewCloseEscrowAccountInstructionBuilder() *CloseEscrowAccount
NewCloseEscrowAccountInstructionBuilder creates a new `CloseEscrowAccount` instruction builder.
func (*CloseEscrowAccount) Build ¶
func (obj *CloseEscrowAccount) Build() *Instruction
func (*CloseEscrowAccount) EncodeToTree ¶
func (obj *CloseEscrowAccount) EncodeToTree(parent treeout.Branches)
func (*CloseEscrowAccount) GetEditionAccount ¶
func (obj *CloseEscrowAccount) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Edition account
func (*CloseEscrowAccount) GetEscrowAccount ¶
func (obj *CloseEscrowAccount) GetEscrowAccount() *common.AccountMeta
GetEscrowAccount gets the "escrow" parameter. Escrow account
func (*CloseEscrowAccount) GetMetadataAccount ¶
func (obj *CloseEscrowAccount) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*CloseEscrowAccount) GetMintAccount ¶
func (obj *CloseEscrowAccount) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint account
func (*CloseEscrowAccount) GetPayerAccount ¶
func (obj *CloseEscrowAccount) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Wallet paying for the transaction and new account
func (*CloseEscrowAccount) GetSystemProgramAccount ¶
func (obj *CloseEscrowAccount) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*CloseEscrowAccount) GetSysvarInstructionsAccount ¶
func (obj *CloseEscrowAccount) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*CloseEscrowAccount) GetTokenAccountAccount ¶
func (obj *CloseEscrowAccount) GetTokenAccountAccount() *common.AccountMeta
GetTokenAccountAccount gets the "tokenAccount" parameter. Token account
func (*CloseEscrowAccount) MarshalWithEncoder ¶
func (obj *CloseEscrowAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CloseEscrowAccount) SetEditionAccount ¶
func (obj *CloseEscrowAccount) SetEditionAccount(edition common.PublicKey) *CloseEscrowAccount
SetEditionAccount sets the "edition" parameter. Edition account
func (*CloseEscrowAccount) SetEscrowAccount ¶
func (obj *CloseEscrowAccount) SetEscrowAccount(escrow common.PublicKey) *CloseEscrowAccount
SetEscrowAccount sets the "escrow" parameter. Escrow account
func (*CloseEscrowAccount) SetMetadataAccount ¶
func (obj *CloseEscrowAccount) SetMetadataAccount(metadata common.PublicKey) *CloseEscrowAccount
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*CloseEscrowAccount) SetMintAccount ¶
func (obj *CloseEscrowAccount) SetMintAccount(mint common.PublicKey) *CloseEscrowAccount
SetMintAccount sets the "mint" parameter. Mint account
func (*CloseEscrowAccount) SetPayerAccount ¶
func (obj *CloseEscrowAccount) SetPayerAccount(payer common.PublicKey) *CloseEscrowAccount
SetPayerAccount sets the "payer" parameter. Wallet paying for the transaction and new account
func (*CloseEscrowAccount) SetProgramId ¶
func (obj *CloseEscrowAccount) SetProgramId(programId *common.PublicKey) *CloseEscrowAccount
func (*CloseEscrowAccount) SetSystemProgramAccount ¶
func (obj *CloseEscrowAccount) SetSystemProgramAccount(systemProgram common.PublicKey) *CloseEscrowAccount
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*CloseEscrowAccount) SetSysvarInstructionsAccount ¶
func (obj *CloseEscrowAccount) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey, multiSigners ...common.PublicKey) *CloseEscrowAccount
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*CloseEscrowAccount) SetTokenAccountAccount ¶
func (obj *CloseEscrowAccount) SetTokenAccountAccount(tokenAccount common.PublicKey) *CloseEscrowAccount
SetTokenAccountAccount sets the "tokenAccount" parameter. Token account
func (*CloseEscrowAccount) UnmarshalWithDecoder ¶
func (obj *CloseEscrowAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*CloseEscrowAccount) Validate ¶
func (obj *CloseEscrowAccount) Validate() error
func (*CloseEscrowAccount) ValidateAndBuild ¶
func (obj *CloseEscrowAccount) 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 Collect ¶
type Collect struct { // [0] = [SIGNER] authority `Authority to collect fees` // [1] = [] recipient `The account to transfer collected fees to` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Collect Instruction
func NewCollectInstruction ¶
NewCollectInstruction
Parameters:
authority: Authority to collect fees recipient: The account to transfer collected fees to
func NewCollectInstructionBuilder ¶
func NewCollectInstructionBuilder() *Collect
NewCollectInstructionBuilder creates a new `Collect` instruction builder.
func (*Collect) Build ¶
func (obj *Collect) Build() *Instruction
func (*Collect) EncodeToTree ¶
func (*Collect) GetAuthorityAccount ¶
func (obj *Collect) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Authority to collect fees
func (*Collect) GetRecipientAccount ¶
func (obj *Collect) GetRecipientAccount() *common.AccountMeta
GetRecipientAccount gets the "recipient" parameter. The account to transfer collected fees to
func (*Collect) MarshalWithEncoder ¶
func (*Collect) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Authority to collect fees
func (*Collect) SetProgramId ¶
func (*Collect) SetRecipientAccount ¶
func (obj *Collect) SetRecipientAccount(recipient common.PublicKey, multiSigners ...common.PublicKey) *Collect
SetRecipientAccount sets the "recipient" parameter. The account to transfer collected fees to
func (*Collect) UnmarshalWithDecoder ¶
func (*Collect) ValidateAndBuild ¶
func (obj *Collect) 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 Collection ¶
Collection Struct
func (*Collection) MarshalWithEncoder ¶
func (obj *Collection) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*Collection) UnmarshalWithDecoder ¶
func (obj *Collection) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type CollectionAuthorityDoesNotExistError ¶
type CollectionAuthorityDoesNotExistError struct{}
CollectionAuthorityDoesNotExistError Error: 88 `This Collection Authority Record Does Not Exist.`
func (CollectionAuthorityDoesNotExistError) Code ¶
func (e CollectionAuthorityDoesNotExistError) Code() int
func (CollectionAuthorityDoesNotExistError) Error ¶
func (e CollectionAuthorityDoesNotExistError) Error() string
type CollectionAuthorityRecord ¶
type CollectionAuthorityRecord struct { Key Key Bump uint8 UpdateAuthority *common.PublicKey `bin:"optional"` }
CollectionAuthorityRecord Struct
func (*CollectionAuthorityRecord) MarshalWithEncoder ¶
func (obj *CollectionAuthorityRecord) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CollectionAuthorityRecord) UnmarshalWithDecoder ¶
func (obj *CollectionAuthorityRecord) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type CollectionAuthorityRecordAlreadyExistsError ¶
type CollectionAuthorityRecordAlreadyExistsError struct{}
CollectionAuthorityRecordAlreadyExistsError Error: 87 `This Collection Authority Record Already Exists.`
func (CollectionAuthorityRecordAlreadyExistsError) Code ¶
func (e CollectionAuthorityRecordAlreadyExistsError) Code() int
func (CollectionAuthorityRecordAlreadyExistsError) Error ¶
func (e CollectionAuthorityRecordAlreadyExistsError) Error() string
type CollectionCannotBeVerifiedInThisInstructionError ¶
type CollectionCannotBeVerifiedInThisInstructionError struct{}
CollectionCannotBeVerifiedInThisInstructionError Error: 74 `Collection cannot be verified in this instruction`
func (CollectionCannotBeVerifiedInThisInstructionError) Code ¶
func (e CollectionCannotBeVerifiedInThisInstructionError) Code() int
func (CollectionCannotBeVerifiedInThisInstructionError) Error ¶
func (e CollectionCannotBeVerifiedInThisInstructionError) Error() string
type CollectionDetails ¶
type CollectionDetails struct {
V1 *CollectionDetailsV1 `bin:"optional"`
}
CollectionDetails Enum
func NewCollectionDetails_V1 ¶
func NewCollectionDetails_V1(size uint64) CollectionDetails
func (*CollectionDetails) AsV1 ¶
func (obj *CollectionDetails) AsV1() CollectionDetailsV1
func (*CollectionDetails) IsV1 ¶
func (obj *CollectionDetails) IsV1() bool
func (*CollectionDetails) MarshalWithEncoder ¶
func (obj *CollectionDetails) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CollectionDetails) String ¶
func (obj *CollectionDetails) String() string
func (*CollectionDetails) UnmarshalWithDecoder ¶
func (obj *CollectionDetails) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type CollectionDetailsToggle ¶
type CollectionDetailsToggle struct { None *struct{} `bin:"optional"` Clear *struct{} `bin:"optional"` Set *CollectionDetailsToggleSet `bin:"optional"` }
CollectionDetailsToggle Enum
func NewCollectionDetailsToggle_Clear ¶
func NewCollectionDetailsToggle_Clear() CollectionDetailsToggle
func NewCollectionDetailsToggle_None ¶
func NewCollectionDetailsToggle_None() CollectionDetailsToggle
func NewCollectionDetailsToggle_Set ¶
func NewCollectionDetailsToggle_Set(field0 CollectionDetails) CollectionDetailsToggle
func (*CollectionDetailsToggle) AsSet ¶
func (obj *CollectionDetailsToggle) AsSet() CollectionDetailsToggleSet
func (*CollectionDetailsToggle) IsClear ¶
func (obj *CollectionDetailsToggle) IsClear() bool
func (*CollectionDetailsToggle) IsNone ¶
func (obj *CollectionDetailsToggle) IsNone() bool
func (*CollectionDetailsToggle) IsSet ¶
func (obj *CollectionDetailsToggle) IsSet() bool
func (*CollectionDetailsToggle) MarshalWithEncoder ¶
func (obj *CollectionDetailsToggle) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CollectionDetailsToggle) String ¶
func (obj *CollectionDetailsToggle) String() string
func (*CollectionDetailsToggle) UnmarshalWithDecoder ¶
func (obj *CollectionDetailsToggle) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type CollectionDetailsToggleSet ¶
type CollectionDetailsToggleSet struct {
Field0 CollectionDetails
}
func (*CollectionDetailsToggleSet) MarshalWithEncoder ¶
func (obj *CollectionDetailsToggleSet) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CollectionDetailsToggleSet) UnmarshalWithDecoder ¶
func (obj *CollectionDetailsToggleSet) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type CollectionDetailsV1 ¶
type CollectionDetailsV1 struct {
Size uint64
}
func (*CollectionDetailsV1) MarshalWithEncoder ¶
func (obj *CollectionDetailsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CollectionDetailsV1) UnmarshalWithDecoder ¶
func (obj *CollectionDetailsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type CollectionMasterEditionAccountInvalidError ¶
type CollectionMasterEditionAccountInvalidError struct{}
CollectionMasterEditionAccountInvalidError Error: 113 `Edition account doesnt match collection `
func (CollectionMasterEditionAccountInvalidError) Code ¶
func (e CollectionMasterEditionAccountInvalidError) Code() int
func (CollectionMasterEditionAccountInvalidError) Error ¶
func (e CollectionMasterEditionAccountInvalidError) Error() string
type CollectionMustBeAUniqueMasterEditionError ¶
type CollectionMustBeAUniqueMasterEditionError struct{}
CollectionMustBeAUniqueMasterEditionError Error: 82 `Collection Must Be a Unique Master Edition v2`
func (CollectionMustBeAUniqueMasterEditionError) Code ¶
func (e CollectionMustBeAUniqueMasterEditionError) Code() int
func (CollectionMustBeAUniqueMasterEditionError) Error ¶
func (e CollectionMustBeAUniqueMasterEditionError) Error() string
type CollectionNotFoundError ¶
type CollectionNotFoundError struct{}
CollectionNotFoundError Error: 80 `Collection Not Found on Metadata`
func (CollectionNotFoundError) Code ¶
func (e CollectionNotFoundError) Code() int
func (CollectionNotFoundError) Error ¶
func (e CollectionNotFoundError) Error() string
type CollectionToggle ¶
type CollectionToggle struct { None *struct{} `bin:"optional"` Clear *struct{} `bin:"optional"` Set *CollectionToggleSet `bin:"optional"` }
CollectionToggle Enum
func NewCollectionToggle_Clear ¶
func NewCollectionToggle_Clear() CollectionToggle
func NewCollectionToggle_None ¶
func NewCollectionToggle_None() CollectionToggle
func NewCollectionToggle_Set ¶
func NewCollectionToggle_Set(field0 Collection) CollectionToggle
func (*CollectionToggle) AsSet ¶
func (obj *CollectionToggle) AsSet() CollectionToggleSet
func (*CollectionToggle) IsClear ¶
func (obj *CollectionToggle) IsClear() bool
func (*CollectionToggle) IsNone ¶
func (obj *CollectionToggle) IsNone() bool
func (*CollectionToggle) IsSet ¶
func (obj *CollectionToggle) IsSet() bool
func (*CollectionToggle) MarshalWithEncoder ¶
func (obj *CollectionToggle) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CollectionToggle) String ¶
func (obj *CollectionToggle) String() string
func (*CollectionToggle) UnmarshalWithDecoder ¶
func (obj *CollectionToggle) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type CollectionToggleSet ¶
type CollectionToggleSet struct {
Field0 Collection
}
func (*CollectionToggleSet) MarshalWithEncoder ¶
func (obj *CollectionToggleSet) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CollectionToggleSet) UnmarshalWithDecoder ¶
func (obj *CollectionToggleSet) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type ConvertMasterEditionV1ToV2 ¶
type ConvertMasterEditionV1ToV2 struct { // [0] = [WRITE] masterEdition `Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])` // [1] = [WRITE] oneTimeAuth `One time authorization mint` // [2] = [WRITE] printingMint `Printing mint` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
ConvertMasterEditionV1ToV2 Instruction
func NewConvertMasterEditionV1ToV2Instruction ¶
func NewConvertMasterEditionV1ToV2Instruction( masterEdition common.PublicKey, oneTimeAuth common.PublicKey, printingMint common.PublicKey, ) *ConvertMasterEditionV1ToV2
NewConvertMasterEditionV1ToV2Instruction
Parameters:
masterEdition: Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition']) oneTimeAuth: One time authorization mint printingMint: Printing mint
func NewConvertMasterEditionV1ToV2InstructionBuilder ¶
func NewConvertMasterEditionV1ToV2InstructionBuilder() *ConvertMasterEditionV1ToV2
NewConvertMasterEditionV1ToV2InstructionBuilder creates a new `ConvertMasterEditionV1ToV2` instruction builder.
func (*ConvertMasterEditionV1ToV2) Build ¶
func (obj *ConvertMasterEditionV1ToV2) Build() *Instruction
func (*ConvertMasterEditionV1ToV2) EncodeToTree ¶
func (obj *ConvertMasterEditionV1ToV2) EncodeToTree(parent treeout.Branches)
func (*ConvertMasterEditionV1ToV2) GetMasterEditionAccount ¶
func (obj *ConvertMasterEditionV1ToV2) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])
func (*ConvertMasterEditionV1ToV2) GetOneTimeAuthAccount ¶
func (obj *ConvertMasterEditionV1ToV2) GetOneTimeAuthAccount() *common.AccountMeta
GetOneTimeAuthAccount gets the "oneTimeAuth" parameter. One time authorization mint
func (*ConvertMasterEditionV1ToV2) GetPrintingMintAccount ¶
func (obj *ConvertMasterEditionV1ToV2) GetPrintingMintAccount() *common.AccountMeta
GetPrintingMintAccount gets the "printingMint" parameter. Printing mint
func (*ConvertMasterEditionV1ToV2) MarshalWithEncoder ¶
func (obj *ConvertMasterEditionV1ToV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*ConvertMasterEditionV1ToV2) SetMasterEditionAccount ¶
func (obj *ConvertMasterEditionV1ToV2) SetMasterEditionAccount(masterEdition common.PublicKey) *ConvertMasterEditionV1ToV2
SetMasterEditionAccount sets the "masterEdition" parameter. Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])
func (*ConvertMasterEditionV1ToV2) SetOneTimeAuthAccount ¶
func (obj *ConvertMasterEditionV1ToV2) SetOneTimeAuthAccount(oneTimeAuth common.PublicKey) *ConvertMasterEditionV1ToV2
SetOneTimeAuthAccount sets the "oneTimeAuth" parameter. One time authorization mint
func (*ConvertMasterEditionV1ToV2) SetPrintingMintAccount ¶
func (obj *ConvertMasterEditionV1ToV2) SetPrintingMintAccount(printingMint common.PublicKey, multiSigners ...common.PublicKey) *ConvertMasterEditionV1ToV2
SetPrintingMintAccount sets the "printingMint" parameter. Printing mint
func (*ConvertMasterEditionV1ToV2) SetProgramId ¶
func (obj *ConvertMasterEditionV1ToV2) SetProgramId(programId *common.PublicKey) *ConvertMasterEditionV1ToV2
func (*ConvertMasterEditionV1ToV2) UnmarshalWithDecoder ¶
func (obj *ConvertMasterEditionV1ToV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*ConvertMasterEditionV1ToV2) Validate ¶
func (obj *ConvertMasterEditionV1ToV2) Validate() error
func (*ConvertMasterEditionV1ToV2) ValidateAndBuild ¶
func (obj *ConvertMasterEditionV1ToV2) 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 CouldNotDetermineTokenStandardError ¶
type CouldNotDetermineTokenStandardError struct{}
CouldNotDetermineTokenStandardError Error: 107 `Could not determine a TokenStandard type.`
func (CouldNotDetermineTokenStandardError) Code ¶
func (e CouldNotDetermineTokenStandardError) Code() int
func (CouldNotDetermineTokenStandardError) Error ¶
func (e CouldNotDetermineTokenStandardError) Error() string
type Create ¶
type Create struct { CreateArgs *CreateArgs // [0] = [WRITE] metadata `Unallocated metadata account with address as pda of ['metadata', program id, mint id]` // [1] = [WRITE] masterEdition `Unallocated edition account with address as pda of ['metadata', program id, mint, 'edition']` // [2] = [WRITE] mint `Mint of token asset` // [3] = [SIGNER] authority `Mint authority` // [4] = [WRITE, SIGNER] payer `Payer` // [5] = [] updateAuthority `Update authority for the metadata account` // [6] = [] systemProgram `System program` // [7] = [] sysvarInstructions `Instructions sysvar account` // [8] = [] splTokenProgram `SPL Token program` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Create Instruction
func NewCreateInstruction ¶
func NewCreateInstruction( createArgs CreateArgs, metadata common.PublicKey, masterEdition common.PublicKey, mint common.PublicKey, authority common.PublicKey, payer common.PublicKey, updateAuthority common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, splTokenProgram common.PublicKey, ) *Create
NewCreateInstruction
Parameters:
createArgs: metadata: Unallocated metadata account with address as pda of ['metadata', program id, mint id] masterEdition: Unallocated edition account with address as pda of ['metadata', program id, mint, 'edition'] mint: Mint of token asset authority: Mint authority payer: Payer updateAuthority: Update authority for the metadata account systemProgram: System program sysvarInstructions: Instructions sysvar account splTokenProgram: SPL Token program
func NewCreateInstructionBuilder ¶
func NewCreateInstructionBuilder() *Create
NewCreateInstructionBuilder creates a new `Create` instruction builder.
func (*Create) Build ¶
func (obj *Create) Build() *Instruction
func (*Create) EncodeToTree ¶
func (*Create) GetAuthorityAccount ¶
func (obj *Create) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Mint authority
func (*Create) GetMasterEditionAccount ¶
func (obj *Create) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Unallocated edition account with address as pda of ['metadata', program id, mint, 'edition']
func (*Create) GetMetadataAccount ¶
func (obj *Create) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Unallocated metadata account with address as pda of ['metadata', program id, mint id]
func (*Create) GetMintAccount ¶
func (obj *Create) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of token asset
func (*Create) GetPayerAccount ¶
func (obj *Create) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*Create) GetSplTokenProgramAccount ¶
func (obj *Create) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token program
func (*Create) GetSystemProgramAccount ¶
func (obj *Create) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*Create) GetSysvarInstructionsAccount ¶
func (obj *Create) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Create) GetUpdateAuthorityAccount ¶
func (obj *Create) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority for the metadata account
func (*Create) MarshalWithEncoder ¶
func (*Create) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Mint authority
func (*Create) SetCreateArgs ¶
func (obj *Create) SetCreateArgs(createArgs CreateArgs) *Create
SetCreateArgs sets the "createArgs" parameter.
func (*Create) SetMasterEditionAccount ¶
SetMasterEditionAccount sets the "masterEdition" parameter. Unallocated edition account with address as pda of ['metadata', program id, mint, 'edition']
func (*Create) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Unallocated metadata account with address as pda of ['metadata', program id, mint id]
func (*Create) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint of token asset
func (*Create) SetPayerAccount ¶
SetPayerAccount sets the "payer" parameter. Payer
func (*Create) SetSplTokenProgramAccount ¶
func (obj *Create) SetSplTokenProgramAccount(splTokenProgram common.PublicKey, multiSigners ...common.PublicKey) *Create
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token program
func (*Create) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*Create) SetSysvarInstructionsAccount ¶
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Create) SetUpdateAuthorityAccount ¶
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority for the metadata account
func (*Create) UnmarshalWithDecoder ¶
func (*Create) ValidateAndBuild ¶
func (obj *Create) 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 CreateArgs ¶
type CreateArgs struct {
V1 *CreateArgsV1 `bin:"optional"`
}
CreateArgs Enum
func NewCreateArgs_V1 ¶
func NewCreateArgs_V1(assetData AssetData, decimals *uint8, printSupply *PrintSupply) CreateArgs
func (*CreateArgs) AsV1 ¶
func (obj *CreateArgs) AsV1() CreateArgsV1
func (*CreateArgs) IsV1 ¶
func (obj *CreateArgs) IsV1() bool
func (*CreateArgs) MarshalWithEncoder ¶
func (obj *CreateArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CreateArgs) String ¶
func (obj *CreateArgs) String() string
func (*CreateArgs) UnmarshalWithDecoder ¶
func (obj *CreateArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type CreateArgsV1 ¶
type CreateArgsV1 struct { AssetData AssetData Decimals *uint8 `bin:"optional"` PrintSupply *PrintSupply `bin:"optional"` }
func (*CreateArgsV1) MarshalWithEncoder ¶
func (obj *CreateArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CreateArgsV1) UnmarshalWithDecoder ¶
func (obj *CreateArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type CreateEscrowAccount ¶
type CreateEscrowAccount struct { // [0] = [WRITE] escrow `Escrow account` // [1] = [WRITE] metadata `Metadata account` // [2] = [] mint `Mint account` // [3] = [] tokenAccount `Token account of the token` // [4] = [] edition `Edition account` // [5] = [WRITE, SIGNER] payer `Wallet paying for the transaction and new account` // [6] = [] systemProgram `System program` // [7] = [] sysvarInstructions `Instructions sysvar account` // [8] = [SIGNER] authority `Authority/creator of the escrow account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
CreateEscrowAccount Instruction
func NewCreateEscrowAccountInstruction ¶
func NewCreateEscrowAccountInstruction( escrow common.PublicKey, metadata common.PublicKey, mint common.PublicKey, tokenAccount common.PublicKey, edition common.PublicKey, payer common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, authority common.PublicKey, ) *CreateEscrowAccount
NewCreateEscrowAccountInstruction
Parameters:
escrow: Escrow account metadata: Metadata account mint: Mint account tokenAccount: Token account of the token edition: Edition account payer: Wallet paying for the transaction and new account systemProgram: System program sysvarInstructions: Instructions sysvar account authority: Authority/creator of the escrow account
func NewCreateEscrowAccountInstructionBuilder ¶
func NewCreateEscrowAccountInstructionBuilder() *CreateEscrowAccount
NewCreateEscrowAccountInstructionBuilder creates a new `CreateEscrowAccount` instruction builder.
func (*CreateEscrowAccount) Build ¶
func (obj *CreateEscrowAccount) Build() *Instruction
func (*CreateEscrowAccount) EncodeToTree ¶
func (obj *CreateEscrowAccount) EncodeToTree(parent treeout.Branches)
func (*CreateEscrowAccount) GetAuthorityAccount ¶
func (obj *CreateEscrowAccount) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Authority/creator of the escrow account
func (*CreateEscrowAccount) GetEditionAccount ¶
func (obj *CreateEscrowAccount) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Edition account
func (*CreateEscrowAccount) GetEscrowAccount ¶
func (obj *CreateEscrowAccount) GetEscrowAccount() *common.AccountMeta
GetEscrowAccount gets the "escrow" parameter. Escrow account
func (*CreateEscrowAccount) GetMetadataAccount ¶
func (obj *CreateEscrowAccount) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*CreateEscrowAccount) GetMintAccount ¶
func (obj *CreateEscrowAccount) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint account
func (*CreateEscrowAccount) GetPayerAccount ¶
func (obj *CreateEscrowAccount) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Wallet paying for the transaction and new account
func (*CreateEscrowAccount) GetSystemProgramAccount ¶
func (obj *CreateEscrowAccount) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*CreateEscrowAccount) GetSysvarInstructionsAccount ¶
func (obj *CreateEscrowAccount) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*CreateEscrowAccount) GetTokenAccountAccount ¶
func (obj *CreateEscrowAccount) GetTokenAccountAccount() *common.AccountMeta
GetTokenAccountAccount gets the "tokenAccount" parameter. Token account of the token
func (*CreateEscrowAccount) MarshalWithEncoder ¶
func (obj *CreateEscrowAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CreateEscrowAccount) SetAuthorityAccount ¶
func (obj *CreateEscrowAccount) SetAuthorityAccount(authority common.PublicKey, multiSigners ...common.PublicKey) *CreateEscrowAccount
SetAuthorityAccount sets the "authority" parameter. Authority/creator of the escrow account
func (*CreateEscrowAccount) SetEditionAccount ¶
func (obj *CreateEscrowAccount) SetEditionAccount(edition common.PublicKey) *CreateEscrowAccount
SetEditionAccount sets the "edition" parameter. Edition account
func (*CreateEscrowAccount) SetEscrowAccount ¶
func (obj *CreateEscrowAccount) SetEscrowAccount(escrow common.PublicKey) *CreateEscrowAccount
SetEscrowAccount sets the "escrow" parameter. Escrow account
func (*CreateEscrowAccount) SetMetadataAccount ¶
func (obj *CreateEscrowAccount) SetMetadataAccount(metadata common.PublicKey) *CreateEscrowAccount
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*CreateEscrowAccount) SetMintAccount ¶
func (obj *CreateEscrowAccount) SetMintAccount(mint common.PublicKey) *CreateEscrowAccount
SetMintAccount sets the "mint" parameter. Mint account
func (*CreateEscrowAccount) SetPayerAccount ¶
func (obj *CreateEscrowAccount) SetPayerAccount(payer common.PublicKey) *CreateEscrowAccount
SetPayerAccount sets the "payer" parameter. Wallet paying for the transaction and new account
func (*CreateEscrowAccount) SetProgramId ¶
func (obj *CreateEscrowAccount) SetProgramId(programId *common.PublicKey) *CreateEscrowAccount
func (*CreateEscrowAccount) SetSystemProgramAccount ¶
func (obj *CreateEscrowAccount) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateEscrowAccount
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*CreateEscrowAccount) SetSysvarInstructionsAccount ¶
func (obj *CreateEscrowAccount) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *CreateEscrowAccount
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*CreateEscrowAccount) SetTokenAccountAccount ¶
func (obj *CreateEscrowAccount) SetTokenAccountAccount(tokenAccount common.PublicKey) *CreateEscrowAccount
SetTokenAccountAccount sets the "tokenAccount" parameter. Token account of the token
func (*CreateEscrowAccount) UnmarshalWithDecoder ¶
func (obj *CreateEscrowAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*CreateEscrowAccount) Validate ¶
func (obj *CreateEscrowAccount) Validate() error
func (*CreateEscrowAccount) ValidateAndBuild ¶
func (obj *CreateEscrowAccount) 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 CreateMasterEdition ¶
type CreateMasterEdition struct { // [0] = [WRITE] edition `Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']` // [1] = [WRITE] mint `Metadata mint` // [2] = [SIGNER] updateAuthority `Update authority` // [3] = [SIGNER] mintAuthority `Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY` // [4] = [WRITE, SIGNER] payer `payer` // [5] = [] metadata `Metadata account` // [6] = [] tokenProgram `Token program` // [7] = [] systemProgram `System program` // [8] = [] rent `Rent info` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
CreateMasterEdition Instruction
func NewCreateMasterEditionInstruction ¶
func NewCreateMasterEditionInstruction( edition common.PublicKey, mint common.PublicKey, updateAuthority common.PublicKey, mintAuthority common.PublicKey, payer common.PublicKey, metadata common.PublicKey, tokenProgram common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, ) *CreateMasterEdition
NewCreateMasterEditionInstruction
Parameters:
edition: Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition'] mint: Metadata mint updateAuthority: Update authority mintAuthority: Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY payer: payer metadata: Metadata account tokenProgram: Token program systemProgram: System program rent: Rent info
func NewCreateMasterEditionInstructionBuilder ¶
func NewCreateMasterEditionInstructionBuilder() *CreateMasterEdition
NewCreateMasterEditionInstructionBuilder creates a new `CreateMasterEdition` instruction builder.
func (*CreateMasterEdition) Build ¶
func (obj *CreateMasterEdition) Build() *Instruction
func (*CreateMasterEdition) EncodeToTree ¶
func (obj *CreateMasterEdition) EncodeToTree(parent treeout.Branches)
func (*CreateMasterEdition) GetEditionAccount ¶
func (obj *CreateMasterEdition) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']
func (*CreateMasterEdition) GetMetadataAccount ¶
func (obj *CreateMasterEdition) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*CreateMasterEdition) GetMintAccount ¶
func (obj *CreateMasterEdition) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Metadata mint
func (*CreateMasterEdition) GetMintAuthorityAccount ¶
func (obj *CreateMasterEdition) GetMintAuthorityAccount() *common.AccountMeta
GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*CreateMasterEdition) GetPayerAccount ¶
func (obj *CreateMasterEdition) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*CreateMasterEdition) GetRentAccount ¶
func (obj *CreateMasterEdition) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*CreateMasterEdition) GetSystemProgramAccount ¶
func (obj *CreateMasterEdition) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*CreateMasterEdition) GetTokenProgramAccount ¶
func (obj *CreateMasterEdition) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token program
func (*CreateMasterEdition) GetUpdateAuthorityAccount ¶
func (obj *CreateMasterEdition) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority
func (*CreateMasterEdition) MarshalWithEncoder ¶
func (obj *CreateMasterEdition) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CreateMasterEdition) SetEditionAccount ¶
func (obj *CreateMasterEdition) SetEditionAccount(edition common.PublicKey) *CreateMasterEdition
SetEditionAccount sets the "edition" parameter. Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']
func (*CreateMasterEdition) SetMetadataAccount ¶
func (obj *CreateMasterEdition) SetMetadataAccount(metadata common.PublicKey) *CreateMasterEdition
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*CreateMasterEdition) SetMintAccount ¶
func (obj *CreateMasterEdition) SetMintAccount(mint common.PublicKey) *CreateMasterEdition
SetMintAccount sets the "mint" parameter. Metadata mint
func (*CreateMasterEdition) SetMintAuthorityAccount ¶
func (obj *CreateMasterEdition) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMasterEdition
SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*CreateMasterEdition) SetPayerAccount ¶
func (obj *CreateMasterEdition) SetPayerAccount(payer common.PublicKey) *CreateMasterEdition
SetPayerAccount sets the "payer" parameter. payer
func (*CreateMasterEdition) SetProgramId ¶
func (obj *CreateMasterEdition) SetProgramId(programId *common.PublicKey) *CreateMasterEdition
func (*CreateMasterEdition) SetRentAccount ¶
func (obj *CreateMasterEdition) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMasterEdition
SetRentAccount sets the "rent" parameter. Rent info
func (*CreateMasterEdition) SetSystemProgramAccount ¶
func (obj *CreateMasterEdition) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMasterEdition
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*CreateMasterEdition) SetTokenProgramAccount ¶
func (obj *CreateMasterEdition) SetTokenProgramAccount(tokenProgram common.PublicKey) *CreateMasterEdition
SetTokenProgramAccount sets the "tokenProgram" parameter. Token program
func (*CreateMasterEdition) SetUpdateAuthorityAccount ¶
func (obj *CreateMasterEdition) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMasterEdition
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority
func (*CreateMasterEdition) UnmarshalWithDecoder ¶
func (obj *CreateMasterEdition) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*CreateMasterEdition) Validate ¶
func (obj *CreateMasterEdition) Validate() error
func (*CreateMasterEdition) ValidateAndBuild ¶
func (obj *CreateMasterEdition) 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 CreateMasterEditionArgs ¶
type CreateMasterEditionArgs struct {
MaxSupply *uint64 `bin:"optional"`
}
CreateMasterEditionArgs Struct
func (*CreateMasterEditionArgs) MarshalWithEncoder ¶
func (obj *CreateMasterEditionArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CreateMasterEditionArgs) UnmarshalWithDecoder ¶
func (obj *CreateMasterEditionArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type CreateMasterEditionV3 ¶
type CreateMasterEditionV3 struct { CreateMasterEditionArgs *CreateMasterEditionArgs // [0] = [WRITE] edition `Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']` // [1] = [WRITE] mint `Metadata mint` // [2] = [SIGNER] updateAuthority `Update authority` // [3] = [SIGNER] mintAuthority `Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY` // [4] = [WRITE, SIGNER] payer `payer` // [5] = [WRITE] metadata `Metadata account` // [6] = [] tokenProgram `Token program` // [7] = [] systemProgram `System program` // [8] = [] rent `Rent info` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
CreateMasterEditionV3 Instruction
func NewCreateMasterEditionV3Instruction ¶
func NewCreateMasterEditionV3Instruction( createMasterEditionArgs CreateMasterEditionArgs, edition common.PublicKey, mint common.PublicKey, updateAuthority common.PublicKey, mintAuthority common.PublicKey, payer common.PublicKey, metadata common.PublicKey, tokenProgram common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, ) *CreateMasterEditionV3
NewCreateMasterEditionV3Instruction
Parameters:
createMasterEditionArgs: edition: Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition'] mint: Metadata mint updateAuthority: Update authority mintAuthority: Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY payer: payer metadata: Metadata account tokenProgram: Token program systemProgram: System program rent: Rent info
func NewCreateMasterEditionV3InstructionBuilder ¶
func NewCreateMasterEditionV3InstructionBuilder() *CreateMasterEditionV3
NewCreateMasterEditionV3InstructionBuilder creates a new `CreateMasterEditionV3` instruction builder.
func (*CreateMasterEditionV3) Build ¶
func (obj *CreateMasterEditionV3) Build() *Instruction
func (*CreateMasterEditionV3) EncodeToTree ¶
func (obj *CreateMasterEditionV3) EncodeToTree(parent treeout.Branches)
func (*CreateMasterEditionV3) GetEditionAccount ¶
func (obj *CreateMasterEditionV3) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']
func (*CreateMasterEditionV3) GetMetadataAccount ¶
func (obj *CreateMasterEditionV3) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*CreateMasterEditionV3) GetMintAccount ¶
func (obj *CreateMasterEditionV3) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Metadata mint
func (*CreateMasterEditionV3) GetMintAuthorityAccount ¶
func (obj *CreateMasterEditionV3) GetMintAuthorityAccount() *common.AccountMeta
GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*CreateMasterEditionV3) GetPayerAccount ¶
func (obj *CreateMasterEditionV3) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*CreateMasterEditionV3) GetRentAccount ¶
func (obj *CreateMasterEditionV3) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*CreateMasterEditionV3) GetSystemProgramAccount ¶
func (obj *CreateMasterEditionV3) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*CreateMasterEditionV3) GetTokenProgramAccount ¶
func (obj *CreateMasterEditionV3) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token program
func (*CreateMasterEditionV3) GetUpdateAuthorityAccount ¶
func (obj *CreateMasterEditionV3) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority
func (*CreateMasterEditionV3) MarshalWithEncoder ¶
func (obj *CreateMasterEditionV3) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CreateMasterEditionV3) SetCreateMasterEditionArgs ¶
func (obj *CreateMasterEditionV3) SetCreateMasterEditionArgs(createMasterEditionArgs CreateMasterEditionArgs) *CreateMasterEditionV3
SetCreateMasterEditionArgs sets the "createMasterEditionArgs" parameter.
func (*CreateMasterEditionV3) SetEditionAccount ¶
func (obj *CreateMasterEditionV3) SetEditionAccount(edition common.PublicKey) *CreateMasterEditionV3
SetEditionAccount sets the "edition" parameter. Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']
func (*CreateMasterEditionV3) SetMetadataAccount ¶
func (obj *CreateMasterEditionV3) SetMetadataAccount(metadata common.PublicKey) *CreateMasterEditionV3
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*CreateMasterEditionV3) SetMintAccount ¶
func (obj *CreateMasterEditionV3) SetMintAccount(mint common.PublicKey) *CreateMasterEditionV3
SetMintAccount sets the "mint" parameter. Metadata mint
func (*CreateMasterEditionV3) SetMintAuthorityAccount ¶
func (obj *CreateMasterEditionV3) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMasterEditionV3
SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*CreateMasterEditionV3) SetPayerAccount ¶
func (obj *CreateMasterEditionV3) SetPayerAccount(payer common.PublicKey) *CreateMasterEditionV3
SetPayerAccount sets the "payer" parameter. payer
func (*CreateMasterEditionV3) SetProgramId ¶
func (obj *CreateMasterEditionV3) SetProgramId(programId *common.PublicKey) *CreateMasterEditionV3
func (*CreateMasterEditionV3) SetRentAccount ¶
func (obj *CreateMasterEditionV3) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMasterEditionV3
SetRentAccount sets the "rent" parameter. Rent info
func (*CreateMasterEditionV3) SetSystemProgramAccount ¶
func (obj *CreateMasterEditionV3) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMasterEditionV3
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*CreateMasterEditionV3) SetTokenProgramAccount ¶
func (obj *CreateMasterEditionV3) SetTokenProgramAccount(tokenProgram common.PublicKey) *CreateMasterEditionV3
SetTokenProgramAccount sets the "tokenProgram" parameter. Token program
func (*CreateMasterEditionV3) SetUpdateAuthorityAccount ¶
func (obj *CreateMasterEditionV3) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMasterEditionV3
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority
func (*CreateMasterEditionV3) UnmarshalWithDecoder ¶
func (obj *CreateMasterEditionV3) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*CreateMasterEditionV3) Validate ¶
func (obj *CreateMasterEditionV3) Validate() error
func (*CreateMasterEditionV3) ValidateAndBuild ¶
func (obj *CreateMasterEditionV3) 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 CreateMetadataAccount ¶
type CreateMetadataAccount struct { // [0] = [WRITE] metadata `Metadata key (pda of ['metadata', program id, mint id])` // [1] = [] mint `Mint of token asset` // [2] = [SIGNER] mintAuthority `Mint authority` // [3] = [WRITE, SIGNER] payer `payer` // [4] = [] updateAuthority `update authority info` // [5] = [] systemProgram `System program` // [6] = [] rent `Rent info` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
CreateMetadataAccount Instruction
func NewCreateMetadataAccountInstruction ¶
func NewCreateMetadataAccountInstruction( metadata common.PublicKey, mint common.PublicKey, mintAuthority common.PublicKey, payer common.PublicKey, updateAuthority common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, ) *CreateMetadataAccount
NewCreateMetadataAccountInstruction
Parameters:
metadata: Metadata key (pda of ['metadata', program id, mint id]) mint: Mint of token asset mintAuthority: Mint authority payer: payer updateAuthority: update authority info systemProgram: System program rent: Rent info
func NewCreateMetadataAccountInstructionBuilder ¶
func NewCreateMetadataAccountInstructionBuilder() *CreateMetadataAccount
NewCreateMetadataAccountInstructionBuilder creates a new `CreateMetadataAccount` instruction builder.
func (*CreateMetadataAccount) Build ¶
func (obj *CreateMetadataAccount) Build() *Instruction
func (*CreateMetadataAccount) EncodeToTree ¶
func (obj *CreateMetadataAccount) EncodeToTree(parent treeout.Branches)
func (*CreateMetadataAccount) GetMetadataAccount ¶
func (obj *CreateMetadataAccount) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*CreateMetadataAccount) GetMintAccount ¶
func (obj *CreateMetadataAccount) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of token asset
func (*CreateMetadataAccount) GetMintAuthorityAccount ¶
func (obj *CreateMetadataAccount) GetMintAuthorityAccount() *common.AccountMeta
GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority
func (*CreateMetadataAccount) GetPayerAccount ¶
func (obj *CreateMetadataAccount) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*CreateMetadataAccount) GetRentAccount ¶
func (obj *CreateMetadataAccount) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*CreateMetadataAccount) GetSystemProgramAccount ¶
func (obj *CreateMetadataAccount) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*CreateMetadataAccount) GetUpdateAuthorityAccount ¶
func (obj *CreateMetadataAccount) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. update authority info
func (*CreateMetadataAccount) MarshalWithEncoder ¶
func (obj *CreateMetadataAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CreateMetadataAccount) SetMetadataAccount ¶
func (obj *CreateMetadataAccount) SetMetadataAccount(metadata common.PublicKey) *CreateMetadataAccount
SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*CreateMetadataAccount) SetMintAccount ¶
func (obj *CreateMetadataAccount) SetMintAccount(mint common.PublicKey) *CreateMetadataAccount
SetMintAccount sets the "mint" parameter. Mint of token asset
func (*CreateMetadataAccount) SetMintAuthorityAccount ¶
func (obj *CreateMetadataAccount) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMetadataAccount
SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority
func (*CreateMetadataAccount) SetPayerAccount ¶
func (obj *CreateMetadataAccount) SetPayerAccount(payer common.PublicKey) *CreateMetadataAccount
SetPayerAccount sets the "payer" parameter. payer
func (*CreateMetadataAccount) SetProgramId ¶
func (obj *CreateMetadataAccount) SetProgramId(programId *common.PublicKey) *CreateMetadataAccount
func (*CreateMetadataAccount) SetRentAccount ¶
func (obj *CreateMetadataAccount) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMetadataAccount
SetRentAccount sets the "rent" parameter. Rent info
func (*CreateMetadataAccount) SetSystemProgramAccount ¶
func (obj *CreateMetadataAccount) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMetadataAccount
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*CreateMetadataAccount) SetUpdateAuthorityAccount ¶
func (obj *CreateMetadataAccount) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMetadataAccount
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. update authority info
func (*CreateMetadataAccount) UnmarshalWithDecoder ¶
func (obj *CreateMetadataAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*CreateMetadataAccount) Validate ¶
func (obj *CreateMetadataAccount) Validate() error
func (*CreateMetadataAccount) ValidateAndBuild ¶
func (obj *CreateMetadataAccount) 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 CreateMetadataAccountArgsV3 ¶
type CreateMetadataAccountArgsV3 struct { Data DataV2 IsMutable bool CollectionDetails *CollectionDetails `bin:"optional"` }
CreateMetadataAccountArgsV3 Struct
func (*CreateMetadataAccountArgsV3) MarshalWithEncoder ¶
func (obj *CreateMetadataAccountArgsV3) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CreateMetadataAccountArgsV3) UnmarshalWithDecoder ¶
func (obj *CreateMetadataAccountArgsV3) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type CreateMetadataAccountV2 ¶
type CreateMetadataAccountV2 struct { // [0] = [WRITE] metadata `Metadata key (pda of ['metadata', program id, mint id])` // [1] = [] mint `Mint of token asset` // [2] = [SIGNER] mintAuthority `Mint authority` // [3] = [WRITE, SIGNER] payer `payer` // [4] = [] updateAuthority `update authority info` // [5] = [] systemProgram `System program` // [6] = [] rent `Rent info` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
CreateMetadataAccountV2 Instruction
func NewCreateMetadataAccountV2Instruction ¶
func NewCreateMetadataAccountV2Instruction( metadata common.PublicKey, mint common.PublicKey, mintAuthority common.PublicKey, payer common.PublicKey, updateAuthority common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, ) *CreateMetadataAccountV2
NewCreateMetadataAccountV2Instruction
Parameters:
metadata: Metadata key (pda of ['metadata', program id, mint id]) mint: Mint of token asset mintAuthority: Mint authority payer: payer updateAuthority: update authority info systemProgram: System program rent: Rent info
func NewCreateMetadataAccountV2InstructionBuilder ¶
func NewCreateMetadataAccountV2InstructionBuilder() *CreateMetadataAccountV2
NewCreateMetadataAccountV2InstructionBuilder creates a new `CreateMetadataAccountV2` instruction builder.
func (*CreateMetadataAccountV2) Build ¶
func (obj *CreateMetadataAccountV2) Build() *Instruction
func (*CreateMetadataAccountV2) EncodeToTree ¶
func (obj *CreateMetadataAccountV2) EncodeToTree(parent treeout.Branches)
func (*CreateMetadataAccountV2) GetMetadataAccount ¶
func (obj *CreateMetadataAccountV2) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*CreateMetadataAccountV2) GetMintAccount ¶
func (obj *CreateMetadataAccountV2) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of token asset
func (*CreateMetadataAccountV2) GetMintAuthorityAccount ¶
func (obj *CreateMetadataAccountV2) GetMintAuthorityAccount() *common.AccountMeta
GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority
func (*CreateMetadataAccountV2) GetPayerAccount ¶
func (obj *CreateMetadataAccountV2) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*CreateMetadataAccountV2) GetRentAccount ¶
func (obj *CreateMetadataAccountV2) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*CreateMetadataAccountV2) GetSystemProgramAccount ¶
func (obj *CreateMetadataAccountV2) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*CreateMetadataAccountV2) GetUpdateAuthorityAccount ¶
func (obj *CreateMetadataAccountV2) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. update authority info
func (*CreateMetadataAccountV2) MarshalWithEncoder ¶
func (obj *CreateMetadataAccountV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CreateMetadataAccountV2) SetMetadataAccount ¶
func (obj *CreateMetadataAccountV2) SetMetadataAccount(metadata common.PublicKey) *CreateMetadataAccountV2
SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*CreateMetadataAccountV2) SetMintAccount ¶
func (obj *CreateMetadataAccountV2) SetMintAccount(mint common.PublicKey) *CreateMetadataAccountV2
SetMintAccount sets the "mint" parameter. Mint of token asset
func (*CreateMetadataAccountV2) SetMintAuthorityAccount ¶
func (obj *CreateMetadataAccountV2) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMetadataAccountV2
SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority
func (*CreateMetadataAccountV2) SetPayerAccount ¶
func (obj *CreateMetadataAccountV2) SetPayerAccount(payer common.PublicKey) *CreateMetadataAccountV2
SetPayerAccount sets the "payer" parameter. payer
func (*CreateMetadataAccountV2) SetProgramId ¶
func (obj *CreateMetadataAccountV2) SetProgramId(programId *common.PublicKey) *CreateMetadataAccountV2
func (*CreateMetadataAccountV2) SetRentAccount ¶
func (obj *CreateMetadataAccountV2) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMetadataAccountV2
SetRentAccount sets the "rent" parameter. Rent info
func (*CreateMetadataAccountV2) SetSystemProgramAccount ¶
func (obj *CreateMetadataAccountV2) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMetadataAccountV2
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*CreateMetadataAccountV2) SetUpdateAuthorityAccount ¶
func (obj *CreateMetadataAccountV2) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMetadataAccountV2
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. update authority info
func (*CreateMetadataAccountV2) UnmarshalWithDecoder ¶
func (obj *CreateMetadataAccountV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*CreateMetadataAccountV2) Validate ¶
func (obj *CreateMetadataAccountV2) Validate() error
func (*CreateMetadataAccountV2) ValidateAndBuild ¶
func (obj *CreateMetadataAccountV2) 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 CreateMetadataAccountV3 ¶
type CreateMetadataAccountV3 struct { CreateMetadataAccountArgsV3 *CreateMetadataAccountArgsV3 // [0] = [WRITE] metadata `Metadata key (pda of ['metadata', program id, mint id])` // [1] = [] mint `Mint of token asset` // [2] = [SIGNER] mintAuthority `Mint authority` // [3] = [WRITE, SIGNER] payer `payer` // [4] = [] updateAuthority `update authority info` // [5] = [] systemProgram `System program` // [6] = [] rent `Rent info` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
CreateMetadataAccountV3 Instruction
func NewCreateMetadataAccountV3Instruction ¶
func NewCreateMetadataAccountV3Instruction( createMetadataAccountArgsV3 CreateMetadataAccountArgsV3, metadata common.PublicKey, mint common.PublicKey, mintAuthority common.PublicKey, payer common.PublicKey, updateAuthority common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, ) *CreateMetadataAccountV3
NewCreateMetadataAccountV3Instruction
Parameters:
createMetadataAccountArgsV3: metadata: Metadata key (pda of ['metadata', program id, mint id]) mint: Mint of token asset mintAuthority: Mint authority payer: payer updateAuthority: update authority info systemProgram: System program rent: Rent info
func NewCreateMetadataAccountV3InstructionBuilder ¶
func NewCreateMetadataAccountV3InstructionBuilder() *CreateMetadataAccountV3
NewCreateMetadataAccountV3InstructionBuilder creates a new `CreateMetadataAccountV3` instruction builder.
func (*CreateMetadataAccountV3) Build ¶
func (obj *CreateMetadataAccountV3) Build() *Instruction
func (*CreateMetadataAccountV3) EncodeToTree ¶
func (obj *CreateMetadataAccountV3) EncodeToTree(parent treeout.Branches)
func (*CreateMetadataAccountV3) GetMetadataAccount ¶
func (obj *CreateMetadataAccountV3) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*CreateMetadataAccountV3) GetMintAccount ¶
func (obj *CreateMetadataAccountV3) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of token asset
func (*CreateMetadataAccountV3) GetMintAuthorityAccount ¶
func (obj *CreateMetadataAccountV3) GetMintAuthorityAccount() *common.AccountMeta
GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority
func (*CreateMetadataAccountV3) GetPayerAccount ¶
func (obj *CreateMetadataAccountV3) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*CreateMetadataAccountV3) GetRentAccount ¶
func (obj *CreateMetadataAccountV3) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*CreateMetadataAccountV3) GetSystemProgramAccount ¶
func (obj *CreateMetadataAccountV3) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*CreateMetadataAccountV3) GetUpdateAuthorityAccount ¶
func (obj *CreateMetadataAccountV3) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. update authority info
func (*CreateMetadataAccountV3) MarshalWithEncoder ¶
func (obj *CreateMetadataAccountV3) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*CreateMetadataAccountV3) SetCreateMetadataAccountArgsV3 ¶
func (obj *CreateMetadataAccountV3) SetCreateMetadataAccountArgsV3(createMetadataAccountArgsV3 CreateMetadataAccountArgsV3) *CreateMetadataAccountV3
SetCreateMetadataAccountArgsV3 sets the "createMetadataAccountArgsV3" parameter.
func (*CreateMetadataAccountV3) SetMetadataAccount ¶
func (obj *CreateMetadataAccountV3) SetMetadataAccount(metadata common.PublicKey) *CreateMetadataAccountV3
SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*CreateMetadataAccountV3) SetMintAccount ¶
func (obj *CreateMetadataAccountV3) SetMintAccount(mint common.PublicKey) *CreateMetadataAccountV3
SetMintAccount sets the "mint" parameter. Mint of token asset
func (*CreateMetadataAccountV3) SetMintAuthorityAccount ¶
func (obj *CreateMetadataAccountV3) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMetadataAccountV3
SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority
func (*CreateMetadataAccountV3) SetPayerAccount ¶
func (obj *CreateMetadataAccountV3) SetPayerAccount(payer common.PublicKey) *CreateMetadataAccountV3
SetPayerAccount sets the "payer" parameter. payer
func (*CreateMetadataAccountV3) SetProgramId ¶
func (obj *CreateMetadataAccountV3) SetProgramId(programId *common.PublicKey) *CreateMetadataAccountV3
func (*CreateMetadataAccountV3) SetRentAccount ¶
func (obj *CreateMetadataAccountV3) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMetadataAccountV3
SetRentAccount sets the "rent" parameter. Rent info
func (*CreateMetadataAccountV3) SetSystemProgramAccount ¶
func (obj *CreateMetadataAccountV3) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMetadataAccountV3
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*CreateMetadataAccountV3) SetUpdateAuthorityAccount ¶
func (obj *CreateMetadataAccountV3) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMetadataAccountV3
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. update authority info
func (*CreateMetadataAccountV3) UnmarshalWithDecoder ¶
func (obj *CreateMetadataAccountV3) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*CreateMetadataAccountV3) Validate ¶
func (obj *CreateMetadataAccountV3) Validate() error
func (*CreateMetadataAccountV3) ValidateAndBuild ¶
func (obj *CreateMetadataAccountV3) 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 CreatorNotFoundError ¶
type CreatorNotFoundError struct{}
CreatorNotFoundError Error: 40 `This creator address was not found`
func (CreatorNotFoundError) Code ¶
func (e CreatorNotFoundError) Code() int
func (CreatorNotFoundError) Error ¶
func (e CreatorNotFoundError) Error() string
type CreatorsMustBeAtleastOneError ¶
type CreatorsMustBeAtleastOneError struct{}
CreatorsMustBeAtleastOneError Error: 37 `Creators must be at least one if set`
func (CreatorsMustBeAtleastOneError) Code ¶
func (e CreatorsMustBeAtleastOneError) Code() int
func (CreatorsMustBeAtleastOneError) Error ¶
func (e CreatorsMustBeAtleastOneError) Error() string
type CreatorsTooLongError ¶
type CreatorsTooLongError struct{}
CreatorsTooLongError Error: 36 `Creators list too long`
func (CreatorsTooLongError) Code ¶
func (e CreatorsTooLongError) Code() int
func (CreatorsTooLongError) Error ¶
func (e CreatorsTooLongError) Error() string
type Data ¶
type Data struct { Name string Symbol string Uri string SellerFeeBasisPoints uint16 Creators []Creator `bin:"optional"` }
Data Struct
func (*Data) MarshalWithEncoder ¶
type DataIncrementLimitExceededError ¶
type DataIncrementLimitExceededError struct{}
DataIncrementLimitExceededError Error: 172 `Exceeded account realloc increase limit`
func (DataIncrementLimitExceededError) Code ¶
func (e DataIncrementLimitExceededError) Code() int
func (DataIncrementLimitExceededError) Error ¶
func (e DataIncrementLimitExceededError) Error() string
type DataIsEmptyOrZeroedError ¶
type DataIsEmptyOrZeroedError struct{}
DataIsEmptyOrZeroedError Error: 161 `Data is empty or zeroed`
func (DataIsEmptyOrZeroedError) Code ¶
func (e DataIsEmptyOrZeroedError) Code() int
func (DataIsEmptyOrZeroedError) Error ¶
func (e DataIsEmptyOrZeroedError) Error() string
type DataIsImmutableError ¶
type DataIsImmutableError struct{}
DataIsImmutableError Error: 59 `Data is immutable`
func (DataIsImmutableError) Code ¶
func (e DataIsImmutableError) Code() int
func (DataIsImmutableError) Error ¶
func (e DataIsImmutableError) Error() string
type DataTypeMismatchError ¶
type DataTypeMismatchError struct{}
DataTypeMismatchError Error: 63 `Data type mismatch`
func (DataTypeMismatchError) Code ¶
func (e DataTypeMismatchError) Code() int
func (DataTypeMismatchError) Error ¶
func (e DataTypeMismatchError) Error() string
type DataV2 ¶
type DataV2 struct { Name string Symbol string Uri string SellerFeeBasisPoints uint16 Creators []Creator `bin:"optional"` Collection *Collection `bin:"optional"` Uses *Uses `bin:"optional"` }
DataV2 Struct
func (*DataV2) MarshalWithEncoder ¶
type Delegate ¶
type Delegate struct { DelegateArgs *DelegateArgs // [0] = [WRITE] delegateRecord `Delegate record account` // [1] = [] delegate `Owner of the delegated account` // [2] = [WRITE] metadata `Metadata account` // [3] = [] masterEdition `Master Edition account` // [4] = [WRITE] tokenRecord `Token record account` // [5] = [] mint `Mint of metadata` // [6] = [WRITE] token `Token account of mint` // [7] = [SIGNER] authority `Update authority or token owner` // [8] = [WRITE, SIGNER] payer `Payer` // [9] = [] systemProgram `System Program` // [10] = [] sysvarInstructions `Instructions sysvar account` // [11] = [] splTokenProgram `SPL Token Program` // [12] = [] authorizationRulesProgram `Token Authorization Rules Program` // [13] = [] authorizationRules `Token Authorization Rules account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Delegate Instruction
func NewDelegateInstruction ¶
func NewDelegateInstruction( delegateArgs DelegateArgs, delegateRecord common.PublicKey, delegate common.PublicKey, metadata common.PublicKey, masterEdition common.PublicKey, tokenRecord common.PublicKey, mint common.PublicKey, token common.PublicKey, authority common.PublicKey, payer common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, splTokenProgram common.PublicKey, authorizationRulesProgram common.PublicKey, authorizationRules common.PublicKey, ) *Delegate
NewDelegateInstruction
Parameters:
delegateArgs: delegateRecord: Delegate record account delegate: Owner of the delegated account metadata: Metadata account masterEdition: Master Edition account tokenRecord: Token record account mint: Mint of metadata token: Token account of mint authority: Update authority or token owner payer: Payer systemProgram: System Program sysvarInstructions: Instructions sysvar account splTokenProgram: SPL Token Program authorizationRulesProgram: Token Authorization Rules Program authorizationRules: Token Authorization Rules account
func NewDelegateInstructionBuilder ¶
func NewDelegateInstructionBuilder() *Delegate
NewDelegateInstructionBuilder creates a new `Delegate` instruction builder.
func (*Delegate) Build ¶
func (obj *Delegate) Build() *Instruction
func (*Delegate) EncodeToTree ¶
func (*Delegate) GetAuthorityAccount ¶
func (obj *Delegate) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Update authority or token owner
func (*Delegate) GetAuthorizationRulesAccount ¶
func (obj *Delegate) GetAuthorizationRulesAccount() *common.AccountMeta
GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account
func (*Delegate) GetAuthorizationRulesProgramAccount ¶
func (obj *Delegate) GetAuthorizationRulesProgramAccount() *common.AccountMeta
GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Delegate) GetDelegateAccount ¶
func (obj *Delegate) GetDelegateAccount() *common.AccountMeta
GetDelegateAccount gets the "delegate" parameter. Owner of the delegated account
func (*Delegate) GetDelegateRecordAccount ¶
func (obj *Delegate) GetDelegateRecordAccount() *common.AccountMeta
GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record account
func (*Delegate) GetMasterEditionAccount ¶
func (obj *Delegate) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Master Edition account
func (*Delegate) GetMetadataAccount ¶
func (obj *Delegate) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*Delegate) GetMintAccount ¶
func (obj *Delegate) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of metadata
func (*Delegate) GetPayerAccount ¶
func (obj *Delegate) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*Delegate) GetSplTokenProgramAccount ¶
func (obj *Delegate) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program
func (*Delegate) GetSystemProgramAccount ¶
func (obj *Delegate) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System Program
func (*Delegate) GetSysvarInstructionsAccount ¶
func (obj *Delegate) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Delegate) GetTokenAccount ¶
func (obj *Delegate) GetTokenAccount() *common.AccountMeta
GetTokenAccount gets the "token" parameter. Token account of mint
func (*Delegate) GetTokenRecordAccount ¶
func (obj *Delegate) GetTokenRecordAccount() *common.AccountMeta
GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account
func (*Delegate) MarshalWithEncoder ¶
func (*Delegate) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Update authority or token owner
func (*Delegate) SetAuthorizationRulesAccount ¶
func (obj *Delegate) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Delegate
SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account
func (*Delegate) SetAuthorizationRulesProgramAccount ¶
func (obj *Delegate) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Delegate
SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Delegate) SetDelegateAccount ¶
SetDelegateAccount sets the "delegate" parameter. Owner of the delegated account
func (*Delegate) SetDelegateArgs ¶
func (obj *Delegate) SetDelegateArgs(delegateArgs DelegateArgs) *Delegate
SetDelegateArgs sets the "delegateArgs" parameter.
func (*Delegate) SetDelegateRecordAccount ¶
SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record account
func (*Delegate) SetMasterEditionAccount ¶
SetMasterEditionAccount sets the "masterEdition" parameter. Master Edition account
func (*Delegate) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*Delegate) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint of metadata
func (*Delegate) SetPayerAccount ¶
SetPayerAccount sets the "payer" parameter. Payer
func (*Delegate) SetProgramId ¶
func (*Delegate) SetSplTokenProgramAccount ¶
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program
func (*Delegate) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System Program
func (*Delegate) SetSysvarInstructionsAccount ¶
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Delegate) SetTokenAccount ¶
SetTokenAccount sets the "token" parameter. Token account of mint
func (*Delegate) SetTokenRecordAccount ¶
SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account
func (*Delegate) UnmarshalWithDecoder ¶
func (*Delegate) ValidateAndBuild ¶
func (obj *Delegate) 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 DelegateAlreadyExistsError ¶
type DelegateAlreadyExistsError struct{}
DelegateAlreadyExistsError Error: 141 `Delegate already exists`
func (DelegateAlreadyExistsError) Code ¶
func (e DelegateAlreadyExistsError) Code() int
func (DelegateAlreadyExistsError) Error ¶
func (e DelegateAlreadyExistsError) Error() string
type DelegateArgs ¶
type DelegateArgs struct { CollectionV1 *DelegateArgsCollectionV1 `bin:"optional"` SaleV1 *DelegateArgsSaleV1 `bin:"optional"` TransferV1 *DelegateArgsTransferV1 `bin:"optional"` DataV1 *DelegateArgsDataV1 `bin:"optional"` UtilityV1 *DelegateArgsUtilityV1 `bin:"optional"` StakingV1 *DelegateArgsStakingV1 `bin:"optional"` StandardV1 *DelegateArgsStandardV1 `bin:"optional"` LockedTransferV1 *DelegateArgsLockedTransferV1 `bin:"optional"` ProgrammableConfigV1 *DelegateArgsProgrammableConfigV1 `bin:"optional"` AuthorityItemV1 *DelegateArgsAuthorityItemV1 `bin:"optional"` DataItemV1 *DelegateArgsDataItemV1 `bin:"optional"` CollectionItemV1 *DelegateArgsCollectionItemV1 `bin:"optional"` ProgrammableConfigItemV1 *DelegateArgsProgrammableConfigItemV1 `bin:"optional"` }
DelegateArgs Enum
func NewDelegateArgs_AuthorityItemV1 ¶
func NewDelegateArgs_AuthorityItemV1(authorizationData *AuthorizationData) DelegateArgs
func NewDelegateArgs_CollectionItemV1 ¶
func NewDelegateArgs_CollectionItemV1(authorizationData *AuthorizationData) DelegateArgs
func NewDelegateArgs_CollectionV1 ¶
func NewDelegateArgs_CollectionV1(authorizationData *AuthorizationData) DelegateArgs
func NewDelegateArgs_DataItemV1 ¶
func NewDelegateArgs_DataItemV1(authorizationData *AuthorizationData) DelegateArgs
func NewDelegateArgs_DataV1 ¶
func NewDelegateArgs_DataV1(authorizationData *AuthorizationData) DelegateArgs
func NewDelegateArgs_LockedTransferV1 ¶
func NewDelegateArgs_LockedTransferV1(amount uint64, lockedAddress common.PublicKey, authorizationData *AuthorizationData) DelegateArgs
func NewDelegateArgs_ProgrammableConfigItemV1 ¶
func NewDelegateArgs_ProgrammableConfigItemV1(authorizationData *AuthorizationData) DelegateArgs
func NewDelegateArgs_ProgrammableConfigV1 ¶
func NewDelegateArgs_ProgrammableConfigV1(authorizationData *AuthorizationData) DelegateArgs
func NewDelegateArgs_SaleV1 ¶
func NewDelegateArgs_SaleV1(amount uint64, authorizationData *AuthorizationData) DelegateArgs
func NewDelegateArgs_StakingV1 ¶
func NewDelegateArgs_StakingV1(amount uint64, authorizationData *AuthorizationData) DelegateArgs
func NewDelegateArgs_StandardV1 ¶
func NewDelegateArgs_StandardV1(amount uint64) DelegateArgs
func NewDelegateArgs_TransferV1 ¶
func NewDelegateArgs_TransferV1(amount uint64, authorizationData *AuthorizationData) DelegateArgs
func NewDelegateArgs_UtilityV1 ¶
func NewDelegateArgs_UtilityV1(amount uint64, authorizationData *AuthorizationData) DelegateArgs
func (*DelegateArgs) AsAuthorityItemV1 ¶
func (obj *DelegateArgs) AsAuthorityItemV1() DelegateArgsAuthorityItemV1
func (*DelegateArgs) AsCollectionItemV1 ¶
func (obj *DelegateArgs) AsCollectionItemV1() DelegateArgsCollectionItemV1
func (*DelegateArgs) AsCollectionV1 ¶
func (obj *DelegateArgs) AsCollectionV1() DelegateArgsCollectionV1
func (*DelegateArgs) AsDataItemV1 ¶
func (obj *DelegateArgs) AsDataItemV1() DelegateArgsDataItemV1
func (*DelegateArgs) AsDataV1 ¶
func (obj *DelegateArgs) AsDataV1() DelegateArgsDataV1
func (*DelegateArgs) AsLockedTransferV1 ¶
func (obj *DelegateArgs) AsLockedTransferV1() DelegateArgsLockedTransferV1
func (*DelegateArgs) AsProgrammableConfigItemV1 ¶
func (obj *DelegateArgs) AsProgrammableConfigItemV1() DelegateArgsProgrammableConfigItemV1
func (*DelegateArgs) AsProgrammableConfigV1 ¶
func (obj *DelegateArgs) AsProgrammableConfigV1() DelegateArgsProgrammableConfigV1
func (*DelegateArgs) AsSaleV1 ¶
func (obj *DelegateArgs) AsSaleV1() DelegateArgsSaleV1
func (*DelegateArgs) AsStakingV1 ¶
func (obj *DelegateArgs) AsStakingV1() DelegateArgsStakingV1
func (*DelegateArgs) AsStandardV1 ¶
func (obj *DelegateArgs) AsStandardV1() DelegateArgsStandardV1
func (*DelegateArgs) AsTransferV1 ¶
func (obj *DelegateArgs) AsTransferV1() DelegateArgsTransferV1
func (*DelegateArgs) AsUtilityV1 ¶
func (obj *DelegateArgs) AsUtilityV1() DelegateArgsUtilityV1
func (*DelegateArgs) IsAuthorityItemV1 ¶
func (obj *DelegateArgs) IsAuthorityItemV1() bool
func (*DelegateArgs) IsCollectionItemV1 ¶
func (obj *DelegateArgs) IsCollectionItemV1() bool
func (*DelegateArgs) IsCollectionV1 ¶
func (obj *DelegateArgs) IsCollectionV1() bool
func (*DelegateArgs) IsDataItemV1 ¶
func (obj *DelegateArgs) IsDataItemV1() bool
func (*DelegateArgs) IsDataV1 ¶
func (obj *DelegateArgs) IsDataV1() bool
func (*DelegateArgs) IsLockedTransferV1 ¶
func (obj *DelegateArgs) IsLockedTransferV1() bool
func (*DelegateArgs) IsProgrammableConfigItemV1 ¶
func (obj *DelegateArgs) IsProgrammableConfigItemV1() bool
func (*DelegateArgs) IsProgrammableConfigV1 ¶
func (obj *DelegateArgs) IsProgrammableConfigV1() bool
func (*DelegateArgs) IsSaleV1 ¶
func (obj *DelegateArgs) IsSaleV1() bool
func (*DelegateArgs) IsStakingV1 ¶
func (obj *DelegateArgs) IsStakingV1() bool
func (*DelegateArgs) IsStandardV1 ¶
func (obj *DelegateArgs) IsStandardV1() bool
func (*DelegateArgs) IsTransferV1 ¶
func (obj *DelegateArgs) IsTransferV1() bool
func (*DelegateArgs) IsUtilityV1 ¶
func (obj *DelegateArgs) IsUtilityV1() bool
func (*DelegateArgs) MarshalWithEncoder ¶
func (obj *DelegateArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgs) String ¶
func (obj *DelegateArgs) String() string
func (*DelegateArgs) UnmarshalWithDecoder ¶
func (obj *DelegateArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsAuthorityItemV1 ¶
type DelegateArgsAuthorityItemV1 struct {
AuthorizationData *AuthorizationData `bin:"optional"`
}
func (*DelegateArgsAuthorityItemV1) MarshalWithEncoder ¶
func (obj *DelegateArgsAuthorityItemV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsAuthorityItemV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsAuthorityItemV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsCollectionItemV1 ¶
type DelegateArgsCollectionItemV1 struct {
AuthorizationData *AuthorizationData `bin:"optional"`
}
func (*DelegateArgsCollectionItemV1) MarshalWithEncoder ¶
func (obj *DelegateArgsCollectionItemV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsCollectionItemV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsCollectionItemV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsCollectionV1 ¶
type DelegateArgsCollectionV1 struct {
AuthorizationData *AuthorizationData `bin:"optional"`
}
func (*DelegateArgsCollectionV1) MarshalWithEncoder ¶
func (obj *DelegateArgsCollectionV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsCollectionV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsCollectionV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsDataItemV1 ¶
type DelegateArgsDataItemV1 struct {
AuthorizationData *AuthorizationData `bin:"optional"`
}
func (*DelegateArgsDataItemV1) MarshalWithEncoder ¶
func (obj *DelegateArgsDataItemV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsDataItemV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsDataItemV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsDataV1 ¶
type DelegateArgsDataV1 struct {
AuthorizationData *AuthorizationData `bin:"optional"`
}
func (*DelegateArgsDataV1) MarshalWithEncoder ¶
func (obj *DelegateArgsDataV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsDataV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsDataV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsLockedTransferV1 ¶
type DelegateArgsLockedTransferV1 struct { Amount uint64 LockedAddress common.PublicKey AuthorizationData *AuthorizationData `bin:"optional"` }
func (*DelegateArgsLockedTransferV1) MarshalWithEncoder ¶
func (obj *DelegateArgsLockedTransferV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsLockedTransferV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsLockedTransferV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsProgrammableConfigItemV1 ¶
type DelegateArgsProgrammableConfigItemV1 struct {
AuthorizationData *AuthorizationData `bin:"optional"`
}
func (*DelegateArgsProgrammableConfigItemV1) MarshalWithEncoder ¶
func (obj *DelegateArgsProgrammableConfigItemV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsProgrammableConfigItemV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsProgrammableConfigItemV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsProgrammableConfigV1 ¶
type DelegateArgsProgrammableConfigV1 struct {
AuthorizationData *AuthorizationData `bin:"optional"`
}
func (*DelegateArgsProgrammableConfigV1) MarshalWithEncoder ¶
func (obj *DelegateArgsProgrammableConfigV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsProgrammableConfigV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsProgrammableConfigV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsSaleV1 ¶
type DelegateArgsSaleV1 struct { Amount uint64 AuthorizationData *AuthorizationData `bin:"optional"` }
func (*DelegateArgsSaleV1) MarshalWithEncoder ¶
func (obj *DelegateArgsSaleV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsSaleV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsSaleV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsStakingV1 ¶
type DelegateArgsStakingV1 struct { Amount uint64 AuthorizationData *AuthorizationData `bin:"optional"` }
func (*DelegateArgsStakingV1) MarshalWithEncoder ¶
func (obj *DelegateArgsStakingV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsStakingV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsStakingV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsStandardV1 ¶
type DelegateArgsStandardV1 struct {
Amount uint64
}
func (*DelegateArgsStandardV1) MarshalWithEncoder ¶
func (obj *DelegateArgsStandardV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsStandardV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsStandardV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsTransferV1 ¶
type DelegateArgsTransferV1 struct { Amount uint64 AuthorizationData *AuthorizationData `bin:"optional"` }
func (*DelegateArgsTransferV1) MarshalWithEncoder ¶
func (obj *DelegateArgsTransferV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsTransferV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsTransferV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateArgsUtilityV1 ¶
type DelegateArgsUtilityV1 struct { Amount uint64 AuthorizationData *AuthorizationData `bin:"optional"` }
func (*DelegateArgsUtilityV1) MarshalWithEncoder ¶
func (obj *DelegateArgsUtilityV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DelegateArgsUtilityV1) UnmarshalWithDecoder ¶
func (obj *DelegateArgsUtilityV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type DelegateNotFoundError ¶
type DelegateNotFoundError struct{}
DelegateNotFoundError Error: 142 `Delegate not found`
func (DelegateNotFoundError) Code ¶
func (e DelegateNotFoundError) Code() int
func (DelegateNotFoundError) Error ¶
func (e DelegateNotFoundError) Error() string
type DeprecatedCreateMasterEdition ¶
type DeprecatedCreateMasterEdition struct { // [0] = [WRITE] edition `Unallocated edition V1 account with address as pda of ['metadata', program id, mint, 'edition']` // [1] = [WRITE] mint `Metadata mint` // [2] = [WRITE] printingMint `Printing mint - A mint you control that can mint tokens that can be exchanged for limited editions of your master edition via the MintNewEditionFromMasterEditionViaToken endpoint` // [3] = [WRITE] oneTimePrintingAuthorizationMint `One time authorization printing mint - A mint you control that prints tokens that gives the bearer permission to mint any number of tokens from the printing mint one time via an endpoint with the token-metadata program for your metadata. Also burns the token.` // [4] = [SIGNER] updateAuthority `Current Update authority key` // [5] = [SIGNER] printingMintAuthority `Printing mint authority - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.` // [6] = [SIGNER] mintAuthority `Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY` // [7] = [] metadata `Metadata account` // [8] = [SIGNER] payer `payer` // [9] = [] tokenProgram `Token program` // [10] = [] systemProgram `System program` // [11] = [] rent `Rent info` // [12] = [SIGNER] oneTimePrintingAuthorizationMintAuthority `One time authorization printing mint authority - must be provided if using max supply. THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
DeprecatedCreateMasterEdition Instruction
func NewDeprecatedCreateMasterEditionInstruction ¶
func NewDeprecatedCreateMasterEditionInstruction( edition common.PublicKey, mint common.PublicKey, printingMint common.PublicKey, oneTimePrintingAuthorizationMint common.PublicKey, updateAuthority common.PublicKey, printingMintAuthority common.PublicKey, mintAuthority common.PublicKey, metadata common.PublicKey, payer common.PublicKey, tokenProgram common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, oneTimePrintingAuthorizationMintAuthority common.PublicKey, ) *DeprecatedCreateMasterEdition
NewDeprecatedCreateMasterEditionInstruction
Parameters:
edition: Unallocated edition V1 account with address as pda of ['metadata', program id, mint, 'edition'] mint: Metadata mint printingMint: Printing mint - A mint you control that can mint tokens that can be exchanged for limited editions of your master edition via the MintNewEditionFromMasterEditionViaToken endpoint oneTimePrintingAuthorizationMint: One time authorization printing mint - A mint you control that prints tokens that gives the bearer permission to mint any number of tokens from the printing mint one time via an endpoint with the token-metadata program for your metadata. Also burns the token. updateAuthority: Current Update authority key printingMintAuthority: Printing mint authority - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY. mintAuthority: Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY metadata: Metadata account payer: payer tokenProgram: Token program systemProgram: System program rent: Rent info oneTimePrintingAuthorizationMintAuthority: One time authorization printing mint authority - must be provided if using max supply. THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.
func NewDeprecatedCreateMasterEditionInstructionBuilder ¶
func NewDeprecatedCreateMasterEditionInstructionBuilder() *DeprecatedCreateMasterEdition
NewDeprecatedCreateMasterEditionInstructionBuilder creates a new `DeprecatedCreateMasterEdition` instruction builder.
func (*DeprecatedCreateMasterEdition) Build ¶
func (obj *DeprecatedCreateMasterEdition) Build() *Instruction
func (*DeprecatedCreateMasterEdition) EncodeToTree ¶
func (obj *DeprecatedCreateMasterEdition) EncodeToTree(parent treeout.Branches)
func (*DeprecatedCreateMasterEdition) GetEditionAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Unallocated edition V1 account with address as pda of ['metadata', program id, mint, 'edition']
func (*DeprecatedCreateMasterEdition) GetMetadataAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*DeprecatedCreateMasterEdition) GetMintAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Metadata mint
func (*DeprecatedCreateMasterEdition) GetMintAuthorityAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetMintAuthorityAccount() *common.AccountMeta
GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAccount() *common.AccountMeta
GetOneTimePrintingAuthorizationMintAccount gets the "oneTimePrintingAuthorizationMint" parameter. One time authorization printing mint - A mint you control that prints tokens that gives the bearer permission to mint any number of tokens from the printing mint one time via an endpoint with the token-metadata program for your metadata. Also burns the token.
func (*DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAuthorityAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAuthorityAccount() *common.AccountMeta
GetOneTimePrintingAuthorizationMintAuthorityAccount gets the "oneTimePrintingAuthorizationMintAuthority" parameter. One time authorization printing mint authority - must be provided if using max supply. THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.
func (*DeprecatedCreateMasterEdition) GetPayerAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*DeprecatedCreateMasterEdition) GetPrintingMintAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetPrintingMintAccount() *common.AccountMeta
GetPrintingMintAccount gets the "printingMint" parameter. Printing mint - A mint you control that can mint tokens that can be exchanged for limited editions of your master edition via the MintNewEditionFromMasterEditionViaToken endpoint
func (*DeprecatedCreateMasterEdition) GetPrintingMintAuthorityAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetPrintingMintAuthorityAccount() *common.AccountMeta
GetPrintingMintAuthorityAccount gets the "printingMintAuthority" parameter. Printing mint authority - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.
func (*DeprecatedCreateMasterEdition) GetRentAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*DeprecatedCreateMasterEdition) GetSystemProgramAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*DeprecatedCreateMasterEdition) GetTokenProgramAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token program
func (*DeprecatedCreateMasterEdition) GetUpdateAuthorityAccount ¶
func (obj *DeprecatedCreateMasterEdition) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Current Update authority key
func (*DeprecatedCreateMasterEdition) MarshalWithEncoder ¶
func (obj *DeprecatedCreateMasterEdition) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DeprecatedCreateMasterEdition) SetEditionAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetEditionAccount(edition common.PublicKey) *DeprecatedCreateMasterEdition
SetEditionAccount sets the "edition" parameter. Unallocated edition V1 account with address as pda of ['metadata', program id, mint, 'edition']
func (*DeprecatedCreateMasterEdition) SetMetadataAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetMetadataAccount(metadata common.PublicKey) *DeprecatedCreateMasterEdition
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*DeprecatedCreateMasterEdition) SetMintAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetMintAccount(mint common.PublicKey) *DeprecatedCreateMasterEdition
SetMintAccount sets the "mint" parameter. Metadata mint
func (*DeprecatedCreateMasterEdition) SetMintAuthorityAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetMintAuthorityAccount(mintAuthority common.PublicKey) *DeprecatedCreateMasterEdition
SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAccount(oneTimePrintingAuthorizationMint common.PublicKey) *DeprecatedCreateMasterEdition
SetOneTimePrintingAuthorizationMintAccount sets the "oneTimePrintingAuthorizationMint" parameter. One time authorization printing mint - A mint you control that prints tokens that gives the bearer permission to mint any number of tokens from the printing mint one time via an endpoint with the token-metadata program for your metadata. Also burns the token.
func (*DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAuthorityAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAuthorityAccount(oneTimePrintingAuthorizationMintAuthority common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedCreateMasterEdition
SetOneTimePrintingAuthorizationMintAuthorityAccount sets the "oneTimePrintingAuthorizationMintAuthority" parameter. One time authorization printing mint authority - must be provided if using max supply. THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.
func (*DeprecatedCreateMasterEdition) SetPayerAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetPayerAccount(payer common.PublicKey) *DeprecatedCreateMasterEdition
SetPayerAccount sets the "payer" parameter. payer
func (*DeprecatedCreateMasterEdition) SetPrintingMintAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetPrintingMintAccount(printingMint common.PublicKey) *DeprecatedCreateMasterEdition
SetPrintingMintAccount sets the "printingMint" parameter. Printing mint - A mint you control that can mint tokens that can be exchanged for limited editions of your master edition via the MintNewEditionFromMasterEditionViaToken endpoint
func (*DeprecatedCreateMasterEdition) SetPrintingMintAuthorityAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetPrintingMintAuthorityAccount(printingMintAuthority common.PublicKey) *DeprecatedCreateMasterEdition
SetPrintingMintAuthorityAccount sets the "printingMintAuthority" parameter. Printing mint authority - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.
func (*DeprecatedCreateMasterEdition) SetProgramId ¶
func (obj *DeprecatedCreateMasterEdition) SetProgramId(programId *common.PublicKey) *DeprecatedCreateMasterEdition
func (*DeprecatedCreateMasterEdition) SetRentAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetRentAccount(rent common.PublicKey) *DeprecatedCreateMasterEdition
SetRentAccount sets the "rent" parameter. Rent info
func (*DeprecatedCreateMasterEdition) SetSystemProgramAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetSystemProgramAccount(systemProgram common.PublicKey) *DeprecatedCreateMasterEdition
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*DeprecatedCreateMasterEdition) SetTokenProgramAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetTokenProgramAccount(tokenProgram common.PublicKey) *DeprecatedCreateMasterEdition
SetTokenProgramAccount sets the "tokenProgram" parameter. Token program
func (*DeprecatedCreateMasterEdition) SetUpdateAuthorityAccount ¶
func (obj *DeprecatedCreateMasterEdition) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *DeprecatedCreateMasterEdition
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Current Update authority key
func (*DeprecatedCreateMasterEdition) UnmarshalWithDecoder ¶
func (obj *DeprecatedCreateMasterEdition) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*DeprecatedCreateMasterEdition) Validate ¶
func (obj *DeprecatedCreateMasterEdition) Validate() error
func (*DeprecatedCreateMasterEdition) ValidateAndBuild ¶
func (obj *DeprecatedCreateMasterEdition) 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 DeprecatedCreateReservationList ¶
type DeprecatedCreateReservationList struct { // [0] = [WRITE] reservationList `PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]` // [1] = [SIGNER] payer `Payer` // [2] = [SIGNER] updateAuthority `Update authority` // [3] = [] masterEdition ` Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])` // [4] = [] resource `A resource you wish to tie the reservation list to. This is so your later visitors who come to redeem can derive your reservation list PDA with something they can easily get at. You choose what this should be.` // [5] = [] metadata `Metadata key (pda of ['metadata', program id, mint id])` // [6] = [] systemProgram `System program` // [7] = [] rent `Rent info` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
DeprecatedCreateReservationList Instruction
func NewDeprecatedCreateReservationListInstruction ¶
func NewDeprecatedCreateReservationListInstruction( reservationList common.PublicKey, payer common.PublicKey, updateAuthority common.PublicKey, masterEdition common.PublicKey, resource common.PublicKey, metadata common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, ) *DeprecatedCreateReservationList
NewDeprecatedCreateReservationListInstruction
Parameters:
reservationList: PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key] payer: Payer updateAuthority: Update authority masterEdition: Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition']) resource: A resource you wish to tie the reservation list to. This is so your later visitors who come to redeem can derive your reservation list PDA with something they can easily get at. You choose what this should be. metadata: Metadata key (pda of ['metadata', program id, mint id]) systemProgram: System program rent: Rent info
func NewDeprecatedCreateReservationListInstructionBuilder ¶
func NewDeprecatedCreateReservationListInstructionBuilder() *DeprecatedCreateReservationList
NewDeprecatedCreateReservationListInstructionBuilder creates a new `DeprecatedCreateReservationList` instruction builder.
func (*DeprecatedCreateReservationList) Build ¶
func (obj *DeprecatedCreateReservationList) Build() *Instruction
func (*DeprecatedCreateReservationList) EncodeToTree ¶
func (obj *DeprecatedCreateReservationList) EncodeToTree(parent treeout.Branches)
func (*DeprecatedCreateReservationList) GetMasterEditionAccount ¶
func (obj *DeprecatedCreateReservationList) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter.
Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
func (*DeprecatedCreateReservationList) GetMetadataAccount ¶
func (obj *DeprecatedCreateReservationList) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*DeprecatedCreateReservationList) GetPayerAccount ¶
func (obj *DeprecatedCreateReservationList) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*DeprecatedCreateReservationList) GetRentAccount ¶
func (obj *DeprecatedCreateReservationList) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*DeprecatedCreateReservationList) GetReservationListAccount ¶
func (obj *DeprecatedCreateReservationList) GetReservationListAccount() *common.AccountMeta
GetReservationListAccount gets the "reservationList" parameter. PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]
func (*DeprecatedCreateReservationList) GetResourceAccount ¶
func (obj *DeprecatedCreateReservationList) GetResourceAccount() *common.AccountMeta
GetResourceAccount gets the "resource" parameter. A resource you wish to tie the reservation list to. This is so your later visitors who come to redeem can derive your reservation list PDA with something they can easily get at. You choose what this should be.
func (*DeprecatedCreateReservationList) GetSystemProgramAccount ¶
func (obj *DeprecatedCreateReservationList) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*DeprecatedCreateReservationList) GetUpdateAuthorityAccount ¶
func (obj *DeprecatedCreateReservationList) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority
func (*DeprecatedCreateReservationList) MarshalWithEncoder ¶
func (obj *DeprecatedCreateReservationList) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DeprecatedCreateReservationList) SetMasterEditionAccount ¶
func (obj *DeprecatedCreateReservationList) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedCreateReservationList
SetMasterEditionAccount sets the "masterEdition" parameter.
Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
func (*DeprecatedCreateReservationList) SetMetadataAccount ¶
func (obj *DeprecatedCreateReservationList) SetMetadataAccount(metadata common.PublicKey) *DeprecatedCreateReservationList
SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*DeprecatedCreateReservationList) SetPayerAccount ¶
func (obj *DeprecatedCreateReservationList) SetPayerAccount(payer common.PublicKey) *DeprecatedCreateReservationList
SetPayerAccount sets the "payer" parameter. Payer
func (*DeprecatedCreateReservationList) SetProgramId ¶
func (obj *DeprecatedCreateReservationList) SetProgramId(programId *common.PublicKey) *DeprecatedCreateReservationList
func (*DeprecatedCreateReservationList) SetRentAccount ¶
func (obj *DeprecatedCreateReservationList) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedCreateReservationList
SetRentAccount sets the "rent" parameter. Rent info
func (*DeprecatedCreateReservationList) SetReservationListAccount ¶
func (obj *DeprecatedCreateReservationList) SetReservationListAccount(reservationList common.PublicKey) *DeprecatedCreateReservationList
SetReservationListAccount sets the "reservationList" parameter. PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]
func (*DeprecatedCreateReservationList) SetResourceAccount ¶
func (obj *DeprecatedCreateReservationList) SetResourceAccount(resource common.PublicKey) *DeprecatedCreateReservationList
SetResourceAccount sets the "resource" parameter. A resource you wish to tie the reservation list to. This is so your later visitors who come to redeem can derive your reservation list PDA with something they can easily get at. You choose what this should be.
func (*DeprecatedCreateReservationList) SetSystemProgramAccount ¶
func (obj *DeprecatedCreateReservationList) SetSystemProgramAccount(systemProgram common.PublicKey) *DeprecatedCreateReservationList
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*DeprecatedCreateReservationList) SetUpdateAuthorityAccount ¶
func (obj *DeprecatedCreateReservationList) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *DeprecatedCreateReservationList
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority
func (*DeprecatedCreateReservationList) UnmarshalWithDecoder ¶
func (obj *DeprecatedCreateReservationList) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*DeprecatedCreateReservationList) Validate ¶
func (obj *DeprecatedCreateReservationList) Validate() error
func (*DeprecatedCreateReservationList) ValidateAndBuild ¶
func (obj *DeprecatedCreateReservationList) 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 DeprecatedMintNewEditionFromMasterEditionViaPrintingToken ¶
type DeprecatedMintNewEditionFromMasterEditionViaPrintingToken struct { // [0] = [WRITE] metadata `New Metadata key (pda of ['metadata', program id, mint id])` // [1] = [WRITE] edition `New Edition V1 (pda of ['metadata', program id, mint id, 'edition'])` // [2] = [WRITE] masterEdition `Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])` // [3] = [WRITE] mint `Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY` // [4] = [SIGNER] mintAuthority `Mint authority of new mint` // [5] = [WRITE] printingMint `Printing Mint of master record edition` // [6] = [WRITE] masterTokenAccount `Token account containing Printing mint token to be transferred` // [7] = [WRITE] editionMarker `Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master mint id, edition_number])` // [8] = [SIGNER] burnAuthority `Burn authority for this token` // [9] = [SIGNER] payer `payer` // [10] = [] masterUpdateAuthority `update authority info for new metadata account` // [11] = [] masterMetadata `Master record metadata account` // [12] = [] tokenProgram `Token program` // [13] = [] systemProgram `System program` // [14] = [] rent `Rent info` // [15] = [WRITE] reservationList `Reservation List - If present, and you are on this list, you can get an edition number given by your position on the list.` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
DeprecatedMintNewEditionFromMasterEditionViaPrintingToken Instruction
func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction ¶
func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction( metadata common.PublicKey, edition common.PublicKey, masterEdition common.PublicKey, mint common.PublicKey, mintAuthority common.PublicKey, printingMint common.PublicKey, masterTokenAccount common.PublicKey, editionMarker common.PublicKey, burnAuthority common.PublicKey, payer common.PublicKey, masterUpdateAuthority common.PublicKey, masterMetadata common.PublicKey, tokenProgram common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, reservationList common.PublicKey, ) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction
Parameters:
metadata: New Metadata key (pda of ['metadata', program id, mint id]) edition: New Edition V1 (pda of ['metadata', program id, mint id, 'edition']) masterEdition: Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition']) mint: Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY mintAuthority: Mint authority of new mint printingMint: Printing Mint of master record edition masterTokenAccount: Token account containing Printing mint token to be transferred editionMarker: Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master mint id, edition_number]) burnAuthority: Burn authority for this token payer: payer masterUpdateAuthority: update authority info for new metadata account masterMetadata: Master record metadata account tokenProgram: Token program systemProgram: System program rent: Rent info reservationList: Reservation List - If present, and you are on this list, you can get an edition number given by your position on the list.
func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionBuilder ¶
func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionBuilder() *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionBuilder creates a new `DeprecatedMintNewEditionFromMasterEditionViaPrintingToken` instruction builder.
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) Build ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) Build() *Instruction
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) EncodeToTree ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) EncodeToTree(parent treeout.Branches)
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetBurnAuthorityAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetBurnAuthorityAccount() *common.AccountMeta
GetBurnAuthorityAccount gets the "burnAuthority" parameter. Burn authority for this token
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetEditionAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. New Edition V1 (pda of ['metadata', program id, mint id, 'edition'])
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetEditionMarkerAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetEditionMarkerAccount() *common.AccountMeta
GetEditionMarkerAccount gets the "editionMarker" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master mint id, edition_number])
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterEditionAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterMetadataAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterMetadataAccount() *common.AccountMeta
GetMasterMetadataAccount gets the "masterMetadata" parameter. Master record metadata account
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterTokenAccountAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterTokenAccountAccount() *common.AccountMeta
GetMasterTokenAccountAccount gets the "masterTokenAccount" parameter. Token account containing Printing mint token to be transferred
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterUpdateAuthorityAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterUpdateAuthorityAccount() *common.AccountMeta
GetMasterUpdateAuthorityAccount gets the "masterUpdateAuthority" parameter. update authority info for new metadata account
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMetadataAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMintAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMintAuthorityAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMintAuthorityAccount() *common.AccountMeta
GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority of new mint
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetPayerAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetPrintingMintAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetPrintingMintAccount() *common.AccountMeta
GetPrintingMintAccount gets the "printingMint" parameter. Printing Mint of master record edition
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetRentAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetReservationListAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetReservationListAccount() *common.AccountMeta
GetReservationListAccount gets the "reservationList" parameter. Reservation List - If present, and you are on this list, you can get an edition number given by your position on the list.
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetSystemProgramAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetTokenProgramAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token program
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) MarshalWithEncoder ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetBurnAuthorityAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetBurnAuthorityAccount(burnAuthority common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetBurnAuthorityAccount sets the "burnAuthority" parameter. Burn authority for this token
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetEditionAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetEditionAccount(edition common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetEditionAccount sets the "edition" parameter. New Edition V1 (pda of ['metadata', program id, mint id, 'edition'])
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetEditionMarkerAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetEditionMarkerAccount(editionMarker common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetEditionMarkerAccount sets the "editionMarker" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master mint id, edition_number])
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterEditionAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetMasterEditionAccount sets the "masterEdition" parameter. Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterMetadataAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterMetadataAccount(masterMetadata common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetMasterMetadataAccount sets the "masterMetadata" parameter. Master record metadata account
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterTokenAccountAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterTokenAccountAccount(masterTokenAccount common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetMasterTokenAccountAccount sets the "masterTokenAccount" parameter. Token account containing Printing mint token to be transferred
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterUpdateAuthorityAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterUpdateAuthorityAccount(masterUpdateAuthority common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetMasterUpdateAuthorityAccount sets the "masterUpdateAuthority" parameter. update authority info for new metadata account
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMetadataAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMetadataAccount(metadata common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetMetadataAccount sets the "metadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMintAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMintAccount(mint common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetMintAccount sets the "mint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMintAuthorityAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMintAuthorityAccount(mintAuthority common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority of new mint
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetPayerAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetPayerAccount(payer common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetPayerAccount sets the "payer" parameter. payer
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetPrintingMintAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetPrintingMintAccount(printingMint common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetPrintingMintAccount sets the "printingMint" parameter. Printing Mint of master record edition
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetProgramId ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetProgramId(programId *common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetRentAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetRentAccount(rent common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetRentAccount sets the "rent" parameter. Rent info
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetReservationListAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetReservationListAccount(reservationList common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetReservationListAccount sets the "reservationList" parameter. Reservation List - If present, and you are on this list, you can get an edition number given by your position on the list.
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetSystemProgramAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetSystemProgramAccount(systemProgram common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetTokenProgramAccount ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetTokenProgramAccount(tokenProgram common.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken
SetTokenProgramAccount sets the "tokenProgram" parameter. Token program
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) UnmarshalWithDecoder ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) Validate ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) Validate() error
func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) ValidateAndBuild ¶
func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) 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 DeprecatedMintPrintingTokens ¶
type DeprecatedMintPrintingTokens struct { // [0] = [WRITE] destination `Destination account` // [1] = [WRITE] printingMint `Printing mint` // [2] = [SIGNER] updateAuthority `Update authority` // [3] = [] metadata `Metadata key (pda of ['metadata', program id, mint id])` // [4] = [] masterEdition `Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])` // [5] = [] tokenProgram `Token program` // [6] = [] rent `Rent` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
DeprecatedMintPrintingTokens Instruction
func NewDeprecatedMintPrintingTokensInstruction ¶
func NewDeprecatedMintPrintingTokensInstruction( destination common.PublicKey, printingMint common.PublicKey, updateAuthority common.PublicKey, metadata common.PublicKey, masterEdition common.PublicKey, tokenProgram common.PublicKey, rent common.PublicKey, ) *DeprecatedMintPrintingTokens
NewDeprecatedMintPrintingTokensInstruction
Parameters:
destination: Destination account printingMint: Printing mint updateAuthority: Update authority metadata: Metadata key (pda of ['metadata', program id, mint id]) masterEdition: Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition']) tokenProgram: Token program rent: Rent
func NewDeprecatedMintPrintingTokensInstructionBuilder ¶
func NewDeprecatedMintPrintingTokensInstructionBuilder() *DeprecatedMintPrintingTokens
NewDeprecatedMintPrintingTokensInstructionBuilder creates a new `DeprecatedMintPrintingTokens` instruction builder.
func (*DeprecatedMintPrintingTokens) Build ¶
func (obj *DeprecatedMintPrintingTokens) Build() *Instruction
func (*DeprecatedMintPrintingTokens) EncodeToTree ¶
func (obj *DeprecatedMintPrintingTokens) EncodeToTree(parent treeout.Branches)
func (*DeprecatedMintPrintingTokens) GetDestinationAccount ¶
func (obj *DeprecatedMintPrintingTokens) GetDestinationAccount() *common.AccountMeta
GetDestinationAccount gets the "destination" parameter. Destination account
func (*DeprecatedMintPrintingTokens) GetMasterEditionAccount ¶
func (obj *DeprecatedMintPrintingTokens) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
func (*DeprecatedMintPrintingTokens) GetMetadataAccount ¶
func (obj *DeprecatedMintPrintingTokens) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*DeprecatedMintPrintingTokens) GetPrintingMintAccount ¶
func (obj *DeprecatedMintPrintingTokens) GetPrintingMintAccount() *common.AccountMeta
GetPrintingMintAccount gets the "printingMint" parameter. Printing mint
func (*DeprecatedMintPrintingTokens) GetRentAccount ¶
func (obj *DeprecatedMintPrintingTokens) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent
func (*DeprecatedMintPrintingTokens) GetTokenProgramAccount ¶
func (obj *DeprecatedMintPrintingTokens) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token program
func (*DeprecatedMintPrintingTokens) GetUpdateAuthorityAccount ¶
func (obj *DeprecatedMintPrintingTokens) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority
func (*DeprecatedMintPrintingTokens) MarshalWithEncoder ¶
func (obj *DeprecatedMintPrintingTokens) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DeprecatedMintPrintingTokens) SetDestinationAccount ¶
func (obj *DeprecatedMintPrintingTokens) SetDestinationAccount(destination common.PublicKey) *DeprecatedMintPrintingTokens
SetDestinationAccount sets the "destination" parameter. Destination account
func (*DeprecatedMintPrintingTokens) SetMasterEditionAccount ¶
func (obj *DeprecatedMintPrintingTokens) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedMintPrintingTokens
SetMasterEditionAccount sets the "masterEdition" parameter. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
func (*DeprecatedMintPrintingTokens) SetMetadataAccount ¶
func (obj *DeprecatedMintPrintingTokens) SetMetadataAccount(metadata common.PublicKey) *DeprecatedMintPrintingTokens
SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*DeprecatedMintPrintingTokens) SetPrintingMintAccount ¶
func (obj *DeprecatedMintPrintingTokens) SetPrintingMintAccount(printingMint common.PublicKey) *DeprecatedMintPrintingTokens
SetPrintingMintAccount sets the "printingMint" parameter. Printing mint
func (*DeprecatedMintPrintingTokens) SetProgramId ¶
func (obj *DeprecatedMintPrintingTokens) SetProgramId(programId *common.PublicKey) *DeprecatedMintPrintingTokens
func (*DeprecatedMintPrintingTokens) SetRentAccount ¶
func (obj *DeprecatedMintPrintingTokens) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedMintPrintingTokens
SetRentAccount sets the "rent" parameter. Rent
func (*DeprecatedMintPrintingTokens) SetTokenProgramAccount ¶
func (obj *DeprecatedMintPrintingTokens) SetTokenProgramAccount(tokenProgram common.PublicKey) *DeprecatedMintPrintingTokens
SetTokenProgramAccount sets the "tokenProgram" parameter. Token program
func (*DeprecatedMintPrintingTokens) SetUpdateAuthorityAccount ¶
func (obj *DeprecatedMintPrintingTokens) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *DeprecatedMintPrintingTokens
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority
func (*DeprecatedMintPrintingTokens) UnmarshalWithDecoder ¶
func (obj *DeprecatedMintPrintingTokens) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*DeprecatedMintPrintingTokens) Validate ¶
func (obj *DeprecatedMintPrintingTokens) Validate() error
func (*DeprecatedMintPrintingTokens) ValidateAndBuild ¶
func (obj *DeprecatedMintPrintingTokens) 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 DeprecatedMintPrintingTokensViaToken ¶
type DeprecatedMintPrintingTokensViaToken struct { // [0] = [WRITE] destination `Destination account` // [1] = [WRITE] token `Token account containing one time authorization token` // [2] = [WRITE] oneTimePrintingAuthorizationMint `One time authorization mint` // [3] = [WRITE] printingMint `Printing mint` // [4] = [SIGNER] burnAuthority `Burn authority` // [5] = [] metadata `Metadata key (pda of ['metadata', program id, mint id])` // [6] = [] masterEdition `Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])` // [7] = [] tokenProgram `Token program` // [8] = [] rent `Rent` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
DeprecatedMintPrintingTokensViaToken Instruction
func NewDeprecatedMintPrintingTokensViaTokenInstruction ¶
func NewDeprecatedMintPrintingTokensViaTokenInstruction( destination common.PublicKey, token common.PublicKey, oneTimePrintingAuthorizationMint common.PublicKey, printingMint common.PublicKey, burnAuthority common.PublicKey, metadata common.PublicKey, masterEdition common.PublicKey, tokenProgram common.PublicKey, rent common.PublicKey, ) *DeprecatedMintPrintingTokensViaToken
NewDeprecatedMintPrintingTokensViaTokenInstruction
Parameters:
destination: Destination account token: Token account containing one time authorization token oneTimePrintingAuthorizationMint: One time authorization mint printingMint: Printing mint burnAuthority: Burn authority metadata: Metadata key (pda of ['metadata', program id, mint id]) masterEdition: Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition']) tokenProgram: Token program rent: Rent
func NewDeprecatedMintPrintingTokensViaTokenInstructionBuilder ¶
func NewDeprecatedMintPrintingTokensViaTokenInstructionBuilder() *DeprecatedMintPrintingTokensViaToken
NewDeprecatedMintPrintingTokensViaTokenInstructionBuilder creates a new `DeprecatedMintPrintingTokensViaToken` instruction builder.
func (*DeprecatedMintPrintingTokensViaToken) Build ¶
func (obj *DeprecatedMintPrintingTokensViaToken) Build() *Instruction
func (*DeprecatedMintPrintingTokensViaToken) EncodeToTree ¶
func (obj *DeprecatedMintPrintingTokensViaToken) EncodeToTree(parent treeout.Branches)
func (*DeprecatedMintPrintingTokensViaToken) GetBurnAuthorityAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) GetBurnAuthorityAccount() *common.AccountMeta
GetBurnAuthorityAccount gets the "burnAuthority" parameter. Burn authority
func (*DeprecatedMintPrintingTokensViaToken) GetDestinationAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) GetDestinationAccount() *common.AccountMeta
GetDestinationAccount gets the "destination" parameter. Destination account
func (*DeprecatedMintPrintingTokensViaToken) GetMasterEditionAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
func (*DeprecatedMintPrintingTokensViaToken) GetMetadataAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*DeprecatedMintPrintingTokensViaToken) GetOneTimePrintingAuthorizationMintAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) GetOneTimePrintingAuthorizationMintAccount() *common.AccountMeta
GetOneTimePrintingAuthorizationMintAccount gets the "oneTimePrintingAuthorizationMint" parameter. One time authorization mint
func (*DeprecatedMintPrintingTokensViaToken) GetPrintingMintAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) GetPrintingMintAccount() *common.AccountMeta
GetPrintingMintAccount gets the "printingMint" parameter. Printing mint
func (*DeprecatedMintPrintingTokensViaToken) GetRentAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent
func (*DeprecatedMintPrintingTokensViaToken) GetTokenAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) GetTokenAccount() *common.AccountMeta
GetTokenAccount gets the "token" parameter. Token account containing one time authorization token
func (*DeprecatedMintPrintingTokensViaToken) GetTokenProgramAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token program
func (*DeprecatedMintPrintingTokensViaToken) MarshalWithEncoder ¶
func (obj *DeprecatedMintPrintingTokensViaToken) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DeprecatedMintPrintingTokensViaToken) SetBurnAuthorityAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) SetBurnAuthorityAccount(burnAuthority common.PublicKey) *DeprecatedMintPrintingTokensViaToken
SetBurnAuthorityAccount sets the "burnAuthority" parameter. Burn authority
func (*DeprecatedMintPrintingTokensViaToken) SetDestinationAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) SetDestinationAccount(destination common.PublicKey) *DeprecatedMintPrintingTokensViaToken
SetDestinationAccount sets the "destination" parameter. Destination account
func (*DeprecatedMintPrintingTokensViaToken) SetMasterEditionAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedMintPrintingTokensViaToken
SetMasterEditionAccount sets the "masterEdition" parameter. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
func (*DeprecatedMintPrintingTokensViaToken) SetMetadataAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) SetMetadataAccount(metadata common.PublicKey) *DeprecatedMintPrintingTokensViaToken
SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*DeprecatedMintPrintingTokensViaToken) SetOneTimePrintingAuthorizationMintAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) SetOneTimePrintingAuthorizationMintAccount(oneTimePrintingAuthorizationMint common.PublicKey) *DeprecatedMintPrintingTokensViaToken
SetOneTimePrintingAuthorizationMintAccount sets the "oneTimePrintingAuthorizationMint" parameter. One time authorization mint
func (*DeprecatedMintPrintingTokensViaToken) SetPrintingMintAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) SetPrintingMintAccount(printingMint common.PublicKey) *DeprecatedMintPrintingTokensViaToken
SetPrintingMintAccount sets the "printingMint" parameter. Printing mint
func (*DeprecatedMintPrintingTokensViaToken) SetProgramId ¶
func (obj *DeprecatedMintPrintingTokensViaToken) SetProgramId(programId *common.PublicKey) *DeprecatedMintPrintingTokensViaToken
func (*DeprecatedMintPrintingTokensViaToken) SetRentAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedMintPrintingTokensViaToken
SetRentAccount sets the "rent" parameter. Rent
func (*DeprecatedMintPrintingTokensViaToken) SetTokenAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) SetTokenAccount(token common.PublicKey) *DeprecatedMintPrintingTokensViaToken
SetTokenAccount sets the "token" parameter. Token account containing one time authorization token
func (*DeprecatedMintPrintingTokensViaToken) SetTokenProgramAccount ¶
func (obj *DeprecatedMintPrintingTokensViaToken) SetTokenProgramAccount(tokenProgram common.PublicKey) *DeprecatedMintPrintingTokensViaToken
SetTokenProgramAccount sets the "tokenProgram" parameter. Token program
func (*DeprecatedMintPrintingTokensViaToken) UnmarshalWithDecoder ¶
func (obj *DeprecatedMintPrintingTokensViaToken) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*DeprecatedMintPrintingTokensViaToken) Validate ¶
func (obj *DeprecatedMintPrintingTokensViaToken) Validate() error
func (*DeprecatedMintPrintingTokensViaToken) ValidateAndBuild ¶
func (obj *DeprecatedMintPrintingTokensViaToken) 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 DeprecatedSetReservationList ¶
type DeprecatedSetReservationList struct { // [0] = [WRITE] masterEdition `Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])` // [1] = [WRITE] reservationList `PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]` // [2] = [SIGNER] resource `The resource you tied the reservation list too` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
DeprecatedSetReservationList Instruction
func NewDeprecatedSetReservationListInstruction ¶
func NewDeprecatedSetReservationListInstruction( masterEdition common.PublicKey, reservationList common.PublicKey, resource common.PublicKey, ) *DeprecatedSetReservationList
NewDeprecatedSetReservationListInstruction
Parameters:
masterEdition: Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition']) reservationList: PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key] resource: The resource you tied the reservation list too
func NewDeprecatedSetReservationListInstructionBuilder ¶
func NewDeprecatedSetReservationListInstructionBuilder() *DeprecatedSetReservationList
NewDeprecatedSetReservationListInstructionBuilder creates a new `DeprecatedSetReservationList` instruction builder.
func (*DeprecatedSetReservationList) Build ¶
func (obj *DeprecatedSetReservationList) Build() *Instruction
func (*DeprecatedSetReservationList) EncodeToTree ¶
func (obj *DeprecatedSetReservationList) EncodeToTree(parent treeout.Branches)
func (*DeprecatedSetReservationList) GetMasterEditionAccount ¶
func (obj *DeprecatedSetReservationList) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
func (*DeprecatedSetReservationList) GetReservationListAccount ¶
func (obj *DeprecatedSetReservationList) GetReservationListAccount() *common.AccountMeta
GetReservationListAccount gets the "reservationList" parameter. PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]
func (*DeprecatedSetReservationList) GetResourceAccount ¶
func (obj *DeprecatedSetReservationList) GetResourceAccount() *common.AccountMeta
GetResourceAccount gets the "resource" parameter. The resource you tied the reservation list too
func (*DeprecatedSetReservationList) MarshalWithEncoder ¶
func (obj *DeprecatedSetReservationList) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*DeprecatedSetReservationList) SetMasterEditionAccount ¶
func (obj *DeprecatedSetReservationList) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedSetReservationList
SetMasterEditionAccount sets the "masterEdition" parameter. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
func (*DeprecatedSetReservationList) SetProgramId ¶
func (obj *DeprecatedSetReservationList) SetProgramId(programId *common.PublicKey) *DeprecatedSetReservationList
func (*DeprecatedSetReservationList) SetReservationListAccount ¶
func (obj *DeprecatedSetReservationList) SetReservationListAccount(reservationList common.PublicKey) *DeprecatedSetReservationList
SetReservationListAccount sets the "reservationList" parameter. PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]
func (*DeprecatedSetReservationList) SetResourceAccount ¶
func (obj *DeprecatedSetReservationList) SetResourceAccount(resource common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedSetReservationList
SetResourceAccount sets the "resource" parameter. The resource you tied the reservation list too
func (*DeprecatedSetReservationList) UnmarshalWithDecoder ¶
func (obj *DeprecatedSetReservationList) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*DeprecatedSetReservationList) Validate ¶
func (obj *DeprecatedSetReservationList) Validate() error
func (*DeprecatedSetReservationList) ValidateAndBuild ¶
func (obj *DeprecatedSetReservationList) 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 DerivedKeyInvalidError ¶
type DerivedKeyInvalidError struct{}
DerivedKeyInvalidError Error: 27 `Derived key invalid`
func (DerivedKeyInvalidError) Code ¶
func (e DerivedKeyInvalidError) Code() int
func (DerivedKeyInvalidError) Error ¶
func (e DerivedKeyInvalidError) Error() string
type DestinationMintMismatchError ¶
type DestinationMintMismatchError struct{}
DestinationMintMismatchError Error: 20 “
func (DestinationMintMismatchError) Code ¶
func (e DestinationMintMismatchError) Code() int
func (DestinationMintMismatchError) Error ¶
func (e DestinationMintMismatchError) Error() string
type DisabledError ¶
type DisabledError struct{}
DisabledError Error: 35 “
func (DisabledError) Code ¶
func (e DisabledError) Code() int
func (DisabledError) Error ¶
func (e DisabledError) Error() string
type DuplicateCreatorAddressError ¶
type DuplicateCreatorAddressError struct{}
DuplicateCreatorAddressError Error: 60 `No duplicate creator addresses`
func (DuplicateCreatorAddressError) Code ¶
func (e DuplicateCreatorAddressError) Code() int
func (DuplicateCreatorAddressError) Error ¶
func (e DuplicateCreatorAddressError) Error() string
type EditionAlreadyMintedError ¶
type EditionAlreadyMintedError struct{}
EditionAlreadyMintedError Error: 21 “
func (EditionAlreadyMintedError) Code ¶
func (e EditionAlreadyMintedError) Code() int
func (EditionAlreadyMintedError) Error ¶
func (e EditionAlreadyMintedError) Error() string
type EditionMarker ¶
EditionMarker Struct
func (*EditionMarker) MarshalWithEncoder ¶
func (obj *EditionMarker) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*EditionMarker) UnmarshalWithDecoder ¶
func (obj *EditionMarker) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type EditionMarkerV2 ¶
EditionMarkerV2 Struct
func (*EditionMarkerV2) MarshalWithEncoder ¶
func (obj *EditionMarkerV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*EditionMarkerV2) UnmarshalWithDecoder ¶
func (obj *EditionMarkerV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type EditionMintDecimalsShouldBeZeroError ¶
type EditionMintDecimalsShouldBeZeroError struct{}
EditionMintDecimalsShouldBeZeroError Error: 24 `EditionMintDecimalsShouldBeZero`
func (EditionMintDecimalsShouldBeZeroError) Code ¶
func (e EditionMintDecimalsShouldBeZeroError) Code() int
func (EditionMintDecimalsShouldBeZeroError) Error ¶
func (e EditionMintDecimalsShouldBeZeroError) Error() string
type EditionNumberGreaterThanMaxSupplyError ¶
type EditionNumberGreaterThanMaxSupplyError struct{}
EditionNumberGreaterThanMaxSupplyError Error: 122 `Edition Number greater than max supply`
func (EditionNumberGreaterThanMaxSupplyError) Code ¶
func (e EditionNumberGreaterThanMaxSupplyError) Code() int
func (EditionNumberGreaterThanMaxSupplyError) Error ¶
func (e EditionNumberGreaterThanMaxSupplyError) Error() string
type EditionOverrideCannotBeZeroError ¶
type EditionOverrideCannotBeZeroError struct{}
EditionOverrideCannotBeZeroError Error: 97 `Edition override cannot be zero`
func (EditionOverrideCannotBeZeroError) Code ¶
func (e EditionOverrideCannotBeZeroError) Code() int
func (EditionOverrideCannotBeZeroError) Error ¶
func (e EditionOverrideCannotBeZeroError) Error() string
type EditionsMustHaveExactlyOneTokenError ¶
type EditionsMustHaveExactlyOneTokenError struct{}
EditionsMustHaveExactlyOneTokenError Error: 16 `Editions must have exactly one token`
func (EditionsMustHaveExactlyOneTokenError) Code ¶
func (e EditionsMustHaveExactlyOneTokenError) Code() int
func (EditionsMustHaveExactlyOneTokenError) Error ¶
func (e EditionsMustHaveExactlyOneTokenError) Error() string
type EscrowAuthority ¶
type EscrowAuthority struct { TokenOwner *struct{} `bin:"optional"` Creator *EscrowAuthorityCreator `bin:"optional"` Cd *EscrowAuthorityCd `bin:"optional"` TokenOwner2 *struct{} `bin:"optional"` }
EscrowAuthority Enum
func NewEscrowAuthority_Cd ¶
func NewEscrowAuthority_Cd(field0 common.PublicKey) EscrowAuthority
func NewEscrowAuthority_Creator ¶
func NewEscrowAuthority_Creator(field0 common.PublicKey) EscrowAuthority
func NewEscrowAuthority_TokenOwner ¶
func NewEscrowAuthority_TokenOwner() EscrowAuthority
func NewEscrowAuthority_TokenOwner2 ¶
func NewEscrowAuthority_TokenOwner2() EscrowAuthority
func (*EscrowAuthority) AsCd ¶
func (obj *EscrowAuthority) AsCd() EscrowAuthorityCd
func (*EscrowAuthority) AsCreator ¶
func (obj *EscrowAuthority) AsCreator() EscrowAuthorityCreator
func (*EscrowAuthority) IsCd ¶
func (obj *EscrowAuthority) IsCd() bool
func (*EscrowAuthority) IsCreator ¶
func (obj *EscrowAuthority) IsCreator() bool
func (*EscrowAuthority) IsTokenOwner ¶
func (obj *EscrowAuthority) IsTokenOwner() bool
func (*EscrowAuthority) IsTokenOwner2 ¶
func (obj *EscrowAuthority) IsTokenOwner2() bool
func (*EscrowAuthority) MarshalWithEncoder ¶
func (obj *EscrowAuthority) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*EscrowAuthority) String ¶
func (obj *EscrowAuthority) String() string
func (*EscrowAuthority) UnmarshalWithDecoder ¶
func (obj *EscrowAuthority) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type EscrowAuthorityCd ¶
func (*EscrowAuthorityCd) MarshalWithEncoder ¶
func (obj *EscrowAuthorityCd) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*EscrowAuthorityCd) UnmarshalWithDecoder ¶
func (obj *EscrowAuthorityCd) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type EscrowAuthorityCreator ¶
func (*EscrowAuthorityCreator) MarshalWithEncoder ¶
func (obj *EscrowAuthorityCreator) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*EscrowAuthorityCreator) UnmarshalWithDecoder ¶
func (obj *EscrowAuthorityCreator) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type EscrowParentHasDelegateError ¶
type EscrowParentHasDelegateError struct{}
EscrowParentHasDelegateError Error: 133 `Escrow parent cannot have a delegate`
func (EscrowParentHasDelegateError) Code ¶
func (e EscrowParentHasDelegateError) Code() int
func (EscrowParentHasDelegateError) Error ¶
func (e EscrowParentHasDelegateError) Error() string
type FeatureNotSupportedError ¶
type FeatureNotSupportedError struct{}
FeatureNotSupportedError Error: 145 `Feature not supported currently`
func (FeatureNotSupportedError) Code ¶
func (e FeatureNotSupportedError) Code() int
func (FeatureNotSupportedError) Error ¶
func (e FeatureNotSupportedError) Error() string
type FreezeDelegatedAccount ¶
type FreezeDelegatedAccount struct { // [0] = [WRITE, SIGNER] delegate `Delegate` // [1] = [WRITE] tokenAccount `Token account to freeze` // [2] = [] edition `Edition` // [3] = [] mint `Token mint` // [4] = [] tokenProgram `Token Program` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
FreezeDelegatedAccount Instruction
func NewFreezeDelegatedAccountInstruction ¶
func NewFreezeDelegatedAccountInstruction( delegate common.PublicKey, tokenAccount common.PublicKey, edition common.PublicKey, mint common.PublicKey, tokenProgram common.PublicKey, ) *FreezeDelegatedAccount
NewFreezeDelegatedAccountInstruction
Parameters:
delegate: Delegate tokenAccount: Token account to freeze edition: Edition mint: Token mint tokenProgram: Token Program
func NewFreezeDelegatedAccountInstructionBuilder ¶
func NewFreezeDelegatedAccountInstructionBuilder() *FreezeDelegatedAccount
NewFreezeDelegatedAccountInstructionBuilder creates a new `FreezeDelegatedAccount` instruction builder.
func (*FreezeDelegatedAccount) Build ¶
func (obj *FreezeDelegatedAccount) Build() *Instruction
func (*FreezeDelegatedAccount) EncodeToTree ¶
func (obj *FreezeDelegatedAccount) EncodeToTree(parent treeout.Branches)
func (*FreezeDelegatedAccount) GetDelegateAccount ¶
func (obj *FreezeDelegatedAccount) GetDelegateAccount() *common.AccountMeta
GetDelegateAccount gets the "delegate" parameter. Delegate
func (*FreezeDelegatedAccount) GetEditionAccount ¶
func (obj *FreezeDelegatedAccount) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Edition
func (*FreezeDelegatedAccount) GetMintAccount ¶
func (obj *FreezeDelegatedAccount) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Token mint
func (*FreezeDelegatedAccount) GetTokenAccountAccount ¶
func (obj *FreezeDelegatedAccount) GetTokenAccountAccount() *common.AccountMeta
GetTokenAccountAccount gets the "tokenAccount" parameter. Token account to freeze
func (*FreezeDelegatedAccount) GetTokenProgramAccount ¶
func (obj *FreezeDelegatedAccount) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token Program
func (*FreezeDelegatedAccount) MarshalWithEncoder ¶
func (obj *FreezeDelegatedAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*FreezeDelegatedAccount) SetDelegateAccount ¶
func (obj *FreezeDelegatedAccount) SetDelegateAccount(delegate common.PublicKey) *FreezeDelegatedAccount
SetDelegateAccount sets the "delegate" parameter. Delegate
func (*FreezeDelegatedAccount) SetEditionAccount ¶
func (obj *FreezeDelegatedAccount) SetEditionAccount(edition common.PublicKey) *FreezeDelegatedAccount
SetEditionAccount sets the "edition" parameter. Edition
func (*FreezeDelegatedAccount) SetMintAccount ¶
func (obj *FreezeDelegatedAccount) SetMintAccount(mint common.PublicKey) *FreezeDelegatedAccount
SetMintAccount sets the "mint" parameter. Token mint
func (*FreezeDelegatedAccount) SetProgramId ¶
func (obj *FreezeDelegatedAccount) SetProgramId(programId *common.PublicKey) *FreezeDelegatedAccount
func (*FreezeDelegatedAccount) SetTokenAccountAccount ¶
func (obj *FreezeDelegatedAccount) SetTokenAccountAccount(tokenAccount common.PublicKey) *FreezeDelegatedAccount
SetTokenAccountAccount sets the "tokenAccount" parameter. Token account to freeze
func (*FreezeDelegatedAccount) SetTokenProgramAccount ¶
func (obj *FreezeDelegatedAccount) SetTokenProgramAccount(tokenProgram common.PublicKey, multiSigners ...common.PublicKey) *FreezeDelegatedAccount
SetTokenProgramAccount sets the "tokenProgram" parameter. Token Program
func (*FreezeDelegatedAccount) UnmarshalWithDecoder ¶
func (obj *FreezeDelegatedAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*FreezeDelegatedAccount) Validate ¶
func (obj *FreezeDelegatedAccount) Validate() error
func (*FreezeDelegatedAccount) ValidateAndBuild ¶
func (obj *FreezeDelegatedAccount) 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 IncorrectOwnerError ¶
type IncorrectOwnerError struct{}
IncorrectOwnerError Error: 57 `Incorrect account owner`
func (IncorrectOwnerError) Code ¶
func (e IncorrectOwnerError) Code() int
func (IncorrectOwnerError) Error ¶
func (e IncorrectOwnerError) Error() string
type IncorrectTokenStateError ¶
type IncorrectTokenStateError struct{}
IncorrectTokenStateError Error: 164 `Incorrect token state`
func (IncorrectTokenStateError) Code ¶
func (e IncorrectTokenStateError) Code() int
func (IncorrectTokenStateError) Error ¶
func (e IncorrectTokenStateError) Error() string
type Instruction ¶
type Instruction struct { binary.BaseVariant // contains filtered or unexported fields }
func DecodeInstruction ¶
func DecodeInstruction(accounts []*common.AccountMeta, data []byte) (*Instruction, error)
func (*Instruction) Accounts ¶
func (obj *Instruction) Accounts() (out []*common.AccountMeta)
func (*Instruction) Data ¶
func (obj *Instruction) Data() ([]byte, error)
func (*Instruction) EncodeToTree ¶
func (obj *Instruction) EncodeToTree(parent treeout.Branches)
func (*Instruction) MarshalWithEncoder ¶
func (obj *Instruction) MarshalWithEncoder(encoder *binary.Encoder) error
func (*Instruction) ProgramID ¶
func (obj *Instruction) ProgramID() common.PublicKey
func (*Instruction) TextEncode ¶
func (*Instruction) UnmarshalWithDecoder ¶
func (obj *Instruction) UnmarshalWithDecoder(decoder *binary.Decoder) error
type InstructionNotSupportedError ¶
type InstructionNotSupportedError struct{}
InstructionNotSupportedError Error: 153 `Instruction not supported for ProgrammableNonFungible assets`
func (InstructionNotSupportedError) Code ¶
func (e InstructionNotSupportedError) Code() int
func (InstructionNotSupportedError) Error ¶
func (e InstructionNotSupportedError) Error() string
type InstructionPackError ¶
type InstructionPackError struct{}
InstructionPackError Error: 1 “
func (InstructionPackError) Code ¶
func (e InstructionPackError) Code() int
func (InstructionPackError) Error ¶
func (e InstructionPackError) Error() string
type InstructionUnpackError ¶
type InstructionUnpackError struct{}
InstructionUnpackError Error: 0 “
func (InstructionUnpackError) Code ¶
func (e InstructionUnpackError) Code() int
func (InstructionUnpackError) Error ¶
func (e InstructionUnpackError) Error() string
type InsufficientTokenBalanceError ¶
type InsufficientTokenBalanceError struct{}
InsufficientTokenBalanceError Error: 184 `Token account does not have enough tokens`
func (InsufficientTokenBalanceError) Code ¶
func (e InsufficientTokenBalanceError) Code() int
func (InsufficientTokenBalanceError) Error ¶
func (e InsufficientTokenBalanceError) Error() string
type InsufficientTokensError ¶
type InsufficientTokensError struct{}
InsufficientTokensError Error: 128 `Insufficient tokens for transfer`
func (InsufficientTokensError) Code ¶
func (e InsufficientTokensError) Code() int
func (InsufficientTokensError) Error ¶
func (e InsufficientTokensError) Error() string
type InvalidAmountError ¶
type InvalidAmountError struct{}
InvalidAmountError Error: 174 `Invalid token amount for this operation or token standard`
func (InvalidAmountError) Code ¶
func (e InvalidAmountError) Code() int
func (InvalidAmountError) Error ¶
func (e InvalidAmountError) Error() string
type InvalidAssociatedTokenAccountProgramError ¶
type InvalidAssociatedTokenAccountProgramError struct{}
InvalidAssociatedTokenAccountProgramError Error: 180 `Invalid Associated Token Account Program`
func (InvalidAssociatedTokenAccountProgramError) Code ¶
func (e InvalidAssociatedTokenAccountProgramError) Code() int
func (InvalidAssociatedTokenAccountProgramError) Error ¶
func (e InvalidAssociatedTokenAccountProgramError) Error() string
type InvalidAuthorityTypeError ¶
type InvalidAuthorityTypeError struct{}
InvalidAuthorityTypeError Error: 158 `Invalid authority type`
func (InvalidAuthorityTypeError) Code ¶
func (e InvalidAuthorityTypeError) Code() int
func (InvalidAuthorityTypeError) Error ¶
func (e InvalidAuthorityTypeError) Error() string
type InvalidAuthorizationRulesError ¶
type InvalidAuthorizationRulesError struct{}
InvalidAuthorizationRulesError Error: 137 `Invalid authorization rules account`
func (InvalidAuthorizationRulesError) Code ¶
func (e InvalidAuthorizationRulesError) Code() int
func (InvalidAuthorizationRulesError) Error ¶
func (e InvalidAuthorizationRulesError) Error() string
type InvalidBasisPointsError ¶
type InvalidBasisPointsError struct{}
InvalidBasisPointsError Error: 41 `Basis points cannot be more than 10000`
func (InvalidBasisPointsError) Code ¶
func (e InvalidBasisPointsError) Code() int
func (InvalidBasisPointsError) Error ¶
func (e InvalidBasisPointsError) Error() string
type InvalidBubblegumSignerError ¶
type InvalidBubblegumSignerError struct{}
InvalidBubblegumSignerError Error: 132 `Invalid bubblegum signer`
func (InvalidBubblegumSignerError) Code ¶
func (e InvalidBubblegumSignerError) Code() int
func (InvalidBubblegumSignerError) Error ¶
func (e InvalidBubblegumSignerError) Error() string
type InvalidCloseAuthorityError ¶
type InvalidCloseAuthorityError struct{}
InvalidCloseAuthorityError Error: 188 `The close authority needs to be revoked by the Utility Delegate`
func (InvalidCloseAuthorityError) Code ¶
func (e InvalidCloseAuthorityError) Code() int
func (InvalidCloseAuthorityError) Error ¶
func (e InvalidCloseAuthorityError) Error() string
type InvalidCollectionAuthorityRecordError ¶
type InvalidCollectionAuthorityRecordError struct{}
InvalidCollectionAuthorityRecordError Error: 90 “
func (InvalidCollectionAuthorityRecordError) Code ¶
func (e InvalidCollectionAuthorityRecordError) Code() int
func (InvalidCollectionAuthorityRecordError) Error ¶
func (e InvalidCollectionAuthorityRecordError) Error() string
type InvalidCollectionSizeChangeError ¶
type InvalidCollectionSizeChangeError struct{}
InvalidCollectionSizeChangeError Error: 131 `Invalid collection size change`
func (InvalidCollectionSizeChangeError) Code ¶
func (e InvalidCollectionSizeChangeError) Code() int
func (InvalidCollectionSizeChangeError) Error ¶
func (e InvalidCollectionSizeChangeError) Error() string
type InvalidCollectionUpdateAuthorityError ¶
type InvalidCollectionUpdateAuthorityError struct{}
InvalidCollectionUpdateAuthorityError Error: 81 `Collection Update Authority is invalid`
func (InvalidCollectionUpdateAuthorityError) Code ¶
func (e InvalidCollectionUpdateAuthorityError) Code() int
func (InvalidCollectionUpdateAuthorityError) Error ¶
func (e InvalidCollectionUpdateAuthorityError) Error() string
type InvalidDelegateArgsError ¶
type InvalidDelegateArgsError struct{}
InvalidDelegateArgsError Error: 169 `Invalid delegate args`
func (InvalidDelegateArgsError) Code ¶
func (e InvalidDelegateArgsError) Code() int
func (InvalidDelegateArgsError) Error ¶
func (e InvalidDelegateArgsError) Error() string
type InvalidDelegateError ¶
type InvalidDelegateError struct{}
InvalidDelegateError Error: 92 `All tokens in this account have not been delegated to this user.`
func (InvalidDelegateError) Code ¶
func (e InvalidDelegateError) Code() int
func (InvalidDelegateError) Error ¶
func (e InvalidDelegateError) Error() string
type InvalidDelegateRoleError ¶
type InvalidDelegateRoleError struct{}
InvalidDelegateRoleError Error: 165 `Invalid delegate role`
func (InvalidDelegateRoleError) Code ¶
func (e InvalidDelegateRoleError) Code() int
func (InvalidDelegateRoleError) Error ¶
func (e InvalidDelegateRoleError) Error() string
type InvalidDelegateRoleForTransferError ¶
type InvalidDelegateRoleForTransferError struct{}
InvalidDelegateRoleForTransferError Error: 151 `Invalid delegate role for transfer`
func (InvalidDelegateRoleForTransferError) Code ¶
func (e InvalidDelegateRoleForTransferError) Code() int
func (InvalidDelegateRoleForTransferError) Error ¶
func (e InvalidDelegateRoleForTransferError) Error() string
type InvalidEditionIndexError ¶
type InvalidEditionIndexError struct{}
InvalidEditionIndexError Error: 71 `You tried to insert one edition too many into an edition mark pda`
func (InvalidEditionIndexError) Code ¶
func (e InvalidEditionIndexError) Code() int
func (InvalidEditionIndexError) Error ¶
func (e InvalidEditionIndexError) Error() string
type InvalidEditionKeyError ¶
type InvalidEditionKeyError struct{}
InvalidEditionKeyError Error: 6 `Edition's key must match seed of ['metadata', program id, name, 'edition'] provided`
func (InvalidEditionKeyError) Code ¶
func (e InvalidEditionKeyError) Code() int
func (InvalidEditionKeyError) Error ¶
func (e InvalidEditionKeyError) Error() string
type InvalidEditionMarkerError ¶
type InvalidEditionMarkerError struct{}
InvalidEditionMarkerError Error: 119 `Invalid Edition Marker`
func (InvalidEditionMarkerError) Code ¶
func (e InvalidEditionMarkerError) Code() int
func (InvalidEditionMarkerError) Error ¶
func (e InvalidEditionMarkerError) Error() string
type InvalidEscrowBumpSeedError ¶
type InvalidEscrowBumpSeedError struct{}
InvalidEscrowBumpSeedError Error: 124 `Invalid Escrow Account Bump Seed`
func (InvalidEscrowBumpSeedError) Code ¶
func (e InvalidEscrowBumpSeedError) Code() int
func (InvalidEscrowBumpSeedError) Error ¶
func (e InvalidEscrowBumpSeedError) Error() string
type InvalidFeeAccountError ¶
type InvalidFeeAccountError struct{}
InvalidFeeAccountError Error: 191 “
func (InvalidFeeAccountError) Code ¶
func (e InvalidFeeAccountError) Code() int
func (InvalidFeeAccountError) Error ¶
func (e InvalidFeeAccountError) Error() string
type InvalidFreezeAuthorityError ¶
type InvalidFreezeAuthorityError struct{}
InvalidFreezeAuthorityError Error: 91 `Metadata does not match the freeze authority on the mint`
func (InvalidFreezeAuthorityError) Code ¶
func (e InvalidFreezeAuthorityError) Code() int
func (InvalidFreezeAuthorityError) Error ¶
func (e InvalidFreezeAuthorityError) Error() string
type InvalidInstructionError ¶
type InvalidInstructionError struct{}
InvalidInstructionError Error: 189 `Invalid or removed instruction`
func (InvalidInstructionError) Code ¶
func (e InvalidInstructionError) Code() int
func (InvalidInstructionError) Error ¶
func (e InvalidInstructionError) Error() string
type InvalidInstructionsSysvarError ¶
type InvalidInstructionsSysvarError struct{}
InvalidInstructionsSysvarError Error: 181 `Invalid InstructionsSysvar`
func (InvalidInstructionsSysvarError) Code ¶
func (e InvalidInstructionsSysvarError) Code() int
func (InvalidInstructionsSysvarError) Error ¶
func (e InvalidInstructionsSysvarError) Error() string
type InvalidLockedTransferAddressError ¶
type InvalidLockedTransferAddressError struct{}
InvalidLockedTransferAddressError Error: 171 `Invalid destination address for locked transfer`
func (InvalidLockedTransferAddressError) Code ¶
func (e InvalidLockedTransferAddressError) Code() int
func (InvalidLockedTransferAddressError) Error ¶
func (e InvalidLockedTransferAddressError) Error() string
type InvalidMasterEditionAccountLengthError ¶
type InvalidMasterEditionAccountLengthError struct{}
InvalidMasterEditionAccountLengthError Error: 163 `Master edition account has an invalid length`
func (InvalidMasterEditionAccountLengthError) Code ¶
func (e InvalidMasterEditionAccountLengthError) Code() int
func (InvalidMasterEditionAccountLengthError) Error ¶
func (e InvalidMasterEditionAccountLengthError) Error() string
type InvalidMasterEditionError ¶
type InvalidMasterEditionError struct{}
InvalidMasterEditionError Error: 117 `Invalid Master Edition`
func (InvalidMasterEditionError) Code ¶
func (e InvalidMasterEditionError) Code() int
func (InvalidMasterEditionError) Error ¶
func (e InvalidMasterEditionError) Error() string
type InvalidMetadataFlagsError ¶
type InvalidMetadataFlagsError struct{}
InvalidMetadataFlagsError Error: 192 “
func (InvalidMetadataFlagsError) Code ¶
func (e InvalidMetadataFlagsError) Code() int
func (InvalidMetadataFlagsError) Error ¶
func (e InvalidMetadataFlagsError) Error() string
type InvalidMetadataKeyError ¶
type InvalidMetadataKeyError struct{}
InvalidMetadataKeyError Error: 5 ` Metadata's key must match seed of ['metadata', program id, mint] provided`
func (InvalidMetadataKeyError) Code ¶
func (e InvalidMetadataKeyError) Code() int
func (InvalidMetadataKeyError) Error ¶
func (e InvalidMetadataKeyError) Error() string
type InvalidMetadataPointerError ¶
type InvalidMetadataPointerError struct{}
InvalidMetadataPointerError Error: 196 `Invalid metadata pointer`
func (InvalidMetadataPointerError) Code ¶
func (e InvalidMetadataPointerError) Code() int
func (InvalidMetadataPointerError) Error ¶
func (e InvalidMetadataPointerError) Error() string
type InvalidMintAuthorityError ¶
type InvalidMintAuthorityError struct{}
InvalidMintAuthorityError Error: 10 `Mint authority provided does not match the authority on the mint`
func (InvalidMintAuthorityError) Code ¶
func (e InvalidMintAuthorityError) Code() int
func (InvalidMintAuthorityError) Error ¶
func (e InvalidMintAuthorityError) Error() string
type InvalidMintCloseAuthorityError ¶
type InvalidMintCloseAuthorityError struct{}
InvalidMintCloseAuthorityError Error: 195 `Invalid mint close authority`
func (InvalidMintCloseAuthorityError) Code ¶
func (e InvalidMintCloseAuthorityError) Code() int
func (InvalidMintCloseAuthorityError) Error ¶
func (e InvalidMintCloseAuthorityError) Error() string
type InvalidMintExtensionTypeError ¶
type InvalidMintExtensionTypeError struct{}
InvalidMintExtensionTypeError Error: 194 `Invalid mint extension type`
func (InvalidMintExtensionTypeError) Code ¶
func (e InvalidMintExtensionTypeError) Code() int
func (InvalidMintExtensionTypeError) Error ¶
func (e InvalidMintExtensionTypeError) Error() string
type InvalidMintForTokenStandardError ¶
type InvalidMintForTokenStandardError struct{}
InvalidMintForTokenStandardError Error: 136 `Invalid mint account for specified token standard`
func (InvalidMintForTokenStandardError) Code ¶
func (e InvalidMintForTokenStandardError) Code() int
func (InvalidMintForTokenStandardError) Error ¶
func (e InvalidMintForTokenStandardError) Error() string
type InvalidOperationError ¶
type InvalidOperationError struct{}
InvalidOperationError Error: 67 `Invalid operation`
func (InvalidOperationError) Code ¶
func (e InvalidOperationError) Code() int
func (InvalidOperationError) Error ¶
func (e InvalidOperationError) Error() string
type InvalidOwnerError ¶
type InvalidOwnerError struct{}
InvalidOwnerError Error: 68 `Invalid Owner`
func (InvalidOwnerError) Code ¶
func (e InvalidOwnerError) Code() int
func (InvalidOwnerError) Error ¶
func (e InvalidOwnerError) Error() string
type InvalidParentAccountsError ¶
type InvalidParentAccountsError struct{}
InvalidParentAccountsError Error: 182 `Invalid or Unneeded parent accounts`
func (InvalidParentAccountsError) Code ¶
func (e InvalidParentAccountsError) Code() int
func (InvalidParentAccountsError) Error ¶
func (e InvalidParentAccountsError) Error() string
type InvalidPrintEditionError ¶
type InvalidPrintEditionError struct{}
InvalidPrintEditionError Error: 118 `Invalid Print Edition`
func (InvalidPrintEditionError) Code ¶
func (e InvalidPrintEditionError) Code() int
func (InvalidPrintEditionError) Error ¶
func (e InvalidPrintEditionError) Error() string
type InvalidProgrammableConfigError ¶
type InvalidProgrammableConfigError struct{}
InvalidProgrammableConfigError Error: 140 `Invalid programmable configuration`
func (InvalidProgrammableConfigError) Code ¶
func (e InvalidProgrammableConfigError) Code() int
func (InvalidProgrammableConfigError) Error ¶
func (e InvalidProgrammableConfigError) Error() string
type InvalidSystemProgramError ¶
type InvalidSystemProgramError struct{}
InvalidSystemProgramError Error: 126 `Invalid System Program`
func (InvalidSystemProgramError) Code ¶
func (e InvalidSystemProgramError) Code() int
func (InvalidSystemProgramError) Error ¶
func (e InvalidSystemProgramError) Error() string
type InvalidSystemWalletError ¶
type InvalidSystemWalletError struct{}
InvalidSystemWalletError Error: 146 `Invalid system wallet`
func (InvalidSystemWalletError) Code ¶
func (e InvalidSystemWalletError) Code() int
func (InvalidSystemWalletError) Error ¶
func (e InvalidSystemWalletError) Error() string
type InvalidTokenExtensionTypeError ¶
type InvalidTokenExtensionTypeError struct{}
InvalidTokenExtensionTypeError Error: 197 `Invalid token extension type`
func (InvalidTokenExtensionTypeError) Code ¶
func (e InvalidTokenExtensionTypeError) Code() int
func (InvalidTokenExtensionTypeError) Error ¶
func (e InvalidTokenExtensionTypeError) Error() string
type InvalidTokenProgramError ¶
type InvalidTokenProgramError struct{}
InvalidTokenProgramError Error: 62 `Invalid token program`
func (InvalidTokenProgramError) Code ¶
func (e InvalidTokenProgramError) Code() int
func (InvalidTokenProgramError) Error ¶
func (e InvalidTokenProgramError) Error() string
type InvalidTokenRecordError ¶
type InvalidTokenRecordError struct{}
InvalidTokenRecordError Error: 187 `Invalid token record account`
func (InvalidTokenRecordError) Code ¶
func (e InvalidTokenRecordError) Code() int
func (InvalidTokenRecordError) Error ¶
func (e InvalidTokenRecordError) Error() string
type InvalidTokenStandardError ¶
type InvalidTokenStandardError struct{}
InvalidTokenStandardError Error: 135 `Invalid token standard`
func (InvalidTokenStandardError) Code ¶
func (e InvalidTokenStandardError) Code() int
func (InvalidTokenStandardError) Error ¶
func (e InvalidTokenStandardError) Error() string
type InvalidTransferAuthorityError ¶
type InvalidTransferAuthorityError struct{}
InvalidTransferAuthorityError Error: 152 `Invalid transfer authority`
func (InvalidTransferAuthorityError) Code ¶
func (e InvalidTransferAuthorityError) Code() int
func (InvalidTransferAuthorityError) Error ¶
func (e InvalidTransferAuthorityError) Error() string
type InvalidUpdateArgsError ¶
type InvalidUpdateArgsError struct{}
InvalidUpdateArgsError Error: 183 `Authority cannot apply all update args`
func (InvalidUpdateArgsError) Code ¶
func (e InvalidUpdateArgsError) Code() int
func (InvalidUpdateArgsError) Error ¶
func (e InvalidUpdateArgsError) Error() string
type InvalidUseAuthorityRecordError ¶
type InvalidUseAuthorityRecordError struct{}
InvalidUseAuthorityRecordError Error: 89 `This Use Authority Record is invalid.`
func (InvalidUseAuthorityRecordError) Code ¶
func (e InvalidUseAuthorityRecordError) Code() int
func (InvalidUseAuthorityRecordError) Error ¶
func (e InvalidUseAuthorityRecordError) Error() string
type InvalidUseMethodError ¶
type InvalidUseMethodError struct{}
InvalidUseMethodError Error: 77 `This use method is invalid`
func (InvalidUseMethodError) Code ¶
func (e InvalidUseMethodError) Code() int
func (InvalidUseMethodError) Error ¶
func (e InvalidUseMethodError) Error() string
type InvalidUserError ¶
type InvalidUserError struct{}
InvalidUserError Error: 98 `Invalid User`
func (InvalidUserError) Code ¶
func (e InvalidUserError) Code() int
func (InvalidUserError) Error ¶
func (e InvalidUserError) Error() string
type IsMutableCanOnlyBeFlippedToFalseError ¶
type IsMutableCanOnlyBeFlippedToFalseError struct{}
IsMutableCanOnlyBeFlippedToFalseError Error: 73 `Is Mutable can only be flipped to false`
func (IsMutableCanOnlyBeFlippedToFalseError) Code ¶
func (e IsMutableCanOnlyBeFlippedToFalseError) Code() int
func (IsMutableCanOnlyBeFlippedToFalseError) Error ¶
func (e IsMutableCanOnlyBeFlippedToFalseError) Error() string
type KeyMismatchError ¶
type KeyMismatchError struct{}
KeyMismatchError Error: 154 `Public key does not match expected value`
func (KeyMismatchError) Code ¶
func (e KeyMismatchError) Code() int
func (KeyMismatchError) Error ¶
func (e KeyMismatchError) Error() string
type Lock ¶
type Lock struct { LockArgs *LockArgs // [0] = [SIGNER] authority `Delegate or freeze authority` // [1] = [] tokenOwner `Token owner account` // [2] = [WRITE] token `Token account` // [3] = [] mint `Mint account` // [4] = [WRITE] metadata `Metadata account` // [5] = [] edition `Edition account` // [6] = [WRITE] tokenRecord `Token record account` // [7] = [WRITE, SIGNER] payer `Payer` // [8] = [] systemProgram `System program` // [9] = [] sysvarInstructions `System program` // [10] = [] splTokenProgram `SPL Token Program` // [11] = [] authorizationRulesProgram `Token Authorization Rules Program` // [12] = [] authorizationRules `Token Authorization Rules account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Lock Instruction
func NewLockInstruction ¶
func NewLockInstruction( lockArgs LockArgs, authority common.PublicKey, tokenOwner common.PublicKey, token common.PublicKey, mint common.PublicKey, metadata common.PublicKey, edition common.PublicKey, tokenRecord common.PublicKey, payer common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, splTokenProgram common.PublicKey, authorizationRulesProgram common.PublicKey, authorizationRules common.PublicKey, ) *Lock
NewLockInstruction
Parameters:
lockArgs: authority: Delegate or freeze authority tokenOwner: Token owner account token: Token account mint: Mint account metadata: Metadata account edition: Edition account tokenRecord: Token record account payer: Payer systemProgram: System program sysvarInstructions: System program splTokenProgram: SPL Token Program authorizationRulesProgram: Token Authorization Rules Program authorizationRules: Token Authorization Rules account
func NewLockInstructionBuilder ¶
func NewLockInstructionBuilder() *Lock
NewLockInstructionBuilder creates a new `Lock` instruction builder.
func (*Lock) Build ¶
func (obj *Lock) Build() *Instruction
func (*Lock) EncodeToTree ¶
func (*Lock) GetAuthorityAccount ¶
func (obj *Lock) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Delegate or freeze authority
func (*Lock) GetAuthorizationRulesAccount ¶
func (obj *Lock) GetAuthorizationRulesAccount() *common.AccountMeta
GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account
func (*Lock) GetAuthorizationRulesProgramAccount ¶
func (obj *Lock) GetAuthorizationRulesProgramAccount() *common.AccountMeta
GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Lock) GetEditionAccount ¶
func (obj *Lock) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Edition account
func (*Lock) GetMetadataAccount ¶
func (obj *Lock) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*Lock) GetMintAccount ¶
func (obj *Lock) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint account
func (*Lock) GetPayerAccount ¶
func (obj *Lock) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*Lock) GetSplTokenProgramAccount ¶
func (obj *Lock) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program
func (*Lock) GetSystemProgramAccount ¶
func (obj *Lock) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*Lock) GetSysvarInstructionsAccount ¶
func (obj *Lock) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. System program
func (*Lock) GetTokenAccount ¶
func (obj *Lock) GetTokenAccount() *common.AccountMeta
GetTokenAccount gets the "token" parameter. Token account
func (*Lock) GetTokenOwnerAccount ¶
func (obj *Lock) GetTokenOwnerAccount() *common.AccountMeta
GetTokenOwnerAccount gets the "tokenOwner" parameter. Token owner account
func (*Lock) GetTokenRecordAccount ¶
func (obj *Lock) GetTokenRecordAccount() *common.AccountMeta
GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account
func (*Lock) MarshalWithEncoder ¶
func (*Lock) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Delegate or freeze authority
func (*Lock) SetAuthorizationRulesAccount ¶
func (obj *Lock) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Lock
SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account
func (*Lock) SetAuthorizationRulesProgramAccount ¶
func (obj *Lock) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Lock
SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Lock) SetEditionAccount ¶
SetEditionAccount sets the "edition" parameter. Edition account
func (*Lock) SetLockArgs ¶
SetLockArgs sets the "lockArgs" parameter.
func (*Lock) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*Lock) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint account
func (*Lock) SetPayerAccount ¶
SetPayerAccount sets the "payer" parameter. Payer
func (*Lock) SetSplTokenProgramAccount ¶
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program
func (*Lock) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*Lock) SetSysvarInstructionsAccount ¶
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. System program
func (*Lock) SetTokenAccount ¶
SetTokenAccount sets the "token" parameter. Token account
func (*Lock) SetTokenOwnerAccount ¶
SetTokenOwnerAccount sets the "tokenOwner" parameter. Token owner account
func (*Lock) SetTokenRecordAccount ¶
SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account
func (*Lock) UnmarshalWithDecoder ¶
func (*Lock) ValidateAndBuild ¶
func (obj *Lock) 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 LockArgs ¶
type LockArgs struct {
V1 *LockArgsV1 `bin:"optional"`
}
LockArgs Enum
func NewLockArgs_V1 ¶
func NewLockArgs_V1(authorizationData *AuthorizationData) LockArgs
func (*LockArgs) AsV1 ¶
func (obj *LockArgs) AsV1() LockArgsV1
func (*LockArgs) MarshalWithEncoder ¶
type LockArgsV1 ¶
type LockArgsV1 struct {
AuthorizationData *AuthorizationData `bin:"optional"`
}
func (*LockArgsV1) MarshalWithEncoder ¶
func (obj *LockArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*LockArgsV1) UnmarshalWithDecoder ¶
func (obj *LockArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type LockedTokenError ¶
type LockedTokenError struct{}
LockedTokenError Error: 155 `Token is locked`
func (LockedTokenError) Code ¶
func (e LockedTokenError) Code() int
func (LockedTokenError) Error ¶
func (e LockedTokenError) Error() string
type MasterEditionHasPrintsError ¶
type MasterEditionHasPrintsError struct{}
MasterEditionHasPrintsError Error: 110 `This Master Edition has existing prints`
func (MasterEditionHasPrintsError) Code ¶
func (e MasterEditionHasPrintsError) Code() int
func (MasterEditionHasPrintsError) Error ¶
func (e MasterEditionHasPrintsError) Error() string
type MasterEditionV1 ¶
type MasterEditionV1 struct { Key Key Supply uint64 MaxSupply *uint64 `bin:"optional"` PrintingMint common.PublicKey OneTimePrintingAuthorizationMint common.PublicKey }
MasterEditionV1 Struct
func (*MasterEditionV1) MarshalWithEncoder ¶
func (obj *MasterEditionV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*MasterEditionV1) UnmarshalWithDecoder ¶
func (obj *MasterEditionV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type MasterEditionV2 ¶
MasterEditionV2 Struct
func (*MasterEditionV2) MarshalWithEncoder ¶
func (obj *MasterEditionV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*MasterEditionV2) UnmarshalWithDecoder ¶
func (obj *MasterEditionV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type MasterRecordMismatchError ¶
type MasterRecordMismatchError struct{}
MasterRecordMismatchError Error: 19 “
func (MasterRecordMismatchError) Code ¶
func (e MasterRecordMismatchError) Code() int
func (MasterRecordMismatchError) Error ¶
func (e MasterRecordMismatchError) Error() string
type MaxEditionsMintedAlreadyError ¶
type MaxEditionsMintedAlreadyError struct{}
MaxEditionsMintedAlreadyError Error: 17 “
func (MaxEditionsMintedAlreadyError) Code ¶
func (e MaxEditionsMintedAlreadyError) Code() int
func (MaxEditionsMintedAlreadyError) Error ¶
func (e MaxEditionsMintedAlreadyError) Error() string
type Metadata ¶
type Metadata struct { Key Key UpdateAuthority common.PublicKey Mint common.PublicKey Data Data PrimarySaleHappened bool IsMutable bool EditionNonce *uint8 `bin:"optional"` TokenStandard *TokenStandard `bin:"optional"` Collection *Collection `bin:"optional"` Uses *Uses `bin:"optional"` CollectionDetails *CollectionDetails `bin:"optional"` ProgrammableConfig *ProgrammableConfig `bin:"optional"` }
Metadata Struct
func (*Metadata) MarshalWithEncoder ¶
type MetadataDelegateRecord ¶
type MetadataDelegateRecord struct { Key Key Bump uint8 Mint common.PublicKey Delegate common.PublicKey UpdateAuthority common.PublicKey }
MetadataDelegateRecord Struct
func (*MetadataDelegateRecord) MarshalWithEncoder ¶
func (obj *MetadataDelegateRecord) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*MetadataDelegateRecord) UnmarshalWithDecoder ¶
func (obj *MetadataDelegateRecord) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type MetadataDelegateRole ¶
MetadataDelegateRole Enum
const ( MetadataDelegateRoleAuthorityItem MetadataDelegateRole = iota MetadataDelegateRoleCollection MetadataDelegateRoleUse MetadataDelegateRoleData MetadataDelegateRoleProgrammableConfig MetadataDelegateRoleDataItem MetadataDelegateRoleCollectionItem MetadataDelegateRoleProgrammableConfigItem )
func (MetadataDelegateRole) String ¶
func (value MetadataDelegateRole) String() string
type Migrate ¶
type Migrate struct { // [0] = [WRITE] metadata `Metadata account` // [1] = [WRITE] edition `Edition account` // [2] = [WRITE] token `Token account` // [3] = [] tokenOwner `Token account owner` // [4] = [] mint `Mint account` // [5] = [WRITE, SIGNER] payer `Payer` // [6] = [SIGNER] authority `Update authority` // [7] = [] collectionMetadata `Collection metadata account` // [8] = [] delegateRecord `Delegate record account` // [9] = [WRITE] tokenRecord `Token record account` // [10] = [] systemProgram `System program` // [11] = [] sysvarInstructions `Instruction sysvar account` // [12] = [] splTokenProgram `SPL Token Program` // [13] = [] authorizationRulesProgram `Token Authorization Rules Program` // [14] = [] authorizationRules `Token Authorization Rules account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Migrate Instruction
func NewMigrateInstruction ¶
func NewMigrateInstruction( metadata common.PublicKey, edition common.PublicKey, token common.PublicKey, tokenOwner common.PublicKey, mint common.PublicKey, payer common.PublicKey, authority common.PublicKey, collectionMetadata common.PublicKey, delegateRecord common.PublicKey, tokenRecord common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, splTokenProgram common.PublicKey, authorizationRulesProgram common.PublicKey, authorizationRules common.PublicKey, ) *Migrate
NewMigrateInstruction
Parameters:
metadata: Metadata account edition: Edition account token: Token account tokenOwner: Token account owner mint: Mint account payer: Payer authority: Update authority collectionMetadata: Collection metadata account delegateRecord: Delegate record account tokenRecord: Token record account systemProgram: System program sysvarInstructions: Instruction sysvar account splTokenProgram: SPL Token Program authorizationRulesProgram: Token Authorization Rules Program authorizationRules: Token Authorization Rules account
func NewMigrateInstructionBuilder ¶
func NewMigrateInstructionBuilder() *Migrate
NewMigrateInstructionBuilder creates a new `Migrate` instruction builder.
func (*Migrate) Build ¶
func (obj *Migrate) Build() *Instruction
func (*Migrate) EncodeToTree ¶
func (*Migrate) GetAuthorityAccount ¶
func (obj *Migrate) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Update authority
func (*Migrate) GetAuthorizationRulesAccount ¶
func (obj *Migrate) GetAuthorizationRulesAccount() *common.AccountMeta
GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account
func (*Migrate) GetAuthorizationRulesProgramAccount ¶
func (obj *Migrate) GetAuthorizationRulesProgramAccount() *common.AccountMeta
GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Migrate) GetCollectionMetadataAccount ¶
func (obj *Migrate) GetCollectionMetadataAccount() *common.AccountMeta
GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Collection metadata account
func (*Migrate) GetDelegateRecordAccount ¶
func (obj *Migrate) GetDelegateRecordAccount() *common.AccountMeta
GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record account
func (*Migrate) GetEditionAccount ¶
func (obj *Migrate) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Edition account
func (*Migrate) GetMetadataAccount ¶
func (obj *Migrate) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*Migrate) GetMintAccount ¶
func (obj *Migrate) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint account
func (*Migrate) GetPayerAccount ¶
func (obj *Migrate) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*Migrate) GetSplTokenProgramAccount ¶
func (obj *Migrate) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program
func (*Migrate) GetSystemProgramAccount ¶
func (obj *Migrate) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*Migrate) GetSysvarInstructionsAccount ¶
func (obj *Migrate) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instruction sysvar account
func (*Migrate) GetTokenAccount ¶
func (obj *Migrate) GetTokenAccount() *common.AccountMeta
GetTokenAccount gets the "token" parameter. Token account
func (*Migrate) GetTokenOwnerAccount ¶
func (obj *Migrate) GetTokenOwnerAccount() *common.AccountMeta
GetTokenOwnerAccount gets the "tokenOwner" parameter. Token account owner
func (*Migrate) GetTokenRecordAccount ¶
func (obj *Migrate) GetTokenRecordAccount() *common.AccountMeta
GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account
func (*Migrate) MarshalWithEncoder ¶
func (*Migrate) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Update authority
func (*Migrate) SetAuthorizationRulesAccount ¶
func (obj *Migrate) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Migrate
SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account
func (*Migrate) SetAuthorizationRulesProgramAccount ¶
func (obj *Migrate) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Migrate
SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Migrate) SetCollectionMetadataAccount ¶
SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Collection metadata account
func (*Migrate) SetDelegateRecordAccount ¶
SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record account
func (*Migrate) SetEditionAccount ¶
SetEditionAccount sets the "edition" parameter. Edition account
func (*Migrate) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*Migrate) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint account
func (*Migrate) SetPayerAccount ¶
SetPayerAccount sets the "payer" parameter. Payer
func (*Migrate) SetProgramId ¶
func (*Migrate) SetSplTokenProgramAccount ¶
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program
func (*Migrate) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*Migrate) SetSysvarInstructionsAccount ¶
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instruction sysvar account
func (*Migrate) SetTokenAccount ¶
SetTokenAccount sets the "token" parameter. Token account
func (*Migrate) SetTokenOwnerAccount ¶
SetTokenOwnerAccount sets the "tokenOwner" parameter. Token account owner
func (*Migrate) SetTokenRecordAccount ¶
SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account
func (*Migrate) UnmarshalWithDecoder ¶
func (*Migrate) ValidateAndBuild ¶
func (obj *Migrate) 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 MigrationType ¶
MigrationType Enum
const ( MigrationTypeCollectionV1 MigrationType = iota MigrationTypeProgrammableV1 )
func (MigrationType) String ¶
func (value MigrationType) String() string
type Mint ¶
type Mint struct { MintArgs *MintArgs // [0] = [WRITE] token `Token or Associated Token account` // [1] = [] tokenOwner `Owner of the token account` // [2] = [] metadata `Metadata account (pda of ['metadata', program id, mint id])` // [3] = [WRITE] masterEdition `Master Edition account` // [4] = [WRITE] tokenRecord `Token record account` // [5] = [WRITE] mint `Mint of token asset` // [6] = [SIGNER] authority `(Mint or Update) authority` // [7] = [] delegateRecord `Metadata delegate record` // [8] = [WRITE, SIGNER] payer `Payer` // [9] = [] systemProgram `System program` // [10] = [] sysvarInstructions `Instructions sysvar account` // [11] = [] splTokenProgram `SPL Token program` // [12] = [] splAtaProgram `SPL Associated Token Account program` // [13] = [] authorizationRulesProgram `Token Authorization Rules program` // [14] = [] authorizationRules `Token Authorization Rules account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Mint Instruction
func NewMintInstruction ¶
func NewMintInstruction( mintArgs MintArgs, token common.PublicKey, tokenOwner common.PublicKey, metadata common.PublicKey, masterEdition common.PublicKey, tokenRecord common.PublicKey, mint common.PublicKey, authority common.PublicKey, delegateRecord common.PublicKey, payer common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, splTokenProgram common.PublicKey, splAtaProgram common.PublicKey, authorizationRulesProgram common.PublicKey, authorizationRules common.PublicKey, ) *Mint
NewMintInstruction
Parameters:
mintArgs: token: Token or Associated Token account tokenOwner: Owner of the token account metadata: Metadata account (pda of ['metadata', program id, mint id]) masterEdition: Master Edition account tokenRecord: Token record account mint: Mint of token asset authority: (Mint or Update) authority delegateRecord: Metadata delegate record payer: Payer systemProgram: System program sysvarInstructions: Instructions sysvar account splTokenProgram: SPL Token program splAtaProgram: SPL Associated Token Account program authorizationRulesProgram: Token Authorization Rules program authorizationRules: Token Authorization Rules account
func NewMintInstructionBuilder ¶
func NewMintInstructionBuilder() *Mint
NewMintInstructionBuilder creates a new `Mint` instruction builder.
func (*Mint) Build ¶
func (obj *Mint) Build() *Instruction
func (*Mint) EncodeToTree ¶
func (*Mint) GetAuthorityAccount ¶
func (obj *Mint) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. (Mint or Update) authority
func (*Mint) GetAuthorizationRulesAccount ¶
func (obj *Mint) GetAuthorizationRulesAccount() *common.AccountMeta
GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account
func (*Mint) GetAuthorizationRulesProgramAccount ¶
func (obj *Mint) GetAuthorizationRulesProgramAccount() *common.AccountMeta
GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules program
func (*Mint) GetDelegateRecordAccount ¶
func (obj *Mint) GetDelegateRecordAccount() *common.AccountMeta
GetDelegateRecordAccount gets the "delegateRecord" parameter. Metadata delegate record
func (*Mint) GetMasterEditionAccount ¶
func (obj *Mint) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Master Edition account
func (*Mint) GetMetadataAccount ¶
func (obj *Mint) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account (pda of ['metadata', program id, mint id])
func (*Mint) GetMintAccount ¶
func (obj *Mint) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of token asset
func (*Mint) GetPayerAccount ¶
func (obj *Mint) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*Mint) GetSplAtaProgramAccount ¶
func (obj *Mint) GetSplAtaProgramAccount() *common.AccountMeta
GetSplAtaProgramAccount gets the "splAtaProgram" parameter. SPL Associated Token Account program
func (*Mint) GetSplTokenProgramAccount ¶
func (obj *Mint) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token program
func (*Mint) GetSystemProgramAccount ¶
func (obj *Mint) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*Mint) GetSysvarInstructionsAccount ¶
func (obj *Mint) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Mint) GetTokenAccount ¶
func (obj *Mint) GetTokenAccount() *common.AccountMeta
GetTokenAccount gets the "token" parameter. Token or Associated Token account
func (*Mint) GetTokenOwnerAccount ¶
func (obj *Mint) GetTokenOwnerAccount() *common.AccountMeta
GetTokenOwnerAccount gets the "tokenOwner" parameter. Owner of the token account
func (*Mint) GetTokenRecordAccount ¶
func (obj *Mint) GetTokenRecordAccount() *common.AccountMeta
GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account
func (*Mint) MarshalWithEncoder ¶
func (*Mint) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. (Mint or Update) authority
func (*Mint) SetAuthorizationRulesAccount ¶
func (obj *Mint) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Mint
SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account
func (*Mint) SetAuthorizationRulesProgramAccount ¶
func (obj *Mint) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Mint
SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules program
func (*Mint) SetDelegateRecordAccount ¶
SetDelegateRecordAccount sets the "delegateRecord" parameter. Metadata delegate record
func (*Mint) SetMasterEditionAccount ¶
SetMasterEditionAccount sets the "masterEdition" parameter. Master Edition account
func (*Mint) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata account (pda of ['metadata', program id, mint id])
func (*Mint) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint of token asset
func (*Mint) SetMintArgs ¶
SetMintArgs sets the "mintArgs" parameter.
func (*Mint) SetPayerAccount ¶
SetPayerAccount sets the "payer" parameter. Payer
func (*Mint) SetSplAtaProgramAccount ¶
SetSplAtaProgramAccount sets the "splAtaProgram" parameter. SPL Associated Token Account program
func (*Mint) SetSplTokenProgramAccount ¶
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token program
func (*Mint) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*Mint) SetSysvarInstructionsAccount ¶
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Mint) SetTokenAccount ¶
SetTokenAccount sets the "token" parameter. Token or Associated Token account
func (*Mint) SetTokenOwnerAccount ¶
SetTokenOwnerAccount sets the "tokenOwner" parameter. Owner of the token account
func (*Mint) SetTokenRecordAccount ¶
SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account
func (*Mint) UnmarshalWithDecoder ¶
func (*Mint) ValidateAndBuild ¶
func (obj *Mint) 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 MintArgs ¶
type MintArgs struct {
V1 *MintArgsV1 `bin:"optional"`
}
MintArgs Enum
func NewMintArgs_V1 ¶
func NewMintArgs_V1(amount uint64, authorizationData *AuthorizationData) MintArgs
func (*MintArgs) AsV1 ¶
func (obj *MintArgs) AsV1() MintArgsV1
func (*MintArgs) MarshalWithEncoder ¶
type MintArgsV1 ¶
type MintArgsV1 struct { Amount uint64 AuthorizationData *AuthorizationData `bin:"optional"` }
func (*MintArgsV1) MarshalWithEncoder ¶
func (obj *MintArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*MintArgsV1) UnmarshalWithDecoder ¶
func (obj *MintArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type MintIsNotSignerError ¶
type MintIsNotSignerError struct{}
MintIsNotSignerError Error: 134 `Mint needs to be signer to initialize the account`
func (MintIsNotSignerError) Code ¶
func (e MintIsNotSignerError) Code() int
func (MintIsNotSignerError) Error ¶
func (e MintIsNotSignerError) Error() string
type MintMismatchError ¶
type MintMismatchError struct{}
MintMismatchError Error: 15 `Mint given does not match mint on Metadata`
func (MintMismatchError) Code ¶
func (e MintMismatchError) Code() int
func (MintMismatchError) Error ¶
func (e MintMismatchError) Error() string
type MintNewEditionFromMasterEditionViaToken ¶
type MintNewEditionFromMasterEditionViaToken struct { MintNewEditionFromMasterEditionViaTokenArgs *MintNewEditionFromMasterEditionViaTokenArgs // [0] = [WRITE] newMetadata `New Metadata key (pda of ['metadata', program id, mint id])` // [1] = [WRITE] newEdition `New Edition (pda of ['metadata', program id, mint id, 'edition'])` // [2] = [WRITE] masterEdition `Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])` // [3] = [WRITE] newMint `Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY` // [4] = [WRITE] editionMarkPda `Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).` // [5] = [SIGNER] newMintAuthority `Mint authority of new mint` // [6] = [WRITE, SIGNER] payer `payer` // [7] = [SIGNER] tokenAccountOwner `owner of token account containing master token (#8)` // [8] = [] tokenAccount `token account containing token from master metadata mint` // [9] = [] newMetadataUpdateAuthority `Update authority info for new metadata` // [10] = [] metadata `Master record metadata account` // [11] = [] tokenProgram `Token program` // [12] = [] systemProgram `System program` // [13] = [] rent `Rent info` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
MintNewEditionFromMasterEditionViaToken Instruction
func NewMintNewEditionFromMasterEditionViaTokenInstruction ¶
func NewMintNewEditionFromMasterEditionViaTokenInstruction( mintNewEditionFromMasterEditionViaTokenArgs MintNewEditionFromMasterEditionViaTokenArgs, newMetadata common.PublicKey, newEdition common.PublicKey, masterEdition common.PublicKey, newMint common.PublicKey, editionMarkPda common.PublicKey, newMintAuthority common.PublicKey, payer common.PublicKey, tokenAccountOwner common.PublicKey, tokenAccount common.PublicKey, newMetadataUpdateAuthority common.PublicKey, metadata common.PublicKey, tokenProgram common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, ) *MintNewEditionFromMasterEditionViaToken
NewMintNewEditionFromMasterEditionViaTokenInstruction
Parameters:
mintNewEditionFromMasterEditionViaTokenArgs: newMetadata: New Metadata key (pda of ['metadata', program id, mint id]) newEdition: New Edition (pda of ['metadata', program id, mint id, 'edition']) masterEdition: Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition']) newMint: Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY editionMarkPda: Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE). newMintAuthority: Mint authority of new mint payer: payer tokenAccountOwner: owner of token account containing master token (#8) tokenAccount: token account containing token from master metadata mint newMetadataUpdateAuthority: Update authority info for new metadata metadata: Master record metadata account tokenProgram: Token program systemProgram: System program rent: Rent info
func NewMintNewEditionFromMasterEditionViaTokenInstructionBuilder ¶
func NewMintNewEditionFromMasterEditionViaTokenInstructionBuilder() *MintNewEditionFromMasterEditionViaToken
NewMintNewEditionFromMasterEditionViaTokenInstructionBuilder creates a new `MintNewEditionFromMasterEditionViaToken` instruction builder.
func (*MintNewEditionFromMasterEditionViaToken) Build ¶
func (obj *MintNewEditionFromMasterEditionViaToken) Build() *Instruction
func (*MintNewEditionFromMasterEditionViaToken) EncodeToTree ¶
func (obj *MintNewEditionFromMasterEditionViaToken) EncodeToTree(parent treeout.Branches)
func (*MintNewEditionFromMasterEditionViaToken) GetEditionMarkPdaAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetEditionMarkPdaAccount() *common.AccountMeta
GetEditionMarkPdaAccount gets the "editionMarkPda" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).
func (*MintNewEditionFromMasterEditionViaToken) GetMasterEditionAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])
func (*MintNewEditionFromMasterEditionViaToken) GetMetadataAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Master record metadata account
func (*MintNewEditionFromMasterEditionViaToken) GetNewEditionAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetNewEditionAccount() *common.AccountMeta
GetNewEditionAccount gets the "newEdition" parameter. New Edition (pda of ['metadata', program id, mint id, 'edition'])
func (*MintNewEditionFromMasterEditionViaToken) GetNewMetadataAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetNewMetadataAccount() *common.AccountMeta
GetNewMetadataAccount gets the "newMetadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])
func (*MintNewEditionFromMasterEditionViaToken) GetNewMetadataUpdateAuthorityAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetNewMetadataUpdateAuthorityAccount() *common.AccountMeta
GetNewMetadataUpdateAuthorityAccount gets the "newMetadataUpdateAuthority" parameter. Update authority info for new metadata
func (*MintNewEditionFromMasterEditionViaToken) GetNewMintAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetNewMintAccount() *common.AccountMeta
GetNewMintAccount gets the "newMint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*MintNewEditionFromMasterEditionViaToken) GetNewMintAuthorityAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetNewMintAuthorityAccount() *common.AccountMeta
GetNewMintAuthorityAccount gets the "newMintAuthority" parameter. Mint authority of new mint
func (*MintNewEditionFromMasterEditionViaToken) GetPayerAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*MintNewEditionFromMasterEditionViaToken) GetRentAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*MintNewEditionFromMasterEditionViaToken) GetSystemProgramAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*MintNewEditionFromMasterEditionViaToken) GetTokenAccountAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetTokenAccountAccount() *common.AccountMeta
GetTokenAccountAccount gets the "tokenAccount" parameter. token account containing token from master metadata mint
func (*MintNewEditionFromMasterEditionViaToken) GetTokenAccountOwnerAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetTokenAccountOwnerAccount() *common.AccountMeta
GetTokenAccountOwnerAccount gets the "tokenAccountOwner" parameter. owner of token account containing master token (#8)
func (*MintNewEditionFromMasterEditionViaToken) GetTokenProgramAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token program
func (*MintNewEditionFromMasterEditionViaToken) MarshalWithEncoder ¶
func (obj *MintNewEditionFromMasterEditionViaToken) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*MintNewEditionFromMasterEditionViaToken) SetEditionMarkPdaAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetEditionMarkPdaAccount(editionMarkPda common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetEditionMarkPdaAccount sets the "editionMarkPda" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).
func (*MintNewEditionFromMasterEditionViaToken) SetMasterEditionAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetMasterEditionAccount(masterEdition common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetMasterEditionAccount sets the "masterEdition" parameter. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])
func (*MintNewEditionFromMasterEditionViaToken) SetMetadataAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetMetadataAccount(metadata common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetMetadataAccount sets the "metadata" parameter. Master record metadata account
func (*MintNewEditionFromMasterEditionViaToken) SetMintNewEditionFromMasterEditionViaTokenArgs ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetMintNewEditionFromMasterEditionViaTokenArgs(mintNewEditionFromMasterEditionViaTokenArgs MintNewEditionFromMasterEditionViaTokenArgs) *MintNewEditionFromMasterEditionViaToken
SetMintNewEditionFromMasterEditionViaTokenArgs sets the "mintNewEditionFromMasterEditionViaTokenArgs" parameter.
func (*MintNewEditionFromMasterEditionViaToken) SetNewEditionAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetNewEditionAccount(newEdition common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetNewEditionAccount sets the "newEdition" parameter. New Edition (pda of ['metadata', program id, mint id, 'edition'])
func (*MintNewEditionFromMasterEditionViaToken) SetNewMetadataAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetNewMetadataAccount(newMetadata common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetNewMetadataAccount sets the "newMetadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])
func (*MintNewEditionFromMasterEditionViaToken) SetNewMetadataUpdateAuthorityAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetNewMetadataUpdateAuthorityAccount(newMetadataUpdateAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetNewMetadataUpdateAuthorityAccount sets the "newMetadataUpdateAuthority" parameter. Update authority info for new metadata
func (*MintNewEditionFromMasterEditionViaToken) SetNewMintAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetNewMintAccount(newMint common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetNewMintAccount sets the "newMint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*MintNewEditionFromMasterEditionViaToken) SetNewMintAuthorityAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetNewMintAuthorityAccount(newMintAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetNewMintAuthorityAccount sets the "newMintAuthority" parameter. Mint authority of new mint
func (*MintNewEditionFromMasterEditionViaToken) SetPayerAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetPayerAccount(payer common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetPayerAccount sets the "payer" parameter. payer
func (*MintNewEditionFromMasterEditionViaToken) SetProgramId ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetProgramId(programId *common.PublicKey) *MintNewEditionFromMasterEditionViaToken
func (*MintNewEditionFromMasterEditionViaToken) SetRentAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetRentAccount sets the "rent" parameter. Rent info
func (*MintNewEditionFromMasterEditionViaToken) SetSystemProgramAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetSystemProgramAccount(systemProgram common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*MintNewEditionFromMasterEditionViaToken) SetTokenAccountAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetTokenAccountAccount(tokenAccount common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetTokenAccountAccount sets the "tokenAccount" parameter. token account containing token from master metadata mint
func (*MintNewEditionFromMasterEditionViaToken) SetTokenAccountOwnerAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetTokenAccountOwnerAccount(tokenAccountOwner common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetTokenAccountOwnerAccount sets the "tokenAccountOwner" parameter. owner of token account containing master token (#8)
func (*MintNewEditionFromMasterEditionViaToken) SetTokenProgramAccount ¶
func (obj *MintNewEditionFromMasterEditionViaToken) SetTokenProgramAccount(tokenProgram common.PublicKey) *MintNewEditionFromMasterEditionViaToken
SetTokenProgramAccount sets the "tokenProgram" parameter. Token program
func (*MintNewEditionFromMasterEditionViaToken) UnmarshalWithDecoder ¶
func (obj *MintNewEditionFromMasterEditionViaToken) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*MintNewEditionFromMasterEditionViaToken) Validate ¶
func (obj *MintNewEditionFromMasterEditionViaToken) Validate() error
func (*MintNewEditionFromMasterEditionViaToken) ValidateAndBuild ¶
func (obj *MintNewEditionFromMasterEditionViaToken) 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 MintNewEditionFromMasterEditionViaTokenArgs ¶
type MintNewEditionFromMasterEditionViaTokenArgs struct {
Edition uint64
}
MintNewEditionFromMasterEditionViaTokenArgs Struct
func (*MintNewEditionFromMasterEditionViaTokenArgs) MarshalWithEncoder ¶
func (obj *MintNewEditionFromMasterEditionViaTokenArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*MintNewEditionFromMasterEditionViaTokenArgs) UnmarshalWithDecoder ¶
func (obj *MintNewEditionFromMasterEditionViaTokenArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type MintNewEditionFromMasterEditionViaVaultProxy ¶
type MintNewEditionFromMasterEditionViaVaultProxy struct { MintNewEditionFromMasterEditionViaTokenArgs *MintNewEditionFromMasterEditionViaTokenArgs // [0] = [WRITE] newMetadata `New Metadata key (pda of ['metadata', program id, mint id])` // [1] = [WRITE] newEdition `New Edition (pda of ['metadata', program id, mint id, 'edition'])` // [2] = [WRITE] masterEdition `Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition']` // [3] = [WRITE] newMint `Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY` // [4] = [WRITE] editionMarkPda `Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).` // [5] = [SIGNER] newMintAuthority `Mint authority of new mint` // [6] = [WRITE, SIGNER] payer `payer` // [7] = [SIGNER] vaultAuthority `Vault authority` // [8] = [] safetyDepositStore `Safety deposit token store account` // [9] = [] safetyDepositBox `Safety deposit box` // [10] = [] vault `Vault` // [11] = [] newMetadataUpdateAuthority `Update authority info for new metadata` // [12] = [] metadata `Master record metadata account` // [13] = [] tokenProgram `Token program` // [14] = [] tokenVaultProgram `Token vault program` // [15] = [] systemProgram `System program` // [16] = [] rent `Rent info` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
MintNewEditionFromMasterEditionViaVaultProxy Instruction
func NewMintNewEditionFromMasterEditionViaVaultProxyInstruction ¶
func NewMintNewEditionFromMasterEditionViaVaultProxyInstruction( mintNewEditionFromMasterEditionViaTokenArgs MintNewEditionFromMasterEditionViaTokenArgs, newMetadata common.PublicKey, newEdition common.PublicKey, masterEdition common.PublicKey, newMint common.PublicKey, editionMarkPda common.PublicKey, newMintAuthority common.PublicKey, payer common.PublicKey, vaultAuthority common.PublicKey, safetyDepositStore common.PublicKey, safetyDepositBox common.PublicKey, vault common.PublicKey, newMetadataUpdateAuthority common.PublicKey, metadata common.PublicKey, tokenProgram common.PublicKey, tokenVaultProgram common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, ) *MintNewEditionFromMasterEditionViaVaultProxy
NewMintNewEditionFromMasterEditionViaVaultProxyInstruction
Parameters:
mintNewEditionFromMasterEditionViaTokenArgs: newMetadata: New Metadata key (pda of ['metadata', program id, mint id]) newEdition: New Edition (pda of ['metadata', program id, mint id, 'edition']) masterEdition: Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'] newMint: Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY editionMarkPda: Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE). newMintAuthority: Mint authority of new mint payer: payer vaultAuthority: Vault authority safetyDepositStore: Safety deposit token store account safetyDepositBox: Safety deposit box vault: Vault newMetadataUpdateAuthority: Update authority info for new metadata metadata: Master record metadata account tokenProgram: Token program tokenVaultProgram: Token vault program systemProgram: System program rent: Rent info
func NewMintNewEditionFromMasterEditionViaVaultProxyInstructionBuilder ¶
func NewMintNewEditionFromMasterEditionViaVaultProxyInstructionBuilder() *MintNewEditionFromMasterEditionViaVaultProxy
NewMintNewEditionFromMasterEditionViaVaultProxyInstructionBuilder creates a new `MintNewEditionFromMasterEditionViaVaultProxy` instruction builder.
func (*MintNewEditionFromMasterEditionViaVaultProxy) Build ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) Build() *Instruction
func (*MintNewEditionFromMasterEditionViaVaultProxy) EncodeToTree ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) EncodeToTree(parent treeout.Branches)
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetEditionMarkPdaAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetEditionMarkPdaAccount() *common.AccountMeta
GetEditionMarkPdaAccount gets the "editionMarkPda" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetMasterEditionAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition']
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetMetadataAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Master record metadata account
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewEditionAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewEditionAccount() *common.AccountMeta
GetNewEditionAccount gets the "newEdition" parameter. New Edition (pda of ['metadata', program id, mint id, 'edition'])
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataAccount() *common.AccountMeta
GetNewMetadataAccount gets the "newMetadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataUpdateAuthorityAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataUpdateAuthorityAccount() *common.AccountMeta
GetNewMetadataUpdateAuthorityAccount gets the "newMetadataUpdateAuthority" parameter. Update authority info for new metadata
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMintAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMintAccount() *common.AccountMeta
GetNewMintAccount gets the "newMint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMintAuthorityAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMintAuthorityAccount() *common.AccountMeta
GetNewMintAuthorityAccount gets the "newMintAuthority" parameter. Mint authority of new mint
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetPayerAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetRentAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositBoxAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositBoxAccount() *common.AccountMeta
GetSafetyDepositBoxAccount gets the "safetyDepositBox" parameter. Safety deposit box
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositStoreAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositStoreAccount() *common.AccountMeta
GetSafetyDepositStoreAccount gets the "safetyDepositStore" parameter. Safety deposit token store account
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetSystemProgramAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetTokenProgramAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token program
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetTokenVaultProgramAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetTokenVaultProgramAccount() *common.AccountMeta
GetTokenVaultProgramAccount gets the "tokenVaultProgram" parameter. Token vault program
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAccount() *common.AccountMeta
GetVaultAccount gets the "vault" parameter. Vault
func (*MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAuthorityAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAuthorityAccount() *common.AccountMeta
GetVaultAuthorityAccount gets the "vaultAuthority" parameter. Vault authority
func (*MintNewEditionFromMasterEditionViaVaultProxy) MarshalWithEncoder ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetEditionMarkPdaAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetEditionMarkPdaAccount(editionMarkPda common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetEditionMarkPdaAccount sets the "editionMarkPda" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetMasterEditionAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetMasterEditionAccount(masterEdition common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetMasterEditionAccount sets the "masterEdition" parameter. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition']
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetMetadataAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetMetadataAccount(metadata common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetMetadataAccount sets the "metadata" parameter. Master record metadata account
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetMintNewEditionFromMasterEditionViaTokenArgs ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetMintNewEditionFromMasterEditionViaTokenArgs(mintNewEditionFromMasterEditionViaTokenArgs MintNewEditionFromMasterEditionViaTokenArgs) *MintNewEditionFromMasterEditionViaVaultProxy
SetMintNewEditionFromMasterEditionViaTokenArgs sets the "mintNewEditionFromMasterEditionViaTokenArgs" parameter.
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewEditionAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetNewEditionAccount(newEdition common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetNewEditionAccount sets the "newEdition" parameter. New Edition (pda of ['metadata', program id, mint id, 'edition'])
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataAccount(newMetadata common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetNewMetadataAccount sets the "newMetadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataUpdateAuthorityAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataUpdateAuthorityAccount(newMetadataUpdateAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetNewMetadataUpdateAuthorityAccount sets the "newMetadataUpdateAuthority" parameter. Update authority info for new metadata
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMintAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetNewMintAccount(newMint common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetNewMintAccount sets the "newMint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMintAuthorityAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetNewMintAuthorityAccount(newMintAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetNewMintAuthorityAccount sets the "newMintAuthority" parameter. Mint authority of new mint
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetPayerAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetPayerAccount(payer common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetPayerAccount sets the "payer" parameter. payer
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetProgramId ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetProgramId(programId *common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetRentAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetRentAccount sets the "rent" parameter. Rent info
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositBoxAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositBoxAccount(safetyDepositBox common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetSafetyDepositBoxAccount sets the "safetyDepositBox" parameter. Safety deposit box
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositStoreAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositStoreAccount(safetyDepositStore common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetSafetyDepositStoreAccount sets the "safetyDepositStore" parameter. Safety deposit token store account
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetSystemProgramAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetSystemProgramAccount(systemProgram common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetTokenProgramAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetTokenProgramAccount(tokenProgram common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetTokenProgramAccount sets the "tokenProgram" parameter. Token program
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetTokenVaultProgramAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetTokenVaultProgramAccount(tokenVaultProgram common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetTokenVaultProgramAccount sets the "tokenVaultProgram" parameter. Token vault program
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetVaultAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetVaultAccount(vault common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetVaultAccount sets the "vault" parameter. Vault
func (*MintNewEditionFromMasterEditionViaVaultProxy) SetVaultAuthorityAccount ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetVaultAuthorityAccount(vaultAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy
SetVaultAuthorityAccount sets the "vaultAuthority" parameter. Vault authority
func (*MintNewEditionFromMasterEditionViaVaultProxy) UnmarshalWithDecoder ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*MintNewEditionFromMasterEditionViaVaultProxy) Validate ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) Validate() error
func (*MintNewEditionFromMasterEditionViaVaultProxy) ValidateAndBuild ¶
func (obj *MintNewEditionFromMasterEditionViaVaultProxy) 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 MintSupplyMustBeZeroError ¶
type MintSupplyMustBeZeroError struct{}
MintSupplyMustBeZeroError Error: 160 `Mint supply must be zero for programmable assets`
func (MintSupplyMustBeZeroError) Code ¶
func (e MintSupplyMustBeZeroError) Code() int
func (MintSupplyMustBeZeroError) Error ¶
func (e MintSupplyMustBeZeroError) Error() string
type MissingAccountInBuilderError ¶
type MissingAccountInBuilderError struct{}
MissingAccountInBuilderError Error: 143 `Required account not set in instruction builder`
func (MissingAccountInBuilderError) Code ¶
func (e MissingAccountInBuilderError) Code() int
func (MissingAccountInBuilderError) Error ¶
func (e MissingAccountInBuilderError) Error() string
type MissingArgumentInBuilderError ¶
type MissingArgumentInBuilderError struct{}
MissingArgumentInBuilderError Error: 144 `Required argument not set in instruction builder`
func (MissingArgumentInBuilderError) Code ¶
func (e MissingArgumentInBuilderError) Code() int
func (MissingArgumentInBuilderError) Error ¶
func (e MissingArgumentInBuilderError) Error() string
type MissingAuthorizationRulesError ¶
type MissingAuthorizationRulesError struct{}
MissingAuthorizationRulesError Error: 138 `Missing authorization rules account`
func (MissingAuthorizationRulesError) Code ¶
func (e MissingAuthorizationRulesError) Code() int
func (MissingAuthorizationRulesError) Error ¶
func (e MissingAuthorizationRulesError) Error() string
type MissingAuthorizationRulesProgramError ¶
type MissingAuthorizationRulesProgramError struct{}
MissingAuthorizationRulesProgramError Error: 150 `Missing authorization rules program`
func (MissingAuthorizationRulesProgramError) Code ¶
func (e MissingAuthorizationRulesProgramError) Code() int
func (MissingAuthorizationRulesProgramError) Error ¶
func (e MissingAuthorizationRulesProgramError) Error() string
type MissingCollectionMasterEditionError ¶
type MissingCollectionMasterEditionError struct{}
MissingCollectionMasterEditionError Error: 186 `Missing collection master edition account`
func (MissingCollectionMasterEditionError) Code ¶
func (e MissingCollectionMasterEditionError) Code() int
func (MissingCollectionMasterEditionError) Error ¶
func (e MissingCollectionMasterEditionError) Error() string
type MissingCollectionMetadataError ¶
type MissingCollectionMetadataError struct{}
MissingCollectionMetadataError Error: 103 `Missing collection metadata account`
func (MissingCollectionMetadataError) Code ¶
func (e MissingCollectionMetadataError) Code() int
func (MissingCollectionMetadataError) Error ¶
func (e MissingCollectionMetadataError) Error() string
type MissingCollectionMintError ¶
type MissingCollectionMintError struct{}
MissingCollectionMintError Error: 185 `Missing collection account`
func (MissingCollectionMintError) Code ¶
func (e MissingCollectionMintError) Code() int
func (MissingCollectionMintError) Error ¶
func (e MissingCollectionMintError) Error() string
type MissingDelegateRecordError ¶
type MissingDelegateRecordError struct{}
MissingDelegateRecordError Error: 190 `Missing delegate record`
func (MissingDelegateRecordError) Code ¶
func (e MissingDelegateRecordError) Code() int
func (MissingDelegateRecordError) Error ¶
func (e MissingDelegateRecordError) Error() string
type MissingDelegateRoleError ¶
type MissingDelegateRoleError struct{}
MissingDelegateRoleError Error: 157 `Missing delegate role`
func (MissingDelegateRoleError) Code ¶
func (e MissingDelegateRoleError) Code() int
func (MissingDelegateRoleError) Error ¶
func (e MissingDelegateRoleError) Error() string
type MissingEditionAccountError ¶
type MissingEditionAccountError struct{}
MissingEditionAccountError Error: 108 `This mint account has an edition but none was provided.`
func (MissingEditionAccountError) Code ¶
func (e MissingEditionAccountError) Code() int
func (MissingEditionAccountError) Error ¶
func (e MissingEditionAccountError) Error() string
type MissingEditionError ¶
type MissingEditionError struct{}
MissingEditionError Error: 179 `Missing edition account`
func (MissingEditionError) Code ¶
func (e MissingEditionError) Code() int
func (MissingEditionError) Error ¶
func (e MissingEditionError) Error() string
type MissingEditionMarkerAccountError ¶
type MissingEditionMarkerAccountError struct{}
MissingEditionMarkerAccountError Error: 177 `Missing edition marker account`
func (MissingEditionMarkerAccountError) Code ¶
func (e MissingEditionMarkerAccountError) Code() int
func (MissingEditionMarkerAccountError) Error ¶
func (e MissingEditionMarkerAccountError) Error() string
type MissingImmutableOwnerExtensionError ¶
type MissingImmutableOwnerExtensionError struct{}
MissingImmutableOwnerExtensionError Error: 198 `Missing immutable owner extension`
func (MissingImmutableOwnerExtensionError) Code ¶
func (e MissingImmutableOwnerExtensionError) Code() int
func (MissingImmutableOwnerExtensionError) Error ¶
func (e MissingImmutableOwnerExtensionError) Error() string
type MissingLockedTransferAddressError ¶
type MissingLockedTransferAddressError struct{}
MissingLockedTransferAddressError Error: 170 `Missing address for locked transfer`
func (MissingLockedTransferAddressError) Code ¶
func (e MissingLockedTransferAddressError) Code() int
func (MissingLockedTransferAddressError) Error ¶
func (e MissingLockedTransferAddressError) Error() string
type MissingMasterEditionAccountError ¶
type MissingMasterEditionAccountError struct{}
MissingMasterEditionAccountError Error: 167 `Missing master edition account`
func (MissingMasterEditionAccountError) Code ¶
func (e MissingMasterEditionAccountError) Code() int
func (MissingMasterEditionAccountError) Error ¶
func (e MissingMasterEditionAccountError) Error() string
type MissingMasterEditionMintAccountError ¶
type MissingMasterEditionMintAccountError struct{}
MissingMasterEditionMintAccountError Error: 175 `Missing master edition mint account`
func (MissingMasterEditionMintAccountError) Code ¶
func (e MissingMasterEditionMintAccountError) Code() int
func (MissingMasterEditionMintAccountError) Error ¶
func (e MissingMasterEditionMintAccountError) Error() string
type MissingMasterEditionTokenAccountError ¶
type MissingMasterEditionTokenAccountError struct{}
MissingMasterEditionTokenAccountError Error: 176 `Missing master edition token account`
func (MissingMasterEditionTokenAccountError) Code ¶
func (e MissingMasterEditionTokenAccountError) Code() int
func (MissingMasterEditionTokenAccountError) Error ¶
func (e MissingMasterEditionTokenAccountError) Error() string
type MissingPrintSupplyError ¶
type MissingPrintSupplyError struct{}
MissingPrintSupplyError Error: 166 `Print supply is required for non-fungibles`
func (MissingPrintSupplyError) Code ¶
func (e MissingPrintSupplyError) Code() int
func (MissingPrintSupplyError) Error ¶
func (e MissingPrintSupplyError) Error() string
type MissingProgrammableConfigError ¶
type MissingProgrammableConfigError struct{}
MissingProgrammableConfigError Error: 139 `Missing programmable configuration`
func (MissingProgrammableConfigError) Code ¶
func (e MissingProgrammableConfigError) Code() int
func (MissingProgrammableConfigError) Error ¶
func (e MissingProgrammableConfigError) Error() string
type MissingSplTokenProgramError ¶
type MissingSplTokenProgramError struct{}
MissingSplTokenProgramError Error: 149 `Missing SPL token program`
func (MissingSplTokenProgramError) Code ¶
func (e MissingSplTokenProgramError) Code() int
func (MissingSplTokenProgramError) Error ¶
func (e MissingSplTokenProgramError) Error() string
type MissingTokenAccountError ¶
type MissingTokenAccountError struct{}
MissingTokenAccountError Error: 148 `Missing token account`
func (MissingTokenAccountError) Code ¶
func (e MissingTokenAccountError) Code() int
func (MissingTokenAccountError) Error ¶
func (e MissingTokenAccountError) Error() string
type MissingTokenOwnerAccountError ¶
type MissingTokenOwnerAccountError struct{}
MissingTokenOwnerAccountError Error: 162 `Missing token owner`
func (MissingTokenOwnerAccountError) Code ¶
func (e MissingTokenOwnerAccountError) Code() int
func (MissingTokenOwnerAccountError) Error ¶
func (e MissingTokenOwnerAccountError) Error() string
type MissingTokenRecordError ¶
type MissingTokenRecordError struct{}
MissingTokenRecordError Error: 159 `Missing token record account`
func (MissingTokenRecordError) Code ¶
func (e MissingTokenRecordError) Code() int
func (MissingTokenRecordError) Error ¶
func (e MissingTokenRecordError) Error() string
type MustBeBurnedError ¶
type MustBeBurnedError struct{}
MustBeBurnedError Error: 76 “
func (MustBeBurnedError) Code ¶
func (e MustBeBurnedError) Code() int
func (MustBeBurnedError) Error ¶
func (e MustBeBurnedError) Error() string
type MustBeEscrowAuthorityError ¶
type MustBeEscrowAuthorityError struct{}
MustBeEscrowAuthorityError Error: 125 `Must Escrow Authority`
func (MustBeEscrowAuthorityError) Code ¶
func (e MustBeEscrowAuthorityError) Code() int
func (MustBeEscrowAuthorityError) Error ¶
func (e MustBeEscrowAuthorityError) Error() string
type MustBeNonFungibleError ¶
type MustBeNonFungibleError struct{}
MustBeNonFungibleError Error: 127 `Must be a Non Fungible Token`
func (MustBeNonFungibleError) Code ¶
func (e MustBeNonFungibleError) Code() int
func (MustBeNonFungibleError) Error ¶
func (e MustBeNonFungibleError) Error() string
type MustBeOneOfCreatorsError ¶
type MustBeOneOfCreatorsError struct{}
MustBeOneOfCreatorsError Error: 38 “
func (MustBeOneOfCreatorsError) Code ¶
func (e MustBeOneOfCreatorsError) Code() int
func (MustBeOneOfCreatorsError) Error ¶
func (e MustBeOneOfCreatorsError) Error() string
type MustUnverifyError ¶
type MustUnverifyError struct{}
MustUnverifyError Error: 123 `Must unverify before migrating collections.`
func (MustUnverifyError) Code ¶
func (e MustUnverifyError) Code() int
func (MustUnverifyError) Error ¶
func (e MustUnverifyError) Error() string
type NameTooLongError ¶
type NameTooLongError struct{}
NameTooLongError Error: 11 `Name too long`
func (NameTooLongError) Code ¶
func (e NameTooLongError) Code() int
func (NameTooLongError) Error ¶
func (e NameTooLongError) Error() string
type NoBalanceInAccountForAuthorizationError ¶
type NoBalanceInAccountForAuthorizationError struct{}
NoBalanceInAccountForAuthorizationError Error: 44 `This account has no tokens to be used for authorization`
func (NoBalanceInAccountForAuthorizationError) Code ¶
func (e NoBalanceInAccountForAuthorizationError) Code() int
func (NoBalanceInAccountForAuthorizationError) Error ¶
func (e NoBalanceInAccountForAuthorizationError) Error() string
type NoCreatorsPresentOnMetadataError ¶
type NoCreatorsPresentOnMetadataError struct{}
NoCreatorsPresentOnMetadataError Error: 39 `This metadata does not have creators`
func (NoCreatorsPresentOnMetadataError) Code ¶
func (e NoCreatorsPresentOnMetadataError) Code() int
func (NoCreatorsPresentOnMetadataError) Error ¶
func (e NoCreatorsPresentOnMetadataError) Error() string
type NoFreezeAuthoritySetError ¶
type NoFreezeAuthoritySetError struct{}
NoFreezeAuthoritySetError Error: 130 `Cannot create NFT with no Freeze Authority.`
func (NoFreezeAuthoritySetError) Code ¶
func (e NoFreezeAuthoritySetError) Code() int
func (NoFreezeAuthoritySetError) Error ¶
func (e NoFreezeAuthoritySetError) Error() string
type NotACollectionParentError ¶
type NotACollectionParentError struct{}
NotACollectionParentError Error: 106 `This NFT is not a collection parent NFT.`
func (NotACollectionParentError) Code ¶
func (e NotACollectionParentError) Code() int
func (NotACollectionParentError) Error ¶
func (e NotACollectionParentError) Error() string
type NotAMasterEditionError ¶
type NotAMasterEditionError struct{}
NotAMasterEditionError Error: 109 `This edition is not a Master Edition`
func (NotAMasterEditionError) Code ¶
func (e NotAMasterEditionError) Code() int
func (NotAMasterEditionError) Error ¶
func (e NotAMasterEditionError) Error() string
type NotAMemberOfCollectionError ¶
type NotAMemberOfCollectionError struct{}
NotAMemberOfCollectionError Error: 104 `This NFT is not a member of the specified collection.`
func (NotAMemberOfCollectionError) Code ¶
func (e NotAMemberOfCollectionError) Code() int
func (NotAMemberOfCollectionError) Error ¶
func (e NotAMemberOfCollectionError) Error() string
type NotAPrintEditionError ¶
type NotAPrintEditionError struct{}
NotAPrintEditionError Error: 116 `This edition is not a Print Edition`
func (NotAPrintEditionError) Code ¶
func (e NotAPrintEditionError) Code() int
func (NotAPrintEditionError) Error ¶
func (e NotAPrintEditionError) Error() string
type NotAllowedToChangeSellerFeeBasisPointsError ¶
type NotAllowedToChangeSellerFeeBasisPointsError struct{}
NotAllowedToChangeSellerFeeBasisPointsError Error: 96 “
func (NotAllowedToChangeSellerFeeBasisPointsError) Code ¶
func (e NotAllowedToChangeSellerFeeBasisPointsError) Code() int
func (NotAllowedToChangeSellerFeeBasisPointsError) Error ¶
func (e NotAllowedToChangeSellerFeeBasisPointsError) Error() string
type NotEnoughTokensError ¶
type NotEnoughTokensError struct{}
NotEnoughTokensError Error: 32 `Not enough tokens to mint a limited edition`
func (NotEnoughTokensError) Code ¶
func (e NotEnoughTokensError) Code() int
func (NotEnoughTokensError) Error ¶
func (e NotEnoughTokensError) Error() string
type NotEnoughUsesError ¶
type NotEnoughUsesError struct{}
NotEnoughUsesError Error: 86 `There are not enough Uses left on this token.`
func (NotEnoughUsesError) Code ¶
func (e NotEnoughUsesError) Code() int
func (NotEnoughUsesError) Error ¶
func (e NotEnoughUsesError) Error() string
type NotMintAuthorityError ¶
type NotMintAuthorityError struct{}
NotMintAuthorityError Error: 9 `You must be the mint authority and signer on this transaction`
func (NotMintAuthorityError) Code ¶
func (e NotMintAuthorityError) Code() int
func (NotMintAuthorityError) Error ¶
func (e NotMintAuthorityError) Error() string
type NotRentExemptError ¶
type NotRentExemptError struct{}
NotRentExemptError Error: 2 `Lamport balance below rent-exempt threshold`
func (NotRentExemptError) Code ¶
func (e NotRentExemptError) Code() int
func (NotRentExemptError) Error ¶
func (e NotRentExemptError) Error() string
type NotVerifiedMemberOfCollectionError ¶
type NotVerifiedMemberOfCollectionError struct{}
NotVerifiedMemberOfCollectionError Error: 105 `This NFT is not a verified member of the specified collection.`
func (NotVerifiedMemberOfCollectionError) Code ¶
func (e NotVerifiedMemberOfCollectionError) Code() int
func (NotVerifiedMemberOfCollectionError) Error ¶
func (e NotVerifiedMemberOfCollectionError) Error() string
type NumericalOverflowError ¶
type NumericalOverflowError struct{}
NumericalOverflowError Error: 51 `NumericalOverflowError`
func (NumericalOverflowError) Code ¶
func (e NumericalOverflowError) Code() int
func (NumericalOverflowError) Error ¶
func (e NumericalOverflowError) Error() string
type OneTimeAuthMintSupplyMustBeZeroForConversionError ¶
type OneTimeAuthMintSupplyMustBeZeroForConversionError struct{}
OneTimeAuthMintSupplyMustBeZeroForConversionError Error: 70 `One Time Auth mint supply must be zero for conversion`
func (OneTimeAuthMintSupplyMustBeZeroForConversionError) Code ¶
func (e OneTimeAuthMintSupplyMustBeZeroForConversionError) Code() int
func (OneTimeAuthMintSupplyMustBeZeroForConversionError) Error ¶
func (e OneTimeAuthMintSupplyMustBeZeroForConversionError) Error() string
type OneTimePrintingAuthMintMismatchError ¶
type OneTimePrintingAuthMintMismatchError struct{}
OneTimePrintingAuthMintMismatchError Error: 29 `The One Time Printing Auth mint does not match that on the master edition!`
func (OneTimePrintingAuthMintMismatchError) Code ¶
func (e OneTimePrintingAuthMintMismatchError) Code() int
func (OneTimePrintingAuthMintMismatchError) Error ¶
func (e OneTimePrintingAuthMintMismatchError) Error() string
type OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError ¶
type OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError struct{}
OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError Error: 23 “
func (OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError) Code ¶
func (e OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError) Code() int
func (OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError) Error ¶
func (e OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError) Error() string
type OnlySaleDelegateCanTransferError ¶
type OnlySaleDelegateCanTransferError struct{}
OnlySaleDelegateCanTransferError Error: 147 `Only the sale delegate can transfer while its set`
func (OnlySaleDelegateCanTransferError) Code ¶
func (e OnlySaleDelegateCanTransferError) Code() int
func (OnlySaleDelegateCanTransferError) Error ¶
func (e OnlySaleDelegateCanTransferError) Error() string
type OwnerMismatchError ¶
type OwnerMismatchError struct{}
OwnerMismatchError Error: 43 `Owner does not match that on the account given`
func (OwnerMismatchError) Code ¶
func (e OwnerMismatchError) Code() int
func (OwnerMismatchError) Error ¶
func (e OwnerMismatchError) Error() string
type Payload ¶
type Payload struct {
Map map[string]PayloadType
}
Payload Struct
func (*Payload) MarshalWithEncoder ¶
type PayloadKey ¶
PayloadKey Enum
const ( PayloadKeyAmount PayloadKey = iota PayloadKeyAuthority PayloadKeyAuthoritySeeds PayloadKeyDelegate PayloadKeyDelegateSeeds PayloadKeyDestination PayloadKeyDestinationSeeds PayloadKeyHolder PayloadKeySource PayloadKeySourceSeeds )
func (PayloadKey) String ¶
func (value PayloadKey) String() string
type PayloadType ¶
type PayloadType struct { Pubkey *PayloadTypePubkey `bin:"optional"` Seeds *PayloadTypeSeeds `bin:"optional"` MerkleProof *PayloadTypeMerkleProof `bin:"optional"` Number *PayloadTypeNumber `bin:"optional"` }
PayloadType Enum
func NewPayloadType_MerkleProof ¶
func NewPayloadType_MerkleProof(field0 ProofInfo) PayloadType
func NewPayloadType_Number ¶
func NewPayloadType_Number(field0 uint64) PayloadType
func NewPayloadType_Pubkey ¶
func NewPayloadType_Pubkey(field0 common.PublicKey) PayloadType
func NewPayloadType_Seeds ¶
func NewPayloadType_Seeds(field0 SeedsVec) PayloadType
func (*PayloadType) AsMerkleProof ¶
func (obj *PayloadType) AsMerkleProof() PayloadTypeMerkleProof
func (*PayloadType) AsNumber ¶
func (obj *PayloadType) AsNumber() PayloadTypeNumber
func (*PayloadType) AsPubkey ¶
func (obj *PayloadType) AsPubkey() PayloadTypePubkey
func (*PayloadType) AsSeeds ¶
func (obj *PayloadType) AsSeeds() PayloadTypeSeeds
func (*PayloadType) IsMerkleProof ¶
func (obj *PayloadType) IsMerkleProof() bool
func (*PayloadType) IsNumber ¶
func (obj *PayloadType) IsNumber() bool
func (*PayloadType) IsPubkey ¶
func (obj *PayloadType) IsPubkey() bool
func (*PayloadType) IsSeeds ¶
func (obj *PayloadType) IsSeeds() bool
func (*PayloadType) MarshalWithEncoder ¶
func (obj *PayloadType) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*PayloadType) String ¶
func (obj *PayloadType) String() string
func (*PayloadType) UnmarshalWithDecoder ¶
func (obj *PayloadType) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type PayloadTypeMerkleProof ¶
type PayloadTypeMerkleProof struct {
Field0 ProofInfo
}
func (*PayloadTypeMerkleProof) MarshalWithEncoder ¶
func (obj *PayloadTypeMerkleProof) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*PayloadTypeMerkleProof) UnmarshalWithDecoder ¶
func (obj *PayloadTypeMerkleProof) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type PayloadTypeNumber ¶
type PayloadTypeNumber struct {
Field0 uint64
}
func (*PayloadTypeNumber) MarshalWithEncoder ¶
func (obj *PayloadTypeNumber) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*PayloadTypeNumber) UnmarshalWithDecoder ¶
func (obj *PayloadTypeNumber) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type PayloadTypePubkey ¶
func (*PayloadTypePubkey) MarshalWithEncoder ¶
func (obj *PayloadTypePubkey) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*PayloadTypePubkey) UnmarshalWithDecoder ¶
func (obj *PayloadTypePubkey) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type PayloadTypeSeeds ¶
type PayloadTypeSeeds struct {
Field0 SeedsVec
}
func (*PayloadTypeSeeds) MarshalWithEncoder ¶
func (obj *PayloadTypeSeeds) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*PayloadTypeSeeds) UnmarshalWithDecoder ¶
func (obj *PayloadTypeSeeds) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type PrimarySaleCanOnlyBeFlippedToTrueError ¶
type PrimarySaleCanOnlyBeFlippedToTrueError struct{}
PrimarySaleCanOnlyBeFlippedToTrueError Error: 42 `Primary sale can only be flipped to true and is immutable`
func (PrimarySaleCanOnlyBeFlippedToTrueError) Code ¶
func (e PrimarySaleCanOnlyBeFlippedToTrueError) Code() int
func (PrimarySaleCanOnlyBeFlippedToTrueError) Error ¶
func (e PrimarySaleCanOnlyBeFlippedToTrueError) Error() string
type Print ¶
type Print struct { PrintArgs *PrintArgs // [0] = [WRITE] editionMetadata `New Metadata key (pda of ['metadata', program id, mint id])` // [1] = [WRITE] edition `New Edition (pda of ['metadata', program id, mint id, 'edition'])` // [2] = [WRITE] editionMint `Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY` // [3] = [] editionTokenAccountOwner `Owner of the token account of new token` // [4] = [WRITE] editionTokenAccount `Token account of new token` // [5] = [SIGNER] editionMintAuthority `Mint authority of new mint` // [6] = [WRITE] editionTokenRecord `Token record account` // [7] = [WRITE] masterEdition `Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])` // [8] = [WRITE] editionMarkerPda `Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).` // [9] = [WRITE, SIGNER] payer `payer` // [10] = [SIGNER] masterTokenAccountOwner `owner of token account containing master token` // [11] = [] masterTokenAccount `token account containing token from master metadata mint` // [12] = [] masterMetadata `Master record metadata account` // [13] = [] updateAuthority `The update authority of the master edition.` // [14] = [] splTokenProgram `Token program` // [15] = [] splAtaProgram `SPL Associated Token Account program` // [16] = [] sysvarInstructions `Instructions sysvar account` // [17] = [] systemProgram `System program` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Print Instruction
func NewPrintInstruction ¶
func NewPrintInstruction( printArgs PrintArgs, editionMetadata common.PublicKey, edition common.PublicKey, editionMint common.PublicKey, editionTokenAccountOwner common.PublicKey, editionTokenAccount common.PublicKey, editionMintAuthority common.PublicKey, editionTokenRecord common.PublicKey, masterEdition common.PublicKey, editionMarkerPda common.PublicKey, payer common.PublicKey, masterTokenAccountOwner common.PublicKey, masterTokenAccount common.PublicKey, masterMetadata common.PublicKey, updateAuthority common.PublicKey, splTokenProgram common.PublicKey, splAtaProgram common.PublicKey, sysvarInstructions common.PublicKey, systemProgram common.PublicKey, ) *Print
NewPrintInstruction
Parameters:
printArgs: editionMetadata: New Metadata key (pda of ['metadata', program id, mint id]) edition: New Edition (pda of ['metadata', program id, mint id, 'edition']) editionMint: Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY editionTokenAccountOwner: Owner of the token account of new token editionTokenAccount: Token account of new token editionMintAuthority: Mint authority of new mint editionTokenRecord: Token record account masterEdition: Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition']) editionMarkerPda: Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE). payer: payer masterTokenAccountOwner: owner of token account containing master token masterTokenAccount: token account containing token from master metadata mint masterMetadata: Master record metadata account updateAuthority: The update authority of the master edition. splTokenProgram: Token program splAtaProgram: SPL Associated Token Account program sysvarInstructions: Instructions sysvar account systemProgram: System program
func NewPrintInstructionBuilder ¶
func NewPrintInstructionBuilder() *Print
NewPrintInstructionBuilder creates a new `Print` instruction builder.
func (*Print) Build ¶
func (obj *Print) Build() *Instruction
func (*Print) EncodeToTree ¶
func (*Print) GetEditionAccount ¶
func (obj *Print) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. New Edition (pda of ['metadata', program id, mint id, 'edition'])
func (*Print) GetEditionMarkerPdaAccount ¶
func (obj *Print) GetEditionMarkerPdaAccount() *common.AccountMeta
GetEditionMarkerPdaAccount gets the "editionMarkerPda" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).
func (*Print) GetEditionMetadataAccount ¶
func (obj *Print) GetEditionMetadataAccount() *common.AccountMeta
GetEditionMetadataAccount gets the "editionMetadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])
func (*Print) GetEditionMintAccount ¶
func (obj *Print) GetEditionMintAccount() *common.AccountMeta
GetEditionMintAccount gets the "editionMint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*Print) GetEditionMintAuthorityAccount ¶
func (obj *Print) GetEditionMintAuthorityAccount() *common.AccountMeta
GetEditionMintAuthorityAccount gets the "editionMintAuthority" parameter. Mint authority of new mint
func (*Print) GetEditionTokenAccountAccount ¶
func (obj *Print) GetEditionTokenAccountAccount() *common.AccountMeta
GetEditionTokenAccountAccount gets the "editionTokenAccount" parameter. Token account of new token
func (*Print) GetEditionTokenAccountOwnerAccount ¶
func (obj *Print) GetEditionTokenAccountOwnerAccount() *common.AccountMeta
GetEditionTokenAccountOwnerAccount gets the "editionTokenAccountOwner" parameter. Owner of the token account of new token
func (*Print) GetEditionTokenRecordAccount ¶
func (obj *Print) GetEditionTokenRecordAccount() *common.AccountMeta
GetEditionTokenRecordAccount gets the "editionTokenRecord" parameter. Token record account
func (*Print) GetMasterEditionAccount ¶
func (obj *Print) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])
func (*Print) GetMasterMetadataAccount ¶
func (obj *Print) GetMasterMetadataAccount() *common.AccountMeta
GetMasterMetadataAccount gets the "masterMetadata" parameter. Master record metadata account
func (*Print) GetMasterTokenAccountAccount ¶
func (obj *Print) GetMasterTokenAccountAccount() *common.AccountMeta
GetMasterTokenAccountAccount gets the "masterTokenAccount" parameter. token account containing token from master metadata mint
func (*Print) GetMasterTokenAccountOwnerAccount ¶
func (obj *Print) GetMasterTokenAccountOwnerAccount() *common.AccountMeta
GetMasterTokenAccountOwnerAccount gets the "masterTokenAccountOwner" parameter. owner of token account containing master token
func (*Print) GetPayerAccount ¶
func (obj *Print) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*Print) GetSplAtaProgramAccount ¶
func (obj *Print) GetSplAtaProgramAccount() *common.AccountMeta
GetSplAtaProgramAccount gets the "splAtaProgram" parameter. SPL Associated Token Account program
func (*Print) GetSplTokenProgramAccount ¶
func (obj *Print) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. Token program
func (*Print) GetSystemProgramAccount ¶
func (obj *Print) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*Print) GetSysvarInstructionsAccount ¶
func (obj *Print) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Print) GetUpdateAuthorityAccount ¶
func (obj *Print) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. The update authority of the master edition.
func (*Print) MarshalWithEncoder ¶
func (*Print) SetEditionAccount ¶
SetEditionAccount sets the "edition" parameter. New Edition (pda of ['metadata', program id, mint id, 'edition'])
func (*Print) SetEditionMarkerPdaAccount ¶
SetEditionMarkerPdaAccount sets the "editionMarkerPda" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).
func (*Print) SetEditionMetadataAccount ¶
SetEditionMetadataAccount sets the "editionMetadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])
func (*Print) SetEditionMintAccount ¶
SetEditionMintAccount sets the "editionMint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
func (*Print) SetEditionMintAuthorityAccount ¶
SetEditionMintAuthorityAccount sets the "editionMintAuthority" parameter. Mint authority of new mint
func (*Print) SetEditionTokenAccountAccount ¶
SetEditionTokenAccountAccount sets the "editionTokenAccount" parameter. Token account of new token
func (*Print) SetEditionTokenAccountOwnerAccount ¶
func (obj *Print) SetEditionTokenAccountOwnerAccount(editionTokenAccountOwner common.PublicKey) *Print
SetEditionTokenAccountOwnerAccount sets the "editionTokenAccountOwner" parameter. Owner of the token account of new token
func (*Print) SetEditionTokenRecordAccount ¶
SetEditionTokenRecordAccount sets the "editionTokenRecord" parameter. Token record account
func (*Print) SetMasterEditionAccount ¶
SetMasterEditionAccount sets the "masterEdition" parameter. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])
func (*Print) SetMasterMetadataAccount ¶
SetMasterMetadataAccount sets the "masterMetadata" parameter. Master record metadata account
func (*Print) SetMasterTokenAccountAccount ¶
SetMasterTokenAccountAccount sets the "masterTokenAccount" parameter. token account containing token from master metadata mint
func (*Print) SetMasterTokenAccountOwnerAccount ¶
func (obj *Print) SetMasterTokenAccountOwnerAccount(masterTokenAccountOwner common.PublicKey) *Print
SetMasterTokenAccountOwnerAccount sets the "masterTokenAccountOwner" parameter. owner of token account containing master token
func (*Print) SetPayerAccount ¶
SetPayerAccount sets the "payer" parameter. payer
func (*Print) SetPrintArgs ¶
SetPrintArgs sets the "printArgs" parameter.
func (*Print) SetSplAtaProgramAccount ¶
SetSplAtaProgramAccount sets the "splAtaProgram" parameter. SPL Associated Token Account program
func (*Print) SetSplTokenProgramAccount ¶
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. Token program
func (*Print) SetSystemProgramAccount ¶
func (obj *Print) SetSystemProgramAccount(systemProgram common.PublicKey, multiSigners ...common.PublicKey) *Print
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*Print) SetSysvarInstructionsAccount ¶
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Print) SetUpdateAuthorityAccount ¶
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. The update authority of the master edition.
func (*Print) UnmarshalWithDecoder ¶
func (*Print) ValidateAndBuild ¶
func (obj *Print) 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 PrintArgs ¶
type PrintArgs struct {
V1 *PrintArgsV1 `bin:"optional"`
}
PrintArgs Enum
func NewPrintArgs_V1 ¶
func (*PrintArgs) AsV1 ¶
func (obj *PrintArgs) AsV1() PrintArgsV1
func (*PrintArgs) MarshalWithEncoder ¶
type PrintArgsV1 ¶
type PrintArgsV1 struct {
Edition uint64
}
func (*PrintArgsV1) MarshalWithEncoder ¶
func (obj *PrintArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*PrintArgsV1) UnmarshalWithDecoder ¶
func (obj *PrintArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type PrintEditionDoesNotMatchMasterEditionError ¶
type PrintEditionDoesNotMatchMasterEditionError struct{}
PrintEditionDoesNotMatchMasterEditionError Error: 121 `Print Edition does not match Master Edition`
func (PrintEditionDoesNotMatchMasterEditionError) Code ¶
func (e PrintEditionDoesNotMatchMasterEditionError) Code() int
func (PrintEditionDoesNotMatchMasterEditionError) Error ¶
func (e PrintEditionDoesNotMatchMasterEditionError) Error() string
type PrintSupply ¶
type PrintSupply struct { Zero *struct{} `bin:"optional"` Limited *PrintSupplyLimited `bin:"optional"` Unlimited *struct{} `bin:"optional"` }
PrintSupply Enum
func NewPrintSupply_Limited ¶
func NewPrintSupply_Limited(field0 uint64) PrintSupply
func NewPrintSupply_Unlimited ¶
func NewPrintSupply_Unlimited() PrintSupply
func NewPrintSupply_Zero ¶
func NewPrintSupply_Zero() PrintSupply
func (*PrintSupply) AsLimited ¶
func (obj *PrintSupply) AsLimited() PrintSupplyLimited
func (*PrintSupply) IsLimited ¶
func (obj *PrintSupply) IsLimited() bool
func (*PrintSupply) IsUnlimited ¶
func (obj *PrintSupply) IsUnlimited() bool
func (*PrintSupply) IsZero ¶
func (obj *PrintSupply) IsZero() bool
func (*PrintSupply) MarshalWithEncoder ¶
func (obj *PrintSupply) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*PrintSupply) String ¶
func (obj *PrintSupply) String() string
func (*PrintSupply) UnmarshalWithDecoder ¶
func (obj *PrintSupply) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type PrintSupplyLimited ¶
type PrintSupplyLimited struct {
Field0 uint64
}
func (*PrintSupplyLimited) MarshalWithEncoder ¶
func (obj *PrintSupplyLimited) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*PrintSupplyLimited) UnmarshalWithDecoder ¶
func (obj *PrintSupplyLimited) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type PrintingMintAuthorizationAccountMismatchError ¶
type PrintingMintAuthorizationAccountMismatchError struct{}
PrintingMintAuthorizationAccountMismatchError Error: 33 “
func (PrintingMintAuthorizationAccountMismatchError) Code ¶
func (e PrintingMintAuthorizationAccountMismatchError) Code() int
func (PrintingMintAuthorizationAccountMismatchError) Error ¶
func (e PrintingMintAuthorizationAccountMismatchError) Error() string
type PrintingMintDecimalsShouldBeZeroError ¶
type PrintingMintDecimalsShouldBeZeroError struct{}
PrintingMintDecimalsShouldBeZeroError Error: 22 “
func (PrintingMintDecimalsShouldBeZeroError) Code ¶
func (e PrintingMintDecimalsShouldBeZeroError) Code() int
func (PrintingMintDecimalsShouldBeZeroError) Error ¶
func (e PrintingMintDecimalsShouldBeZeroError) Error() string
type PrintingMintMismatchError ¶
type PrintingMintMismatchError struct{}
PrintingMintMismatchError Error: 28 `The Printing mint does not match that on the master edition!`
func (PrintingMintMismatchError) Code ¶
func (e PrintingMintMismatchError) Code() int
func (PrintingMintMismatchError) Error ¶
func (e PrintingMintMismatchError) Error() string
type PrintingMintSupplyMustBeZeroForConversionError ¶
type PrintingMintSupplyMustBeZeroForConversionError struct{}
PrintingMintSupplyMustBeZeroForConversionError Error: 69 `Printing mint supply must be zero for conversion`
func (PrintingMintSupplyMustBeZeroForConversionError) Code ¶
func (e PrintingMintSupplyMustBeZeroForConversionError) Code() int
func (PrintingMintSupplyMustBeZeroForConversionError) Error ¶
func (e PrintingMintSupplyMustBeZeroForConversionError) Error() string
type PrintingWouldBreachMaximumSupplyError ¶
type PrintingWouldBreachMaximumSupplyError struct{}
PrintingWouldBreachMaximumSupplyError Error: 58 “
func (PrintingWouldBreachMaximumSupplyError) Code ¶
func (e PrintingWouldBreachMaximumSupplyError) Code() int
func (PrintingWouldBreachMaximumSupplyError) Error ¶
func (e PrintingWouldBreachMaximumSupplyError) Error() string
type ProgramError ¶
func GetMplTokenMetadataErrorFromCode ¶
func GetMplTokenMetadataErrorFromCode(code int) ProgramError
func GetMplTokenMetadataErrorFromName ¶
func GetMplTokenMetadataErrorFromName(name string) ProgramError
type ProgrammableConfig ¶
type ProgrammableConfig struct {
V1 *ProgrammableConfigV1 `bin:"optional"`
}
ProgrammableConfig Enum
func NewProgrammableConfig_V1 ¶
func NewProgrammableConfig_V1(ruleSet *common.PublicKey) ProgrammableConfig
func (*ProgrammableConfig) AsV1 ¶
func (obj *ProgrammableConfig) AsV1() ProgrammableConfigV1
func (*ProgrammableConfig) IsV1 ¶
func (obj *ProgrammableConfig) IsV1() bool
func (*ProgrammableConfig) MarshalWithEncoder ¶
func (obj *ProgrammableConfig) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*ProgrammableConfig) String ¶
func (obj *ProgrammableConfig) String() string
func (*ProgrammableConfig) UnmarshalWithDecoder ¶
func (obj *ProgrammableConfig) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type ProgrammableConfigV1 ¶
func (*ProgrammableConfigV1) MarshalWithEncoder ¶
func (obj *ProgrammableConfigV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*ProgrammableConfigV1) UnmarshalWithDecoder ¶
func (obj *ProgrammableConfigV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type ProofInfo ¶
type ProofInfo struct {
Proof [][32]uint8
}
ProofInfo Struct
func (*ProofInfo) MarshalWithEncoder ¶
type PuffMetadata ¶
type PuffMetadata struct { // [0] = [WRITE] metadata `Metadata account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
PuffMetadata Instruction
func NewPuffMetadataInstruction ¶
func NewPuffMetadataInstruction( metadata common.PublicKey, ) *PuffMetadata
NewPuffMetadataInstruction
Parameters:
metadata: Metadata account
func NewPuffMetadataInstructionBuilder ¶
func NewPuffMetadataInstructionBuilder() *PuffMetadata
NewPuffMetadataInstructionBuilder creates a new `PuffMetadata` instruction builder.
func (*PuffMetadata) Build ¶
func (obj *PuffMetadata) Build() *Instruction
func (*PuffMetadata) EncodeToTree ¶
func (obj *PuffMetadata) EncodeToTree(parent treeout.Branches)
func (*PuffMetadata) GetMetadataAccount ¶
func (obj *PuffMetadata) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*PuffMetadata) MarshalWithEncoder ¶
func (obj *PuffMetadata) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*PuffMetadata) SetMetadataAccount ¶
func (obj *PuffMetadata) SetMetadataAccount(metadata common.PublicKey, multiSigners ...common.PublicKey) *PuffMetadata
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*PuffMetadata) SetProgramId ¶
func (obj *PuffMetadata) SetProgramId(programId *common.PublicKey) *PuffMetadata
func (*PuffMetadata) UnmarshalWithDecoder ¶
func (obj *PuffMetadata) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*PuffMetadata) Validate ¶
func (obj *PuffMetadata) Validate() error
func (*PuffMetadata) ValidateAndBuild ¶
func (obj *PuffMetadata) 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 RemoveCreatorVerification ¶
type RemoveCreatorVerification struct { // [0] = [WRITE] metadata `Metadata (pda of ['metadata', program id, mint id])` // [1] = [SIGNER] creator `Creator` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
RemoveCreatorVerification Instruction
func NewRemoveCreatorVerificationInstruction ¶
func NewRemoveCreatorVerificationInstruction( metadata common.PublicKey, creator common.PublicKey, ) *RemoveCreatorVerification
NewRemoveCreatorVerificationInstruction
Parameters:
metadata: Metadata (pda of ['metadata', program id, mint id]) creator: Creator
func NewRemoveCreatorVerificationInstructionBuilder ¶
func NewRemoveCreatorVerificationInstructionBuilder() *RemoveCreatorVerification
NewRemoveCreatorVerificationInstructionBuilder creates a new `RemoveCreatorVerification` instruction builder.
func (*RemoveCreatorVerification) Build ¶
func (obj *RemoveCreatorVerification) Build() *Instruction
func (*RemoveCreatorVerification) EncodeToTree ¶
func (obj *RemoveCreatorVerification) EncodeToTree(parent treeout.Branches)
func (*RemoveCreatorVerification) GetCreatorAccount ¶
func (obj *RemoveCreatorVerification) GetCreatorAccount() *common.AccountMeta
GetCreatorAccount gets the "creator" parameter. Creator
func (*RemoveCreatorVerification) GetMetadataAccount ¶
func (obj *RemoveCreatorVerification) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])
func (*RemoveCreatorVerification) MarshalWithEncoder ¶
func (obj *RemoveCreatorVerification) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*RemoveCreatorVerification) SetCreatorAccount ¶
func (obj *RemoveCreatorVerification) SetCreatorAccount(creator common.PublicKey, multiSigners ...common.PublicKey) *RemoveCreatorVerification
SetCreatorAccount sets the "creator" parameter. Creator
func (*RemoveCreatorVerification) SetMetadataAccount ¶
func (obj *RemoveCreatorVerification) SetMetadataAccount(metadata common.PublicKey) *RemoveCreatorVerification
SetMetadataAccount sets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])
func (*RemoveCreatorVerification) SetProgramId ¶
func (obj *RemoveCreatorVerification) SetProgramId(programId *common.PublicKey) *RemoveCreatorVerification
func (*RemoveCreatorVerification) UnmarshalWithDecoder ¶
func (obj *RemoveCreatorVerification) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*RemoveCreatorVerification) Validate ¶
func (obj *RemoveCreatorVerification) Validate() error
func (*RemoveCreatorVerification) ValidateAndBuild ¶
func (obj *RemoveCreatorVerification) 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 RemovedError ¶
type RemovedError struct{}
RemovedError Error: 75 `This instruction was deprecated in a previous release and is now removed`
func (RemovedError) Code ¶
func (e RemovedError) Code() int
func (RemovedError) Error ¶
func (e RemovedError) Error() string
type Reservation ¶
Reservation Struct
func (*Reservation) MarshalWithEncoder ¶
func (obj *Reservation) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*Reservation) UnmarshalWithDecoder ¶
func (obj *Reservation) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type ReservationAlreadyMadeError ¶
type ReservationAlreadyMadeError struct{}
ReservationAlreadyMadeError Error: 49 “
func (ReservationAlreadyMadeError) Code ¶
func (e ReservationAlreadyMadeError) Code() int
func (ReservationAlreadyMadeError) Error ¶
func (e ReservationAlreadyMadeError) Error() string
type ReservationArrayShouldBeSizeOneError ¶
type ReservationArrayShouldBeSizeOneError struct{}
ReservationArrayShouldBeSizeOneError Error: 72 “
func (ReservationArrayShouldBeSizeOneError) Code ¶
func (e ReservationArrayShouldBeSizeOneError) Code() int
func (ReservationArrayShouldBeSizeOneError) Error ¶
func (e ReservationArrayShouldBeSizeOneError) Error() string
type ReservationBreachesMaximumSupplyError ¶
type ReservationBreachesMaximumSupplyError struct{}
ReservationBreachesMaximumSupplyError Error: 52 “
func (ReservationBreachesMaximumSupplyError) Code ¶
func (e ReservationBreachesMaximumSupplyError) Code() int
func (ReservationBreachesMaximumSupplyError) Error ¶
func (e ReservationBreachesMaximumSupplyError) Error() string
type ReservationDoesNotExistError ¶
type ReservationDoesNotExistError struct{}
ReservationDoesNotExistError Error: 47 “
func (ReservationDoesNotExistError) Code ¶
func (e ReservationDoesNotExistError) Code() int
func (ReservationDoesNotExistError) Error ¶
func (e ReservationDoesNotExistError) Error() string
type ReservationExistsError ¶
type ReservationExistsError struct{}
ReservationExistsError Error: 46 “
func (ReservationExistsError) Code ¶
func (e ReservationExistsError) Code() int
func (ReservationExistsError) Error ¶
func (e ReservationExistsError) Error() string
type ReservationListDeprecatedError ¶
type ReservationListDeprecatedError struct{}
ReservationListDeprecatedError Error: 120 `Reservation List is Deprecated`
func (ReservationListDeprecatedError) Code ¶
func (e ReservationListDeprecatedError) Code() int
func (ReservationListDeprecatedError) Error ¶
func (e ReservationListDeprecatedError) Error() string
type ReservationListV1 ¶
type ReservationListV1 struct { Key Key MasterEdition common.PublicKey SupplySnapshot *uint64 `bin:"optional"` Reservations []ReservationV1 }
ReservationListV1 Struct
func (*ReservationListV1) MarshalWithEncoder ¶
func (obj *ReservationListV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*ReservationListV1) UnmarshalWithDecoder ¶
func (obj *ReservationListV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type ReservationListV2 ¶
type ReservationListV2 struct { Key Key MasterEdition common.PublicKey SupplySnapshot *uint64 `bin:"optional"` Reservations []Reservation TotalReservationSpots uint64 CurrentReservationSpots uint64 }
ReservationListV2 Struct
func (*ReservationListV2) MarshalWithEncoder ¶
func (obj *ReservationListV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*ReservationListV2) UnmarshalWithDecoder ¶
func (obj *ReservationListV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type ReservationNotCompleteError ¶
type ReservationNotCompleteError struct{}
ReservationNotCompleteError Error: 65 “
func (ReservationNotCompleteError) Code ¶
func (e ReservationNotCompleteError) Code() int
func (ReservationNotCompleteError) Error ¶
func (e ReservationNotCompleteError) Error() string
type ReservationNotSetError ¶
type ReservationNotSetError struct{}
ReservationNotSetError Error: 48 “
func (ReservationNotSetError) Code ¶
func (e ReservationNotSetError) Code() int
func (ReservationNotSetError) Error ¶
func (e ReservationNotSetError) Error() string
type ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError ¶
type ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError struct{}
ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError Error: 61 “
func (ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError) Code ¶
func (e ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError) Code() int
func (ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError) Error ¶
func (e ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError) Error() string
type ReservationV1 ¶
ReservationV1 Struct
func (*ReservationV1) MarshalWithEncoder ¶
func (obj *ReservationV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*ReservationV1) UnmarshalWithDecoder ¶
func (obj *ReservationV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type Revoke ¶
type Revoke struct { RevokeArgs *RevokeArgs // [0] = [WRITE] delegateRecord `Delegate record account` // [1] = [] delegate `Owner of the delegated account` // [2] = [WRITE] metadata `Metadata account` // [3] = [] masterEdition `Master Edition account` // [4] = [WRITE] tokenRecord `Token record account` // [5] = [] mint `Mint of metadata` // [6] = [WRITE] token `Token account of mint` // [7] = [SIGNER] authority `Update authority or token owner` // [8] = [WRITE, SIGNER] payer `Payer` // [9] = [] systemProgram `System Program` // [10] = [] sysvarInstructions `Instructions sysvar account` // [11] = [] splTokenProgram `SPL Token Program` // [12] = [] authorizationRulesProgram `Token Authorization Rules Program` // [13] = [] authorizationRules `Token Authorization Rules account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Revoke Instruction
func NewRevokeInstruction ¶
func NewRevokeInstruction( revokeArgs RevokeArgs, delegateRecord common.PublicKey, delegate common.PublicKey, metadata common.PublicKey, masterEdition common.PublicKey, tokenRecord common.PublicKey, mint common.PublicKey, token common.PublicKey, authority common.PublicKey, payer common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, splTokenProgram common.PublicKey, authorizationRulesProgram common.PublicKey, authorizationRules common.PublicKey, ) *Revoke
NewRevokeInstruction
Parameters:
revokeArgs: delegateRecord: Delegate record account delegate: Owner of the delegated account metadata: Metadata account masterEdition: Master Edition account tokenRecord: Token record account mint: Mint of metadata token: Token account of mint authority: Update authority or token owner payer: Payer systemProgram: System Program sysvarInstructions: Instructions sysvar account splTokenProgram: SPL Token Program authorizationRulesProgram: Token Authorization Rules Program authorizationRules: Token Authorization Rules account
func NewRevokeInstructionBuilder ¶
func NewRevokeInstructionBuilder() *Revoke
NewRevokeInstructionBuilder creates a new `Revoke` instruction builder.
func (*Revoke) Build ¶
func (obj *Revoke) Build() *Instruction
func (*Revoke) EncodeToTree ¶
func (*Revoke) GetAuthorityAccount ¶
func (obj *Revoke) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Update authority or token owner
func (*Revoke) GetAuthorizationRulesAccount ¶
func (obj *Revoke) GetAuthorizationRulesAccount() *common.AccountMeta
GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account
func (*Revoke) GetAuthorizationRulesProgramAccount ¶
func (obj *Revoke) GetAuthorizationRulesProgramAccount() *common.AccountMeta
GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Revoke) GetDelegateAccount ¶
func (obj *Revoke) GetDelegateAccount() *common.AccountMeta
GetDelegateAccount gets the "delegate" parameter. Owner of the delegated account
func (*Revoke) GetDelegateRecordAccount ¶
func (obj *Revoke) GetDelegateRecordAccount() *common.AccountMeta
GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record account
func (*Revoke) GetMasterEditionAccount ¶
func (obj *Revoke) GetMasterEditionAccount() *common.AccountMeta
GetMasterEditionAccount gets the "masterEdition" parameter. Master Edition account
func (*Revoke) GetMetadataAccount ¶
func (obj *Revoke) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*Revoke) GetMintAccount ¶
func (obj *Revoke) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of metadata
func (*Revoke) GetPayerAccount ¶
func (obj *Revoke) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*Revoke) GetSplTokenProgramAccount ¶
func (obj *Revoke) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program
func (*Revoke) GetSystemProgramAccount ¶
func (obj *Revoke) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System Program
func (*Revoke) GetSysvarInstructionsAccount ¶
func (obj *Revoke) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Revoke) GetTokenAccount ¶
func (obj *Revoke) GetTokenAccount() *common.AccountMeta
GetTokenAccount gets the "token" parameter. Token account of mint
func (*Revoke) GetTokenRecordAccount ¶
func (obj *Revoke) GetTokenRecordAccount() *common.AccountMeta
GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account
func (*Revoke) MarshalWithEncoder ¶
func (*Revoke) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Update authority or token owner
func (*Revoke) SetAuthorizationRulesAccount ¶
func (obj *Revoke) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Revoke
SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account
func (*Revoke) SetAuthorizationRulesProgramAccount ¶
func (obj *Revoke) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Revoke
SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Revoke) SetDelegateAccount ¶
SetDelegateAccount sets the "delegate" parameter. Owner of the delegated account
func (*Revoke) SetDelegateRecordAccount ¶
SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record account
func (*Revoke) SetMasterEditionAccount ¶
SetMasterEditionAccount sets the "masterEdition" parameter. Master Edition account
func (*Revoke) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*Revoke) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint of metadata
func (*Revoke) SetPayerAccount ¶
SetPayerAccount sets the "payer" parameter. Payer
func (*Revoke) SetRevokeArgs ¶
func (obj *Revoke) SetRevokeArgs(revokeArgs RevokeArgs) *Revoke
SetRevokeArgs sets the "revokeArgs" parameter.
func (*Revoke) SetSplTokenProgramAccount ¶
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program
func (*Revoke) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System Program
func (*Revoke) SetSysvarInstructionsAccount ¶
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Revoke) SetTokenAccount ¶
SetTokenAccount sets the "token" parameter. Token account of mint
func (*Revoke) SetTokenRecordAccount ¶
SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account
func (*Revoke) UnmarshalWithDecoder ¶
func (*Revoke) ValidateAndBuild ¶
func (obj *Revoke) 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 RevokeArgs ¶
RevokeArgs Enum
const ( RevokeArgsCollectionV1 RevokeArgs = iota RevokeArgsSaleV1 RevokeArgsTransferV1 RevokeArgsDataV1 RevokeArgsUtilityV1 RevokeArgsStakingV1 RevokeArgsStandardV1 RevokeArgsLockedTransferV1 RevokeArgsProgrammableConfigV1 RevokeArgsMigrationV1 RevokeArgsAuthorityItemV1 RevokeArgsDataItemV1 RevokeArgsCollectionItemV1 RevokeArgsProgrammableConfigItemV1 )
func (RevokeArgs) String ¶
func (value RevokeArgs) String() string
type RevokeCollectionAuthority ¶
type RevokeCollectionAuthority struct { // [0] = [WRITE] collectionAuthorityRecord `Collection Authority Record PDA` // [1] = [WRITE] delegateAuthority `Delegated Collection Authority` // [2] = [WRITE, SIGNER] revokeAuthority `Update Authority, or Delegated Authority, of Collection NFT` // [3] = [] metadata `Metadata account` // [4] = [] mint `Mint of Metadata` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
RevokeCollectionAuthority Instruction
func NewRevokeCollectionAuthorityInstruction ¶
func NewRevokeCollectionAuthorityInstruction( collectionAuthorityRecord common.PublicKey, delegateAuthority common.PublicKey, revokeAuthority common.PublicKey, metadata common.PublicKey, mint common.PublicKey, ) *RevokeCollectionAuthority
NewRevokeCollectionAuthorityInstruction
Parameters:
collectionAuthorityRecord: Collection Authority Record PDA delegateAuthority: Delegated Collection Authority revokeAuthority: Update Authority, or Delegated Authority, of Collection NFT metadata: Metadata account mint: Mint of Metadata
func NewRevokeCollectionAuthorityInstructionBuilder ¶
func NewRevokeCollectionAuthorityInstructionBuilder() *RevokeCollectionAuthority
NewRevokeCollectionAuthorityInstructionBuilder creates a new `RevokeCollectionAuthority` instruction builder.
func (*RevokeCollectionAuthority) Build ¶
func (obj *RevokeCollectionAuthority) Build() *Instruction
func (*RevokeCollectionAuthority) EncodeToTree ¶
func (obj *RevokeCollectionAuthority) EncodeToTree(parent treeout.Branches)
func (*RevokeCollectionAuthority) GetCollectionAuthorityRecordAccount ¶
func (obj *RevokeCollectionAuthority) GetCollectionAuthorityRecordAccount() *common.AccountMeta
GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*RevokeCollectionAuthority) GetDelegateAuthorityAccount ¶
func (obj *RevokeCollectionAuthority) GetDelegateAuthorityAccount() *common.AccountMeta
GetDelegateAuthorityAccount gets the "delegateAuthority" parameter. Delegated Collection Authority
func (*RevokeCollectionAuthority) GetMetadataAccount ¶
func (obj *RevokeCollectionAuthority) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*RevokeCollectionAuthority) GetMintAccount ¶
func (obj *RevokeCollectionAuthority) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of Metadata
func (*RevokeCollectionAuthority) GetRevokeAuthorityAccount ¶
func (obj *RevokeCollectionAuthority) GetRevokeAuthorityAccount() *common.AccountMeta
GetRevokeAuthorityAccount gets the "revokeAuthority" parameter. Update Authority, or Delegated Authority, of Collection NFT
func (*RevokeCollectionAuthority) MarshalWithEncoder ¶
func (obj *RevokeCollectionAuthority) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*RevokeCollectionAuthority) SetCollectionAuthorityRecordAccount ¶
func (obj *RevokeCollectionAuthority) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey) *RevokeCollectionAuthority
SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*RevokeCollectionAuthority) SetDelegateAuthorityAccount ¶
func (obj *RevokeCollectionAuthority) SetDelegateAuthorityAccount(delegateAuthority common.PublicKey) *RevokeCollectionAuthority
SetDelegateAuthorityAccount sets the "delegateAuthority" parameter. Delegated Collection Authority
func (*RevokeCollectionAuthority) SetMetadataAccount ¶
func (obj *RevokeCollectionAuthority) SetMetadataAccount(metadata common.PublicKey) *RevokeCollectionAuthority
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*RevokeCollectionAuthority) SetMintAccount ¶
func (obj *RevokeCollectionAuthority) SetMintAccount(mint common.PublicKey, multiSigners ...common.PublicKey) *RevokeCollectionAuthority
SetMintAccount sets the "mint" parameter. Mint of Metadata
func (*RevokeCollectionAuthority) SetProgramId ¶
func (obj *RevokeCollectionAuthority) SetProgramId(programId *common.PublicKey) *RevokeCollectionAuthority
func (*RevokeCollectionAuthority) SetRevokeAuthorityAccount ¶
func (obj *RevokeCollectionAuthority) SetRevokeAuthorityAccount(revokeAuthority common.PublicKey) *RevokeCollectionAuthority
SetRevokeAuthorityAccount sets the "revokeAuthority" parameter. Update Authority, or Delegated Authority, of Collection NFT
func (*RevokeCollectionAuthority) UnmarshalWithDecoder ¶
func (obj *RevokeCollectionAuthority) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*RevokeCollectionAuthority) Validate ¶
func (obj *RevokeCollectionAuthority) Validate() error
func (*RevokeCollectionAuthority) ValidateAndBuild ¶
func (obj *RevokeCollectionAuthority) 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 RevokeCollectionAuthoritySignerIncorrectError ¶
type RevokeCollectionAuthoritySignerIncorrectError struct{}
RevokeCollectionAuthoritySignerIncorrectError Error: 99 `Revoke Collection Authority signer is incorrect`
func (RevokeCollectionAuthoritySignerIncorrectError) Code ¶
func (e RevokeCollectionAuthoritySignerIncorrectError) Code() int
func (RevokeCollectionAuthoritySignerIncorrectError) Error ¶
func (e RevokeCollectionAuthoritySignerIncorrectError) Error() string
type RevokeUseAuthority ¶
type RevokeUseAuthority struct { // [0] = [WRITE] useAuthorityRecord `Use Authority Record PDA` // [1] = [WRITE, SIGNER] owner `Owner` // [2] = [] user `A Use Authority` // [3] = [WRITE] ownerTokenAccount `Owned Token Account Of Mint` // [4] = [] mint `Mint of Metadata` // [5] = [] metadata `Metadata account` // [6] = [] tokenProgram `Token program` // [7] = [] systemProgram `System program` // [8] = [] rent `Rent info` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
RevokeUseAuthority Instruction
func NewRevokeUseAuthorityInstruction ¶
func NewRevokeUseAuthorityInstruction( useAuthorityRecord common.PublicKey, owner common.PublicKey, user common.PublicKey, ownerTokenAccount common.PublicKey, mint common.PublicKey, metadata common.PublicKey, tokenProgram common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, ) *RevokeUseAuthority
NewRevokeUseAuthorityInstruction
Parameters:
useAuthorityRecord: Use Authority Record PDA owner: Owner user: A Use Authority ownerTokenAccount: Owned Token Account Of Mint mint: Mint of Metadata metadata: Metadata account tokenProgram: Token program systemProgram: System program rent: Rent info
func NewRevokeUseAuthorityInstructionBuilder ¶
func NewRevokeUseAuthorityInstructionBuilder() *RevokeUseAuthority
NewRevokeUseAuthorityInstructionBuilder creates a new `RevokeUseAuthority` instruction builder.
func (*RevokeUseAuthority) Build ¶
func (obj *RevokeUseAuthority) Build() *Instruction
func (*RevokeUseAuthority) EncodeToTree ¶
func (obj *RevokeUseAuthority) EncodeToTree(parent treeout.Branches)
func (*RevokeUseAuthority) GetMetadataAccount ¶
func (obj *RevokeUseAuthority) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*RevokeUseAuthority) GetMintAccount ¶
func (obj *RevokeUseAuthority) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of Metadata
func (*RevokeUseAuthority) GetOwnerAccount ¶
func (obj *RevokeUseAuthority) GetOwnerAccount() *common.AccountMeta
GetOwnerAccount gets the "owner" parameter. Owner
func (*RevokeUseAuthority) GetOwnerTokenAccountAccount ¶
func (obj *RevokeUseAuthority) GetOwnerTokenAccountAccount() *common.AccountMeta
GetOwnerTokenAccountAccount gets the "ownerTokenAccount" parameter. Owned Token Account Of Mint
func (*RevokeUseAuthority) GetRentAccount ¶
func (obj *RevokeUseAuthority) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*RevokeUseAuthority) GetSystemProgramAccount ¶
func (obj *RevokeUseAuthority) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*RevokeUseAuthority) GetTokenProgramAccount ¶
func (obj *RevokeUseAuthority) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token program
func (*RevokeUseAuthority) GetUseAuthorityRecordAccount ¶
func (obj *RevokeUseAuthority) GetUseAuthorityRecordAccount() *common.AccountMeta
GetUseAuthorityRecordAccount gets the "useAuthorityRecord" parameter. Use Authority Record PDA
func (*RevokeUseAuthority) GetUserAccount ¶
func (obj *RevokeUseAuthority) GetUserAccount() *common.AccountMeta
GetUserAccount gets the "user" parameter. A Use Authority
func (*RevokeUseAuthority) MarshalWithEncoder ¶
func (obj *RevokeUseAuthority) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*RevokeUseAuthority) SetMetadataAccount ¶
func (obj *RevokeUseAuthority) SetMetadataAccount(metadata common.PublicKey) *RevokeUseAuthority
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*RevokeUseAuthority) SetMintAccount ¶
func (obj *RevokeUseAuthority) SetMintAccount(mint common.PublicKey) *RevokeUseAuthority
SetMintAccount sets the "mint" parameter. Mint of Metadata
func (*RevokeUseAuthority) SetOwnerAccount ¶
func (obj *RevokeUseAuthority) SetOwnerAccount(owner common.PublicKey) *RevokeUseAuthority
SetOwnerAccount sets the "owner" parameter. Owner
func (*RevokeUseAuthority) SetOwnerTokenAccountAccount ¶
func (obj *RevokeUseAuthority) SetOwnerTokenAccountAccount(ownerTokenAccount common.PublicKey) *RevokeUseAuthority
SetOwnerTokenAccountAccount sets the "ownerTokenAccount" parameter. Owned Token Account Of Mint
func (*RevokeUseAuthority) SetProgramId ¶
func (obj *RevokeUseAuthority) SetProgramId(programId *common.PublicKey) *RevokeUseAuthority
func (*RevokeUseAuthority) SetRentAccount ¶
func (obj *RevokeUseAuthority) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *RevokeUseAuthority
SetRentAccount sets the "rent" parameter. Rent info
func (*RevokeUseAuthority) SetSystemProgramAccount ¶
func (obj *RevokeUseAuthority) SetSystemProgramAccount(systemProgram common.PublicKey) *RevokeUseAuthority
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*RevokeUseAuthority) SetTokenProgramAccount ¶
func (obj *RevokeUseAuthority) SetTokenProgramAccount(tokenProgram common.PublicKey) *RevokeUseAuthority
SetTokenProgramAccount sets the "tokenProgram" parameter. Token program
func (*RevokeUseAuthority) SetUseAuthorityRecordAccount ¶
func (obj *RevokeUseAuthority) SetUseAuthorityRecordAccount(useAuthorityRecord common.PublicKey) *RevokeUseAuthority
SetUseAuthorityRecordAccount sets the "useAuthorityRecord" parameter. Use Authority Record PDA
func (*RevokeUseAuthority) SetUserAccount ¶
func (obj *RevokeUseAuthority) SetUserAccount(user common.PublicKey) *RevokeUseAuthority
SetUserAccount sets the "user" parameter. A Use Authority
func (*RevokeUseAuthority) UnmarshalWithDecoder ¶
func (obj *RevokeUseAuthority) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*RevokeUseAuthority) Validate ¶
func (obj *RevokeUseAuthority) Validate() error
func (*RevokeUseAuthority) ValidateAndBuild ¶
func (obj *RevokeUseAuthority) 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 RuleSetToggle ¶
type RuleSetToggle struct { None *struct{} `bin:"optional"` Clear *struct{} `bin:"optional"` Set *RuleSetToggleSet `bin:"optional"` }
RuleSetToggle Enum
func NewRuleSetToggle_Clear ¶
func NewRuleSetToggle_Clear() RuleSetToggle
func NewRuleSetToggle_None ¶
func NewRuleSetToggle_None() RuleSetToggle
func NewRuleSetToggle_Set ¶
func NewRuleSetToggle_Set(field0 common.PublicKey) RuleSetToggle
func (*RuleSetToggle) AsSet ¶
func (obj *RuleSetToggle) AsSet() RuleSetToggleSet
func (*RuleSetToggle) IsClear ¶
func (obj *RuleSetToggle) IsClear() bool
func (*RuleSetToggle) IsNone ¶
func (obj *RuleSetToggle) IsNone() bool
func (*RuleSetToggle) IsSet ¶
func (obj *RuleSetToggle) IsSet() bool
func (*RuleSetToggle) MarshalWithEncoder ¶
func (obj *RuleSetToggle) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*RuleSetToggle) String ¶
func (obj *RuleSetToggle) String() string
func (*RuleSetToggle) UnmarshalWithDecoder ¶
func (obj *RuleSetToggle) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type RuleSetToggleSet ¶
func (*RuleSetToggleSet) MarshalWithEncoder ¶
func (obj *RuleSetToggleSet) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*RuleSetToggleSet) UnmarshalWithDecoder ¶
func (obj *RuleSetToggleSet) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type SeedsVec ¶
type SeedsVec struct {
Seeds []byte
}
SeedsVec Struct
func (*SeedsVec) MarshalWithEncoder ¶
type SetAndVerifyCollection ¶
type SetAndVerifyCollection struct { // [0] = [WRITE] metadata `Metadata account` // [1] = [WRITE, SIGNER] collectionAuthority `Collection Update authority` // [2] = [WRITE, SIGNER] payer `Payer` // [3] = [] updateAuthority `Update Authority of Collection NFT and NFT` // [4] = [] collectionMint `Mint of the Collection` // [5] = [] collection `Metadata Account of the Collection` // [6] = [] collectionMasterEditionAccount `MasterEdition2 Account of the Collection Token` // [7] = [] collectionAuthorityRecord `Collection Authority Record PDA` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
SetAndVerifyCollection Instruction
func NewSetAndVerifyCollectionInstruction ¶
func NewSetAndVerifyCollectionInstruction( metadata common.PublicKey, collectionAuthority common.PublicKey, payer common.PublicKey, updateAuthority common.PublicKey, collectionMint common.PublicKey, collection common.PublicKey, collectionMasterEditionAccount common.PublicKey, collectionAuthorityRecord common.PublicKey, ) *SetAndVerifyCollection
NewSetAndVerifyCollectionInstruction
Parameters:
metadata: Metadata account collectionAuthority: Collection Update authority payer: Payer updateAuthority: Update Authority of Collection NFT and NFT collectionMint: Mint of the Collection collection: Metadata Account of the Collection collectionMasterEditionAccount: MasterEdition2 Account of the Collection Token collectionAuthorityRecord: Collection Authority Record PDA
func NewSetAndVerifyCollectionInstructionBuilder ¶
func NewSetAndVerifyCollectionInstructionBuilder() *SetAndVerifyCollection
NewSetAndVerifyCollectionInstructionBuilder creates a new `SetAndVerifyCollection` instruction builder.
func (*SetAndVerifyCollection) Build ¶
func (obj *SetAndVerifyCollection) Build() *Instruction
func (*SetAndVerifyCollection) EncodeToTree ¶
func (obj *SetAndVerifyCollection) EncodeToTree(parent treeout.Branches)
func (*SetAndVerifyCollection) GetCollectionAccount ¶
func (obj *SetAndVerifyCollection) GetCollectionAccount() *common.AccountMeta
GetCollectionAccount gets the "collection" parameter. Metadata Account of the Collection
func (*SetAndVerifyCollection) GetCollectionAuthorityAccount ¶
func (obj *SetAndVerifyCollection) GetCollectionAuthorityAccount() *common.AccountMeta
GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Update authority
func (*SetAndVerifyCollection) GetCollectionAuthorityRecordAccount ¶
func (obj *SetAndVerifyCollection) GetCollectionAuthorityRecordAccount() *common.AccountMeta
GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*SetAndVerifyCollection) GetCollectionMasterEditionAccountAccount ¶
func (obj *SetAndVerifyCollection) GetCollectionMasterEditionAccountAccount() *common.AccountMeta
GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token
func (*SetAndVerifyCollection) GetCollectionMintAccount ¶
func (obj *SetAndVerifyCollection) GetCollectionMintAccount() *common.AccountMeta
GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection
func (*SetAndVerifyCollection) GetMetadataAccount ¶
func (obj *SetAndVerifyCollection) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*SetAndVerifyCollection) GetPayerAccount ¶
func (obj *SetAndVerifyCollection) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*SetAndVerifyCollection) GetUpdateAuthorityAccount ¶
func (obj *SetAndVerifyCollection) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update Authority of Collection NFT and NFT
func (*SetAndVerifyCollection) MarshalWithEncoder ¶
func (obj *SetAndVerifyCollection) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*SetAndVerifyCollection) SetCollectionAccount ¶
func (obj *SetAndVerifyCollection) SetCollectionAccount(collection common.PublicKey) *SetAndVerifyCollection
SetCollectionAccount sets the "collection" parameter. Metadata Account of the Collection
func (*SetAndVerifyCollection) SetCollectionAuthorityAccount ¶
func (obj *SetAndVerifyCollection) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *SetAndVerifyCollection
SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Update authority
func (*SetAndVerifyCollection) SetCollectionAuthorityRecordAccount ¶
func (obj *SetAndVerifyCollection) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *SetAndVerifyCollection
SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*SetAndVerifyCollection) SetCollectionMasterEditionAccountAccount ¶
func (obj *SetAndVerifyCollection) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *SetAndVerifyCollection
SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token
func (*SetAndVerifyCollection) SetCollectionMintAccount ¶
func (obj *SetAndVerifyCollection) SetCollectionMintAccount(collectionMint common.PublicKey) *SetAndVerifyCollection
SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection
func (*SetAndVerifyCollection) SetMetadataAccount ¶
func (obj *SetAndVerifyCollection) SetMetadataAccount(metadata common.PublicKey) *SetAndVerifyCollection
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*SetAndVerifyCollection) SetPayerAccount ¶
func (obj *SetAndVerifyCollection) SetPayerAccount(payer common.PublicKey) *SetAndVerifyCollection
SetPayerAccount sets the "payer" parameter. Payer
func (*SetAndVerifyCollection) SetProgramId ¶
func (obj *SetAndVerifyCollection) SetProgramId(programId *common.PublicKey) *SetAndVerifyCollection
func (*SetAndVerifyCollection) SetUpdateAuthorityAccount ¶
func (obj *SetAndVerifyCollection) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *SetAndVerifyCollection
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update Authority of Collection NFT and NFT
func (*SetAndVerifyCollection) UnmarshalWithDecoder ¶
func (obj *SetAndVerifyCollection) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*SetAndVerifyCollection) Validate ¶
func (obj *SetAndVerifyCollection) Validate() error
func (*SetAndVerifyCollection) ValidateAndBuild ¶
func (obj *SetAndVerifyCollection) 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 SetAndVerifySizedCollectionItem ¶
type SetAndVerifySizedCollectionItem struct { // [0] = [WRITE] metadata `Metadata account` // [1] = [SIGNER] collectionAuthority `Collection Update authority` // [2] = [WRITE, SIGNER] payer `payer` // [3] = [] updateAuthority `Update Authority of Collection NFT and NFT` // [4] = [] collectionMint `Mint of the Collection` // [5] = [WRITE] collection `Metadata Account of the Collection` // [6] = [] collectionMasterEditionAccount `MasterEdition2 Account of the Collection Token` // [7] = [] collectionAuthorityRecord `Collection Authority Record PDA` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
SetAndVerifySizedCollectionItem Instruction
func NewSetAndVerifySizedCollectionItemInstruction ¶
func NewSetAndVerifySizedCollectionItemInstruction( metadata common.PublicKey, collectionAuthority common.PublicKey, payer common.PublicKey, updateAuthority common.PublicKey, collectionMint common.PublicKey, collection common.PublicKey, collectionMasterEditionAccount common.PublicKey, collectionAuthorityRecord common.PublicKey, ) *SetAndVerifySizedCollectionItem
NewSetAndVerifySizedCollectionItemInstruction
Parameters:
metadata: Metadata account collectionAuthority: Collection Update authority payer: payer updateAuthority: Update Authority of Collection NFT and NFT collectionMint: Mint of the Collection collection: Metadata Account of the Collection collectionMasterEditionAccount: MasterEdition2 Account of the Collection Token collectionAuthorityRecord: Collection Authority Record PDA
func NewSetAndVerifySizedCollectionItemInstructionBuilder ¶
func NewSetAndVerifySizedCollectionItemInstructionBuilder() *SetAndVerifySizedCollectionItem
NewSetAndVerifySizedCollectionItemInstructionBuilder creates a new `SetAndVerifySizedCollectionItem` instruction builder.
func (*SetAndVerifySizedCollectionItem) Build ¶
func (obj *SetAndVerifySizedCollectionItem) Build() *Instruction
func (*SetAndVerifySizedCollectionItem) EncodeToTree ¶
func (obj *SetAndVerifySizedCollectionItem) EncodeToTree(parent treeout.Branches)
func (*SetAndVerifySizedCollectionItem) GetCollectionAccount ¶
func (obj *SetAndVerifySizedCollectionItem) GetCollectionAccount() *common.AccountMeta
GetCollectionAccount gets the "collection" parameter. Metadata Account of the Collection
func (*SetAndVerifySizedCollectionItem) GetCollectionAuthorityAccount ¶
func (obj *SetAndVerifySizedCollectionItem) GetCollectionAuthorityAccount() *common.AccountMeta
GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Update authority
func (*SetAndVerifySizedCollectionItem) GetCollectionAuthorityRecordAccount ¶
func (obj *SetAndVerifySizedCollectionItem) GetCollectionAuthorityRecordAccount() *common.AccountMeta
GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*SetAndVerifySizedCollectionItem) GetCollectionMasterEditionAccountAccount ¶
func (obj *SetAndVerifySizedCollectionItem) GetCollectionMasterEditionAccountAccount() *common.AccountMeta
GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token
func (*SetAndVerifySizedCollectionItem) GetCollectionMintAccount ¶
func (obj *SetAndVerifySizedCollectionItem) GetCollectionMintAccount() *common.AccountMeta
GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection
func (*SetAndVerifySizedCollectionItem) GetMetadataAccount ¶
func (obj *SetAndVerifySizedCollectionItem) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*SetAndVerifySizedCollectionItem) GetPayerAccount ¶
func (obj *SetAndVerifySizedCollectionItem) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*SetAndVerifySizedCollectionItem) GetUpdateAuthorityAccount ¶
func (obj *SetAndVerifySizedCollectionItem) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update Authority of Collection NFT and NFT
func (*SetAndVerifySizedCollectionItem) MarshalWithEncoder ¶
func (obj *SetAndVerifySizedCollectionItem) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*SetAndVerifySizedCollectionItem) SetCollectionAccount ¶
func (obj *SetAndVerifySizedCollectionItem) SetCollectionAccount(collection common.PublicKey) *SetAndVerifySizedCollectionItem
SetCollectionAccount sets the "collection" parameter. Metadata Account of the Collection
func (*SetAndVerifySizedCollectionItem) SetCollectionAuthorityAccount ¶
func (obj *SetAndVerifySizedCollectionItem) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *SetAndVerifySizedCollectionItem
SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Update authority
func (*SetAndVerifySizedCollectionItem) SetCollectionAuthorityRecordAccount ¶
func (obj *SetAndVerifySizedCollectionItem) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *SetAndVerifySizedCollectionItem
SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*SetAndVerifySizedCollectionItem) SetCollectionMasterEditionAccountAccount ¶
func (obj *SetAndVerifySizedCollectionItem) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *SetAndVerifySizedCollectionItem
SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token
func (*SetAndVerifySizedCollectionItem) SetCollectionMintAccount ¶
func (obj *SetAndVerifySizedCollectionItem) SetCollectionMintAccount(collectionMint common.PublicKey) *SetAndVerifySizedCollectionItem
SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection
func (*SetAndVerifySizedCollectionItem) SetMetadataAccount ¶
func (obj *SetAndVerifySizedCollectionItem) SetMetadataAccount(metadata common.PublicKey) *SetAndVerifySizedCollectionItem
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*SetAndVerifySizedCollectionItem) SetPayerAccount ¶
func (obj *SetAndVerifySizedCollectionItem) SetPayerAccount(payer common.PublicKey) *SetAndVerifySizedCollectionItem
SetPayerAccount sets the "payer" parameter. payer
func (*SetAndVerifySizedCollectionItem) SetProgramId ¶
func (obj *SetAndVerifySizedCollectionItem) SetProgramId(programId *common.PublicKey) *SetAndVerifySizedCollectionItem
func (*SetAndVerifySizedCollectionItem) SetUpdateAuthorityAccount ¶
func (obj *SetAndVerifySizedCollectionItem) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *SetAndVerifySizedCollectionItem
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update Authority of Collection NFT and NFT
func (*SetAndVerifySizedCollectionItem) UnmarshalWithDecoder ¶
func (obj *SetAndVerifySizedCollectionItem) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*SetAndVerifySizedCollectionItem) Validate ¶
func (obj *SetAndVerifySizedCollectionItem) Validate() error
func (*SetAndVerifySizedCollectionItem) ValidateAndBuild ¶
func (obj *SetAndVerifySizedCollectionItem) 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 SetCollectionSize ¶
type SetCollectionSize struct { SetCollectionSizeArgs *SetCollectionSizeArgs // [0] = [WRITE] collectionMetadata `Collection Metadata account` // [1] = [WRITE, SIGNER] collectionAuthority `Collection Update authority` // [2] = [] collectionMint `Mint of the Collection` // [3] = [] collectionAuthorityRecord `Collection Authority Record PDA` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
SetCollectionSize Instruction
func NewSetCollectionSizeInstruction ¶
func NewSetCollectionSizeInstruction( setCollectionSizeArgs SetCollectionSizeArgs, collectionMetadata common.PublicKey, collectionAuthority common.PublicKey, collectionMint common.PublicKey, collectionAuthorityRecord common.PublicKey, ) *SetCollectionSize
NewSetCollectionSizeInstruction
Parameters:
setCollectionSizeArgs: collectionMetadata: Collection Metadata account collectionAuthority: Collection Update authority collectionMint: Mint of the Collection collectionAuthorityRecord: Collection Authority Record PDA
func NewSetCollectionSizeInstructionBuilder ¶
func NewSetCollectionSizeInstructionBuilder() *SetCollectionSize
NewSetCollectionSizeInstructionBuilder creates a new `SetCollectionSize` instruction builder.
func (*SetCollectionSize) Build ¶
func (obj *SetCollectionSize) Build() *Instruction
func (*SetCollectionSize) EncodeToTree ¶
func (obj *SetCollectionSize) EncodeToTree(parent treeout.Branches)
func (*SetCollectionSize) GetCollectionAuthorityAccount ¶
func (obj *SetCollectionSize) GetCollectionAuthorityAccount() *common.AccountMeta
GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Update authority
func (*SetCollectionSize) GetCollectionAuthorityRecordAccount ¶
func (obj *SetCollectionSize) GetCollectionAuthorityRecordAccount() *common.AccountMeta
GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*SetCollectionSize) GetCollectionMetadataAccount ¶
func (obj *SetCollectionSize) GetCollectionMetadataAccount() *common.AccountMeta
GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Collection Metadata account
func (*SetCollectionSize) GetCollectionMintAccount ¶
func (obj *SetCollectionSize) GetCollectionMintAccount() *common.AccountMeta
GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection
func (*SetCollectionSize) MarshalWithEncoder ¶
func (obj *SetCollectionSize) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*SetCollectionSize) SetCollectionAuthorityAccount ¶
func (obj *SetCollectionSize) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *SetCollectionSize
SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Update authority
func (*SetCollectionSize) SetCollectionAuthorityRecordAccount ¶
func (obj *SetCollectionSize) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *SetCollectionSize
SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*SetCollectionSize) SetCollectionMetadataAccount ¶
func (obj *SetCollectionSize) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *SetCollectionSize
SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Collection Metadata account
func (*SetCollectionSize) SetCollectionMintAccount ¶
func (obj *SetCollectionSize) SetCollectionMintAccount(collectionMint common.PublicKey) *SetCollectionSize
SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection
func (*SetCollectionSize) SetProgramId ¶
func (obj *SetCollectionSize) SetProgramId(programId *common.PublicKey) *SetCollectionSize
func (*SetCollectionSize) SetSetCollectionSizeArgs ¶
func (obj *SetCollectionSize) SetSetCollectionSizeArgs(setCollectionSizeArgs SetCollectionSizeArgs) *SetCollectionSize
SetSetCollectionSizeArgs sets the "setCollectionSizeArgs" parameter.
func (*SetCollectionSize) UnmarshalWithDecoder ¶
func (obj *SetCollectionSize) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*SetCollectionSize) Validate ¶
func (obj *SetCollectionSize) Validate() error
func (*SetCollectionSize) ValidateAndBuild ¶
func (obj *SetCollectionSize) 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 SetCollectionSizeArgs ¶
type SetCollectionSizeArgs struct {
Size uint64
}
SetCollectionSizeArgs Struct
func (*SetCollectionSizeArgs) MarshalWithEncoder ¶
func (obj *SetCollectionSizeArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*SetCollectionSizeArgs) UnmarshalWithDecoder ¶
func (obj *SetCollectionSizeArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type SetTokenStandard ¶
type SetTokenStandard struct { // [0] = [WRITE] metadata `Metadata account` // [1] = [SIGNER] updateAuthority `Metadata update authority` // [2] = [] mint `Mint account` // [3] = [] edition `Edition account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
SetTokenStandard Instruction
func NewSetTokenStandardInstruction ¶
func NewSetTokenStandardInstruction( metadata common.PublicKey, updateAuthority common.PublicKey, mint common.PublicKey, edition common.PublicKey, ) *SetTokenStandard
NewSetTokenStandardInstruction
Parameters:
metadata: Metadata account updateAuthority: Metadata update authority mint: Mint account edition: Edition account
func NewSetTokenStandardInstructionBuilder ¶
func NewSetTokenStandardInstructionBuilder() *SetTokenStandard
NewSetTokenStandardInstructionBuilder creates a new `SetTokenStandard` instruction builder.
func (*SetTokenStandard) Build ¶
func (obj *SetTokenStandard) Build() *Instruction
func (*SetTokenStandard) EncodeToTree ¶
func (obj *SetTokenStandard) EncodeToTree(parent treeout.Branches)
func (*SetTokenStandard) GetEditionAccount ¶
func (obj *SetTokenStandard) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Edition account
func (*SetTokenStandard) GetMetadataAccount ¶
func (obj *SetTokenStandard) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*SetTokenStandard) GetMintAccount ¶
func (obj *SetTokenStandard) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint account
func (*SetTokenStandard) GetUpdateAuthorityAccount ¶
func (obj *SetTokenStandard) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Metadata update authority
func (*SetTokenStandard) MarshalWithEncoder ¶
func (obj *SetTokenStandard) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*SetTokenStandard) SetEditionAccount ¶
func (obj *SetTokenStandard) SetEditionAccount(edition common.PublicKey, multiSigners ...common.PublicKey) *SetTokenStandard
SetEditionAccount sets the "edition" parameter. Edition account
func (*SetTokenStandard) SetMetadataAccount ¶
func (obj *SetTokenStandard) SetMetadataAccount(metadata common.PublicKey) *SetTokenStandard
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*SetTokenStandard) SetMintAccount ¶
func (obj *SetTokenStandard) SetMintAccount(mint common.PublicKey) *SetTokenStandard
SetMintAccount sets the "mint" parameter. Mint account
func (*SetTokenStandard) SetProgramId ¶
func (obj *SetTokenStandard) SetProgramId(programId *common.PublicKey) *SetTokenStandard
func (*SetTokenStandard) SetUpdateAuthorityAccount ¶
func (obj *SetTokenStandard) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *SetTokenStandard
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Metadata update authority
func (*SetTokenStandard) UnmarshalWithDecoder ¶
func (obj *SetTokenStandard) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*SetTokenStandard) Validate ¶
func (obj *SetTokenStandard) Validate() error
func (*SetTokenStandard) ValidateAndBuild ¶
func (obj *SetTokenStandard) 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 ShareTotalMustBe100Error ¶
type ShareTotalMustBe100Error struct{}
ShareTotalMustBe100Error Error: 45 `Share total must equal 100 for creator array`
func (ShareTotalMustBe100Error) Code ¶
func (e ShareTotalMustBe100Error) Code() int
func (ShareTotalMustBe100Error) Error ¶
func (e ShareTotalMustBe100Error) Error() string
type SignMetadata ¶
type SignMetadata struct { // [0] = [WRITE] metadata `Metadata (pda of ['metadata', program id, mint id])` // [1] = [SIGNER] creator `Creator` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
SignMetadata Instruction
func NewSignMetadataInstruction ¶
func NewSignMetadataInstruction( metadata common.PublicKey, creator common.PublicKey, ) *SignMetadata
NewSignMetadataInstruction
Parameters:
metadata: Metadata (pda of ['metadata', program id, mint id]) creator: Creator
func NewSignMetadataInstructionBuilder ¶
func NewSignMetadataInstructionBuilder() *SignMetadata
NewSignMetadataInstructionBuilder creates a new `SignMetadata` instruction builder.
func (*SignMetadata) Build ¶
func (obj *SignMetadata) Build() *Instruction
func (*SignMetadata) EncodeToTree ¶
func (obj *SignMetadata) EncodeToTree(parent treeout.Branches)
func (*SignMetadata) GetCreatorAccount ¶
func (obj *SignMetadata) GetCreatorAccount() *common.AccountMeta
GetCreatorAccount gets the "creator" parameter. Creator
func (*SignMetadata) GetMetadataAccount ¶
func (obj *SignMetadata) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])
func (*SignMetadata) MarshalWithEncoder ¶
func (obj *SignMetadata) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*SignMetadata) SetCreatorAccount ¶
func (obj *SignMetadata) SetCreatorAccount(creator common.PublicKey, multiSigners ...common.PublicKey) *SignMetadata
SetCreatorAccount sets the "creator" parameter. Creator
func (*SignMetadata) SetMetadataAccount ¶
func (obj *SignMetadata) SetMetadataAccount(metadata common.PublicKey) *SignMetadata
SetMetadataAccount sets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])
func (*SignMetadata) SetProgramId ¶
func (obj *SignMetadata) SetProgramId(programId *common.PublicKey) *SignMetadata
func (*SignMetadata) UnmarshalWithDecoder ¶
func (obj *SignMetadata) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*SignMetadata) Validate ¶
func (obj *SignMetadata) Validate() error
func (*SignMetadata) ValidateAndBuild ¶
func (obj *SignMetadata) 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 SizedCollectionError ¶
type SizedCollectionError struct{}
SizedCollectionError Error: 102 `Can't use this function on a sized collection`
func (SizedCollectionError) Code ¶
func (e SizedCollectionError) Code() int
func (SizedCollectionError) Error ¶
func (e SizedCollectionError) Error() string
type SpotMismatchError ¶
type SpotMismatchError struct{}
SpotMismatchError Error: 56 “
func (SpotMismatchError) Code ¶
func (e SpotMismatchError) Code() int
func (SpotMismatchError) Error ¶
func (e SpotMismatchError) Error() string
type SymbolTooLongError ¶
type SymbolTooLongError struct{}
SymbolTooLongError Error: 12 `Symbol too long`
func (SymbolTooLongError) Code ¶
func (e SymbolTooLongError) Code() int
func (SymbolTooLongError) Error ¶
func (e SymbolTooLongError) Error() string
type ThawDelegatedAccount ¶
type ThawDelegatedAccount struct { // [0] = [WRITE, SIGNER] delegate `Delegate` // [1] = [WRITE] tokenAccount `Token account to thaw` // [2] = [] edition `Edition` // [3] = [] mint `Token mint` // [4] = [] tokenProgram `Token Program` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
ThawDelegatedAccount Instruction
func NewThawDelegatedAccountInstruction ¶
func NewThawDelegatedAccountInstruction( delegate common.PublicKey, tokenAccount common.PublicKey, edition common.PublicKey, mint common.PublicKey, tokenProgram common.PublicKey, ) *ThawDelegatedAccount
NewThawDelegatedAccountInstruction
Parameters:
delegate: Delegate tokenAccount: Token account to thaw edition: Edition mint: Token mint tokenProgram: Token Program
func NewThawDelegatedAccountInstructionBuilder ¶
func NewThawDelegatedAccountInstructionBuilder() *ThawDelegatedAccount
NewThawDelegatedAccountInstructionBuilder creates a new `ThawDelegatedAccount` instruction builder.
func (*ThawDelegatedAccount) Build ¶
func (obj *ThawDelegatedAccount) Build() *Instruction
func (*ThawDelegatedAccount) EncodeToTree ¶
func (obj *ThawDelegatedAccount) EncodeToTree(parent treeout.Branches)
func (*ThawDelegatedAccount) GetDelegateAccount ¶
func (obj *ThawDelegatedAccount) GetDelegateAccount() *common.AccountMeta
GetDelegateAccount gets the "delegate" parameter. Delegate
func (*ThawDelegatedAccount) GetEditionAccount ¶
func (obj *ThawDelegatedAccount) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Edition
func (*ThawDelegatedAccount) GetMintAccount ¶
func (obj *ThawDelegatedAccount) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Token mint
func (*ThawDelegatedAccount) GetTokenAccountAccount ¶
func (obj *ThawDelegatedAccount) GetTokenAccountAccount() *common.AccountMeta
GetTokenAccountAccount gets the "tokenAccount" parameter. Token account to thaw
func (*ThawDelegatedAccount) GetTokenProgramAccount ¶
func (obj *ThawDelegatedAccount) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token Program
func (*ThawDelegatedAccount) MarshalWithEncoder ¶
func (obj *ThawDelegatedAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*ThawDelegatedAccount) SetDelegateAccount ¶
func (obj *ThawDelegatedAccount) SetDelegateAccount(delegate common.PublicKey) *ThawDelegatedAccount
SetDelegateAccount sets the "delegate" parameter. Delegate
func (*ThawDelegatedAccount) SetEditionAccount ¶
func (obj *ThawDelegatedAccount) SetEditionAccount(edition common.PublicKey) *ThawDelegatedAccount
SetEditionAccount sets the "edition" parameter. Edition
func (*ThawDelegatedAccount) SetMintAccount ¶
func (obj *ThawDelegatedAccount) SetMintAccount(mint common.PublicKey) *ThawDelegatedAccount
SetMintAccount sets the "mint" parameter. Token mint
func (*ThawDelegatedAccount) SetProgramId ¶
func (obj *ThawDelegatedAccount) SetProgramId(programId *common.PublicKey) *ThawDelegatedAccount
func (*ThawDelegatedAccount) SetTokenAccountAccount ¶
func (obj *ThawDelegatedAccount) SetTokenAccountAccount(tokenAccount common.PublicKey) *ThawDelegatedAccount
SetTokenAccountAccount sets the "tokenAccount" parameter. Token account to thaw
func (*ThawDelegatedAccount) SetTokenProgramAccount ¶
func (obj *ThawDelegatedAccount) SetTokenProgramAccount(tokenProgram common.PublicKey, multiSigners ...common.PublicKey) *ThawDelegatedAccount
SetTokenProgramAccount sets the "tokenProgram" parameter. Token Program
func (*ThawDelegatedAccount) UnmarshalWithDecoder ¶
func (obj *ThawDelegatedAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*ThawDelegatedAccount) Validate ¶
func (obj *ThawDelegatedAccount) Validate() error
func (*ThawDelegatedAccount) ValidateAndBuild ¶
func (obj *ThawDelegatedAccount) 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 TokenAccountMintMismatchError ¶
type TokenAccountMintMismatchError struct{}
TokenAccountMintMismatchError Error: 30 `The mint of the token account does not match the Printing mint!`
func (TokenAccountMintMismatchError) Code ¶
func (e TokenAccountMintMismatchError) Code() int
func (TokenAccountMintMismatchError) Error ¶
func (e TokenAccountMintMismatchError) Error() string
type TokenAccountMintMismatchV2Error ¶
type TokenAccountMintMismatchV2Error struct{}
TokenAccountMintMismatchV2Error Error: 31 `The mint of the token account does not match the master metadata mint!`
func (TokenAccountMintMismatchV2Error) Code ¶
func (e TokenAccountMintMismatchV2Error) Code() int
func (TokenAccountMintMismatchV2Error) Error ¶
func (e TokenAccountMintMismatchV2Error) Error() string
type TokenAccountOneTimeAuthMintMismatchError ¶
type TokenAccountOneTimeAuthMintMismatchError struct{}
TokenAccountOneTimeAuthMintMismatchError Error: 26 “
func (TokenAccountOneTimeAuthMintMismatchError) Code ¶
func (e TokenAccountOneTimeAuthMintMismatchError) Code() int
func (TokenAccountOneTimeAuthMintMismatchError) Error ¶
func (e TokenAccountOneTimeAuthMintMismatchError) Error() string
type TokenBurnFailedError ¶
type TokenBurnFailedError struct{}
TokenBurnFailedError Error: 25 “
func (TokenBurnFailedError) Code ¶
func (e TokenBurnFailedError) Code() int
func (TokenBurnFailedError) Error ¶
func (e TokenBurnFailedError) Error() string
type TokenCloseFailedError ¶
type TokenCloseFailedError struct{}
TokenCloseFailedError Error: 100 “
func (TokenCloseFailedError) Code ¶
func (e TokenCloseFailedError) Code() int
func (TokenCloseFailedError) Error ¶
func (e TokenCloseFailedError) Error() string
type TokenDelegateRole ¶
TokenDelegateRole Enum
const ( TokenDelegateRoleSale TokenDelegateRole = iota TokenDelegateRoleTransfer TokenDelegateRoleUtility TokenDelegateRoleStaking TokenDelegateRoleStandard TokenDelegateRoleLockedTransfer TokenDelegateRoleMigration )
func (TokenDelegateRole) String ¶
func (value TokenDelegateRole) String() string
type TokenMintToFailedError ¶
type TokenMintToFailedError struct{}
TokenMintToFailedError Error: 18 “
func (TokenMintToFailedError) Code ¶
func (e TokenMintToFailedError) Code() int
func (TokenMintToFailedError) Error ¶
func (e TokenMintToFailedError) Error() string
type TokenOwnedEscrow ¶
type TokenOwnedEscrow struct { Key Key BaseToken common.PublicKey Authority EscrowAuthority Bump uint8 }
TokenOwnedEscrow Struct
func (*TokenOwnedEscrow) MarshalWithEncoder ¶
func (obj *TokenOwnedEscrow) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*TokenOwnedEscrow) UnmarshalWithDecoder ¶
func (obj *TokenOwnedEscrow) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type TokenRecord ¶
type TokenRecord struct { Key Key Bump uint8 State TokenState RuleSetRevision *uint64 `bin:"optional"` Delegate *common.PublicKey `bin:"optional"` DelegateRole *TokenDelegateRole `bin:"optional"` LockedTransfer *common.PublicKey `bin:"optional"` }
TokenRecord Struct
func (*TokenRecord) MarshalWithEncoder ¶
func (obj *TokenRecord) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*TokenRecord) UnmarshalWithDecoder ¶
func (obj *TokenRecord) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type TokenStandard ¶
TokenStandard Enum
const ( TokenStandardNonFungible TokenStandard = iota TokenStandardFungibleAsset TokenStandardFungible TokenStandardNonFungibleEdition TokenStandardProgrammableNonFungible TokenStandardProgrammableNonFungibleEdition )
func (TokenStandard) String ¶
func (value TokenStandard) String() string
type TokenState ¶
TokenState Enum
const ( TokenStateUnlocked TokenState = iota TokenStateLocked TokenStateListed )
func (TokenState) String ¶
func (value TokenState) String() string
type Transfer ¶
type Transfer struct { TransferArgs *TransferArgs // [0] = [WRITE] token `Token account` // [1] = [] tokenOwner `Token account owner` // [2] = [WRITE] destination `Destination token account` // [3] = [] destinationOwner `Destination token account owner` // [4] = [] mint `Mint of token asset` // [5] = [WRITE] metadata `Metadata (pda of ['metadata', program id, mint id])` // [6] = [] edition `Edition of token asset` // [7] = [WRITE] ownerTokenRecord `Owner token record account` // [8] = [WRITE] destinationTokenRecord `Destination token record account` // [9] = [SIGNER] authority `Transfer authority (token owner or delegate)` // [10] = [WRITE, SIGNER] payer `Payer` // [11] = [] systemProgram `System Program` // [12] = [] sysvarInstructions `Instructions sysvar account` // [13] = [] splTokenProgram `SPL Token Program` // [14] = [] splAtaProgram `SPL Associated Token Account program` // [15] = [] authorizationRulesProgram `Token Authorization Rules Program` // [16] = [] authorizationRules `Token Authorization Rules account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Transfer Instruction
func NewTransferInstruction ¶
func NewTransferInstruction( transferArgs TransferArgs, token common.PublicKey, tokenOwner common.PublicKey, destination common.PublicKey, destinationOwner common.PublicKey, mint common.PublicKey, metadata common.PublicKey, edition common.PublicKey, ownerTokenRecord common.PublicKey, destinationTokenRecord common.PublicKey, authority common.PublicKey, payer common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, splTokenProgram common.PublicKey, splAtaProgram common.PublicKey, authorizationRulesProgram common.PublicKey, authorizationRules common.PublicKey, ) *Transfer
NewTransferInstruction
Parameters:
transferArgs: token: Token account tokenOwner: Token account owner destination: Destination token account destinationOwner: Destination token account owner mint: Mint of token asset metadata: Metadata (pda of ['metadata', program id, mint id]) edition: Edition of token asset ownerTokenRecord: Owner token record account destinationTokenRecord: Destination token record account authority: Transfer authority (token owner or delegate) payer: Payer systemProgram: System Program sysvarInstructions: Instructions sysvar account splTokenProgram: SPL Token Program splAtaProgram: SPL Associated Token Account program authorizationRulesProgram: Token Authorization Rules Program authorizationRules: Token Authorization Rules account
func NewTransferInstructionBuilder ¶
func NewTransferInstructionBuilder() *Transfer
NewTransferInstructionBuilder creates a new `Transfer` instruction builder.
func (*Transfer) Build ¶
func (obj *Transfer) Build() *Instruction
func (*Transfer) EncodeToTree ¶
func (*Transfer) GetAuthorityAccount ¶
func (obj *Transfer) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Transfer authority (token owner or delegate)
func (*Transfer) GetAuthorizationRulesAccount ¶
func (obj *Transfer) GetAuthorizationRulesAccount() *common.AccountMeta
GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account
func (*Transfer) GetAuthorizationRulesProgramAccount ¶
func (obj *Transfer) GetAuthorizationRulesProgramAccount() *common.AccountMeta
GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Transfer) GetDestinationAccount ¶
func (obj *Transfer) GetDestinationAccount() *common.AccountMeta
GetDestinationAccount gets the "destination" parameter. Destination token account
func (*Transfer) GetDestinationOwnerAccount ¶
func (obj *Transfer) GetDestinationOwnerAccount() *common.AccountMeta
GetDestinationOwnerAccount gets the "destinationOwner" parameter. Destination token account owner
func (*Transfer) GetDestinationTokenRecordAccount ¶
func (obj *Transfer) GetDestinationTokenRecordAccount() *common.AccountMeta
GetDestinationTokenRecordAccount gets the "destinationTokenRecord" parameter. Destination token record account
func (*Transfer) GetEditionAccount ¶
func (obj *Transfer) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Edition of token asset
func (*Transfer) GetMetadataAccount ¶
func (obj *Transfer) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])
func (*Transfer) GetMintAccount ¶
func (obj *Transfer) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of token asset
func (*Transfer) GetOwnerTokenRecordAccount ¶
func (obj *Transfer) GetOwnerTokenRecordAccount() *common.AccountMeta
GetOwnerTokenRecordAccount gets the "ownerTokenRecord" parameter. Owner token record account
func (*Transfer) GetPayerAccount ¶
func (obj *Transfer) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*Transfer) GetSplAtaProgramAccount ¶
func (obj *Transfer) GetSplAtaProgramAccount() *common.AccountMeta
GetSplAtaProgramAccount gets the "splAtaProgram" parameter. SPL Associated Token Account program
func (*Transfer) GetSplTokenProgramAccount ¶
func (obj *Transfer) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program
func (*Transfer) GetSystemProgramAccount ¶
func (obj *Transfer) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System Program
func (*Transfer) GetSysvarInstructionsAccount ¶
func (obj *Transfer) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Transfer) GetTokenAccount ¶
func (obj *Transfer) GetTokenAccount() *common.AccountMeta
GetTokenAccount gets the "token" parameter. Token account
func (*Transfer) GetTokenOwnerAccount ¶
func (obj *Transfer) GetTokenOwnerAccount() *common.AccountMeta
GetTokenOwnerAccount gets the "tokenOwner" parameter. Token account owner
func (*Transfer) MarshalWithEncoder ¶
func (*Transfer) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Transfer authority (token owner or delegate)
func (*Transfer) SetAuthorizationRulesAccount ¶
func (obj *Transfer) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Transfer
SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account
func (*Transfer) SetAuthorizationRulesProgramAccount ¶
func (obj *Transfer) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Transfer
SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Transfer) SetDestinationAccount ¶
SetDestinationAccount sets the "destination" parameter. Destination token account
func (*Transfer) SetDestinationOwnerAccount ¶
SetDestinationOwnerAccount sets the "destinationOwner" parameter. Destination token account owner
func (*Transfer) SetDestinationTokenRecordAccount ¶
func (obj *Transfer) SetDestinationTokenRecordAccount(destinationTokenRecord common.PublicKey) *Transfer
SetDestinationTokenRecordAccount sets the "destinationTokenRecord" parameter. Destination token record account
func (*Transfer) SetEditionAccount ¶
SetEditionAccount sets the "edition" parameter. Edition of token asset
func (*Transfer) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])
func (*Transfer) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint of token asset
func (*Transfer) SetOwnerTokenRecordAccount ¶
SetOwnerTokenRecordAccount sets the "ownerTokenRecord" parameter. Owner token record account
func (*Transfer) SetPayerAccount ¶
SetPayerAccount sets the "payer" parameter. Payer
func (*Transfer) SetProgramId ¶
func (*Transfer) SetSplAtaProgramAccount ¶
SetSplAtaProgramAccount sets the "splAtaProgram" parameter. SPL Associated Token Account program
func (*Transfer) SetSplTokenProgramAccount ¶
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program
func (*Transfer) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System Program
func (*Transfer) SetSysvarInstructionsAccount ¶
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Transfer) SetTokenAccount ¶
SetTokenAccount sets the "token" parameter. Token account
func (*Transfer) SetTokenOwnerAccount ¶
SetTokenOwnerAccount sets the "tokenOwner" parameter. Token account owner
func (*Transfer) SetTransferArgs ¶
func (obj *Transfer) SetTransferArgs(transferArgs TransferArgs) *Transfer
SetTransferArgs sets the "transferArgs" parameter.
func (*Transfer) UnmarshalWithDecoder ¶
func (*Transfer) ValidateAndBuild ¶
func (obj *Transfer) 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 TransferArgs ¶
type TransferArgs struct {
V1 *TransferArgsV1 `bin:"optional"`
}
TransferArgs Enum
func NewTransferArgs_V1 ¶
func NewTransferArgs_V1(amount uint64, authorizationData *AuthorizationData) TransferArgs
func (*TransferArgs) AsV1 ¶
func (obj *TransferArgs) AsV1() TransferArgsV1
func (*TransferArgs) IsV1 ¶
func (obj *TransferArgs) IsV1() bool
func (*TransferArgs) MarshalWithEncoder ¶
func (obj *TransferArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*TransferArgs) String ¶
func (obj *TransferArgs) String() string
func (*TransferArgs) UnmarshalWithDecoder ¶
func (obj *TransferArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type TransferArgsV1 ¶
type TransferArgsV1 struct { Amount uint64 AuthorizationData *AuthorizationData `bin:"optional"` }
func (*TransferArgsV1) MarshalWithEncoder ¶
func (obj *TransferArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*TransferArgsV1) UnmarshalWithDecoder ¶
func (obj *TransferArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type TransferOutOfEscrow ¶
type TransferOutOfEscrow struct { TransferOutOfEscrowArgs *TransferOutOfEscrowArgs // [0] = [] escrow `Escrow account` // [1] = [WRITE] metadata `Metadata account` // [2] = [WRITE, SIGNER] payer `Wallet paying for the transaction and new account` // [3] = [] attributeMint `Mint account for the new attribute` // [4] = [WRITE] attributeSrc `Token account source for the new attribute` // [5] = [WRITE] attributeDst `Token account, owned by TM, destination for the new attribute` // [6] = [] escrowMint `Mint account that the escrow is attached` // [7] = [] escrowAccount `Token account that holds the token the escrow is attached to` // [8] = [] systemProgram `System program` // [9] = [] ataProgram `Associated Token program` // [10] = [] tokenProgram `Token program` // [11] = [] sysvarInstructions `Instructions sysvar account` // [12] = [SIGNER] authority `Authority/creator of the escrow account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
TransferOutOfEscrow Instruction
func NewTransferOutOfEscrowInstruction ¶
func NewTransferOutOfEscrowInstruction( transferOutOfEscrowArgs TransferOutOfEscrowArgs, escrow common.PublicKey, metadata common.PublicKey, payer common.PublicKey, attributeMint common.PublicKey, attributeSrc common.PublicKey, attributeDst common.PublicKey, escrowMint common.PublicKey, escrowAccount common.PublicKey, systemProgram common.PublicKey, ataProgram common.PublicKey, tokenProgram common.PublicKey, sysvarInstructions common.PublicKey, authority common.PublicKey, ) *TransferOutOfEscrow
NewTransferOutOfEscrowInstruction
Parameters:
transferOutOfEscrowArgs: escrow: Escrow account metadata: Metadata account payer: Wallet paying for the transaction and new account attributeMint: Mint account for the new attribute attributeSrc: Token account source for the new attribute attributeDst: Token account, owned by TM, destination for the new attribute escrowMint: Mint account that the escrow is attached escrowAccount: Token account that holds the token the escrow is attached to systemProgram: System program ataProgram: Associated Token program tokenProgram: Token program sysvarInstructions: Instructions sysvar account authority: Authority/creator of the escrow account
func NewTransferOutOfEscrowInstructionBuilder ¶
func NewTransferOutOfEscrowInstructionBuilder() *TransferOutOfEscrow
NewTransferOutOfEscrowInstructionBuilder creates a new `TransferOutOfEscrow` instruction builder.
func (*TransferOutOfEscrow) Build ¶
func (obj *TransferOutOfEscrow) Build() *Instruction
func (*TransferOutOfEscrow) EncodeToTree ¶
func (obj *TransferOutOfEscrow) EncodeToTree(parent treeout.Branches)
func (*TransferOutOfEscrow) GetAtaProgramAccount ¶
func (obj *TransferOutOfEscrow) GetAtaProgramAccount() *common.AccountMeta
GetAtaProgramAccount gets the "ataProgram" parameter. Associated Token program
func (*TransferOutOfEscrow) GetAttributeDstAccount ¶
func (obj *TransferOutOfEscrow) GetAttributeDstAccount() *common.AccountMeta
GetAttributeDstAccount gets the "attributeDst" parameter. Token account, owned by TM, destination for the new attribute
func (*TransferOutOfEscrow) GetAttributeMintAccount ¶
func (obj *TransferOutOfEscrow) GetAttributeMintAccount() *common.AccountMeta
GetAttributeMintAccount gets the "attributeMint" parameter. Mint account for the new attribute
func (*TransferOutOfEscrow) GetAttributeSrcAccount ¶
func (obj *TransferOutOfEscrow) GetAttributeSrcAccount() *common.AccountMeta
GetAttributeSrcAccount gets the "attributeSrc" parameter. Token account source for the new attribute
func (*TransferOutOfEscrow) GetAuthorityAccount ¶
func (obj *TransferOutOfEscrow) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Authority/creator of the escrow account
func (*TransferOutOfEscrow) GetEscrowAccount ¶
func (obj *TransferOutOfEscrow) GetEscrowAccount() *common.AccountMeta
GetEscrowAccount gets the "escrow" parameter. Escrow account
func (*TransferOutOfEscrow) GetEscrowAccountAccount ¶
func (obj *TransferOutOfEscrow) GetEscrowAccountAccount() *common.AccountMeta
GetEscrowAccountAccount gets the "escrowAccount" parameter. Token account that holds the token the escrow is attached to
func (*TransferOutOfEscrow) GetEscrowMintAccount ¶
func (obj *TransferOutOfEscrow) GetEscrowMintAccount() *common.AccountMeta
GetEscrowMintAccount gets the "escrowMint" parameter. Mint account that the escrow is attached
func (*TransferOutOfEscrow) GetMetadataAccount ¶
func (obj *TransferOutOfEscrow) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*TransferOutOfEscrow) GetPayerAccount ¶
func (obj *TransferOutOfEscrow) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Wallet paying for the transaction and new account
func (*TransferOutOfEscrow) GetSystemProgramAccount ¶
func (obj *TransferOutOfEscrow) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*TransferOutOfEscrow) GetSysvarInstructionsAccount ¶
func (obj *TransferOutOfEscrow) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*TransferOutOfEscrow) GetTokenProgramAccount ¶
func (obj *TransferOutOfEscrow) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token program
func (*TransferOutOfEscrow) MarshalWithEncoder ¶
func (obj *TransferOutOfEscrow) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*TransferOutOfEscrow) SetAtaProgramAccount ¶
func (obj *TransferOutOfEscrow) SetAtaProgramAccount(ataProgram common.PublicKey) *TransferOutOfEscrow
SetAtaProgramAccount sets the "ataProgram" parameter. Associated Token program
func (*TransferOutOfEscrow) SetAttributeDstAccount ¶
func (obj *TransferOutOfEscrow) SetAttributeDstAccount(attributeDst common.PublicKey) *TransferOutOfEscrow
SetAttributeDstAccount sets the "attributeDst" parameter. Token account, owned by TM, destination for the new attribute
func (*TransferOutOfEscrow) SetAttributeMintAccount ¶
func (obj *TransferOutOfEscrow) SetAttributeMintAccount(attributeMint common.PublicKey) *TransferOutOfEscrow
SetAttributeMintAccount sets the "attributeMint" parameter. Mint account for the new attribute
func (*TransferOutOfEscrow) SetAttributeSrcAccount ¶
func (obj *TransferOutOfEscrow) SetAttributeSrcAccount(attributeSrc common.PublicKey) *TransferOutOfEscrow
SetAttributeSrcAccount sets the "attributeSrc" parameter. Token account source for the new attribute
func (*TransferOutOfEscrow) SetAuthorityAccount ¶
func (obj *TransferOutOfEscrow) SetAuthorityAccount(authority common.PublicKey, multiSigners ...common.PublicKey) *TransferOutOfEscrow
SetAuthorityAccount sets the "authority" parameter. Authority/creator of the escrow account
func (*TransferOutOfEscrow) SetEscrowAccount ¶
func (obj *TransferOutOfEscrow) SetEscrowAccount(escrow common.PublicKey) *TransferOutOfEscrow
SetEscrowAccount sets the "escrow" parameter. Escrow account
func (*TransferOutOfEscrow) SetEscrowAccountAccount ¶
func (obj *TransferOutOfEscrow) SetEscrowAccountAccount(escrowAccount common.PublicKey) *TransferOutOfEscrow
SetEscrowAccountAccount sets the "escrowAccount" parameter. Token account that holds the token the escrow is attached to
func (*TransferOutOfEscrow) SetEscrowMintAccount ¶
func (obj *TransferOutOfEscrow) SetEscrowMintAccount(escrowMint common.PublicKey) *TransferOutOfEscrow
SetEscrowMintAccount sets the "escrowMint" parameter. Mint account that the escrow is attached
func (*TransferOutOfEscrow) SetMetadataAccount ¶
func (obj *TransferOutOfEscrow) SetMetadataAccount(metadata common.PublicKey) *TransferOutOfEscrow
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*TransferOutOfEscrow) SetPayerAccount ¶
func (obj *TransferOutOfEscrow) SetPayerAccount(payer common.PublicKey) *TransferOutOfEscrow
SetPayerAccount sets the "payer" parameter. Wallet paying for the transaction and new account
func (*TransferOutOfEscrow) SetProgramId ¶
func (obj *TransferOutOfEscrow) SetProgramId(programId *common.PublicKey) *TransferOutOfEscrow
func (*TransferOutOfEscrow) SetSystemProgramAccount ¶
func (obj *TransferOutOfEscrow) SetSystemProgramAccount(systemProgram common.PublicKey) *TransferOutOfEscrow
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*TransferOutOfEscrow) SetSysvarInstructionsAccount ¶
func (obj *TransferOutOfEscrow) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *TransferOutOfEscrow
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*TransferOutOfEscrow) SetTokenProgramAccount ¶
func (obj *TransferOutOfEscrow) SetTokenProgramAccount(tokenProgram common.PublicKey) *TransferOutOfEscrow
SetTokenProgramAccount sets the "tokenProgram" parameter. Token program
func (*TransferOutOfEscrow) SetTransferOutOfEscrowArgs ¶
func (obj *TransferOutOfEscrow) SetTransferOutOfEscrowArgs(transferOutOfEscrowArgs TransferOutOfEscrowArgs) *TransferOutOfEscrow
SetTransferOutOfEscrowArgs sets the "transferOutOfEscrowArgs" parameter.
func (*TransferOutOfEscrow) UnmarshalWithDecoder ¶
func (obj *TransferOutOfEscrow) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*TransferOutOfEscrow) Validate ¶
func (obj *TransferOutOfEscrow) Validate() error
func (*TransferOutOfEscrow) ValidateAndBuild ¶
func (obj *TransferOutOfEscrow) 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 TransferOutOfEscrowArgs ¶
type TransferOutOfEscrowArgs struct {
Amount uint64
}
TransferOutOfEscrowArgs Struct
func (*TransferOutOfEscrowArgs) MarshalWithEncoder ¶
func (obj *TransferOutOfEscrowArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*TransferOutOfEscrowArgs) UnmarshalWithDecoder ¶
func (obj *TransferOutOfEscrowArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type TriedToReplaceAnExistingReservationError ¶
type TriedToReplaceAnExistingReservationError struct{}
TriedToReplaceAnExistingReservationError Error: 66 “
func (TriedToReplaceAnExistingReservationError) Code ¶
func (e TriedToReplaceAnExistingReservationError) Code() int
func (TriedToReplaceAnExistingReservationError) Error ¶
func (e TriedToReplaceAnExistingReservationError) Error() string
type UninitializedError ¶
type UninitializedError struct{}
UninitializedError Error: 4 `Uninitialized`
func (UninitializedError) Code ¶
func (e UninitializedError) Code() int
func (UninitializedError) Error ¶
func (e UninitializedError) Error() string
type Unlock ¶
type Unlock struct { UnlockArgs *UnlockArgs // [0] = [SIGNER] authority `Delegate or freeze authority` // [1] = [] tokenOwner `Token owner account` // [2] = [WRITE] token `Token account` // [3] = [] mint `Mint account` // [4] = [WRITE] metadata `Metadata account` // [5] = [] edition `Edition account` // [6] = [WRITE] tokenRecord `Token record account` // [7] = [WRITE, SIGNER] payer `Payer` // [8] = [] systemProgram `System program` // [9] = [] sysvarInstructions `System program` // [10] = [] splTokenProgram `SPL Token Program` // [11] = [] authorizationRulesProgram `Token Authorization Rules Program` // [12] = [] authorizationRules `Token Authorization Rules account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Unlock Instruction
func NewUnlockInstruction ¶
func NewUnlockInstruction( unlockArgs UnlockArgs, authority common.PublicKey, tokenOwner common.PublicKey, token common.PublicKey, mint common.PublicKey, metadata common.PublicKey, edition common.PublicKey, tokenRecord common.PublicKey, payer common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, splTokenProgram common.PublicKey, authorizationRulesProgram common.PublicKey, authorizationRules common.PublicKey, ) *Unlock
NewUnlockInstruction
Parameters:
unlockArgs: authority: Delegate or freeze authority tokenOwner: Token owner account token: Token account mint: Mint account metadata: Metadata account edition: Edition account tokenRecord: Token record account payer: Payer systemProgram: System program sysvarInstructions: System program splTokenProgram: SPL Token Program authorizationRulesProgram: Token Authorization Rules Program authorizationRules: Token Authorization Rules account
func NewUnlockInstructionBuilder ¶
func NewUnlockInstructionBuilder() *Unlock
NewUnlockInstructionBuilder creates a new `Unlock` instruction builder.
func (*Unlock) Build ¶
func (obj *Unlock) Build() *Instruction
func (*Unlock) EncodeToTree ¶
func (*Unlock) GetAuthorityAccount ¶
func (obj *Unlock) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Delegate or freeze authority
func (*Unlock) GetAuthorizationRulesAccount ¶
func (obj *Unlock) GetAuthorizationRulesAccount() *common.AccountMeta
GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account
func (*Unlock) GetAuthorizationRulesProgramAccount ¶
func (obj *Unlock) GetAuthorizationRulesProgramAccount() *common.AccountMeta
GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Unlock) GetEditionAccount ¶
func (obj *Unlock) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Edition account
func (*Unlock) GetMetadataAccount ¶
func (obj *Unlock) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*Unlock) GetMintAccount ¶
func (obj *Unlock) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint account
func (*Unlock) GetPayerAccount ¶
func (obj *Unlock) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*Unlock) GetSplTokenProgramAccount ¶
func (obj *Unlock) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program
func (*Unlock) GetSystemProgramAccount ¶
func (obj *Unlock) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*Unlock) GetSysvarInstructionsAccount ¶
func (obj *Unlock) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. System program
func (*Unlock) GetTokenAccount ¶
func (obj *Unlock) GetTokenAccount() *common.AccountMeta
GetTokenAccount gets the "token" parameter. Token account
func (*Unlock) GetTokenOwnerAccount ¶
func (obj *Unlock) GetTokenOwnerAccount() *common.AccountMeta
GetTokenOwnerAccount gets the "tokenOwner" parameter. Token owner account
func (*Unlock) GetTokenRecordAccount ¶
func (obj *Unlock) GetTokenRecordAccount() *common.AccountMeta
GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account
func (*Unlock) MarshalWithEncoder ¶
func (*Unlock) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Delegate or freeze authority
func (*Unlock) SetAuthorizationRulesAccount ¶
func (obj *Unlock) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Unlock
SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account
func (*Unlock) SetAuthorizationRulesProgramAccount ¶
func (obj *Unlock) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Unlock
SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Unlock) SetEditionAccount ¶
SetEditionAccount sets the "edition" parameter. Edition account
func (*Unlock) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*Unlock) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint account
func (*Unlock) SetPayerAccount ¶
SetPayerAccount sets the "payer" parameter. Payer
func (*Unlock) SetSplTokenProgramAccount ¶
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program
func (*Unlock) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*Unlock) SetSysvarInstructionsAccount ¶
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. System program
func (*Unlock) SetTokenAccount ¶
SetTokenAccount sets the "token" parameter. Token account
func (*Unlock) SetTokenOwnerAccount ¶
SetTokenOwnerAccount sets the "tokenOwner" parameter. Token owner account
func (*Unlock) SetTokenRecordAccount ¶
SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account
func (*Unlock) SetUnlockArgs ¶
func (obj *Unlock) SetUnlockArgs(unlockArgs UnlockArgs) *Unlock
SetUnlockArgs sets the "unlockArgs" parameter.
func (*Unlock) UnmarshalWithDecoder ¶
func (*Unlock) ValidateAndBuild ¶
func (obj *Unlock) 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 UnlockArgs ¶
type UnlockArgs struct {
V1 *UnlockArgsV1 `bin:"optional"`
}
UnlockArgs Enum
func NewUnlockArgs_V1 ¶
func NewUnlockArgs_V1(authorizationData *AuthorizationData) UnlockArgs
func (*UnlockArgs) AsV1 ¶
func (obj *UnlockArgs) AsV1() UnlockArgsV1
func (*UnlockArgs) IsV1 ¶
func (obj *UnlockArgs) IsV1() bool
func (*UnlockArgs) MarshalWithEncoder ¶
func (obj *UnlockArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UnlockArgs) String ¶
func (obj *UnlockArgs) String() string
func (*UnlockArgs) UnmarshalWithDecoder ¶
func (obj *UnlockArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UnlockArgsV1 ¶
type UnlockArgsV1 struct {
AuthorizationData *AuthorizationData `bin:"optional"`
}
func (*UnlockArgsV1) MarshalWithEncoder ¶
func (obj *UnlockArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UnlockArgsV1) UnmarshalWithDecoder ¶
func (obj *UnlockArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UnlockedTokenError ¶
type UnlockedTokenError struct{}
UnlockedTokenError Error: 156 `Token is unlocked`
func (UnlockedTokenError) Code ¶
func (e UnlockedTokenError) Code() int
func (UnlockedTokenError) Error ¶
func (e UnlockedTokenError) Error() string
type UnsizedCollectionError ¶
type UnsizedCollectionError struct{}
UnsizedCollectionError Error: 101 `Can't use this function on unsized collection`
func (UnsizedCollectionError) Code ¶
func (e UnsizedCollectionError) Code() int
func (UnsizedCollectionError) Error ¶
func (e UnsizedCollectionError) Error() string
type UnusableError ¶
type UnusableError struct{}
UnusableError Error: 85 `This token has no uses`
func (UnusableError) Code ¶
func (e UnusableError) Code() int
func (UnusableError) Error ¶
func (e UnusableError) Error() string
type Unverify ¶
type Unverify struct { VerificationArgs *VerificationArgs // [0] = [SIGNER] authority `Creator to verify, collection (or metadata if parent burned) update authority or delegate` // [1] = [] delegateRecord `Delegate record PDA` // [2] = [WRITE] metadata `Metadata account` // [3] = [] collectionMint `Mint of the Collection` // [4] = [WRITE] collectionMetadata `Metadata Account of the Collection` // [5] = [] systemProgram `System program` // [6] = [] sysvarInstructions `Instructions sysvar account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Unverify Instruction
func NewUnverifyInstruction ¶
func NewUnverifyInstruction( verificationArgs VerificationArgs, authority common.PublicKey, delegateRecord common.PublicKey, metadata common.PublicKey, collectionMint common.PublicKey, collectionMetadata common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, ) *Unverify
NewUnverifyInstruction
Parameters:
verificationArgs: authority: Creator to verify, collection (or metadata if parent burned) update authority or delegate delegateRecord: Delegate record PDA metadata: Metadata account collectionMint: Mint of the Collection collectionMetadata: Metadata Account of the Collection systemProgram: System program sysvarInstructions: Instructions sysvar account
func NewUnverifyInstructionBuilder ¶
func NewUnverifyInstructionBuilder() *Unverify
NewUnverifyInstructionBuilder creates a new `Unverify` instruction builder.
func (*Unverify) Build ¶
func (obj *Unverify) Build() *Instruction
func (*Unverify) EncodeToTree ¶
func (*Unverify) GetAuthorityAccount ¶
func (obj *Unverify) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Creator to verify, collection (or metadata if parent burned) update authority or delegate
func (*Unverify) GetCollectionMetadataAccount ¶
func (obj *Unverify) GetCollectionMetadataAccount() *common.AccountMeta
GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Metadata Account of the Collection
func (*Unverify) GetCollectionMintAccount ¶
func (obj *Unverify) GetCollectionMintAccount() *common.AccountMeta
GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection
func (*Unverify) GetDelegateRecordAccount ¶
func (obj *Unverify) GetDelegateRecordAccount() *common.AccountMeta
GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record PDA
func (*Unverify) GetMetadataAccount ¶
func (obj *Unverify) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*Unverify) GetSystemProgramAccount ¶
func (obj *Unverify) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*Unverify) GetSysvarInstructionsAccount ¶
func (obj *Unverify) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Unverify) MarshalWithEncoder ¶
func (*Unverify) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Creator to verify, collection (or metadata if parent burned) update authority or delegate
func (*Unverify) SetCollectionMetadataAccount ¶
SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Metadata Account of the Collection
func (*Unverify) SetCollectionMintAccount ¶
SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection
func (*Unverify) SetDelegateRecordAccount ¶
SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record PDA
func (*Unverify) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*Unverify) SetProgramId ¶
func (*Unverify) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*Unverify) SetSysvarInstructionsAccount ¶
func (obj *Unverify) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey, multiSigners ...common.PublicKey) *Unverify
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Unverify) SetVerificationArgs ¶
func (obj *Unverify) SetVerificationArgs(verificationArgs VerificationArgs) *Unverify
SetVerificationArgs sets the "verificationArgs" parameter.
func (*Unverify) UnmarshalWithDecoder ¶
func (*Unverify) ValidateAndBuild ¶
func (obj *Unverify) 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 UnverifyCollection ¶
type UnverifyCollection struct { // [0] = [WRITE] metadata `Metadata account` // [1] = [WRITE, SIGNER] collectionAuthority `Collection Authority` // [2] = [] collectionMint `Mint of the Collection` // [3] = [] collection `Metadata Account of the Collection` // [4] = [] collectionMasterEditionAccount `MasterEdition2 Account of the Collection Token` // [5] = [] collectionAuthorityRecord `Collection Authority Record PDA` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
UnverifyCollection Instruction
func NewUnverifyCollectionInstruction ¶
func NewUnverifyCollectionInstruction( metadata common.PublicKey, collectionAuthority common.PublicKey, collectionMint common.PublicKey, collection common.PublicKey, collectionMasterEditionAccount common.PublicKey, collectionAuthorityRecord common.PublicKey, ) *UnverifyCollection
NewUnverifyCollectionInstruction
Parameters:
metadata: Metadata account collectionAuthority: Collection Authority collectionMint: Mint of the Collection collection: Metadata Account of the Collection collectionMasterEditionAccount: MasterEdition2 Account of the Collection Token collectionAuthorityRecord: Collection Authority Record PDA
func NewUnverifyCollectionInstructionBuilder ¶
func NewUnverifyCollectionInstructionBuilder() *UnverifyCollection
NewUnverifyCollectionInstructionBuilder creates a new `UnverifyCollection` instruction builder.
func (*UnverifyCollection) Build ¶
func (obj *UnverifyCollection) Build() *Instruction
func (*UnverifyCollection) EncodeToTree ¶
func (obj *UnverifyCollection) EncodeToTree(parent treeout.Branches)
func (*UnverifyCollection) GetCollectionAccount ¶
func (obj *UnverifyCollection) GetCollectionAccount() *common.AccountMeta
GetCollectionAccount gets the "collection" parameter. Metadata Account of the Collection
func (*UnverifyCollection) GetCollectionAuthorityAccount ¶
func (obj *UnverifyCollection) GetCollectionAuthorityAccount() *common.AccountMeta
GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Authority
func (*UnverifyCollection) GetCollectionAuthorityRecordAccount ¶
func (obj *UnverifyCollection) GetCollectionAuthorityRecordAccount() *common.AccountMeta
GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*UnverifyCollection) GetCollectionMasterEditionAccountAccount ¶
func (obj *UnverifyCollection) GetCollectionMasterEditionAccountAccount() *common.AccountMeta
GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token
func (*UnverifyCollection) GetCollectionMintAccount ¶
func (obj *UnverifyCollection) GetCollectionMintAccount() *common.AccountMeta
GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection
func (*UnverifyCollection) GetMetadataAccount ¶
func (obj *UnverifyCollection) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*UnverifyCollection) MarshalWithEncoder ¶
func (obj *UnverifyCollection) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UnverifyCollection) SetCollectionAccount ¶
func (obj *UnverifyCollection) SetCollectionAccount(collection common.PublicKey) *UnverifyCollection
SetCollectionAccount sets the "collection" parameter. Metadata Account of the Collection
func (*UnverifyCollection) SetCollectionAuthorityAccount ¶
func (obj *UnverifyCollection) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *UnverifyCollection
SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Authority
func (*UnverifyCollection) SetCollectionAuthorityRecordAccount ¶
func (obj *UnverifyCollection) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *UnverifyCollection
SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*UnverifyCollection) SetCollectionMasterEditionAccountAccount ¶
func (obj *UnverifyCollection) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *UnverifyCollection
SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token
func (*UnverifyCollection) SetCollectionMintAccount ¶
func (obj *UnverifyCollection) SetCollectionMintAccount(collectionMint common.PublicKey) *UnverifyCollection
SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection
func (*UnverifyCollection) SetMetadataAccount ¶
func (obj *UnverifyCollection) SetMetadataAccount(metadata common.PublicKey) *UnverifyCollection
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*UnverifyCollection) SetProgramId ¶
func (obj *UnverifyCollection) SetProgramId(programId *common.PublicKey) *UnverifyCollection
func (*UnverifyCollection) UnmarshalWithDecoder ¶
func (obj *UnverifyCollection) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*UnverifyCollection) Validate ¶
func (obj *UnverifyCollection) Validate() error
func (*UnverifyCollection) ValidateAndBuild ¶
func (obj *UnverifyCollection) 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 UnverifySizedCollectionItem ¶
type UnverifySizedCollectionItem struct { // [0] = [WRITE] metadata `Metadata account` // [1] = [SIGNER] collectionAuthority `Collection Authority` // [2] = [WRITE, SIGNER] payer `payer` // [3] = [] collectionMint `Mint of the Collection` // [4] = [WRITE] collection `Metadata Account of the Collection` // [5] = [] collectionMasterEditionAccount `MasterEdition2 Account of the Collection Token` // [6] = [] collectionAuthorityRecord `Collection Authority Record PDA` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
UnverifySizedCollectionItem Instruction
func NewUnverifySizedCollectionItemInstruction ¶
func NewUnverifySizedCollectionItemInstruction( metadata common.PublicKey, collectionAuthority common.PublicKey, payer common.PublicKey, collectionMint common.PublicKey, collection common.PublicKey, collectionMasterEditionAccount common.PublicKey, collectionAuthorityRecord common.PublicKey, ) *UnverifySizedCollectionItem
NewUnverifySizedCollectionItemInstruction
Parameters:
metadata: Metadata account collectionAuthority: Collection Authority payer: payer collectionMint: Mint of the Collection collection: Metadata Account of the Collection collectionMasterEditionAccount: MasterEdition2 Account of the Collection Token collectionAuthorityRecord: Collection Authority Record PDA
func NewUnverifySizedCollectionItemInstructionBuilder ¶
func NewUnverifySizedCollectionItemInstructionBuilder() *UnverifySizedCollectionItem
NewUnverifySizedCollectionItemInstructionBuilder creates a new `UnverifySizedCollectionItem` instruction builder.
func (*UnverifySizedCollectionItem) Build ¶
func (obj *UnverifySizedCollectionItem) Build() *Instruction
func (*UnverifySizedCollectionItem) EncodeToTree ¶
func (obj *UnverifySizedCollectionItem) EncodeToTree(parent treeout.Branches)
func (*UnverifySizedCollectionItem) GetCollectionAccount ¶
func (obj *UnverifySizedCollectionItem) GetCollectionAccount() *common.AccountMeta
GetCollectionAccount gets the "collection" parameter. Metadata Account of the Collection
func (*UnverifySizedCollectionItem) GetCollectionAuthorityAccount ¶
func (obj *UnverifySizedCollectionItem) GetCollectionAuthorityAccount() *common.AccountMeta
GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Authority
func (*UnverifySizedCollectionItem) GetCollectionAuthorityRecordAccount ¶
func (obj *UnverifySizedCollectionItem) GetCollectionAuthorityRecordAccount() *common.AccountMeta
GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*UnverifySizedCollectionItem) GetCollectionMasterEditionAccountAccount ¶
func (obj *UnverifySizedCollectionItem) GetCollectionMasterEditionAccountAccount() *common.AccountMeta
GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token
func (*UnverifySizedCollectionItem) GetCollectionMintAccount ¶
func (obj *UnverifySizedCollectionItem) GetCollectionMintAccount() *common.AccountMeta
GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection
func (*UnverifySizedCollectionItem) GetMetadataAccount ¶
func (obj *UnverifySizedCollectionItem) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*UnverifySizedCollectionItem) GetPayerAccount ¶
func (obj *UnverifySizedCollectionItem) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*UnverifySizedCollectionItem) MarshalWithEncoder ¶
func (obj *UnverifySizedCollectionItem) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UnverifySizedCollectionItem) SetCollectionAccount ¶
func (obj *UnverifySizedCollectionItem) SetCollectionAccount(collection common.PublicKey) *UnverifySizedCollectionItem
SetCollectionAccount sets the "collection" parameter. Metadata Account of the Collection
func (*UnverifySizedCollectionItem) SetCollectionAuthorityAccount ¶
func (obj *UnverifySizedCollectionItem) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *UnverifySizedCollectionItem
SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Authority
func (*UnverifySizedCollectionItem) SetCollectionAuthorityRecordAccount ¶
func (obj *UnverifySizedCollectionItem) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *UnverifySizedCollectionItem
SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*UnverifySizedCollectionItem) SetCollectionMasterEditionAccountAccount ¶
func (obj *UnverifySizedCollectionItem) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *UnverifySizedCollectionItem
SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token
func (*UnverifySizedCollectionItem) SetCollectionMintAccount ¶
func (obj *UnverifySizedCollectionItem) SetCollectionMintAccount(collectionMint common.PublicKey) *UnverifySizedCollectionItem
SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection
func (*UnverifySizedCollectionItem) SetMetadataAccount ¶
func (obj *UnverifySizedCollectionItem) SetMetadataAccount(metadata common.PublicKey) *UnverifySizedCollectionItem
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*UnverifySizedCollectionItem) SetPayerAccount ¶
func (obj *UnverifySizedCollectionItem) SetPayerAccount(payer common.PublicKey) *UnverifySizedCollectionItem
SetPayerAccount sets the "payer" parameter. payer
func (*UnverifySizedCollectionItem) SetProgramId ¶
func (obj *UnverifySizedCollectionItem) SetProgramId(programId *common.PublicKey) *UnverifySizedCollectionItem
func (*UnverifySizedCollectionItem) UnmarshalWithDecoder ¶
func (obj *UnverifySizedCollectionItem) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*UnverifySizedCollectionItem) Validate ¶
func (obj *UnverifySizedCollectionItem) Validate() error
func (*UnverifySizedCollectionItem) ValidateAndBuild ¶
func (obj *UnverifySizedCollectionItem) 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 Update ¶
type Update struct { UpdateArgs *UpdateArgs // [0] = [SIGNER] authority `Update authority or delegate` // [1] = [] delegateRecord `Delegate record PDA` // [2] = [] token `Token account` // [3] = [] mint `Mint account` // [4] = [WRITE] metadata `Metadata account` // [5] = [] edition `Edition account` // [6] = [WRITE, SIGNER] payer `Payer` // [7] = [] systemProgram `System program` // [8] = [] sysvarInstructions `Instructions sysvar account` // [9] = [] authorizationRulesProgram `Token Authorization Rules Program` // [10] = [] authorizationRules `Token Authorization Rules account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Update Instruction
func NewUpdateInstruction ¶
func NewUpdateInstruction( updateArgs UpdateArgs, authority common.PublicKey, delegateRecord common.PublicKey, token common.PublicKey, mint common.PublicKey, metadata common.PublicKey, edition common.PublicKey, payer common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, authorizationRulesProgram common.PublicKey, authorizationRules common.PublicKey, ) *Update
NewUpdateInstruction
Parameters:
updateArgs: authority: Update authority or delegate delegateRecord: Delegate record PDA token: Token account mint: Mint account metadata: Metadata account edition: Edition account payer: Payer systemProgram: System program sysvarInstructions: Instructions sysvar account authorizationRulesProgram: Token Authorization Rules Program authorizationRules: Token Authorization Rules account
func NewUpdateInstructionBuilder ¶
func NewUpdateInstructionBuilder() *Update
NewUpdateInstructionBuilder creates a new `Update` instruction builder.
func (*Update) Build ¶
func (obj *Update) Build() *Instruction
func (*Update) EncodeToTree ¶
func (*Update) GetAuthorityAccount ¶
func (obj *Update) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Update authority or delegate
func (*Update) GetAuthorizationRulesAccount ¶
func (obj *Update) GetAuthorizationRulesAccount() *common.AccountMeta
GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account
func (*Update) GetAuthorizationRulesProgramAccount ¶
func (obj *Update) GetAuthorizationRulesProgramAccount() *common.AccountMeta
GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Update) GetDelegateRecordAccount ¶
func (obj *Update) GetDelegateRecordAccount() *common.AccountMeta
GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record PDA
func (*Update) GetEditionAccount ¶
func (obj *Update) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Edition account
func (*Update) GetMetadataAccount ¶
func (obj *Update) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*Update) GetMintAccount ¶
func (obj *Update) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint account
func (*Update) GetPayerAccount ¶
func (obj *Update) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*Update) GetSystemProgramAccount ¶
func (obj *Update) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*Update) GetSysvarInstructionsAccount ¶
func (obj *Update) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Update) GetTokenAccount ¶
func (obj *Update) GetTokenAccount() *common.AccountMeta
GetTokenAccount gets the "token" parameter. Token account
func (*Update) MarshalWithEncoder ¶
func (*Update) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Update authority or delegate
func (*Update) SetAuthorizationRulesAccount ¶
func (obj *Update) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Update
SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account
func (*Update) SetAuthorizationRulesProgramAccount ¶
func (obj *Update) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Update
SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Update) SetDelegateRecordAccount ¶
SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record PDA
func (*Update) SetEditionAccount ¶
SetEditionAccount sets the "edition" parameter. Edition account
func (*Update) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*Update) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint account
func (*Update) SetPayerAccount ¶
SetPayerAccount sets the "payer" parameter. Payer
func (*Update) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*Update) SetSysvarInstructionsAccount ¶
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Update) SetTokenAccount ¶
SetTokenAccount sets the "token" parameter. Token account
func (*Update) SetUpdateArgs ¶
func (obj *Update) SetUpdateArgs(updateArgs UpdateArgs) *Update
SetUpdateArgs sets the "updateArgs" parameter.
func (*Update) UnmarshalWithDecoder ¶
func (*Update) ValidateAndBuild ¶
func (obj *Update) 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 UpdateArgs ¶
type UpdateArgs struct { V1 *UpdateArgsV1 `bin:"optional"` AsUpdateAuthorityV2 *UpdateArgsAsUpdateAuthorityV2 `bin:"optional"` AsAuthorityItemDelegateV2 *UpdateArgsAsAuthorityItemDelegateV2 `bin:"optional"` AsCollectionDelegateV2 *UpdateArgsAsCollectionDelegateV2 `bin:"optional"` AsDataDelegateV2 *UpdateArgsAsDataDelegateV2 `bin:"optional"` AsProgrammableConfigDelegateV2 *UpdateArgsAsProgrammableConfigDelegateV2 `bin:"optional"` AsDataItemDelegateV2 *UpdateArgsAsDataItemDelegateV2 `bin:"optional"` AsCollectionItemDelegateV2 *UpdateArgsAsCollectionItemDelegateV2 `bin:"optional"` AsProgrammableConfigItemDelegateV2 *UpdateArgsAsProgrammableConfigItemDelegateV2 `bin:"optional"` }
UpdateArgs Enum
func NewUpdateArgs_AsAuthorityItemDelegateV2 ¶
func NewUpdateArgs_AsAuthorityItemDelegateV2(newUpdateAuthority *common.PublicKey, primarySaleHappened *bool, isMutable *bool, tokenStandard *TokenStandard, authorizationData *AuthorizationData) UpdateArgs
func NewUpdateArgs_AsCollectionDelegateV2 ¶
func NewUpdateArgs_AsCollectionDelegateV2(collection CollectionToggle, authorizationData *AuthorizationData) UpdateArgs
func NewUpdateArgs_AsCollectionItemDelegateV2 ¶
func NewUpdateArgs_AsCollectionItemDelegateV2(collection CollectionToggle, authorizationData *AuthorizationData) UpdateArgs
func NewUpdateArgs_AsDataDelegateV2 ¶
func NewUpdateArgs_AsDataDelegateV2(data *Data, authorizationData *AuthorizationData) UpdateArgs
func NewUpdateArgs_AsDataItemDelegateV2 ¶
func NewUpdateArgs_AsDataItemDelegateV2(data *Data, authorizationData *AuthorizationData) UpdateArgs
func NewUpdateArgs_AsProgrammableConfigDelegateV2 ¶
func NewUpdateArgs_AsProgrammableConfigDelegateV2(ruleSet RuleSetToggle, authorizationData *AuthorizationData) UpdateArgs
func NewUpdateArgs_AsProgrammableConfigItemDelegateV2 ¶
func NewUpdateArgs_AsProgrammableConfigItemDelegateV2(ruleSet RuleSetToggle, authorizationData *AuthorizationData) UpdateArgs
func NewUpdateArgs_AsUpdateAuthorityV2 ¶
func NewUpdateArgs_AsUpdateAuthorityV2(newUpdateAuthority *common.PublicKey, data *Data, primarySaleHappened *bool, isMutable *bool, collection CollectionToggle, collectionDetails CollectionDetailsToggle, uses UsesToggle, ruleSet RuleSetToggle, tokenStandard *TokenStandard, authorizationData *AuthorizationData) UpdateArgs
func NewUpdateArgs_V1 ¶
func NewUpdateArgs_V1(newUpdateAuthority *common.PublicKey, data *Data, primarySaleHappened *bool, isMutable *bool, collection CollectionToggle, collectionDetails CollectionDetailsToggle, uses UsesToggle, ruleSet RuleSetToggle, authorizationData *AuthorizationData) UpdateArgs
func (*UpdateArgs) AsAsAuthorityItemDelegateV2 ¶
func (obj *UpdateArgs) AsAsAuthorityItemDelegateV2() UpdateArgsAsAuthorityItemDelegateV2
func (*UpdateArgs) AsAsCollectionDelegateV2 ¶
func (obj *UpdateArgs) AsAsCollectionDelegateV2() UpdateArgsAsCollectionDelegateV2
func (*UpdateArgs) AsAsCollectionItemDelegateV2 ¶
func (obj *UpdateArgs) AsAsCollectionItemDelegateV2() UpdateArgsAsCollectionItemDelegateV2
func (*UpdateArgs) AsAsDataDelegateV2 ¶
func (obj *UpdateArgs) AsAsDataDelegateV2() UpdateArgsAsDataDelegateV2
func (*UpdateArgs) AsAsDataItemDelegateV2 ¶
func (obj *UpdateArgs) AsAsDataItemDelegateV2() UpdateArgsAsDataItemDelegateV2
func (*UpdateArgs) AsAsProgrammableConfigDelegateV2 ¶
func (obj *UpdateArgs) AsAsProgrammableConfigDelegateV2() UpdateArgsAsProgrammableConfigDelegateV2
func (*UpdateArgs) AsAsProgrammableConfigItemDelegateV2 ¶
func (obj *UpdateArgs) AsAsProgrammableConfigItemDelegateV2() UpdateArgsAsProgrammableConfigItemDelegateV2
func (*UpdateArgs) AsAsUpdateAuthorityV2 ¶
func (obj *UpdateArgs) AsAsUpdateAuthorityV2() UpdateArgsAsUpdateAuthorityV2
func (*UpdateArgs) AsV1 ¶
func (obj *UpdateArgs) AsV1() UpdateArgsV1
func (*UpdateArgs) IsAsAuthorityItemDelegateV2 ¶
func (obj *UpdateArgs) IsAsAuthorityItemDelegateV2() bool
func (*UpdateArgs) IsAsCollectionDelegateV2 ¶
func (obj *UpdateArgs) IsAsCollectionDelegateV2() bool
func (*UpdateArgs) IsAsCollectionItemDelegateV2 ¶
func (obj *UpdateArgs) IsAsCollectionItemDelegateV2() bool
func (*UpdateArgs) IsAsDataDelegateV2 ¶
func (obj *UpdateArgs) IsAsDataDelegateV2() bool
func (*UpdateArgs) IsAsDataItemDelegateV2 ¶
func (obj *UpdateArgs) IsAsDataItemDelegateV2() bool
func (*UpdateArgs) IsAsProgrammableConfigDelegateV2 ¶
func (obj *UpdateArgs) IsAsProgrammableConfigDelegateV2() bool
func (*UpdateArgs) IsAsProgrammableConfigItemDelegateV2 ¶
func (obj *UpdateArgs) IsAsProgrammableConfigItemDelegateV2() bool
func (*UpdateArgs) IsAsUpdateAuthorityV2 ¶
func (obj *UpdateArgs) IsAsUpdateAuthorityV2() bool
func (*UpdateArgs) IsV1 ¶
func (obj *UpdateArgs) IsV1() bool
func (*UpdateArgs) MarshalWithEncoder ¶
func (obj *UpdateArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateArgs) String ¶
func (obj *UpdateArgs) String() string
func (*UpdateArgs) UnmarshalWithDecoder ¶
func (obj *UpdateArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UpdateArgsAsAuthorityItemDelegateV2 ¶
type UpdateArgsAsAuthorityItemDelegateV2 struct { NewUpdateAuthority *common.PublicKey `bin:"optional"` PrimarySaleHappened *bool `bin:"optional"` IsMutable *bool `bin:"optional"` TokenStandard *TokenStandard `bin:"optional"` AuthorizationData *AuthorizationData `bin:"optional"` }
func (*UpdateArgsAsAuthorityItemDelegateV2) MarshalWithEncoder ¶
func (obj *UpdateArgsAsAuthorityItemDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateArgsAsAuthorityItemDelegateV2) UnmarshalWithDecoder ¶
func (obj *UpdateArgsAsAuthorityItemDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UpdateArgsAsCollectionDelegateV2 ¶
type UpdateArgsAsCollectionDelegateV2 struct { Collection CollectionToggle AuthorizationData *AuthorizationData `bin:"optional"` }
func (*UpdateArgsAsCollectionDelegateV2) MarshalWithEncoder ¶
func (obj *UpdateArgsAsCollectionDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateArgsAsCollectionDelegateV2) UnmarshalWithDecoder ¶
func (obj *UpdateArgsAsCollectionDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UpdateArgsAsCollectionItemDelegateV2 ¶
type UpdateArgsAsCollectionItemDelegateV2 struct { Collection CollectionToggle AuthorizationData *AuthorizationData `bin:"optional"` }
func (*UpdateArgsAsCollectionItemDelegateV2) MarshalWithEncoder ¶
func (obj *UpdateArgsAsCollectionItemDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateArgsAsCollectionItemDelegateV2) UnmarshalWithDecoder ¶
func (obj *UpdateArgsAsCollectionItemDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UpdateArgsAsDataDelegateV2 ¶
type UpdateArgsAsDataDelegateV2 struct { Data *Data `bin:"optional"` AuthorizationData *AuthorizationData `bin:"optional"` }
func (*UpdateArgsAsDataDelegateV2) MarshalWithEncoder ¶
func (obj *UpdateArgsAsDataDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateArgsAsDataDelegateV2) UnmarshalWithDecoder ¶
func (obj *UpdateArgsAsDataDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UpdateArgsAsDataItemDelegateV2 ¶
type UpdateArgsAsDataItemDelegateV2 struct { Data *Data `bin:"optional"` AuthorizationData *AuthorizationData `bin:"optional"` }
func (*UpdateArgsAsDataItemDelegateV2) MarshalWithEncoder ¶
func (obj *UpdateArgsAsDataItemDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateArgsAsDataItemDelegateV2) UnmarshalWithDecoder ¶
func (obj *UpdateArgsAsDataItemDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UpdateArgsAsProgrammableConfigDelegateV2 ¶
type UpdateArgsAsProgrammableConfigDelegateV2 struct { RuleSet RuleSetToggle AuthorizationData *AuthorizationData `bin:"optional"` }
func (*UpdateArgsAsProgrammableConfigDelegateV2) MarshalWithEncoder ¶
func (obj *UpdateArgsAsProgrammableConfigDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateArgsAsProgrammableConfigDelegateV2) UnmarshalWithDecoder ¶
func (obj *UpdateArgsAsProgrammableConfigDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UpdateArgsAsProgrammableConfigItemDelegateV2 ¶
type UpdateArgsAsProgrammableConfigItemDelegateV2 struct { RuleSet RuleSetToggle AuthorizationData *AuthorizationData `bin:"optional"` }
func (*UpdateArgsAsProgrammableConfigItemDelegateV2) MarshalWithEncoder ¶
func (obj *UpdateArgsAsProgrammableConfigItemDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateArgsAsProgrammableConfigItemDelegateV2) UnmarshalWithDecoder ¶
func (obj *UpdateArgsAsProgrammableConfigItemDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UpdateArgsAsUpdateAuthorityV2 ¶
type UpdateArgsAsUpdateAuthorityV2 struct { NewUpdateAuthority *common.PublicKey `bin:"optional"` Data *Data `bin:"optional"` PrimarySaleHappened *bool `bin:"optional"` IsMutable *bool `bin:"optional"` Collection CollectionToggle CollectionDetails CollectionDetailsToggle Uses UsesToggle RuleSet RuleSetToggle TokenStandard *TokenStandard `bin:"optional"` AuthorizationData *AuthorizationData `bin:"optional"` }
func (*UpdateArgsAsUpdateAuthorityV2) MarshalWithEncoder ¶
func (obj *UpdateArgsAsUpdateAuthorityV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateArgsAsUpdateAuthorityV2) UnmarshalWithDecoder ¶
func (obj *UpdateArgsAsUpdateAuthorityV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UpdateArgsV1 ¶
type UpdateArgsV1 struct { NewUpdateAuthority *common.PublicKey `bin:"optional"` Data *Data `bin:"optional"` PrimarySaleHappened *bool `bin:"optional"` IsMutable *bool `bin:"optional"` Collection CollectionToggle CollectionDetails CollectionDetailsToggle Uses UsesToggle RuleSet RuleSetToggle AuthorizationData *AuthorizationData `bin:"optional"` }
func (*UpdateArgsV1) MarshalWithEncoder ¶
func (obj *UpdateArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateArgsV1) UnmarshalWithDecoder ¶
func (obj *UpdateArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UpdateAuthorityIncorrectError ¶
type UpdateAuthorityIncorrectError struct{}
UpdateAuthorityIncorrectError Error: 7 `Update Authority given does not match`
func (UpdateAuthorityIncorrectError) Code ¶
func (e UpdateAuthorityIncorrectError) Code() int
func (UpdateAuthorityIncorrectError) Error ¶
func (e UpdateAuthorityIncorrectError) Error() string
type UpdateAuthorityIsNotSignerError ¶
type UpdateAuthorityIsNotSignerError struct{}
UpdateAuthorityIsNotSignerError Error: 8 `Update Authority needs to be signer to update metadata`
func (UpdateAuthorityIsNotSignerError) Code ¶
func (e UpdateAuthorityIsNotSignerError) Code() int
func (UpdateAuthorityIsNotSignerError) Error ¶
func (e UpdateAuthorityIsNotSignerError) Error() string
type UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError ¶
type UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError struct{}
UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError Error: 14 “
func (UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError) Code ¶
func (e UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError) Code() int
func (UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError) Error ¶
func (e UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError) Error() string
type UpdateMetadataAccount ¶
type UpdateMetadataAccount struct { // [0] = [WRITE] metadata `Metadata account` // [1] = [SIGNER] updateAuthority `Update authority key` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
UpdateMetadataAccount Instruction
func NewUpdateMetadataAccountInstruction ¶
func NewUpdateMetadataAccountInstruction( metadata common.PublicKey, updateAuthority common.PublicKey, ) *UpdateMetadataAccount
NewUpdateMetadataAccountInstruction
Parameters:
metadata: Metadata account updateAuthority: Update authority key
func NewUpdateMetadataAccountInstructionBuilder ¶
func NewUpdateMetadataAccountInstructionBuilder() *UpdateMetadataAccount
NewUpdateMetadataAccountInstructionBuilder creates a new `UpdateMetadataAccount` instruction builder.
func (*UpdateMetadataAccount) Build ¶
func (obj *UpdateMetadataAccount) Build() *Instruction
func (*UpdateMetadataAccount) EncodeToTree ¶
func (obj *UpdateMetadataAccount) EncodeToTree(parent treeout.Branches)
func (*UpdateMetadataAccount) GetMetadataAccount ¶
func (obj *UpdateMetadataAccount) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*UpdateMetadataAccount) GetUpdateAuthorityAccount ¶
func (obj *UpdateMetadataAccount) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority key
func (*UpdateMetadataAccount) MarshalWithEncoder ¶
func (obj *UpdateMetadataAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateMetadataAccount) SetMetadataAccount ¶
func (obj *UpdateMetadataAccount) SetMetadataAccount(metadata common.PublicKey) *UpdateMetadataAccount
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*UpdateMetadataAccount) SetProgramId ¶
func (obj *UpdateMetadataAccount) SetProgramId(programId *common.PublicKey) *UpdateMetadataAccount
func (*UpdateMetadataAccount) SetUpdateAuthorityAccount ¶
func (obj *UpdateMetadataAccount) SetUpdateAuthorityAccount(updateAuthority common.PublicKey, multiSigners ...common.PublicKey) *UpdateMetadataAccount
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority key
func (*UpdateMetadataAccount) UnmarshalWithDecoder ¶
func (obj *UpdateMetadataAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*UpdateMetadataAccount) Validate ¶
func (obj *UpdateMetadataAccount) Validate() error
func (*UpdateMetadataAccount) ValidateAndBuild ¶
func (obj *UpdateMetadataAccount) 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 UpdateMetadataAccountArgsV2 ¶
type UpdateMetadataAccountArgsV2 struct { Data *DataV2 `bin:"optional"` UpdateAuthority *common.PublicKey `bin:"optional"` PrimarySaleHappened *bool `bin:"optional"` IsMutable *bool `bin:"optional"` }
UpdateMetadataAccountArgsV2 Struct
func (*UpdateMetadataAccountArgsV2) MarshalWithEncoder ¶
func (obj *UpdateMetadataAccountArgsV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateMetadataAccountArgsV2) UnmarshalWithDecoder ¶
func (obj *UpdateMetadataAccountArgsV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UpdateMetadataAccountV2 ¶
type UpdateMetadataAccountV2 struct { UpdateMetadataAccountArgsV2 *UpdateMetadataAccountArgsV2 // [0] = [WRITE] metadata `Metadata account` // [1] = [SIGNER] updateAuthority `Update authority key` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
UpdateMetadataAccountV2 Instruction
func NewUpdateMetadataAccountV2Instruction ¶
func NewUpdateMetadataAccountV2Instruction( updateMetadataAccountArgsV2 UpdateMetadataAccountArgsV2, metadata common.PublicKey, updateAuthority common.PublicKey, ) *UpdateMetadataAccountV2
NewUpdateMetadataAccountV2Instruction
Parameters:
updateMetadataAccountArgsV2: metadata: Metadata account updateAuthority: Update authority key
func NewUpdateMetadataAccountV2InstructionBuilder ¶
func NewUpdateMetadataAccountV2InstructionBuilder() *UpdateMetadataAccountV2
NewUpdateMetadataAccountV2InstructionBuilder creates a new `UpdateMetadataAccountV2` instruction builder.
func (*UpdateMetadataAccountV2) Build ¶
func (obj *UpdateMetadataAccountV2) Build() *Instruction
func (*UpdateMetadataAccountV2) EncodeToTree ¶
func (obj *UpdateMetadataAccountV2) EncodeToTree(parent treeout.Branches)
func (*UpdateMetadataAccountV2) GetMetadataAccount ¶
func (obj *UpdateMetadataAccountV2) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*UpdateMetadataAccountV2) GetUpdateAuthorityAccount ¶
func (obj *UpdateMetadataAccountV2) GetUpdateAuthorityAccount() *common.AccountMeta
GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority key
func (*UpdateMetadataAccountV2) MarshalWithEncoder ¶
func (obj *UpdateMetadataAccountV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdateMetadataAccountV2) SetMetadataAccount ¶
func (obj *UpdateMetadataAccountV2) SetMetadataAccount(metadata common.PublicKey) *UpdateMetadataAccountV2
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*UpdateMetadataAccountV2) SetProgramId ¶
func (obj *UpdateMetadataAccountV2) SetProgramId(programId *common.PublicKey) *UpdateMetadataAccountV2
func (*UpdateMetadataAccountV2) SetUpdateAuthorityAccount ¶
func (obj *UpdateMetadataAccountV2) SetUpdateAuthorityAccount(updateAuthority common.PublicKey, multiSigners ...common.PublicKey) *UpdateMetadataAccountV2
SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority key
func (*UpdateMetadataAccountV2) SetUpdateMetadataAccountArgsV2 ¶
func (obj *UpdateMetadataAccountV2) SetUpdateMetadataAccountArgsV2(updateMetadataAccountArgsV2 UpdateMetadataAccountArgsV2) *UpdateMetadataAccountV2
SetUpdateMetadataAccountArgsV2 sets the "updateMetadataAccountArgsV2" parameter.
func (*UpdateMetadataAccountV2) UnmarshalWithDecoder ¶
func (obj *UpdateMetadataAccountV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*UpdateMetadataAccountV2) Validate ¶
func (obj *UpdateMetadataAccountV2) Validate() error
func (*UpdateMetadataAccountV2) ValidateAndBuild ¶
func (obj *UpdateMetadataAccountV2) 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 UpdatePrimarySaleHappenedViaToken ¶
type UpdatePrimarySaleHappenedViaToken struct { // [0] = [WRITE] metadata `Metadata key (pda of ['metadata', program id, mint id])` // [1] = [SIGNER] owner `Owner on the token account` // [2] = [] token `Account containing tokens from the metadata's mint` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
UpdatePrimarySaleHappenedViaToken Instruction
func NewUpdatePrimarySaleHappenedViaTokenInstruction ¶
func NewUpdatePrimarySaleHappenedViaTokenInstruction( metadata common.PublicKey, owner common.PublicKey, token common.PublicKey, ) *UpdatePrimarySaleHappenedViaToken
NewUpdatePrimarySaleHappenedViaTokenInstruction
Parameters:
metadata: Metadata key (pda of ['metadata', program id, mint id]) owner: Owner on the token account token: Account containing tokens from the metadata's mint
func NewUpdatePrimarySaleHappenedViaTokenInstructionBuilder ¶
func NewUpdatePrimarySaleHappenedViaTokenInstructionBuilder() *UpdatePrimarySaleHappenedViaToken
NewUpdatePrimarySaleHappenedViaTokenInstructionBuilder creates a new `UpdatePrimarySaleHappenedViaToken` instruction builder.
func (*UpdatePrimarySaleHappenedViaToken) Build ¶
func (obj *UpdatePrimarySaleHappenedViaToken) Build() *Instruction
func (*UpdatePrimarySaleHappenedViaToken) EncodeToTree ¶
func (obj *UpdatePrimarySaleHappenedViaToken) EncodeToTree(parent treeout.Branches)
func (*UpdatePrimarySaleHappenedViaToken) GetMetadataAccount ¶
func (obj *UpdatePrimarySaleHappenedViaToken) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*UpdatePrimarySaleHappenedViaToken) GetOwnerAccount ¶
func (obj *UpdatePrimarySaleHappenedViaToken) GetOwnerAccount() *common.AccountMeta
GetOwnerAccount gets the "owner" parameter. Owner on the token account
func (*UpdatePrimarySaleHappenedViaToken) GetTokenAccount ¶
func (obj *UpdatePrimarySaleHappenedViaToken) GetTokenAccount() *common.AccountMeta
GetTokenAccount gets the "token" parameter. Account containing tokens from the metadata's mint
func (*UpdatePrimarySaleHappenedViaToken) MarshalWithEncoder ¶
func (obj *UpdatePrimarySaleHappenedViaToken) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UpdatePrimarySaleHappenedViaToken) SetMetadataAccount ¶
func (obj *UpdatePrimarySaleHappenedViaToken) SetMetadataAccount(metadata common.PublicKey) *UpdatePrimarySaleHappenedViaToken
SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])
func (*UpdatePrimarySaleHappenedViaToken) SetOwnerAccount ¶
func (obj *UpdatePrimarySaleHappenedViaToken) SetOwnerAccount(owner common.PublicKey) *UpdatePrimarySaleHappenedViaToken
SetOwnerAccount sets the "owner" parameter. Owner on the token account
func (*UpdatePrimarySaleHappenedViaToken) SetProgramId ¶
func (obj *UpdatePrimarySaleHappenedViaToken) SetProgramId(programId *common.PublicKey) *UpdatePrimarySaleHappenedViaToken
func (*UpdatePrimarySaleHappenedViaToken) SetTokenAccount ¶
func (obj *UpdatePrimarySaleHappenedViaToken) SetTokenAccount(token common.PublicKey, multiSigners ...common.PublicKey) *UpdatePrimarySaleHappenedViaToken
SetTokenAccount sets the "token" parameter. Account containing tokens from the metadata's mint
func (*UpdatePrimarySaleHappenedViaToken) UnmarshalWithDecoder ¶
func (obj *UpdatePrimarySaleHappenedViaToken) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*UpdatePrimarySaleHappenedViaToken) Validate ¶
func (obj *UpdatePrimarySaleHappenedViaToken) Validate() error
func (*UpdatePrimarySaleHappenedViaToken) ValidateAndBuild ¶
func (obj *UpdatePrimarySaleHappenedViaToken) 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 UriTooLongError ¶
type UriTooLongError struct{}
UriTooLongError Error: 13 `URI too long`
func (UriTooLongError) Code ¶
func (e UriTooLongError) Code() int
func (UriTooLongError) Error ¶
func (e UriTooLongError) Error() string
type Use ¶
type Use struct { UseArgs *UseArgs // [0] = [SIGNER] authority `Token owner or delegate` // [1] = [WRITE] delegateRecord `Delegate record PDA` // [2] = [WRITE] token `Token account` // [3] = [] mint `Mint account` // [4] = [WRITE] metadata `Metadata account` // [5] = [WRITE] edition `Edition account` // [6] = [SIGNER] payer `Payer` // [7] = [] systemProgram `System program` // [8] = [] sysvarInstructions `System program` // [9] = [] splTokenProgram `SPL Token Program` // [10] = [] authorizationRulesProgram `Token Authorization Rules Program` // [11] = [] authorizationRules `Token Authorization Rules account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Use Instruction
func NewUseInstruction ¶
func NewUseInstruction( useArgs UseArgs, authority common.PublicKey, delegateRecord common.PublicKey, token common.PublicKey, mint common.PublicKey, metadata common.PublicKey, edition common.PublicKey, payer common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, splTokenProgram common.PublicKey, authorizationRulesProgram common.PublicKey, authorizationRules common.PublicKey, ) *Use
NewUseInstruction
Parameters:
useArgs: authority: Token owner or delegate delegateRecord: Delegate record PDA token: Token account mint: Mint account metadata: Metadata account edition: Edition account payer: Payer systemProgram: System program sysvarInstructions: System program splTokenProgram: SPL Token Program authorizationRulesProgram: Token Authorization Rules Program authorizationRules: Token Authorization Rules account
func NewUseInstructionBuilder ¶
func NewUseInstructionBuilder() *Use
NewUseInstructionBuilder creates a new `Use` instruction builder.
func (*Use) Build ¶
func (obj *Use) Build() *Instruction
func (*Use) EncodeToTree ¶
func (*Use) GetAuthorityAccount ¶
func (obj *Use) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Token owner or delegate
func (*Use) GetAuthorizationRulesAccount ¶
func (obj *Use) GetAuthorizationRulesAccount() *common.AccountMeta
GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account
func (*Use) GetAuthorizationRulesProgramAccount ¶
func (obj *Use) GetAuthorizationRulesProgramAccount() *common.AccountMeta
GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Use) GetDelegateRecordAccount ¶
func (obj *Use) GetDelegateRecordAccount() *common.AccountMeta
GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record PDA
func (*Use) GetEditionAccount ¶
func (obj *Use) GetEditionAccount() *common.AccountMeta
GetEditionAccount gets the "edition" parameter. Edition account
func (*Use) GetMetadataAccount ¶
func (obj *Use) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*Use) GetMintAccount ¶
func (obj *Use) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint account
func (*Use) GetPayerAccount ¶
func (obj *Use) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. Payer
func (*Use) GetSplTokenProgramAccount ¶
func (obj *Use) GetSplTokenProgramAccount() *common.AccountMeta
GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program
func (*Use) GetSystemProgramAccount ¶
func (obj *Use) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*Use) GetSysvarInstructionsAccount ¶
func (obj *Use) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. System program
func (*Use) GetTokenAccount ¶
func (obj *Use) GetTokenAccount() *common.AccountMeta
GetTokenAccount gets the "token" parameter. Token account
func (*Use) MarshalWithEncoder ¶
func (*Use) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Token owner or delegate
func (*Use) SetAuthorizationRulesAccount ¶
func (obj *Use) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Use
SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account
func (*Use) SetAuthorizationRulesProgramAccount ¶
func (obj *Use) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Use
SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program
func (*Use) SetDelegateRecordAccount ¶
SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record PDA
func (*Use) SetEditionAccount ¶
SetEditionAccount sets the "edition" parameter. Edition account
func (*Use) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*Use) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint account
func (*Use) SetPayerAccount ¶
SetPayerAccount sets the "payer" parameter. Payer
func (*Use) SetSplTokenProgramAccount ¶
SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program
func (*Use) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*Use) SetSysvarInstructionsAccount ¶
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. System program
func (*Use) SetTokenAccount ¶
SetTokenAccount sets the "token" parameter. Token account
func (*Use) SetUseArgs ¶
SetUseArgs sets the "useArgs" parameter.
func (*Use) UnmarshalWithDecoder ¶
func (*Use) ValidateAndBuild ¶
func (obj *Use) 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 UseArgs ¶
type UseArgs struct {
V1 *UseArgsV1 `bin:"optional"`
}
UseArgs Enum
func NewUseArgs_V1 ¶
func NewUseArgs_V1(authorizationData *AuthorizationData) UseArgs
func (*UseArgs) MarshalWithEncoder ¶
type UseArgsV1 ¶
type UseArgsV1 struct {
AuthorizationData *AuthorizationData `bin:"optional"`
}
func (*UseArgsV1) MarshalWithEncoder ¶
type UseAuthorityRecord ¶
UseAuthorityRecord Struct
func (*UseAuthorityRecord) MarshalWithEncoder ¶
func (obj *UseAuthorityRecord) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UseAuthorityRecord) UnmarshalWithDecoder ¶
func (obj *UseAuthorityRecord) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UseAuthorityRecordAlreadyExistsError ¶
type UseAuthorityRecordAlreadyExistsError struct{}
UseAuthorityRecordAlreadyExistsError Error: 83 `The Use Authority Record Already Exists, to modify it Revoke, then Approve`
func (UseAuthorityRecordAlreadyExistsError) Code ¶
func (e UseAuthorityRecordAlreadyExistsError) Code() int
func (UseAuthorityRecordAlreadyExistsError) Error ¶
func (e UseAuthorityRecordAlreadyExistsError) Error() string
type UseAuthorityRecordAlreadyRevokedError ¶
type UseAuthorityRecordAlreadyRevokedError struct{}
UseAuthorityRecordAlreadyRevokedError Error: 84 `The Use Authority Record is empty or already revoked`
func (UseAuthorityRecordAlreadyRevokedError) Code ¶
func (e UseAuthorityRecordAlreadyRevokedError) Code() int
func (UseAuthorityRecordAlreadyRevokedError) Error ¶
func (e UseAuthorityRecordAlreadyRevokedError) Error() string
type UsesToggle ¶
type UsesToggle struct { None *struct{} `bin:"optional"` Clear *struct{} `bin:"optional"` Set *UsesToggleSet `bin:"optional"` }
UsesToggle Enum
func NewUsesToggle_Clear ¶
func NewUsesToggle_Clear() UsesToggle
func NewUsesToggle_None ¶
func NewUsesToggle_None() UsesToggle
func NewUsesToggle_Set ¶
func NewUsesToggle_Set(field0 Uses) UsesToggle
func (*UsesToggle) AsSet ¶
func (obj *UsesToggle) AsSet() UsesToggleSet
func (*UsesToggle) IsClear ¶
func (obj *UsesToggle) IsClear() bool
func (*UsesToggle) IsNone ¶
func (obj *UsesToggle) IsNone() bool
func (*UsesToggle) IsSet ¶
func (obj *UsesToggle) IsSet() bool
func (*UsesToggle) MarshalWithEncoder ¶
func (obj *UsesToggle) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UsesToggle) String ¶
func (obj *UsesToggle) String() string
func (*UsesToggle) UnmarshalWithDecoder ¶
func (obj *UsesToggle) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type UsesToggleSet ¶
type UsesToggleSet struct {
Field0 Uses
}
func (*UsesToggleSet) MarshalWithEncoder ¶
func (obj *UsesToggleSet) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UsesToggleSet) UnmarshalWithDecoder ¶
func (obj *UsesToggleSet) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type Utilize ¶
type Utilize struct { UtilizeArgs *UtilizeArgs // [0] = [WRITE] metadata `Metadata account` // [1] = [WRITE] tokenAccount `Token Account Of NFT` // [2] = [WRITE] mint `Mint of the Metadata` // [3] = [WRITE, SIGNER] useAuthority `A Use Authority / Can be the current Owner of the NFT` // [4] = [] owner `Owner` // [5] = [] tokenProgram `Token program` // [6] = [] ataProgram `Associated Token program` // [7] = [] systemProgram `System program` // [8] = [] rent `Rent info` // [9] = [WRITE] useAuthorityRecord `Use Authority Record PDA If present the program Assumes a delegated use authority` // [10] = [] burner `Program As Signer (Burner)` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Utilize Instruction
func NewUtilizeInstruction ¶
func NewUtilizeInstruction( utilizeArgs UtilizeArgs, metadata common.PublicKey, tokenAccount common.PublicKey, mint common.PublicKey, useAuthority common.PublicKey, owner common.PublicKey, tokenProgram common.PublicKey, ataProgram common.PublicKey, systemProgram common.PublicKey, rent common.PublicKey, useAuthorityRecord common.PublicKey, burner common.PublicKey, ) *Utilize
NewUtilizeInstruction
Parameters:
utilizeArgs: metadata: Metadata account tokenAccount: Token Account Of NFT mint: Mint of the Metadata useAuthority: A Use Authority / Can be the current Owner of the NFT owner: Owner tokenProgram: Token program ataProgram: Associated Token program systemProgram: System program rent: Rent info useAuthorityRecord: Use Authority Record PDA If present the program Assumes a delegated use authority burner: Program As Signer (Burner)
func NewUtilizeInstructionBuilder ¶
func NewUtilizeInstructionBuilder() *Utilize
NewUtilizeInstructionBuilder creates a new `Utilize` instruction builder.
func (*Utilize) Build ¶
func (obj *Utilize) Build() *Instruction
func (*Utilize) EncodeToTree ¶
func (*Utilize) GetAtaProgramAccount ¶
func (obj *Utilize) GetAtaProgramAccount() *common.AccountMeta
GetAtaProgramAccount gets the "ataProgram" parameter. Associated Token program
func (*Utilize) GetBurnerAccount ¶
func (obj *Utilize) GetBurnerAccount() *common.AccountMeta
GetBurnerAccount gets the "burner" parameter. Program As Signer (Burner)
func (*Utilize) GetMetadataAccount ¶
func (obj *Utilize) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*Utilize) GetMintAccount ¶
func (obj *Utilize) GetMintAccount() *common.AccountMeta
GetMintAccount gets the "mint" parameter. Mint of the Metadata
func (*Utilize) GetOwnerAccount ¶
func (obj *Utilize) GetOwnerAccount() *common.AccountMeta
GetOwnerAccount gets the "owner" parameter. Owner
func (*Utilize) GetRentAccount ¶
func (obj *Utilize) GetRentAccount() *common.AccountMeta
GetRentAccount gets the "rent" parameter. Rent info
func (*Utilize) GetSystemProgramAccount ¶
func (obj *Utilize) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*Utilize) GetTokenAccountAccount ¶
func (obj *Utilize) GetTokenAccountAccount() *common.AccountMeta
GetTokenAccountAccount gets the "tokenAccount" parameter. Token Account Of NFT
func (*Utilize) GetTokenProgramAccount ¶
func (obj *Utilize) GetTokenProgramAccount() *common.AccountMeta
GetTokenProgramAccount gets the "tokenProgram" parameter. Token program
func (*Utilize) GetUseAuthorityAccount ¶
func (obj *Utilize) GetUseAuthorityAccount() *common.AccountMeta
GetUseAuthorityAccount gets the "useAuthority" parameter. A Use Authority / Can be the current Owner of the NFT
func (*Utilize) GetUseAuthorityRecordAccount ¶
func (obj *Utilize) GetUseAuthorityRecordAccount() *common.AccountMeta
GetUseAuthorityRecordAccount gets the "useAuthorityRecord" parameter. Use Authority Record PDA If present the program Assumes a delegated use authority
func (*Utilize) MarshalWithEncoder ¶
func (*Utilize) SetAtaProgramAccount ¶
SetAtaProgramAccount sets the "ataProgram" parameter. Associated Token program
func (*Utilize) SetBurnerAccount ¶
func (obj *Utilize) SetBurnerAccount(burner common.PublicKey, multiSigners ...common.PublicKey) *Utilize
SetBurnerAccount sets the "burner" parameter. Program As Signer (Burner)
func (*Utilize) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*Utilize) SetMintAccount ¶
SetMintAccount sets the "mint" parameter. Mint of the Metadata
func (*Utilize) SetOwnerAccount ¶
SetOwnerAccount sets the "owner" parameter. Owner
func (*Utilize) SetProgramId ¶
func (*Utilize) SetRentAccount ¶
SetRentAccount sets the "rent" parameter. Rent info
func (*Utilize) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*Utilize) SetTokenAccountAccount ¶
SetTokenAccountAccount sets the "tokenAccount" parameter. Token Account Of NFT
func (*Utilize) SetTokenProgramAccount ¶
SetTokenProgramAccount sets the "tokenProgram" parameter. Token program
func (*Utilize) SetUseAuthorityAccount ¶
SetUseAuthorityAccount sets the "useAuthority" parameter. A Use Authority / Can be the current Owner of the NFT
func (*Utilize) SetUseAuthorityRecordAccount ¶
SetUseAuthorityRecordAccount sets the "useAuthorityRecord" parameter. Use Authority Record PDA If present the program Assumes a delegated use authority
func (*Utilize) SetUtilizeArgs ¶
func (obj *Utilize) SetUtilizeArgs(utilizeArgs UtilizeArgs) *Utilize
SetUtilizeArgs sets the "utilizeArgs" parameter.
func (*Utilize) UnmarshalWithDecoder ¶
func (*Utilize) ValidateAndBuild ¶
func (obj *Utilize) 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 UtilizeArgs ¶
type UtilizeArgs struct {
NumberOfUses uint64
}
UtilizeArgs Struct
func (*UtilizeArgs) MarshalWithEncoder ¶
func (obj *UtilizeArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*UtilizeArgs) UnmarshalWithDecoder ¶
func (obj *UtilizeArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
type VerificationArgs ¶
VerificationArgs Enum
const ( VerificationArgsCreatorV1 VerificationArgs = iota VerificationArgsCollectionV1 )
func (VerificationArgs) String ¶
func (value VerificationArgs) String() string
type Verify ¶
type Verify struct { VerificationArgs *VerificationArgs // [0] = [SIGNER] authority `Creator to verify, collection update authority or delegate` // [1] = [] delegateRecord `Delegate record PDA` // [2] = [WRITE] metadata `Metadata account` // [3] = [] collectionMint `Mint of the Collection` // [4] = [WRITE] collectionMetadata `Metadata Account of the Collection` // [5] = [] collectionMasterEdition `Master Edition Account of the Collection Token` // [6] = [] systemProgram `System program` // [7] = [] sysvarInstructions `Instructions sysvar account` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
Verify Instruction
func NewVerifyInstruction ¶
func NewVerifyInstruction( verificationArgs VerificationArgs, authority common.PublicKey, delegateRecord common.PublicKey, metadata common.PublicKey, collectionMint common.PublicKey, collectionMetadata common.PublicKey, collectionMasterEdition common.PublicKey, systemProgram common.PublicKey, sysvarInstructions common.PublicKey, ) *Verify
NewVerifyInstruction
Parameters:
verificationArgs: authority: Creator to verify, collection update authority or delegate delegateRecord: Delegate record PDA metadata: Metadata account collectionMint: Mint of the Collection collectionMetadata: Metadata Account of the Collection collectionMasterEdition: Master Edition Account of the Collection Token systemProgram: System program sysvarInstructions: Instructions sysvar account
func NewVerifyInstructionBuilder ¶
func NewVerifyInstructionBuilder() *Verify
NewVerifyInstructionBuilder creates a new `Verify` instruction builder.
func (*Verify) Build ¶
func (obj *Verify) Build() *Instruction
func (*Verify) EncodeToTree ¶
func (*Verify) GetAuthorityAccount ¶
func (obj *Verify) GetAuthorityAccount() *common.AccountMeta
GetAuthorityAccount gets the "authority" parameter. Creator to verify, collection update authority or delegate
func (*Verify) GetCollectionMasterEditionAccount ¶
func (obj *Verify) GetCollectionMasterEditionAccount() *common.AccountMeta
GetCollectionMasterEditionAccount gets the "collectionMasterEdition" parameter. Master Edition Account of the Collection Token
func (*Verify) GetCollectionMetadataAccount ¶
func (obj *Verify) GetCollectionMetadataAccount() *common.AccountMeta
GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Metadata Account of the Collection
func (*Verify) GetCollectionMintAccount ¶
func (obj *Verify) GetCollectionMintAccount() *common.AccountMeta
GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection
func (*Verify) GetDelegateRecordAccount ¶
func (obj *Verify) GetDelegateRecordAccount() *common.AccountMeta
GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record PDA
func (*Verify) GetMetadataAccount ¶
func (obj *Verify) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*Verify) GetSystemProgramAccount ¶
func (obj *Verify) GetSystemProgramAccount() *common.AccountMeta
GetSystemProgramAccount gets the "systemProgram" parameter. System program
func (*Verify) GetSysvarInstructionsAccount ¶
func (obj *Verify) GetSysvarInstructionsAccount() *common.AccountMeta
GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Verify) MarshalWithEncoder ¶
func (*Verify) SetAuthorityAccount ¶
SetAuthorityAccount sets the "authority" parameter. Creator to verify, collection update authority or delegate
func (*Verify) SetCollectionMasterEditionAccount ¶
func (obj *Verify) SetCollectionMasterEditionAccount(collectionMasterEdition common.PublicKey) *Verify
SetCollectionMasterEditionAccount sets the "collectionMasterEdition" parameter. Master Edition Account of the Collection Token
func (*Verify) SetCollectionMetadataAccount ¶
SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Metadata Account of the Collection
func (*Verify) SetCollectionMintAccount ¶
SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection
func (*Verify) SetDelegateRecordAccount ¶
SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record PDA
func (*Verify) SetMetadataAccount ¶
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*Verify) SetSystemProgramAccount ¶
SetSystemProgramAccount sets the "systemProgram" parameter. System program
func (*Verify) SetSysvarInstructionsAccount ¶
func (obj *Verify) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey, multiSigners ...common.PublicKey) *Verify
SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account
func (*Verify) SetVerificationArgs ¶
func (obj *Verify) SetVerificationArgs(verificationArgs VerificationArgs) *Verify
SetVerificationArgs sets the "verificationArgs" parameter.
func (*Verify) UnmarshalWithDecoder ¶
func (*Verify) ValidateAndBuild ¶
func (obj *Verify) 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 VerifyCollection ¶
type VerifyCollection struct { // [0] = [WRITE] metadata `Metadata account` // [1] = [WRITE, SIGNER] collectionAuthority `Collection Update authority` // [2] = [WRITE, SIGNER] payer `payer` // [3] = [] collectionMint `Mint of the Collection` // [4] = [] collection `Metadata Account of the Collection` // [5] = [] collectionMasterEditionAccount `MasterEdition2 Account of the Collection Token` // [6] = [] collectionAuthorityRecord `Collection Authority Record PDA` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
VerifyCollection Instruction
func NewVerifyCollectionInstruction ¶
func NewVerifyCollectionInstruction( metadata common.PublicKey, collectionAuthority common.PublicKey, payer common.PublicKey, collectionMint common.PublicKey, collection common.PublicKey, collectionMasterEditionAccount common.PublicKey, collectionAuthorityRecord common.PublicKey, ) *VerifyCollection
NewVerifyCollectionInstruction
Parameters:
metadata: Metadata account collectionAuthority: Collection Update authority payer: payer collectionMint: Mint of the Collection collection: Metadata Account of the Collection collectionMasterEditionAccount: MasterEdition2 Account of the Collection Token collectionAuthorityRecord: Collection Authority Record PDA
func NewVerifyCollectionInstructionBuilder ¶
func NewVerifyCollectionInstructionBuilder() *VerifyCollection
NewVerifyCollectionInstructionBuilder creates a new `VerifyCollection` instruction builder.
func (*VerifyCollection) Build ¶
func (obj *VerifyCollection) Build() *Instruction
func (*VerifyCollection) EncodeToTree ¶
func (obj *VerifyCollection) EncodeToTree(parent treeout.Branches)
func (*VerifyCollection) GetCollectionAccount ¶
func (obj *VerifyCollection) GetCollectionAccount() *common.AccountMeta
GetCollectionAccount gets the "collection" parameter. Metadata Account of the Collection
func (*VerifyCollection) GetCollectionAuthorityAccount ¶
func (obj *VerifyCollection) GetCollectionAuthorityAccount() *common.AccountMeta
GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Update authority
func (*VerifyCollection) GetCollectionAuthorityRecordAccount ¶
func (obj *VerifyCollection) GetCollectionAuthorityRecordAccount() *common.AccountMeta
GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*VerifyCollection) GetCollectionMasterEditionAccountAccount ¶
func (obj *VerifyCollection) GetCollectionMasterEditionAccountAccount() *common.AccountMeta
GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token
func (*VerifyCollection) GetCollectionMintAccount ¶
func (obj *VerifyCollection) GetCollectionMintAccount() *common.AccountMeta
GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection
func (*VerifyCollection) GetMetadataAccount ¶
func (obj *VerifyCollection) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*VerifyCollection) GetPayerAccount ¶
func (obj *VerifyCollection) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*VerifyCollection) MarshalWithEncoder ¶
func (obj *VerifyCollection) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*VerifyCollection) SetCollectionAccount ¶
func (obj *VerifyCollection) SetCollectionAccount(collection common.PublicKey) *VerifyCollection
SetCollectionAccount sets the "collection" parameter. Metadata Account of the Collection
func (*VerifyCollection) SetCollectionAuthorityAccount ¶
func (obj *VerifyCollection) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *VerifyCollection
SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Update authority
func (*VerifyCollection) SetCollectionAuthorityRecordAccount ¶
func (obj *VerifyCollection) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *VerifyCollection
SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*VerifyCollection) SetCollectionMasterEditionAccountAccount ¶
func (obj *VerifyCollection) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *VerifyCollection
SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token
func (*VerifyCollection) SetCollectionMintAccount ¶
func (obj *VerifyCollection) SetCollectionMintAccount(collectionMint common.PublicKey) *VerifyCollection
SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection
func (*VerifyCollection) SetMetadataAccount ¶
func (obj *VerifyCollection) SetMetadataAccount(metadata common.PublicKey) *VerifyCollection
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*VerifyCollection) SetPayerAccount ¶
func (obj *VerifyCollection) SetPayerAccount(payer common.PublicKey) *VerifyCollection
SetPayerAccount sets the "payer" parameter. payer
func (*VerifyCollection) SetProgramId ¶
func (obj *VerifyCollection) SetProgramId(programId *common.PublicKey) *VerifyCollection
func (*VerifyCollection) UnmarshalWithDecoder ¶
func (obj *VerifyCollection) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*VerifyCollection) Validate ¶
func (obj *VerifyCollection) Validate() error
func (*VerifyCollection) ValidateAndBuild ¶
func (obj *VerifyCollection) 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 VerifySizedCollectionItem ¶
type VerifySizedCollectionItem struct { // [0] = [WRITE] metadata `Metadata account` // [1] = [SIGNER] collectionAuthority `Collection Update authority` // [2] = [WRITE, SIGNER] payer `payer` // [3] = [] collectionMint `Mint of the Collection` // [4] = [WRITE] collection `Metadata Account of the Collection` // [5] = [] collectionMasterEditionAccount `MasterEdition2 Account of the Collection Token` // [6] = [] collectionAuthorityRecord `Collection Authority Record PDA` common.AccountMetaSlice `bin:"-"` // contains filtered or unexported fields }
VerifySizedCollectionItem Instruction
func NewVerifySizedCollectionItemInstruction ¶
func NewVerifySizedCollectionItemInstruction( metadata common.PublicKey, collectionAuthority common.PublicKey, payer common.PublicKey, collectionMint common.PublicKey, collection common.PublicKey, collectionMasterEditionAccount common.PublicKey, collectionAuthorityRecord common.PublicKey, ) *VerifySizedCollectionItem
NewVerifySizedCollectionItemInstruction
Parameters:
metadata: Metadata account collectionAuthority: Collection Update authority payer: payer collectionMint: Mint of the Collection collection: Metadata Account of the Collection collectionMasterEditionAccount: MasterEdition2 Account of the Collection Token collectionAuthorityRecord: Collection Authority Record PDA
func NewVerifySizedCollectionItemInstructionBuilder ¶
func NewVerifySizedCollectionItemInstructionBuilder() *VerifySizedCollectionItem
NewVerifySizedCollectionItemInstructionBuilder creates a new `VerifySizedCollectionItem` instruction builder.
func (*VerifySizedCollectionItem) Build ¶
func (obj *VerifySizedCollectionItem) Build() *Instruction
func (*VerifySizedCollectionItem) EncodeToTree ¶
func (obj *VerifySizedCollectionItem) EncodeToTree(parent treeout.Branches)
func (*VerifySizedCollectionItem) GetCollectionAccount ¶
func (obj *VerifySizedCollectionItem) GetCollectionAccount() *common.AccountMeta
GetCollectionAccount gets the "collection" parameter. Metadata Account of the Collection
func (*VerifySizedCollectionItem) GetCollectionAuthorityAccount ¶
func (obj *VerifySizedCollectionItem) GetCollectionAuthorityAccount() *common.AccountMeta
GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Update authority
func (*VerifySizedCollectionItem) GetCollectionAuthorityRecordAccount ¶
func (obj *VerifySizedCollectionItem) GetCollectionAuthorityRecordAccount() *common.AccountMeta
GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*VerifySizedCollectionItem) GetCollectionMasterEditionAccountAccount ¶
func (obj *VerifySizedCollectionItem) GetCollectionMasterEditionAccountAccount() *common.AccountMeta
GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token
func (*VerifySizedCollectionItem) GetCollectionMintAccount ¶
func (obj *VerifySizedCollectionItem) GetCollectionMintAccount() *common.AccountMeta
GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection
func (*VerifySizedCollectionItem) GetMetadataAccount ¶
func (obj *VerifySizedCollectionItem) GetMetadataAccount() *common.AccountMeta
GetMetadataAccount gets the "metadata" parameter. Metadata account
func (*VerifySizedCollectionItem) GetPayerAccount ¶
func (obj *VerifySizedCollectionItem) GetPayerAccount() *common.AccountMeta
GetPayerAccount gets the "payer" parameter. payer
func (*VerifySizedCollectionItem) MarshalWithEncoder ¶
func (obj *VerifySizedCollectionItem) MarshalWithEncoder(encoder *binary.Encoder) (err error)
func (*VerifySizedCollectionItem) SetCollectionAccount ¶
func (obj *VerifySizedCollectionItem) SetCollectionAccount(collection common.PublicKey) *VerifySizedCollectionItem
SetCollectionAccount sets the "collection" parameter. Metadata Account of the Collection
func (*VerifySizedCollectionItem) SetCollectionAuthorityAccount ¶
func (obj *VerifySizedCollectionItem) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *VerifySizedCollectionItem
SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Update authority
func (*VerifySizedCollectionItem) SetCollectionAuthorityRecordAccount ¶
func (obj *VerifySizedCollectionItem) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *VerifySizedCollectionItem
SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA
func (*VerifySizedCollectionItem) SetCollectionMasterEditionAccountAccount ¶
func (obj *VerifySizedCollectionItem) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *VerifySizedCollectionItem
SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token
func (*VerifySizedCollectionItem) SetCollectionMintAccount ¶
func (obj *VerifySizedCollectionItem) SetCollectionMintAccount(collectionMint common.PublicKey) *VerifySizedCollectionItem
SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection
func (*VerifySizedCollectionItem) SetMetadataAccount ¶
func (obj *VerifySizedCollectionItem) SetMetadataAccount(metadata common.PublicKey) *VerifySizedCollectionItem
SetMetadataAccount sets the "metadata" parameter. Metadata account
func (*VerifySizedCollectionItem) SetPayerAccount ¶
func (obj *VerifySizedCollectionItem) SetPayerAccount(payer common.PublicKey) *VerifySizedCollectionItem
SetPayerAccount sets the "payer" parameter. payer
func (*VerifySizedCollectionItem) SetProgramId ¶
func (obj *VerifySizedCollectionItem) SetProgramId(programId *common.PublicKey) *VerifySizedCollectionItem
func (*VerifySizedCollectionItem) UnmarshalWithDecoder ¶
func (obj *VerifySizedCollectionItem) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)
func (*VerifySizedCollectionItem) Validate ¶
func (obj *VerifySizedCollectionItem) Validate() error
func (*VerifySizedCollectionItem) ValidateAndBuild ¶
func (obj *VerifySizedCollectionItem) 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.