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.

24 lines
679 B

9 years ago
  1. package proxy
  2. import (
  3. tmspcli "github.com/tendermint/tmsp/client"
  4. tmsp "github.com/tendermint/tmsp/types"
  5. )
  6. type AppConn interface {
  7. SetResponseCallback(tmspcli.Callback)
  8. Error() error
  9. EchoAsync(msg string) *tmspcli.ReqRes
  10. FlushAsync() *tmspcli.ReqRes
  11. AppendTxAsync(tx []byte) *tmspcli.ReqRes
  12. CheckTxAsync(tx []byte) *tmspcli.ReqRes
  13. CommitAsync() *tmspcli.ReqRes
  14. SetOptionAsync(key string, value string) *tmspcli.ReqRes
  15. InfoSync() (info string, err error)
  16. FlushSync() error
  17. CommitSync() (hash []byte, log string, err error)
  18. InitChainSync(validators []*tmsp.Validator) (err error)
  19. EndBlockSync(height uint64) (changedValidators []*tmsp.Validator, err error)
  20. }