Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRelayerAdapter ¶ added in v2.2.0
func NewRelayerAdapter(r types.Relayer, e RelayerExt) loop.Relayer
NewRelayerAdapter returns a loop.Relayer adapted from a types.Relayer and RelayerExt.
Types ¶
type RelayerExt ¶ added in v2.2.0
type RelayerExt interface {
services.ServiceCtx
ChainStatus(ctx context.Context, id string) (types.ChainStatus, error)
ChainStatuses(ctx context.Context, offset, limit int) ([]types.ChainStatus, int, error)
NodeStatuses(ctx context.Context, offset, limit int, chainIDs ...string) (nodes []types.NodeStatus, count int, err error)
SendTx(ctx context.Context, chainID, from, to string, amount *big.Int, balanceCheck bool) error
}
RelayerExt is a subset of loop.Relayer for adapting types.Relayer, typically with a ChainSet. See [relayerAdapter].
Click to show internal directories.
Click to hide internal directories.