tendermint/types/base_app.go

43 lines
903 B
Go
Raw Normal View History

2017-02-13 18:48:59 -05:00
package types
type BaseApplication struct {
}
func NewBaseApplication() *BaseApplication {
return &BaseApplication{}
}
func (BaseApplication) Info(req RequestInfo) ResponseInfo {
return ResponseInfo{}
2017-02-13 18:48:59 -05:00
}
func (BaseApplication) SetOption(key string, value string) (log string) {
2017-02-13 18:48:59 -05:00
return ""
}
func (BaseApplication) DeliverTx(tx []byte) ResponseDeliverTx {
return ResponseDeliverTx{}
2017-02-13 18:48:59 -05:00
}
func (BaseApplication) CheckTx(tx []byte) ResponseCheckTx {
return ResponseCheckTx{}
2017-02-13 18:48:59 -05:00
}
func (BaseApplication) Commit() ResponseCommit {
return ResponseCommit{Code: CodeType_OK, Data: []byte("nil")}
2017-02-13 18:48:59 -05:00
}
func (BaseApplication) Query(req RequestQuery) ResponseQuery {
return ResponseQuery{}
2017-02-13 18:48:59 -05:00
}
func (BaseApplication) InitChain(req RequestInitChain) {
2017-02-13 18:48:59 -05:00
}
func (BaseApplication) BeginBlock(req RequestBeginBlock) {
2017-02-13 18:48:59 -05:00
}
func (BaseApplication) EndBlock(height uint64) ResponseEndBlock {
return ResponseEndBlock{}
2017-02-13 18:48:59 -05:00
}