erc20

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 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) AddAdmin

func (c *ERC20Contract) AddAdmin(
	admin common.Address,
	opts transactor.TransactOptions,
) (*common.Hash, error)

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) DefaultAdminRole

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

func (*ERC20Contract) GetBalance

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

func (*ERC20Contract) GetRoleMember

func (c *ERC20Contract) GetRoleMember(role [32]byte, i int64) (common.Address, error)

func (*ERC20Contract) GetRoleMemberCount

func (c *ERC20Contract) GetRoleMemberCount(role [32]byte) (*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)

func (*ERC20Contract) RemoveAdmin

func (c *ERC20Contract) RemoveAdmin(
	admin common.Address,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*ERC20Contract) RemoveMinter

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

func (*ERC20Contract) Transfer

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

type ERC20HandlerContract

type ERC20HandlerContract struct {
	contracts.Contract
}

func NewERC20HandlerContract

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

func (*ERC20HandlerContract) IsNative

func (c *ERC20HandlerContract) IsNative(address common.Address) (bool, error)

Jump to

Keyboard shortcuts

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