Documentation ¶
Overview ¶
Code generated by rice embed-go; DO NOT EDIT.
Index ¶
- Constants
- Variables
- type Account
- type Approve
- type ApproveAccounts
- type ApproveChecked
- type ApproveCheckedAccounts
- type Burn
- type BurnAccounts
- type BurnChecked
- type BurnCheckedAccounts
- type CloseAccount
- type CloseAccountAccounts
- type FreezeAccount
- type FreezeAccountAccounts
- type InitializeAccount
- type InitializeAccountAccounts
- type InitializeMint
- type InitializeMintAccounts
- type InitializeMultisig
- type InitializeMultisigAccounts
- type Instruction
- type Mint
- type MintMeta
- type MintTo
- type MintToAccounts
- type MintToChecked
- type MintToCheckedAccounts
- type Multisig
- type Revoke
- type RevokeAccounts
- type SetAuthority
- type SetAuthorityAccounts
- type ThawAccount
- type ThawAccountAccounts
- type Token
- type Transfer
- type TransferAccounts
- type TransferChecked
- type TransferCheckedAccounts
Constants ¶
View Source
const MINT_SIZE = 82
Variables ¶
View Source
var InstructionDefVariant = bin.NewVariantDefinition(bin.Uint8TypeIDEncoding, []bin.VariantType{ {"initialize_mint", (*InitializeMint)(nil)}, {"initialize_account", (*InitializeAccount)(nil)}, {"InitializeMultisig", (*InitializeMultisig)(nil)}, {"Transfer", (*Transfer)(nil)}, {"Approve", (*Approve)(nil)}, {"Revoke", (*Revoke)(nil)}, {"SetAuthority", (*SetAuthority)(nil)}, {"MintTo", (*MintTo)(nil)}, {"Burn", (*Burn)(nil)}, {"CloseAccount", (*CloseAccount)(nil)}, {"FreezeAccount", (*FreezeAccount)(nil)}, {"ThawAccount", (*ThawAccount)(nil)}, {"TransferChecked", (*TransferChecked)(nil)}, {"ApproveChecked", (*ApproveChecked)(nil)}, {"MintToChecked", (*MintToChecked)(nil)}, {"BurnChecked", (*BurnChecked)(nil)}, })
View Source
var TOKEN_PROGRAM_ID = solana.MustPublicKeyFromBase58("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA")
Functions ¶
This section is empty.
Types ¶
type Approve ¶
type Approve struct {
Accounts *ApproveAccounts
}
type ApproveAccounts ¶
type ApproveAccounts struct { }
type ApproveChecked ¶
type ApproveChecked struct {
Accounts *ApproveCheckedAccounts
}
type ApproveCheckedAccounts ¶
type ApproveCheckedAccounts struct { }
type Burn ¶
type Burn struct {
Accounts *BurnAccounts
}
type BurnAccounts ¶
type BurnAccounts struct { }
type BurnChecked ¶
type BurnChecked struct {
Accounts *BurnCheckedAccounts
}
type BurnCheckedAccounts ¶
type BurnCheckedAccounts struct { }
type CloseAccount ¶
type CloseAccount struct {
Accounts *CloseAccountAccounts
}
type CloseAccountAccounts ¶
type CloseAccountAccounts struct { }
type FreezeAccount ¶
type FreezeAccount struct {
Accounts *FreezeAccountAccounts
}
type FreezeAccountAccounts ¶
type FreezeAccountAccounts struct { }
type InitializeAccount ¶
type InitializeAccount struct {
Accounts *InitializeAccountAccounts `bin:"-"`
}
func (*InitializeAccount) SetAccounts ¶
func (i *InitializeAccount) SetAccounts(accounts []*solana.AccountMeta) error
type InitializeAccountAccounts ¶
type InitializeAccountAccounts struct { Account *solana.AccountMeta `text:"linear,notype"` Mint *solana.AccountMeta `text:"linear,notype"` Owner *solana.AccountMeta `text:"linear,notype"` RentSysvar *solana.AccountMeta `text:"linear,notype"` }
type InitializeMint ¶
type InitializeMint struct {
Accounts *InitializeMintAccounts
}
type InitializeMintAccounts ¶
type InitializeMintAccounts struct { }
type InitializeMultisig ¶
type InitializeMultisig struct {
Accounts *InitializeMultisigAccounts
}
type InitializeMultisigAccounts ¶
type InitializeMultisigAccounts struct { }
type Instruction ¶
type Instruction struct {
bin.BaseVariant
}
func DecodeInstruction ¶
func DecodeInstruction(accounts []*solana.AccountMeta, data []byte) (*Instruction, error)
func (*Instruction) MarshalWithEncoder ¶ added in v0.4.0
func (i *Instruction) MarshalWithEncoder(encoder *bin.Encoder) error
func (*Instruction) TextEncode ¶
func (*Instruction) UnmarshalWithDecoder ¶ added in v0.4.0
func (i *Instruction) UnmarshalWithDecoder(decoder *bin.Decoder) (err error)
type Mint ¶
type MintTo ¶
type MintTo struct {
Accounts *MintToAccounts
}
type MintToAccounts ¶
type MintToAccounts struct { }
type MintToChecked ¶
type MintToChecked struct {
Accounts *MintToCheckedAccounts
}
type MintToCheckedAccounts ¶
type MintToCheckedAccounts struct { }
type Revoke ¶
type Revoke struct {
Accounts *RevokeAccounts
}
type RevokeAccounts ¶
type RevokeAccounts struct { }
type SetAuthority ¶
type SetAuthority struct {
Accounts *SetAuthorityAccounts
}
type SetAuthorityAccounts ¶
type SetAuthorityAccounts struct { }
type ThawAccount ¶
type ThawAccount struct {
Accounts *ThawAccountAccounts
}
type ThawAccountAccounts ¶
type ThawAccountAccounts struct { }
type Transfer ¶
type Transfer struct {
Accounts *TransferAccounts
}
type TransferAccounts ¶
type TransferAccounts struct { }
type TransferChecked ¶
type TransferChecked struct {
Accounts *TransferCheckedAccounts
}
type TransferCheckedAccounts ¶
type TransferCheckedAccounts struct { }
Click to show internal directories.
Click to hide internal directories.