gumdrop

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ProgramName = "Gumdrop"

Variables

View Source
var (
	Instruction_NewDistributor = ag_binary.TypeID([8]byte{32, 139, 112, 171, 0, 2, 225, 155})

	Instruction_CloseDistributorTokenAccount = ag_binary.TypeID([8]byte{156, 174, 153, 120, 102, 150, 134, 142})

	Instruction_CloseDistributor = ag_binary.TypeID([8]byte{202, 56, 180, 143, 46, 104, 106, 112})

	Instruction_ProveClaim = ag_binary.TypeID([8]byte{52, 82, 123, 224, 40, 139, 230, 184})

	Instruction_Claim = ag_binary.TypeID([8]byte{62, 198, 214, 193, 213, 159, 108, 210})

	Instruction_ClaimCandy = ag_binary.TypeID([8]byte{87, 176, 177, 90, 136, 95, 83, 242})

	Instruction_ClaimEdition = ag_binary.TypeID([8]byte{150, 83, 124, 180, 53, 35, 144, 248})

	Instruction_ClaimCandyProven = ag_binary.TypeID([8]byte{1, 2, 30, 252, 145, 228, 67, 145})

	Instruction_RecoverUpdateAuthority = ag_binary.TypeID([8]byte{142, 251, 209, 116, 87, 100, 36, 191})
)
View Source
var CandyMachineDiscriminator = [8]byte{51, 173, 177, 113, 25, 241, 109, 189}
View Source
var ClaimCountDiscriminator = [8]byte{78, 134, 220, 213, 34, 152, 102, 167}
View Source
var ClaimProofDiscriminator = [8]byte{48, 173, 176, 137, 53, 116, 40, 112}
View Source
var ClaimStatusDiscriminator = [8]byte{22, 183, 249, 157, 247, 95, 150, 96}
View Source
var ConfigDiscriminator = [8]byte{155, 12, 170, 224, 30, 250, 204, 130}
View Source
var InstructionImplDef = ag_binary.NewVariantDefinition(
	ag_binary.AnchorTypeIDEncoding,
	[]ag_binary.VariantType{
		{
			"new_distributor", (*NewDistributor)(nil),
		},
		{
			"close_distributor_token_account", (*CloseDistributorTokenAccount)(nil),
		},
		{
			"close_distributor", (*CloseDistributor)(nil),
		},
		{
			"prove_claim", (*ProveClaim)(nil),
		},
		{
			"claim", (*Claim)(nil),
		},
		{
			"claim_candy", (*ClaimCandy)(nil),
		},
		{
			"claim_edition", (*ClaimEdition)(nil),
		},
		{
			"claim_candy_proven", (*ClaimCandyProven)(nil),
		},
		{
			"recover_update_authority", (*RecoverUpdateAuthority)(nil),
		},
	},
)
View Source
var MerkleDistributorDiscriminator = [8]byte{77, 119, 139, 70, 84, 247, 12, 26}

Functions

func InstructionIDToName

func InstructionIDToName(id ag_binary.TypeID) string

InstructionIDToName returns the name of the instruction given its ID.

func SetProgramID

func SetProgramID(pubkey ag_solanago.PublicKey)

Types

type CandyMachine

type CandyMachine struct {
	Authority     ag_solanago.PublicKey
	Wallet        ag_solanago.PublicKey
	TokenMint     *ag_solanago.PublicKey `bin:"optional"`
	Config        ag_solanago.PublicKey
	Data          CandyMachineData
	ItemsRedeemed uint64
	Bump          uint8
}

func (CandyMachine) MarshalWithEncoder

func (obj CandyMachine) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*CandyMachine) UnmarshalWithDecoder

func (obj *CandyMachine) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type CandyMachineData

type CandyMachineData struct {
	Uuid           string
	Price          uint64
	ItemsAvailable uint64
	GoLiveDate     *int64 `bin:"optional"`
}

func (CandyMachineData) MarshalWithEncoder

func (obj CandyMachineData) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*CandyMachineData) UnmarshalWithDecoder

func (obj *CandyMachineData) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type Claim

type Claim struct {
	ClaimBump      *uint8
	Index          *uint64
	Amount         *uint64
	ClaimantSecret *ag_solanago.PublicKey
	Proof          *[][32]uint8

	// [0] = [WRITE] distributor
	//
	// [1] = [WRITE] claimStatus
	//
	// [2] = [WRITE] from
	//
	// [3] = [WRITE] to
	//
	// [4] = [SIGNER] temporal
	//
	// [5] = [WRITE, SIGNER] payer
	//
	// [6] = [] systemProgram
	//
	// [7] = [] tokenProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Claim is the `claim` instruction.

func NewClaimInstruction

func NewClaimInstruction(

	claimBump uint8,
	index uint64,
	amount uint64,
	claimantSecret ag_solanago.PublicKey,
	proof [][32]uint8,

	distributor ag_solanago.PublicKey,
	claimStatus ag_solanago.PublicKey,
	from ag_solanago.PublicKey,
	to ag_solanago.PublicKey,
	temporal ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey) *Claim

NewClaimInstruction declares a new Claim instruction with the provided parameters and accounts.

func NewClaimInstructionBuilder

func NewClaimInstructionBuilder() *Claim

NewClaimInstructionBuilder creates a new `Claim` instruction builder.

func (Claim) Build

func (inst Claim) Build() *Instruction

func (*Claim) EncodeToTree

func (inst *Claim) EncodeToTree(parent ag_treeout.Branches)

func (*Claim) GetClaimStatusAccount

func (inst *Claim) GetClaimStatusAccount() *ag_solanago.AccountMeta

GetClaimStatusAccount gets the "claimStatus" account.

func (*Claim) GetDistributorAccount

func (inst *Claim) GetDistributorAccount() *ag_solanago.AccountMeta

GetDistributorAccount gets the "distributor" account.

func (*Claim) GetFromAccount

func (inst *Claim) GetFromAccount() *ag_solanago.AccountMeta

GetFromAccount gets the "from" account.

func (*Claim) GetPayerAccount

func (inst *Claim) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*Claim) GetSystemProgramAccount

func (inst *Claim) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*Claim) GetTemporalAccount

func (inst *Claim) GetTemporalAccount() *ag_solanago.AccountMeta

GetTemporalAccount gets the "temporal" account.

func (*Claim) GetToAccount

func (inst *Claim) GetToAccount() *ag_solanago.AccountMeta

GetToAccount gets the "to" account.

func (*Claim) GetTokenProgramAccount

func (inst *Claim) GetTokenProgramAccount() *ag_solanago.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" account.

func (Claim) MarshalWithEncoder

func (obj Claim) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*Claim) SetAmount

func (inst *Claim) SetAmount(amount uint64) *Claim

SetAmount sets the "amount" parameter.

func (*Claim) SetClaimBump

func (inst *Claim) SetClaimBump(claimBump uint8) *Claim

SetClaimBump sets the "claimBump" parameter.

func (*Claim) SetClaimStatusAccount

func (inst *Claim) SetClaimStatusAccount(claimStatus ag_solanago.PublicKey) *Claim

SetClaimStatusAccount sets the "claimStatus" account.

func (*Claim) SetClaimantSecret

func (inst *Claim) SetClaimantSecret(claimantSecret ag_solanago.PublicKey) *Claim

SetClaimantSecret sets the "claimantSecret" parameter.

func (*Claim) SetDistributorAccount

func (inst *Claim) SetDistributorAccount(distributor ag_solanago.PublicKey) *Claim

SetDistributorAccount sets the "distributor" account.

func (*Claim) SetFromAccount

func (inst *Claim) SetFromAccount(from ag_solanago.PublicKey) *Claim

SetFromAccount sets the "from" account.

func (*Claim) SetIndex

func (inst *Claim) SetIndex(index uint64) *Claim

SetIndex sets the "index" parameter.

func (*Claim) SetPayerAccount

func (inst *Claim) SetPayerAccount(payer ag_solanago.PublicKey) *Claim

SetPayerAccount sets the "payer" account.

func (*Claim) SetProof

func (inst *Claim) SetProof(proof [][32]uint8) *Claim

SetProof sets the "proof" parameter.

func (*Claim) SetSystemProgramAccount

func (inst *Claim) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *Claim

SetSystemProgramAccount sets the "systemProgram" account.

func (*Claim) SetTemporalAccount

func (inst *Claim) SetTemporalAccount(temporal ag_solanago.PublicKey) *Claim

SetTemporalAccount sets the "temporal" account.

func (*Claim) SetToAccount

func (inst *Claim) SetToAccount(to ag_solanago.PublicKey) *Claim

