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

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

const _abi = [
  {
    type: "constructor",
    inputs: [
      {
        name: "_cctpMessageTransmitter",
        type: "address",
        internalType: "address",
      },
      {
        name: "_cctpTokenMessenger",
        type: "address",
        internalType: "address",
      },
      {
        name: "_signer",
        type: "address",
        internalType: "address",
      },
      {
        name: "_donationBox",
        type: "address",
        internalType: "address",
      },
      {
        name: "_baseToken",
        type: "address",
        internalType: "address",
      },
      {
        name: "_multicallHandler",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "fallback",
    stateMutability: "nonpayable",
  },
  {
    type: "receive",
    stateMutability: "payable",
  },
  {
    type: "function",
    name: "AUTHORIZED_FUNDED_FLOW_SLOT",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "DEFAULT_ADMIN_ROLE",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "DIRECT_CALLER_ROLE",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "FUNDS_SWEEPER_ROLE",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "PERMISSIONED_BOT_ROLE",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "baseToken",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "cctpMessageTransmitter",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract IMessageTransmitterV2",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "cctpTokenMessenger",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract ITokenMessengerV2",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "directReceiveMessage",
    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",
          },
        ],
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "emergencyReceiveMessage",
    inputs: [
      {
        name: "message",
        type: "bytes",
        internalType: "bytes",
      },
      {
        name: "attestation",
        type: "bytes",
        internalType: "bytes",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "getRoleAdmin",
    inputs: [
      {
        name: "role",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    outputs: [
      {
        name: "",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "grantRole",
    inputs: [
      {
        name: "role",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "account",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "hasRole",
    inputs: [
      {
        name: "role",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "account",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [
      {
        name: "",
        type: "bool",
        internalType: "bool",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "hyperCoreModule",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "multicallHandler",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "quoteDeadlineBuffer",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "receiveMessage",
    inputs: [
      {
        name: "message",
        type: "bytes",
        internalType: "bytes",
      },
      {
        name: "attestation",
        type: "bytes",
        internalType: "bytes",
      },
      {
        name: "signature",
        type: "bytes",
        internalType: "bytes",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "renounceRole",
    inputs: [
      {
        name: "role",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "callerConfirmation",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "revokeRole",
    inputs: [
      {
        name: "role",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "account",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "setQuoteDeadlineBuffer",
    inputs: [
      {
        name: "_quoteDeadlineBuffer",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    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: "supportsInterface",
    inputs: [
      {
        name: "interfaceId",
        type: "bytes4",
        internalType: "bytes4",
      },
    ],
    outputs: [
      {
        name: "",
        type: "bool",
        internalType: "bool",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "usedNonces",
    inputs: [
      {
        name: "nonce",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    outputs: [
      {
        name: "",
        type: "bool",
        internalType: "bool",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "validateMessage",
    inputs: [
      {
        name: "message",
        type: "bytes",
        internalType: "bytes",
      },
    ],
    outputs: [
      {
        name: "",
        type: "bool",
        internalType: "bool",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "event",
    name: "ArbitraryActionsExecuted",
    inputs: [
      {
        name: "quoteNonce",
        type: "bytes32",
        indexed: true,
        internalType: "bytes32",
      },
      {
        name: "initialToken",
        type: "address",
        indexed: true,
        internalType: "address",
      },
      {
        name: "initialAmount",
        type: "uint256",
        indexed: false,
        internalType: "uint256",
      },
      {
        name: "finalToken",
        type: "address",
        indexed: true,
        internalType: "address",
      },
      {
        name: "finalAmount",
        type: "uint256",
        indexed: false,
        internalType: "uint256",
      },
    ],
    anonymous: false,
  },
  {
    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: "Initialized",
    inputs: [
      {
        name: "version",
        type: "uint64",
        indexed: false,
        internalType: "uint64",
      },
    ],
    anonymous: false,
  },
  {
    type: "event",
    name: "RoleAdminChanged",
    inputs: [
      {
        name: "role",
        type: "bytes32",
        indexed: true,
        internalType: "bytes32",
      },
      {
        name: "previousAdminRole",
        type: "bytes32",
        indexed: true,
        internalType: "bytes32",
      },
      {
        name: "newAdminRole",
        type: "bytes32",
        indexed: true,
        internalType: "bytes32",
      },
    ],
    anonymous: false,
  },
  {
    type: "event",
    name: "RoleGranted",
    inputs: [
      {
        name: "role",
        type: "bytes32",
        indexed: true,
        internalType: "bytes32",
      },
      {
        name: "account",
        type: "address",
        indexed: true,
        internalType: "address",
      },
      {
        name: "sender",
        type: "address",
        indexed: true,
        internalType: "address",
      },
    ],
    anonymous: false,
  },
  {
    type: "event",
    name: "RoleRevoked",
    inputs: [
      {
        name: "role",
        type: "bytes32",
        indexed: true,
        internalType: "bytes32",
      },
      {
        name: "account",
        type: "address",
        indexed: true,
        internalType: "address",
      },
      {
        name: "sender",
        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: "AccessControlBadConfirmation",
    inputs: [],
  },
  {
    type: "error",
    name: "AccessControlUnauthorizedAccount",
    inputs: [
      {
        name: "account",
        type: "address",
        internalType: "address",
      },
      {
        name: "neededRole",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
  },
  {
    type: "error",
    name: "CCTPMessageTransmitterFailed",
    inputs: [],
  },
  {
    type: "error",
    name: "FundedFlowNotAuthorized",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidBurnToken",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidBytes32",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidDeadline",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidDirectHandler",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidInitialization",
    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: [],
  },
  {
    type: "error",
    name: "NotInitializing",
    inputs: [],
  },
  {
    type: "error",
    name: "OutOfBounds",
    inputs: [],
  },
  {
    type: "error",
    name: "SafeERC20FailedOperation",
    inputs: [
      {
        name: "token",
        type: "address",
        internalType: "address",
      },
    ],
  },
] as const;

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