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 ID ¶ added in v2.5.0
ID uniquely identifies a relayer by network and chain id
func (*ID) UnmarshalString ¶ added in v2.5.0
type RelayerExt ¶ added in v2.2.0
type RelayerExt interface { types.ChainService // TODO remove after BFC-2441 ID() string GetChainStatus(ctx context.Context) (types.ChainStatus, error) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken string) (stats []types.NodeStatus, nextPageToken string, total int, err error) // choose different name than SendTx to avoid collison during refactor. Transact(ctx context.Context, from, to string, amount *big.Int, balanceCheck bool) error }
RelayerExt is a subset of loop.Relayer for adapting types.Relayer, typically with a Chain. See [relayerAdapter].
Click to show internal directories.
Click to hide internal directories.