Documentation ¶
Index ¶
- Variables
- func GaiaAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (genesisState types.GenesisState, err error)
- 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 GaiaGenTx
- type IchainApp
- func (app *IchainApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *IchainApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *IchainApp) ExportAppStateJSON() (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultCLIHome = os.ExpandEnv("$HOME/.ichaincli") DefaultNodeHome = os.ExpandEnv("$HOME/.ichaind") )
default home directories for expected binaries
Functions ¶
func GaiaAppGenState ¶ added in v0.2.2
func GaiaAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (genesisState types.GenesisState, err error)
Create the core parameters for genesis initialization for gaia note that the pubkey input is this machines pubkey
func GaiaAppGenStateJSON ¶ added in v0.2.2
func GaiaAppGenStateJSON(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error)
GaiaAppGenState but with JSON
func GaiaAppGenTx ¶ added in v0.2.2
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.2.2
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 ¶ added in v0.2.2
get app init parameters for server init command
Types ¶
type GaiaGenTx ¶ added in v0.2.2
type GaiaGenTx struct { Name string `json:"name"` Address sdk.AccAddress `json:"address"` PubKey string `json:"pub_key"` }
simple genesis tx
type IchainApp ¶
IchainApp Extended ABCI application
func NewIchainApp ¶
func NewIchainApp(logger log.Logger, db dbm.DB, traceStore io.Writer, baseAppOptions ...func(*bam.BaseApp)) *IchainApp
NewIchainApp new ichain application
func (*IchainApp) BeginBlocker ¶ added in v0.1.4
func (app *IchainApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
application updates every end block
func (*IchainApp) EndBlocker ¶ added in v0.1.4
func (app *IchainApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
application updates every end block
func (*IchainApp) ExportAppStateJSON ¶ added in v0.0.2
func (app *IchainApp) ExportAppStateJSON() (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
Custom logic for state export
Click to show internal directories.
Click to hide internal directories.