Documentation ¶
Index ¶
- Variables
- func GaiaAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error)
- func GaiaAppGenTx(cdc *wire.Codec, pk crypto.PubKey) (appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, ...)
- func GaiaAppInit() server.AppInit
- func MakeCodec() *wire.Codec
- type GaiaApp
- type GaiaGenTx
- type GenesisAccount
- type GenesisState
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultCLIHome = os.ExpandEnv("$HOME/.gaiacli") DefaultNodeHome = os.ExpandEnv("$HOME/.gaiad") )
default home directories for expected binaries
Functions ¶
func GaiaAppGenState ¶
func GaiaAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error)
Create the core parameters for genesis initialization for gaia note that the pubkey input is this machines pubkey
func GaiaAppGenTx ¶
func GaiaAppGenTx(cdc *wire.Codec, pk crypto.PubKey) ( appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, err error)
Generate a gaia genesis transaction
func GaiaAppInit ¶
get app init parameters for server init command
Types ¶
type GaiaApp ¶
Extended ABCI application
func (*GaiaApp) ExportAppStateJSON ¶
func (app *GaiaApp) ExportAppStateJSON() (appState json.RawMessage, err error)
export the state of gaia for a genesis f
type GaiaGenTx ¶
type GaiaGenTx struct { Name string `json:"name"` Address sdk.Address `json:"address"` PubKey crypto.PubKey `json:"pub_key"` }
simple genesis tx
type GenesisAccount ¶
GenesisAccount doesn't need pubkey or sequence
func NewGenesisAccount ¶
func NewGenesisAccount(acc *auth.BaseAccount) GenesisAccount
func NewGenesisAccountI ¶
func NewGenesisAccountI(acc sdk.Account) GenesisAccount
func (*GenesisAccount) ToAccount ¶
func (ga *GenesisAccount) ToAccount() (acc *auth.BaseAccount)
convert GenesisAccount to auth.BaseAccount
type GenesisState ¶
type GenesisState struct { Accounts []GenesisAccount `json:"accounts"` StakeData stake.GenesisState `json:"stake"` }
State to Unmarshal
Click to show internal directories.
Click to hide internal directories.