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

1913 lines
90 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
)
// UniswapV3FlashSwapperMetaData contains all meta data concerning the UniswapV3FlashSwapper contract.
var UniswapV3FlashSwapperMetaData = &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\":\"FLASH_LOAN_TIMEOUT\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MAX_CONCURRENT_FLASH_LOANS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"addValidPool\",\"inputs\":[{\"name\":\"pool\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"authorizedCallers\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"calculateFlashSwapFee\",\"inputs\":[{\"name\":\"pool\",\"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\":\"view\"},{\"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\":\"emergencyCleanupFlashLoan\",\"inputs\":[{\"name\":\"flashId\",\"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\":\"contractIUniswapV3Factory\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getActiveFlashLoans\",\"inputs\":[{\"name\":\"user\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"removeValidPool\",\"inputs\":[{\"name\":\"pool\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"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\":\"uniswapV3FlashCallback\",\"inputs\":[{\"name\":\"fee0\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"fee1\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"validPools\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"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\":\"FlashLoanCompleted\",\"inputs\":[{\"name\":\"flashId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"pool\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"FlashLoanInitiated\",\"inputs\":[{\"name\":\"flashId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"pool\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount0\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"amount1\",\"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\"}]}]",
}
// UniswapV3FlashSwapperABI is the input ABI used to generate the binding from.
// Deprecated: Use UniswapV3FlashSwapperMetaData.ABI instead.
var UniswapV3FlashSwapperABI = UniswapV3FlashSwapperMetaData.ABI
// UniswapV3FlashSwapper is an auto generated Go binding around an Ethereum contract.
type UniswapV3FlashSwapper struct {
UniswapV3FlashSwapperCaller // Read-only binding to the contract
UniswapV3FlashSwapperTransactor // Write-only binding to the contract
UniswapV3FlashSwapperFilterer // Log filterer for contract events
}
// UniswapV3FlashSwapperCaller is an auto generated read-only Go binding around an Ethereum contract.
type UniswapV3FlashSwapperCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// UniswapV3FlashSwapperTransactor is an auto generated write-only Go binding around an Ethereum contract.
type UniswapV3FlashSwapperTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// UniswapV3FlashSwapperFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type UniswapV3FlashSwapperFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// UniswapV3FlashSwapperSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type UniswapV3FlashSwapperSession struct {
Contract *UniswapV3FlashSwapper // 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
}
// UniswapV3FlashSwapperCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type UniswapV3FlashSwapperCallerSession struct {
Contract *UniswapV3FlashSwapperCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// UniswapV3FlashSwapperTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type UniswapV3FlashSwapperTransactorSession struct {
Contract *UniswapV3FlashSwapperTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// UniswapV3FlashSwapperRaw is an auto generated low-level Go binding around an Ethereum contract.
type UniswapV3FlashSwapperRaw struct {
Contract *UniswapV3FlashSwapper // Generic contract binding to access the raw methods on
}
// UniswapV3FlashSwapperCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type UniswapV3FlashSwapperCallerRaw struct {
Contract *UniswapV3FlashSwapperCaller // Generic read-only contract binding to access the raw methods on
}
// UniswapV3FlashSwapperTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type UniswapV3FlashSwapperTransactorRaw struct {
Contract *UniswapV3FlashSwapperTransactor // Generic write-only contract binding to access the raw methods on
}
// NewUniswapV3FlashSwapper creates a new instance of UniswapV3FlashSwapper, bound to a specific deployed contract.
func NewUniswapV3FlashSwapper(address common.Address, backend bind.ContractBackend) (*UniswapV3FlashSwapper, error) {
contract, err := bindUniswapV3FlashSwapper(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &UniswapV3FlashSwapper{UniswapV3FlashSwapperCaller: UniswapV3FlashSwapperCaller{contract: contract}, UniswapV3FlashSwapperTransactor: UniswapV3FlashSwapperTransactor{contract: contract}, UniswapV3FlashSwapperFilterer: UniswapV3FlashSwapperFilterer{contract: contract}}, nil
}
// NewUniswapV3FlashSwapperCaller creates a new read-only instance of UniswapV3FlashSwapper, bound to a specific deployed contract.
func NewUniswapV3FlashSwapperCaller(address common.Address, caller bind.ContractCaller) (*UniswapV3FlashSwapperCaller, error) {
contract, err := bindUniswapV3FlashSwapper(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &UniswapV3FlashSwapperCaller{contract: contract}, nil
}
// NewUniswapV3FlashSwapperTransactor creates a new write-only instance of UniswapV3FlashSwapper, bound to a specific deployed contract.
func NewUniswapV3FlashSwapperTransactor(address common.Address, transactor bind.ContractTransactor) (*UniswapV3FlashSwapperTransactor, error) {
contract, err := bindUniswapV3FlashSwapper(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &UniswapV3FlashSwapperTransactor{contract: contract}, nil
}
// NewUniswapV3FlashSwapperFilterer creates a new log filterer instance of UniswapV3FlashSwapper, bound to a specific deployed contract.
func NewUniswapV3FlashSwapperFilterer(address common.Address, filterer bind.ContractFilterer) (*UniswapV3FlashSwapperFilterer, error) {
contract, err := bindUniswapV3FlashSwapper(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &UniswapV3FlashSwapperFilterer{contract: contract}, nil
}
// bindUniswapV3FlashSwapper binds a generic wrapper to an already deployed contract.
func bindUniswapV3FlashSwapper(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := UniswapV3FlashSwapperMetaData.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _UniswapV3FlashSwapper.Contract.UniswapV3FlashSwapperCaller.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.UniswapV3FlashSwapperTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.UniswapV3FlashSwapperTransactor.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCaller) EMERGENCYTIMELOCK(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) EMERGENCYTIMELOCK() (*big.Int, error) {
return _UniswapV3FlashSwapper.Contract.EMERGENCYTIMELOCK(&_UniswapV3FlashSwapper.CallOpts)
}
// EMERGENCYTIMELOCK is a free data retrieval call binding the contract method 0x60d7442b.
//
// Solidity: function EMERGENCY_TIMELOCK() view returns(uint256)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCallerSession) EMERGENCYTIMELOCK() (*big.Int, error) {
return _UniswapV3FlashSwapper.Contract.EMERGENCYTIMELOCK(&_UniswapV3FlashSwapper.CallOpts)
}
// FLASHLOANTIMEOUT is a free data retrieval call binding the contract method 0x37229f05.
//
// Solidity: function FLASH_LOAN_TIMEOUT() view returns(uint256)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCaller) FLASHLOANTIMEOUT(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _UniswapV3FlashSwapper.contract.Call(opts, &out, "FLASH_LOAN_TIMEOUT")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// FLASHLOANTIMEOUT is a free data retrieval call binding the contract method 0x37229f05.
//
// Solidity: function FLASH_LOAN_TIMEOUT() view returns(uint256)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) FLASHLOANTIMEOUT() (*big.Int, error) {
return _UniswapV3FlashSwapper.Contract.FLASHLOANTIMEOUT(&_UniswapV3FlashSwapper.CallOpts)
}
// FLASHLOANTIMEOUT is a free data retrieval call binding the contract method 0x37229f05.
//
// Solidity: function FLASH_LOAN_TIMEOUT() view returns(uint256)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCallerSession) FLASHLOANTIMEOUT() (*big.Int, error) {
return _UniswapV3FlashSwapper.Contract.FLASHLOANTIMEOUT(&_UniswapV3FlashSwapper.CallOpts)
}
// MAXCONCURRENTFLASHLOANS is a free data retrieval call binding the contract method 0x0515b6fa.
//
// Solidity: function MAX_CONCURRENT_FLASH_LOANS() view returns(uint256)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCaller) MAXCONCURRENTFLASHLOANS(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _UniswapV3FlashSwapper.contract.Call(opts, &out, "MAX_CONCURRENT_FLASH_LOANS")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// MAXCONCURRENTFLASHLOANS is a free data retrieval call binding the contract method 0x0515b6fa.
//
// Solidity: function MAX_CONCURRENT_FLASH_LOANS() view returns(uint256)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) MAXCONCURRENTFLASHLOANS() (*big.Int, error) {
return _UniswapV3FlashSwapper.Contract.MAXCONCURRENTFLASHLOANS(&_UniswapV3FlashSwapper.CallOpts)
}
// MAXCONCURRENTFLASHLOANS is a free data retrieval call binding the contract method 0x0515b6fa.
//
// Solidity: function MAX_CONCURRENT_FLASH_LOANS() view returns(uint256)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCallerSession) MAXCONCURRENTFLASHLOANS() (*big.Int, error) {
return _UniswapV3FlashSwapper.Contract.MAXCONCURRENTFLASHLOANS(&_UniswapV3FlashSwapper.CallOpts)
}
// AuthorizedCallers is a free data retrieval call binding the contract method 0x536fff6c.
//
// Solidity: function authorizedCallers(address ) view returns(bool)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCaller) AuthorizedCallers(opts *bind.CallOpts, arg0 common.Address) (bool, error) {
var out []interface{}
err := _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) AuthorizedCallers(arg0 common.Address) (bool, error) {
return _UniswapV3FlashSwapper.Contract.AuthorizedCallers(&_UniswapV3FlashSwapper.CallOpts, arg0)
}
// AuthorizedCallers is a free data retrieval call binding the contract method 0x536fff6c.
//
// Solidity: function authorizedCallers(address ) view returns(bool)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCallerSession) AuthorizedCallers(arg0 common.Address) (bool, error) {
return _UniswapV3FlashSwapper.Contract.AuthorizedCallers(&_UniswapV3FlashSwapper.CallOpts, arg0)
}
// CalculateFlashSwapFee is a free data retrieval call binding the contract method 0x62e0cd29.
//
// Solidity: function calculateFlashSwapFee(address pool, uint256 amount0, uint256 amount1) view returns(uint256 fee0, uint256 fee1)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCaller) CalculateFlashSwapFee(opts *bind.CallOpts, pool common.Address, amount0 *big.Int, amount1 *big.Int) (struct {
Fee0 *big.Int
Fee1 *big.Int
}, error) {
var out []interface{}
err := _UniswapV3FlashSwapper.contract.Call(opts, &out, "calculateFlashSwapFee", pool, 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 pool, uint256 amount0, uint256 amount1) view returns(uint256 fee0, uint256 fee1)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) CalculateFlashSwapFee(pool common.Address, amount0 *big.Int, amount1 *big.Int) (struct {
Fee0 *big.Int
Fee1 *big.Int
}, error) {
return _UniswapV3FlashSwapper.Contract.CalculateFlashSwapFee(&_UniswapV3FlashSwapper.CallOpts, pool, amount0, amount1)
}
// CalculateFlashSwapFee is a free data retrieval call binding the contract method 0x62e0cd29.
//
// Solidity: function calculateFlashSwapFee(address pool, uint256 amount0, uint256 amount1) view returns(uint256 fee0, uint256 fee1)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCallerSession) CalculateFlashSwapFee(pool common.Address, amount0 *big.Int, amount1 *big.Int) (struct {
Fee0 *big.Int
Fee1 *big.Int
}, error) {
return _UniswapV3FlashSwapper.Contract.CalculateFlashSwapFee(&_UniswapV3FlashSwapper.CallOpts, pool, amount0, amount1)
}
// CanExecuteEmergencyWithdraw is a free data retrieval call binding the contract method 0x2275566d.
//
// Solidity: function canExecuteEmergencyWithdraw(bytes32 requestId) view returns(bool)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCaller) CanExecuteEmergencyWithdraw(opts *bind.CallOpts, requestId [32]byte) (bool, error) {
var out []interface{}
err := _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) CanExecuteEmergencyWithdraw(requestId [32]byte) (bool, error) {
return _UniswapV3FlashSwapper.Contract.CanExecuteEmergencyWithdraw(&_UniswapV3FlashSwapper.CallOpts, requestId)
}
// CanExecuteEmergencyWithdraw is a free data retrieval call binding the contract method 0x2275566d.
//
// Solidity: function canExecuteEmergencyWithdraw(bytes32 requestId) view returns(bool)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCallerSession) CanExecuteEmergencyWithdraw(requestId [32]byte) (bool, error) {
return _UniswapV3FlashSwapper.Contract.CanExecuteEmergencyWithdraw(&_UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCaller) EmergencyRequests(opts *bind.CallOpts, arg0 [32]byte) (struct {
Token common.Address
Amount *big.Int
ExecuteAfter *big.Int
Executed bool
}, error) {
var out []interface{}
err := _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) EmergencyRequests(arg0 [32]byte) (struct {
Token common.Address
Amount *big.Int
ExecuteAfter *big.Int
Executed bool
}, error) {
return _UniswapV3FlashSwapper.Contract.EmergencyRequests(&_UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCallerSession) EmergencyRequests(arg0 [32]byte) (struct {
Token common.Address
Amount *big.Int
ExecuteAfter *big.Int
Executed bool
}, error) {
return _UniswapV3FlashSwapper.Contract.EmergencyRequests(&_UniswapV3FlashSwapper.CallOpts, arg0)
}
// Factory is a free data retrieval call binding the contract method 0xc45a0155.
//
// Solidity: function factory() view returns(address)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCaller) Factory(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) Factory() (common.Address, error) {
return _UniswapV3FlashSwapper.Contract.Factory(&_UniswapV3FlashSwapper.CallOpts)
}
// Factory is a free data retrieval call binding the contract method 0xc45a0155.
//
// Solidity: function factory() view returns(address)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCallerSession) Factory() (common.Address, error) {
return _UniswapV3FlashSwapper.Contract.Factory(&_UniswapV3FlashSwapper.CallOpts)
}
// GetActiveFlashLoans is a free data retrieval call binding the contract method 0x8facc192.
//
// Solidity: function getActiveFlashLoans(address user) view returns(uint256)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCaller) GetActiveFlashLoans(opts *bind.CallOpts, user common.Address) (*big.Int, error) {
var out []interface{}
err := _UniswapV3FlashSwapper.contract.Call(opts, &out, "getActiveFlashLoans", user)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetActiveFlashLoans is a free data retrieval call binding the contract method 0x8facc192.
//
// Solidity: function getActiveFlashLoans(address user) view returns(uint256)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) GetActiveFlashLoans(user common.Address) (*big.Int, error) {
return _UniswapV3FlashSwapper.Contract.GetActiveFlashLoans(&_UniswapV3FlashSwapper.CallOpts, user)
}
// GetActiveFlashLoans is a free data retrieval call binding the contract method 0x8facc192.
//
// Solidity: function getActiveFlashLoans(address user) view returns(uint256)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCallerSession) GetActiveFlashLoans(user common.Address) (*big.Int, error) {
return _UniswapV3FlashSwapper.Contract.GetActiveFlashLoans(&_UniswapV3FlashSwapper.CallOpts, user)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) Owner() (common.Address, error) {
return _UniswapV3FlashSwapper.Contract.Owner(&_UniswapV3FlashSwapper.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCallerSession) Owner() (common.Address, error) {
return _UniswapV3FlashSwapper.Contract.Owner(&_UniswapV3FlashSwapper.CallOpts)
}
// ValidPools is a free data retrieval call binding the contract method 0x93368fdf.
//
// Solidity: function validPools(address ) view returns(bool)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCaller) ValidPools(opts *bind.CallOpts, arg0 common.Address) (bool, error) {
var out []interface{}
err := _UniswapV3FlashSwapper.contract.Call(opts, &out, "validPools", arg0)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// ValidPools is a free data retrieval call binding the contract method 0x93368fdf.
//
// Solidity: function validPools(address ) view returns(bool)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) ValidPools(arg0 common.Address) (bool, error) {
return _UniswapV3FlashSwapper.Contract.ValidPools(&_UniswapV3FlashSwapper.CallOpts, arg0)
}
// ValidPools is a free data retrieval call binding the contract method 0x93368fdf.
//
// Solidity: function validPools(address ) view returns(bool)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperCallerSession) ValidPools(arg0 common.Address) (bool, error) {
return _UniswapV3FlashSwapper.Contract.ValidPools(&_UniswapV3FlashSwapper.CallOpts, arg0)
}
// AddValidPool is a paid mutator transaction binding the contract method 0x0abe6fb5.
//
// Solidity: function addValidPool(address pool) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) AddValidPool(opts *bind.TransactOpts, pool common.Address) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.contract.Transact(opts, "addValidPool", pool)
}
// AddValidPool is a paid mutator transaction binding the contract method 0x0abe6fb5.
//
// Solidity: function addValidPool(address pool) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) AddValidPool(pool common.Address) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.AddValidPool(&_UniswapV3FlashSwapper.TransactOpts, pool)
}
// AddValidPool is a paid mutator transaction binding the contract method 0x0abe6fb5.
//
// Solidity: function addValidPool(address pool) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) AddValidPool(pool common.Address) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.AddValidPool(&_UniswapV3FlashSwapper.TransactOpts, pool)
}
// CancelEmergencyWithdraw is a paid mutator transaction binding the contract method 0xfbe1a43f.
//
// Solidity: function cancelEmergencyWithdraw(bytes32 requestId) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) CancelEmergencyWithdraw(opts *bind.TransactOpts, requestId [32]byte) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.contract.Transact(opts, "cancelEmergencyWithdraw", requestId)
}
// CancelEmergencyWithdraw is a paid mutator transaction binding the contract method 0xfbe1a43f.
//
// Solidity: function cancelEmergencyWithdraw(bytes32 requestId) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) CancelEmergencyWithdraw(requestId [32]byte) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.CancelEmergencyWithdraw(&_UniswapV3FlashSwapper.TransactOpts, requestId)
}
// CancelEmergencyWithdraw is a paid mutator transaction binding the contract method 0xfbe1a43f.
//
// Solidity: function cancelEmergencyWithdraw(bytes32 requestId) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) CancelEmergencyWithdraw(requestId [32]byte) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.CancelEmergencyWithdraw(&_UniswapV3FlashSwapper.TransactOpts, requestId)
}
// EmergencyCleanupFlashLoan is a paid mutator transaction binding the contract method 0x2bfd3150.
//
// Solidity: function emergencyCleanupFlashLoan(bytes32 flashId) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) EmergencyCleanupFlashLoan(opts *bind.TransactOpts, flashId [32]byte) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.contract.Transact(opts, "emergencyCleanupFlashLoan", flashId)
}
// EmergencyCleanupFlashLoan is a paid mutator transaction binding the contract method 0x2bfd3150.
//
// Solidity: function emergencyCleanupFlashLoan(bytes32 flashId) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) EmergencyCleanupFlashLoan(flashId [32]byte) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.EmergencyCleanupFlashLoan(&_UniswapV3FlashSwapper.TransactOpts, flashId)
}
// EmergencyCleanupFlashLoan is a paid mutator transaction binding the contract method 0x2bfd3150.
//
// Solidity: function emergencyCleanupFlashLoan(bytes32 flashId) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) EmergencyCleanupFlashLoan(flashId [32]byte) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.EmergencyCleanupFlashLoan(&_UniswapV3FlashSwapper.TransactOpts, flashId)
}
// EmergencyWithdraw is a paid mutator transaction binding the contract method 0x95ccea67.
//
// Solidity: function emergencyWithdraw(address token, uint256 amount) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) EmergencyWithdraw(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) EmergencyWithdraw(token common.Address, amount *big.Int) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.EmergencyWithdraw(&_UniswapV3FlashSwapper.TransactOpts, token, amount)
}
// EmergencyWithdraw is a paid mutator transaction binding the contract method 0x95ccea67.
//
// Solidity: function emergencyWithdraw(address token, uint256 amount) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) EmergencyWithdraw(token common.Address, amount *big.Int) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.EmergencyWithdraw(&_UniswapV3FlashSwapper.TransactOpts, token, amount)
}
// ExecuteEmergencyWithdraw is a paid mutator transaction binding the contract method 0x9ad3ec48.
//
// Solidity: function executeEmergencyWithdraw(bytes32 requestId) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) ExecuteEmergencyWithdraw(opts *bind.TransactOpts, requestId [32]byte) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.contract.Transact(opts, "executeEmergencyWithdraw", requestId)
}
// ExecuteEmergencyWithdraw is a paid mutator transaction binding the contract method 0x9ad3ec48.
//
// Solidity: function executeEmergencyWithdraw(bytes32 requestId) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) ExecuteEmergencyWithdraw(requestId [32]byte) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.ExecuteEmergencyWithdraw(&_UniswapV3FlashSwapper.TransactOpts, requestId)
}
// ExecuteEmergencyWithdraw is a paid mutator transaction binding the contract method 0x9ad3ec48.
//
// Solidity: function executeEmergencyWithdraw(bytes32 requestId) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) ExecuteEmergencyWithdraw(requestId [32]byte) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.ExecuteEmergencyWithdraw(&_UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) ExecuteFlashSwap(opts *bind.TransactOpts, pool common.Address, params IFlashSwapperFlashSwapParams) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) ExecuteFlashSwap(pool common.Address, params IFlashSwapperFlashSwapParams) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.ExecuteFlashSwap(&_UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) ExecuteFlashSwap(pool common.Address, params IFlashSwapperFlashSwapParams) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.ExecuteFlashSwap(&_UniswapV3FlashSwapper.TransactOpts, pool, params)
}
// RemoveValidPool is a paid mutator transaction binding the contract method 0xcee5e02e.
//
// Solidity: function removeValidPool(address pool) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) RemoveValidPool(opts *bind.TransactOpts, pool common.Address) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.contract.Transact(opts, "removeValidPool", pool)
}
// RemoveValidPool is a paid mutator transaction binding the contract method 0xcee5e02e.
//
// Solidity: function removeValidPool(address pool) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) RemoveValidPool(pool common.Address) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.RemoveValidPool(&_UniswapV3FlashSwapper.TransactOpts, pool)
}
// RemoveValidPool is a paid mutator transaction binding the contract method 0xcee5e02e.
//
// Solidity: function removeValidPool(address pool) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) RemoveValidPool(pool common.Address) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.RemoveValidPool(&_UniswapV3FlashSwapper.TransactOpts, pool)
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.contract.Transact(opts, "renounceOwnership")
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) RenounceOwnership() (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.RenounceOwnership(&_UniswapV3FlashSwapper.TransactOpts)
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) RenounceOwnership() (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.RenounceOwnership(&_UniswapV3FlashSwapper.TransactOpts)
}
// RequestEmergencyWithdraw is a paid mutator transaction binding the contract method 0x7c7f4ce5.
//
// Solidity: function requestEmergencyWithdraw(address token, uint256 amount) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) RequestEmergencyWithdraw(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) RequestEmergencyWithdraw(token common.Address, amount *big.Int) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.RequestEmergencyWithdraw(&_UniswapV3FlashSwapper.TransactOpts, token, amount)
}
// RequestEmergencyWithdraw is a paid mutator transaction binding the contract method 0x7c7f4ce5.
//
// Solidity: function requestEmergencyWithdraw(address token, uint256 amount) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) RequestEmergencyWithdraw(token common.Address, amount *big.Int) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.RequestEmergencyWithdraw(&_UniswapV3FlashSwapper.TransactOpts, token, amount)
}
// SetAuthorizedCaller is a paid mutator transaction binding the contract method 0x454bbd29.
//
// Solidity: function setAuthorizedCaller(address caller, bool authorized) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) SetAuthorizedCaller(opts *bind.TransactOpts, caller common.Address, authorized bool) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) SetAuthorizedCaller(caller common.Address, authorized bool) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.SetAuthorizedCaller(&_UniswapV3FlashSwapper.TransactOpts, caller, authorized)
}
// SetAuthorizedCaller is a paid mutator transaction binding the contract method 0x454bbd29.
//
// Solidity: function setAuthorizedCaller(address caller, bool authorized) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) SetAuthorizedCaller(caller common.Address, authorized bool) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.SetAuthorizedCaller(&_UniswapV3FlashSwapper.TransactOpts, caller, authorized)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.contract.Transact(opts, "transferOwnership", newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.TransferOwnership(&_UniswapV3FlashSwapper.TransactOpts, newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.TransferOwnership(&_UniswapV3FlashSwapper.TransactOpts, newOwner)
}
// UniswapV3FlashCallback is a paid mutator transaction binding the contract method 0xe9cbafb0.
//
// Solidity: function uniswapV3FlashCallback(uint256 fee0, uint256 fee1, bytes data) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) UniswapV3FlashCallback(opts *bind.TransactOpts, fee0 *big.Int, fee1 *big.Int, data []byte) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.contract.Transact(opts, "uniswapV3FlashCallback", fee0, fee1, data)
}
// UniswapV3FlashCallback is a paid mutator transaction binding the contract method 0xe9cbafb0.
//
// Solidity: function uniswapV3FlashCallback(uint256 fee0, uint256 fee1, bytes data) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) UniswapV3FlashCallback(fee0 *big.Int, fee1 *big.Int, data []byte) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.UniswapV3FlashCallback(&_UniswapV3FlashSwapper.TransactOpts, fee0, fee1, data)
}
// UniswapV3FlashCallback is a paid mutator transaction binding the contract method 0xe9cbafb0.
//
// Solidity: function uniswapV3FlashCallback(uint256 fee0, uint256 fee1, bytes data) returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) UniswapV3FlashCallback(fee0 *big.Int, fee1 *big.Int, data []byte) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.UniswapV3FlashCallback(&_UniswapV3FlashSwapper.TransactOpts, fee0, fee1, data)
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) {
return _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperSession) Receive() (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.Receive(&_UniswapV3FlashSwapper.TransactOpts)
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperTransactorSession) Receive() (*types.Transaction, error) {
return _UniswapV3FlashSwapper.Contract.Receive(&_UniswapV3FlashSwapper.TransactOpts)
}
// UniswapV3FlashSwapperEmergencyWithdrawCancelledIterator is returned from FilterEmergencyWithdrawCancelled and is used to iterate over the raw logs and unpacked data for EmergencyWithdrawCancelled events raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperEmergencyWithdrawCancelledIterator struct {
Event *UniswapV3FlashSwapperEmergencyWithdrawCancelled // 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 *UniswapV3FlashSwapperEmergencyWithdrawCancelledIterator) 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(UniswapV3FlashSwapperEmergencyWithdrawCancelled)
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(UniswapV3FlashSwapperEmergencyWithdrawCancelled)
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 *UniswapV3FlashSwapperEmergencyWithdrawCancelledIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *UniswapV3FlashSwapperEmergencyWithdrawCancelledIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// UniswapV3FlashSwapperEmergencyWithdrawCancelled represents a EmergencyWithdrawCancelled event raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperEmergencyWithdrawCancelled 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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) FilterEmergencyWithdrawCancelled(opts *bind.FilterOpts, requestId [][32]byte) (*UniswapV3FlashSwapperEmergencyWithdrawCancelledIterator, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
logs, sub, err := _UniswapV3FlashSwapper.contract.FilterLogs(opts, "EmergencyWithdrawCancelled", requestIdRule)
if err != nil {
return nil, err
}
return &UniswapV3FlashSwapperEmergencyWithdrawCancelledIterator{contract: _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) WatchEmergencyWithdrawCancelled(opts *bind.WatchOpts, sink chan<- *UniswapV3FlashSwapperEmergencyWithdrawCancelled, requestId [][32]byte) (event.Subscription, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
logs, sub, err := _UniswapV3FlashSwapper.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(UniswapV3FlashSwapperEmergencyWithdrawCancelled)
if err := _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) ParseEmergencyWithdrawCancelled(log types.Log) (*UniswapV3FlashSwapperEmergencyWithdrawCancelled, error) {
event := new(UniswapV3FlashSwapperEmergencyWithdrawCancelled)
if err := _UniswapV3FlashSwapper.contract.UnpackLog(event, "EmergencyWithdrawCancelled", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// UniswapV3FlashSwapperEmergencyWithdrawExecutedIterator is returned from FilterEmergencyWithdrawExecuted and is used to iterate over the raw logs and unpacked data for EmergencyWithdrawExecuted events raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperEmergencyWithdrawExecutedIterator struct {
Event *UniswapV3FlashSwapperEmergencyWithdrawExecuted // 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 *UniswapV3FlashSwapperEmergencyWithdrawExecutedIterator) 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(UniswapV3FlashSwapperEmergencyWithdrawExecuted)
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(UniswapV3FlashSwapperEmergencyWithdrawExecuted)
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 *UniswapV3FlashSwapperEmergencyWithdrawExecutedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *UniswapV3FlashSwapperEmergencyWithdrawExecutedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// UniswapV3FlashSwapperEmergencyWithdrawExecuted represents a EmergencyWithdrawExecuted event raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperEmergencyWithdrawExecuted 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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) FilterEmergencyWithdrawExecuted(opts *bind.FilterOpts, requestId [][32]byte, token []common.Address) (*UniswapV3FlashSwapperEmergencyWithdrawExecutedIterator, 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 := _UniswapV3FlashSwapper.contract.FilterLogs(opts, "EmergencyWithdrawExecuted", requestIdRule, tokenRule)
if err != nil {
return nil, err
}
return &UniswapV3FlashSwapperEmergencyWithdrawExecutedIterator{contract: _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) WatchEmergencyWithdrawExecuted(opts *bind.WatchOpts, sink chan<- *UniswapV3FlashSwapperEmergencyWithdrawExecuted, 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 := _UniswapV3FlashSwapper.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(UniswapV3FlashSwapperEmergencyWithdrawExecuted)
if err := _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) ParseEmergencyWithdrawExecuted(log types.Log) (*UniswapV3FlashSwapperEmergencyWithdrawExecuted, error) {
event := new(UniswapV3FlashSwapperEmergencyWithdrawExecuted)
if err := _UniswapV3FlashSwapper.contract.UnpackLog(event, "EmergencyWithdrawExecuted", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// UniswapV3FlashSwapperEmergencyWithdrawRequestedIterator is returned from FilterEmergencyWithdrawRequested and is used to iterate over the raw logs and unpacked data for EmergencyWithdrawRequested events raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperEmergencyWithdrawRequestedIterator struct {
Event *UniswapV3FlashSwapperEmergencyWithdrawRequested // 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 *UniswapV3FlashSwapperEmergencyWithdrawRequestedIterator) 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(UniswapV3FlashSwapperEmergencyWithdrawRequested)
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(UniswapV3FlashSwapperEmergencyWithdrawRequested)
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 *UniswapV3FlashSwapperEmergencyWithdrawRequestedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *UniswapV3FlashSwapperEmergencyWithdrawRequestedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// UniswapV3FlashSwapperEmergencyWithdrawRequested represents a EmergencyWithdrawRequested event raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperEmergencyWithdrawRequested 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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) FilterEmergencyWithdrawRequested(opts *bind.FilterOpts, requestId [][32]byte, token []common.Address) (*UniswapV3FlashSwapperEmergencyWithdrawRequestedIterator, 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 := _UniswapV3FlashSwapper.contract.FilterLogs(opts, "EmergencyWithdrawRequested", requestIdRule, tokenRule)
if err != nil {
return nil, err
}
return &UniswapV3FlashSwapperEmergencyWithdrawRequestedIterator{contract: _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) WatchEmergencyWithdrawRequested(opts *bind.WatchOpts, sink chan<- *UniswapV3FlashSwapperEmergencyWithdrawRequested, 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 := _UniswapV3FlashSwapper.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(UniswapV3FlashSwapperEmergencyWithdrawRequested)
if err := _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) ParseEmergencyWithdrawRequested(log types.Log) (*UniswapV3FlashSwapperEmergencyWithdrawRequested, error) {
event := new(UniswapV3FlashSwapperEmergencyWithdrawRequested)
if err := _UniswapV3FlashSwapper.contract.UnpackLog(event, "EmergencyWithdrawRequested", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// UniswapV3FlashSwapperFlashLoanCompletedIterator is returned from FilterFlashLoanCompleted and is used to iterate over the raw logs and unpacked data for FlashLoanCompleted events raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperFlashLoanCompletedIterator struct {
Event *UniswapV3FlashSwapperFlashLoanCompleted // 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 *UniswapV3FlashSwapperFlashLoanCompletedIterator) 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(UniswapV3FlashSwapperFlashLoanCompleted)
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(UniswapV3FlashSwapperFlashLoanCompleted)
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 *UniswapV3FlashSwapperFlashLoanCompletedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *UniswapV3FlashSwapperFlashLoanCompletedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// UniswapV3FlashSwapperFlashLoanCompleted represents a FlashLoanCompleted event raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperFlashLoanCompleted struct {
FlashId [32]byte
Pool common.Address
Raw types.Log // Blockchain specific contextual infos
}
// FilterFlashLoanCompleted is a free log retrieval operation binding the contract event 0xdee01309c544a924bbb91fef416d52b22805e6a29849ab1fc91ffb9200c86995.
//
// Solidity: event FlashLoanCompleted(bytes32 indexed flashId, address indexed pool)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) FilterFlashLoanCompleted(opts *bind.FilterOpts, flashId [][32]byte, pool []common.Address) (*UniswapV3FlashSwapperFlashLoanCompletedIterator, error) {
var flashIdRule []interface{}
for _, flashIdItem := range flashId {
flashIdRule = append(flashIdRule, flashIdItem)
}
var poolRule []interface{}
for _, poolItem := range pool {
poolRule = append(poolRule, poolItem)
}
logs, sub, err := _UniswapV3FlashSwapper.contract.FilterLogs(opts, "FlashLoanCompleted", flashIdRule, poolRule)
if err != nil {
return nil, err
}
return &UniswapV3FlashSwapperFlashLoanCompletedIterator{contract: _UniswapV3FlashSwapper.contract, event: "FlashLoanCompleted", logs: logs, sub: sub}, nil
}
// WatchFlashLoanCompleted is a free log subscription operation binding the contract event 0xdee01309c544a924bbb91fef416d52b22805e6a29849ab1fc91ffb9200c86995.
//
// Solidity: event FlashLoanCompleted(bytes32 indexed flashId, address indexed pool)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) WatchFlashLoanCompleted(opts *bind.WatchOpts, sink chan<- *UniswapV3FlashSwapperFlashLoanCompleted, flashId [][32]byte, pool []common.Address) (event.Subscription, error) {
var flashIdRule []interface{}
for _, flashIdItem := range flashId {
flashIdRule = append(flashIdRule, flashIdItem)
}
var poolRule []interface{}
for _, poolItem := range pool {
poolRule = append(poolRule, poolItem)
}
logs, sub, err := _UniswapV3FlashSwapper.contract.WatchLogs(opts, "FlashLoanCompleted", flashIdRule, poolRule)
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(UniswapV3FlashSwapperFlashLoanCompleted)
if err := _UniswapV3FlashSwapper.contract.UnpackLog(event, "FlashLoanCompleted", 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
}
// ParseFlashLoanCompleted is a log parse operation binding the contract event 0xdee01309c544a924bbb91fef416d52b22805e6a29849ab1fc91ffb9200c86995.
//
// Solidity: event FlashLoanCompleted(bytes32 indexed flashId, address indexed pool)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) ParseFlashLoanCompleted(log types.Log) (*UniswapV3FlashSwapperFlashLoanCompleted, error) {
event := new(UniswapV3FlashSwapperFlashLoanCompleted)
if err := _UniswapV3FlashSwapper.contract.UnpackLog(event, "FlashLoanCompleted", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// UniswapV3FlashSwapperFlashLoanInitiatedIterator is returned from FilterFlashLoanInitiated and is used to iterate over the raw logs and unpacked data for FlashLoanInitiated events raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperFlashLoanInitiatedIterator struct {
Event *UniswapV3FlashSwapperFlashLoanInitiated // 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 *UniswapV3FlashSwapperFlashLoanInitiatedIterator) 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(UniswapV3FlashSwapperFlashLoanInitiated)
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(UniswapV3FlashSwapperFlashLoanInitiated)
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 *UniswapV3FlashSwapperFlashLoanInitiatedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *UniswapV3FlashSwapperFlashLoanInitiatedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// UniswapV3FlashSwapperFlashLoanInitiated represents a FlashLoanInitiated event raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperFlashLoanInitiated struct {
FlashId [32]byte
Pool common.Address
Amount0 *big.Int
Amount1 *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterFlashLoanInitiated is a free log retrieval operation binding the contract event 0x17de7599ca6fc82458b63cfebd5849eeeabb1ed1b8cfaa0dbb908d2c18f92f5b.
//
// Solidity: event FlashLoanInitiated(bytes32 indexed flashId, address indexed pool, uint256 amount0, uint256 amount1)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) FilterFlashLoanInitiated(opts *bind.FilterOpts, flashId [][32]byte, pool []common.Address) (*UniswapV3FlashSwapperFlashLoanInitiatedIterator, error) {
var flashIdRule []interface{}
for _, flashIdItem := range flashId {
flashIdRule = append(flashIdRule, flashIdItem)
}
var poolRule []interface{}
for _, poolItem := range pool {
poolRule = append(poolRule, poolItem)
}
logs, sub, err := _UniswapV3FlashSwapper.contract.FilterLogs(opts, "FlashLoanInitiated", flashIdRule, poolRule)
if err != nil {
return nil, err
}
return &UniswapV3FlashSwapperFlashLoanInitiatedIterator{contract: _UniswapV3FlashSwapper.contract, event: "FlashLoanInitiated", logs: logs, sub: sub}, nil
}
// WatchFlashLoanInitiated is a free log subscription operation binding the contract event 0x17de7599ca6fc82458b63cfebd5849eeeabb1ed1b8cfaa0dbb908d2c18f92f5b.
//
// Solidity: event FlashLoanInitiated(bytes32 indexed flashId, address indexed pool, uint256 amount0, uint256 amount1)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) WatchFlashLoanInitiated(opts *bind.WatchOpts, sink chan<- *UniswapV3FlashSwapperFlashLoanInitiated, flashId [][32]byte, pool []common.Address) (event.Subscription, error) {
var flashIdRule []interface{}
for _, flashIdItem := range flashId {
flashIdRule = append(flashIdRule, flashIdItem)
}
var poolRule []interface{}
for _, poolItem := range pool {
poolRule = append(poolRule, poolItem)
}
logs, sub, err := _UniswapV3FlashSwapper.contract.WatchLogs(opts, "FlashLoanInitiated", flashIdRule, poolRule)
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(UniswapV3FlashSwapperFlashLoanInitiated)
if err := _UniswapV3FlashSwapper.contract.UnpackLog(event, "FlashLoanInitiated", 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
}
// ParseFlashLoanInitiated is a log parse operation binding the contract event 0x17de7599ca6fc82458b63cfebd5849eeeabb1ed1b8cfaa0dbb908d2c18f92f5b.
//
// Solidity: event FlashLoanInitiated(bytes32 indexed flashId, address indexed pool, uint256 amount0, uint256 amount1)
func (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) ParseFlashLoanInitiated(log types.Log) (*UniswapV3FlashSwapperFlashLoanInitiated, error) {
event := new(UniswapV3FlashSwapperFlashLoanInitiated)
if err := _UniswapV3FlashSwapper.contract.UnpackLog(event, "FlashLoanInitiated", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// UniswapV3FlashSwapperFlashSwapExecutedIterator is returned from FilterFlashSwapExecuted and is used to iterate over the raw logs and unpacked data for FlashSwapExecuted events raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperFlashSwapExecutedIterator struct {
Event *UniswapV3FlashSwapperFlashSwapExecuted // 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 *UniswapV3FlashSwapperFlashSwapExecutedIterator) 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(UniswapV3FlashSwapperFlashSwapExecuted)
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(UniswapV3FlashSwapperFlashSwapExecuted)
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 *UniswapV3FlashSwapperFlashSwapExecutedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *UniswapV3FlashSwapperFlashSwapExecutedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// UniswapV3FlashSwapperFlashSwapExecuted represents a FlashSwapExecuted event raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperFlashSwapExecuted 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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) FilterFlashSwapExecuted(opts *bind.FilterOpts, pool []common.Address, token0 []common.Address, token1 []common.Address) (*UniswapV3FlashSwapperFlashSwapExecutedIterator, 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 := _UniswapV3FlashSwapper.contract.FilterLogs(opts, "FlashSwapExecuted", poolRule, token0Rule, token1Rule)
if err != nil {
return nil, err
}
return &UniswapV3FlashSwapperFlashSwapExecutedIterator{contract: _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) WatchFlashSwapExecuted(opts *bind.WatchOpts, sink chan<- *UniswapV3FlashSwapperFlashSwapExecuted, 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 := _UniswapV3FlashSwapper.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(UniswapV3FlashSwapperFlashSwapExecuted)
if err := _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) ParseFlashSwapExecuted(log types.Log) (*UniswapV3FlashSwapperFlashSwapExecuted, error) {
event := new(UniswapV3FlashSwapperFlashSwapExecuted)
if err := _UniswapV3FlashSwapper.contract.UnpackLog(event, "FlashSwapExecuted", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// UniswapV3FlashSwapperOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperOwnershipTransferredIterator struct {
Event *UniswapV3FlashSwapperOwnershipTransferred // 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 *UniswapV3FlashSwapperOwnershipTransferredIterator) 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(UniswapV3FlashSwapperOwnershipTransferred)
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(UniswapV3FlashSwapperOwnershipTransferred)
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 *UniswapV3FlashSwapperOwnershipTransferredIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *UniswapV3FlashSwapperOwnershipTransferredIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// UniswapV3FlashSwapperOwnershipTransferred represents a OwnershipTransferred event raised by the UniswapV3FlashSwapper contract.
type UniswapV3FlashSwapperOwnershipTransferred 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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*UniswapV3FlashSwapperOwnershipTransferredIterator, 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 := _UniswapV3FlashSwapper.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
if err != nil {
return nil, err
}
return &UniswapV3FlashSwapperOwnershipTransferredIterator{contract: _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *UniswapV3FlashSwapperOwnershipTransferred, 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 := _UniswapV3FlashSwapper.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(UniswapV3FlashSwapperOwnershipTransferred)
if err := _UniswapV3FlashSwapper.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 (_UniswapV3FlashSwapper *UniswapV3FlashSwapperFilterer) ParseOwnershipTransferred(log types.Log) (*UniswapV3FlashSwapperOwnershipTransferred, error) {
event := new(UniswapV3FlashSwapperOwnershipTransferred)
if err := _UniswapV3FlashSwapper.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}