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

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

const _abi = [
  {
    type: "constructor",
    inputs: [
      {
        name: "_cctpTokenMessenger",
        type: "address",
        internalType: "address",
      },
      {
        name: "_sourceDomain",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "_signer",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "cctpTokenMessenger",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract ITokenMessengerV2",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "depositForBurn",
    inputs: [
      {
        name: "quote",
        type: "tuple",
        internalType: "struct SponsoredCCTPInterface.SponsoredCCTPQuote",
        components: [
          {
            name: "sourceDomain",
            type: "uint32",
            internalType: "uint32",
          },
          {
            name: "destinationDomain",
            type: "uint32",
            internalType: "uint32",
          },
          {
            name: "mintRecipient",
            type: "bytes32",
            internalType: "bytes32",
          },
          {
            name: "amount",
            type: "uint256",
            internalType: "uint256",
          },
          {
            name: "burnToken",
            type: "bytes32",
            internalType: "bytes32",
          },
          {
            name: "destinationCaller",
            type: "bytes32",
            internalType: "bytes32",
          },
          {
            name: "maxFee",
            type: "uint256",
            internalType: "uint256",
          },
          {
            name: "minFinalityThreshold",
            type: "uint32",
            internalType: "uint32",
          },
          {
            name: "nonce",
            type: "bytes32",
            internalType: "bytes32",
          },
          {
            name: "deadline",
            type: "uint256",
            internalType: "uint256",
          },
          {
            name: "maxBpsToSponsor",
            type: "uint256",
            internalType: "uint256",
          },
          {
            name: "maxUserSlippageBps",
            type: "uint256",
            internalType: "uint256",
          },
          {
            name: "finalRecipient",
            type: "bytes32",
            internalType: "bytes32",
          },
          {
            name: "finalToken",
            type: "bytes32",
            internalType: "bytes32",
          },
          {
            name: "destinationDex",
            type: "uint32",
            internalType: "uint32",
          },
          {
            name: "accountCreationMode",
            type: "uint8",
            internalType: "uint8",
          },
          {
            name: "executionMode",
            type: "uint8",
            internalType: "uint8",
          },
          {
            name: "actionData",
            type: "bytes",
            internalType: "bytes",
          },
        ],
      },
      {
        name: "signature",
        type: "bytes",
        internalType: "bytes",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "owner",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "renounceOwnership",
    inputs: [],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "setSigner",
    inputs: [
      {
        name: "_signer",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "signer",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "sourceDomain",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "uint32",
        internalType: "uint32",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "transferOwnership",
    inputs: [
      {
        name: "newOwner",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "usedNonces",
    inputs: [
      {
        name: "nonce",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    outputs: [
      {
        name: "",
        type: "bool",
        internalType: "bool",
      },
    ],
    stateMutability: "view",
  },
  {
    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: "OwnershipTransferred",
    inputs: [
      {
        name: "previousOwner",
        type: "address",
        indexed: true,
        internalType: "address",
      },
      {
        name: "newOwner",
        type: "address",
        indexed: true,
        internalType: "address",
      },
    ],
    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: "InvalidBytes32",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidDeadline",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidDirectHandler",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidNonce",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidSignature",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidSourceDomain",
    inputs: [],
  },
] as const;

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