25 lines
679 B
Go
25 lines
679 B
Go
package proxy
|
|
|
|
import (
|
|
tmspcli "github.com/tendermint/tmsp/client"
|
|
tmsp "github.com/tendermint/tmsp/types"
|
|
)
|
|
|
|
type AppConn interface {
|
|
SetResponseCallback(tmspcli.Callback)
|
|
Error() error
|
|
|
|
EchoAsync(msg string) *tmspcli.ReqRes
|
|
FlushAsync() *tmspcli.ReqRes
|
|
AppendTxAsync(tx []byte) *tmspcli.ReqRes
|
|
CheckTxAsync(tx []byte) *tmspcli.ReqRes
|
|
CommitAsync() *tmspcli.ReqRes
|
|
SetOptionAsync(key string, value string) *tmspcli.ReqRes
|
|
|
|
InfoSync() (info string, err error)
|
|
FlushSync() error
|
|
CommitSync() (hash []byte, log string, err error)
|
|
InitChainSync(validators []*tmsp.Validator) (err error)
|
|
EndBlockSync(height uint64) (changedValidators []*tmsp.Validator, err error)
|
|
}
|