erc20

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Erc20

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

Erc20 is a Go wrapper around an on-chain checkpoint oracle contract.

func NewErc20

func NewErc20(contractAddr common.Address, backend bind.ContractBackend) (ctrt *Erc20, err error)

NewErc20 binds checkpoint contract and returns a registrar instance.

func (*Erc20) BalanceOf

func (c *Erc20) BalanceOf(ctx context.Context, from common.Address) (*big.Int, error)

func (*Erc20) Contract

func (c *Erc20) Contract() *contract.ERC20

Contract returns the underlying contract instance.

func (*Erc20) ContractAddr

func (c *Erc20) ContractAddr() common.Address

ContractAddr returns the address of contract.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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