Versions in this module Expand all Collapse all v0 v0.0.1 Jun 14, 2024 Changes in this version + var ERC20ABI = ERC20MetaData.ABI + var ERC20Bin = ERC20MetaData.Bin + var ERC20MetaData = &bind.MetaData + var ErrNoRPCURL error = errors.New(...) + func CreateAllowanceCommand() *cobra.Command + func CreateApproveCommand() *cobra.Command + func CreateBalanceOfCommand() *cobra.Command + func CreateDecimalsCommand() *cobra.Command + func CreateERC20Command() *cobra.Command + func CreateERC20DeploymentCommand() *cobra.Command + func CreateNameCommand() *cobra.Command + func CreateSymbolCommand() *cobra.Command + func CreateTotalSupplyCommand() *cobra.Command + func CreateTransferCommand() *cobra.Command + func CreateTransferFromCommand() *cobra.Command + func KeyFromFile(keystoreFile string, password string) (*keystore.Key, error) + func NewChainContext(timeout uint) (context.Context, context.CancelFunc) + func NewClient(rpcURL string) (*ethclient.Client, error) + func SetCallParametersFromArgs(opts *bind.CallOpts, pending bool, fromAddress, blockNumber string) + func SetTransactionParametersFromArgs(opts *bind.TransactOpts, ...) + func UnlockKeystore(keystoreData []byte, password string) (*keystore.Key, error) + type ERC20 struct + func DeployERC20(auth *bind.TransactOpts, backend bind.ContractBackend, _totalSupply *big.Int) (common.Address, *types.Transaction, *ERC20, error) + func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error) + type ERC20Approval struct + Owner common.Address + Raw types.Log + Spender common.Address + Value *big.Int + type ERC20ApprovalIterator struct + Event *ERC20Approval + func (it *ERC20ApprovalIterator) Close() error + func (it *ERC20ApprovalIterator) Error() error + func (it *ERC20ApprovalIterator) Next() bool + type ERC20Caller struct + func NewERC20Caller(address common.Address, caller bind.ContractCaller) (*ERC20Caller, error) + func (_ERC20 *ERC20Caller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error) + func (_ERC20 *ERC20Caller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) + func (_ERC20 *ERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error) + func (_ERC20 *ERC20Caller) Name(opts *bind.CallOpts) (string, error) + func (_ERC20 *ERC20Caller) Symbol(opts *bind.CallOpts) (string, error) + func (_ERC20 *ERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) + type ERC20CallerRaw struct + Contract *ERC20Caller + func (_ERC20 *ERC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type ERC20CallerSession struct + CallOpts bind.CallOpts + Contract *ERC20Caller + func (_ERC20 *ERC20CallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error) + func (_ERC20 *ERC20CallerSession) BalanceOf(arg0 common.Address) (*big.Int, error) + func (_ERC20 *ERC20CallerSession) Decimals() (uint8, error) + func (_ERC20 *ERC20CallerSession) Name() (string, error) + func (_ERC20 *ERC20CallerSession) Symbol() (string, error) + func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error) + type ERC20Filterer struct + func NewERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC20Filterer, error) + func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error) + func (_ERC20 *ERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20TransferIterator, error) + func (_ERC20 *ERC20Filterer) ParseApproval(log types.Log) (*ERC20Approval, error) + func (_ERC20 *ERC20Filterer) ParseTransfer(log types.Log) (*ERC20Transfer, error) + func (_ERC20 *ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20Approval, owner []common.Address, ...) (event.Subscription, error) + func (_ERC20 *ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20Transfer, from []common.Address, ...) (event.Subscription, error) + type ERC20Raw struct + Contract *ERC20 + func (_ERC20 *ERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_ERC20 *ERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_ERC20 *ERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ERC20Session struct + CallOpts bind.CallOpts + Contract *ERC20 + TransactOpts bind.TransactOpts + func (_ERC20 *ERC20Session) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error) + func (_ERC20 *ERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) + func (_ERC20 *ERC20Session) BalanceOf(arg0 common.Address) (*big.Int, error) + func (_ERC20 *ERC20Session) Decimals() (uint8, error) + func (_ERC20 *ERC20Session) Name() (string, error) + func (_ERC20 *ERC20Session) Symbol() (string, error) + func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error) + func (_ERC20 *ERC20Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) + func (_ERC20 *ERC20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) + type ERC20Transactor struct + func NewERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC20Transactor, error) + func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) + func (_ERC20 *ERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) + func (_ERC20 *ERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error) + type ERC20TransactorRaw struct + Contract *ERC20Transactor + func (_ERC20 *ERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_ERC20 *ERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ERC20TransactorSession struct + Contract *ERC20Transactor + TransactOpts bind.TransactOpts + func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) + func (_ERC20 *ERC20TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) + func (_ERC20 *ERC20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) + type ERC20Transfer struct + From common.Address + Raw types.Log + To common.Address + Value *big.Int + type ERC20TransferIterator struct + Event *ERC20Transfer + func (it *ERC20TransferIterator) Close() error + func (it *ERC20TransferIterator) Error() error + func (it *ERC20TransferIterator) Next() bool