"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SponsoredCCTPSrcPeriphery__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "address",
                name: "_cctpTokenMessenger",
                type: "address",
            },
            {
                internalType: "uint32",
                name: "_sourceDomain",
                type: "uint32",
            },
            {
                internalType: "address",
                name: "_signer",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [],
        name: "CCTPMessageTransmitterFailed",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidBytes32",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidDeadline",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidNonce",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidSignature",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidSourceDomain",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "bytes32",
                name: "nonce",
                type: "bytes32",
            },
            {
                indexed: false,
                internalType: "address",
                name: "finalRecipent",
                type: "address",
            },
            {
                indexed: false,
                internalType: "address",
                name: "finalToken",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
        ],
        name: "EmergencyReceiveMessage",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "previousOwner",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "OwnershipTransferred",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "bytes32",
                name: "quoteNonce",
                type: "bytes32",
            },
            {
                indexed: true,
                internalType: "address",
                name: "originSender",
                type: "address",
            },
            {
                indexed: true,
                internalType: "bytes32",
                name: "finalRecipient",
                type: "bytes32",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "quoteDeadline",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "maxBpsToSponsor",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "maxUserSlippageBps",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "finalToken",
                type: "bytes32",
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "signature",
                type: "bytes",
            },
        ],
        name: "SponsoredDepositForBurn",
        type: "event",
    },
    {
        inputs: [],
        name: "cctpTokenMessenger",
        outputs: [
            {
                internalType: "contract ITokenMessengerV2",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint32",
                        name: "sourceDomain",
                        type: "uint32",
                    },
                    {
                        internalType: "uint32",
                        name: "destinationDomain",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes32",
                        name: "mintRecipient",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint256",
                        name: "amount",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes32",
                        name: "burnToken",
                        type: "bytes32",
                    },
                    {
                        internalType: "bytes32",
                        name: "destinationCaller",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint256",
                        name: "maxFee",
                        type: "uint256",
                    },
                    {
                        internalType: "uint32",
                        name: "minFinalityThreshold",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes32",
                        name: "nonce",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint256",
                        name: "deadline",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "maxBpsToSponsor",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "maxUserSlippageBps",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes32",
                        name: "finalRecipient",
                        type: "bytes32",
                    },
                    {
                        internalType: "bytes32",
                        name: "finalToken",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint8",
                        name: "executionMode",
                        type: "uint8",
                    },
                    {
                        internalType: "bytes",
                        name: "actionData",
                        type: "bytes",
                    },
                ],
                internalType: "struct SponsoredCCTPInterface.SponsoredCCTPQuote",
                name: "quote",
                type: "tuple",
            },
            {
                internalType: "bytes",
                name: "signature",
                type: "bytes",
            },
        ],
        name: "depositForBurn",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "owner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "renounceOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_signer",
                type: "address",
            },
        ],
        name: "setSigner",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "signer",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "sourceDomain",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "transferOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "nonce",
                type: "bytes32",
            },
        ],
        name: "usedNonces",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class SponsoredCCTPSrcPeriphery__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(_cctpTokenMessenger, _sourceDomain, _signer, overrides) {
        return super.deploy(_cctpTokenMessenger, _sourceDomain, _signer, overrides || {});
    }
    getDeployTransaction(_cctpTokenMessenger, _sourceDomain, _signer, overrides) {
        return super.getDeployTransaction(_cctpTokenMessenger, _sourceDomain, _signer, overrides || {});
    }
    attach(address) {
        return super.attach(address);
    }
    connect(signer) {
        return super.connect(signer);
    }
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.SponsoredCCTPSrcPeriphery__factory = SponsoredCCTPSrcPeriphery__factory;
SponsoredCCTPSrcPeriphery__factory.bytecode = _bytecode;
SponsoredCCTPSrcPeriphery__factory.abi = _abi;
