centralized

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package rly provides an interface to the cosmos relayer running in a Docker container.

Index

Constants

View Source
const (
	DefaultContainerImage   = "centralized-rly"
	DefaultContainerVersion = "latest"
)
View Source
const (
	RlyDefaultUidGid = "100:1000"
)

Variables

This section is empty.

Functions

func Capabilities

func Capabilities() map[relayer.Capability]bool

Capabilities returns the set of capabilities of the Cosmos relayer.

Note, this API may change if the rly package eventually needs to distinguish between multiple rly versions.

Types

type EVMRelayerChainConfig

type EVMRelayerChainConfig struct {
	Type  string                     `json:"type"`
	Value EVMRelayerChainConfigValue `json:"value"`
}

type EVMRelayerChainConfigValue

type EVMRelayerChainConfigValue struct {
	NID             string `yaml:"nid"`
	RPCURL          string `yaml:"rpc-url"`
	StartHeight     int    `yaml:"start-height"`
	Keystore        string `yaml:"keystore"`
	Password        string `yaml:"password"`
	GasPrice        int64  `yaml:"gas-price"`
	GasLimit        int    `yaml:"gas-limit"`
	ContractAddress string `yaml:"contract-address"`
}

type ICONRelayer

type ICONRelayer struct {
	// Embedded DockerRelayer so commands just work.
	*relayer.DockerRelayer
}

ICONRelayer is the ibc.Relayer implementation for github.com/cosmos/relayer.

func NewCentralizedRelayer

func NewCentralizedRelayer(log *zap.Logger, testName string, cli *client.Client, networkID string, options ...relayer.RelayerOption) *ICONRelayer

type ICONRelayerChainConfig

type ICONRelayerChainConfig struct {
	Type  string                      `json:"type"`
	Value ICONRelayerChainConfigValue `json:"value"`
}

type ICONRelayerChainConfigValue

type ICONRelayerChainConfigValue struct {
	NID             string `yaml:"nid"`
	RPCURL          string `yaml:"rpc-url"`
	StartHeight     int    `yaml:"start-height"`
	Keystore        string `yaml:"keystore"`
	Password        string `yaml:"password"`
	ContractAddress string `yaml:"contract-address"`
	NetworkID       int    `yaml:"network-id"`
}

type RlyWallet

type RlyWallet struct {
	// contains filtered or unexported fields
}

func NewWallet

func NewWallet(keyname string, address string, mnemonic string) *RlyWallet

func (*RlyWallet) Address

func (w *RlyWallet) Address() []byte

Get Address

func (*RlyWallet) FormattedAddress

func (w *RlyWallet) FormattedAddress() string

func (*RlyWallet) KeyName

func (w *RlyWallet) KeyName() string

func (*RlyWallet) Mnemonic

func (w *RlyWallet) Mnemonic() string

Get mnemonic, only used for relayer wallets

type WalletModel

type WalletModel struct {
	Mnemonic string `json:"mnemonic"`
	Address  string `json:"address"`
}

Jump to

Keyboard shortcuts

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