Documentation ¶
Index ¶
- type Common
- type ERC20Token
- func (t *ERC20Token) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
- func (t *ERC20Token) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (t *ERC20Token) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)
- func (t *ERC20Token) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (t *ERC20Token) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (t *ERC20Token) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- func (t *ERC20Token) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (t *ERC20Token) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- type Standard
- type Testing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ERC20Token ¶
type ERC20Token struct { Standard Common Testing Address common.Address // contains filtered or unexported fields }
func NewERC20Token ¶
func NewERC20Token(ethClient *ethclient.Client, hexAddress string) (*ERC20Token, error)
func (*ERC20Token) Approve ¶ added in v0.76.8
func (t *ERC20Token) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
func (*ERC20Token) IncreaseAllowance ¶ added in v0.76.8
func (t *ERC20Token) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)
func (*ERC20Token) Mint ¶
func (t *ERC20Token) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
func (*ERC20Token) TotalSupply ¶ added in v0.76.8
func (*ERC20Token) Transfer ¶ added in v0.76.8
func (t *ERC20Token) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
func (*ERC20Token) TransferFrom ¶ added in v0.76.8
func (t *ERC20Token) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
type Standard ¶ added in v0.76.8
type Standard interface { BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) TotalSupply(opts *bind.CallOpts) (*big.Int, error) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) }
type Testing ¶ added in v0.76.8
type Testing interface { Faucet(opts *bind.TransactOpts) (*types.Transaction, error) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) SetBurnEnabled(opts *bind.TransactOpts, burnEnabled_ bool) (*types.Transaction, error) BurnEnabled(opts *bind.CallOpts) (bool, error) SetFaucetAmount(opts *bind.TransactOpts, faucetAmount_ *big.Int) (*types.Transaction, error) SetFaucetCallLimit(opts *bind.TransactOpts, faucetCallLimit_ *big.Int) (*types.Transaction, error) FaucetCallLimit(opts *bind.CallOpts) (*big.Int, error) FaucetAmount(opts *bind.CallOpts) (*big.Int, error) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error) MINTERROLE(opts *bind.CallOpts) ([32]byte, error) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error) }
Click to show internal directories.
Click to hide internal directories.