erc20

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ERC20Contract

type ERC20Contract struct {
	contracts.Contract
}

func NewERC20Contract

func NewERC20Contract(
	client calls.ContractCallerDispatcher,
	erc20ContractAddress common.Address,
	transactor transactor.Transactor,
) *ERC20Contract

func (*ERC20Contract) AddMinter

func (c *ERC20Contract) AddMinter(
	minter common.Address,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*ERC20Contract) ApproveTokens

func (c *ERC20Contract) ApproveTokens(
	target common.Address,
	amount *big.Int,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*ERC20Contract) GetBalance

func (c *ERC20Contract) GetBalance(address common.Address) (*big.Int, error)

func (*ERC20Contract) MintTokens

func (c *ERC20Contract) MintTokens(
	to common.Address,
	amount *big.Int,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*ERC20Contract) MinterRole

func (c *ERC20Contract) MinterRole() ([32]byte, error)

type ERC20HandlerContract

type ERC20HandlerContract struct {
	contracts.Contract
}

func NewERC20HandlerContract

func NewERC20HandlerContract(
	client calls.ContractCallerDispatcher,
	erc20HandlerContractAddress common.Address,
	t transactor.Transactor,
) *ERC20HandlerContract

Jump to

Keyboard shortcuts

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