Documentation ¶
Index ¶
- Constants
- Variables
- func AsciiString(data []byte) string
- func ProgramID() common.Address
- type Instruction
- func (i *Instruction) Accounts() (out []*base.AccountMeta)
- func (i *Instruction) Data() ([]byte, error)
- func (i Instruction) MarshalWithEncoder(encoder *encodbin.Encoder) error
- func (i *Instruction) ProgramID() common.Address
- func (i *Instruction) TextEncode(encoder *encodtext.Encoder, option *encodtext.Option) error
- func (i *Instruction) UnmarshalWithDecoder(decoder *encodbin.Decoder) (err error)
- type Logo
- type Name
- type RegisterToken
- type RegisterTokenAccounts
- type Symbol
- type TokenMeta
- type Website
Constants ¶
View Source
const TOKEN_META_SIZE = 229
Variables ¶
View Source
var InstructionDefVariant = encodbin.NewVariantDefinition(encodbin.Uint32TypeIDEncoding, []encodbin.VariantType{ {"register_token", (*RegisterToken)(nil)}, })
Functions ¶
func AsciiString ¶
Types ¶
type Instruction ¶
type Instruction struct {
encodbin.BaseVariant
}
func (*Instruction) Accounts ¶
func (i *Instruction) Accounts() (out []*base.AccountMeta)
func (*Instruction) Data ¶
func (i *Instruction) Data() ([]byte, error)
func (Instruction) MarshalWithEncoder ¶
func (i Instruction) MarshalWithEncoder(encoder *encodbin.Encoder) error
func (*Instruction) ProgramID ¶
func (i *Instruction) ProgramID() common.Address
func (*Instruction) TextEncode ¶
func (*Instruction) UnmarshalWithDecoder ¶
func (i *Instruction) UnmarshalWithDecoder(decoder *encodbin.Decoder) (err error)
type RegisterToken ¶
type RegisterToken struct { Logo Logo Name Name Website Website Symbol Symbol Accounts *RegisterTokenAccounts `bin:"-"` }
func (*RegisterToken) SetAccounts ¶
func (r *RegisterToken) SetAccounts(accounts []*base.AccountMeta) error
type RegisterTokenAccounts ¶
type RegisterTokenAccounts struct { TokenMeta *base.AccountMeta `text:"linear,notype"` Owner *base.AccountMeta `text:"linear,notype"` Token *base.AccountMeta `text:"linear,notype"` }
Click to show internal directories.
Click to hide internal directories.