erc20

package
v0.0.0-...-e4f0010 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by go-web3/abigen. DO NOT EDIT. Hash: 7f235b8ff9310f081828e9950d4cadb51a402689fdfbe8cb5a195535b3c6a391

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 web3.Address, provider *jsonrpc.Client) *ERC20

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

func (*ERC20) Allowance

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

Allowance calls the allowance method in the solidity contract

func (*ERC20) ApprovalEventSig

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

func (*ERC20) Approve

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

Approve sends a approve transaction in the solidity contract

func (*ERC20) BalanceOf

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

BalanceOf calls the balanceOf method in the solidity contract

func (*ERC20) Contract

func (e *ERC20) Contract() *contract.Contract

Contract returns the contract object

func (*ERC20) Decimals

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

Decimals calls the decimals method in the solidity contract

func (*ERC20) Name

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

Name calls the name method in the solidity contract

func (*ERC20) Symbol

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

Symbol calls the symbol method in the solidity contract

func (*ERC20) TotalSupply

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

TotalSupply calls the totalSupply method in the solidity contract

func (*ERC20) Transfer

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

Transfer sends a transfer transaction in the solidity contract

func (*ERC20) TransferEventSig

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

func (*ERC20) TransferFrom

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

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