/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; import { Provider, TransactionRequest } from "@ethersproject/providers"; import type { SwapUtils, SwapUtilsInterface } from "../SwapUtils"; const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "key", type: "bytes32", }, { indexed: true, internalType: "address", name: "provider", type: "address", }, { indexed: false, internalType: "uint256[]", name: "tokenAmounts", type: "uint256[]", }, { indexed: false, internalType: "uint256[]", name: "fees", type: "uint256[]", }, { indexed: false, internalType: "uint256", name: "invariant", type: "uint256", }, { indexed: false, internalType: "uint256", name: "lpTokenSupply", type: "uint256", }, ], name: "AddLiquidity", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "key", type: "bytes32", }, { indexed: false, internalType: "uint256", name: "newAdminFee", type: "uint256", }, ], name: "NewAdminFee", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "key", type: "bytes32", }, { indexed: false, internalType: "uint256", name: "newSwapFee", type: "uint256", }, ], name: "NewSwapFee", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "key", type: "bytes32", }, { indexed: true, internalType: "address", name: "provider", type: "address", }, { indexed: false, internalType: "uint256[]", name: "tokenAmounts", type: "uint256[]", }, { indexed: false, internalType: "uint256", name: "lpTokenSupply", type: "uint256", }, ], name: "RemoveLiquidity", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "key", type: "bytes32", }, { indexed: true, internalType: "address", name: "provider", type: "address", }, { indexed: false, internalType: "uint256[]", name: "tokenAmounts", type: "uint256[]", }, { indexed: false, internalType: "uint256[]", name: "fees", type: "uint256[]", }, { indexed: false, internalType: "uint256", name: "invariant", type: "uint256", }, { indexed: false, internalType: "uint256", name: "lpTokenSupply", type: "uint256", }, ], name: "RemoveLiquidityImbalance", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "key", type: "bytes32", }, { indexed: true, internalType: "address", name: "provider", type: "address", }, { indexed: false, internalType: "uint256", name: "lpTokenAmount", type: "uint256", }, { indexed: false, internalType: "uint256", name: "lpTokenSupply", type: "uint256", }, { indexed: false, internalType: "uint256", name: "boughtId", type: "uint256", }, { indexed: false, internalType: "uint256", name: "tokensBought", type: "uint256", }, ], name: "RemoveLiquidityOne", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "key", type: "bytes32", }, { indexed: true, internalType: "address", name: "buyer", type: "address", }, { indexed: false, internalType: "uint256", name: "tokensSold", type: "uint256", }, { indexed: false, internalType: "uint256", name: "tokensBought", type: "uint256", }, { indexed: false, internalType: "uint128", name: "soldId", type: "uint128", }, { indexed: false, internalType: "uint128", name: "boughtId", type: "uint128", }, ], name: "TokenSwap", type: "event", }, ]; const _bytecode = "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220fe3255418198d05cb59f80673e371c7cbe2ccb41266274a70918938b377ab77a64736f6c63430008110033"; type SwapUtilsConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( xs: SwapUtilsConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class SwapUtils__factory extends ContractFactory { constructor(...args: SwapUtilsConstructorParams) { if (isSuperArgs(args)) { super(...args); } else { super(_abi, _bytecode, args[0]); } } deploy( overrides?: Overrides & { from?: string | Promise } ): Promise { return super.deploy(overrides || {}) as Promise; } getDeployTransaction( overrides?: Overrides & { from?: string | Promise } ): TransactionRequest { return super.getDeployTransaction(overrides || {}); } attach(address: string): SwapUtils { return super.attach(address) as SwapUtils; } connect(signer: Signer): SwapUtils__factory { return super.connect(signer) as SwapUtils__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): SwapUtilsInterface { return new utils.Interface(_abi) as SwapUtilsInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): SwapUtils { return new Contract(address, _abi, signerOrProvider) as SwapUtils; } }