ethutils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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