SetToAccount sets the "to" account.

func (*Claim) SetTokenProgramAccount

func (inst *Claim) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *Claim

SetTokenProgramAccount sets the "tokenProgram" account.

func (*Claim) UnmarshalWithDecoder

func (obj *Claim) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*Claim) Validate

func (inst *Claim) Validate() error

func (Claim) ValidateAndBuild

func (inst Claim) 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 ClaimCandy

type ClaimCandy struct {
	WalletBump     *uint8
	ClaimBump      *uint8
	Index          *uint64
	Amount         *uint64
	ClaimantSecret *ag_solanago.PublicKey
	Proof          *[][32]uint8

	// [0] = [WRITE] distributor
	//
	// [1] = [WRITE] distributorWallet
	//
	// [2] = [WRITE] claimCount
	//
	// [3] = [SIGNER] temporal
	//
	// [4] = [SIGNER] payer
	//
	// [5] = [] candyMachineConfig
	//
	// [6] = [WRITE] candyMachine
	//
	// [7] = [WRITE] candyMachineWallet
	//
	// [8] = [WRITE] candyMachineMint
	//
	// [9] = [WRITE] candyMachineMetadata
	//
	// [10] = [WRITE] candyMachineMasterEdition
	//
	// [11] = [] systemProgram
	//
	// [12] = [] tokenProgram
	//
	// [13] = [] tokenMetadataProgram
	//
	// [14] = [] candyMachineProgram
	//
	// [15] = [] rent
	//
	// [16] = [] clock
	ag_solanago.AccountMetaSlice `bin:"-"`
}

ClaimCandy is the `claimCandy` instruction.

func NewClaimCandyInstruction

func NewClaimCandyInstruction(

	walletBump uint8,
	claimBump uint8,
	index uint64,
	amount uint64,
	claimantSecret ag_solanago.PublicKey,
	proof [][32]uint8,

	distributor ag_solanago.PublicKey,
	distributorWallet ag_solanago.PublicKey,
	claimCount ag_solanago.PublicKey,
	temporal ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	candyMachineConfig ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	candyMachineWallet ag_solanago.PublicKey,
	candyMachineMint ag_solanago.PublicKey,
	candyMachineMetadata ag_solanago.PublicKey,
	candyMachineMasterEdition ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	candyMachineProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	clock ag_solanago.PublicKey) *ClaimCandy

NewClaimCandyInstruction declares a new ClaimCandy instruction with the provided parameters and accounts.

func NewClaimCandyInstructionBuilder

func NewClaimCandyInstructionBuilder() *ClaimCandy

NewClaimCandyInstructionBuilder creates a new `ClaimCandy` instruction builder.

func (ClaimCandy) Build

func (inst ClaimCandy) Build() *Instruction

func (*ClaimCandy) EncodeToTree

func (inst *ClaimCandy) EncodeToTree(parent ag_treeout.Branches)

func (*ClaimCandy) GetCandyMachineAccount

func (inst *ClaimCandy) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (*ClaimCandy) GetCandyMachineConfigAccount

func (inst *ClaimCandy) GetCandyMachineConfigAccount() *ag_solanago.AccountMeta

GetCandyMachineConfigAccount gets the "candyMachineConfig" account.

func (*ClaimCandy) GetCandyMachineMasterEditionAccount

func (inst *ClaimCandy) GetCandyMachineMasterEditionAccount() *ag_solanago.AccountMeta

GetCandyMachineMasterEditionAccount gets the "candyMachineMasterEdition" account.

func (*ClaimCandy) GetCandyMachineMetadataAccount

func (inst *ClaimCandy) GetCandyMachineMetadataAccount() *ag_solanago.AccountMeta

GetCandyMachineMetadataAccount gets the "candyMachineMetadata" account.

func (*ClaimCandy) GetCandyMachineMintAccount

func (inst *ClaimCandy) GetCandyMachineMintAccount() *ag_solanago.AccountMeta

GetCandyMachineMintAccount gets the "candyMachineMint" account.

func (*ClaimCandy) GetCandyMachineProgramAccount

func (inst *ClaimCandy) GetCandyMachineProgramAccount() *ag_solanago.AccountMeta

GetCandyMachineProgramAccount gets the "candyMachineProgram" account.

func (*ClaimCandy) GetCandyMachineWalletAccount

func (inst *ClaimCandy) GetCandyMachineWalletAccount() *ag_solanago.AccountMeta

GetCandyMachineWalletAccount gets the "candyMachineWallet" account.

func (*ClaimCandy) GetClaimCountAccount

func (inst *ClaimCandy) GetClaimCountAccount() *ag_solanago.AccountMeta

GetClaimCountAccount gets the "claimCount" account.

func (*ClaimCandy) GetClockAccount

func (inst *ClaimCandy) GetClockAccount() *ag_solanago.AccountMeta

GetClockAccount gets the "clock" account.

func (*ClaimCandy) GetDistributorAccount

func (inst *ClaimCandy) GetDistributorAccount() *ag_solanago.AccountMeta

GetDistributorAccount gets the "distributor" account.

func (*ClaimCandy) GetDistributorWalletAccount

func (inst *ClaimCandy) GetDistributorWalletAccount() *ag_solanago.AccountMeta

GetDistributorWalletAccount gets the "distributorWallet" account.

func (*ClaimCandy) GetPayerAccount

func (inst *ClaimCandy) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*ClaimCandy) GetRentAccount

func (inst *ClaimCandy) GetRentAccount() *ag_solanago.AccountMeta

GetRentAccount gets the "rent" account.

func (*ClaimCandy) GetSystemProgramAccount

func (inst *ClaimCandy) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*ClaimCandy) GetTemporalAccount

func (inst *ClaimCandy) GetTemporalAccount() *ag_solanago.AccountMeta

GetTemporalAccount gets the "temporal" account.

func (*ClaimCandy) GetTokenMetadataProgramAccount

func (inst *ClaimCandy) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*ClaimCandy) GetTokenProgramAccount

func (inst *ClaimCandy) GetTokenProgramAccount() *ag_solanago.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" account.

func (ClaimCandy) MarshalWithEncoder

func (obj ClaimCandy) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*ClaimCandy) SetAmount

func (inst *ClaimCandy) SetAmount(amount uint64) *ClaimCandy

SetAmount sets the "amount" parameter.

func (*ClaimCandy) SetCandyMachineAccount

func (inst *ClaimCandy) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *ClaimCandy

SetCandyMachineAccount sets the "candyMachine" account.

func (*ClaimCandy) SetCandyMachineConfigAccount

func (inst *ClaimCandy) SetCandyMachineConfigAccount(candyMachineConfig ag_solanago.PublicKey) *ClaimCandy

SetCandyMachineConfigAccount sets the "candyMachineConfig" account.

func (*ClaimCandy) SetCandyMachineMasterEditionAccount

func (inst *ClaimCandy) SetCandyMachineMasterEditionAccount(candyMachineMasterEdition ag_solanago.PublicKey) *ClaimCandy

SetCandyMachineMasterEditionAccount sets the "candyMachineMasterEdition" account.

func (*ClaimCandy) SetCandyMachineMetadataAccount

func (inst *ClaimCandy) SetCandyMachineMetadataAccount(candyMachineMetadata ag_solanago.PublicKey) *ClaimCandy

SetCandyMachineMetadataAccount sets the "candyMachineMetadata" account.

func (*ClaimCandy) SetCandyMachineMintAccount

func (inst *ClaimCandy) SetCandyMachineMintAccount(candyMachineMint ag_solanago.PublicKey) *ClaimCandy

SetCandyMachineMintAccount sets the "candyMachineMint" account.

func (*ClaimCandy) SetCandyMachineProgramAccount

func (inst *ClaimCandy) SetCandyMachineProgramAccount(candyMachineProgram ag_solanago.PublicKey) *ClaimCandy

SetCandyMachineProgramAccount sets the "candyMachineProgram" account.

func (*ClaimCandy) SetCandyMachineWalletAccount

func (inst *ClaimCandy) SetCandyMachineWalletAccount(candyMachineWallet ag_solanago.PublicKey) *ClaimCandy

SetCandyMachineWalletAccount sets the "candyMachineWallet" account.

func (*ClaimCandy) SetClaimBump

func (inst *ClaimCandy) SetClaimBump(claimBump uint8) *ClaimCandy

SetClaimBump sets the "claimBump" parameter.

func (*ClaimCandy) SetClaimCountAccount

func (inst *ClaimCandy) SetClaimCountAccount(claimCount ag_solanago.PublicKey) *ClaimCandy

