app

package
v0.0.0-...-63f9e25 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KApp

type KApp struct {
	types.BaseApplication
	// contains filtered or unexported fields
}

func New

func New() *KApp

func (*KApp) BeginBlock

func (app *KApp) BeginBlock(req types.RequestBeginBlock) types.ResponseBeginBlock

func (*KApp) CheckTx

func (app *KApp) CheckTx(txBytes []byte) types.ResponseCheckTx

实现abci的CheckTx协议

func (*KApp) Commit

func (app *KApp) Commit() types.ResponseCommit

Commit will panic if InitChain was not called

func (*KApp) DeliverTx

func (app *KApp) DeliverTx(txBytes []byte) types.ResponseDeliverTx

实现abci的DeliverTx协议

func (*KApp) EndBlock

func (app *KApp) EndBlock(req types.RequestEndBlock) types.ResponseEndBlock

func (*KApp) Info

func (app *KApp) Info(req types.RequestInfo) (res types.ResponseInfo)

实现abci的Info协议

func (*KApp) InitChain

func (app *KApp) InitChain(req types.RequestInitChain) types.ResponseInitChain

Save the validators in the merkle tree

func (*KApp) Query

func (app *KApp) Query(reqQuery types.RequestQuery) (res types.ResponseQuery)

func (*KApp) SetOption

func (app *KApp) SetOption(req types.RequestSetOption) types.ResponseSetOption

实现abci的SetOption协议

Jump to

Keyboard shortcuts

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