2017-02-13 15:48:59 -08:00
|
|
|
package types
|
|
|
|
|
|
|
|
type BaseApplication struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewBaseApplication() *BaseApplication {
|
|
|
|
return &BaseApplication{}
|
|
|
|
}
|
|
|
|
|
2017-11-20 16:21:59 -08:00
|
|
|
func (BaseApplication) Info(req RequestInfo) ResponseInfo {
|
|
|
|
return ResponseInfo{}
|
2017-02-13 15:48:59 -08:00
|
|
|
}
|
|
|
|
|
2017-11-27 11:04:21 -08:00
|
|
|
func (BaseApplication) SetOption(req RequestSetOption) ResponseSetOption {
|
|
|
|
return ResponseSetOption{}
|
2017-02-13 15:48:59 -08:00
|
|
|
}
|
|
|
|
|
2017-11-20 18:26:37 -08:00
|
|
|
func (BaseApplication) DeliverTx(tx []byte) ResponseDeliverTx {
|
2017-11-22 17:38:28 -08:00
|
|
|
return ResponseDeliverTx{Code: CodeType_OK}
|
2017-02-13 15:48:59 -08:00
|
|
|
}
|
|
|
|
|
2017-11-20 18:26:37 -08:00
|
|
|
func (BaseApplication) CheckTx(tx []byte) ResponseCheckTx {
|
2017-11-22 17:38:28 -08:00
|
|
|
return ResponseCheckTx{Code: CodeType_OK}
|
2017-02-13 15:48:59 -08:00
|
|
|
}
|
|
|
|
|
2017-11-20 18:26:37 -08:00
|
|
|
func (BaseApplication) Commit() ResponseCommit {
|
|
|
|
return ResponseCommit{Code: CodeType_OK, Data: []byte("nil")}
|
2017-02-13 15:48:59 -08:00
|
|
|
}
|
|
|
|
|
2017-11-20 16:21:59 -08:00
|
|
|
func (BaseApplication) Query(req RequestQuery) ResponseQuery {
|
2017-11-24 14:45:36 -08:00
|
|
|
return ResponseQuery{Code: CodeType_OK}
|
2017-02-13 15:48:59 -08:00
|
|
|
}
|
|
|
|
|
2017-11-27 11:04:21 -08:00
|
|
|
func (BaseApplication) InitChain(req RequestInitChain) ResponseInitChain {
|
|
|
|
return ResponseInitChain{}
|
2017-02-13 15:48:59 -08:00
|
|
|
}
|
|
|
|
|
2017-11-27 11:04:21 -08:00
|
|
|
func (BaseApplication) BeginBlock(req RequestBeginBlock) ResponseBeginBlock {
|
|
|
|
return ResponseBeginBlock{}
|
2017-02-13 15:48:59 -08:00
|
|
|
}
|
|
|
|
|
2017-11-27 11:04:21 -08:00
|
|
|
func (BaseApplication) EndBlock(req RequestEndBlock) ResponseEndBlock {
|
2017-11-20 16:21:59 -08:00
|
|
|
return ResponseEndBlock{}
|
2017-02-13 15:48:59 -08:00
|
|
|
}
|