SetClaimCountAccount sets the "claimCount" account.

func (*ClaimCandy) SetClaimantSecret

func (inst *ClaimCandy) SetClaimantSecret(claimantSecret ag_solanago.PublicKey) *ClaimCandy

SetClaimantSecret sets the "claimantSecret" parameter.

func (*ClaimCandy) SetClockAccount

func (inst *ClaimCandy) SetClockAccount(clock ag_solanago.PublicKey) *ClaimCandy

SetClockAccount sets the "clock" account.

func (*ClaimCandy) SetDistributorAccount

func (inst *ClaimCandy) SetDistributorAccount(distributor ag_solanago.PublicKey) *ClaimCandy

SetDistributorAccount sets the "distributor" account.

func (*ClaimCandy) SetDistributorWalletAccount

func (inst *ClaimCandy) SetDistributorWalletAccount(distributorWallet ag_solanago.PublicKey) *ClaimCandy

SetDistributorWalletAccount sets the "distributorWallet" account.

func (*ClaimCandy) SetIndex

func (inst *ClaimCandy) SetIndex(index uint64) *ClaimCandy

SetIndex sets the "index" parameter.

func (*ClaimCandy) SetPayerAccount

func (inst *ClaimCandy) SetPayerAccount(payer ag_solanago.PublicKey) *ClaimCandy

SetPayerAccount sets the "payer" account.

func (*ClaimCandy) SetProof

func (inst *ClaimCandy) SetProof(proof [][32]uint8) *ClaimCandy

SetProof sets the "proof" parameter.

func (*ClaimCandy) SetRentAccount

func (inst *ClaimCandy) SetRentAccount(rent ag_solanago.PublicKey) *ClaimCandy

SetRentAccount sets the "rent" account.

func (*ClaimCandy) SetSystemProgramAccount

func (inst *ClaimCandy) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *ClaimCandy

SetSystemProgramAccount sets the "systemProgram" account.

func (*ClaimCandy) SetTemporalAccount

func (inst *ClaimCandy) SetTemporalAccount(temporal ag_solanago.PublicKey) *ClaimCandy

SetTemporalAccount sets the "temporal" account.

func (*ClaimCandy) SetTokenMetadataProgramAccount

func (inst *ClaimCandy) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *ClaimCandy

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*ClaimCandy) SetTokenProgramAccount

func (inst *ClaimCandy) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *ClaimCandy

SetTokenProgramAccount sets the "tokenProgram" account.

func (*ClaimCandy) SetWalletBump

func (inst *ClaimCandy) SetWalletBump(walletBump uint8) *ClaimCandy

SetWalletBump sets the "walletBump" parameter.

func (*ClaimCandy) UnmarshalWithDecoder

func (obj *ClaimCandy) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*ClaimCandy) Validate

func (inst *ClaimCandy) Validate() error

func (ClaimCandy) ValidateAndBuild

func (inst ClaimCandy) 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 ClaimCandyProven

type ClaimCandyProven struct {
	WalletBump *uint8
	ClaimBump  *uint8
	Index      *uint64

	// [0] = [WRITE] distributor
	//
	// [1] = [WRITE] distributorWallet
	//
	// [2] = [WRITE] claimProof
	//
	// [3] = [SIGNER] payer
	//
	// [4] = [] candyMachineConfig
	//
	// [5] = [WRITE] candyMachine
	//
	// [6] = [WRITE] candyMachineWallet
	//
	// [7] = [WRITE] candyMachineMint
	//
	// [8] = [WRITE] candyMachineMetadata
	//
	// [9] = [WRITE] candyMachineMasterEdition
	//
	// [10] = [] systemProgram
	//
	// [11] = [] tokenProgram
	//
	// [12] = [] tokenMetadataProgram
	//
	// [13] = [] candyMachineProgram
	//
	// [14] = [] rent
	//
	// [15] = [] clock
	ag_solanago.AccountMetaSlice `bin:"-"`
}

ClaimCandyProven is the `claimCandyProven` instruction.

func NewClaimCandyProvenInstruction

func NewClaimCandyProvenInstruction(

	walletBump uint8,
	claimBump uint8,
	index uint64,

	distributor ag_solanago.PublicKey,
	distributorWallet ag_solanago.PublicKey,
	claimProof ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	candyMachineConfig ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	candyMachineWallet ag_solanago.PublicKey,
	candyMachineMint ag_solanago.PublicKey,
	candyMachineMetadata ag_solanago.PublicKey,
	candyMachineMasterEdition ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	candyMachineProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	clock ag_solanago.PublicKey) *ClaimCandyProven

NewClaimCandyProvenInstruction declares a new ClaimCandyProven instruction with the provided parameters and accounts.

func NewClaimCandyProvenInstructionBuilder

func NewClaimCandyProvenInstructionBuilder() *ClaimCandyProven

NewClaimCandyProvenInstructionBuilder creates a new `ClaimCandyProven` instruction builder.

func (ClaimCandyProven) Build

func (inst ClaimCandyProven) Build() *Instruction

func (*ClaimCandyProven) EncodeToTree

func (inst *ClaimCandyProven) EncodeToTree(parent ag_treeout.Branches)

func (*ClaimCandyProven) GetCandyMachineAccount

func (inst *ClaimCandyProven) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (*ClaimCandyProven) GetCandyMachineConfigAccount

func (inst *ClaimCandyProven) GetCandyMachineConfigAccount() *ag_solanago.AccountMeta

GetCandyMachineConfigAccount gets the "candyMachineConfig" account.

func (*ClaimCandyProven) GetCandyMachineMasterEditionAccount

func (inst *ClaimCandyProven) GetCandyMachineMasterEditionAccount() *ag_solanago.AccountMeta

GetCandyMachineMasterEditionAccount gets the "candyMachineMasterEdition" account.

func (*ClaimCandyProven) GetCandyMachineMetadataAccount

func (inst *ClaimCandyProven) GetCandyMachineMetadataAccount() *ag_solanago.AccountMeta

GetCandyMachineMetadataAccount gets the "candyMachineMetadata" account.

func (*ClaimCandyProven) GetCandyMachineMintAccount

func (inst *ClaimCandyProven) GetCandyMachineMintAccount() *ag_solanago.AccountMeta

GetCandyMachineMintAccount gets the "candyMachineMint" account.

func (*ClaimCandyProven) GetCandyMachineProgramAccount

func (inst *ClaimCandyProven) GetCandyMachineProgramAccount() *ag_solanago.AccountMeta

GetCandyMachineProgramAccount gets the "candyMachineProgram" account.

func (*ClaimCandyProven) GetCandyMachineWalletAccount

func (inst *ClaimCandyProven) GetCandyMachineWalletAccount() *ag_solanago.AccountMeta

GetCandyMachineWalletAccount gets the "candyMachineWallet" account.

func (*ClaimCandyProven) GetClaimProofAccount

func (inst *ClaimCandyProven) GetClaimProofAccount() *ag_solanago.AccountMeta

GetClaimProofAccount gets the "claimProof" account.

func (*ClaimCandyProven) GetClockAccount

func (inst *ClaimCandyProven) GetClockAccount() *ag_solanago.AccountMeta

GetClockAccount gets the "clock" account.

func (*ClaimCandyProven) GetDistributorAccount

func (inst *ClaimCandyProven) GetDistributorAccount() *ag_solanago.AccountMeta

GetDistributorAccount gets the "distributor" account.

func (*ClaimCandyProven) GetDistributorWalletAccount

func (inst *ClaimCandyProven) GetDistributorWalletAccount() *ag_solanago.AccountMeta

GetDistributorWalletAccount gets the "distributorWallet" account.

func (*ClaimCandyProven) GetPayerAccount

func (inst *ClaimCandyProven) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*ClaimCandyProven) GetRentAccount

func (inst *ClaimCandyProven) GetRentAccount() *ag_solanago.AccountMeta

GetRentAccount gets the "rent" account.

func (*ClaimCandyProven) GetSystemProgramAccount

func (inst *ClaimCandyProven) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*ClaimCandyProven) GetTokenMetadataProgramAccount

func (inst *ClaimCandyProven) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*ClaimCandyProven) GetTokenProgramAccount

func (inst *ClaimCandyProven) GetTokenProgramAccount() *ag_solanago.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" account.

func (ClaimCandyProven) MarshalWithEncoder

func (obj ClaimCandyProven) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*ClaimCandyProven) SetCandyMachineAccount

func (inst *ClaimCandyProven) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *ClaimCandyProven

SetCandyMachineAccount sets the "candyMachine" account.

