Documentation ¶
Index ¶
- Variables
- func ERC20Abi() *abi.ABI
- type ApprovalEvent
- type ERC20
- func (_a *ERC20) Allowance(owner web3.Address, spender web3.Address, block ...web3.BlockNumber) (retval0 *big.Int, err error)
- func (self *ERC20) AmountWithDecimals(amount uint64) *big.Int
- func (self *ERC20) AmountWithoutDecimals(amount *big.Int) uint64
- func (_a *ERC20) ApprovalTopicFilter(owner []web3.Address, spender []web3.Address) [][]web3.Hash
- func (_a *ERC20) Approve(spender web3.Address, value *big.Int) *contract.Txn
- func (_a *ERC20) BalanceOf(owner web3.Address, block ...web3.BlockNumber) (retval0 *big.Int, err error)
- func (_a *ERC20) Contract() *contract.Contract
- func (_a *ERC20) Decimals(block ...web3.BlockNumber) (retval0 uint8, err error)
- func (a *ERC20) FilterApproval(opts *web3.FilterOpts, _owner []web3.Address, _spender []web3.Address) ([]*web3.Log, error)
- func (_a *ERC20) FilterApprovalEvent(owner []web3.Address, spender []web3.Address, startBlock uint64, ...) ([]*ApprovalEvent, error)
- func (a *ERC20) FilterTransfer(opts *web3.FilterOpts, from []web3.Address, to []web3.Address) ([]*web3.Log, error)
- func (_a *ERC20) FilterTransferEvent(from []web3.Address, to []web3.Address, startBlock uint64, endBlock ...uint64) ([]*TransferEvent, error)
- func (_a *ERC20) Name(block ...web3.BlockNumber) (retval0 string, err error)
- func (_a *ERC20) Symbol(block ...web3.BlockNumber) (retval0 string, err error)
- func (_a *ERC20) TotalSupply(block ...web3.BlockNumber) (retval0 *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
- func (_a *ERC20) TransferTopicFilter(from []web3.Address, to []web3.Address) [][]web3.Hash
- type TransferEvent
Constants ¶
This section is empty.
Variables ¶
View Source
var ApprovalEventID = crypto.Keccak256Hash([]byte("Approval(address,address,uint256)"))
View Source
var TransferEventID = crypto.Keccak256Hash([]byte("Transfer(address,address,uint256)"))
Functions ¶
Types ¶
type ApprovalEvent ¶
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) (retval0 *big.Int, err error)
Allowance calls the allowance method in the solidity contract
func (*ERC20) AmountWithoutDecimals ¶
func (*ERC20) ApprovalTopicFilter ¶ added in v0.1.2
func (*ERC20) BalanceOf ¶
func (_a *ERC20) BalanceOf(owner web3.Address, block ...web3.BlockNumber) (retval0 *big.Int, err error)
BalanceOf calls the balanceOf method in the solidity contract
func (*ERC20) Decimals ¶
func (_a *ERC20) Decimals(block ...web3.BlockNumber) (retval0 uint8, err error)
Decimals calls the decimals method in the solidity contract
func (*ERC20) FilterApproval ¶
func (*ERC20) FilterApprovalEvent ¶
func (*ERC20) FilterTransfer ¶
func (*ERC20) FilterTransferEvent ¶
func (*ERC20) Name ¶
func (_a *ERC20) Name(block ...web3.BlockNumber) (retval0 string, err error)
Name calls the name method in the solidity contract
func (*ERC20) Symbol ¶
func (_a *ERC20) Symbol(block ...web3.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) TransferFrom ¶
TransferFrom sends a transferFrom transaction in the solidity contract
Click to show internal directories.
Click to hide internal directories.