2016-02-26 20:04:28 -05:00
|
|
|
package nilapp
|
|
|
|
|
|
|
|
import (
|
2017-01-12 15:47:55 -05:00
|
|
|
"github.com/tendermint/abci/types"
|
2016-02-26 20:04:28 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
type NilApplication struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewNilApplication() *NilApplication {
|
|
|
|
return &NilApplication{}
|
|
|
|
}
|
|
|
|
|
2016-12-26 17:44:36 -08:00
|
|
|
func (app *NilApplication) Info() (resInfo types.ResponseInfo) {
|
|
|
|
return
|
2016-02-26 20:04:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
func (app *NilApplication) SetOption(key string, value string) (log string) {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2017-01-12 15:27:08 -05:00
|
|
|
func (app *NilApplication) DeliverTx(tx []byte) types.Result {
|
2016-03-20 17:10:13 -07:00
|
|
|
return types.NewResultOK(nil, "")
|
2016-02-26 20:04:28 -05:00
|
|
|
}
|
|
|
|
|
2016-03-20 17:10:13 -07:00
|
|
|
func (app *NilApplication) CheckTx(tx []byte) types.Result {
|
|
|
|
return types.NewResultOK(nil, "")
|
2016-02-26 20:04:28 -05:00
|
|
|
}
|
|
|
|
|
2016-03-23 02:50:29 -07:00
|
|
|
func (app *NilApplication) Commit() types.Result {
|
|
|
|
return types.NewResultOK([]byte("nil"), "")
|
2016-02-26 20:04:28 -05:00
|
|
|
}
|
|
|
|
|
2017-01-23 23:42:09 -08:00
|
|
|
func (app *NilApplication) Query(reqQuery types.RequestQuery) (resQuery types.ResponseQuery) {
|
|
|
|
return resQuery
|
2017-01-10 15:49:26 +01:00
|
|
|
}
|
2017-02-06 19:08:37 -05:00
|
|
|
|
|
|
|
func (app *NilApplication) InitChain(validators []*types.Validator) {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (app *NilApplication) BeginBlock(hash []byte, header *types.Header) {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (app *NilApplication) EndBlock(height uint64) types.ResponseEndBlock {
|
|
|
|
return types.ResponseEndBlock{}
|
|
|
|
}
|