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

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

const _abi = [
  {
    type: "event",
    name: "EmergencyReceiveMessage",
    inputs: [
      {
        name: "nonce",
        type: "bytes32",
        indexed: false,
        internalType: "bytes32",
      },
      {
        name: "finalRecipent",
        type: "address",
        indexed: false,
        internalType: "address",
      },
      {
        name: "finalToken",
        type: "address",
        indexed: false,
        internalType: "address",
      },
      {
        name: "amount",
        type: "uint256",
        indexed: false,
        internalType: "uint256",
      },
    ],
    anonymous: false,
  },
  {
    type: "event",
    name: "SponsoredCCTPDirectExecution",
    inputs: [
      {
        name: "quoteNonce",
        type: "bytes32",
        indexed: true,
        internalType: "bytes32",
      },
      {
        name: "originSender",
        type: "address",
        indexed: true,
        internalType: "address",
      },
      {
        name: "finalRecipient",
        type: "bytes32",
        indexed: true,
        internalType: "bytes32",
      },
      {
        name: "quoteDeadline",
        type: "uint256",
        indexed: false,
        internalType: "uint256",
      },
      {
        name: "maxBpsToSponsor",
        type: "uint256",
        indexed: false,
        internalType: "uint256",
      },
      {
        name: "maxUserSlippageBps",
        type: "uint256",
        indexed: false,
        internalType: "uint256",
      },
      {
        name: "finalToken",
        type: "bytes32",
        indexed: false,
        internalType: "bytes32",
      },
      {
        name: "destinationDex",
        type: "uint32",
        indexed: false,
        internalType: "uint32",
      },
      {
        name: "accountCreationMode",
        type: "uint8",
        indexed: false,
        internalType: "uint8",
      },
      {
        name: "signature",
        type: "bytes",
        indexed: false,
        internalType: "bytes",
      },
    ],
    anonymous: false,
  },
  {
    type: "event",
    name: "SponsoredDepositForBurn",
    inputs: [
      {
        name: "quoteNonce",
        type: "bytes32",
        indexed: true,
        internalType: "bytes32",
      },
      {
        name: "originSender",
        type: "address",
        indexed: true,
        internalType: "address",
      },
      {
        name: "finalRecipient",
        type: "bytes32",
        indexed: true,
        internalType: "bytes32",
      },
      {
        name: "quoteDeadline",
        type: "uint256",
        indexed: false,
        internalType: "uint256",
      },
      {
        name: "maxBpsToSponsor",
        type: "uint256",
        indexed: false,
        internalType: "uint256",
      },
      {
        name: "maxUserSlippageBps",
        type: "uint256",
        indexed: false,
        internalType: "uint256",
      },
      {
        name: "finalToken",
        type: "bytes32",
        indexed: false,
        internalType: "bytes32",
      },
      {
        name: "destinationDex",
        type: "uint32",
        indexed: false,
        internalType: "uint32",
      },
      {
        name: "accountCreationMode",
        type: "uint8",
        indexed: false,
        internalType: "uint8",
      },
      {
        name: "signature",
        type: "bytes",
        indexed: false,
        internalType: "bytes",
      },
    ],
    anonymous: false,
  },
  {
    type: "error",
    name: "CCTPMessageTransmitterFailed",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidBurnToken",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidDeadline",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidDirectHandler",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidMintedAmount",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidMintedToken",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidNonce",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidRecipient",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidSignature",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidSourceDomain",
    inputs: [],
  },
] as const;

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