ethutils

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckETHEndpoint added in v0.7.0

func CheckETHEndpoint(ctx context.Context, log *logging.Logger, endpoint config.EthereumNodeConfig) bool

func CheckETHEndpointList added in v0.7.0

func CheckETHEndpointList(ctx context.Context, log *logging.Logger, endpoints []config.EthereumNodeConfig) map[string]bool

Types

type ERC20Token

type ERC20Token struct {
	*IERC20.IERC20
	HexAddress string
}

func (*ERC20Token) BalanceOf

func (t *ERC20Token) BalanceOf(hexAddress string) (*big.Int, error)

type EthClient

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

func NewEthClient

func NewEthClient(ethConfig *config.EthereumConfig, log *logging.Logger) (*EthClient, error)

func (*EthClient) GetAssetPoolBalanceForToken

func (c *EthClient) GetAssetPoolBalanceForToken(hexTokenAddress string) (*big.Int, error)

func (*EthClient) GetERC20

func (c *EthClient) GetERC20(hexTokenAddress string) (*ERC20Token, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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