mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
25 lines
660 B
Go
25 lines
660 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() (res tmsp.Result)
|
|
InitChainSync(validators []*tmsp.Validator) (err error)
|
|
EndBlockSync(height uint64) (changedValidators []*tmsp.Validator, err error)
|
|
}
|