/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
  Contract,
  ContractFactory,
  ContractTransactionResponse,
  Interface,
} from "ethers";
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
import type { NonPayableOverrides } from "../../../../common";
import type {
  UniswapV3QuoterV2Mock,
  UniswapV3QuoterV2MockInterface,
} from "../../../../contracts/mock/uniswap/UniswapV3QuoterV2Mock";

const _abi = [
  {
    inputs: [
      {
        internalType: "bytes",
        name: "path",
        type: "bytes",
      },
      {
        internalType: "uint256",
        name: "amountIn",
        type: "uint256",
      },
    ],
    name: "quoteExactInput",
    outputs: [
      {
        internalType: "uint256",
        name: "amountOut",
        type: "uint256",
      },
      {
        internalType: "uint160[]",
        name: "sqrtPriceX96AfterList",
        type: "uint160[]",
      },
      {
        internalType: "uint32[]",
        name: "initializedTicksCrossedList",
        type: "uint32[]",
      },
      {
        internalType: "uint256",
        name: "gasEstimate",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

const _bytecode =
  "0x608060405234801561001057600080fd5b50610203806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063cdca175314610030575b600080fd5b61004c61003e36600461007b565b506000916060915081908390565b60405161005c9493929190610130565b60405180910390f35b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561008e57600080fd5b823567ffffffffffffffff808211156100a657600080fd5b818501915085601f8301126100ba57600080fd5b8135818111156100cc576100cc610065565b604051601f8201601f19908116603f011681019083821181831017156100f4576100f4610065565b8160405282815288602084870101111561010d57600080fd5b826020860160208301376000602093820184015298969091013596505050505050565b600060808201868352602060808185015281875180845260a086019150828901935060005b8181101561017a5784516001600160a01b031683529383019391830191600101610155565b50508481036040860152865180825290820192508187019060005b818110156101b757825163ffffffff1685529383019391830191600101610195565b505050506060929092019290925294935050505056fea26469706673582212207eb955d9a8e0c39c5f7fcb35afe93436b9c32f884c15085fa25b62bbcebe385c64736f6c634300080b0033";

type UniswapV3QuoterV2MockConstructorParams =
  | [signer?: Signer]
  | ConstructorParameters<typeof ContractFactory>;

const isSuperArgs = (
  xs: UniswapV3QuoterV2MockConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;

export class UniswapV3QuoterV2Mock__factory extends ContractFactory {
  constructor(...args: UniswapV3QuoterV2MockConstructorParams) {
    if (isSuperArgs(args)) {
      super(...args);
    } else {
      super(_abi, _bytecode, args[0]);
    }
  }

  override getDeployTransaction(
    overrides?: NonPayableOverrides & { from?: string }
  ): Promise<ContractDeployTransaction> {
    return super.getDeployTransaction(overrides || {});
  }
  override deploy(overrides?: NonPayableOverrides & { from?: string }) {
    return super.deploy(overrides || {}) as Promise<
      UniswapV3QuoterV2Mock & {
        deploymentTransaction(): ContractTransactionResponse;
      }
    >;
  }
  override connect(
    runner: ContractRunner | null
  ): UniswapV3QuoterV2Mock__factory {
    return super.connect(runner) as UniswapV3QuoterV2Mock__factory;
  }

  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): UniswapV3QuoterV2MockInterface {
    return new Interface(_abi) as UniswapV3QuoterV2MockInterface;
  }
  static connect(
    address: string,
    runner?: ContractRunner | null
  ): UniswapV3QuoterV2Mock {
    return new Contract(
      address,
      _abi,
      runner
    ) as unknown as UniswapV3QuoterV2Mock;
  }
}
