You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
885 B

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. package types
  2. type BaseApplication struct {
  3. }
  4. func NewBaseApplication() *BaseApplication {
  5. return &BaseApplication{}
  6. }
  7. func (app *BaseApplication) Info(req RequestInfo) (resInfo ResponseInfo) {
  8. return
  9. }
  10. func (app *BaseApplication) SetOption(key string, value string) (log string) {
  11. return ""
  12. }
  13. func (app *BaseApplication) DeliverTx(tx []byte) Result {
  14. return NewResultOK(nil, "")
  15. }
  16. func (app *BaseApplication) CheckTx(tx []byte) Result {
  17. return NewResultOK(nil, "")
  18. }
  19. func (app *BaseApplication) Commit() Result {
  20. return NewResultOK([]byte("nil"), "")
  21. }
  22. func (app *BaseApplication) Query(req RequestQuery) (resQuery ResponseQuery) {
  23. return
  24. }
  25. func (app *BaseApplication) InitChain(req RequestInitChain) {
  26. }
  27. func (app *BaseApplication) BeginBlock(req RequestBeginBlock) {
  28. }
  29. func (app *BaseApplication) EndBlock(height uint64) (resEndBlock ResponseEndBlock) {
  30. return
  31. }