Documentation
¶
Index ¶
Constants ¶
View Source
const ( Uninitialized = iota EditionV1 MasterEditionV1 ReservationListV1 MetadataV1 ReservationListV2 MasterEditionV2 EditionMarker )
Variables ¶
View Source
var METADATA_REPLACE = regexp.MustCompile("\u0000")
View Source
var PROGRAM_ID = solana.MustPublicKeyFromBase58("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")
Functions ¶
Types ¶
type AccountListable ¶
type AccountListable interface {
ListAccounts() []*solana.AccountMeta
}
type CreateMeta ¶
type CreateMeta struct {
Instruction InstType
Data Data
IsMutable bool
Accounts *CreateMetaAccounts `borsh_skip:"true"`
}
func (CreateMeta) ListAccounts ¶
func (i CreateMeta) ListAccounts() []*solana.AccountMeta
type CreateMetaAccounts ¶
type CreateMetaAccounts struct {
Metadata *solana.AccountMeta
Mint *solana.AccountMeta
MintAuthority *solana.AccountMeta
Payer *solana.AccountMeta
UpdateAuthority *solana.AccountMeta
SystemProgram *solana.AccountMeta
RentProgram *solana.AccountMeta
}
type Instruction ¶
type Instruction struct {
Impl interface{}
// contains filtered or unexported fields
}
func NewInstruction ¶
func NewInstruction(programId solana.PublicKey, impl interface{}) *Instruction
func (*Instruction) Accounts ¶
func (i *Instruction) Accounts() (out []*solana.AccountMeta)
func (*Instruction) Data ¶
func (i *Instruction) Data() ([]byte, error)
func (*Instruction) ProgramID ¶
func (i *Instruction) ProgramID() solana.PublicKey
Click to show internal directories.
Click to hide internal directories.