relayer

package
v0.0.0-...-7068760 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Rly        = "rly"
	Hermes     = "hermes"
	Hyperspace = "hyperspace"

	HermesRelayerRepository = "ghcr.io/informalsystems/hermes"

	RlyRelayerRepository = "ghcr.io/cosmos/relayer"

	// TODO: https://github.com/cosmos/ibc-go/issues/4965
	HyperspaceRelayerRepository = "ghcr.io/misko9/hyperspace"
)

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 `yaml:"tag"`
	// ID specifies the type of relayer that this is.
	ID string `yaml:"id"`
	// Image is the image that should be used for the relayer.
	Image string `yaml:"image"`
}

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

type Map

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

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

func (Map) AddRelayer

func (r Map) AddRelayer(testName string, ibcrelayer ibc.Wallet)

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

func (Map) ContainsRelayer

func (r Map) 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