2017-02-13 15:48:59 -08:00
|
|
|
package types
|
|
|
|
|
|
|
|
type BaseApplication struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewBaseApplication() *BaseApplication {
|
|
|
|
return &BaseApplication{}
|
|
|
|
}
|
|
|
|
|
2017-09-22 08:10:39 -07:00
|
|
|
func (app *BaseApplication) Info(req RequestInfo) (resInfo ResponseInfo) {
|
2017-02-13 15:48:59 -08:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func (app *BaseApplication) SetOption(key string, value string) (log string) {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (app *BaseApplication) DeliverTx(tx []byte) Result {
|
|
|
|
return NewResultOK(nil, "")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (app *BaseApplication) CheckTx(tx []byte) Result {
|
|
|
|
return NewResultOK(nil, "")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (app *BaseApplication) Commit() Result {
|
|
|
|
return NewResultOK([]byte("nil"), "")
|
|
|
|
}
|
|
|
|
|
2017-09-22 08:10:39 -07:00
|
|
|
func (app *BaseApplication) Query(req RequestQuery) (resQuery ResponseQuery) {
|
2017-02-13 15:48:59 -08:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2017-09-22 08:10:39 -07:00
|
|
|
func (app *BaseApplication) InitChain(req RequestInitChain) {
|
2017-02-13 15:48:59 -08:00
|
|
|
}
|
|
|
|
|
2017-09-22 08:10:39 -07:00
|
|
|
func (app *BaseApplication) BeginBlock(req RequestBeginBlock) {
|
2017-02-13 15:48:59 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (app *BaseApplication) EndBlock(height uint64) (resEndBlock ResponseEndBlock) {
|
|
|
|
return
|
|
|
|
}
|