func (*ClaimCandyProven) SetCandyMachineConfigAccount

func (inst *ClaimCandyProven) SetCandyMachineConfigAccount(candyMachineConfig ag_solanago.PublicKey) *ClaimCandyProven

SetCandyMachineConfigAccount sets the "candyMachineConfig" account.

func (*ClaimCandyProven) SetCandyMachineMasterEditionAccount

func (inst *ClaimCandyProven) SetCandyMachineMasterEditionAccount(candyMachineMasterEdition ag_solanago.PublicKey) *ClaimCandyProven

SetCandyMachineMasterEditionAccount sets the "candyMachineMasterEdition" account.

func (*ClaimCandyProven) SetCandyMachineMetadataAccount

func (inst *ClaimCandyProven) SetCandyMachineMetadataAccount(candyMachineMetadata ag_solanago.PublicKey) *ClaimCandyProven

SetCandyMachineMetadataAccount sets the "candyMachineMetadata" account.

func (*ClaimCandyProven) SetCandyMachineMintAccount

func (inst *ClaimCandyProven) SetCandyMachineMintAccount(candyMachineMint ag_solanago.PublicKey) *ClaimCandyProven

SetCandyMachineMintAccount sets the "candyMachineMint" account.

func (*ClaimCandyProven) SetCandyMachineProgramAccount

func (inst *ClaimCandyProven) SetCandyMachineProgramAccount(candyMachineProgram ag_solanago.PublicKey) *ClaimCandyProven

SetCandyMachineProgramAccount sets the "candyMachineProgram" account.

func (*ClaimCandyProven) SetCandyMachineWalletAccount

func (inst *ClaimCandyProven) SetCandyMachineWalletAccount(candyMachineWallet ag_solanago.PublicKey) *ClaimCandyProven

SetCandyMachineWalletAccount sets the "candyMachineWallet" account.

func (*ClaimCandyProven) SetClaimBump

func (inst *ClaimCandyProven) SetClaimBump(claimBump uint8) *ClaimCandyProven

SetClaimBump sets the "claimBump" parameter.

func (*ClaimCandyProven) SetClaimProofAccount

func (inst *ClaimCandyProven) SetClaimProofAccount(claimProof ag_solanago.PublicKey) *ClaimCandyProven

SetClaimProofAccount sets the "claimProof" account.

func (*ClaimCandyProven) SetClockAccount

func (inst *ClaimCandyProven) SetClockAccount(clock ag_solanago.PublicKey) *ClaimCandyProven

SetClockAccount sets the "clock" account.

func (*ClaimCandyProven) SetDistributorAccount

func (inst *ClaimCandyProven) SetDistributorAccount(distributor ag_solanago.PublicKey) *ClaimCandyProven

SetDistributorAccount sets the "distributor" account.

func (*ClaimCandyProven) SetDistributorWalletAccount

func (inst *ClaimCandyProven) SetDistributorWalletAccount(distributorWallet ag_solanago.PublicKey) *ClaimCandyProven

SetDistributorWalletAccount sets the "distributorWallet" account.

func (*ClaimCandyProven) SetIndex

func (inst *ClaimCandyProven) SetIndex(index uint64) *ClaimCandyProven

SetIndex sets the "index" parameter.

func (*ClaimCandyProven) SetPayerAccount

func (inst *ClaimCandyProven) SetPayerAccount(payer ag_solanago.PublicKey) *ClaimCandyProven

SetPayerAccount sets the "payer" account.

func (*ClaimCandyProven) SetRentAccount

func (inst *ClaimCandyProven) SetRentAccount(rent ag_solanago.PublicKey) *ClaimCandyProven

SetRentAccount sets the "rent" account.

func (*ClaimCandyProven) SetSystemProgramAccount

func (inst *ClaimCandyProven) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *ClaimCandyProven

SetSystemProgramAccount sets the "systemProgram" account.

func (*ClaimCandyProven) SetTokenMetadataProgramAccount

func (inst *ClaimCandyProven) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *ClaimCandyProven

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*ClaimCandyProven) SetTokenProgramAccount

func (inst *ClaimCandyProven) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *ClaimCandyProven

SetTokenProgramAccount sets the "tokenProgram" account.

func (*ClaimCandyProven) SetWalletBump

func (inst *ClaimCandyProven) SetWalletBump(walletBump uint8) *ClaimCandyProven

SetWalletBump sets the "walletBump" parameter.

func (*ClaimCandyProven) UnmarshalWithDecoder

func (obj *ClaimCandyProven) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*ClaimCandyProven) Validate

func (inst *ClaimCandyProven) Validate() error

func (ClaimCandyProven) ValidateAndBuild

func (inst ClaimCandyProven) 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 ClaimCount

type ClaimCount struct {
	Count    uint64
	Claimant ag_solanago.PublicKey
}

func (ClaimCount) MarshalWithEncoder

func (obj ClaimCount) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*ClaimCount) UnmarshalWithDecoder

func (obj *ClaimCount) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type ClaimEdition

type ClaimEdition struct {
	ClaimBump      *uint8
	Index          *uint64
	Amount         *uint64
	Edition        *uint64
	ClaimantSecret *ag_solanago.PublicKey
	Proof          *[][32]uint8

	// [0] = [WRITE] distributor
	//
	// [1] = [WRITE] claimCount
	//
	// [2] = [SIGNER] temporal
	//
	// [3] = [SIGNER] payer
	//
	// [4] = [WRITE] metadataNewMetadata
	//
	// [5] = [WRITE] metadataNewEdition
	//
	// [6] = [WRITE] metadataMasterEdition
	//
	// [7] = [WRITE] metadataNewMint
	//
	// [8] = [WRITE] metadataEditionMarkPda
	//
	// [9] = [SIGNER] metadataNewMintAuthority
	//
	// [10] = [] metadataMasterTokenAccount
	//
	// [11] = [] metadataNewUpdateAuthority
	//
	// [12] = [] metadataMasterMetadata
	//
	// [13] = [] metadataMasterMint
	//
	// [14] = [] systemProgram
	//
	// [15] = [] tokenProgram
	//
	// [16] = [] tokenMetadataProgram
	//
	// [17] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

ClaimEdition is the `claimEdition` instruction.

func NewClaimEditionInstruction

func NewClaimEditionInstruction(

	claimBump uint8,
	index uint64,
	amount uint64,
	edition uint64,
	claimantSecret ag_solanago.PublicKey,
	proof [][32]uint8,

	distributor ag_solanago.PublicKey,
	claimCount ag_solanago.PublicKey,
	temporal ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	metadataNewMetadata ag_solanago.PublicKey,
	metadataNewEdition ag_solanago.PublicKey,
	metadataMasterEdition ag_solanago.PublicKey,
	metadataNewMint ag_solanago.PublicKey,
	metadataEditionMarkPda ag_solanago.PublicKey,
	metadataNewMintAuthority ag_solanago.PublicKey,
	metadataMasterTokenAccount ag_solanago.PublicKey,
	metadataNewUpdateAuthority ag_solanago.PublicKey,
	metadataMasterMetadata ag_solanago.PublicKey,
	metadataMasterMint ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *ClaimEdition

NewClaimEditionInstruction declares a new ClaimEdition instruction with the provided parameters and accounts.

func NewClaimEditionInstructionBuilder

func NewClaimEditionInstructionBuilder() *ClaimEdition

NewClaimEditionInstructionBuilder creates a new `ClaimEdition` instruction builder.

func (ClaimEdition) Build

func (inst ClaimEdition) Build() *Instruction

func (*ClaimEdition) EncodeToTree

func (inst *ClaimEdition) EncodeToTree(parent ag_treeout.Branches)

func (*ClaimEdition) GetClaimCountAccount

func (inst *ClaimEdition) GetClaimCountAccount() *ag_solanago.AccountMeta

GetClaimCountAccount gets the "claimCount" account.

func (*ClaimEdition) GetDistributorAccount

func (inst *ClaimEdition) GetDistributorAccount() *ag_solanago.AccountMeta

GetDistributorAccount gets the "distributor" account.

func (*ClaimEdition) GetMetadataEditionMarkPdaAccount

func (inst *ClaimEdition) GetMetadataEditionMarkPdaAccount() *ag_solanago.AccountMeta

GetMetadataEditionMarkPdaAccount gets the "metadataEditionMarkPda" account.

func (*ClaimEdition) GetMetadataMasterEditionAccount

func (inst *ClaimEdition) GetMetadataMasterEditionAccount() *ag_solanago.AccountMeta

GetMetadataMasterEditionAccount gets the "metadataMasterEdition" account.

func (*ClaimEdition) GetMetadataMasterMetadataAccount

func (inst *ClaimEdition) GetMetadataMasterMetadataAccount() *ag_solanago.AccountMeta

GetMetadataMasterMetadataAccount gets the "metadataMasterMetadata" account.

func (*ClaimEdition) GetMetadataMasterMintAccount

func (inst *ClaimEdition) GetMetadataMasterMintAccount() *ag_solanago.AccountMeta

GetMetadataMasterMintAccount gets the "metadataMasterMint" account.

func (*ClaimEdition) GetMetadataMasterTokenAccountAccount

func (inst *ClaimEdition) GetMetadataMasterTokenAccountAccount() *ag_solanago.AccountMeta

GetMetadataMasterTokenAccountAccount gets the "metadataMasterTokenAccount" account.

func (*ClaimEdition) GetMetadataNewEditionAccount

func (inst *ClaimEdition) GetMetadataNewEditionAccount() *ag_solanago.AccountMeta

GetMetadataNewEditionAccount gets the "metadataNewEdition" account.

func (*ClaimEdition) GetMetadataNewMetadataAccount

func (inst *ClaimEdition) GetMetadataNewMetadataAccount() *ag_solanago.AccountMeta

GetMetadataNewMetadataAccount gets the "metadataNewMetadata" account.

func (*ClaimEdition) GetMetadataNewMintAccount

func (inst *ClaimEdition) GetMetadataNewMintAccount() *ag_solanago.AccountMeta

GetMetadataNewMintAccount gets the "metadataNewMint" account.

func (*ClaimEdition) GetMetadataNewMintAuthorityAccount

func (inst *ClaimEdition) GetMetadataNewMintAuthorityAccount() *ag_solanago.AccountMeta

GetMetadataNewMintAuthorityAccount gets the "metadataNewMintAuthority" account.

func (*ClaimEdition) GetMetadataNewUpdateAuthorityAccount

func (inst *ClaimEdition) GetMetadataNewUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetMetadataNewUpdateAuthorityAccount gets the "metadataNewUpdateAuthority" account.

func (*ClaimEdition) GetPayerAccount

func (inst *ClaimEdition) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*ClaimEdition) GetRentAccount

func (inst *ClaimEdition) GetRentAccount() *ag_solanago.AccountMeta

GetRentAccount gets the "rent" account.

func (*ClaimEdition) GetSystemProgramAccount

func (inst *ClaimEdition) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*ClaimEdition) GetTemporalAccount

