Documentation ¶
Index ¶
- Variables
- func MakeCodec() *codec.Codec
- func SetAddressPrefixes()
- type GenesisState
- type KavaApp
- func (app *KavaApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *KavaApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *KavaApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *KavaApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *KavaApp) LoadHeight(height int64) error
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultCLIHome default home directories for kavacli DefaultCLIHome = os.ExpandEnv("$HOME/.kavacli") // DefaultNodeHome default home directories for kavad DefaultNodeHome = os.ExpandEnv("$HOME/.kavad") // ModuleBasics The ModuleBasicManager is in charge of setting up basic, // non-dependant module elements, such as codec registration // and genesis verification. ModuleBasics sdk.ModuleBasicManager )
Functions ¶
func SetAddressPrefixes ¶
func SetAddressPrefixes()
SetAddressPrefixes sets the bech32 address prefixes globally for the sdk module.
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState The genesis state of the blockchain is represented here as a map of raw json messages key'd by a identifier string. The identifier is used to determine which module genesis information belongs to so it may be appropriately routed during init chain. Within this application default genesis information is retrieved from the ModuleBasicManager which populates json from each BasicModule object provided to it during init.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState generates the default state for gaia.
type KavaApp ¶
KavaApp - Extended ABCI application
func NewKavaApp ¶
func NewKavaApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp)) *KavaApp
NewKavaApp is a constructor function for kavaApp
func (*KavaApp) BeginBlocker ¶
func (app *KavaApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*KavaApp) EndBlocker ¶
func (app *KavaApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*KavaApp) ExportAppStateAndValidators ¶
func (app *KavaApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
ExportAppStateAndValidators export the state of kava for a genesis file
func (*KavaApp) InitChainer ¶
func (app *KavaApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*KavaApp) LoadHeight ¶
LoadHeight load a particular height