Documentation ¶
Index ¶
- Variables
- func GaiaAppGenStateJSON(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error)
- func GaiaAppGenTx(cdc *wire.Codec, pk crypto.PubKey, genTxConfig config.GenTx) (appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, ...)
- func GaiaAppGenTxNF(cdc *wire.Codec, pk crypto.PubKey, addr sdk.AccAddress, name string) (appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, ...)
- func GaiaAppInit() server.AppInit
- func MakeCodec() *wire.Codec
- type GaiaApp
- func (app *GaiaApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *GaiaApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *GaiaApp) ExportAppStateAndValidators() (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- 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 GaiaAppGenStateJSON ¶ added in v0.18.0
func GaiaAppGenStateJSON(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error)
GaiaAppGenState but with JSON
func GaiaAppGenTx ¶
func GaiaAppGenTx(cdc *wire.Codec, pk crypto.PubKey, genTxConfig config.GenTx) ( appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, err error)
Generate a gaia genesis transaction with flags
func GaiaAppGenTxNF ¶ added in v0.18.0
func GaiaAppGenTxNF(cdc *wire.Codec, pk crypto.PubKey, addr sdk.AccAddress, name string) ( appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, err error)
Generate a gaia genesis transaction without flags
func GaiaAppInit ¶
get app init parameters for server init command
Types ¶
type GaiaApp ¶
Extended ABCI application
func (*GaiaApp) BeginBlocker ¶ added in v0.18.0
func (app *GaiaApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
application updates every end block
func (*GaiaApp) EndBlocker ¶ added in v0.18.0
func (app *GaiaApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
application updates every end block nolint: unparam
func (*GaiaApp) ExportAppStateAndValidators ¶ added in v0.19.0
func (app *GaiaApp) ExportAppStateAndValidators() (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
export the state of gaia for a genesis file
type GaiaGenTx ¶
type GaiaGenTx struct { Name string `json:"name"` Address sdk.AccAddress `json:"address"` PubKey string `json:"pub_key"` }
simple genesis tx
type GenesisAccount ¶
type GenesisAccount struct { Address sdk.AccAddress `json:"address"` Coins sdk.Coins `json:"coins"` }
GenesisAccount doesn't need pubkey or sequence
func NewGenesisAccount ¶
func NewGenesisAccount(acc *auth.BaseAccount) GenesisAccount
func NewGenesisAccountI ¶
func NewGenesisAccountI(acc auth.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
func GaiaAppGenState ¶
func GaiaAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (genesisState GenesisState, err error)
Create the core parameters for genesis initialization for gaia note that the pubkey input is this machines pubkey
Click to show internal directories.
Click to hide internal directories.