func (inst *ClaimEdition) GetTemporalAccount() *ag_solanago.AccountMeta

GetTemporalAccount gets the "temporal" account.

func (*ClaimEdition) GetTokenMetadataProgramAccount

func (inst *ClaimEdition) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*ClaimEdition) GetTokenProgramAccount

func (inst *ClaimEdition) GetTokenProgramAccount() *ag_solanago.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" account.

func (ClaimEdition) MarshalWithEncoder

func (obj ClaimEdition) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*ClaimEdition) SetAmount

func (inst *ClaimEdition) SetAmount(amount uint64) *ClaimEdition

SetAmount sets the "amount" parameter.

func (*ClaimEdition) SetClaimBump

func (inst *ClaimEdition) SetClaimBump(claimBump uint8) *ClaimEdition

SetClaimBump sets the "claimBump" parameter.

func (*ClaimEdition) SetClaimCountAccount

func (inst *ClaimEdition) SetClaimCountAccount(claimCount ag_solanago.PublicKey) *ClaimEdition

SetClaimCountAccount sets the "claimCount" account.

func (*ClaimEdition) SetClaimantSecret

func (inst *ClaimEdition) SetClaimantSecret(claimantSecret ag_solanago.PublicKey) *ClaimEdition

SetClaimantSecret sets the "claimantSecret" parameter.

func (*ClaimEdition) SetDistributorAccount

func (inst *ClaimEdition) SetDistributorAccount(distributor ag_solanago.PublicKey) *ClaimEdition

SetDistributorAccount sets the "distributor" account.

func (*ClaimEdition) SetEdition

func (inst *ClaimEdition) SetEdition(edition uint64) *ClaimEdition

SetEdition sets the "edition" parameter.

func (*ClaimEdition) SetIndex

func (inst *ClaimEdition) SetIndex(index uint64) *ClaimEdition

SetIndex sets the "index" parameter.

func (*ClaimEdition) SetMetadataEditionMarkPdaAccount

func (inst *ClaimEdition) SetMetadataEditionMarkPdaAccount(metadataEditionMarkPda ag_solanago.PublicKey) *ClaimEdition

SetMetadataEditionMarkPdaAccount sets the "metadataEditionMarkPda" account.

func (*ClaimEdition) SetMetadataMasterEditionAccount

func (inst *ClaimEdition) SetMetadataMasterEditionAccount(metadataMasterEdition ag_solanago.PublicKey) *ClaimEdition

SetMetadataMasterEditionAccount sets the "metadataMasterEdition" account.

func (*ClaimEdition) SetMetadataMasterMetadataAccount

func (inst *ClaimEdition) SetMetadataMasterMetadataAccount(metadataMasterMetadata ag_solanago.PublicKey) *ClaimEdition

SetMetadataMasterMetadataAccount sets the "metadataMasterMetadata" account.

func (*ClaimEdition) SetMetadataMasterMintAccount

func (inst *ClaimEdition) SetMetadataMasterMintAccount(metadataMasterMint ag_solanago.PublicKey) *ClaimEdition

SetMetadataMasterMintAccount sets the "metadataMasterMint" account.

func (*ClaimEdition) SetMetadataMasterTokenAccountAccount

func (inst *ClaimEdition) SetMetadataMasterTokenAccountAccount(metadataMasterTokenAccount ag_solanago.PublicKey) *ClaimEdition

SetMetadataMasterTokenAccountAccount sets the "metadataMasterTokenAccount" account.

func (*ClaimEdition) SetMetadataNewEditionAccount

func (inst *ClaimEdition) SetMetadataNewEditionAccount(metadataNewEdition ag_solanago.PublicKey) *ClaimEdition

SetMetadataNewEditionAccount sets the "metadataNewEdition" account.

func (*ClaimEdition) SetMetadataNewMetadataAccount

func (inst *ClaimEdition) SetMetadataNewMetadataAccount(metadataNewMetadata ag_solanago.PublicKey) *ClaimEdition

SetMetadataNewMetadataAccount sets the "metadataNewMetadata" account.

func (*ClaimEdition) SetMetadataNewMintAccount

func (inst *ClaimEdition) SetMetadataNewMintAccount(metadataNewMint ag_solanago.PublicKey) *ClaimEdition

SetMetadataNewMintAccount sets the "metadataNewMint" account.

func (*ClaimEdition) SetMetadataNewMintAuthorityAccount

func (inst *ClaimEdition) SetMetadataNewMintAuthorityAccount(metadataNewMintAuthority ag_solanago.PublicKey) *ClaimEdition

SetMetadataNewMintAuthorityAccount sets the "metadataNewMintAuthority" account.

func (*ClaimEdition) SetMetadataNewUpdateAuthorityAccount

func (inst *ClaimEdition) SetMetadataNewUpdateAuthorityAccount(metadataNewUpdateAuthority ag_solanago.PublicKey) *ClaimEdition

SetMetadataNewUpdateAuthorityAccount sets the "metadataNewUpdateAuthority" account.

func (*ClaimEdition) SetPayerAccount

func (inst *ClaimEdition) SetPayerAccount(payer ag_solanago.PublicKey) *ClaimEdition

SetPayerAccount sets the "payer" account.

func (*ClaimEdition) SetProof

func (inst *ClaimEdition) SetProof(proof [][32]uint8) *ClaimEdition

SetProof sets the "proof" parameter.

func (*ClaimEdition) SetRentAccount

func (inst *ClaimEdition) SetRentAccount(rent ag_solanago.PublicKey) *ClaimEdition

SetRentAccount sets the "rent" account.

func (*ClaimEdition) SetSystemProgramAccount

func (inst *ClaimEdition) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *ClaimEdition

SetSystemProgramAccount sets the "systemProgram" account.

func (*ClaimEdition) SetTemporalAccount

func (inst *ClaimEdition) SetTemporalAccount(temporal ag_solanago.PublicKey) *ClaimEdition

SetTemporalAccount sets the "temporal" account.

func (*ClaimEdition) SetTokenMetadataProgramAccount

func (inst *ClaimEdition) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *ClaimEdition

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*ClaimEdition) SetTokenProgramAccount

func (inst *ClaimEdition) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *ClaimEdition

