ethereum

package
v9.0.0-...-e599657 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GWEI  = sdkmath.NewInt(1_000_000_000)
	ETHER = GWEI.MulRaw(1_000_000_000)
)

Functions

func NewWallet

func NewWallet(keyname string, address []byte, mnemonic string) ibc.Wallet

func PanicFunctionName

func PanicFunctionName()

Types

type EthereumChain

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

func NewEthereumChain

func NewEthereumChain(testName string, chainConfig ibc.ChainConfig, log *zap.Logger) *EthereumChain

func (*EthereumChain) Acknowledgements

func (c *EthereumChain) Acknowledgements(ctx context.Context, height int64) ([]ibc.PacketAcknowledgement, error)

func (*EthereumChain) Bind

func (c *EthereumChain) Bind() []string

func (*EthereumChain) BuildRelayerWallet

func (c *EthereumChain) BuildRelayerWallet(ctx context.Context, keyName string) (ibc.Wallet, error)

func (*EthereumChain) Config

func (c *EthereumChain) Config() ibc.ChainConfig

func (*EthereumChain) Exec

func (c *EthereumChain) Exec(ctx context.Context, cmd []string, env []string) (stdout, stderr []byte, err error)

func (*EthereumChain) ExportState

func (c *EthereumChain) ExportState(ctx context.Context, height int64) (string, error)

func (*EthereumChain) GetBalance

func (c *EthereumChain) GetBalance(ctx context.Context, address string, denom string) (sdkmath.Int, error)

func (*EthereumChain) GetGRPCAddress

func (c *EthereumChain) GetGRPCAddress() string

func (*EthereumChain) GetGasFeesInNativeDenom

func (c *EthereumChain) GetGasFeesInNativeDenom(gasPaid int64) int64

func (*EthereumChain) GetHostGRPCAddress

func (c *EthereumChain) GetHostGRPCAddress() string

func (*EthereumChain) GetHostPeerAddress

func (*EthereumChain) GetHostPeerAddress() string

func (*EthereumChain) GetHostRPCAddress

func (c *EthereumChain) GetHostRPCAddress() string

func (*EthereumChain) GetHostWSAddress

func (c *EthereumChain) GetHostWSAddress() string

func (*EthereumChain) GetRPCAddress

func (c *EthereumChain) GetRPCAddress() string

func (*EthereumChain) GetWSAddress

func (c *EthereumChain) GetWSAddress() string

func (*EthereumChain) Height

func (c *EthereumChain) Height(ctx context.Context) (int64, error)

func (*EthereumChain) HomeDir

func (c *EthereumChain) HomeDir() string

func (*EthereumChain) HostName

func (c *EthereumChain) HostName() string

func (*EthereumChain) Initialize

func (c *EthereumChain) Initialize(ctx context.Context, testName string, cli *dockerclient.Client, networkID string) error

func (*EthereumChain) Logger

func (c *EthereumChain) Logger() *zap.Logger

func (*EthereumChain) Name

func (c *EthereumChain) Name() string

func (*EthereumChain) NewJob

func (c *EthereumChain) NewJob() *dockerutil.Image

func (*EthereumChain) SendIBCTransfer

func (c *EthereumChain) SendIBCTransfer(ctx context.Context, channelID, keyName string, amount ibc.WalletAmount, options ibc.TransferOptions) (ibc.Tx, error)

func (*EthereumChain) Start

func (c *EthereumChain) Start(ctx context.Context, cmd []string, mount []mount.Mount) error

func (*EthereumChain) Timeouts

func (c *EthereumChain) Timeouts(ctx context.Context, height int64) ([]ibc.PacketTimeout, error)

type EthereumWallet

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

func (*EthereumWallet) Address

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

Get Address with chain's prefix

func (*EthereumWallet) FormattedAddress

func (w *EthereumWallet) FormattedAddress() string

Get formatted address, passing in a prefix

func (*EthereumWallet) KeyName

func (w *EthereumWallet) KeyName() string

func (*EthereumWallet) Mnemonic

func (w *EthereumWallet) Mnemonic() string

Get mnemonic, only used for relayer wallets

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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