/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { SwapperAbi, SwapperAbiInterface } from "../SwapperAbi"; const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "exchange", type: "address", }, { indexed: false, internalType: "bool", name: "isAllowed", type: "bool", }, ], name: "ExchangeAllowlistUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "receiver", type: "address", }, { indexed: false, internalType: "address[]", name: "tokensIn", type: "address[]", }, { indexed: false, internalType: "address", name: "tokenOut", type: "address", }, { indexed: false, internalType: "uint256[]", name: "amountsIn", type: "uint256[]", }, { indexed: false, internalType: "uint256", name: "amountOut", type: "uint256", }, ], name: "Swapped", type: "event", }, { inputs: [ { internalType: "address", name: "exchange", type: "address", }, ], name: "isExchangeAllowed", outputs: [ { internalType: "bool", name: "isAllowed", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address[]", name: "tokensIn", type: "address[]", }, { components: [ { internalType: "address", name: "swapTarget", type: "address", }, { internalType: "address", name: "token", type: "address", }, { internalType: "bytes", name: "swapCallData", type: "bytes", }, ], internalType: "struct SwapInfo[]", name: "swapInfo", type: "tuple[]", }, { internalType: "address", name: "tokenOut", type: "address", }, { internalType: "address", name: "receiver", type: "address", }, ], name: "swap", outputs: [ { internalType: "uint256", name: "amountOut", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address[]", name: "exchanges", type: "address[]", }, { internalType: "bool[]", name: "allowed", type: "bool[]", }, ], name: "updateExchangeAllowlist", outputs: [], stateMutability: "nonpayable", type: "function", }, ] as const; export class SwapperAbi__factory { static readonly abi = _abi; static createInterface(): SwapperAbiInterface { return new utils.Interface(_abi) as SwapperAbiInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): SwapperAbi { return new Contract(address, _abi, signerOrProvider) as SwapperAbi; } }