SetTokenProgramAccount sets the "tokenProgram" account.

func (*ClaimEdition) UnmarshalWithDecoder

func (obj *ClaimEdition) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*ClaimEdition) Validate

func (inst *ClaimEdition) Validate() error

func (ClaimEdition) ValidateAndBuild

func (inst ClaimEdition) 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 ClaimProof

type ClaimProof struct {
	Amount        uint64
	Count         uint64
	Claimant      ag_solanago.PublicKey
	Resource      ag_solanago.PublicKey
	ResourceNonce []byte
}

func (ClaimProof) MarshalWithEncoder

func (obj ClaimProof) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*ClaimProof) UnmarshalWithDecoder

func (obj *ClaimProof) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type ClaimStatus

type ClaimStatus struct {
	IsClaimed bool
	Claimant  ag_solanago.PublicKey
	ClaimedAt int64
	Amount    uint64
}

func (ClaimStatus) MarshalWithEncoder

func (obj ClaimStatus) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*ClaimStatus) UnmarshalWithDecoder

func (obj *ClaimStatus) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type CloseDistributor

type CloseDistributor struct {
	Bump       *uint8
	WalletBump *uint8

	// [0] = [SIGNER] base
	//
	// [1] = [WRITE] distributor
	//
	// [2] = [WRITE] distributorWallet
	//
	// [3] = [] receiver
	//
	// [4] = [] systemProgram
	//
	// [5] = [] tokenProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

CloseDistributor is the `closeDistributor` instruction.

func NewCloseDistributorInstruction

func NewCloseDistributorInstruction(

	bump uint8,
	walletBump uint8,

	base ag_solanago.PublicKey,
	distributor ag_solanago.PublicKey,
	distributorWallet ag_solanago.PublicKey,
	receiver ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey) *CloseDistributor

NewCloseDistributorInstruction declares a new CloseDistributor instruction with the provided parameters and accounts.

func NewCloseDistributorInstructionBuilder

func NewCloseDistributorInstructionBuilder() *CloseDistributor

NewCloseDistributorInstructionBuilder creates a new `CloseDistributor` instruction builder.

func (CloseDistributor) Build

func (inst CloseDistributor) Build() *Instruction

func (*CloseDistributor) EncodeToTree

func (inst *CloseDistributor) EncodeToTree(parent ag_treeout.Branches)

func (*CloseDistributor) GetBaseAccount

func (inst *CloseDistributor) GetBaseAccount() *ag_solanago.AccountMeta

GetBaseAccount gets the "base" account.

func (*CloseDistributor) GetDistributorAccount

func (inst *CloseDistributor) GetDistributorAccount() *ag_solanago.AccountMeta

GetDistributorAccount gets the "distributor" account.

func (*CloseDistributor) GetDistributorWalletAccount

func (inst *CloseDistributor) GetDistributorWalletAccount() *ag_solanago.AccountMeta

GetDistributorWalletAccount gets the "distributorWallet" account.

func (*CloseDistributor) GetReceiverAccount

func (inst *CloseDistributor) GetReceiverAccount() *ag_solanago.AccountMeta

GetReceiverAccount gets the "receiver" account.

func (*CloseDistributor) GetSystemProgramAccount

func (inst *CloseDistributor) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*CloseDistributor) GetTokenProgramAccount

func (inst *CloseDistributor) GetTokenProgramAccount() *ag_solanago.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" account.

func (CloseDistributor) MarshalWithEncoder

func (obj CloseDistributor) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*CloseDistributor) SetBaseAccount

func (inst *CloseDistributor) SetBaseAccount(base ag_solanago.PublicKey) *CloseDistributor

SetBaseAccount sets the "base" account.

func (*CloseDistributor) SetBump

func (inst *CloseDistributor) SetBump(bump uint8) *CloseDistributor

SetBump sets the "bump" parameter.

func (*CloseDistributor) SetDistributorAccount

func (inst *CloseDistributor) SetDistributorAccount(distributor ag_solanago.PublicKey) *CloseDistributor

SetDistributorAccount sets the "distributor" account.

func (*CloseDistributor) SetDistributorWalletAccount

func (inst *CloseDistributor) SetDistributorWalletAccount(distributorWallet ag_solanago.PublicKey) *CloseDistributor

SetDistributorWalletAccount sets the "distributorWallet" account.

func (*CloseDistributor) SetReceiverAccount

func (inst *CloseDistributor) SetReceiverAccount(receiver ag_solanago.PublicKey) *CloseDistributor

SetReceiverAccount sets the "receiver" account.

func (*CloseDistributor) SetSystemProgramAccount

func (inst *CloseDistributor) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *CloseDistributor

SetSystemProgramAccount sets the "systemProgram" account.

func (*CloseDistributor) SetTokenProgramAccount

func (inst *CloseDistributor) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *CloseDistributor

SetTokenProgramAccount sets the "tokenProgram" account.

func (*CloseDistributor) SetWalletBump

func (inst *CloseDistributor) SetWalletBump(walletBump uint8) *CloseDistributor

SetWalletBump sets the "walletBump" parameter.

func (*CloseDistributor) UnmarshalWithDecoder

func (obj *CloseDistributor) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*CloseDistributor) Validate

func (inst *CloseDistributor) Validate() error

func (CloseDistributor) ValidateAndBuild

func (inst CloseDistributor) 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 CloseDistributorTokenAccount

type CloseDistributorTokenAccount struct {
	Bump *uint8

	// [0] = [SIGNER] base
	//
	// [1] = [] distributor
	//
	// [2] = [WRITE] from
	//
	// [3] = [WRITE] to
	//
	// [4] = [WRITE] receiver
	//
	// [5] = [] systemProgram
	//
	// [6] = [] tokenProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

CloseDistributorTokenAccount is the `closeDistributorTokenAccount` instruction.

func NewCloseDistributorTokenAccountInstruction

func NewCloseDistributorTokenAccountInstruction(

	bump uint8,

	base ag_solanago.PublicKey,
	distributor ag_solanago.PublicKey,
	from ag_solanago.PublicKey,
	to ag_solanago.PublicKey,
	receiver ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey) *CloseDistributorTokenAccount

NewCloseDistributorTokenAccountInstruction declares a new CloseDistributorTokenAccount instruction with the provided parameters and accounts.

func NewCloseDistributorTokenAccountInstructionBuilder

func NewCloseDistributorTokenAccountInstructionBuilder() *CloseDistributorTokenAccount

NewCloseDistributorTokenAccountInstructionBuilder creates a new `CloseDistributorTokenAccount` instruction builder.

func (CloseDistributorTokenAccount) Build

func (*CloseDistributorTokenAccount) EncodeToTree

func (inst *CloseDistributorTokenAccount) EncodeToTree(parent ag_treeout.Branches)

func (*CloseDistributorTokenAccount) GetBaseAccount

func (inst *CloseDistributorTokenAccount) GetBaseAccount() *ag_solanago.AccountMeta

GetBaseAccount gets the "base" account.

func (*CloseDistributorTokenAccount) GetDistributorAccount

func (inst *CloseDistributorTokenAccount) GetDistributorAccount() *ag_solanago.AccountMeta

GetDistributorAccount gets the "distributor" account.

func (*CloseDistributorTokenAccount) GetFromAccount

func (inst *CloseDistributorTokenAccount) GetFromAccount() *ag_solanago.AccountMeta

GetFromAccount gets the "from" account.

func (*CloseDistributorTokenAccount) GetReceiverAccount

func (inst *CloseDistributorTokenAccount) GetReceiverAccount() *ag_solanago.AccountMeta

GetReceiverAccount gets the "receiver" account.

func (*CloseDistributorTokenAccount) GetSystemProgramAccount

func (inst *CloseDistributorTokenAccount) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*CloseDistributorTokenAccount) GetToAccount

GetToAccount gets the "to" account.

func (*CloseDistributorTokenAccount) GetTokenProgramAccount

func (inst *CloseDistributorTokenAccount) GetTokenProgramAccount() *ag_solanago.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" account.

func (CloseDistributorTokenAccount) MarshalWithEncoder

func (obj CloseDistributorTokenAccount) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*CloseDistributorTokenAccount) SetBaseAccount

SetBaseAccount sets the "base" account.

func (*CloseDistributorTokenAccount) SetBump

SetBump sets the "bump" parameter.

func (*CloseDistributorTokenAccount) SetDistributorAccount

func (inst *CloseDistributorTokenAccount) SetDistributorAccount(distributor ag_solanago.PublicKey) *CloseDistributorTokenAccount

SetDistributorAccount sets the "distributor" account.

