tendermint/types/base_app.go

45 lines
1.0 KiB
Go
Raw Normal View History

2017-02-13 15:48:59 -08:00
package types
type BaseApplication struct {
}
func NewBaseApplication() *BaseApplication {
return &BaseApplication{}
}
func (BaseApplication) Info(req RequestInfo) ResponseInfo {
return ResponseInfo{}
2017-02-13 15:48:59 -08:00
}
func (BaseApplication) SetOption(req RequestSetOption) ResponseSetOption {
return ResponseSetOption{}
2017-02-13 15:48:59 -08:00
}
func (BaseApplication) DeliverTx(tx []byte) ResponseDeliverTx {
2017-11-30 11:29:12 -08:00
return ResponseDeliverTx{Code: CodeTypeOK}
2017-02-13 15:48:59 -08:00
}
func (BaseApplication) CheckTx(tx []byte) ResponseCheckTx {
2017-11-30 11:29:12 -08:00
return ResponseCheckTx{Code: CodeTypeOK}
2017-02-13 15:48:59 -08:00
}
func (BaseApplication) Commit() ResponseCommit {
return ResponseCommit{Code: CodeTypeOK}
2017-02-13 15:48:59 -08:00
}
func (BaseApplication) Query(req RequestQuery) ResponseQuery {
2017-11-30 11:29:12 -08:00
return ResponseQuery{Code: CodeTypeOK}
2017-02-13 15:48:59 -08:00
}
func (BaseApplication) InitChain(req RequestInitChain) ResponseInitChain {
return ResponseInitChain{}
2017-02-13 15:48:59 -08:00
}
func (BaseApplication) BeginBlock(req RequestBeginBlock) ResponseBeginBlock {
return ResponseBeginBlock{}
2017-02-13 15:48:59 -08:00
}
func (BaseApplication) EndBlock(req RequestEndBlock) ResponseEndBlock {
return ResponseEndBlock{}
2017-02-13 15:48:59 -08:00
}