Documentation
¶
Overview ¶
Code generated by ethgo/abigen. DO NOT EDIT. Hash: a1a873d70d345feef023ee086fd6135b24d775444b950ee9d5ea411e72b0f373 Version: 0.1.1
Index ¶
- func ERC20Abi() *abi.ABI
- type ERC20
- func (e *ERC20) Allowance(owner ethgo.Address, spender ethgo.Address, block ...ethgo.BlockNumber) (retval0 *big.Int, err error)
- func (e *ERC20) ApprovalEventSig() ethgo.Hash
- func (e *ERC20) Approve(spender ethgo.Address, value *big.Int) (contract.Txn, error)
- func (e *ERC20) BalanceOf(owner ethgo.Address, block ...ethgo.BlockNumber) (retval0 *big.Int, err error)
- func (e *ERC20) Decimals(block ...ethgo.BlockNumber) (retval0 uint8, err error)
- func (e *ERC20) Name(block ...ethgo.BlockNumber) (retval0 string, err error)
- func (e *ERC20) Symbol(block ...ethgo.BlockNumber) (retval0 string, err error)
- func (e *ERC20) TotalSupply(block ...ethgo.BlockNumber) (retval0 *big.Int, err error)
- func (e *ERC20) Transfer(to ethgo.Address, value *big.Int) (contract.Txn, error)
- func (e *ERC20) TransferEventSig() ethgo.Hash
- func (e *ERC20) TransferFrom(from ethgo.Address, to ethgo.Address, value *big.Int) (contract.Txn, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ERC20 ¶
type ERC20 struct {
// contains filtered or unexported fields
}
ERC20 is a solidity contract
func NewERC20 ¶
func NewERC20(addr ethgo.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 ethgo.Address, spender ethgo.Address, block ...ethgo.BlockNumber) (retval0 *big.Int, err error)
Allowance calls the allowance method in the solidity contract
func (*ERC20) ApprovalEventSig ¶
func (*ERC20) BalanceOf ¶
func (e *ERC20) BalanceOf(owner ethgo.Address, block ...ethgo.BlockNumber) (retval0 *big.Int, err error)
BalanceOf calls the balanceOf method in the solidity contract
func (*ERC20) Decimals ¶
func (e *ERC20) Decimals(block ...ethgo.BlockNumber) (retval0 uint8, err error)
Decimals calls the decimals method in the solidity contract
func (*ERC20) Name ¶
func (e *ERC20) Name(block ...ethgo.BlockNumber) (retval0 string, err error)
Name calls the name method in the solidity contract
func (*ERC20) Symbol ¶
func (e *ERC20) Symbol(block ...ethgo.BlockNumber) (retval0 string, err error)
Symbol calls the symbol method in the solidity contract
func (*ERC20) TotalSupply ¶
TotalSupply calls the totalSupply method in the solidity contract
func (*ERC20) TransferEventSig ¶
Click to show internal directories.
Click to hide internal directories.