func (*CloseDistributorTokenAccount) SetFromAccount

SetFromAccount sets the "from" account.

func (*CloseDistributorTokenAccount) SetReceiverAccount

SetReceiverAccount sets the "receiver" account.

func (*CloseDistributorTokenAccount) SetSystemProgramAccount

func (inst *CloseDistributorTokenAccount) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *CloseDistributorTokenAccount

SetSystemProgramAccount sets the "systemProgram" account.

func (*CloseDistributorTokenAccount) SetToAccount

SetToAccount sets the "to" account.

func (*CloseDistributorTokenAccount) SetTokenProgramAccount

func (inst *CloseDistributorTokenAccount) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *CloseDistributorTokenAccount

SetTokenProgramAccount sets the "tokenProgram" account.

func (*CloseDistributorTokenAccount) UnmarshalWithDecoder

func (obj *CloseDistributorTokenAccount) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*CloseDistributorTokenAccount) Validate

func (inst *CloseDistributorTokenAccount) Validate() error

func (CloseDistributorTokenAccount) ValidateAndBuild

func (inst CloseDistributorTokenAccount) 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 Config

type Config struct {
	Authority ag_solanago.PublicKey
	Data      ConfigData
}

func (Config) MarshalWithEncoder

func (obj Config) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*Config) UnmarshalWithDecoder

func (obj *Config) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type ConfigData

type ConfigData struct {
	Uuid                 string
	Symbol               string
	SellerFeeBasisPoints uint16
	Creators             []Creator
	MaxSupply            uint64
	IsMutable            bool
	RetainAuthority      bool
	MaxNumberOfLines     uint32
}

func (ConfigData) MarshalWithEncoder

func (obj ConfigData) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*ConfigData) UnmarshalWithDecoder

func (obj *ConfigData) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type Creator

type Creator struct {
	Address  ag_solanago.PublicKey
	Verified bool
	Share    uint8
}

func (Creator) MarshalWithEncoder

func (obj Creator) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*Creator) UnmarshalWithDecoder

func (obj *Creator) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type Instruction

type Instruction struct {
	ag_binary.BaseVariant
}

func DecodeInstruction

func DecodeInstruction(accounts []*ag_solanago.AccountMeta, data []byte) (*Instruction, error)

func (*Instruction) Accounts

func (inst *Instruction) Accounts() (out []*ag_solanago.AccountMeta)

func (*Instruction) Data

func (inst *Instruction) Data() ([]byte, error)

func (*Instruction) EncodeToTree

func (inst *Instruction) EncodeToTree(parent ag_treeout.Branches)

func (*Instruction) MarshalWithEncoder

func (inst *Instruction) MarshalWithEncoder(encoder *ag_binary.Encoder) error

func (*Instruction) ProgramID

func (inst *Instruction) ProgramID() ag_solanago.PublicKey

func (*Instruction) TextEncode

func (inst *Instruction) TextEncode(encoder *ag_text.Encoder, option *ag_text.Option) error

func (*Instruction) UnmarshalWithDecoder

func (inst *Instruction) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error

type MerkleDistributor

type MerkleDistributor struct {
	Base     ag_solanago.PublicKey
	Bump     uint8
	Root     [32]uint8
	Temporal ag_solanago.PublicKey
}

func (MerkleDistributor) MarshalWithEncoder

func (obj MerkleDistributor) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*MerkleDistributor) UnmarshalWithDecoder

func (obj *MerkleDistributor) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type NewDistributor

type NewDistributor struct {
	Bump     *uint8
	Root     *[32]uint8
	Temporal *ag_solanago.PublicKey

	// [0] = [SIGNER] base
	//
	// [1] = [WRITE] distributor
	//
	// [2] = [WRITE, SIGNER] payer
	//
	// [3] = [] systemProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

NewDistributor is the `newDistributor` instruction.

func NewNewDistributorInstruction

func NewNewDistributorInstruction(

	bump uint8,
	root [32]uint8,
	temporal ag_solanago.PublicKey,

	base ag_solanago.PublicKey,
	distributor ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *NewDistributor

NewNewDistributorInstruction declares a new NewDistributor instruction with the provided parameters and accounts.

func NewNewDistributorInstructionBuilder

func NewNewDistributorInstructionBuilder() *NewDistributor

NewNewDistributorInstructionBuilder creates a new `NewDistributor` instruction builder.

func (NewDistributor) Build

func (inst NewDistributor) Build() *Instruction

func (*NewDistributor) EncodeToTree

func (inst *NewDistributor) EncodeToTree(parent ag_treeout.Branches)

func (*NewDistributor) GetBaseAccount

func (inst *NewDistributor) GetBaseAccount() *ag_solanago.AccountMeta

GetBaseAccount gets the "base" account.

func (*NewDistributor) GetDistributorAccount

func (inst *NewDistributor) GetDistributorAccount() *ag_solanago.AccountMeta

GetDistributorAccount gets the "distributor" account.

func (*NewDistributor) GetPayerAccount

func (inst *NewDistributor) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*NewDistributor) GetSystemProgramAccount

func (inst *NewDistributor) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (NewDistributor) MarshalWithEncoder

func (obj NewDistributor) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*NewDistributor) SetBaseAccount

func (inst *NewDistributor) SetBaseAccount(base ag_solanago.PublicKey) *NewDistributor

SetBaseAccount sets the "base" account.

func (*NewDistributor) SetBump

func (inst *NewDistributor) SetBump(bump uint8) *NewDistributor

SetBump sets the "bump" parameter.

func (*NewDistributor) SetDistributorAccount

func (inst *NewDistributor) SetDistributorAccount(distributor ag_solanago.PublicKey) *NewDistributor

SetDistributorAccount sets the "distributor" account.

func (*NewDistributor) SetPayerAccount

func (inst *NewDistributor) SetPayerAccount(payer ag_solanago.PublicKey) *NewDistributor

SetPayerAccount sets the "payer" account.

func (*NewDistributor) SetRoot

func (inst *NewDistributor) SetRoot(root [32]uint8) *NewDistributor

SetRoot sets the "root" parameter.

func (*NewDistributor) SetSystemProgramAccount

func (inst *NewDistributor) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *NewDistributor

SetSystemProgramAccount sets the "systemProgram" account.

func (*NewDistributor) SetTemporal

func (inst *NewDistributor) SetTemporal(temporal ag_solanago.PublicKey) *NewDistributor

SetTemporal sets the "temporal" parameter.

func (*NewDistributor) UnmarshalWithDecoder

func (obj *NewDistributor) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*NewDistributor) Validate

func (inst *NewDistributor) Validate() error

func (NewDistributor) ValidateAndBuild

func (inst NewDistributor) 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 ProveClaim

type ProveClaim struct {
	ClaimPrefix    *[]byte
	ClaimBump      *uint8
	Index          *uint64
	Amount         *uint64
	ClaimantSecret *ag_solanago.PublicKey
	Resource       *ag_solanago.PublicKey
	ResourceNonce  *[]byte
	Proof          *[][32]uint8

	// [0] = [WRITE] distributor
	//
	// [1] = [WRITE] claimProof
	//
	// [2] = [SIGNER] temporal
	//
	// [3] = [WRITE, SIGNER] payer
	//
	// [4] = [] systemProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

ProveClaim is the `proveClaim` instruction.

func NewProveClaimInstruction

func NewProveClaimInstruction(

	claimPrefix []byte,
	claimBump uint8,
	index uint64,
	amount uint64,
	claimantSecret ag_solanago.PublicKey,
	resource ag_solanago.PublicKey,
	resourceNonce []byte,
	proof [][32]uint8,

	distributor ag_solanago.PublicKey,
	claimProof ag_solanago.PublicKey,
	temporal ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *ProveClaim

NewProveClaimInstruction declares a new ProveClaim instruction with the provided parameters and accounts.

func NewProveClaimInstructionBuilder

func NewProveClaimInstructionBuilder() *ProveClaim

NewProveClaimInstructionBuilder creates a new `ProveClaim` instruction builder.

func (ProveClaim) Build

func (inst ProveClaim) Build() *Instruction

func (*ProveClaim) EncodeToTree

func (inst *ProveClaim) EncodeToTree(parent ag_treeout.Branches)

func (*ProveClaim) GetClaimProofAccount

func (inst *ProveClaim) GetClaimProofAccount() *ag_solanago.AccountMeta

GetClaimProofAccount gets the "claimProof" account.

func (*ProveClaim) GetDistributorAccount

func (inst *ProveClaim) GetDistributorAccount() *ag_solanago.AccountMeta

GetDistributorAccount gets the "distributor" account.

func (*ProveClaim) GetPayerAccount

func (inst *ProveClaim) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*ProveClaim) GetSystemProgramAccount

func (inst *ProveClaim) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*ProveClaim) GetTemporalAccount

