Documentation ¶
Index ¶
- func Allowance(tokenContract *stader.Erc20TokenContractManager, owner common.Address, ...) (*big.Int, error)
- func Approve(tokenContract *stader.Erc20TokenContractManager, spender common.Address, ...) (common.Hash, error)
- func BalanceOf(tokenContract *stader.Erc20TokenContractManager, address common.Address, ...) (*big.Int, error)
- func EstimateApproveGas(tokenContract *stader.Erc20TokenContractManager, spender common.Address, ...) (stader.GasInfo, error)
- func EstimateTransferFromGas(tokenContract *stader.Erc20TokenContractManager, from, to common.Address, ...) (stader.GasInfo, error)
- func EstimateTransferGas(tokenContract *stader.Erc20TokenContractManager, to common.Address, ...) (stader.GasInfo, error)
- func GetEthBalance(client stader.ExecutionClient, address common.Address, opts *bind.CallOpts) (*big.Int, error)
- func TotalSupply(tokenContract *stader.Erc20TokenContractManager, opts *bind.CallOpts) (*big.Int, error)
- func Transfer(tokenContract *stader.Erc20TokenContractManager, to common.Address, ...) (common.Hash, error)
- func TransferFrom(tokenContract *stader.Erc20TokenContractManager, from, to common.Address, ...) (common.Hash, error)
- type Balances
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Allowance ¶
func Allowance(tokenContract *stader.Erc20TokenContractManager, owner common.Address, spender common.Address, opts *bind.CallOpts) (*big.Int, error)
Get a spender's Allowance for an address
func Approve ¶
func Approve(tokenContract *stader.Erc20TokenContractManager, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Approve a token Allowance for a spender
func BalanceOf ¶
func BalanceOf(tokenContract *stader.Erc20TokenContractManager, address common.Address, opts *bind.CallOpts) (*big.Int, error)
Get a token balance
func EstimateApproveGas ¶
func EstimateApproveGas(tokenContract *stader.Erc20TokenContractManager, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)
Estimate the gas of Approve
func EstimateTransferFromGas ¶
func EstimateTransferFromGas(tokenContract *stader.Erc20TokenContractManager, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)
Estimate the gas of TransferFrom
func EstimateTransferGas ¶
func EstimateTransferGas(tokenContract *stader.Erc20TokenContractManager, to common.Address, amount *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)
Estimate the gas of Transfer
func GetEthBalance ¶
func TotalSupply ¶
func TotalSupply(tokenContract *stader.Erc20TokenContractManager, opts *bind.CallOpts) (*big.Int, error)
Get a token's total supply
func Transfer ¶
func Transfer(tokenContract *stader.Erc20TokenContractManager, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Transfer tokens to an address
func TransferFrom ¶
func TransferFrom(tokenContract *stader.Erc20TokenContractManager, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Transfer tokens from a sender to an address
Types ¶
Click to show internal directories.
Click to hide internal directories.