client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthereumClient

type EthereumClient struct {
	*ethclient.Client
	// contains filtered or unexported fields
}

EthereumClient wraps the go-ethereum client with additional functionality

func NewEthereumClient

func NewEthereumClient(rpcURL string) (*EthereumClient, error)

NewEthereumClient creates and returns a new Ethereum client

func (*EthereumClient) GetRPCURL

func (c *EthereumClient) GetRPCURL() string

GetRPCURL returns the RPC URL used by this client

func (*EthereumClient) WaitForTxConfirmation

func (c *EthereumClient) WaitForTxConfirmation(txHash common.Hash) error

WaitForTxConfirmation waits for a transaction to be mined and confirmed

type ValidatorManagerContract

type ValidatorManagerContract struct {
	*bindings.IValidatorManager
	// contains filtered or unexported fields
}

ValidatorManagerContract wraps the ValidatorManager contract with additional functionality

func NewValidatorManagerContract

func NewValidatorManagerContract(contractAddr string, ethClient *EthereumClient) (*ValidatorManagerContract, error)

NewValidatorManagerContract creates and returns a new ValidatorManager contract instance

func (*ValidatorManagerContract) GetAddress

func (c *ValidatorManagerContract) GetAddress() common.Address

GetAddress returns the contract address

Jump to

Keyboard shortcuts

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