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.

44 lines
1.0 KiB

8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 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(req RequestSetOption) ResponseSetOption {
  11. return ResponseSetOption{}
  12. }
  13. func (BaseApplication) DeliverTx(tx []byte) ResponseDeliverTx {
  14. return ResponseDeliverTx{Code: CodeTypeOK}
  15. }
  16. func (BaseApplication) CheckTx(tx []byte) ResponseCheckTx {
  17. return ResponseCheckTx{Code: CodeTypeOK}
  18. }
  19. func (BaseApplication) Commit() ResponseCommit {
  20. return ResponseCommit{Code: CodeTypeOK}
  21. }
  22. func (BaseApplication) Query(req RequestQuery) ResponseQuery {
  23. return ResponseQuery{Code: CodeTypeOK}
  24. }
  25. func (BaseApplication) InitChain(req RequestInitChain) ResponseInitChain {
  26. return ResponseInitChain{}
  27. }
  28. func (BaseApplication) BeginBlock(req RequestBeginBlock) ResponseBeginBlock {
  29. return ResponseBeginBlock{}
  30. }
  31. func (BaseApplication) EndBlock(req RequestEndBlock) ResponseEndBlock {
  32. return ResponseEndBlock{}
  33. }