ERC20Contract

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ERC20ContractABI = ERC20ContractMetaData.ABI

ERC20ContractABI is the input ABI used to generate the binding from. Deprecated: Use ERC20ContractMetaData.ABI instead.

View Source
var ERC20ContractMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

ERC20ContractMetaData contains all meta data concerning the ERC20Contract contract.

Functions

This section is empty.

Types

type ERC20Contract

type ERC20Contract struct {
	ERC20ContractCaller     // Read-only binding to the contract
	ERC20ContractTransactor // Write-only binding to the contract
	ERC20ContractFilterer   // Log filterer for contract events
}

ERC20Contract is an auto generated Go binding around an Ethereum contract.

func NewERC20Contract

func NewERC20Contract(address common.Address, backend bind.ContractBackend) (*ERC20Contract, error)

NewERC20Contract creates a new instance of ERC20Contract, bound to a specific deployed contract.

type ERC20ContractApproval

type ERC20ContractApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ERC20ContractApproval represents a Approval event raised by the ERC20Contract contract.

type ERC20ContractApprovalIterator

type ERC20ContractApprovalIterator struct {
	Event *ERC20ContractApproval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ERC20ContractApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC20Contract contract.

func (*ERC20ContractApprovalIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ERC20ContractApprovalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20ContractApprovalIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ERC20ContractCaller

type ERC20ContractCaller struct {
	// contains filtered or unexported fields
}

ERC20ContractCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewERC20ContractCaller

func NewERC20ContractCaller(address common.Address, caller bind.ContractCaller) (*ERC20ContractCaller, error)

NewERC20ContractCaller creates a new read-only instance of ERC20Contract, bound to a specific deployed contract.

func (*ERC20ContractCaller) Allowance

func (_ERC20Contract *ERC20ContractCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*ERC20ContractCaller) BalanceOf

func (_ERC20Contract *ERC20ContractCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*ERC20ContractCaller) Decimals

func (_ERC20Contract *ERC20ContractCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*ERC20ContractCaller) Name

func (_ERC20Contract *ERC20ContractCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*ERC20ContractCaller) Symbol

func (_ERC20Contract *ERC20ContractCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*ERC20ContractCaller) TotalSupply

func (_ERC20Contract *ERC20ContractCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type ERC20ContractCallerRaw

type ERC20ContractCallerRaw struct {
	Contract *ERC20ContractCaller // Generic read-only contract binding to access the raw methods on
}

ERC20ContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ERC20ContractCallerRaw) Call

func (_ERC20Contract *ERC20ContractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ERC20ContractCallerSession

type ERC20ContractCallerSession struct {
	Contract *ERC20ContractCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts        // Call options to use throughout this session
}

ERC20ContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ERC20ContractCallerSession) Allowance

func (_ERC20Contract *ERC20ContractCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*ERC20ContractCallerSession) BalanceOf

func (_ERC20Contract *ERC20ContractCallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*ERC20ContractCallerSession) Decimals

func (_ERC20Contract *ERC20ContractCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*ERC20ContractCallerSession) Name

func (_ERC20Contract *ERC20ContractCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*ERC20ContractCallerSession) Symbol

func (_ERC20Contract *ERC20ContractCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*ERC20ContractCallerSession) TotalSupply

func (_ERC20Contract *ERC20ContractCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type ERC20ContractFilterer

type ERC20ContractFilterer struct {
	// contains filtered or unexported fields
}

ERC20ContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewERC20ContractFilterer

func NewERC20ContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC20ContractFilterer, error)

NewERC20ContractFilterer creates a new log filterer instance of ERC20Contract, bound to a specific deployed contract.

func (*ERC20ContractFilterer) FilterApproval

func (_ERC20Contract *ERC20ContractFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ContractApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*ERC20ContractFilterer) FilterTransfer

func (_ERC20Contract *ERC20ContractFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20ContractTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*ERC20ContractFilterer) ParseApproval

func (_ERC20Contract *ERC20ContractFilterer) ParseApproval(log types.Log) (*ERC20ContractApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*ERC20ContractFilterer) ParseTransfer

func (_ERC20Contract *ERC20ContractFilterer) ParseTransfer(log types.Log) (*ERC20ContractTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*ERC20ContractFilterer) WatchApproval

func (_ERC20Contract *ERC20ContractFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20ContractApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*ERC20ContractFilterer) WatchTransfer

func (_ERC20Contract *ERC20ContractFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20ContractTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type ERC20ContractRaw

type ERC20ContractRaw struct {
	Contract *ERC20Contract // Generic contract binding to access the raw methods on
}

ERC20ContractRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ERC20ContractRaw) Call

func (_ERC20Contract *ERC20ContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ERC20ContractRaw) Transact

func (_ERC20Contract *ERC20ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ERC20ContractRaw) Transfer

func (_ERC20Contract *ERC20ContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20ContractSession

type ERC20ContractSession struct {
	Contract     *ERC20Contract    // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

ERC20ContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ERC20ContractSession) Allowance

func (_ERC20Contract *ERC20ContractSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*ERC20ContractSession) Approve

func (_ERC20Contract *ERC20ContractSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*ERC20ContractSession) BalanceOf

func (_ERC20Contract *ERC20ContractSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*ERC20ContractSession) Decimals

func (_ERC20Contract *ERC20ContractSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*ERC20ContractSession) DecreaseAllowance

func (_ERC20Contract *ERC20ContractSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*ERC20ContractSession) IncreaseAllowance

func (_ERC20Contract *ERC20ContractSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*ERC20ContractSession) Name

func (_ERC20Contract *ERC20ContractSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*ERC20ContractSession) Symbol

func (_ERC20Contract *ERC20ContractSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*ERC20ContractSession) TotalSupply

func (_ERC20Contract *ERC20ContractSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*ERC20ContractSession) Transfer

func (_ERC20Contract *ERC20ContractSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*ERC20ContractSession) TransferFrom

func (_ERC20Contract *ERC20ContractSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

type ERC20ContractTransactor

type ERC20ContractTransactor struct {
	// contains filtered or unexported fields
}

ERC20ContractTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewERC20ContractTransactor

func NewERC20ContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC20ContractTransactor, error)

NewERC20ContractTransactor creates a new write-only instance of ERC20Contract, bound to a specific deployed contract.

func (*ERC20ContractTransactor) Approve

func (_ERC20Contract *ERC20ContractTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*ERC20ContractTransactor) DecreaseAllowance

func (_ERC20Contract *ERC20ContractTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*ERC20ContractTransactor) IncreaseAllowance

func (_ERC20Contract *ERC20ContractTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*ERC20ContractTransactor) Transfer

func (_ERC20Contract *ERC20ContractTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*ERC20ContractTransactor) TransferFrom

func (_ERC20Contract *ERC20ContractTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

type ERC20ContractTransactorRaw

type ERC20ContractTransactorRaw struct {
	Contract *ERC20ContractTransactor // Generic write-only contract binding to access the raw methods on
}

ERC20ContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ERC20ContractTransactorRaw) Transact

func (_ERC20Contract *ERC20ContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ERC20ContractTransactorRaw) Transfer

func (_ERC20Contract *ERC20ContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20ContractTransactorSession

type ERC20ContractTransactorSession struct {
	Contract     *ERC20ContractTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts        // Transaction auth options to use throughout this session
}

ERC20ContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ERC20ContractTransactorSession) Approve

func (_ERC20Contract *ERC20ContractTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*ERC20ContractTransactorSession) DecreaseAllowance

func (_ERC20Contract *ERC20ContractTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*ERC20ContractTransactorSession) IncreaseAllowance

func (_ERC20Contract *ERC20ContractTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*ERC20ContractTransactorSession) Transfer

func (_ERC20Contract *ERC20ContractTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*ERC20ContractTransactorSession) TransferFrom

func (_ERC20Contract *ERC20ContractTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

type ERC20ContractTransfer

type ERC20ContractTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

ERC20ContractTransfer represents a Transfer event raised by the ERC20Contract contract.

type ERC20ContractTransferIterator

type ERC20ContractTransferIterator struct {
	Event *ERC20ContractTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ERC20ContractTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20Contract contract.

func (*ERC20ContractTransferIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ERC20ContractTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20ContractTransferIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL