Documentation ¶
Index ¶
- Constants
- Variables
- type FlashbotsTrader
- type FlashbotsTraderCaller
- type FlashbotsTraderCallerRaw
- type FlashbotsTraderCallerSession
- type FlashbotsTraderFilterer
- type FlashbotsTraderRaw
- func (_FlashbotsTrader *FlashbotsTraderRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_FlashbotsTrader *FlashbotsTraderRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type FlashbotsTraderSession
- func (_FlashbotsTrader *FlashbotsTraderSession) ConvertETHtoWETH(amount *big.Int) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderSession) ExecuteTrade(poolAddressWithData *big.Int, amounts *big.Int, from common.Address, ...) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderSession) Kill() (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderSession) Receive() (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderSession) WithdrawETH(amount *big.Int) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderSession) WithdrawToken(token common.Address) (*types.Transaction, error)
- type FlashbotsTraderTransactor
- func (_FlashbotsTrader *FlashbotsTraderTransactor) ConvertETHtoWETH(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderTransactor) ExecuteTrade(opts *bind.TransactOpts, poolAddressWithData *big.Int, amounts *big.Int, ...) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderTransactor) Kill(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderTransactor) WithdrawETH(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderTransactor) WithdrawToken(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)
- type FlashbotsTraderTransactorRaw
- type FlashbotsTraderTransactorSession
- func (_FlashbotsTrader *FlashbotsTraderTransactorSession) ConvertETHtoWETH(amount *big.Int) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderTransactorSession) ExecuteTrade(poolAddressWithData *big.Int, amounts *big.Int, from common.Address, ...) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderTransactorSession) Kill() (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderTransactorSession) Receive() (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderTransactorSession) WithdrawETH(amount *big.Int) (*types.Transaction, error)
- func (_FlashbotsTrader *FlashbotsTraderTransactorSession) WithdrawToken(token common.Address) (*types.Transaction, error)
- type IERC20
- type IERC20Approval
- type IERC20ApprovalIterator
- type IERC20Caller
- func (_IERC20 *IERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
- func (_IERC20 *IERC20Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
- func (_IERC20 *IERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_IERC20 *IERC20Caller) Name(opts *bind.CallOpts) (string, error)
- func (_IERC20 *IERC20Caller) Symbol(opts *bind.CallOpts) (string, error)
- func (_IERC20 *IERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type IERC20CallerRaw
- type IERC20CallerSession
- func (_IERC20 *IERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_IERC20 *IERC20CallerSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_IERC20 *IERC20CallerSession) Decimals() (uint8, error)
- func (_IERC20 *IERC20CallerSession) Name() (string, error)
- func (_IERC20 *IERC20CallerSession) Symbol() (string, error)
- func (_IERC20 *IERC20CallerSession) TotalSupply() (*big.Int, error)
- type IERC20Filterer
- func (_IERC20 *IERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IERC20ApprovalIterator, error)
- func (_IERC20 *IERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IERC20TransferIterator, error)
- func (_IERC20 *IERC20Filterer) ParseApproval(log types.Log) (*IERC20Approval, error)
- func (_IERC20 *IERC20Filterer) ParseTransfer(log types.Log) (*IERC20Transfer, error)
- func (_IERC20 *IERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC20Approval, owner []common.Address, ...) (event.Subscription, error)
- func (_IERC20 *IERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IERC20Transfer, from []common.Address, ...) (event.Subscription, error)
- type IERC20Raw
- func (_IERC20 *IERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_IERC20 *IERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IERC20 *IERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IERC20Session
- func (_IERC20 *IERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_IERC20 *IERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_IERC20 *IERC20Session) BalanceOf(owner common.Address) (*big.Int, error)
- func (_IERC20 *IERC20Session) Decimals() (uint8, error)
- func (_IERC20 *IERC20Session) Name() (string, error)
- func (_IERC20 *IERC20Session) Symbol() (string, error)
- func (_IERC20 *IERC20Session) TotalSupply() (*big.Int, error)
- func (_IERC20 *IERC20Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
- func (_IERC20 *IERC20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
- type IERC20Transactor
- func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_IERC20 *IERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)
- func (_IERC20 *IERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- type IERC20TransactorRaw
- type IERC20TransactorSession
- func (_IERC20 *IERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_IERC20 *IERC20TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
- func (_IERC20 *IERC20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
- type IERC20Transfer
- type IERC20TransferIterator
- type IWETH
- type IWETHApproval
- type IWETHApprovalIterator
- type IWETHCaller
- func (_IWETH *IWETHCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
- func (_IWETH *IWETHCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
- func (_IWETH *IWETHCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_IWETH *IWETHCaller) Name(opts *bind.CallOpts) (string, error)
- func (_IWETH *IWETHCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_IWETH *IWETHCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type IWETHCallerRaw
- type IWETHCallerSession
- func (_IWETH *IWETHCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_IWETH *IWETHCallerSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_IWETH *IWETHCallerSession) Decimals() (uint8, error)
- func (_IWETH *IWETHCallerSession) Name() (string, error)
- func (_IWETH *IWETHCallerSession) Symbol() (string, error)
- func (_IWETH *IWETHCallerSession) TotalSupply() (*big.Int, error)
- type IWETHFilterer
- func (_IWETH *IWETHFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IWETHApprovalIterator, error)
- func (_IWETH *IWETHFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IWETHTransferIterator, error)
- func (_IWETH *IWETHFilterer) ParseApproval(log types.Log) (*IWETHApproval, error)
- func (_IWETH *IWETHFilterer) ParseTransfer(log types.Log) (*IWETHTransfer, error)
- func (_IWETH *IWETHFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IWETHApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_IWETH *IWETHFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IWETHTransfer, from []common.Address, ...) (event.Subscription, error)
- type IWETHRaw
- func (_IWETH *IWETHRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_IWETH *IWETHRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IWETH *IWETHRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IWETHSession
- func (_IWETH *IWETHSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_IWETH *IWETHSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_IWETH *IWETHSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_IWETH *IWETHSession) Decimals() (uint8, error)
- func (_IWETH *IWETHSession) Deposit() (*types.Transaction, error)
- func (_IWETH *IWETHSession) Name() (string, error)
- func (_IWETH *IWETHSession) Symbol() (string, error)
- func (_IWETH *IWETHSession) TotalSupply() (*big.Int, error)
- func (_IWETH *IWETHSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
- func (_IWETH *IWETHSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
- func (_IWETH *IWETHSession) Withdraw(arg0 *big.Int) (*types.Transaction, error)
- type IWETHTransactor
- func (_IWETH *IWETHTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_IWETH *IWETHTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_IWETH *IWETHTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)
- func (_IWETH *IWETHTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_IWETH *IWETHTransactor) Withdraw(opts *bind.TransactOpts, arg0 *big.Int) (*types.Transaction, error)
- type IWETHTransactorRaw
- type IWETHTransactorSession
- func (_IWETH *IWETHTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_IWETH *IWETHTransactorSession) Deposit() (*types.Transaction, error)
- func (_IWETH *IWETHTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
- func (_IWETH *IWETHTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
- func (_IWETH *IWETHTransactorSession) Withdraw(arg0 *big.Int) (*types.Transaction, error)
- type IWETHTransfer
- type IWETHTransferIterator
Constants ¶
const FlashbotsTraderABI = "" /* 1344-byte string literal not displayed */
FlashbotsTraderABI is the input ABI used to generate the binding from.
const IERC20ABI = "" /* 2898-byte string literal not displayed */
IERC20ABI is the input ABI used to generate the binding from.
const IERC20ABI = "" /* 2898-byte string literal not displayed */
IERC20ABI is the input ABI used to generate the binding from.
const IWETHABI = "" /* 3179-byte string literal not displayed */
IWETHABI is the input ABI used to generate the binding from.
Variables ¶
var FlashbotsTraderBin = "" /* 8182-byte string literal not displayed */
FlashbotsTraderBin is the compiled bytecode used for deploying new contracts.
var FlashbotsTraderFuncSigs = map[string]string{
"2de9800a": "convertETHtoWETH(uint256)",
"cec43477": "executeTrade(uint256,uint256,address,uint256)",
"41c0e1b5": "kill()",
"f14210a6": "withdrawETH(uint256)",
"89476069": "withdrawToken(address)",
}
FlashbotsTraderFuncSigs maps the 4-byte function signature to its string representation.
var IERC20FuncSigs = map[string]string{
"dd62ed3e": "allowance(address,address)",
"095ea7b3": "approve(address,uint256)",
"70a08231": "balanceOf(address)",
"313ce567": "decimals()",
"06fdde03": "name()",
"95d89b41": "symbol()",
"18160ddd": "totalSupply()",
"a9059cbb": "transfer(address,uint256)",
"23b872dd": "transferFrom(address,address,uint256)",
}
IERC20FuncSigs maps the 4-byte function signature to its string representation.
var IERC20FuncSigs = map[string]string{
"dd62ed3e": "allowance(address,address)",
"095ea7b3": "approve(address,uint256)",
"70a08231": "balanceOf(address)",
"313ce567": "decimals()",
"06fdde03": "name()",
"95d89b41": "symbol()",
"18160ddd": "totalSupply()",
"a9059cbb": "transfer(address,uint256)",
"23b872dd": "transferFrom(address,address,uint256)",
}
IERC20FuncSigs maps the 4-byte function signature to its string representation.
var IWETHFuncSigs = map[string]string{
"dd62ed3e": "allowance(address,address)",
"095ea7b3": "approve(address,uint256)",
"70a08231": "balanceOf(address)",
"313ce567": "decimals()",
"d0e30db0": "deposit()",
"06fdde03": "name()",
"95d89b41": "symbol()",
"18160ddd": "totalSupply()",
"a9059cbb": "transfer(address,uint256)",
"23b872dd": "transferFrom(address,address,uint256)",
"2e1a7d4d": "withdraw(uint256)",
}
IWETHFuncSigs maps the 4-byte function signature to its string representation.
Functions ¶
This section is empty.
Types ¶
type FlashbotsTrader ¶
type FlashbotsTrader struct { FlashbotsTraderCaller // Read-only binding to the contract FlashbotsTraderTransactor // Write-only binding to the contract FlashbotsTraderFilterer // Log filterer for contract events }
FlashbotsTrader is an auto generated Go binding around an Ethereum contract.
func DeployFlashbotsTrader ¶
func DeployFlashbotsTrader(auth *bind.TransactOpts, backend bind.ContractBackend, _WETHAddress common.Address) (common.Address, *types.Transaction, *FlashbotsTrader, error)
DeployFlashbotsTrader deploys a new Ethereum contract, binding an instance of FlashbotsTrader to it.
func NewFlashbotsTrader ¶
func NewFlashbotsTrader(address common.Address, backend bind.ContractBackend) (*FlashbotsTrader, error)
NewFlashbotsTrader creates a new instance of FlashbotsTrader, bound to a specific deployed contract.
type FlashbotsTraderCaller ¶
type FlashbotsTraderCaller struct {
// contains filtered or unexported fields
}
FlashbotsTraderCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewFlashbotsTraderCaller ¶
func NewFlashbotsTraderCaller(address common.Address, caller bind.ContractCaller) (*FlashbotsTraderCaller, error)
NewFlashbotsTraderCaller creates a new read-only instance of FlashbotsTrader, bound to a specific deployed contract.
type FlashbotsTraderCallerRaw ¶
type FlashbotsTraderCallerRaw struct {
Contract *FlashbotsTraderCaller // Generic read-only contract binding to access the raw methods on
}
FlashbotsTraderCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*FlashbotsTraderCallerRaw) Call ¶
func (_FlashbotsTrader *FlashbotsTraderCallerRaw) 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 FlashbotsTraderCallerSession ¶
type FlashbotsTraderCallerSession struct { Contract *FlashbotsTraderCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
FlashbotsTraderCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type FlashbotsTraderFilterer ¶
type FlashbotsTraderFilterer struct {
// contains filtered or unexported fields
}
FlashbotsTraderFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewFlashbotsTraderFilterer ¶
func NewFlashbotsTraderFilterer(address common.Address, filterer bind.ContractFilterer) (*FlashbotsTraderFilterer, error)
NewFlashbotsTraderFilterer creates a new log filterer instance of FlashbotsTrader, bound to a specific deployed contract.
type FlashbotsTraderRaw ¶
type FlashbotsTraderRaw struct {
Contract *FlashbotsTrader // Generic contract binding to access the raw methods on
}
FlashbotsTraderRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*FlashbotsTraderRaw) Call ¶
func (_FlashbotsTrader *FlashbotsTraderRaw) 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 (*FlashbotsTraderRaw) Transact ¶
func (_FlashbotsTrader *FlashbotsTraderRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FlashbotsTraderRaw) Transfer ¶
func (_FlashbotsTrader *FlashbotsTraderRaw) 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 FlashbotsTraderSession ¶
type FlashbotsTraderSession struct { Contract *FlashbotsTrader // 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 }
FlashbotsTraderSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*FlashbotsTraderSession) ConvertETHtoWETH ¶
func (_FlashbotsTrader *FlashbotsTraderSession) ConvertETHtoWETH(amount *big.Int) (*types.Transaction, error)
ConvertETHtoWETH is a paid mutator transaction binding the contract method 0x2de9800a.
Solidity: function convertETHtoWETH(uint256 amount) returns()
func (*FlashbotsTraderSession) ExecuteTrade ¶
func (_FlashbotsTrader *FlashbotsTraderSession) ExecuteTrade(poolAddressWithData *big.Int, amounts *big.Int, from common.Address, inputAmount *big.Int) (*types.Transaction, error)
ExecuteTrade is a paid mutator transaction binding the contract method 0xcec43477.
Solidity: function executeTrade(uint256 poolAddressWithData, uint256 amounts, address from, uint256 inputAmount) payable returns()
func (*FlashbotsTraderSession) Fallback ¶
func (_FlashbotsTrader *FlashbotsTraderSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() returns()
func (*FlashbotsTraderSession) Kill ¶
func (_FlashbotsTrader *FlashbotsTraderSession) Kill() (*types.Transaction, error)
Kill is a paid mutator transaction binding the contract method 0x41c0e1b5.
Solidity: function kill() returns()
func (*FlashbotsTraderSession) Receive ¶
func (_FlashbotsTrader *FlashbotsTraderSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*FlashbotsTraderSession) WithdrawETH ¶
func (_FlashbotsTrader *FlashbotsTraderSession) WithdrawETH(amount *big.Int) (*types.Transaction, error)
WithdrawETH is a paid mutator transaction binding the contract method 0xf14210a6.
Solidity: function withdrawETH(uint256 amount) returns()
func (*FlashbotsTraderSession) WithdrawToken ¶
func (_FlashbotsTrader *FlashbotsTraderSession) WithdrawToken(token common.Address) (*types.Transaction, error)
WithdrawToken is a paid mutator transaction binding the contract method 0x89476069.
Solidity: function withdrawToken(address token) returns()
type FlashbotsTraderTransactor ¶
type FlashbotsTraderTransactor struct {
// contains filtered or unexported fields
}
FlashbotsTraderTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewFlashbotsTraderTransactor ¶
func NewFlashbotsTraderTransactor(address common.Address, transactor bind.ContractTransactor) (*FlashbotsTraderTransactor, error)
NewFlashbotsTraderTransactor creates a new write-only instance of FlashbotsTrader, bound to a specific deployed contract.
func (*FlashbotsTraderTransactor) ConvertETHtoWETH ¶
func (_FlashbotsTrader *FlashbotsTraderTransactor) ConvertETHtoWETH(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
ConvertETHtoWETH is a paid mutator transaction binding the contract method 0x2de9800a.
Solidity: function convertETHtoWETH(uint256 amount) returns()
func (*FlashbotsTraderTransactor) ExecuteTrade ¶
func (_FlashbotsTrader *FlashbotsTraderTransactor) ExecuteTrade(opts *bind.TransactOpts, poolAddressWithData *big.Int, amounts *big.Int, from common.Address, inputAmount *big.Int) (*types.Transaction, error)
ExecuteTrade is a paid mutator transaction binding the contract method 0xcec43477.
Solidity: function executeTrade(uint256 poolAddressWithData, uint256 amounts, address from, uint256 inputAmount) payable returns()
func (*FlashbotsTraderTransactor) Fallback ¶
func (_FlashbotsTrader *FlashbotsTraderTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() returns()
func (*FlashbotsTraderTransactor) Kill ¶
func (_FlashbotsTrader *FlashbotsTraderTransactor) Kill(opts *bind.TransactOpts) (*types.Transaction, error)
Kill is a paid mutator transaction binding the contract method 0x41c0e1b5.
Solidity: function kill() returns()
func (*FlashbotsTraderTransactor) Receive ¶
func (_FlashbotsTrader *FlashbotsTraderTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*FlashbotsTraderTransactor) WithdrawETH ¶
func (_FlashbotsTrader *FlashbotsTraderTransactor) WithdrawETH(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
WithdrawETH is a paid mutator transaction binding the contract method 0xf14210a6.
Solidity: function withdrawETH(uint256 amount) returns()
func (*FlashbotsTraderTransactor) WithdrawToken ¶
func (_FlashbotsTrader *FlashbotsTraderTransactor) WithdrawToken(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)
WithdrawToken is a paid mutator transaction binding the contract method 0x89476069.
Solidity: function withdrawToken(address token) returns()
type FlashbotsTraderTransactorRaw ¶
type FlashbotsTraderTransactorRaw struct {
Contract *FlashbotsTraderTransactor // Generic write-only contract binding to access the raw methods on
}
FlashbotsTraderTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*FlashbotsTraderTransactorRaw) Transact ¶
func (_FlashbotsTrader *FlashbotsTraderTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FlashbotsTraderTransactorRaw) Transfer ¶
func (_FlashbotsTrader *FlashbotsTraderTransactorRaw) 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 FlashbotsTraderTransactorSession ¶
type FlashbotsTraderTransactorSession struct { Contract *FlashbotsTraderTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
FlashbotsTraderTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*FlashbotsTraderTransactorSession) ConvertETHtoWETH ¶
func (_FlashbotsTrader *FlashbotsTraderTransactorSession) ConvertETHtoWETH(amount *big.Int) (*types.Transaction, error)
ConvertETHtoWETH is a paid mutator transaction binding the contract method 0x2de9800a.
Solidity: function convertETHtoWETH(uint256 amount) returns()
func (*FlashbotsTraderTransactorSession) ExecuteTrade ¶
func (_FlashbotsTrader *FlashbotsTraderTransactorSession) ExecuteTrade(poolAddressWithData *big.Int, amounts *big.Int, from common.Address, inputAmount *big.Int) (*types.Transaction, error)
ExecuteTrade is a paid mutator transaction binding the contract method 0xcec43477.
Solidity: function executeTrade(uint256 poolAddressWithData, uint256 amounts, address from, uint256 inputAmount) payable returns()
func (*FlashbotsTraderTransactorSession) Fallback ¶
func (_FlashbotsTrader *FlashbotsTraderTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() returns()
func (*FlashbotsTraderTransactorSession) Kill ¶
func (_FlashbotsTrader *FlashbotsTraderTransactorSession) Kill() (*types.Transaction, error)
Kill is a paid mutator transaction binding the contract method 0x41c0e1b5.
Solidity: function kill() returns()
func (*FlashbotsTraderTransactorSession) Receive ¶
func (_FlashbotsTrader *FlashbotsTraderTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*FlashbotsTraderTransactorSession) WithdrawETH ¶
func (_FlashbotsTrader *FlashbotsTraderTransactorSession) WithdrawETH(amount *big.Int) (*types.Transaction, error)
WithdrawETH is a paid mutator transaction binding the contract method 0xf14210a6.
Solidity: function withdrawETH(uint256 amount) returns()
func (*FlashbotsTraderTransactorSession) WithdrawToken ¶
func (_FlashbotsTrader *FlashbotsTraderTransactorSession) WithdrawToken(token common.Address) (*types.Transaction, error)
WithdrawToken is a paid mutator transaction binding the contract method 0x89476069.
Solidity: function withdrawToken(address token) returns()
type IERC20 ¶
type IERC20 struct { IERC20Caller // Read-only binding to the contract IERC20Transactor // Write-only binding to the contract IERC20Filterer // Log filterer for contract events }
IERC20 is an auto generated Go binding around an Ethereum contract.
type IERC20Approval ¶
type IERC20Approval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
IERC20Approval represents a Approval event raised by the IERC20 contract.
type IERC20ApprovalIterator ¶
type IERC20ApprovalIterator struct { Event *IERC20Approval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the IERC20 contract.
func (*IERC20ApprovalIterator) Close ¶
func (it *IERC20ApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
type IERC20Caller ¶
type IERC20Caller struct {
// contains filtered or unexported fields
}
IERC20Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewIERC20Caller ¶
func NewIERC20Caller(address common.Address, caller bind.ContractCaller) (*IERC20Caller, error)
NewIERC20Caller creates a new read-only instance of IERC20, bound to a specific deployed contract.
func (*IERC20Caller) Allowance ¶
func (_IERC20 *IERC20Caller) 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 (*IERC20Caller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*IERC20Caller) Decimals ¶
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*IERC20Caller) Name ¶
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
type IERC20CallerRaw ¶
type IERC20CallerRaw struct {
Contract *IERC20Caller // Generic read-only contract binding to access the raw methods on
}
IERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IERC20CallerRaw) Call ¶
func (_IERC20 *IERC20CallerRaw) 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 IERC20CallerSession ¶
type IERC20CallerSession struct { Contract *IERC20Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
IERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*IERC20CallerSession) Allowance ¶
func (_IERC20 *IERC20CallerSession) 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 (*IERC20CallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*IERC20CallerSession) Decimals ¶
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*IERC20CallerSession) Name ¶
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*IERC20CallerSession) Symbol ¶
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*IERC20CallerSession) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type IERC20Filterer ¶
type IERC20Filterer struct {
// contains filtered or unexported fields
}
IERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIERC20Filterer ¶
func NewIERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*IERC20Filterer, error)
NewIERC20Filterer creates a new log filterer instance of IERC20, bound to a specific deployed contract.
func (*IERC20Filterer) FilterApproval ¶
func (_IERC20 *IERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IERC20ApprovalIterator, 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 (*IERC20Filterer) FilterTransfer ¶
func (_IERC20 *IERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IERC20TransferIterator, 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 (*IERC20Filterer) ParseApproval ¶
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*IERC20Filterer) ParseTransfer ¶
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*IERC20Filterer) WatchApproval ¶
func (_IERC20 *IERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC20Approval, 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 (*IERC20Filterer) WatchTransfer ¶
func (_IERC20 *IERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IERC20Transfer, 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 IERC20Raw ¶
type IERC20Raw struct {
Contract *IERC20 // Generic contract binding to access the raw methods on
}
IERC20Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*IERC20Raw) Call ¶
func (_IERC20 *IERC20Raw) 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 (*IERC20Raw) Transact ¶
func (_IERC20 *IERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IERC20Raw) Transfer ¶
func (_IERC20 *IERC20Raw) 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 IERC20Session ¶
type IERC20Session struct { Contract *IERC20 // 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 }
IERC20Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IERC20Session) Allowance ¶
func (_IERC20 *IERC20Session) 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 (*IERC20Session) Approve ¶
func (_IERC20 *IERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 value) returns(bool)
func (*IERC20Session) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*IERC20Session) Decimals ¶
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*IERC20Session) Name ¶
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*IERC20Session) Symbol ¶
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*IERC20Session) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*IERC20Session) Transfer ¶
func (_IERC20 *IERC20Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 value) returns(bool)
func (*IERC20Session) TransferFrom ¶
func (_IERC20 *IERC20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)
type IERC20Transactor ¶
type IERC20Transactor struct {
// contains filtered or unexported fields
}
IERC20Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIERC20Transactor ¶
func NewIERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*IERC20Transactor, error)
NewIERC20Transactor creates a new write-only instance of IERC20, bound to a specific deployed contract.
func (*IERC20Transactor) Approve ¶
func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 value) returns(bool)
func (*IERC20Transactor) Transfer ¶
func (_IERC20 *IERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 value) returns(bool)
func (*IERC20Transactor) TransferFrom ¶
func (_IERC20 *IERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)
type IERC20TransactorRaw ¶
type IERC20TransactorRaw struct {
Contract *IERC20Transactor // Generic write-only contract binding to access the raw methods on
}
IERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IERC20TransactorRaw) Transact ¶
func (_IERC20 *IERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IERC20TransactorRaw) Transfer ¶
func (_IERC20 *IERC20TransactorRaw) 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 IERC20TransactorSession ¶
type IERC20TransactorSession struct { Contract *IERC20Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
IERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*IERC20TransactorSession) Approve ¶
func (_IERC20 *IERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 value) returns(bool)
func (*IERC20TransactorSession) Transfer ¶
func (_IERC20 *IERC20TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 value) returns(bool)
func (*IERC20TransactorSession) TransferFrom ¶
func (_IERC20 *IERC20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)
type IERC20Transfer ¶
type IERC20Transfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
IERC20Transfer represents a Transfer event raised by the IERC20 contract.
type IERC20TransferIterator ¶
type IERC20TransferIterator struct { Event *IERC20Transfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the IERC20 contract.
func (*IERC20TransferIterator) Close ¶
func (it *IERC20TransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
type IWETH ¶
type IWETH struct { IWETHCaller // Read-only binding to the contract IWETHTransactor // Write-only binding to the contract IWETHFilterer // Log filterer for contract events }
IWETH is an auto generated Go binding around an Ethereum contract.
type IWETHApproval ¶
type IWETHApproval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
IWETHApproval represents a Approval event raised by the IWETH contract.
type IWETHApprovalIterator ¶
type IWETHApprovalIterator struct { Event *IWETHApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IWETHApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the IWETH contract.
func (*IWETHApprovalIterator) Close ¶
func (it *IWETHApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*IWETHApprovalIterator) Error ¶
func (it *IWETHApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*IWETHApprovalIterator) Next ¶
func (it *IWETHApprovalIterator) 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 IWETHCaller ¶
type IWETHCaller struct {
// contains filtered or unexported fields
}
IWETHCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIWETHCaller ¶
func NewIWETHCaller(address common.Address, caller bind.ContractCaller) (*IWETHCaller, error)
NewIWETHCaller creates a new read-only instance of IWETH, bound to a specific deployed contract.
func (*IWETHCaller) Allowance ¶
func (_IWETH *IWETHCaller) 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 (*IWETHCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*IWETHCaller) Decimals ¶
func (_IWETH *IWETHCaller) 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 (*IWETHCaller) Name ¶
func (_IWETH *IWETHCaller) 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 (*IWETHCaller) Symbol ¶
func (_IWETH *IWETHCaller) 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 (*IWETHCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type IWETHCallerRaw ¶
type IWETHCallerRaw struct {
Contract *IWETHCaller // Generic read-only contract binding to access the raw methods on
}
IWETHCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IWETHCallerRaw) Call ¶
func (_IWETH *IWETHCallerRaw) 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 IWETHCallerSession ¶
type IWETHCallerSession struct { Contract *IWETHCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
IWETHCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*IWETHCallerSession) Allowance ¶
func (_IWETH *IWETHCallerSession) 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 (*IWETHCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*IWETHCallerSession) Decimals ¶
func (_IWETH *IWETHCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*IWETHCallerSession) Name ¶
func (_IWETH *IWETHCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*IWETHCallerSession) Symbol ¶
func (_IWETH *IWETHCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*IWETHCallerSession) TotalSupply ¶
func (_IWETH *IWETHCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type IWETHFilterer ¶
type IWETHFilterer struct {
// contains filtered or unexported fields
}
IWETHFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIWETHFilterer ¶
func NewIWETHFilterer(address common.Address, filterer bind.ContractFilterer) (*IWETHFilterer, error)
NewIWETHFilterer creates a new log filterer instance of IWETH, bound to a specific deployed contract.
func (*IWETHFilterer) FilterApproval ¶
func (_IWETH *IWETHFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IWETHApprovalIterator, 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 (*IWETHFilterer) FilterTransfer ¶
func (_IWETH *IWETHFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IWETHTransferIterator, 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 (*IWETHFilterer) ParseApproval ¶
func (_IWETH *IWETHFilterer) ParseApproval(log types.Log) (*IWETHApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*IWETHFilterer) ParseTransfer ¶
func (_IWETH *IWETHFilterer) ParseTransfer(log types.Log) (*IWETHTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*IWETHFilterer) WatchApproval ¶
func (_IWETH *IWETHFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IWETHApproval, 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 (*IWETHFilterer) WatchTransfer ¶
func (_IWETH *IWETHFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IWETHTransfer, 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 IWETHRaw ¶
type IWETHRaw struct {
Contract *IWETH // Generic contract binding to access the raw methods on
}
IWETHRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IWETHRaw) Call ¶
func (_IWETH *IWETHRaw) 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 (*IWETHRaw) Transact ¶
func (_IWETH *IWETHRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IWETHRaw) Transfer ¶
func (_IWETH *IWETHRaw) 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 IWETHSession ¶
type IWETHSession struct { Contract *IWETH // 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 }
IWETHSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IWETHSession) Allowance ¶
func (_IWETH *IWETHSession) 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 (*IWETHSession) Approve ¶
func (_IWETH *IWETHSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 value) returns(bool)
func (*IWETHSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*IWETHSession) Decimals ¶
func (_IWETH *IWETHSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*IWETHSession) Deposit ¶
func (_IWETH *IWETHSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*IWETHSession) Name ¶
func (_IWETH *IWETHSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*IWETHSession) Symbol ¶
func (_IWETH *IWETHSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*IWETHSession) TotalSupply ¶
func (_IWETH *IWETHSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*IWETHSession) Transfer ¶
func (_IWETH *IWETHSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 value) returns(bool)
func (*IWETHSession) TransferFrom ¶
func (_IWETH *IWETHSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)
func (*IWETHSession) Withdraw ¶
func (_IWETH *IWETHSession) Withdraw(arg0 *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 ) returns()
type IWETHTransactor ¶
type IWETHTransactor struct {
// contains filtered or unexported fields
}
IWETHTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIWETHTransactor ¶
func NewIWETHTransactor(address common.Address, transactor bind.ContractTransactor) (*IWETHTransactor, error)
NewIWETHTransactor creates a new write-only instance of IWETH, bound to a specific deployed contract.
func (*IWETHTransactor) Approve ¶
func (_IWETH *IWETHTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 value) returns(bool)
func (*IWETHTransactor) Deposit ¶
func (_IWETH *IWETHTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*IWETHTransactor) Transfer ¶
func (_IWETH *IWETHTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 value) returns(bool)
func (*IWETHTransactor) TransferFrom ¶
func (_IWETH *IWETHTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)
func (*IWETHTransactor) Withdraw ¶
func (_IWETH *IWETHTransactor) Withdraw(opts *bind.TransactOpts, arg0 *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 ) returns()
type IWETHTransactorRaw ¶
type IWETHTransactorRaw struct {
Contract *IWETHTransactor // Generic write-only contract binding to access the raw methods on
}
IWETHTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IWETHTransactorRaw) Transact ¶
func (_IWETH *IWETHTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IWETHTransactorRaw) Transfer ¶
func (_IWETH *IWETHTransactorRaw) 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 IWETHTransactorSession ¶
type IWETHTransactorSession struct { Contract *IWETHTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
IWETHTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*IWETHTransactorSession) Approve ¶
func (_IWETH *IWETHTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 value) returns(bool)
func (*IWETHTransactorSession) Deposit ¶
func (_IWETH *IWETHTransactorSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*IWETHTransactorSession) Transfer ¶
func (_IWETH *IWETHTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 value) returns(bool)
func (*IWETHTransactorSession) TransferFrom ¶
func (_IWETH *IWETHTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)
func (*IWETHTransactorSession) Withdraw ¶
func (_IWETH *IWETHTransactorSession) Withdraw(arg0 *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 ) returns()
type IWETHTransfer ¶
type IWETHTransfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
IWETHTransfer represents a Transfer event raised by the IWETH contract.
type IWETHTransferIterator ¶
type IWETHTransferIterator struct { Event *IWETHTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
IWETHTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the IWETH contract.
func (*IWETHTransferIterator) Close ¶
func (it *IWETHTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*IWETHTransferIterator) Error ¶
func (it *IWETHTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*IWETHTransferIterator) Next ¶
func (it *IWETHTransferIterator) 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.