mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
43 lines
855 B
Go
43 lines
855 B
Go
package types
|
|
|
|
type BaseApplication struct {
|
|
}
|
|
|
|
func NewBaseApplication() *BaseApplication {
|
|
return &BaseApplication{}
|
|
}
|
|
|
|
func (BaseApplication) Info(req RequestInfo) ResponseInfo {
|
|
return ResponseInfo{}
|
|
}
|
|
|
|
func (BaseApplication) SetOption(key string, value string) (log string) {
|
|
return ""
|
|
}
|
|
|
|
func (BaseApplication) DeliverTx(tx []byte) Result {
|
|
return NewResultOK(nil, "")
|
|
}
|
|
|
|
func (BaseApplication) CheckTx(tx []byte) Result {
|
|
return NewResultOK(nil, "")
|
|
}
|
|
|
|
func (BaseApplication) Commit() Result {
|
|
return NewResultOK([]byte("nil"), "")
|
|
}
|
|
|
|
func (BaseApplication) Query(req RequestQuery) ResponseQuery {
|
|
return ResponseQuery{}
|
|
}
|
|
|
|
func (BaseApplication) InitChain(req RequestInitChain) {
|
|
}
|
|
|
|
func (BaseApplication) BeginBlock(req RequestBeginBlock) {
|
|
}
|
|
|
|
func (BaseApplication) EndBlock(height uint64) ResponseEndBlock {
|
|
return ResponseEndBlock{}
|
|
}
|