Documentation
¶
Index ¶
- Variables
- func ParseChannelIDFromEvents(events []provider.RelayerEvent) (string, error)
- func ParseClientIDFromEvents(events []provider.RelayerEvent) (string, error)
- func ParseConnectionIDFromEvents(events []provider.RelayerEvent) (string, error)
- type Chain
- func (c *Chain) ChainID() string
- func (c *Chain) CreateTestKey() error
- func (c *Chain) GetSelfVersion() uint64
- func (c *Chain) GetTimeout() (time.Duration, error)
- func (c *Chain) GetTrustingPeriod(ctx context.Context, overrideUnbondingPeriod time.Duration, percentage int64) (time.Duration, error)
- func (c *Chain) String() string
- type Chains
- type ClientStateInfo
Constants ¶
This section is empty.
Variables ¶
var ( RtyAttNum = uint(5) RtyAtt = retry.Attempts(RtyAttNum) RtyDel = retry.Delay(time.Millisecond * 400) RtyErr = retry.LastErrorOnly(true) )
Functions ¶
func ParseChannelIDFromEvents ¶
func ParseChannelIDFromEvents(events []provider.RelayerEvent) (string, error)
ParseChannelIDFromEvents parses events emitted from a MsgChannelOpenInit or MsgChannelOpenTry and returns the channel identifier.
func ParseClientIDFromEvents ¶
func ParseClientIDFromEvents(events []provider.RelayerEvent) (string, error)
ParseClientIDFromEvents parses events emitted from a MsgCreateClient and returns the client identifier.
func ParseConnectionIDFromEvents ¶
func ParseConnectionIDFromEvents(events []provider.RelayerEvent) (string, error)
ParseConnectionIDFromEvents parses events emitted from a MsgConnectionOpenInit or MsgConnectionOpenTry and returns the connection identifier.
Types ¶
type Chain ¶
type Chain struct {
ChainProvider provider.ChainProvider
Chainid string `yaml:"chain-id" json:"chain-id"`
// contains filtered or unexported fields
}
Chain represents the necessary data for connecting to and identifying a chain and its counterparties TODO revise Chain struct
func (*Chain) CreateTestKey ¶
CreateTestKey creates a key for test chain
func (*Chain) GetSelfVersion ¶
GetSelfVersion returns the version of the given chain
func (*Chain) GetTimeout ¶
GetTimeout returns the chain's configured timeout
type Chains ¶
Chains is a collection of Chain (mapped by chain_name)
type ClientStateInfo ¶
type ClientStateInfo struct {
ChainID string
TrustingPeriod time.Duration
LatestHeight ibcexported.Height
UnbondingTime time.Duration
}
func ClientInfoFromClientState ¶
func ClientInfoFromClientState(clientState *codectypes.Any) (ClientStateInfo, error)