Documentation ¶
Index ¶
- type KApp
- func (app *KApp) BeginBlock(req types.RequestBeginBlock) types.ResponseBeginBlock
- func (app *KApp) CheckTx(txBytes []byte) types.ResponseCheckTx
- func (app *KApp) Commit() types.ResponseCommit
- func (app *KApp) DeliverTx(txBytes []byte) types.ResponseDeliverTx
- func (app *KApp) EndBlock(req types.RequestEndBlock) types.ResponseEndBlock
- func (app *KApp) Info(req types.RequestInfo) (res types.ResponseInfo)
- func (app *KApp) InitChain(req types.RequestInitChain) types.ResponseInitChain
- func (app *KApp) Query(reqQuery types.RequestQuery) (res types.ResponseQuery)
- func (app *KApp) SetOption(req types.RequestSetOption) types.ResponseSetOption
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 (*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协议
Click to show internal directories.
Click to hide internal directories.