func (inst *ProveClaim) GetTemporalAccount() *ag_solanago.AccountMeta

GetTemporalAccount gets the "temporal" account.

func (ProveClaim) MarshalWithEncoder

func (obj ProveClaim) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*ProveClaim) SetAmount

func (inst *ProveClaim) SetAmount(amount uint64) *ProveClaim

SetAmount sets the "amount" parameter.

func (*ProveClaim) SetClaimBump

func (inst *ProveClaim) SetClaimBump(claimBump uint8) *ProveClaim

SetClaimBump sets the "claimBump" parameter.

func (*ProveClaim) SetClaimPrefix

func (inst *ProveClaim) SetClaimPrefix(claimPrefix []byte) *ProveClaim

SetClaimPrefix sets the "claimPrefix" parameter.

func (*ProveClaim) SetClaimProofAccount

func (inst *ProveClaim) SetClaimProofAccount(claimProof ag_solanago.PublicKey) *ProveClaim

SetClaimProofAccount sets the "claimProof" account.

func (*ProveClaim) SetClaimantSecret

func (inst *ProveClaim) SetClaimantSecret(claimantSecret ag_solanago.PublicKey) *ProveClaim

SetClaimantSecret sets the "claimantSecret" parameter.

func (*ProveClaim) SetDistributorAccount

func (inst *ProveClaim) SetDistributorAccount(distributor ag_solanago.PublicKey) *ProveClaim

SetDistributorAccount sets the "distributor" account.

func (*ProveClaim) SetIndex

func (inst *ProveClaim) SetIndex(index uint64) *ProveClaim

SetIndex sets the "index" parameter.

func (*ProveClaim) SetPayerAccount

func (inst *ProveClaim) SetPayerAccount(payer ag_solanago.PublicKey) *ProveClaim

SetPayerAccount sets the "payer" account.

func (*ProveClaim) SetProof

func (inst *ProveClaim) SetProof(proof [][32]uint8) *ProveClaim

SetProof sets the "proof" parameter.

func (*ProveClaim) SetResource

func (inst *ProveClaim) SetResource(resource ag_solanago.PublicKey) *ProveClaim

SetResource sets the "resource" parameter.

func (*ProveClaim) SetResourceNonce

func (inst *ProveClaim) SetResourceNonce(resourceNonce []byte) *ProveClaim

SetResourceNonce sets the "resourceNonce" parameter.

func (*ProveClaim) SetSystemProgramAccount

func (inst *ProveClaim) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *ProveClaim

SetSystemProgramAccount sets the "systemProgram" account.

func (*ProveClaim) SetTemporalAccount

func (inst *ProveClaim) SetTemporalAccount(temporal ag_solanago.PublicKey) *ProveClaim

SetTemporalAccount sets the "temporal" account.

func (*ProveClaim) UnmarshalWithDecoder

func (obj *ProveClaim) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*ProveClaim) Validate

func (inst *ProveClaim) Validate() error

func (ProveClaim) ValidateAndBuild

func (inst ProveClaim) 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 RecoverUpdateAuthority

type RecoverUpdateAuthority struct {
	Bump       *uint8
	WalletBump *uint8

	// [0] = [SIGNER] base
	//
	// [1] = [] distributor
	//
	// [2] = [] distributorWallet
	//
	// [3] = [] newUpdateAuthority
	//
	// [4] = [WRITE] metadata
	//
	// [5] = [] systemProgram
	//
	// [6] = [] tokenMetadataProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

RecoverUpdateAuthority is the `recoverUpdateAuthority` instruction.

func NewRecoverUpdateAuthorityInstruction

func NewRecoverUpdateAuthorityInstruction(

	bump uint8,
	walletBump uint8,

	base ag_solanago.PublicKey,
	distributor ag_solanago.PublicKey,
	distributorWallet ag_solanago.PublicKey,
	newUpdateAuthority ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey) *RecoverUpdateAuthority

NewRecoverUpdateAuthorityInstruction declares a new RecoverUpdateAuthority instruction with the provided parameters and accounts.

func NewRecoverUpdateAuthorityInstructionBuilder

func NewRecoverUpdateAuthorityInstructionBuilder() *RecoverUpdateAuthority

NewRecoverUpdateAuthorityInstructionBuilder creates a new `RecoverUpdateAuthority` instruction builder.

func (RecoverUpdateAuthority) Build

func (inst RecoverUpdateAuthority) Build() *Instruction

func (*RecoverUpdateAuthority) EncodeToTree

func (inst *RecoverUpdateAuthority) EncodeToTree(parent ag_treeout.Branches)

func (*RecoverUpdateAuthority) GetBaseAccount

func (inst *RecoverUpdateAuthority) GetBaseAccount() *ag_solanago.AccountMeta

GetBaseAccount gets the "base" account.

func (*RecoverUpdateAuthority) GetDistributorAccount

func (inst *RecoverUpdateAuthority) GetDistributorAccount() *ag_solanago.AccountMeta

GetDistributorAccount gets the "distributor" account.

func (*RecoverUpdateAuthority) GetDistributorWalletAccount

func (inst *RecoverUpdateAuthority) GetDistributorWalletAccount() *ag_solanago.AccountMeta

GetDistributorWalletAccount gets the "distributorWallet" account.

func (*RecoverUpdateAuthority) GetMetadataAccount

func (inst *RecoverUpdateAuthority) GetMetadataAccount() *ag_solanago.AccountMeta

GetMetadataAccount gets the "metadata" account.

func (*RecoverUpdateAuthority) GetNewUpdateAuthorityAccount

func (inst *RecoverUpdateAuthority) GetNewUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetNewUpdateAuthorityAccount gets the "newUpdateAuthority" account.

func (*RecoverUpdateAuthority) GetSystemProgramAccount

func (inst *RecoverUpdateAuthority) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*RecoverUpdateAuthority) GetTokenMetadataProgramAccount

func (inst *RecoverUpdateAuthority) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (RecoverUpdateAuthority) MarshalWithEncoder

func (obj RecoverUpdateAuthority) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*RecoverUpdateAuthority) SetBaseAccount

SetBaseAccount sets the "base" account.

func (*RecoverUpdateAuthority) SetBump

SetBump sets the "bump" parameter.

func (*RecoverUpdateAuthority) SetDistributorAccount

func (inst *RecoverUpdateAuthority) SetDistributorAccount(distributor ag_solanago.PublicKey) *RecoverUpdateAuthority

SetDistributorAccount sets the "distributor" account.

func (*RecoverUpdateAuthority) SetDistributorWalletAccount

func (inst *RecoverUpdateAuthority) SetDistributorWalletAccount(distributorWallet ag_solanago.PublicKey) *RecoverUpdateAuthority

SetDistributorWalletAccount sets the "distributorWallet" account.

func (*RecoverUpdateAuthority) SetMetadataAccount

func (inst *RecoverUpdateAuthority) SetMetadataAccount(metadata ag_solanago.PublicKey) *RecoverUpdateAuthority

SetMetadataAccount sets the "metadata" account.

func (*RecoverUpdateAuthority) SetNewUpdateAuthorityAccount

func (inst *RecoverUpdateAuthority) SetNewUpdateAuthorityAccount(newUpdateAuthority ag_solanago.PublicKey) *RecoverUpdateAuthority

SetNewUpdateAuthorityAccount sets the "newUpdateAuthority" account.

func (*RecoverUpdateAuthority) SetSystemProgramAccount

func (inst *RecoverUpdateAuthority) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *RecoverUpdateAuthority

SetSystemProgramAccount sets the "systemProgram" account.

func (*RecoverUpdateAuthority) SetTokenMetadataProgramAccount

func (inst *RecoverUpdateAuthority) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *RecoverUpdateAuthority

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*RecoverUpdateAuthority) SetWalletBump

func (inst *RecoverUpdateAuthority) SetWalletBump(walletBump uint8) *RecoverUpdateAuthority

SetWalletBump sets the "walletBump" parameter.

func (*RecoverUpdateAuthority) UnmarshalWithDecoder

func (obj *RecoverUpdateAuthority) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*RecoverUpdateAuthority) Validate

func (inst *RecoverUpdateAuthority) Validate() error

func (RecoverUpdateAuthority) ValidateAndBuild

func (inst RecoverUpdateAuthority) 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.

Jump to

Keyboard shortcuts

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