OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / tendermint / abci / types / base_app.go
1 package types
2
3 type BaseApplication struct {
4 }
5
6 func NewBaseApplication() *BaseApplication {
7         return &BaseApplication{}
8 }
9
10 func (app *BaseApplication) Info(req RequestInfo) (resInfo ResponseInfo) {
11         return
12 }
13
14 func (app *BaseApplication) SetOption(key string, value string) (log string) {
15         return ""
16 }
17
18 func (app *BaseApplication) DeliverTx(tx []byte) Result {
19         return NewResultOK(nil, "")
20 }
21
22 func (app *BaseApplication) CheckTx(tx []byte) Result {
23         return NewResultOK(nil, "")
24 }
25
26 func (app *BaseApplication) Commit() Result {
27         return NewResultOK([]byte("nil"), "")
28 }
29
30 func (app *BaseApplication) Query(req RequestQuery) (resQuery ResponseQuery) {
31         return
32 }
33
34 func (app *BaseApplication) InitChain(req RequestInitChain) {
35 }
36
37 func (app *BaseApplication) BeginBlock(req RequestBeginBlock) {
38 }
39
40 func (app *BaseApplication) EndBlock(height uint64) (resEndBlock ResponseEndBlock) {
41         return
42 }