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
903 B

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
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 (BaseApplication) Info(req RequestInfo) ResponseInfo {
  8. return ResponseInfo{}
  9. }
  10. func (BaseApplication) SetOption(key string, value string) (log string) {
  11. return ""
  12. }
  13. func (BaseApplication) DeliverTx(tx []byte) ResponseDeliverTx {
  14. return ResponseDeliverTx{}
  15. }
  16. func (BaseApplication) CheckTx(tx []byte) ResponseCheckTx {
  17. return ResponseCheckTx{}
  18. }
  19. func (BaseApplication) Commit() ResponseCommit {
  20. return ResponseCommit{Code: CodeType_OK, Data: []byte("nil")}
  21. }
  22. func (BaseApplication) Query(req RequestQuery) ResponseQuery {
  23. return ResponseQuery{}
  24. }
  25. func (BaseApplication) InitChain(req RequestInitChain) {
  26. }
  27. func (BaseApplication) BeginBlock(req RequestBeginBlock) {
  28. }
  29. func (BaseApplication) EndBlock(height uint64) ResponseEndBlock {
  30. return ResponseEndBlock{}
  31. }