Files
mev-beta/bindings/contracts/uniswapv2flashswapper.go
2025-10-04 09:31:02 -05:00

1418 lines
68 KiB
Go

// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package contracts
import (
"errors"
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = errors.New
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
_ = abi.ConvertType
)
// UniswapV2FlashSwapperMetaData contains all meta data concerning the UniswapV2FlashSwapper contract.
var UniswapV2FlashSwapperMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_factory\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"EMERGENCY_TIMELOCK\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"authorizedCallers\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"calculateFlashSwapFee\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount0\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"amount1\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"fee0\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"fee1\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"canExecuteEmergencyWithdraw\",\"inputs\":[{\"name\":\"requestId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"cancelEmergencyWithdraw\",\"inputs\":[{\"name\":\"requestId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"emergencyRequests\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"executeAfter\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"executed\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"emergencyWithdraw\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"executeEmergencyWithdraw\",\"inputs\":[{\"name\":\"requestId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"executeFlashSwap\",\"inputs\":[{\"name\":\"pool\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"params\",\"type\":\"tuple\",\"internalType\":\"structIFlashSwapper.FlashSwapParams\",\"components\":[{\"name\":\"token0\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"token1\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount0\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"amount1\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"factory\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIUniswapV2Factory\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"requestEmergencyWithdraw\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setAuthorizedCaller\",\"inputs\":[{\"name\":\"caller\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"authorized\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"uniswapV2Call\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount0\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"amount1\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"EmergencyWithdrawCancelled\",\"inputs\":[{\"name\":\"requestId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"EmergencyWithdrawExecuted\",\"inputs\":[{\"name\":\"requestId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"token\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"EmergencyWithdrawRequested\",\"inputs\":[{\"name\":\"requestId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"token\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"executeAfter\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"FlashSwapExecuted\",\"inputs\":[{\"name\":\"pool\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"token0\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"token1\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount0\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"amount1\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"to\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"AddressEmptyCode\",\"inputs\":[{\"name\":\"target\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"AddressInsufficientBalance\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"FailedInnerCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OwnableInvalidOwner\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"OwnableUnauthorizedAccount\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ReentrancyGuardReentrantCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"SafeERC20FailedOperation\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}]}]",
}
// UniswapV2FlashSwapperABI is the input ABI used to generate the binding from.
// Deprecated: Use UniswapV2FlashSwapperMetaData.ABI instead.
var UniswapV2FlashSwapperABI = UniswapV2FlashSwapperMetaData.ABI
// UniswapV2FlashSwapper is an auto generated Go binding around an Ethereum contract.
type UniswapV2FlashSwapper struct {
UniswapV2FlashSwapperCaller // Read-only binding to the contract
UniswapV2FlashSwapperTransactor // Write-only binding to the contract
UniswapV2FlashSwapperFilterer // Log filterer for contract events
}
// UniswapV2FlashSwapperCaller is an auto generated read-only Go binding around an Ethereum contract.
type UniswapV2FlashSwapperCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// UniswapV2FlashSwapperTransactor is an auto generated write-only Go binding around an Ethereum contract.
type UniswapV2FlashSwapperTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// UniswapV2FlashSwapperFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type UniswapV2FlashSwapperFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// UniswapV2FlashSwapperSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type UniswapV2FlashSwapperSession struct {
Contract *UniswapV2FlashSwapper // 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
}
// UniswapV2FlashSwapperCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type UniswapV2FlashSwapperCallerSession struct {
Contract *UniswapV2FlashSwapperCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// UniswapV2FlashSwapperTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type UniswapV2FlashSwapperTransactorSession struct {
Contract *UniswapV2FlashSwapperTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// UniswapV2FlashSwapperRaw is an auto generated low-level Go binding around an Ethereum contract.
type UniswapV2FlashSwapperRaw struct {
Contract *UniswapV2FlashSwapper // Generic contract binding to access the raw methods on
}
// UniswapV2FlashSwapperCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type UniswapV2FlashSwapperCallerRaw struct {
Contract *UniswapV2FlashSwapperCaller // Generic read-only contract binding to access the raw methods on
}
// UniswapV2FlashSwapperTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type UniswapV2FlashSwapperTransactorRaw struct {
Contract *UniswapV2FlashSwapperTransactor // Generic write-only contract binding to access the raw methods on
}
// NewUniswapV2FlashSwapper creates a new instance of UniswapV2FlashSwapper, bound to a specific deployed contract.
func NewUniswapV2FlashSwapper(address common.Address, backend bind.ContractBackend) (*UniswapV2FlashSwapper, error) {
contract, err := bindUniswapV2FlashSwapper(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &UniswapV2FlashSwapper{UniswapV2FlashSwapperCaller: UniswapV2FlashSwapperCaller{contract: contract}, UniswapV2FlashSwapperTransactor: UniswapV2FlashSwapperTransactor{contract: contract}, UniswapV2FlashSwapperFilterer: UniswapV2FlashSwapperFilterer{contract: contract}}, nil
}
// NewUniswapV2FlashSwapperCaller creates a new read-only instance of UniswapV2FlashSwapper, bound to a specific deployed contract.
func NewUniswapV2FlashSwapperCaller(address common.Address, caller bind.ContractCaller) (*UniswapV2FlashSwapperCaller, error) {
contract, err := bindUniswapV2FlashSwapper(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &UniswapV2FlashSwapperCaller{contract: contract}, nil
}
// NewUniswapV2FlashSwapperTransactor creates a new write-only instance of UniswapV2FlashSwapper, bound to a specific deployed contract.
func NewUniswapV2FlashSwapperTransactor(address common.Address, transactor bind.ContractTransactor) (*UniswapV2FlashSwapperTransactor, error) {
contract, err := bindUniswapV2FlashSwapper(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &UniswapV2FlashSwapperTransactor{contract: contract}, nil
}
// NewUniswapV2FlashSwapperFilterer creates a new log filterer instance of UniswapV2FlashSwapper, bound to a specific deployed contract.
func NewUniswapV2FlashSwapperFilterer(address common.Address, filterer bind.ContractFilterer) (*UniswapV2FlashSwapperFilterer, error) {
contract, err := bindUniswapV2FlashSwapper(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &UniswapV2FlashSwapperFilterer{contract: contract}, nil
}
// bindUniswapV2FlashSwapper binds a generic wrapper to an already deployed contract.
func bindUniswapV2FlashSwapper(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := UniswapV2FlashSwapperMetaData.GetAbi()
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil
}
// 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 (_UniswapV2FlashSwapper *UniswapV2FlashSwapperRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _UniswapV2FlashSwapper.Contract.UniswapV2FlashSwapperCaller.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.UniswapV2FlashSwapperTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.UniswapV2FlashSwapperTransactor.contract.Transact(opts, method, params...)
}
// 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 (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _UniswapV2FlashSwapper.Contract.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.contract.Transact(opts, method, params...)
}
// EMERGENCYTIMELOCK is a free data retrieval call binding the contract method 0x60d7442b.
//
// Solidity: function EMERGENCY_TIMELOCK() view returns(uint256)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCaller) EMERGENCYTIMELOCK(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _UniswapV2FlashSwapper.contract.Call(opts, &out, "EMERGENCY_TIMELOCK")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// EMERGENCYTIMELOCK is a free data retrieval call binding the contract method 0x60d7442b.
//
// Solidity: function EMERGENCY_TIMELOCK() view returns(uint256)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) EMERGENCYTIMELOCK() (*big.Int, error) {
return _UniswapV2FlashSwapper.Contract.EMERGENCYTIMELOCK(&_UniswapV2FlashSwapper.CallOpts)
}
// EMERGENCYTIMELOCK is a free data retrieval call binding the contract method 0x60d7442b.
//
// Solidity: function EMERGENCY_TIMELOCK() view returns(uint256)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCallerSession) EMERGENCYTIMELOCK() (*big.Int, error) {
return _UniswapV2FlashSwapper.Contract.EMERGENCYTIMELOCK(&_UniswapV2FlashSwapper.CallOpts)
}
// AuthorizedCallers is a free data retrieval call binding the contract method 0x536fff6c.
//
// Solidity: function authorizedCallers(address ) view returns(bool)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCaller) AuthorizedCallers(opts *bind.CallOpts, arg0 common.Address) (bool, error) {
var out []interface{}
err := _UniswapV2FlashSwapper.contract.Call(opts, &out, "authorizedCallers", arg0)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// AuthorizedCallers is a free data retrieval call binding the contract method 0x536fff6c.
//
// Solidity: function authorizedCallers(address ) view returns(bool)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) AuthorizedCallers(arg0 common.Address) (bool, error) {
return _UniswapV2FlashSwapper.Contract.AuthorizedCallers(&_UniswapV2FlashSwapper.CallOpts, arg0)
}
// AuthorizedCallers is a free data retrieval call binding the contract method 0x536fff6c.
//
// Solidity: function authorizedCallers(address ) view returns(bool)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCallerSession) AuthorizedCallers(arg0 common.Address) (bool, error) {
return _UniswapV2FlashSwapper.Contract.AuthorizedCallers(&_UniswapV2FlashSwapper.CallOpts, arg0)
}
// CalculateFlashSwapFee is a free data retrieval call binding the contract method 0x62e0cd29.
//
// Solidity: function calculateFlashSwapFee(address , uint256 amount0, uint256 amount1) pure returns(uint256 fee0, uint256 fee1)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCaller) CalculateFlashSwapFee(opts *bind.CallOpts, arg0 common.Address, amount0 *big.Int, amount1 *big.Int) (struct {
Fee0 *big.Int
Fee1 *big.Int
}, error) {
var out []interface{}
err := _UniswapV2FlashSwapper.contract.Call(opts, &out, "calculateFlashSwapFee", arg0, amount0, amount1)
outstruct := new(struct {
Fee0 *big.Int
Fee1 *big.Int
})
if err != nil {
return *outstruct, err
}
outstruct.Fee0 = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
outstruct.Fee1 = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
return *outstruct, err
}
// CalculateFlashSwapFee is a free data retrieval call binding the contract method 0x62e0cd29.
//
// Solidity: function calculateFlashSwapFee(address , uint256 amount0, uint256 amount1) pure returns(uint256 fee0, uint256 fee1)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) CalculateFlashSwapFee(arg0 common.Address, amount0 *big.Int, amount1 *big.Int) (struct {
Fee0 *big.Int
Fee1 *big.Int
}, error) {
return _UniswapV2FlashSwapper.Contract.CalculateFlashSwapFee(&_UniswapV2FlashSwapper.CallOpts, arg0, amount0, amount1)
}
// CalculateFlashSwapFee is a free data retrieval call binding the contract method 0x62e0cd29.
//
// Solidity: function calculateFlashSwapFee(address , uint256 amount0, uint256 amount1) pure returns(uint256 fee0, uint256 fee1)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCallerSession) CalculateFlashSwapFee(arg0 common.Address, amount0 *big.Int, amount1 *big.Int) (struct {
Fee0 *big.Int
Fee1 *big.Int
}, error) {
return _UniswapV2FlashSwapper.Contract.CalculateFlashSwapFee(&_UniswapV2FlashSwapper.CallOpts, arg0, amount0, amount1)
}
// CanExecuteEmergencyWithdraw is a free data retrieval call binding the contract method 0x2275566d.
//
// Solidity: function canExecuteEmergencyWithdraw(bytes32 requestId) view returns(bool)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCaller) CanExecuteEmergencyWithdraw(opts *bind.CallOpts, requestId [32]byte) (bool, error) {
var out []interface{}
err := _UniswapV2FlashSwapper.contract.Call(opts, &out, "canExecuteEmergencyWithdraw", requestId)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// CanExecuteEmergencyWithdraw is a free data retrieval call binding the contract method 0x2275566d.
//
// Solidity: function canExecuteEmergencyWithdraw(bytes32 requestId) view returns(bool)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) CanExecuteEmergencyWithdraw(requestId [32]byte) (bool, error) {
return _UniswapV2FlashSwapper.Contract.CanExecuteEmergencyWithdraw(&_UniswapV2FlashSwapper.CallOpts, requestId)
}
// CanExecuteEmergencyWithdraw is a free data retrieval call binding the contract method 0x2275566d.
//
// Solidity: function canExecuteEmergencyWithdraw(bytes32 requestId) view returns(bool)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCallerSession) CanExecuteEmergencyWithdraw(requestId [32]byte) (bool, error) {
return _UniswapV2FlashSwapper.Contract.CanExecuteEmergencyWithdraw(&_UniswapV2FlashSwapper.CallOpts, requestId)
}
// EmergencyRequests is a free data retrieval call binding the contract method 0x0557ac41.
//
// Solidity: function emergencyRequests(bytes32 ) view returns(address token, uint256 amount, uint256 executeAfter, bool executed)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCaller) EmergencyRequests(opts *bind.CallOpts, arg0 [32]byte) (struct {
Token common.Address
Amount *big.Int
ExecuteAfter *big.Int
Executed bool
}, error) {
var out []interface{}
err := _UniswapV2FlashSwapper.contract.Call(opts, &out, "emergencyRequests", arg0)
outstruct := new(struct {
Token common.Address
Amount *big.Int
ExecuteAfter *big.Int
Executed bool
})
if err != nil {
return *outstruct, err
}
outstruct.Token = *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
outstruct.Amount = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
outstruct.ExecuteAfter = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int)
outstruct.Executed = *abi.ConvertType(out[3], new(bool)).(*bool)
return *outstruct, err
}
// EmergencyRequests is a free data retrieval call binding the contract method 0x0557ac41.
//
// Solidity: function emergencyRequests(bytes32 ) view returns(address token, uint256 amount, uint256 executeAfter, bool executed)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) EmergencyRequests(arg0 [32]byte) (struct {
Token common.Address
Amount *big.Int
ExecuteAfter *big.Int
Executed bool
}, error) {
return _UniswapV2FlashSwapper.Contract.EmergencyRequests(&_UniswapV2FlashSwapper.CallOpts, arg0)
}
// EmergencyRequests is a free data retrieval call binding the contract method 0x0557ac41.
//
// Solidity: function emergencyRequests(bytes32 ) view returns(address token, uint256 amount, uint256 executeAfter, bool executed)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCallerSession) EmergencyRequests(arg0 [32]byte) (struct {
Token common.Address
Amount *big.Int
ExecuteAfter *big.Int
Executed bool
}, error) {
return _UniswapV2FlashSwapper.Contract.EmergencyRequests(&_UniswapV2FlashSwapper.CallOpts, arg0)
}
// Factory is a free data retrieval call binding the contract method 0xc45a0155.
//
// Solidity: function factory() view returns(address)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCaller) Factory(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _UniswapV2FlashSwapper.contract.Call(opts, &out, "factory")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Factory is a free data retrieval call binding the contract method 0xc45a0155.
//
// Solidity: function factory() view returns(address)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) Factory() (common.Address, error) {
return _UniswapV2FlashSwapper.Contract.Factory(&_UniswapV2FlashSwapper.CallOpts)
}
// Factory is a free data retrieval call binding the contract method 0xc45a0155.
//
// Solidity: function factory() view returns(address)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCallerSession) Factory() (common.Address, error) {
return _UniswapV2FlashSwapper.Contract.Factory(&_UniswapV2FlashSwapper.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _UniswapV2FlashSwapper.contract.Call(opts, &out, "owner")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) Owner() (common.Address, error) {
return _UniswapV2FlashSwapper.Contract.Owner(&_UniswapV2FlashSwapper.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperCallerSession) Owner() (common.Address, error) {
return _UniswapV2FlashSwapper.Contract.Owner(&_UniswapV2FlashSwapper.CallOpts)
}
// CancelEmergencyWithdraw is a paid mutator transaction binding the contract method 0xfbe1a43f.
//
// Solidity: function cancelEmergencyWithdraw(bytes32 requestId) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactor) CancelEmergencyWithdraw(opts *bind.TransactOpts, requestId [32]byte) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.contract.Transact(opts, "cancelEmergencyWithdraw", requestId)
}
// CancelEmergencyWithdraw is a paid mutator transaction binding the contract method 0xfbe1a43f.
//
// Solidity: function cancelEmergencyWithdraw(bytes32 requestId) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) CancelEmergencyWithdraw(requestId [32]byte) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.CancelEmergencyWithdraw(&_UniswapV2FlashSwapper.TransactOpts, requestId)
}
// CancelEmergencyWithdraw is a paid mutator transaction binding the contract method 0xfbe1a43f.
//
// Solidity: function cancelEmergencyWithdraw(bytes32 requestId) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactorSession) CancelEmergencyWithdraw(requestId [32]byte) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.CancelEmergencyWithdraw(&_UniswapV2FlashSwapper.TransactOpts, requestId)
}
// EmergencyWithdraw is a paid mutator transaction binding the contract method 0x95ccea67.
//
// Solidity: function emergencyWithdraw(address token, uint256 amount) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactor) EmergencyWithdraw(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.contract.Transact(opts, "emergencyWithdraw", token, amount)
}
// EmergencyWithdraw is a paid mutator transaction binding the contract method 0x95ccea67.
//
// Solidity: function emergencyWithdraw(address token, uint256 amount) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) EmergencyWithdraw(token common.Address, amount *big.Int) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.EmergencyWithdraw(&_UniswapV2FlashSwapper.TransactOpts, token, amount)
}
// EmergencyWithdraw is a paid mutator transaction binding the contract method 0x95ccea67.
//
// Solidity: function emergencyWithdraw(address token, uint256 amount) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactorSession) EmergencyWithdraw(token common.Address, amount *big.Int) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.EmergencyWithdraw(&_UniswapV2FlashSwapper.TransactOpts, token, amount)
}
// ExecuteEmergencyWithdraw is a paid mutator transaction binding the contract method 0x9ad3ec48.
//
// Solidity: function executeEmergencyWithdraw(bytes32 requestId) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactor) ExecuteEmergencyWithdraw(opts *bind.TransactOpts, requestId [32]byte) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.contract.Transact(opts, "executeEmergencyWithdraw", requestId)
}
// ExecuteEmergencyWithdraw is a paid mutator transaction binding the contract method 0x9ad3ec48.
//
// Solidity: function executeEmergencyWithdraw(bytes32 requestId) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) ExecuteEmergencyWithdraw(requestId [32]byte) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.ExecuteEmergencyWithdraw(&_UniswapV2FlashSwapper.TransactOpts, requestId)
}
// ExecuteEmergencyWithdraw is a paid mutator transaction binding the contract method 0x9ad3ec48.
//
// Solidity: function executeEmergencyWithdraw(bytes32 requestId) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactorSession) ExecuteEmergencyWithdraw(requestId [32]byte) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.ExecuteEmergencyWithdraw(&_UniswapV2FlashSwapper.TransactOpts, requestId)
}
// ExecuteFlashSwap is a paid mutator transaction binding the contract method 0x87d103b2.
//
// Solidity: function executeFlashSwap(address pool, (address,address,uint256,uint256,address,bytes) params) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactor) ExecuteFlashSwap(opts *bind.TransactOpts, pool common.Address, params IFlashSwapperFlashSwapParams) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.contract.Transact(opts, "executeFlashSwap", pool, params)
}
// ExecuteFlashSwap is a paid mutator transaction binding the contract method 0x87d103b2.
//
// Solidity: function executeFlashSwap(address pool, (address,address,uint256,uint256,address,bytes) params) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) ExecuteFlashSwap(pool common.Address, params IFlashSwapperFlashSwapParams) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.ExecuteFlashSwap(&_UniswapV2FlashSwapper.TransactOpts, pool, params)
}
// ExecuteFlashSwap is a paid mutator transaction binding the contract method 0x87d103b2.
//
// Solidity: function executeFlashSwap(address pool, (address,address,uint256,uint256,address,bytes) params) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactorSession) ExecuteFlashSwap(pool common.Address, params IFlashSwapperFlashSwapParams) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.ExecuteFlashSwap(&_UniswapV2FlashSwapper.TransactOpts, pool, params)
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.contract.Transact(opts, "renounceOwnership")
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) RenounceOwnership() (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.RenounceOwnership(&_UniswapV2FlashSwapper.TransactOpts)
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactorSession) RenounceOwnership() (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.RenounceOwnership(&_UniswapV2FlashSwapper.TransactOpts)
}
// RequestEmergencyWithdraw is a paid mutator transaction binding the contract method 0x7c7f4ce5.
//
// Solidity: function requestEmergencyWithdraw(address token, uint256 amount) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactor) RequestEmergencyWithdraw(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.contract.Transact(opts, "requestEmergencyWithdraw", token, amount)
}
// RequestEmergencyWithdraw is a paid mutator transaction binding the contract method 0x7c7f4ce5.
//
// Solidity: function requestEmergencyWithdraw(address token, uint256 amount) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) RequestEmergencyWithdraw(token common.Address, amount *big.Int) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.RequestEmergencyWithdraw(&_UniswapV2FlashSwapper.TransactOpts, token, amount)
}
// RequestEmergencyWithdraw is a paid mutator transaction binding the contract method 0x7c7f4ce5.
//
// Solidity: function requestEmergencyWithdraw(address token, uint256 amount) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactorSession) RequestEmergencyWithdraw(token common.Address, amount *big.Int) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.RequestEmergencyWithdraw(&_UniswapV2FlashSwapper.TransactOpts, token, amount)
}
// SetAuthorizedCaller is a paid mutator transaction binding the contract method 0x454bbd29.
//
// Solidity: function setAuthorizedCaller(address caller, bool authorized) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactor) SetAuthorizedCaller(opts *bind.TransactOpts, caller common.Address, authorized bool) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.contract.Transact(opts, "setAuthorizedCaller", caller, authorized)
}
// SetAuthorizedCaller is a paid mutator transaction binding the contract method 0x454bbd29.
//
// Solidity: function setAuthorizedCaller(address caller, bool authorized) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) SetAuthorizedCaller(caller common.Address, authorized bool) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.SetAuthorizedCaller(&_UniswapV2FlashSwapper.TransactOpts, caller, authorized)
}
// SetAuthorizedCaller is a paid mutator transaction binding the contract method 0x454bbd29.
//
// Solidity: function setAuthorizedCaller(address caller, bool authorized) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactorSession) SetAuthorizedCaller(caller common.Address, authorized bool) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.SetAuthorizedCaller(&_UniswapV2FlashSwapper.TransactOpts, caller, authorized)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.contract.Transact(opts, "transferOwnership", newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.TransferOwnership(&_UniswapV2FlashSwapper.TransactOpts, newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.TransferOwnership(&_UniswapV2FlashSwapper.TransactOpts, newOwner)
}
// UniswapV2Call is a paid mutator transaction binding the contract method 0x10d1e85c.
//
// Solidity: function uniswapV2Call(address sender, uint256 amount0, uint256 amount1, bytes data) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactor) UniswapV2Call(opts *bind.TransactOpts, sender common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.contract.Transact(opts, "uniswapV2Call", sender, amount0, amount1, data)
}
// UniswapV2Call is a paid mutator transaction binding the contract method 0x10d1e85c.
//
// Solidity: function uniswapV2Call(address sender, uint256 amount0, uint256 amount1, bytes data) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) UniswapV2Call(sender common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.UniswapV2Call(&_UniswapV2FlashSwapper.TransactOpts, sender, amount0, amount1, data)
}
// UniswapV2Call is a paid mutator transaction binding the contract method 0x10d1e85c.
//
// Solidity: function uniswapV2Call(address sender, uint256 amount0, uint256 amount1, bytes data) returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactorSession) UniswapV2Call(sender common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.UniswapV2Call(&_UniswapV2FlashSwapper.TransactOpts, sender, amount0, amount1, data)
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) {
return _UniswapV2FlashSwapper.contract.RawTransact(opts, nil) // calldata is disallowed for receive function
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperSession) Receive() (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.Receive(&_UniswapV2FlashSwapper.TransactOpts)
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperTransactorSession) Receive() (*types.Transaction, error) {
return _UniswapV2FlashSwapper.Contract.Receive(&_UniswapV2FlashSwapper.TransactOpts)
}
// UniswapV2FlashSwapperEmergencyWithdrawCancelledIterator is returned from FilterEmergencyWithdrawCancelled and is used to iterate over the raw logs and unpacked data for EmergencyWithdrawCancelled events raised by the UniswapV2FlashSwapper contract.
type UniswapV2FlashSwapperEmergencyWithdrawCancelledIterator struct {
Event *UniswapV2FlashSwapperEmergencyWithdrawCancelled // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func (it *UniswapV2FlashSwapperEmergencyWithdrawCancelledIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(UniswapV2FlashSwapperEmergencyWithdrawCancelled)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(UniswapV2FlashSwapperEmergencyWithdrawCancelled)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *UniswapV2FlashSwapperEmergencyWithdrawCancelledIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *UniswapV2FlashSwapperEmergencyWithdrawCancelledIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// UniswapV2FlashSwapperEmergencyWithdrawCancelled represents a EmergencyWithdrawCancelled event raised by the UniswapV2FlashSwapper contract.
type UniswapV2FlashSwapperEmergencyWithdrawCancelled struct {
RequestId [32]byte
Raw types.Log // Blockchain specific contextual infos
}
// FilterEmergencyWithdrawCancelled is a free log retrieval operation binding the contract event 0xc8fdc0bbef3c457a504d7142a467f41bd5c16eaa1b1d316b1efef96a92457f3c.
//
// Solidity: event EmergencyWithdrawCancelled(bytes32 indexed requestId)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) FilterEmergencyWithdrawCancelled(opts *bind.FilterOpts, requestId [][32]byte) (*UniswapV2FlashSwapperEmergencyWithdrawCancelledIterator, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
logs, sub, err := _UniswapV2FlashSwapper.contract.FilterLogs(opts, "EmergencyWithdrawCancelled", requestIdRule)
if err != nil {
return nil, err
}
return &UniswapV2FlashSwapperEmergencyWithdrawCancelledIterator{contract: _UniswapV2FlashSwapper.contract, event: "EmergencyWithdrawCancelled", logs: logs, sub: sub}, nil
}
// WatchEmergencyWithdrawCancelled is a free log subscription operation binding the contract event 0xc8fdc0bbef3c457a504d7142a467f41bd5c16eaa1b1d316b1efef96a92457f3c.
//
// Solidity: event EmergencyWithdrawCancelled(bytes32 indexed requestId)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) WatchEmergencyWithdrawCancelled(opts *bind.WatchOpts, sink chan<- *UniswapV2FlashSwapperEmergencyWithdrawCancelled, requestId [][32]byte) (event.Subscription, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
logs, sub, err := _UniswapV2FlashSwapper.contract.WatchLogs(opts, "EmergencyWithdrawCancelled", requestIdRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(UniswapV2FlashSwapperEmergencyWithdrawCancelled)
if err := _UniswapV2FlashSwapper.contract.UnpackLog(event, "EmergencyWithdrawCancelled", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseEmergencyWithdrawCancelled is a log parse operation binding the contract event 0xc8fdc0bbef3c457a504d7142a467f41bd5c16eaa1b1d316b1efef96a92457f3c.
//
// Solidity: event EmergencyWithdrawCancelled(bytes32 indexed requestId)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) ParseEmergencyWithdrawCancelled(log types.Log) (*UniswapV2FlashSwapperEmergencyWithdrawCancelled, error) {
event := new(UniswapV2FlashSwapperEmergencyWithdrawCancelled)
if err := _UniswapV2FlashSwapper.contract.UnpackLog(event, "EmergencyWithdrawCancelled", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// UniswapV2FlashSwapperEmergencyWithdrawExecutedIterator is returned from FilterEmergencyWithdrawExecuted and is used to iterate over the raw logs and unpacked data for EmergencyWithdrawExecuted events raised by the UniswapV2FlashSwapper contract.
type UniswapV2FlashSwapperEmergencyWithdrawExecutedIterator struct {
Event *UniswapV2FlashSwapperEmergencyWithdrawExecuted // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func (it *UniswapV2FlashSwapperEmergencyWithdrawExecutedIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(UniswapV2FlashSwapperEmergencyWithdrawExecuted)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(UniswapV2FlashSwapperEmergencyWithdrawExecuted)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *UniswapV2FlashSwapperEmergencyWithdrawExecutedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *UniswapV2FlashSwapperEmergencyWithdrawExecutedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// UniswapV2FlashSwapperEmergencyWithdrawExecuted represents a EmergencyWithdrawExecuted event raised by the UniswapV2FlashSwapper contract.
type UniswapV2FlashSwapperEmergencyWithdrawExecuted struct {
RequestId [32]byte
Token common.Address
Amount *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterEmergencyWithdrawExecuted is a free log retrieval operation binding the contract event 0xac1588e122eedb6af5a0e5e3a5f41eea47cd8359422fc2450adef2b3492d1a59.
//
// Solidity: event EmergencyWithdrawExecuted(bytes32 indexed requestId, address indexed token, uint256 amount)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) FilterEmergencyWithdrawExecuted(opts *bind.FilterOpts, requestId [][32]byte, token []common.Address) (*UniswapV2FlashSwapperEmergencyWithdrawExecutedIterator, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
var tokenRule []interface{}
for _, tokenItem := range token {
tokenRule = append(tokenRule, tokenItem)
}
logs, sub, err := _UniswapV2FlashSwapper.contract.FilterLogs(opts, "EmergencyWithdrawExecuted", requestIdRule, tokenRule)
if err != nil {
return nil, err
}
return &UniswapV2FlashSwapperEmergencyWithdrawExecutedIterator{contract: _UniswapV2FlashSwapper.contract, event: "EmergencyWithdrawExecuted", logs: logs, sub: sub}, nil
}
// WatchEmergencyWithdrawExecuted is a free log subscription operation binding the contract event 0xac1588e122eedb6af5a0e5e3a5f41eea47cd8359422fc2450adef2b3492d1a59.
//
// Solidity: event EmergencyWithdrawExecuted(bytes32 indexed requestId, address indexed token, uint256 amount)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) WatchEmergencyWithdrawExecuted(opts *bind.WatchOpts, sink chan<- *UniswapV2FlashSwapperEmergencyWithdrawExecuted, requestId [][32]byte, token []common.Address) (event.Subscription, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
var tokenRule []interface{}
for _, tokenItem := range token {
tokenRule = append(tokenRule, tokenItem)
}
logs, sub, err := _UniswapV2FlashSwapper.contract.WatchLogs(opts, "EmergencyWithdrawExecuted", requestIdRule, tokenRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(UniswapV2FlashSwapperEmergencyWithdrawExecuted)
if err := _UniswapV2FlashSwapper.contract.UnpackLog(event, "EmergencyWithdrawExecuted", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseEmergencyWithdrawExecuted is a log parse operation binding the contract event 0xac1588e122eedb6af5a0e5e3a5f41eea47cd8359422fc2450adef2b3492d1a59.
//
// Solidity: event EmergencyWithdrawExecuted(bytes32 indexed requestId, address indexed token, uint256 amount)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) ParseEmergencyWithdrawExecuted(log types.Log) (*UniswapV2FlashSwapperEmergencyWithdrawExecuted, error) {
event := new(UniswapV2FlashSwapperEmergencyWithdrawExecuted)
if err := _UniswapV2FlashSwapper.contract.UnpackLog(event, "EmergencyWithdrawExecuted", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// UniswapV2FlashSwapperEmergencyWithdrawRequestedIterator is returned from FilterEmergencyWithdrawRequested and is used to iterate over the raw logs and unpacked data for EmergencyWithdrawRequested events raised by the UniswapV2FlashSwapper contract.
type UniswapV2FlashSwapperEmergencyWithdrawRequestedIterator struct {
Event *UniswapV2FlashSwapperEmergencyWithdrawRequested // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func (it *UniswapV2FlashSwapperEmergencyWithdrawRequestedIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(UniswapV2FlashSwapperEmergencyWithdrawRequested)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(UniswapV2FlashSwapperEmergencyWithdrawRequested)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *UniswapV2FlashSwapperEmergencyWithdrawRequestedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *UniswapV2FlashSwapperEmergencyWithdrawRequestedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// UniswapV2FlashSwapperEmergencyWithdrawRequested represents a EmergencyWithdrawRequested event raised by the UniswapV2FlashSwapper contract.
type UniswapV2FlashSwapperEmergencyWithdrawRequested struct {
RequestId [32]byte
Token common.Address
Amount *big.Int
ExecuteAfter *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterEmergencyWithdrawRequested is a free log retrieval operation binding the contract event 0xf3e5fdcc801d2636fa5ac7da5f82875c80218c24690f9c51d37007d662c4804e.
//
// Solidity: event EmergencyWithdrawRequested(bytes32 indexed requestId, address indexed token, uint256 amount, uint256 executeAfter)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) FilterEmergencyWithdrawRequested(opts *bind.FilterOpts, requestId [][32]byte, token []common.Address) (*UniswapV2FlashSwapperEmergencyWithdrawRequestedIterator, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
var tokenRule []interface{}
for _, tokenItem := range token {
tokenRule = append(tokenRule, tokenItem)
}
logs, sub, err := _UniswapV2FlashSwapper.contract.FilterLogs(opts, "EmergencyWithdrawRequested", requestIdRule, tokenRule)
if err != nil {
return nil, err
}
return &UniswapV2FlashSwapperEmergencyWithdrawRequestedIterator{contract: _UniswapV2FlashSwapper.contract, event: "EmergencyWithdrawRequested", logs: logs, sub: sub}, nil
}
// WatchEmergencyWithdrawRequested is a free log subscription operation binding the contract event 0xf3e5fdcc801d2636fa5ac7da5f82875c80218c24690f9c51d37007d662c4804e.
//
// Solidity: event EmergencyWithdrawRequested(bytes32 indexed requestId, address indexed token, uint256 amount, uint256 executeAfter)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) WatchEmergencyWithdrawRequested(opts *bind.WatchOpts, sink chan<- *UniswapV2FlashSwapperEmergencyWithdrawRequested, requestId [][32]byte, token []common.Address) (event.Subscription, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
var tokenRule []interface{}
for _, tokenItem := range token {
tokenRule = append(tokenRule, tokenItem)
}
logs, sub, err := _UniswapV2FlashSwapper.contract.WatchLogs(opts, "EmergencyWithdrawRequested", requestIdRule, tokenRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(UniswapV2FlashSwapperEmergencyWithdrawRequested)
if err := _UniswapV2FlashSwapper.contract.UnpackLog(event, "EmergencyWithdrawRequested", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseEmergencyWithdrawRequested is a log parse operation binding the contract event 0xf3e5fdcc801d2636fa5ac7da5f82875c80218c24690f9c51d37007d662c4804e.
//
// Solidity: event EmergencyWithdrawRequested(bytes32 indexed requestId, address indexed token, uint256 amount, uint256 executeAfter)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) ParseEmergencyWithdrawRequested(log types.Log) (*UniswapV2FlashSwapperEmergencyWithdrawRequested, error) {
event := new(UniswapV2FlashSwapperEmergencyWithdrawRequested)
if err := _UniswapV2FlashSwapper.contract.UnpackLog(event, "EmergencyWithdrawRequested", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// UniswapV2FlashSwapperFlashSwapExecutedIterator is returned from FilterFlashSwapExecuted and is used to iterate over the raw logs and unpacked data for FlashSwapExecuted events raised by the UniswapV2FlashSwapper contract.
type UniswapV2FlashSwapperFlashSwapExecutedIterator struct {
Event *UniswapV2FlashSwapperFlashSwapExecuted // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func (it *UniswapV2FlashSwapperFlashSwapExecutedIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(UniswapV2FlashSwapperFlashSwapExecuted)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(UniswapV2FlashSwapperFlashSwapExecuted)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *UniswapV2FlashSwapperFlashSwapExecutedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *UniswapV2FlashSwapperFlashSwapExecutedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// UniswapV2FlashSwapperFlashSwapExecuted represents a FlashSwapExecuted event raised by the UniswapV2FlashSwapper contract.
type UniswapV2FlashSwapperFlashSwapExecuted struct {
Pool common.Address
Token0 common.Address
Token1 common.Address
Amount0 *big.Int
Amount1 *big.Int
To common.Address
Raw types.Log // Blockchain specific contextual infos
}
// FilterFlashSwapExecuted is a free log retrieval operation binding the contract event 0xbb6869143c8313bafd99561992525080ebbf80680bcb6d01e342850dcf9caa85.
//
// Solidity: event FlashSwapExecuted(address indexed pool, address indexed token0, address indexed token1, uint256 amount0, uint256 amount1, address to)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) FilterFlashSwapExecuted(opts *bind.FilterOpts, pool []common.Address, token0 []common.Address, token1 []common.Address) (*UniswapV2FlashSwapperFlashSwapExecutedIterator, error) {
var poolRule []interface{}
for _, poolItem := range pool {
poolRule = append(poolRule, poolItem)
}
var token0Rule []interface{}
for _, token0Item := range token0 {
token0Rule = append(token0Rule, token0Item)
}
var token1Rule []interface{}
for _, token1Item := range token1 {
token1Rule = append(token1Rule, token1Item)
}
logs, sub, err := _UniswapV2FlashSwapper.contract.FilterLogs(opts, "FlashSwapExecuted", poolRule, token0Rule, token1Rule)
if err != nil {
return nil, err
}
return &UniswapV2FlashSwapperFlashSwapExecutedIterator{contract: _UniswapV2FlashSwapper.contract, event: "FlashSwapExecuted", logs: logs, sub: sub}, nil
}
// WatchFlashSwapExecuted is a free log subscription operation binding the contract event 0xbb6869143c8313bafd99561992525080ebbf80680bcb6d01e342850dcf9caa85.
//
// Solidity: event FlashSwapExecuted(address indexed pool, address indexed token0, address indexed token1, uint256 amount0, uint256 amount1, address to)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) WatchFlashSwapExecuted(opts *bind.WatchOpts, sink chan<- *UniswapV2FlashSwapperFlashSwapExecuted, pool []common.Address, token0 []common.Address, token1 []common.Address) (event.Subscription, error) {
var poolRule []interface{}
for _, poolItem := range pool {
poolRule = append(poolRule, poolItem)
}
var token0Rule []interface{}
for _, token0Item := range token0 {
token0Rule = append(token0Rule, token0Item)
}
var token1Rule []interface{}
for _, token1Item := range token1 {
token1Rule = append(token1Rule, token1Item)
}
logs, sub, err := _UniswapV2FlashSwapper.contract.WatchLogs(opts, "FlashSwapExecuted", poolRule, token0Rule, token1Rule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(UniswapV2FlashSwapperFlashSwapExecuted)
if err := _UniswapV2FlashSwapper.contract.UnpackLog(event, "FlashSwapExecuted", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseFlashSwapExecuted is a log parse operation binding the contract event 0xbb6869143c8313bafd99561992525080ebbf80680bcb6d01e342850dcf9caa85.
//
// Solidity: event FlashSwapExecuted(address indexed pool, address indexed token0, address indexed token1, uint256 amount0, uint256 amount1, address to)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) ParseFlashSwapExecuted(log types.Log) (*UniswapV2FlashSwapperFlashSwapExecuted, error) {
event := new(UniswapV2FlashSwapperFlashSwapExecuted)
if err := _UniswapV2FlashSwapper.contract.UnpackLog(event, "FlashSwapExecuted", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// UniswapV2FlashSwapperOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the UniswapV2FlashSwapper contract.
type UniswapV2FlashSwapperOwnershipTransferredIterator struct {
Event *UniswapV2FlashSwapperOwnershipTransferred // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func (it *UniswapV2FlashSwapperOwnershipTransferredIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(UniswapV2FlashSwapperOwnershipTransferred)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(UniswapV2FlashSwapperOwnershipTransferred)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *UniswapV2FlashSwapperOwnershipTransferredIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *UniswapV2FlashSwapperOwnershipTransferredIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// UniswapV2FlashSwapperOwnershipTransferred represents a OwnershipTransferred event raised by the UniswapV2FlashSwapper contract.
type UniswapV2FlashSwapperOwnershipTransferred struct {
PreviousOwner common.Address
NewOwner common.Address
Raw types.Log // Blockchain specific contextual infos
}
// FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
//
// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*UniswapV2FlashSwapperOwnershipTransferredIterator, error) {
var previousOwnerRule []interface{}
for _, previousOwnerItem := range previousOwner {
previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
}
var newOwnerRule []interface{}
for _, newOwnerItem := range newOwner {
newOwnerRule = append(newOwnerRule, newOwnerItem)
}
logs, sub, err := _UniswapV2FlashSwapper.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
if err != nil {
return nil, err
}
return &UniswapV2FlashSwapperOwnershipTransferredIterator{contract: _UniswapV2FlashSwapper.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil
}
// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
//
// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *UniswapV2FlashSwapperOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {
var previousOwnerRule []interface{}
for _, previousOwnerItem := range previousOwner {
previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
}
var newOwnerRule []interface{}
for _, newOwnerItem := range newOwner {
newOwnerRule = append(newOwnerRule, newOwnerItem)
}
logs, sub, err := _UniswapV2FlashSwapper.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(UniswapV2FlashSwapperOwnershipTransferred)
if err := _UniswapV2FlashSwapper.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
//
// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (_UniswapV2FlashSwapper *UniswapV2FlashSwapperFilterer) ParseOwnershipTransferred(log types.Log) (*UniswapV2FlashSwapperOwnershipTransferred, error) {
event := new(UniswapV2FlashSwapperOwnershipTransferred)
if err := _UniswapV2FlashSwapper.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}