2015-12-01 20:12:01 -08:00
|
|
|
package proxy
|
|
|
|
|
|
|
|
import (
|
2016-01-25 14:34:08 -08:00
|
|
|
tmspcli "github.com/tendermint/tmsp/client"
|
2016-03-05 20:57:36 -08:00
|
|
|
tmsp "github.com/tendermint/tmsp/types"
|
2015-12-01 20:12:01 -08:00
|
|
|
)
|
|
|
|
|
2016-01-06 17:14:20 -08:00
|
|
|
type AppConn interface {
|
2016-01-22 15:48:13 -08:00
|
|
|
SetResponseCallback(tmspcli.Callback)
|
2015-12-01 20:12:01 -08:00
|
|
|
Error() error
|
|
|
|
|
2016-02-08 00:48:58 -08:00
|
|
|
EchoAsync(msg string) *tmspcli.ReqRes
|
|
|
|
FlushAsync() *tmspcli.ReqRes
|
|
|
|
AppendTxAsync(tx []byte) *tmspcli.ReqRes
|
|
|
|
CheckTxAsync(tx []byte) *tmspcli.ReqRes
|
2016-02-14 13:11:01 -08:00
|
|
|
CommitAsync() *tmspcli.ReqRes
|
2016-02-08 00:48:58 -08:00
|
|
|
SetOptionAsync(key string, value string) *tmspcli.ReqRes
|
2015-12-01 20:12:01 -08:00
|
|
|
|
2016-01-25 14:34:08 -08:00
|
|
|
InfoSync() (info string, err error)
|
2015-12-01 20:12:01 -08:00
|
|
|
FlushSync() error
|
2016-02-14 13:11:01 -08:00
|
|
|
CommitSync() (hash []byte, log string, err error)
|
2016-03-05 20:57:36 -08:00
|
|
|
InitChainSync(validators []*tmsp.Validator) (err error)
|
2016-03-06 18:02:29 -08:00
|
|
|
EndBlockSync(height uint64) (changedValidators []*tmsp.Validator, err error)
|
2015-12-01 20:12:01 -08:00
|
|
|
}
|