app

package
v0.2.2-0...-13ba25a Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 31 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultKeyPass = "1234567890"
)

Variables

Functions

func MakeCodec

func MakeCodec() *codec.Codec

Types

type GenesisState

type GenesisState map[string]json.RawMessage

func NewDefaultGenesisState

func NewDefaultGenesisState() GenesisState

NewDefaultGenesisState generates the default state for the application.

type MainApp

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

func NewMainApp

func NewMainApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
	invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp),
) *MainApp

func (*MainApp) BeginBlocker

func (app *MainApp) BeginBlocker(ctx cTypes.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock

application updates every begin block

func (*MainApp) EndBlocker

func (app *MainApp) EndBlocker(ctx cTypes.Context, req abci.RequestEndBlock) abci.ResponseEndBlock

application updates every end block

func (*MainApp) ExportAppStateAndValidators

func (app *MainApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string,
) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)

func (*MainApp) InitChainer

func (app *MainApp) InitChainer(ctx cTypes.Context, req abci.RequestInitChain) abci.ResponseInitChain

application update at chain initialization

func (*MainApp) LoadHeight

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

load a particular height

func (*MainApp) ModuleAccountAddrs

func (app *MainApp) ModuleAccountAddrs() map[string]bool

ModuleAccountAddrs returns all the app's module account addresses.

Jump to

Keyboard shortcuts

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