/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, utils } from "ethers";
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_token",
                type: "address",
                internalType: "address",
            },
            {
                name: "_oftMessenger",
                type: "address",
                internalType: "address",
            },
            {
                name: "_srcEid",
                type: "uint32",
                internalType: "uint32",
            },
            {
                name: "_signer",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "EMPTY_OFT_COMMAND",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "OFT_MESSENGER",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "SRC_EID",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint32",
                internalType: "uint32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "TOKEN",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "decimalConversionRate",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "deposit",
        inputs: [
            {
                name: "quote",
                type: "tuple",
                internalType: "struct SponsoredOFTInterface.Quote",
                components: [
                    {
                        name: "signedParams",
                        type: "tuple",
                        internalType: "struct SponsoredOFTInterface.SignedQuoteParams",
                        components: [
                            {
                                name: "srcEid",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "dstEid",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "destinationHandler",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "amountLD",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                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: "lzReceiveGasLimit",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "lzComposeGasLimit",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "maxOftFeeBps",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "accountCreationMode",
                                type: "uint8",
                                internalType: "uint8",
                            },
                            {
                                name: "executionMode",
                                type: "uint8",
                                internalType: "uint8",
                            },
                            {
                                name: "actionData",
                                type: "bytes",
                                internalType: "bytes",
                            },
                        ],
                    },
                    {
                        name: "unsignedParams",
                        type: "tuple",
                        internalType: "struct SponsoredOFTInterface.UnsignedQuoteParams",
                        components: [
                            {
                                name: "refundRecipient",
                                type: "address",
                                internalType: "address",
                            },
                        ],
                    },
                ],
            },
            {
                name: "signature",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        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: "_newSigner",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "signer",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        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: "OwnershipTransferred",
        inputs: [
            {
                name: "previousOwner",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "newOwner",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "SponsoredOFTDirectExecution",
        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: "destinationHandler",
                type: "bytes32",
                indexed: false,
                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: "sig",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "SponsoredOFTSend",
        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: "destinationHandler",
                type: "bytes32",
                indexed: false,
                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: "sig",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
        ],
        anonymous: false,
    },
    {
        type: "error",
        name: "AmountSDOverflowed",
        inputs: [
            {
                name: "amountSD",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "ArrayLengthMismatch",
        inputs: [],
    },
    {
        type: "error",
        name: "IncorrectSignature",
        inputs: [],
    },
    {
        type: "error",
        name: "IncorrectSrcEid",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidBytes32",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidDirectDstEid",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidDirectHandler",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidLocalDecimals",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidMaxOftFeeBps",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidNativeFee",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidOptionType",
        inputs: [
            {
                name: "optionType",
                type: "uint16",
                internalType: "uint16",
            },
        ],
    },
    {
        type: "error",
        name: "NonceAlreadyUsed",
        inputs: [],
    },
    {
        type: "error",
        name: "OutOfBounds",
        inputs: [],
    },
    {
        type: "error",
        name: "QuoteExpired",
        inputs: [],
    },
    {
        type: "error",
        name: "TokenIOFTMismatch",
        inputs: [],
    },
];
export class SponsoredOFTSrcPeriphery__factory {
    static abi = _abi;
    static createInterface() {
        return new utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new Contract(address, _abi, signerOrProvider);
    }
}
//# sourceMappingURL=SponsoredOFTSrcPeriphery__factory.js.map