Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GenDocKey = []byte("GenDocKey")
Functions ¶
This section is empty.
Types ¶
type BasicAccount ¶
type GenesisAccount ¶
type GenesisAccount struct { Address []byte `json:"address"` Amount int64 `json:"amount"` Name string `json:"name"` Permissions *ptypes.AccountPermissions `json:"permissions"` }
type GenesisDoc ¶
type GenesisDoc struct { GenesisTime time.Time `json:"genesis_time"` ChainID string `json:"chain_id"` Params *GenesisParams `json:"params"` Accounts []GenesisAccount `json:"accounts"` Validators []GenesisValidator `json:"validators"` }
func GenesisDocFromJSON ¶
func GenesisDocFromJSON(jsonBlob []byte) (genState *GenesisDoc)
type GenesisParams ¶
type GenesisParams struct {
GlobalPermissions *ptypes.AccountPermissions `json:"global_permissions"`
}
type GenesisValidator ¶
type GenesisValidator struct { PubKey crypto.PubKey `json:"pub_key"` Amount int64 `json:"amount"` Name string `json:"name"` UnbondTo []BasicAccount `json:"unbond_to"` }
Click to show internal directories.
Click to hide internal directories.