Documentation ¶
Index ¶
- Constants
- func GetErc20Abi() (*abi.ABI, error)
- type Call
- type Caller
- type Erc20
- type Erc20Approval
- type Erc20ApprovalIterator
- type Erc20Caller
- func (_Erc20 *Erc20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
- func (_Erc20 *Erc20Caller) BalanceOf(opts *bind.CallOpts, account 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) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Erc20 *Erc20Caller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Erc20 *Erc20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type Erc20CallerRaw
- type Erc20CallerSession
- func (_Erc20 *Erc20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_Erc20 *Erc20CallerSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_Erc20 *Erc20CallerSession) Decimals() (uint8, error)
- func (_Erc20 *Erc20CallerSession) Name() (string, error)
- func (_Erc20 *Erc20CallerSession) Owner() (common.Address, error)
- func (_Erc20 *Erc20CallerSession) Symbol() (string, error)
- func (_Erc20 *Erc20CallerSession) TotalSupply() (*big.Int, error)
- type Erc20Filterer
- func (_Erc20 *Erc20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Erc20ApprovalIterator, error)
- func (_Erc20 *Erc20Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*Erc20OwnershipTransferredIterator, 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) ParseOwnershipTransferred(log types.Log) (*Erc20OwnershipTransferred, 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) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Erc20OwnershipTransferred, ...) (event.Subscription, error)
- func (_Erc20 *Erc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Erc20Transfer, from []common.Address, ...) (event.Subscription, error)
- type Erc20OwnershipTransferred
- type Erc20OwnershipTransferredIterator
- type Erc20Raw
- 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
- func (_Erc20 *Erc20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_Erc20 *Erc20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Session) BalanceOf(account common.Address) (*big.Int, error)
- func (_Erc20 *Erc20Session) Decimals() (uint8, error)
- func (_Erc20 *Erc20Session) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Session) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Session) Mint(_to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Session) Name() (string, error)
- func (_Erc20 *Erc20Session) Owner() (common.Address, error)
- func (_Erc20 *Erc20Session) RenounceOwnership() (*types.Transaction, error)
- func (_Erc20 *Erc20Session) Symbol() (string, error)
- func (_Erc20 *Erc20Session) TotalSupply() (*big.Int, error)
- func (_Erc20 *Erc20Session) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Session) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Session) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- type Erc20Transactor
- func (_Erc20 *Erc20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Transactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Transactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Transactor) Mint(opts *bind.TransactOpts, _to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Erc20 *Erc20Transactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Transactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, ...) (*types.Transaction, error)
- func (_Erc20 *Erc20Transactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- type Erc20TransactorRaw
- type Erc20TransactorSession
- func (_Erc20 *Erc20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20TransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20TransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20TransactorSession) Mint(_to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20TransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Erc20 *Erc20TransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20TransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20TransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- type Erc20Transfer
- type Erc20TransferIterator
- type MultiCall2
- type MultiCall2Caller
- func (_MultiCall2 *MultiCall2Caller) GetBlockHash(opts *bind.CallOpts, blockNumber *big.Int) ([32]byte, error)
- func (_MultiCall2 *MultiCall2Caller) GetBlockNumber(opts *bind.CallOpts) (*big.Int, error)
- func (_MultiCall2 *MultiCall2Caller) GetCurrentBlockCoinbase(opts *bind.CallOpts) (common.Address, error)
- func (_MultiCall2 *MultiCall2Caller) GetCurrentBlockDifficulty(opts *bind.CallOpts) (*big.Int, error)
- func (_MultiCall2 *MultiCall2Caller) GetCurrentBlockGasLimit(opts *bind.CallOpts) (*big.Int, error)
- func (_MultiCall2 *MultiCall2Caller) GetCurrentBlockTimestamp(opts *bind.CallOpts) (*big.Int, error)
- func (_MultiCall2 *MultiCall2Caller) GetEthBalance(opts *bind.CallOpts, addr common.Address) (*big.Int, error)
- func (_MultiCall2 *MultiCall2Caller) GetLastBlockHash(opts *bind.CallOpts) ([32]byte, error)
- type MultiCall2CallerRaw
- type MultiCall2CallerSession
- func (_MultiCall2 *MultiCall2CallerSession) GetBlockHash(blockNumber *big.Int) ([32]byte, error)
- func (_MultiCall2 *MultiCall2CallerSession) GetBlockNumber() (*big.Int, error)
- func (_MultiCall2 *MultiCall2CallerSession) GetCurrentBlockCoinbase() (common.Address, error)
- func (_MultiCall2 *MultiCall2CallerSession) GetCurrentBlockDifficulty() (*big.Int, error)
- func (_MultiCall2 *MultiCall2CallerSession) GetCurrentBlockGasLimit() (*big.Int, error)
- func (_MultiCall2 *MultiCall2CallerSession) GetCurrentBlockTimestamp() (*big.Int, error)
- func (_MultiCall2 *MultiCall2CallerSession) GetEthBalance(addr common.Address) (*big.Int, error)
- func (_MultiCall2 *MultiCall2CallerSession) GetLastBlockHash() ([32]byte, error)
- type MultiCall2Filterer
- type MultiCall2Raw
- func (_MultiCall2 *MultiCall2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_MultiCall2 *MultiCall2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_MultiCall2 *MultiCall2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type MultiCall2Session
- func (_MultiCall2 *MultiCall2Session) Aggregate(calls []Multicall2Call) (*types.Transaction, error)
- func (_MultiCall2 *MultiCall2Session) BlockAndAggregate(calls []Multicall2Call) (*types.Transaction, error)
- func (_MultiCall2 *MultiCall2Session) GetBlockHash(blockNumber *big.Int) ([32]byte, error)
- func (_MultiCall2 *MultiCall2Session) GetBlockNumber() (*big.Int, error)
- func (_MultiCall2 *MultiCall2Session) GetCurrentBlockCoinbase() (common.Address, error)
- func (_MultiCall2 *MultiCall2Session) GetCurrentBlockDifficulty() (*big.Int, error)
- func (_MultiCall2 *MultiCall2Session) GetCurrentBlockGasLimit() (*big.Int, error)
- func (_MultiCall2 *MultiCall2Session) GetCurrentBlockTimestamp() (*big.Int, error)
- func (_MultiCall2 *MultiCall2Session) GetEthBalance(addr common.Address) (*big.Int, error)
- func (_MultiCall2 *MultiCall2Session) GetLastBlockHash() ([32]byte, error)
- func (_MultiCall2 *MultiCall2Session) TryAggregate(requireSuccess bool, calls []Multicall2Call) (*types.Transaction, error)
- func (_MultiCall2 *MultiCall2Session) TryBlockAndAggregate(requireSuccess bool, calls []Multicall2Call) (*types.Transaction, error)
- type MultiCall2Transactor
- func (_MultiCall2 *MultiCall2Transactor) Aggregate(opts *bind.TransactOpts, calls []Multicall2Call) (*types.Transaction, error)
- func (_MultiCall2 *MultiCall2Transactor) BlockAndAggregate(opts *bind.TransactOpts, calls []Multicall2Call) (*types.Transaction, error)
- func (_MultiCall2 *MultiCall2Transactor) TryAggregate(opts *bind.TransactOpts, requireSuccess bool, calls []Multicall2Call) (*types.Transaction, error)
- func (_MultiCall2 *MultiCall2Transactor) TryBlockAndAggregate(opts *bind.TransactOpts, requireSuccess bool, calls []Multicall2Call) (*types.Transaction, error)
- type MultiCall2TransactorRaw
- type MultiCall2TransactorSession
- func (_MultiCall2 *MultiCall2TransactorSession) Aggregate(calls []Multicall2Call) (*types.Transaction, error)
- func (_MultiCall2 *MultiCall2TransactorSession) BlockAndAggregate(calls []Multicall2Call) (*types.Transaction, error)
- func (_MultiCall2 *MultiCall2TransactorSession) TryAggregate(requireSuccess bool, calls []Multicall2Call) (*types.Transaction, error)
- func (_MultiCall2 *MultiCall2TransactorSession) TryBlockAndAggregate(requireSuccess bool, calls []Multicall2Call) (*types.Transaction, error)
- type Multicall2Call
- type Multicall2Result
- type Response
Constants ¶
const BscChainId = 56
const Erc20ABI = "" /* 4575-byte string literal not displayed */
Erc20ABI is the input ABI used to generate the binding from.
const EthChainId = 1
const MultiCall2ABI = "" /* 4452-byte string literal not displayed */
MultiCall2ABI is the input ABI used to generate the binding from.
const PolygonChainId = 137
Variables ¶
This section is empty.
Functions ¶
func GetErc20Abi ¶
Types ¶
type Call ¶
type Call struct { Target common.Address `json:"target"` CallData []byte `json:"callData"` UserData any `json:"userData"` }
func (*Call) GetMultiCall ¶
func (call *Call) GetMultiCall() *Multicall2Call
type Caller ¶
type Caller struct { Client *ethclient.Client ContractAddress *common.Address Abi *abi.ABI Signer *bind.TransactOpts BlockNumber *big.Int }
type Erc20 ¶
type Erc20 struct { Erc20Caller // Read-only binding to the contract Erc20Transactor // Write-only binding to the contract Erc20Filterer // Log filterer for contract events }
Erc20 is an auto generated Go binding around an Ethereum contract.
type Erc20Approval ¶
type Erc20Approval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
Erc20Approval represents a Approval event raised by the Erc20 contract.
type Erc20ApprovalIterator ¶
type Erc20ApprovalIterator struct { Event *Erc20Approval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Erc20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Erc20 contract.
func (*Erc20ApprovalIterator) Close ¶
func (it *Erc20ApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Erc20ApprovalIterator) Error ¶
func (it *Erc20ApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Erc20ApprovalIterator) Next ¶
func (it *Erc20ApprovalIterator) Next() bool
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 Erc20Caller ¶
type Erc20Caller struct {
// contains filtered or unexported fields
}
Erc20Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewErc20Caller ¶
func NewErc20Caller(address common.Address, caller bind.ContractCaller) (*Erc20Caller, error)
NewErc20Caller creates a new read-only instance of Erc20, bound to a specific deployed contract.
func (*Erc20Caller) Allowance ¶
func (_Erc20 *Erc20Caller) 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 (*Erc20Caller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*Erc20Caller) Decimals ¶
func (_Erc20 *Erc20Caller) 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 (*Erc20Caller) Name ¶
func (_Erc20 *Erc20Caller) 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 (*Erc20Caller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*Erc20Caller) Symbol ¶
func (_Erc20 *Erc20Caller) 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 (*Erc20Caller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type Erc20CallerRaw ¶
type Erc20CallerRaw struct {
Contract *Erc20Caller // Generic read-only contract binding to access the raw methods on
}
Erc20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*Erc20CallerRaw) Call ¶
func (_Erc20 *Erc20CallerRaw) 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 Erc20CallerSession ¶
type Erc20CallerSession struct { Contract *Erc20Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
Erc20CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*Erc20CallerSession) Allowance ¶
func (_Erc20 *Erc20CallerSession) 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 (*Erc20CallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*Erc20CallerSession) Decimals ¶
func (_Erc20 *Erc20CallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*Erc20CallerSession) Name ¶
func (_Erc20 *Erc20CallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*Erc20CallerSession) Owner ¶
func (_Erc20 *Erc20CallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*Erc20CallerSession) Symbol ¶
func (_Erc20 *Erc20CallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*Erc20CallerSession) TotalSupply ¶
func (_Erc20 *Erc20CallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type Erc20Filterer ¶
type Erc20Filterer struct {
// contains filtered or unexported fields
}
Erc20Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewErc20Filterer ¶
func NewErc20Filterer(address common.Address, filterer bind.ContractFilterer) (*Erc20Filterer, error)
NewErc20Filterer creates a new log filterer instance of Erc20, bound to a specific deployed contract.
func (*Erc20Filterer) FilterApproval ¶
func (_Erc20 *Erc20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Erc20ApprovalIterator, 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 (*Erc20Filterer) FilterOwnershipTransferred ¶
func (_Erc20 *Erc20Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Erc20OwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*Erc20Filterer) FilterTransfer ¶
func (_Erc20 *Erc20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Erc20TransferIterator, 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 (*Erc20Filterer) ParseApproval ¶
func (_Erc20 *Erc20Filterer) ParseApproval(log types.Log) (*Erc20Approval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*Erc20Filterer) ParseOwnershipTransferred ¶
func (_Erc20 *Erc20Filterer) ParseOwnershipTransferred(log types.Log) (*Erc20OwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*Erc20Filterer) ParseTransfer ¶
func (_Erc20 *Erc20Filterer) ParseTransfer(log types.Log) (*Erc20Transfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*Erc20Filterer) WatchApproval ¶
func (_Erc20 *Erc20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Erc20Approval, 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 (*Erc20Filterer) WatchOwnershipTransferred ¶
func (_Erc20 *Erc20Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Erc20OwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*Erc20Filterer) WatchTransfer ¶
func (_Erc20 *Erc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Erc20Transfer, 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 Erc20OwnershipTransferred ¶
type Erc20OwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
Erc20OwnershipTransferred represents a OwnershipTransferred event raised by the Erc20 contract.
type Erc20OwnershipTransferredIterator ¶
type Erc20OwnershipTransferredIterator struct { Event *Erc20OwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Erc20OwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Erc20 contract.
func (*Erc20OwnershipTransferredIterator) Close ¶
func (it *Erc20OwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Erc20OwnershipTransferredIterator) Error ¶
func (it *Erc20OwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Erc20OwnershipTransferredIterator) Next ¶
func (it *Erc20OwnershipTransferredIterator) Next() bool
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 Erc20Raw ¶
type Erc20Raw struct {
Contract *Erc20 // Generic contract binding to access the raw methods on
}
Erc20Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*Erc20Raw) Call ¶
func (_Erc20 *Erc20Raw) 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 (*Erc20Raw) Transact ¶
func (_Erc20 *Erc20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Erc20Raw) Transfer ¶
func (_Erc20 *Erc20Raw) 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 Erc20Session ¶
type Erc20Session struct { Contract *Erc20 // 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 }
Erc20Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*Erc20Session) Allowance ¶
func (_Erc20 *Erc20Session) 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 (*Erc20Session) Approve ¶
func (_Erc20 *Erc20Session) 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 (*Erc20Session) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*Erc20Session) Decimals ¶
func (_Erc20 *Erc20Session) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*Erc20Session) DecreaseAllowance ¶
func (_Erc20 *Erc20Session) 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 (*Erc20Session) IncreaseAllowance ¶
func (_Erc20 *Erc20Session) 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 (*Erc20Session) Mint ¶
func (_Erc20 *Erc20Session) Mint(_to common.Address, _amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address _to, uint256 _amount) returns()
func (*Erc20Session) Name ¶
func (_Erc20 *Erc20Session) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*Erc20Session) Owner ¶
func (_Erc20 *Erc20Session) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*Erc20Session) RenounceOwnership ¶
func (_Erc20 *Erc20Session) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*Erc20Session) Symbol ¶
func (_Erc20 *Erc20Session) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*Erc20Session) TotalSupply ¶
func (_Erc20 *Erc20Session) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*Erc20Session) Transfer ¶
func (_Erc20 *Erc20Session) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address recipient, uint256 amount) returns(bool)
func (*Erc20Session) TransferFrom ¶
func (_Erc20 *Erc20Session) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
func (*Erc20Session) TransferOwnership ¶
func (_Erc20 *Erc20Session) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type Erc20Transactor ¶
type Erc20Transactor struct {
// contains filtered or unexported fields
}
Erc20Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewErc20Transactor ¶
func NewErc20Transactor(address common.Address, transactor bind.ContractTransactor) (*Erc20Transactor, error)
NewErc20Transactor creates a new write-only instance of Erc20, bound to a specific deployed contract.
func (*Erc20Transactor) Approve ¶
func (_Erc20 *Erc20Transactor) 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 (*Erc20Transactor) DecreaseAllowance ¶
func (_Erc20 *Erc20Transactor) 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 (*Erc20Transactor) IncreaseAllowance ¶
func (_Erc20 *Erc20Transactor) 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 (*Erc20Transactor) Mint ¶
func (_Erc20 *Erc20Transactor) Mint(opts *bind.TransactOpts, _to common.Address, _amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address _to, uint256 _amount) returns()
func (*Erc20Transactor) RenounceOwnership ¶
func (_Erc20 *Erc20Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*Erc20Transactor) Transfer ¶
func (_Erc20 *Erc20Transactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address recipient, uint256 amount) returns(bool)
func (*Erc20Transactor) TransferFrom ¶
func (_Erc20 *Erc20Transactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
func (*Erc20Transactor) TransferOwnership ¶
func (_Erc20 *Erc20Transactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type Erc20TransactorRaw ¶
type Erc20TransactorRaw struct {
Contract *Erc20Transactor // Generic write-only contract binding to access the raw methods on
}
Erc20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*Erc20TransactorRaw) Transact ¶
func (_Erc20 *Erc20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Erc20TransactorRaw) Transfer ¶
func (_Erc20 *Erc20TransactorRaw) 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 Erc20TransactorSession ¶
type Erc20TransactorSession struct { Contract *Erc20Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
Erc20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*Erc20TransactorSession) Approve ¶
func (_Erc20 *Erc20TransactorSession) 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 (*Erc20TransactorSession) DecreaseAllowance ¶
func (_Erc20 *Erc20TransactorSession) 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 (*Erc20TransactorSession) IncreaseAllowance ¶
func (_Erc20 *Erc20TransactorSession) 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 (*Erc20TransactorSession) Mint ¶
func (_Erc20 *Erc20TransactorSession) Mint(_to common.Address, _amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address _to, uint256 _amount) returns()
func (*Erc20TransactorSession) RenounceOwnership ¶
func (_Erc20 *Erc20TransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*Erc20TransactorSession) Transfer ¶
func (_Erc20 *Erc20TransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address recipient, uint256 amount) returns(bool)
func (*Erc20TransactorSession) TransferFrom ¶
func (_Erc20 *Erc20TransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
func (*Erc20TransactorSession) TransferOwnership ¶
func (_Erc20 *Erc20TransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type Erc20Transfer ¶
type Erc20Transfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
Erc20Transfer represents a Transfer event raised by the Erc20 contract.
type Erc20TransferIterator ¶
type Erc20TransferIterator struct { Event *Erc20Transfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Erc20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Erc20 contract.
func (*Erc20TransferIterator) Close ¶
func (it *Erc20TransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Erc20TransferIterator) Error ¶
func (it *Erc20TransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Erc20TransferIterator) Next ¶
func (it *Erc20TransferIterator) Next() bool
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 MultiCall2 ¶
type MultiCall2 struct { MultiCall2Caller // Read-only binding to the contract MultiCall2Transactor // Write-only binding to the contract MultiCall2Filterer // Log filterer for contract events }
MultiCall2 is an auto generated Go binding around an Ethereum contract.
func NewMultiCall2 ¶
func NewMultiCall2(address common.Address, backend bind.ContractBackend) (*MultiCall2, error)
NewMultiCall2 creates a new instance of MultiCall2, bound to a specific deployed contract.
type MultiCall2Caller ¶
type MultiCall2Caller struct {
// contains filtered or unexported fields
}
MultiCall2Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewMultiCall2Caller ¶
func NewMultiCall2Caller(address common.Address, caller bind.ContractCaller) (*MultiCall2Caller, error)
NewMultiCall2Caller creates a new read-only instance of MultiCall2, bound to a specific deployed contract.
func (*MultiCall2Caller) GetBlockHash ¶
func (_MultiCall2 *MultiCall2Caller) GetBlockHash(opts *bind.CallOpts, blockNumber *big.Int) ([32]byte, error)
GetBlockHash is a free data retrieval call binding the contract method 0xee82ac5e.
Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash)
func (*MultiCall2Caller) GetBlockNumber ¶
GetBlockNumber is a free data retrieval call binding the contract method 0x42cbb15c.
Solidity: function getBlockNumber() view returns(uint256 blockNumber)
func (*MultiCall2Caller) GetCurrentBlockCoinbase ¶
func (_MultiCall2 *MultiCall2Caller) GetCurrentBlockCoinbase(opts *bind.CallOpts) (common.Address, error)
GetCurrentBlockCoinbase is a free data retrieval call binding the contract method 0xa8b0574e.
Solidity: function getCurrentBlockCoinbase() view returns(address coinbase)
func (*MultiCall2Caller) GetCurrentBlockDifficulty ¶
func (_MultiCall2 *MultiCall2Caller) GetCurrentBlockDifficulty(opts *bind.CallOpts) (*big.Int, error)
GetCurrentBlockDifficulty is a free data retrieval call binding the contract method 0x72425d9d.
Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty)
func (*MultiCall2Caller) GetCurrentBlockGasLimit ¶
GetCurrentBlockGasLimit is a free data retrieval call binding the contract method 0x86d516e8.
Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit)
func (*MultiCall2Caller) GetCurrentBlockTimestamp ¶
func (_MultiCall2 *MultiCall2Caller) GetCurrentBlockTimestamp(opts *bind.CallOpts) (*big.Int, error)
GetCurrentBlockTimestamp is a free data retrieval call binding the contract method 0x0f28c97d.
Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp)
func (*MultiCall2Caller) GetEthBalance ¶
func (_MultiCall2 *MultiCall2Caller) GetEthBalance(opts *bind.CallOpts, addr common.Address) (*big.Int, error)
GetEthBalance is a free data retrieval call binding the contract method 0x4d2301cc.
Solidity: function getEthBalance(address addr) view returns(uint256 balance)
func (*MultiCall2Caller) GetLastBlockHash ¶
func (_MultiCall2 *MultiCall2Caller) GetLastBlockHash(opts *bind.CallOpts) ([32]byte, error)
GetLastBlockHash is a free data retrieval call binding the contract method 0x27e86d6e.
Solidity: function getLastBlockHash() view returns(bytes32 blockHash)
type MultiCall2CallerRaw ¶
type MultiCall2CallerRaw struct {
Contract *MultiCall2Caller // Generic read-only contract binding to access the raw methods on
}
MultiCall2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*MultiCall2CallerRaw) Call ¶
func (_MultiCall2 *MultiCall2CallerRaw) 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 MultiCall2CallerSession ¶
type MultiCall2CallerSession struct { Contract *MultiCall2Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
MultiCall2CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*MultiCall2CallerSession) GetBlockHash ¶
func (_MultiCall2 *MultiCall2CallerSession) GetBlockHash(blockNumber *big.Int) ([32]byte, error)
GetBlockHash is a free data retrieval call binding the contract method 0xee82ac5e.
Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash)
func (*MultiCall2CallerSession) GetBlockNumber ¶
func (_MultiCall2 *MultiCall2CallerSession) GetBlockNumber() (*big.Int, error)
GetBlockNumber is a free data retrieval call binding the contract method 0x42cbb15c.
Solidity: function getBlockNumber() view returns(uint256 blockNumber)
func (*MultiCall2CallerSession) GetCurrentBlockCoinbase ¶
func (_MultiCall2 *MultiCall2CallerSession) GetCurrentBlockCoinbase() (common.Address, error)
GetCurrentBlockCoinbase is a free data retrieval call binding the contract method 0xa8b0574e.
Solidity: function getCurrentBlockCoinbase() view returns(address coinbase)
func (*MultiCall2CallerSession) GetCurrentBlockDifficulty ¶
func (_MultiCall2 *MultiCall2CallerSession) GetCurrentBlockDifficulty() (*big.Int, error)
GetCurrentBlockDifficulty is a free data retrieval call binding the contract method 0x72425d9d.
Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty)
func (*MultiCall2CallerSession) GetCurrentBlockGasLimit ¶
func (_MultiCall2 *MultiCall2CallerSession) GetCurrentBlockGasLimit() (*big.Int, error)
GetCurrentBlockGasLimit is a free data retrieval call binding the contract method 0x86d516e8.
Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit)
func (*MultiCall2CallerSession) GetCurrentBlockTimestamp ¶
func (_MultiCall2 *MultiCall2CallerSession) GetCurrentBlockTimestamp() (*big.Int, error)
GetCurrentBlockTimestamp is a free data retrieval call binding the contract method 0x0f28c97d.
Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp)
func (*MultiCall2CallerSession) GetEthBalance ¶
GetEthBalance is a free data retrieval call binding the contract method 0x4d2301cc.
Solidity: function getEthBalance(address addr) view returns(uint256 balance)
func (*MultiCall2CallerSession) GetLastBlockHash ¶
func (_MultiCall2 *MultiCall2CallerSession) GetLastBlockHash() ([32]byte, error)
GetLastBlockHash is a free data retrieval call binding the contract method 0x27e86d6e.
Solidity: function getLastBlockHash() view returns(bytes32 blockHash)
type MultiCall2Filterer ¶
type MultiCall2Filterer struct {
// contains filtered or unexported fields
}
MultiCall2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewMultiCall2Filterer ¶
func NewMultiCall2Filterer(address common.Address, filterer bind.ContractFilterer) (*MultiCall2Filterer, error)
NewMultiCall2Filterer creates a new log filterer instance of MultiCall2, bound to a specific deployed contract.
type MultiCall2Raw ¶
type MultiCall2Raw struct {
Contract *MultiCall2 // Generic contract binding to access the raw methods on
}
MultiCall2Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*MultiCall2Raw) Call ¶
func (_MultiCall2 *MultiCall2Raw) 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 (*MultiCall2Raw) Transact ¶
func (_MultiCall2 *MultiCall2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MultiCall2Raw) Transfer ¶
func (_MultiCall2 *MultiCall2Raw) 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 MultiCall2Session ¶
type MultiCall2Session struct { Contract *MultiCall2 // 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 }
MultiCall2Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*MultiCall2Session) Aggregate ¶
func (_MultiCall2 *MultiCall2Session) Aggregate(calls []Multicall2Call) (*types.Transaction, error)
Aggregate is a paid mutator transaction binding the contract method 0x252dba42.
Solidity: function aggregate((address,bytes)[] calls) returns(uint256 blockNumber, bytes[] returnData)
func (*MultiCall2Session) BlockAndAggregate ¶
func (_MultiCall2 *MultiCall2Session) BlockAndAggregate(calls []Multicall2Call) (*types.Transaction, error)
BlockAndAggregate is a paid mutator transaction binding the contract method 0xc3077fa9.
Solidity: function blockAndAggregate((address,bytes)[] calls) returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)
func (*MultiCall2Session) GetBlockHash ¶
func (_MultiCall2 *MultiCall2Session) GetBlockHash(blockNumber *big.Int) ([32]byte, error)
GetBlockHash is a free data retrieval call binding the contract method 0xee82ac5e.
Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash)
func (*MultiCall2Session) GetBlockNumber ¶
func (_MultiCall2 *MultiCall2Session) GetBlockNumber() (*big.Int, error)
GetBlockNumber is a free data retrieval call binding the contract method 0x42cbb15c.
Solidity: function getBlockNumber() view returns(uint256 blockNumber)
func (*MultiCall2Session) GetCurrentBlockCoinbase ¶
func (_MultiCall2 *MultiCall2Session) GetCurrentBlockCoinbase() (common.Address, error)
GetCurrentBlockCoinbase is a free data retrieval call binding the contract method 0xa8b0574e.
Solidity: function getCurrentBlockCoinbase() view returns(address coinbase)
func (*MultiCall2Session) GetCurrentBlockDifficulty ¶
func (_MultiCall2 *MultiCall2Session) GetCurrentBlockDifficulty() (*big.Int, error)
GetCurrentBlockDifficulty is a free data retrieval call binding the contract method 0x72425d9d.
Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty)
func (*MultiCall2Session) GetCurrentBlockGasLimit ¶
func (_MultiCall2 *MultiCall2Session) GetCurrentBlockGasLimit() (*big.Int, error)
GetCurrentBlockGasLimit is a free data retrieval call binding the contract method 0x86d516e8.
Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit)
func (*MultiCall2Session) GetCurrentBlockTimestamp ¶
func (_MultiCall2 *MultiCall2Session) GetCurrentBlockTimestamp() (*big.Int, error)
GetCurrentBlockTimestamp is a free data retrieval call binding the contract method 0x0f28c97d.
Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp)
func (*MultiCall2Session) GetEthBalance ¶
GetEthBalance is a free data retrieval call binding the contract method 0x4d2301cc.
Solidity: function getEthBalance(address addr) view returns(uint256 balance)
func (*MultiCall2Session) GetLastBlockHash ¶
func (_MultiCall2 *MultiCall2Session) GetLastBlockHash() ([32]byte, error)
GetLastBlockHash is a free data retrieval call binding the contract method 0x27e86d6e.
Solidity: function getLastBlockHash() view returns(bytes32 blockHash)
func (*MultiCall2Session) TryAggregate ¶
func (_MultiCall2 *MultiCall2Session) TryAggregate(requireSuccess bool, calls []Multicall2Call) (*types.Transaction, error)
TryAggregate is a paid mutator transaction binding the contract method 0xbce38bd7.
Solidity: function tryAggregate(bool requireSuccess, (address,bytes)[] calls) returns((bool,bytes)[] returnData)
func (*MultiCall2Session) TryBlockAndAggregate ¶
func (_MultiCall2 *MultiCall2Session) TryBlockAndAggregate(requireSuccess bool, calls []Multicall2Call) (*types.Transaction, error)
TryBlockAndAggregate is a paid mutator transaction binding the contract method 0x399542e9.
Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)
type MultiCall2Transactor ¶
type MultiCall2Transactor struct {
// contains filtered or unexported fields
}
MultiCall2Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewMultiCall2Transactor ¶
func NewMultiCall2Transactor(address common.Address, transactor bind.ContractTransactor) (*MultiCall2Transactor, error)
NewMultiCall2Transactor creates a new write-only instance of MultiCall2, bound to a specific deployed contract.
func (*MultiCall2Transactor) Aggregate ¶
func (_MultiCall2 *MultiCall2Transactor) Aggregate(opts *bind.TransactOpts, calls []Multicall2Call) (*types.Transaction, error)
Aggregate is a paid mutator transaction binding the contract method 0x252dba42.
Solidity: function aggregate((address,bytes)[] calls) returns(uint256 blockNumber, bytes[] returnData)
func (*MultiCall2Transactor) BlockAndAggregate ¶
func (_MultiCall2 *MultiCall2Transactor) BlockAndAggregate(opts *bind.TransactOpts, calls []Multicall2Call) (*types.Transaction, error)
BlockAndAggregate is a paid mutator transaction binding the contract method 0xc3077fa9.
Solidity: function blockAndAggregate((address,bytes)[] calls) returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)
func (*MultiCall2Transactor) TryAggregate ¶
func (_MultiCall2 *MultiCall2Transactor) TryAggregate(opts *bind.TransactOpts, requireSuccess bool, calls []Multicall2Call) (*types.Transaction, error)
TryAggregate is a paid mutator transaction binding the contract method 0xbce38bd7.
Solidity: function tryAggregate(bool requireSuccess, (address,bytes)[] calls) returns((bool,bytes)[] returnData)
func (*MultiCall2Transactor) TryBlockAndAggregate ¶
func (_MultiCall2 *MultiCall2Transactor) TryBlockAndAggregate(opts *bind.TransactOpts, requireSuccess bool, calls []Multicall2Call) (*types.Transaction, error)
TryBlockAndAggregate is a paid mutator transaction binding the contract method 0x399542e9.
Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)
type MultiCall2TransactorRaw ¶
type MultiCall2TransactorRaw struct {
Contract *MultiCall2Transactor // Generic write-only contract binding to access the raw methods on
}
MultiCall2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*MultiCall2TransactorRaw) Transact ¶
func (_MultiCall2 *MultiCall2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MultiCall2TransactorRaw) Transfer ¶
func (_MultiCall2 *MultiCall2TransactorRaw) 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 MultiCall2TransactorSession ¶
type MultiCall2TransactorSession struct { Contract *MultiCall2Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MultiCall2TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*MultiCall2TransactorSession) Aggregate ¶
func (_MultiCall2 *MultiCall2TransactorSession) Aggregate(calls []Multicall2Call) (*types.Transaction, error)
Aggregate is a paid mutator transaction binding the contract method 0x252dba42.
Solidity: function aggregate((address,bytes)[] calls) returns(uint256 blockNumber, bytes[] returnData)
func (*MultiCall2TransactorSession) BlockAndAggregate ¶
func (_MultiCall2 *MultiCall2TransactorSession) BlockAndAggregate(calls []Multicall2Call) (*types.Transaction, error)
BlockAndAggregate is a paid mutator transaction binding the contract method 0xc3077fa9.
Solidity: function blockAndAggregate((address,bytes)[] calls) returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)
func (*MultiCall2TransactorSession) TryAggregate ¶
func (_MultiCall2 *MultiCall2TransactorSession) TryAggregate(requireSuccess bool, calls []Multicall2Call) (*types.Transaction, error)
TryAggregate is a paid mutator transaction binding the contract method 0xbce38bd7.
Solidity: function tryAggregate(bool requireSuccess, (address,bytes)[] calls) returns((bool,bytes)[] returnData)
func (*MultiCall2TransactorSession) TryBlockAndAggregate ¶
func (_MultiCall2 *MultiCall2TransactorSession) TryBlockAndAggregate(requireSuccess bool, calls []Multicall2Call) (*types.Transaction, error)
TryBlockAndAggregate is a paid mutator transaction binding the contract method 0x399542e9.
Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)
type Multicall2Call ¶
Multicall2Call is an auto generated low-level Go binding around an user-defined struct.
type Multicall2Result ¶
Multicall2Result is an auto generated low-level Go binding around an user-defined struct.