app

package
v0.0.0-...-55fa119 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 MakeCodec

func MakeCodec() *codec.Codec

MakeCodec custom tx codec

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

type KavaApp struct {
	*bam.BaseApp
	// contains filtered or unexported fields
}

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

func (app *KavaApp) LoadHeight(height int64) error

LoadHeight load a particular height

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL