Documentation ¶
Index ¶
- Variables
- func ExistsExtensionType(array []ExtensionInitializationParams, extensionType ExtensionType) bool
- func ExtensionInitializationParamsToInstruction(extension ExtensionInitializationParams, mint web3.PublicKey, ...) (web3.Instruction, error)
- func Nested[T interface{ ... }, T2 interface{ ... }](programId *web3.PublicKey, innerBuilder T2, next func(data []byte) T) (web3.Instruction, error)
- type CpiGuardParams
- type DefaultAccountStateParams
- type ExtensionInitializationParams
- type GroupMemberPointerParams
- type GroupPointerParams
- type ImmutableOwnerParams
- type InterestBearingConfigParams
- type MemoTransferParams
- type MetadataPointerParams
- type MintCloseAuthorityParams
- type NonTransferableParams
- type PermanentDelegateParams
- type TransferFeeConfigParams
- type TransferHookParams
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidParams = errors.New("invalid params")
Functions ¶
func ExistsExtensionType ¶
func ExistsExtensionType(array []ExtensionInitializationParams, extensionType ExtensionType) bool
func ExtensionInitializationParamsToInstruction ¶
func ExtensionInitializationParamsToInstruction( extension ExtensionInitializationParams, mint web3.PublicKey, programId web3.PublicKey, ) (web3.Instruction, error)
Types ¶
type CpiGuardParams ¶
func NewCpiGuardParams ¶
func (CpiGuardParams) ExtensionType ¶
func (m CpiGuardParams) ExtensionType() ExtensionType
type DefaultAccountStateParams ¶
type DefaultAccountStateParams struct {
State AccountState
}
func NewDefaultAccountStateParams ¶
func NewDefaultAccountStateParams(state AccountState) DefaultAccountStateParams
func (DefaultAccountStateParams) ExtensionType ¶
func (p DefaultAccountStateParams) ExtensionType() ExtensionType
type ExtensionInitializationParams ¶
type ExtensionInitializationParams interface {
ExtensionType() ExtensionType
}
type GroupMemberPointerParams ¶
type GroupMemberPointerParams struct { Initialize *group_member_pointer.Initialize Update *group_member_pointer.Update }
func (GroupMemberPointerParams) ExtensionType ¶
func (m GroupMemberPointerParams) ExtensionType() ExtensionType
type GroupPointerParams ¶
type GroupPointerParams struct { Initialize *group_pointer.Initialize Update *group_pointer.Update }
func (GroupPointerParams) ExtensionType ¶
func (m GroupPointerParams) ExtensionType() ExtensionType
type ImmutableOwnerParams ¶
func NewImmutableOwnerParams ¶
func NewImmutableOwnerParams(account web3.PublicKey) ImmutableOwnerParams
func (ImmutableOwnerParams) ExtensionType ¶
func (m ImmutableOwnerParams) ExtensionType() ExtensionType
type InterestBearingConfigParams ¶
func NewInterestBearingConfigParams ¶
func NewInterestBearingConfigParams(rateAuthority *web3.PublicKey, rate int16) InterestBearingConfigParams
func (InterestBearingConfigParams) ExtensionType ¶
func (p InterestBearingConfigParams) ExtensionType() ExtensionType
type MemoTransferParams ¶
type MemoTransferParams struct { Enable bool Account web3.PublicKey AccountOwner web3.PublicKey MultiSigners []web3.PublicKey }
func NewMemoTransferParams ¶
func (MemoTransferParams) ExtensionType ¶
func (m MemoTransferParams) ExtensionType() ExtensionType
type MetadataPointerParams ¶
type MetadataPointerParams struct { Initialize *metadata_pointer.Initialize Update *metadata_pointer.Update }
func (MetadataPointerParams) ExtensionType ¶
func (p MetadataPointerParams) ExtensionType() ExtensionType
type MintCloseAuthorityParams ¶
func NewMintCloseAuthorityParams ¶
func NewMintCloseAuthorityParams(closeAuthority *web3.PublicKey) MintCloseAuthorityParams
func (MintCloseAuthorityParams) ExtensionType ¶
func (p MintCloseAuthorityParams) ExtensionType() ExtensionType
type NonTransferableParams ¶
func NewNonTransferableParams ¶
func NewNonTransferableParams(mint web3.PublicKey) NonTransferableParams
func (NonTransferableParams) ExtensionType ¶
func (m NonTransferableParams) ExtensionType() ExtensionType
type PermanentDelegateParams ¶
func NewPermanentDelegateParams ¶
func NewPermanentDelegateParams(delegate web3.PublicKey) PermanentDelegateParams
func (PermanentDelegateParams) ExtensionType ¶
func (p PermanentDelegateParams) ExtensionType() ExtensionType
type TransferFeeConfigParams ¶
type TransferFeeConfigParams struct { ExtensionTyp ExtensionType TransferFeeConfigAuthority *web3.PublicKey WithdrawWithheldAuthority *web3.PublicKey TransferFeeBasisPoints uint16 MaximumFee uint64 }
func NewTransferFeeConfigParams ¶
func NewTransferFeeConfigParams( transferFeeBasisPoints uint16, maximumFee uint64, transferFeeConfigAuthority, withdrawWithheldAuthority *web3.PublicKey, ) TransferFeeConfigParams
func (TransferFeeConfigParams) ExtensionType ¶
func (p TransferFeeConfigParams) ExtensionType() ExtensionType
type TransferHookParams ¶
type TransferHookParams struct { Initialize *transfer_hook.Initialize Update *transfer_hook.Update }
func (TransferHookParams) ExtensionType ¶
func (p TransferHookParams) ExtensionType() ExtensionType
Click to show internal directories.
Click to hide internal directories.