Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParseAccount ¶ added in v0.11.0
func GetParseAccount(cdc *wire.Codec) sdk.ParseAccount
Get the ParseAccount function for the custom AppAccount
Types ¶
type AppAccount ¶
type AppAccount struct { auth.BaseAccount Name string `json:"name"` }
Custom extensions for this application. This is just an example of extending auth.BaseAccount with custom fields.
This is compatible with the stock auth.AccountStore, since auth.AccountStore uses the flexible go-wire library.
func (*AppAccount) SetName ¶
func (acc *AppAccount) SetName(name string)
type GenesisAccount ¶
type GenesisAccount struct { Name string `json:"name"` Address crypto.Address `json:"address"` Coins sdk.Coins `json:"coins"` }
GenesisAccount doesn't need pubkey or sequence
func NewGenesisAccount ¶
func NewGenesisAccount(aa *AppAccount) *GenesisAccount
func (*GenesisAccount) ToAppAccount ¶
func (ga *GenesisAccount) ToAppAccount() (acc *AppAccount, err error)
convert GenesisAccount to AppAccount
type GenesisState ¶
type GenesisState struct {
Accounts []*GenesisAccount `json:"accounts"`
}
State to Unmarshal
Click to show internal directories.
Click to hide internal directories.