/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import { Contract, Interface, type ContractRunner } from "ethers";
import type {
  IUniswapPricingLibrary,
  IUniswapPricingLibraryInterface,
} from "../../../contracts/interfaces/IUniswapPricingLibrary";

const _abi = [
  {
    inputs: [
      {
        components: [
          {
            internalType: "address",
            name: "pool",
            type: "address",
          },
          {
            internalType: "bool",
            name: "zeroForOne",
            type: "bool",
          },
          {
            internalType: "uint32",
            name: "twapInterval",
            type: "uint32",
          },
          {
            internalType: "uint256",
            name: "token0Decimals",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "token1Decimals",
            type: "uint256",
          },
        ],
        internalType: "struct IUniswapPricingLibrary.PoolRouteConfig",
        name: "poolRoute",
        type: "tuple",
      },
    ],
    name: "getUniswapPriceRatioForPool",
    outputs: [
      {
        internalType: "uint256",
        name: "priceRatio",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        components: [
          {
            internalType: "address",
            name: "pool",
            type: "address",
          },
          {
            internalType: "bool",
            name: "zeroForOne",
            type: "bool",
          },
          {
            internalType: "uint32",
            name: "twapInterval",
            type: "uint32",
          },
          {
            internalType: "uint256",
            name: "token0Decimals",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "token1Decimals",
            type: "uint256",
          },
        ],
        internalType: "struct IUniswapPricingLibrary.PoolRouteConfig[]",
        name: "poolRoutes",
        type: "tuple[]",
      },
    ],
    name: "getUniswapPriceRatioForPoolRoutes",
    outputs: [
      {
        internalType: "uint256",
        name: "priceRatio",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
] as const;

export class IUniswapPricingLibrary__factory {
  static readonly abi = _abi;
  static createInterface(): IUniswapPricingLibraryInterface {
    return new Interface(_abi) as IUniswapPricingLibraryInterface;
  }
  static connect(
    address: string,
    runner?: ContractRunner | null
  ): IUniswapPricingLibrary {
    return new Contract(
      address,
      _abi,
      runner
    ) as unknown as IUniswapPricingLibrary;
  }
}
