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

1998 lines
93 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
)
// IArbitrageArbitrageParams is an auto generated low-level Go binding around an user-defined struct.
type IArbitrageArbitrageParams struct {
Tokens []common.Address
Pools []common.Address
Amounts []*big.Int
SwapData [][]byte
MinProfit *big.Int
}
// IArbitrageTriangularArbitrageParams is an auto generated low-level Go binding around an user-defined struct.
type IArbitrageTriangularArbitrageParams struct {
TokenA common.Address
TokenB common.Address
TokenC common.Address
PoolAB common.Address
PoolBC common.Address
PoolCA common.Address
AmountIn *big.Int
MinProfit *big.Int
SwapDataAB []byte
SwapDataBC []byte
SwapDataCA []byte
}
// ArbitrageExecutorMetaData contains all meta data concerning the ArbitrageExecutor contract.
var ArbitrageExecutorMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_flashSwapper\",\"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\":\"addSwapSelector\",\"inputs\":[{\"name\":\"selector\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"allowedSwapSelectors\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"authorizedCallers\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"authorizedDEXes\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"calculateArbitrageProfit\",\"inputs\":[{\"name\":\"params\",\"type\":\"tuple\",\"internalType\":\"structIArbitrage.ArbitrageParams\",\"components\":[{\"name\":\"tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"pools\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"amounts\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"swapData\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"},{\"name\":\"minProfit\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"outputs\":[{\"name\":\"expectedProfit\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"calculateTriangularArbitrageProfit\",\"inputs\":[{\"name\":\"params\",\"type\":\"tuple\",\"internalType\":\"structIArbitrage.TriangularArbitrageParams\",\"components\":[{\"name\":\"tokenA\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"tokenB\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"tokenC\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"poolAB\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"poolBC\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"poolCA\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amountIn\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"minProfit\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"swapDataAB\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"swapDataBC\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"swapDataCA\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[{\"name\":\"expectedProfit\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"pure\"},{\"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\":\"executeArbitrage\",\"inputs\":[{\"name\":\"params\",\"type\":\"tuple\",\"internalType\":\"structIArbitrage.ArbitrageParams\",\"components\":[{\"name\":\"tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"pools\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"amounts\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"swapData\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"},{\"name\":\"minProfit\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"executeEmergencyWithdraw\",\"inputs\":[{\"name\":\"requestId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"executeTriangularArbitrage\",\"inputs\":[{\"name\":\"params\",\"type\":\"tuple\",\"internalType\":\"structIArbitrage.TriangularArbitrageParams\",\"components\":[{\"name\":\"tokenA\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"tokenB\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"tokenC\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"poolAB\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"poolBC\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"poolCA\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amountIn\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"minProfit\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"swapDataAB\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"swapDataBC\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"swapDataCA\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"flashSwapper\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIFlashSwapper\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isSwapSelectorAllowed\",\"inputs\":[{\"name\":\"selector\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"removeSwapSelector\",\"inputs\":[{\"name\":\"selector\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"}],\"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\":\"setAuthorizedDEX\",\"inputs\":[{\"name\":\"dex\",\"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\":\"event\",\"name\":\"ArbitrageExecuted\",\"inputs\":[{\"name\":\"initiator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"tokens\",\"type\":\"address[]\",\"indexed\":false,\"internalType\":\"address[]\"},{\"name\":\"amounts\",\"type\":\"uint256[]\",\"indexed\":false,\"internalType\":\"uint256[]\"},{\"name\":\"profit\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"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\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SwapSelectorAdded\",\"inputs\":[{\"name\":\"selector\",\"type\":\"bytes4\",\"indexed\":true,\"internalType\":\"bytes4\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SwapSelectorRemoved\",\"inputs\":[{\"name\":\"selector\",\"type\":\"bytes4\",\"indexed\":true,\"internalType\":\"bytes4\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"TriangularArbitrageExecuted\",\"inputs\":[{\"name\":\"initiator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"tokenA\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"tokenB\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"tokenC\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amountIn\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"profit\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"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\":\"InsufficientLiquidity\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidFee\",\"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\"}]},{\"type\":\"error\",\"name\":\"ZeroAmount\",\"inputs\":[]}]",
}
// ArbitrageExecutorABI is the input ABI used to generate the binding from.
// Deprecated: Use ArbitrageExecutorMetaData.ABI instead.
var ArbitrageExecutorABI = ArbitrageExecutorMetaData.ABI
// ArbitrageExecutor is an auto generated Go binding around an Ethereum contract.
type ArbitrageExecutor struct {
ArbitrageExecutorCaller // Read-only binding to the contract
ArbitrageExecutorTransactor // Write-only binding to the contract
ArbitrageExecutorFilterer // Log filterer for contract events
}
// ArbitrageExecutorCaller is an auto generated read-only Go binding around an Ethereum contract.
type ArbitrageExecutorCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ArbitrageExecutorTransactor is an auto generated write-only Go binding around an Ethereum contract.
type ArbitrageExecutorTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ArbitrageExecutorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type ArbitrageExecutorFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ArbitrageExecutorSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type ArbitrageExecutorSession struct {
Contract *ArbitrageExecutor // 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
}
// ArbitrageExecutorCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type ArbitrageExecutorCallerSession struct {
Contract *ArbitrageExecutorCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// ArbitrageExecutorTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type ArbitrageExecutorTransactorSession struct {
Contract *ArbitrageExecutorTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// ArbitrageExecutorRaw is an auto generated low-level Go binding around an Ethereum contract.
type ArbitrageExecutorRaw struct {
Contract *ArbitrageExecutor // Generic contract binding to access the raw methods on
}
// ArbitrageExecutorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type ArbitrageExecutorCallerRaw struct {
Contract *ArbitrageExecutorCaller // Generic read-only contract binding to access the raw methods on
}
// ArbitrageExecutorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type ArbitrageExecutorTransactorRaw struct {
Contract *ArbitrageExecutorTransactor // Generic write-only contract binding to access the raw methods on
}
// NewArbitrageExecutor creates a new instance of ArbitrageExecutor, bound to a specific deployed contract.
func NewArbitrageExecutor(address common.Address, backend bind.ContractBackend) (*ArbitrageExecutor, error) {
contract, err := bindArbitrageExecutor(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &ArbitrageExecutor{ArbitrageExecutorCaller: ArbitrageExecutorCaller{contract: contract}, ArbitrageExecutorTransactor: ArbitrageExecutorTransactor{contract: contract}, ArbitrageExecutorFilterer: ArbitrageExecutorFilterer{contract: contract}}, nil
}
// NewArbitrageExecutorCaller creates a new read-only instance of ArbitrageExecutor, bound to a specific deployed contract.
func NewArbitrageExecutorCaller(address common.Address, caller bind.ContractCaller) (*ArbitrageExecutorCaller, error) {
contract, err := bindArbitrageExecutor(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &ArbitrageExecutorCaller{contract: contract}, nil
}
// NewArbitrageExecutorTransactor creates a new write-only instance of ArbitrageExecutor, bound to a specific deployed contract.
func NewArbitrageExecutorTransactor(address common.Address, transactor bind.ContractTransactor) (*ArbitrageExecutorTransactor, error) {
contract, err := bindArbitrageExecutor(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &ArbitrageExecutorTransactor{contract: contract}, nil
}
// NewArbitrageExecutorFilterer creates a new log filterer instance of ArbitrageExecutor, bound to a specific deployed contract.
func NewArbitrageExecutorFilterer(address common.Address, filterer bind.ContractFilterer) (*ArbitrageExecutorFilterer, error) {
contract, err := bindArbitrageExecutor(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &ArbitrageExecutorFilterer{contract: contract}, nil
}
// bindArbitrageExecutor binds a generic wrapper to an already deployed contract.
func bindArbitrageExecutor(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := ArbitrageExecutorMetaData.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 (_ArbitrageExecutor *ArbitrageExecutorRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _ArbitrageExecutor.Contract.ArbitrageExecutorCaller.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 (_ArbitrageExecutor *ArbitrageExecutorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.ArbitrageExecutorTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_ArbitrageExecutor *ArbitrageExecutorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.ArbitrageExecutorTransactor.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 (_ArbitrageExecutor *ArbitrageExecutorCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_ArbitrageExecutor *ArbitrageExecutorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorCaller) EMERGENCYTIMELOCK(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorSession) EMERGENCYTIMELOCK() (*big.Int, error) {
return _ArbitrageExecutor.Contract.EMERGENCYTIMELOCK(&_ArbitrageExecutor.CallOpts)
}
// EMERGENCYTIMELOCK is a free data retrieval call binding the contract method 0x60d7442b.
//
// Solidity: function EMERGENCY_TIMELOCK() view returns(uint256)
func (_ArbitrageExecutor *ArbitrageExecutorCallerSession) EMERGENCYTIMELOCK() (*big.Int, error) {
return _ArbitrageExecutor.Contract.EMERGENCYTIMELOCK(&_ArbitrageExecutor.CallOpts)
}
// AllowedSwapSelectors is a free data retrieval call binding the contract method 0x6f1047ab.
//
// Solidity: function allowedSwapSelectors(bytes4 ) view returns(bool)
func (_ArbitrageExecutor *ArbitrageExecutorCaller) AllowedSwapSelectors(opts *bind.CallOpts, arg0 [4]byte) (bool, error) {
var out []interface{}
err := _ArbitrageExecutor.contract.Call(opts, &out, "allowedSwapSelectors", arg0)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// AllowedSwapSelectors is a free data retrieval call binding the contract method 0x6f1047ab.
//
// Solidity: function allowedSwapSelectors(bytes4 ) view returns(bool)
func (_ArbitrageExecutor *ArbitrageExecutorSession) AllowedSwapSelectors(arg0 [4]byte) (bool, error) {
return _ArbitrageExecutor.Contract.AllowedSwapSelectors(&_ArbitrageExecutor.CallOpts, arg0)
}
// AllowedSwapSelectors is a free data retrieval call binding the contract method 0x6f1047ab.
//
// Solidity: function allowedSwapSelectors(bytes4 ) view returns(bool)
func (_ArbitrageExecutor *ArbitrageExecutorCallerSession) AllowedSwapSelectors(arg0 [4]byte) (bool, error) {
return _ArbitrageExecutor.Contract.AllowedSwapSelectors(&_ArbitrageExecutor.CallOpts, arg0)
}
// AuthorizedCallers is a free data retrieval call binding the contract method 0x536fff6c.
//
// Solidity: function authorizedCallers(address ) view returns(bool)
func (_ArbitrageExecutor *ArbitrageExecutorCaller) AuthorizedCallers(opts *bind.CallOpts, arg0 common.Address) (bool, error) {
var out []interface{}
err := _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorSession) AuthorizedCallers(arg0 common.Address) (bool, error) {
return _ArbitrageExecutor.Contract.AuthorizedCallers(&_ArbitrageExecutor.CallOpts, arg0)
}
// AuthorizedCallers is a free data retrieval call binding the contract method 0x536fff6c.
//
// Solidity: function authorizedCallers(address ) view returns(bool)
func (_ArbitrageExecutor *ArbitrageExecutorCallerSession) AuthorizedCallers(arg0 common.Address) (bool, error) {
return _ArbitrageExecutor.Contract.AuthorizedCallers(&_ArbitrageExecutor.CallOpts, arg0)
}
// AuthorizedDEXes is a free data retrieval call binding the contract method 0xcf3818f9.
//
// Solidity: function authorizedDEXes(address ) view returns(bool)
func (_ArbitrageExecutor *ArbitrageExecutorCaller) AuthorizedDEXes(opts *bind.CallOpts, arg0 common.Address) (bool, error) {
var out []interface{}
err := _ArbitrageExecutor.contract.Call(opts, &out, "authorizedDEXes", arg0)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// AuthorizedDEXes is a free data retrieval call binding the contract method 0xcf3818f9.
//
// Solidity: function authorizedDEXes(address ) view returns(bool)
func (_ArbitrageExecutor *ArbitrageExecutorSession) AuthorizedDEXes(arg0 common.Address) (bool, error) {
return _ArbitrageExecutor.Contract.AuthorizedDEXes(&_ArbitrageExecutor.CallOpts, arg0)
}
// AuthorizedDEXes is a free data retrieval call binding the contract method 0xcf3818f9.
//
// Solidity: function authorizedDEXes(address ) view returns(bool)
func (_ArbitrageExecutor *ArbitrageExecutorCallerSession) AuthorizedDEXes(arg0 common.Address) (bool, error) {
return _ArbitrageExecutor.Contract.AuthorizedDEXes(&_ArbitrageExecutor.CallOpts, arg0)
}
// CalculateArbitrageProfit is a free data retrieval call binding the contract method 0x8f5268a8.
//
// Solidity: function calculateArbitrageProfit((address[],address[],uint256[],bytes[],uint256) params) pure returns(uint256 expectedProfit)
func (_ArbitrageExecutor *ArbitrageExecutorCaller) CalculateArbitrageProfit(opts *bind.CallOpts, params IArbitrageArbitrageParams) (*big.Int, error) {
var out []interface{}
err := _ArbitrageExecutor.contract.Call(opts, &out, "calculateArbitrageProfit", params)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// CalculateArbitrageProfit is a free data retrieval call binding the contract method 0x8f5268a8.
//
// Solidity: function calculateArbitrageProfit((address[],address[],uint256[],bytes[],uint256) params) pure returns(uint256 expectedProfit)
func (_ArbitrageExecutor *ArbitrageExecutorSession) CalculateArbitrageProfit(params IArbitrageArbitrageParams) (*big.Int, error) {
return _ArbitrageExecutor.Contract.CalculateArbitrageProfit(&_ArbitrageExecutor.CallOpts, params)
}
// CalculateArbitrageProfit is a free data retrieval call binding the contract method 0x8f5268a8.
//
// Solidity: function calculateArbitrageProfit((address[],address[],uint256[],bytes[],uint256) params) pure returns(uint256 expectedProfit)
func (_ArbitrageExecutor *ArbitrageExecutorCallerSession) CalculateArbitrageProfit(params IArbitrageArbitrageParams) (*big.Int, error) {
return _ArbitrageExecutor.Contract.CalculateArbitrageProfit(&_ArbitrageExecutor.CallOpts, params)
}
// CalculateTriangularArbitrageProfit is a free data retrieval call binding the contract method 0x9f1bfb6a.
//
// Solidity: function calculateTriangularArbitrageProfit((address,address,address,address,address,address,uint256,uint256,bytes,bytes,bytes) params) pure returns(uint256 expectedProfit)
func (_ArbitrageExecutor *ArbitrageExecutorCaller) CalculateTriangularArbitrageProfit(opts *bind.CallOpts, params IArbitrageTriangularArbitrageParams) (*big.Int, error) {
var out []interface{}
err := _ArbitrageExecutor.contract.Call(opts, &out, "calculateTriangularArbitrageProfit", params)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// CalculateTriangularArbitrageProfit is a free data retrieval call binding the contract method 0x9f1bfb6a.
//
// Solidity: function calculateTriangularArbitrageProfit((address,address,address,address,address,address,uint256,uint256,bytes,bytes,bytes) params) pure returns(uint256 expectedProfit)
func (_ArbitrageExecutor *ArbitrageExecutorSession) CalculateTriangularArbitrageProfit(params IArbitrageTriangularArbitrageParams) (*big.Int, error) {
return _ArbitrageExecutor.Contract.CalculateTriangularArbitrageProfit(&_ArbitrageExecutor.CallOpts, params)
}
// CalculateTriangularArbitrageProfit is a free data retrieval call binding the contract method 0x9f1bfb6a.
//
// Solidity: function calculateTriangularArbitrageProfit((address,address,address,address,address,address,uint256,uint256,bytes,bytes,bytes) params) pure returns(uint256 expectedProfit)
func (_ArbitrageExecutor *ArbitrageExecutorCallerSession) CalculateTriangularArbitrageProfit(params IArbitrageTriangularArbitrageParams) (*big.Int, error) {
return _ArbitrageExecutor.Contract.CalculateTriangularArbitrageProfit(&_ArbitrageExecutor.CallOpts, params)
}
// 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 (_ArbitrageExecutor *ArbitrageExecutorCaller) EmergencyRequests(opts *bind.CallOpts, arg0 [32]byte) (struct {
Token common.Address
Amount *big.Int
ExecuteAfter *big.Int
Executed bool
}, error) {
var out []interface{}
err := _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorSession) EmergencyRequests(arg0 [32]byte) (struct {
Token common.Address
Amount *big.Int
ExecuteAfter *big.Int
Executed bool
}, error) {
return _ArbitrageExecutor.Contract.EmergencyRequests(&_ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorCallerSession) EmergencyRequests(arg0 [32]byte) (struct {
Token common.Address
Amount *big.Int
ExecuteAfter *big.Int
Executed bool
}, error) {
return _ArbitrageExecutor.Contract.EmergencyRequests(&_ArbitrageExecutor.CallOpts, arg0)
}
// FlashSwapper is a free data retrieval call binding the contract method 0xda77dd75.
//
// Solidity: function flashSwapper() view returns(address)
func (_ArbitrageExecutor *ArbitrageExecutorCaller) FlashSwapper(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _ArbitrageExecutor.contract.Call(opts, &out, "flashSwapper")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// FlashSwapper is a free data retrieval call binding the contract method 0xda77dd75.
//
// Solidity: function flashSwapper() view returns(address)
func (_ArbitrageExecutor *ArbitrageExecutorSession) FlashSwapper() (common.Address, error) {
return _ArbitrageExecutor.Contract.FlashSwapper(&_ArbitrageExecutor.CallOpts)
}
// FlashSwapper is a free data retrieval call binding the contract method 0xda77dd75.
//
// Solidity: function flashSwapper() view returns(address)
func (_ArbitrageExecutor *ArbitrageExecutorCallerSession) FlashSwapper() (common.Address, error) {
return _ArbitrageExecutor.Contract.FlashSwapper(&_ArbitrageExecutor.CallOpts)
}
// IsSwapSelectorAllowed is a free data retrieval call binding the contract method 0x99f0e34e.
//
// Solidity: function isSwapSelectorAllowed(bytes4 selector) view returns(bool)
func (_ArbitrageExecutor *ArbitrageExecutorCaller) IsSwapSelectorAllowed(opts *bind.CallOpts, selector [4]byte) (bool, error) {
var out []interface{}
err := _ArbitrageExecutor.contract.Call(opts, &out, "isSwapSelectorAllowed", selector)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// IsSwapSelectorAllowed is a free data retrieval call binding the contract method 0x99f0e34e.
//
// Solidity: function isSwapSelectorAllowed(bytes4 selector) view returns(bool)
func (_ArbitrageExecutor *ArbitrageExecutorSession) IsSwapSelectorAllowed(selector [4]byte) (bool, error) {
return _ArbitrageExecutor.Contract.IsSwapSelectorAllowed(&_ArbitrageExecutor.CallOpts, selector)
}
// IsSwapSelectorAllowed is a free data retrieval call binding the contract method 0x99f0e34e.
//
// Solidity: function isSwapSelectorAllowed(bytes4 selector) view returns(bool)
func (_ArbitrageExecutor *ArbitrageExecutorCallerSession) IsSwapSelectorAllowed(selector [4]byte) (bool, error) {
return _ArbitrageExecutor.Contract.IsSwapSelectorAllowed(&_ArbitrageExecutor.CallOpts, selector)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_ArbitrageExecutor *ArbitrageExecutorCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorSession) Owner() (common.Address, error) {
return _ArbitrageExecutor.Contract.Owner(&_ArbitrageExecutor.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_ArbitrageExecutor *ArbitrageExecutorCallerSession) Owner() (common.Address, error) {
return _ArbitrageExecutor.Contract.Owner(&_ArbitrageExecutor.CallOpts)
}
// AddSwapSelector is a paid mutator transaction binding the contract method 0x2c68b0e4.
//
// Solidity: function addSwapSelector(bytes4 selector) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactor) AddSwapSelector(opts *bind.TransactOpts, selector [4]byte) (*types.Transaction, error) {
return _ArbitrageExecutor.contract.Transact(opts, "addSwapSelector", selector)
}
// AddSwapSelector is a paid mutator transaction binding the contract method 0x2c68b0e4.
//
// Solidity: function addSwapSelector(bytes4 selector) returns()
func (_ArbitrageExecutor *ArbitrageExecutorSession) AddSwapSelector(selector [4]byte) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.AddSwapSelector(&_ArbitrageExecutor.TransactOpts, selector)
}
// AddSwapSelector is a paid mutator transaction binding the contract method 0x2c68b0e4.
//
// Solidity: function addSwapSelector(bytes4 selector) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactorSession) AddSwapSelector(selector [4]byte) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.AddSwapSelector(&_ArbitrageExecutor.TransactOpts, selector)
}
// CancelEmergencyWithdraw is a paid mutator transaction binding the contract method 0xfbe1a43f.
//
// Solidity: function cancelEmergencyWithdraw(bytes32 requestId) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactor) CancelEmergencyWithdraw(opts *bind.TransactOpts, requestId [32]byte) (*types.Transaction, error) {
return _ArbitrageExecutor.contract.Transact(opts, "cancelEmergencyWithdraw", requestId)
}
// CancelEmergencyWithdraw is a paid mutator transaction binding the contract method 0xfbe1a43f.
//
// Solidity: function cancelEmergencyWithdraw(bytes32 requestId) returns()
func (_ArbitrageExecutor *ArbitrageExecutorSession) CancelEmergencyWithdraw(requestId [32]byte) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.CancelEmergencyWithdraw(&_ArbitrageExecutor.TransactOpts, requestId)
}
// CancelEmergencyWithdraw is a paid mutator transaction binding the contract method 0xfbe1a43f.
//
// Solidity: function cancelEmergencyWithdraw(bytes32 requestId) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactorSession) CancelEmergencyWithdraw(requestId [32]byte) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.CancelEmergencyWithdraw(&_ArbitrageExecutor.TransactOpts, requestId)
}
// ExecuteArbitrage is a paid mutator transaction binding the contract method 0x0c6111f7.
//
// Solidity: function executeArbitrage((address[],address[],uint256[],bytes[],uint256) params) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactor) ExecuteArbitrage(opts *bind.TransactOpts, params IArbitrageArbitrageParams) (*types.Transaction, error) {
return _ArbitrageExecutor.contract.Transact(opts, "executeArbitrage", params)
}
// ExecuteArbitrage is a paid mutator transaction binding the contract method 0x0c6111f7.
//
// Solidity: function executeArbitrage((address[],address[],uint256[],bytes[],uint256) params) returns()
func (_ArbitrageExecutor *ArbitrageExecutorSession) ExecuteArbitrage(params IArbitrageArbitrageParams) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.ExecuteArbitrage(&_ArbitrageExecutor.TransactOpts, params)
}
// ExecuteArbitrage is a paid mutator transaction binding the contract method 0x0c6111f7.
//
// Solidity: function executeArbitrage((address[],address[],uint256[],bytes[],uint256) params) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactorSession) ExecuteArbitrage(params IArbitrageArbitrageParams) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.ExecuteArbitrage(&_ArbitrageExecutor.TransactOpts, params)
}
// ExecuteEmergencyWithdraw is a paid mutator transaction binding the contract method 0x9ad3ec48.
//
// Solidity: function executeEmergencyWithdraw(bytes32 requestId) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactor) ExecuteEmergencyWithdraw(opts *bind.TransactOpts, requestId [32]byte) (*types.Transaction, error) {
return _ArbitrageExecutor.contract.Transact(opts, "executeEmergencyWithdraw", requestId)
}
// ExecuteEmergencyWithdraw is a paid mutator transaction binding the contract method 0x9ad3ec48.
//
// Solidity: function executeEmergencyWithdraw(bytes32 requestId) returns()
func (_ArbitrageExecutor *ArbitrageExecutorSession) ExecuteEmergencyWithdraw(requestId [32]byte) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.ExecuteEmergencyWithdraw(&_ArbitrageExecutor.TransactOpts, requestId)
}
// ExecuteEmergencyWithdraw is a paid mutator transaction binding the contract method 0x9ad3ec48.
//
// Solidity: function executeEmergencyWithdraw(bytes32 requestId) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactorSession) ExecuteEmergencyWithdraw(requestId [32]byte) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.ExecuteEmergencyWithdraw(&_ArbitrageExecutor.TransactOpts, requestId)
}
// ExecuteTriangularArbitrage is a paid mutator transaction binding the contract method 0x1e9ece24.
//
// Solidity: function executeTriangularArbitrage((address,address,address,address,address,address,uint256,uint256,bytes,bytes,bytes) params) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactor) ExecuteTriangularArbitrage(opts *bind.TransactOpts, params IArbitrageTriangularArbitrageParams) (*types.Transaction, error) {
return _ArbitrageExecutor.contract.Transact(opts, "executeTriangularArbitrage", params)
}
// ExecuteTriangularArbitrage is a paid mutator transaction binding the contract method 0x1e9ece24.
//
// Solidity: function executeTriangularArbitrage((address,address,address,address,address,address,uint256,uint256,bytes,bytes,bytes) params) returns()
func (_ArbitrageExecutor *ArbitrageExecutorSession) ExecuteTriangularArbitrage(params IArbitrageTriangularArbitrageParams) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.ExecuteTriangularArbitrage(&_ArbitrageExecutor.TransactOpts, params)
}
// ExecuteTriangularArbitrage is a paid mutator transaction binding the contract method 0x1e9ece24.
//
// Solidity: function executeTriangularArbitrage((address,address,address,address,address,address,uint256,uint256,bytes,bytes,bytes) params) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactorSession) ExecuteTriangularArbitrage(params IArbitrageTriangularArbitrageParams) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.ExecuteTriangularArbitrage(&_ArbitrageExecutor.TransactOpts, params)
}
// RemoveSwapSelector is a paid mutator transaction binding the contract method 0xe1292382.
//
// Solidity: function removeSwapSelector(bytes4 selector) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactor) RemoveSwapSelector(opts *bind.TransactOpts, selector [4]byte) (*types.Transaction, error) {
return _ArbitrageExecutor.contract.Transact(opts, "removeSwapSelector", selector)
}
// RemoveSwapSelector is a paid mutator transaction binding the contract method 0xe1292382.
//
// Solidity: function removeSwapSelector(bytes4 selector) returns()
func (_ArbitrageExecutor *ArbitrageExecutorSession) RemoveSwapSelector(selector [4]byte) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.RemoveSwapSelector(&_ArbitrageExecutor.TransactOpts, selector)
}
// RemoveSwapSelector is a paid mutator transaction binding the contract method 0xe1292382.
//
// Solidity: function removeSwapSelector(bytes4 selector) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactorSession) RemoveSwapSelector(selector [4]byte) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.RemoveSwapSelector(&_ArbitrageExecutor.TransactOpts, selector)
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
return _ArbitrageExecutor.contract.Transact(opts, "renounceOwnership")
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_ArbitrageExecutor *ArbitrageExecutorSession) RenounceOwnership() (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.RenounceOwnership(&_ArbitrageExecutor.TransactOpts)
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactorSession) RenounceOwnership() (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.RenounceOwnership(&_ArbitrageExecutor.TransactOpts)
}
// RequestEmergencyWithdraw is a paid mutator transaction binding the contract method 0x7c7f4ce5.
//
// Solidity: function requestEmergencyWithdraw(address token, uint256 amount) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactor) RequestEmergencyWithdraw(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error) {
return _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorSession) RequestEmergencyWithdraw(token common.Address, amount *big.Int) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.RequestEmergencyWithdraw(&_ArbitrageExecutor.TransactOpts, token, amount)
}
// RequestEmergencyWithdraw is a paid mutator transaction binding the contract method 0x7c7f4ce5.
//
// Solidity: function requestEmergencyWithdraw(address token, uint256 amount) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactorSession) RequestEmergencyWithdraw(token common.Address, amount *big.Int) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.RequestEmergencyWithdraw(&_ArbitrageExecutor.TransactOpts, token, amount)
}
// SetAuthorizedCaller is a paid mutator transaction binding the contract method 0x454bbd29.
//
// Solidity: function setAuthorizedCaller(address caller, bool authorized) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactor) SetAuthorizedCaller(opts *bind.TransactOpts, caller common.Address, authorized bool) (*types.Transaction, error) {
return _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorSession) SetAuthorizedCaller(caller common.Address, authorized bool) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.SetAuthorizedCaller(&_ArbitrageExecutor.TransactOpts, caller, authorized)
}
// SetAuthorizedCaller is a paid mutator transaction binding the contract method 0x454bbd29.
//
// Solidity: function setAuthorizedCaller(address caller, bool authorized) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactorSession) SetAuthorizedCaller(caller common.Address, authorized bool) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.SetAuthorizedCaller(&_ArbitrageExecutor.TransactOpts, caller, authorized)
}
// SetAuthorizedDEX is a paid mutator transaction binding the contract method 0x8dce7ff3.
//
// Solidity: function setAuthorizedDEX(address dex, bool authorized) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactor) SetAuthorizedDEX(opts *bind.TransactOpts, dex common.Address, authorized bool) (*types.Transaction, error) {
return _ArbitrageExecutor.contract.Transact(opts, "setAuthorizedDEX", dex, authorized)
}
// SetAuthorizedDEX is a paid mutator transaction binding the contract method 0x8dce7ff3.
//
// Solidity: function setAuthorizedDEX(address dex, bool authorized) returns()
func (_ArbitrageExecutor *ArbitrageExecutorSession) SetAuthorizedDEX(dex common.Address, authorized bool) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.SetAuthorizedDEX(&_ArbitrageExecutor.TransactOpts, dex, authorized)
}
// SetAuthorizedDEX is a paid mutator transaction binding the contract method 0x8dce7ff3.
//
// Solidity: function setAuthorizedDEX(address dex, bool authorized) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactorSession) SetAuthorizedDEX(dex common.Address, authorized bool) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.SetAuthorizedDEX(&_ArbitrageExecutor.TransactOpts, dex, authorized)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
return _ArbitrageExecutor.contract.Transact(opts, "transferOwnership", newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_ArbitrageExecutor *ArbitrageExecutorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.TransferOwnership(&_ArbitrageExecutor.TransactOpts, newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.TransferOwnership(&_ArbitrageExecutor.TransactOpts, newOwner)
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) {
return _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorSession) Receive() (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.Receive(&_ArbitrageExecutor.TransactOpts)
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_ArbitrageExecutor *ArbitrageExecutorTransactorSession) Receive() (*types.Transaction, error) {
return _ArbitrageExecutor.Contract.Receive(&_ArbitrageExecutor.TransactOpts)
}
// ArbitrageExecutorArbitrageExecutedIterator is returned from FilterArbitrageExecuted and is used to iterate over the raw logs and unpacked data for ArbitrageExecuted events raised by the ArbitrageExecutor contract.
type ArbitrageExecutorArbitrageExecutedIterator struct {
Event *ArbitrageExecutorArbitrageExecuted // 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 *ArbitrageExecutorArbitrageExecutedIterator) 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(ArbitrageExecutorArbitrageExecuted)
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(ArbitrageExecutorArbitrageExecuted)
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 *ArbitrageExecutorArbitrageExecutedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *ArbitrageExecutorArbitrageExecutedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// ArbitrageExecutorArbitrageExecuted represents a ArbitrageExecuted event raised by the ArbitrageExecutor contract.
type ArbitrageExecutorArbitrageExecuted struct {
Initiator common.Address
Tokens []common.Address
Amounts []*big.Int
Profit *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterArbitrageExecuted is a free log retrieval operation binding the contract event 0xb62e177becf771830567708f66852c0f4ec00da57b10012a413f9a55884691b4.
//
// Solidity: event ArbitrageExecuted(address indexed initiator, address[] tokens, uint256[] amounts, uint256 profit)
func (_ArbitrageExecutor *ArbitrageExecutorFilterer) FilterArbitrageExecuted(opts *bind.FilterOpts, initiator []common.Address) (*ArbitrageExecutorArbitrageExecutedIterator, error) {
var initiatorRule []interface{}
for _, initiatorItem := range initiator {
initiatorRule = append(initiatorRule, initiatorItem)
}
logs, sub, err := _ArbitrageExecutor.contract.FilterLogs(opts, "ArbitrageExecuted", initiatorRule)
if err != nil {
return nil, err
}
return &ArbitrageExecutorArbitrageExecutedIterator{contract: _ArbitrageExecutor.contract, event: "ArbitrageExecuted", logs: logs, sub: sub}, nil
}
// WatchArbitrageExecuted is a free log subscription operation binding the contract event 0xb62e177becf771830567708f66852c0f4ec00da57b10012a413f9a55884691b4.
//
// Solidity: event ArbitrageExecuted(address indexed initiator, address[] tokens, uint256[] amounts, uint256 profit)
func (_ArbitrageExecutor *ArbitrageExecutorFilterer) WatchArbitrageExecuted(opts *bind.WatchOpts, sink chan<- *ArbitrageExecutorArbitrageExecuted, initiator []common.Address) (event.Subscription, error) {
var initiatorRule []interface{}
for _, initiatorItem := range initiator {
initiatorRule = append(initiatorRule, initiatorItem)
}
logs, sub, err := _ArbitrageExecutor.contract.WatchLogs(opts, "ArbitrageExecuted", initiatorRule)
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(ArbitrageExecutorArbitrageExecuted)
if err := _ArbitrageExecutor.contract.UnpackLog(event, "ArbitrageExecuted", 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
}
// ParseArbitrageExecuted is a log parse operation binding the contract event 0xb62e177becf771830567708f66852c0f4ec00da57b10012a413f9a55884691b4.
//
// Solidity: event ArbitrageExecuted(address indexed initiator, address[] tokens, uint256[] amounts, uint256 profit)
func (_ArbitrageExecutor *ArbitrageExecutorFilterer) ParseArbitrageExecuted(log types.Log) (*ArbitrageExecutorArbitrageExecuted, error) {
event := new(ArbitrageExecutorArbitrageExecuted)
if err := _ArbitrageExecutor.contract.UnpackLog(event, "ArbitrageExecuted", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// ArbitrageExecutorEmergencyWithdrawCancelledIterator is returned from FilterEmergencyWithdrawCancelled and is used to iterate over the raw logs and unpacked data for EmergencyWithdrawCancelled events raised by the ArbitrageExecutor contract.
type ArbitrageExecutorEmergencyWithdrawCancelledIterator struct {
Event *ArbitrageExecutorEmergencyWithdrawCancelled // 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 *ArbitrageExecutorEmergencyWithdrawCancelledIterator) 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(ArbitrageExecutorEmergencyWithdrawCancelled)
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(ArbitrageExecutorEmergencyWithdrawCancelled)
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 *ArbitrageExecutorEmergencyWithdrawCancelledIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *ArbitrageExecutorEmergencyWithdrawCancelledIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// ArbitrageExecutorEmergencyWithdrawCancelled represents a EmergencyWithdrawCancelled event raised by the ArbitrageExecutor contract.
type ArbitrageExecutorEmergencyWithdrawCancelled 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 (_ArbitrageExecutor *ArbitrageExecutorFilterer) FilterEmergencyWithdrawCancelled(opts *bind.FilterOpts, requestId [][32]byte) (*ArbitrageExecutorEmergencyWithdrawCancelledIterator, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
logs, sub, err := _ArbitrageExecutor.contract.FilterLogs(opts, "EmergencyWithdrawCancelled", requestIdRule)
if err != nil {
return nil, err
}
return &ArbitrageExecutorEmergencyWithdrawCancelledIterator{contract: _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorFilterer) WatchEmergencyWithdrawCancelled(opts *bind.WatchOpts, sink chan<- *ArbitrageExecutorEmergencyWithdrawCancelled, requestId [][32]byte) (event.Subscription, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
logs, sub, err := _ArbitrageExecutor.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(ArbitrageExecutorEmergencyWithdrawCancelled)
if err := _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorFilterer) ParseEmergencyWithdrawCancelled(log types.Log) (*ArbitrageExecutorEmergencyWithdrawCancelled, error) {
event := new(ArbitrageExecutorEmergencyWithdrawCancelled)
if err := _ArbitrageExecutor.contract.UnpackLog(event, "EmergencyWithdrawCancelled", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// ArbitrageExecutorEmergencyWithdrawExecutedIterator is returned from FilterEmergencyWithdrawExecuted and is used to iterate over the raw logs and unpacked data for EmergencyWithdrawExecuted events raised by the ArbitrageExecutor contract.
type ArbitrageExecutorEmergencyWithdrawExecutedIterator struct {
Event *ArbitrageExecutorEmergencyWithdrawExecuted // 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 *ArbitrageExecutorEmergencyWithdrawExecutedIterator) 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(ArbitrageExecutorEmergencyWithdrawExecuted)
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(ArbitrageExecutorEmergencyWithdrawExecuted)
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 *ArbitrageExecutorEmergencyWithdrawExecutedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *ArbitrageExecutorEmergencyWithdrawExecutedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// ArbitrageExecutorEmergencyWithdrawExecuted represents a EmergencyWithdrawExecuted event raised by the ArbitrageExecutor contract.
type ArbitrageExecutorEmergencyWithdrawExecuted 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 (_ArbitrageExecutor *ArbitrageExecutorFilterer) FilterEmergencyWithdrawExecuted(opts *bind.FilterOpts, requestId [][32]byte, token []common.Address) (*ArbitrageExecutorEmergencyWithdrawExecutedIterator, 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 := _ArbitrageExecutor.contract.FilterLogs(opts, "EmergencyWithdrawExecuted", requestIdRule, tokenRule)
if err != nil {
return nil, err
}
return &ArbitrageExecutorEmergencyWithdrawExecutedIterator{contract: _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorFilterer) WatchEmergencyWithdrawExecuted(opts *bind.WatchOpts, sink chan<- *ArbitrageExecutorEmergencyWithdrawExecuted, 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 := _ArbitrageExecutor.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(ArbitrageExecutorEmergencyWithdrawExecuted)
if err := _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorFilterer) ParseEmergencyWithdrawExecuted(log types.Log) (*ArbitrageExecutorEmergencyWithdrawExecuted, error) {
event := new(ArbitrageExecutorEmergencyWithdrawExecuted)
if err := _ArbitrageExecutor.contract.UnpackLog(event, "EmergencyWithdrawExecuted", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// ArbitrageExecutorEmergencyWithdrawRequestedIterator is returned from FilterEmergencyWithdrawRequested and is used to iterate over the raw logs and unpacked data for EmergencyWithdrawRequested events raised by the ArbitrageExecutor contract.
type ArbitrageExecutorEmergencyWithdrawRequestedIterator struct {
Event *ArbitrageExecutorEmergencyWithdrawRequested // 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 *ArbitrageExecutorEmergencyWithdrawRequestedIterator) 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(ArbitrageExecutorEmergencyWithdrawRequested)
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(ArbitrageExecutorEmergencyWithdrawRequested)
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 *ArbitrageExecutorEmergencyWithdrawRequestedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *ArbitrageExecutorEmergencyWithdrawRequestedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// ArbitrageExecutorEmergencyWithdrawRequested represents a EmergencyWithdrawRequested event raised by the ArbitrageExecutor contract.
type ArbitrageExecutorEmergencyWithdrawRequested 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 (_ArbitrageExecutor *ArbitrageExecutorFilterer) FilterEmergencyWithdrawRequested(opts *bind.FilterOpts, requestId [][32]byte, token []common.Address) (*ArbitrageExecutorEmergencyWithdrawRequestedIterator, 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 := _ArbitrageExecutor.contract.FilterLogs(opts, "EmergencyWithdrawRequested", requestIdRule, tokenRule)
if err != nil {
return nil, err
}
return &ArbitrageExecutorEmergencyWithdrawRequestedIterator{contract: _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorFilterer) WatchEmergencyWithdrawRequested(opts *bind.WatchOpts, sink chan<- *ArbitrageExecutorEmergencyWithdrawRequested, 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 := _ArbitrageExecutor.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(ArbitrageExecutorEmergencyWithdrawRequested)
if err := _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorFilterer) ParseEmergencyWithdrawRequested(log types.Log) (*ArbitrageExecutorEmergencyWithdrawRequested, error) {
event := new(ArbitrageExecutorEmergencyWithdrawRequested)
if err := _ArbitrageExecutor.contract.UnpackLog(event, "EmergencyWithdrawRequested", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// ArbitrageExecutorOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the ArbitrageExecutor contract.
type ArbitrageExecutorOwnershipTransferredIterator struct {
Event *ArbitrageExecutorOwnershipTransferred // 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 *ArbitrageExecutorOwnershipTransferredIterator) 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(ArbitrageExecutorOwnershipTransferred)
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(ArbitrageExecutorOwnershipTransferred)
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 *ArbitrageExecutorOwnershipTransferredIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *ArbitrageExecutorOwnershipTransferredIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// ArbitrageExecutorOwnershipTransferred represents a OwnershipTransferred event raised by the ArbitrageExecutor contract.
type ArbitrageExecutorOwnershipTransferred 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 (_ArbitrageExecutor *ArbitrageExecutorFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ArbitrageExecutorOwnershipTransferredIterator, 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 := _ArbitrageExecutor.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
if err != nil {
return nil, err
}
return &ArbitrageExecutorOwnershipTransferredIterator{contract: _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ArbitrageExecutorOwnershipTransferred, 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 := _ArbitrageExecutor.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(ArbitrageExecutorOwnershipTransferred)
if err := _ArbitrageExecutor.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 (_ArbitrageExecutor *ArbitrageExecutorFilterer) ParseOwnershipTransferred(log types.Log) (*ArbitrageExecutorOwnershipTransferred, error) {
event := new(ArbitrageExecutorOwnershipTransferred)
if err := _ArbitrageExecutor.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// ArbitrageExecutorSwapSelectorAddedIterator is returned from FilterSwapSelectorAdded and is used to iterate over the raw logs and unpacked data for SwapSelectorAdded events raised by the ArbitrageExecutor contract.
type ArbitrageExecutorSwapSelectorAddedIterator struct {
Event *ArbitrageExecutorSwapSelectorAdded // 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 *ArbitrageExecutorSwapSelectorAddedIterator) 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(ArbitrageExecutorSwapSelectorAdded)
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(ArbitrageExecutorSwapSelectorAdded)
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 *ArbitrageExecutorSwapSelectorAddedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *ArbitrageExecutorSwapSelectorAddedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// ArbitrageExecutorSwapSelectorAdded represents a SwapSelectorAdded event raised by the ArbitrageExecutor contract.
type ArbitrageExecutorSwapSelectorAdded struct {
Selector [4]byte
Raw types.Log // Blockchain specific contextual infos
}
// FilterSwapSelectorAdded is a free log retrieval operation binding the contract event 0x6ae4d4aad8be0a434339f3502033a628c149634ab685305251bbe31c45d442b0.
//
// Solidity: event SwapSelectorAdded(bytes4 indexed selector)
func (_ArbitrageExecutor *ArbitrageExecutorFilterer) FilterSwapSelectorAdded(opts *bind.FilterOpts, selector [][4]byte) (*ArbitrageExecutorSwapSelectorAddedIterator, error) {
var selectorRule []interface{}
for _, selectorItem := range selector {
selectorRule = append(selectorRule, selectorItem)
}
logs, sub, err := _ArbitrageExecutor.contract.FilterLogs(opts, "SwapSelectorAdded", selectorRule)
if err != nil {
return nil, err
}
return &ArbitrageExecutorSwapSelectorAddedIterator{contract: _ArbitrageExecutor.contract, event: "SwapSelectorAdded", logs: logs, sub: sub}, nil
}
// WatchSwapSelectorAdded is a free log subscription operation binding the contract event 0x6ae4d4aad8be0a434339f3502033a628c149634ab685305251bbe31c45d442b0.
//
// Solidity: event SwapSelectorAdded(bytes4 indexed selector)
func (_ArbitrageExecutor *ArbitrageExecutorFilterer) WatchSwapSelectorAdded(opts *bind.WatchOpts, sink chan<- *ArbitrageExecutorSwapSelectorAdded, selector [][4]byte) (event.Subscription, error) {
var selectorRule []interface{}
for _, selectorItem := range selector {
selectorRule = append(selectorRule, selectorItem)
}
logs, sub, err := _ArbitrageExecutor.contract.WatchLogs(opts, "SwapSelectorAdded", selectorRule)
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(ArbitrageExecutorSwapSelectorAdded)
if err := _ArbitrageExecutor.contract.UnpackLog(event, "SwapSelectorAdded", 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
}
// ParseSwapSelectorAdded is a log parse operation binding the contract event 0x6ae4d4aad8be0a434339f3502033a628c149634ab685305251bbe31c45d442b0.
//
// Solidity: event SwapSelectorAdded(bytes4 indexed selector)
func (_ArbitrageExecutor *ArbitrageExecutorFilterer) ParseSwapSelectorAdded(log types.Log) (*ArbitrageExecutorSwapSelectorAdded, error) {
event := new(ArbitrageExecutorSwapSelectorAdded)
if err := _ArbitrageExecutor.contract.UnpackLog(event, "SwapSelectorAdded", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// ArbitrageExecutorSwapSelectorRemovedIterator is returned from FilterSwapSelectorRemoved and is used to iterate over the raw logs and unpacked data for SwapSelectorRemoved events raised by the ArbitrageExecutor contract.
type ArbitrageExecutorSwapSelectorRemovedIterator struct {
Event *ArbitrageExecutorSwapSelectorRemoved // 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 *ArbitrageExecutorSwapSelectorRemovedIterator) 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(ArbitrageExecutorSwapSelectorRemoved)
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(ArbitrageExecutorSwapSelectorRemoved)
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 *ArbitrageExecutorSwapSelectorRemovedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *ArbitrageExecutorSwapSelectorRemovedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// ArbitrageExecutorSwapSelectorRemoved represents a SwapSelectorRemoved event raised by the ArbitrageExecutor contract.
type ArbitrageExecutorSwapSelectorRemoved struct {
Selector [4]byte
Raw types.Log // Blockchain specific contextual infos
}
// FilterSwapSelectorRemoved is a free log retrieval operation binding the contract event 0xdc721aeed7ee7c2a27fe5bb687ad97b26dd82efcb5695839ed4e70e491578869.
//
// Solidity: event SwapSelectorRemoved(bytes4 indexed selector)
func (_ArbitrageExecutor *ArbitrageExecutorFilterer) FilterSwapSelectorRemoved(opts *bind.FilterOpts, selector [][4]byte) (*ArbitrageExecutorSwapSelectorRemovedIterator, error) {
var selectorRule []interface{}
for _, selectorItem := range selector {
selectorRule = append(selectorRule, selectorItem)
}
logs, sub, err := _ArbitrageExecutor.contract.FilterLogs(opts, "SwapSelectorRemoved", selectorRule)
if err != nil {
return nil, err
}
return &ArbitrageExecutorSwapSelectorRemovedIterator{contract: _ArbitrageExecutor.contract, event: "SwapSelectorRemoved", logs: logs, sub: sub}, nil
}
// WatchSwapSelectorRemoved is a free log subscription operation binding the contract event 0xdc721aeed7ee7c2a27fe5bb687ad97b26dd82efcb5695839ed4e70e491578869.
//
// Solidity: event SwapSelectorRemoved(bytes4 indexed selector)
func (_ArbitrageExecutor *ArbitrageExecutorFilterer) WatchSwapSelectorRemoved(opts *bind.WatchOpts, sink chan<- *ArbitrageExecutorSwapSelectorRemoved, selector [][4]byte) (event.Subscription, error) {
var selectorRule []interface{}
for _, selectorItem := range selector {
selectorRule = append(selectorRule, selectorItem)
}
logs, sub, err := _ArbitrageExecutor.contract.WatchLogs(opts, "SwapSelectorRemoved", selectorRule)
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(ArbitrageExecutorSwapSelectorRemoved)
if err := _ArbitrageExecutor.contract.UnpackLog(event, "SwapSelectorRemoved", 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
}
// ParseSwapSelectorRemoved is a log parse operation binding the contract event 0xdc721aeed7ee7c2a27fe5bb687ad97b26dd82efcb5695839ed4e70e491578869.
//
// Solidity: event SwapSelectorRemoved(bytes4 indexed selector)
func (_ArbitrageExecutor *ArbitrageExecutorFilterer) ParseSwapSelectorRemoved(log types.Log) (*ArbitrageExecutorSwapSelectorRemoved, error) {
event := new(ArbitrageExecutorSwapSelectorRemoved)
if err := _ArbitrageExecutor.contract.UnpackLog(event, "SwapSelectorRemoved", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// ArbitrageExecutorTriangularArbitrageExecutedIterator is returned from FilterTriangularArbitrageExecuted and is used to iterate over the raw logs and unpacked data for TriangularArbitrageExecuted events raised by the ArbitrageExecutor contract.
type ArbitrageExecutorTriangularArbitrageExecutedIterator struct {
Event *ArbitrageExecutorTriangularArbitrageExecuted // 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 *ArbitrageExecutorTriangularArbitrageExecutedIterator) 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(ArbitrageExecutorTriangularArbitrageExecuted)
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(ArbitrageExecutorTriangularArbitrageExecuted)
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 *ArbitrageExecutorTriangularArbitrageExecutedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *ArbitrageExecutorTriangularArbitrageExecutedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// ArbitrageExecutorTriangularArbitrageExecuted represents a TriangularArbitrageExecuted event raised by the ArbitrageExecutor contract.
type ArbitrageExecutorTriangularArbitrageExecuted struct {
Initiator common.Address
TokenA common.Address
TokenB common.Address
TokenC common.Address
AmountIn *big.Int
Profit *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterTriangularArbitrageExecuted is a free log retrieval operation binding the contract event 0x566f2a7de0030e240b63401c2bd70e65a04ef37802556c7a02ff8aee8c89ea82.
//
// Solidity: event TriangularArbitrageExecuted(address indexed initiator, address indexed tokenA, address indexed tokenB, address tokenC, uint256 amountIn, uint256 profit)
func (_ArbitrageExecutor *ArbitrageExecutorFilterer) FilterTriangularArbitrageExecuted(opts *bind.FilterOpts, initiator []common.Address, tokenA []common.Address, tokenB []common.Address) (*ArbitrageExecutorTriangularArbitrageExecutedIterator, error) {
var initiatorRule []interface{}
for _, initiatorItem := range initiator {
initiatorRule = append(initiatorRule, initiatorItem)
}
var tokenARule []interface{}
for _, tokenAItem := range tokenA {
tokenARule = append(tokenARule, tokenAItem)
}
var tokenBRule []interface{}
for _, tokenBItem := range tokenB {
tokenBRule = append(tokenBRule, tokenBItem)
}
logs, sub, err := _ArbitrageExecutor.contract.FilterLogs(opts, "TriangularArbitrageExecuted", initiatorRule, tokenARule, tokenBRule)
if err != nil {
return nil, err
}
return &ArbitrageExecutorTriangularArbitrageExecutedIterator{contract: _ArbitrageExecutor.contract, event: "TriangularArbitrageExecuted", logs: logs, sub: sub}, nil
}
// WatchTriangularArbitrageExecuted is a free log subscription operation binding the contract event 0x566f2a7de0030e240b63401c2bd70e65a04ef37802556c7a02ff8aee8c89ea82.
//
// Solidity: event TriangularArbitrageExecuted(address indexed initiator, address indexed tokenA, address indexed tokenB, address tokenC, uint256 amountIn, uint256 profit)
func (_ArbitrageExecutor *ArbitrageExecutorFilterer) WatchTriangularArbitrageExecuted(opts *bind.WatchOpts, sink chan<- *ArbitrageExecutorTriangularArbitrageExecuted, initiator []common.Address, tokenA []common.Address, tokenB []common.Address) (event.Subscription, error) {
var initiatorRule []interface{}
for _, initiatorItem := range initiator {
initiatorRule = append(initiatorRule, initiatorItem)
}
var tokenARule []interface{}
for _, tokenAItem := range tokenA {
tokenARule = append(tokenARule, tokenAItem)
}
var tokenBRule []interface{}
for _, tokenBItem := range tokenB {
tokenBRule = append(tokenBRule, tokenBItem)
}
logs, sub, err := _ArbitrageExecutor.contract.WatchLogs(opts, "TriangularArbitrageExecuted", initiatorRule, tokenARule, tokenBRule)
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(ArbitrageExecutorTriangularArbitrageExecuted)
if err := _ArbitrageExecutor.contract.UnpackLog(event, "TriangularArbitrageExecuted", 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
}
// ParseTriangularArbitrageExecuted is a log parse operation binding the contract event 0x566f2a7de0030e240b63401c2bd70e65a04ef37802556c7a02ff8aee8c89ea82.
//
// Solidity: event TriangularArbitrageExecuted(address indexed initiator, address indexed tokenA, address indexed tokenB, address tokenC, uint256 amountIn, uint256 profit)
func (_ArbitrageExecutor *ArbitrageExecutorFilterer) ParseTriangularArbitrageExecuted(log types.Log) (*ArbitrageExecutorTriangularArbitrageExecuted, error) {
event := new(ArbitrageExecutorTriangularArbitrageExecuted)
if err := _ArbitrageExecutor.contract.UnpackLog(event, "TriangularArbitrageExecuted", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}