relayer

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t *testing.T, cfg Config, logger *zap.Logger, dockerClient *dockerclient.Client, network string) ibc.Relayer

New returns an implementation of ibc.Relayer depending on the provided RelayerType.

Types

type Config

type Config struct {
	// Tag is the tag used for the relayer image.
	Tag string `mapstructure:"tag"`
	// Image is the image that should be used for the relayer.
	Image string `mapstructure:"image"`
}

Config holds configuration values for the relayer used in the tests.

type RelayerMap

type RelayerMap map[string]map[ibc.Wallet]bool

RelayerMap is a mapping from test names to a relayer set for that test.

func (RelayerMap) AddRelayer

func (r RelayerMap) AddRelayer(testName string, relayer ibc.Relayer, chainID string)

AddRelayer adds the given relayer to the relayer set for the given test name.

func (RelayerMap) ContainsRelayer

func (r RelayerMap) ContainsRelayer(testName string, wallet ibc.Wallet) bool

containsRelayer returns true if the given relayer is in the relayer set for the given test name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL