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

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
  Permit2Depositor,
  Permit2DepositorInterface,
} from "../Permit2Depositor";

const _abi = [
  {
    type: "constructor",
    inputs: [
      {
        name: "_spokePool",
        type: "address",
        internalType: "contract V3SpokePoolInterface",
      },
      {
        name: "_permit2",
        type: "address",
        internalType: "contract IPermit2",
      },
      {
        name: "_quoteBeforeDeadline",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "PERMIT2",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract IPermit2",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "QUOTE_BEFORE_DEADLINE",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "SPOKE_POOL",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract V3SpokePoolInterface",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "permit2Deposit",
    inputs: [
      {
        name: "signedOrder",
        type: "tuple",
        internalType: "struct SignedOrder",
        components: [
          {
            name: "order",
            type: "bytes",
            internalType: "bytes",
          },
          {
            name: "sig",
            type: "bytes",
            internalType: "bytes",
          },
        ],
      },
      {
        name: "destinationChainFillerAddress",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "error",
    name: "AfterDeadline",
    inputs: [],
  },
  {
    type: "error",
    name: "InputAndCollateralNotEqual",
    inputs: [],
  },
  {
    type: "error",
    name: "MultipleOutputsNotAllowed",
    inputs: [],
  },
  {
    type: "error",
    name: "ValidationContractNotAllowed",
    inputs: [],
  },
  {
    type: "error",
    name: "WrongSettlerContract",
    inputs: [],
  },
] as const;

export class Permit2Depositor__factory {
  static readonly abi = _abi;
  static createInterface(): Permit2DepositorInterface {
    return new utils.Interface(_abi) as Permit2DepositorInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): Permit2Depositor {
    return new Contract(address, _abi, signerOrProvider) as Permit2Depositor;
  }
}
