erc20

package
v0.0.0-...-01e1646 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by ethgo/abigen. DO NOT EDIT. Hash: a1a873d70d345feef023ee086fd6135b24d775444b950ee9d5ea411e72b0f373 Version: 0.1.1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ERC20Abi

func ERC20Abi() *abi.ABI

ERC20Abi returns the abi of the ERC20 contract

Types

type ERC20

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

ERC20 is a solidity contract

func NewERC20

func NewERC20(addr core.Address, opts ...contract.ContractOption) *ERC20

NewERC20 creates a new instance of the contract at a specific address

func (*ERC20) Allowance

func (e *ERC20) Allowance(owner core.Address, spender core.Address, block ...core.BlockNumber) (retval0 *big.Int, err error)

Allowance calls the allowance method in the solidity contract

func (*ERC20) ApprovalEventSig

func (e *ERC20) ApprovalEventSig() core.Hash

func (*ERC20) Approve

func (e *ERC20) Approve(spender core.Address, value *big.Int) (contract.Txn, error)

Approve sends a approve transaction in the solidity contract

func (*ERC20) BalanceOf

func (e *ERC20) BalanceOf(owner core.Address, block ...core.BlockNumber) (retval0 *big.Int, err error)

BalanceOf calls the balanceOf method in the solidity contract

func (*ERC20) Decimals

func (e *ERC20) Decimals(block ...core.BlockNumber) (retval0 uint8, err error)

Decimals calls the decimals method in the solidity contract

func (*ERC20) Name

func (e *ERC20) Name(block ...core.BlockNumber) (retval0 string, err error)

Name calls the name method in the solidity contract

func (*ERC20) Symbol

func (e *ERC20) Symbol(block ...core.BlockNumber) (retval0 string, err error)

Symbol calls the symbol method in the solidity contract

func (*ERC20) TotalSupply

func (e *ERC20) TotalSupply(block ...core.BlockNumber) (retval0 *big.Int, err error)

TotalSupply calls the totalSupply method in the solidity contract

func (*ERC20) Transfer

func (e *ERC20) Transfer(to core.Address, value *big.Int) (contract.Txn, error)

Transfer sends a transfer transaction in the solidity contract

func (*ERC20) TransferEventSig

func (e *ERC20) TransferEventSig() core.Hash

func (*ERC20) TransferFrom

func (e *ERC20) TransferFrom(from core.Address, to core.Address, value *big.Int) (contract.Txn, error)

TransferFrom sends a transferFrom transaction in the solidity contract

Jump to

Keyboard shortcuts

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