app

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MakeCodec is the function alias for codec maker
	MakeCodec = protocol.MakeCodec
	// ModuleBasics is the variable alias for NewBasicManager
	ModuleBasics = protocol.ModuleBasics
	// DefaultCLIHome is the directory for okchaincli
	DefaultCLIHome = protocol.DefaultCLIHome
	// DefaultNodeHome is the directory for okchaind
	DefaultNodeHome = protocol.DefaultNodeHome
)

Functions

This section is empty.

Types

type OKChainApp

type OKChainApp struct {
	*baseapp.BaseApp
}

OKChainApp extends BaseApp(ABCI application)

func NewOKChainApp

func NewOKChainApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
	invCheckPeriod uint, baseAppOptions ...func(*baseapp.BaseApp)) *OKChainApp

NewOKChainApp returns a reference to an initialized OKChainApp.

func (*OKChainApp) BeginBlock

func (app *OKChainApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeginBlock)

BeginBlock implements the Application interface

func (*OKChainApp) Commit

func (app *OKChainApp) Commit() abci.ResponseCommit

Commit implements the Application interface

func (*OKChainApp) DeliverTx

func (app *OKChainApp) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx)

DeliverTx implements the Application interface

func (*OKChainApp) EndBlock

func (app *OKChainApp) EndBlock(req abci.RequestEndBlock) (res abci.ResponseEndBlock)

EndBlock implements the Application interface

func (*OKChainApp) ExportAppStateAndValidators

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

ExportAppStateAndValidators exports the state of okchain for a genesis file

func (*OKChainApp) InitChain

func (app *OKChainApp) InitChain(req abci.RequestInitChain) (res abci.ResponseInitChain)

InitChain implements the Application interface

func (*OKChainApp) LoadHeight

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

LoadHeight loads data on a particular height

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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