Documentation ¶
Index ¶
- func ERC20Abi() *abi.ABI
- type ERC20
- func (a *ERC20) Allowance(owner web3.Address, spender web3.Address, block ...web3.BlockNumber) (val0 *big.Int, err error)
- func (a *ERC20) Approve(spender web3.Address, value *big.Int) *contract.Txn
- func (a *ERC20) BalanceOf(owner web3.Address, block ...web3.BlockNumber) (val0 *big.Int, err error)
- func (a *ERC20) Contract() *contract.Contract
- func (a *ERC20) Decimals(block ...web3.BlockNumber) (val0 uint8, err error)
- func (a *ERC20) Name(block ...web3.BlockNumber) (val0 string, err error)
- func (a *ERC20) Symbol(block ...web3.BlockNumber) (val0 string, err error)
- func (a *ERC20) TotalSupply(block ...web3.BlockNumber) (val0 *big.Int, err error)
- func (a *ERC20) Transfer(to web3.Address, value *big.Int) *contract.Txn
- func (a *ERC20) TransferFrom(from web3.Address, to web3.Address, value *big.Int) *contract.Txn
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 (*ERC20) Allowance ¶
func (a *ERC20) Allowance(owner web3.Address, spender web3.Address, block ...web3.BlockNumber) (val0 *big.Int, err error)
Allowance calls the allowance method in the solidity contract
func (*ERC20) Decimals ¶
func (a *ERC20) Decimals(block ...web3.BlockNumber) (val0 uint8, err error)
Decimals calls the decimals method in the solidity contract
func (*ERC20) Name ¶
func (a *ERC20) Name(block ...web3.BlockNumber) (val0 string, err error)
Name calls the name method in the solidity contract
func (*ERC20) Symbol ¶
func (a *ERC20) Symbol(block ...web3.BlockNumber) (val0 string, err error)
Symbol calls the symbol method in the solidity contract
func (*ERC20) TotalSupply ¶
TotalSupply calls the totalSupply method in the solidity contract
Click to show internal directories.
Click to hide internal directories.