Versions in this module Expand all Collapse all v0 v0.0.2 Dec 30, 2023 Changes in this version + const TOKEN_META_SIZE + var InstructionDefVariant = bin.NewVariantDefinition(bin.Uint32TypeIDEncoding, []bin.VariantType{ ... }) + func AsciiString(data []byte) string + func ProgramID() solana.PublicKey + type Instruction struct + func DecodeInstruction(accounts []*solana.AccountMeta, data []byte) (*Instruction, error) + func NewRegisterTokenInstruction(logo Logo, name Name, symbol Symbol, website Website, ...) *Instruction + func (i *Instruction) Accounts() (out []*solana.AccountMeta) + func (i *Instruction) Data() ([]byte, error) + func (i *Instruction) ProgramID() solana.PublicKey + func (i *Instruction) TextEncode(encoder *text.Encoder, option *text.Option) error + func (i *Instruction) UnmarshalWithDecoder(decoder *bin.Decoder) (err error) + func (i Instruction) MarshalWithEncoder(encoder *bin.Encoder) error + type Logo [64]byte + func LogoFromString(logo string) (Logo, error) + func (l Logo) String() string + type Name [32]byte + func NameFromString(name string) (Name, error) + func (n Name) String() string + type RegisterToken struct + Accounts *RegisterTokenAccounts + Logo Logo + Name Name + Symbol Symbol + Website Website + func (i *RegisterToken) SetAccounts(accounts []*solana.AccountMeta) error + type RegisterTokenAccounts struct + Owner *solana.AccountMeta + Token *solana.AccountMeta + TokenMeta *solana.AccountMeta + type Symbol [32]byte + func SymbolFromString(symbol string) (Symbol, error) + func (s Symbol) String() string + type TokenMeta struct + DataType byte + IsInitialized bool + Logo Logo + MintAddress *solana.PublicKey + Name Name + Reg [3]byte + RegistrationAuthority *solana.PublicKey + Symbol Symbol + Website Website + func DecodeTokenMeta(in []byte) (*TokenMeta, error) + func GetEntries(rpcCli *rpc.Client) (out []*TokenMeta, err error) + func GetTokenRegistryEntry(rpcCli *rpc.Client, mintAddress solana.PublicKey) (*TokenMeta, error) + type Website [32]byte + func WebsiteFromString(symbol string) (Website, error) + func (s Website) String() string