"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpokePoolPeripheryInterface__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "function",
        name: "depositNative",
        inputs: [
            {
                name: "spokePool",
                type: "address",
                internalType: "address",
            },
            {
                name: "recipient",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "inputToken",
                type: "address",
                internalType: "address",
            },
            {
                name: "inputAmount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "outputToken",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "outputAmount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "destinationChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "exclusiveRelayer",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "quoteTimestamp",
                type: "uint32",
                internalType: "uint32",
            },
            {
                name: "fillDeadline",
                type: "uint32",
                internalType: "uint32",
            },
            {
                name: "exclusivityParameter",
                type: "uint32",
                internalType: "uint32",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "depositWithAuthorization",
        inputs: [
            {
                name: "signatureOwner",
                type: "address",
                internalType: "address",
            },
            {
                name: "depositData",
                type: "tuple",
                internalType: "struct SpokePoolPeripheryInterface.DepositData",
                components: [
                    {
                        name: "submissionFees",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        components: [
                            {
                                name: "amount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "recipient",
                                type: "address",
                                internalType: "address",
                            },
                        ],
                    },
                    {
                        name: "baseDepositData",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        components: [
                            {
                                name: "inputToken",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "outputToken",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "outputAmount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "depositor",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "recipient",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "destinationChainId",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "exclusiveRelayer",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "quoteTimestamp",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "fillDeadline",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "exclusivityParameter",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "message",
                                type: "bytes",
                                internalType: "bytes",
                            },
                        ],
                    },
                    {
                        name: "inputAmount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "spokePool",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "nonce",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
            {
                name: "validAfter",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "validBefore",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "receiveWithAuthSignature",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "depositDataSignature",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "depositWithPermit",
        inputs: [
            {
                name: "signatureOwner",
                type: "address",
                internalType: "address",
            },
            {
                name: "depositData",
                type: "tuple",
                internalType: "struct SpokePoolPeripheryInterface.DepositData",
                components: [
                    {
                        name: "submissionFees",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        components: [
                            {
                                name: "amount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "recipient",
                                type: "address",
                                internalType: "address",
                            },
                        ],
                    },
                    {
                        name: "baseDepositData",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        components: [
                            {
                                name: "inputToken",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "outputToken",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "outputAmount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "depositor",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "recipient",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "destinationChainId",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "exclusiveRelayer",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "quoteTimestamp",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "fillDeadline",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "exclusivityParameter",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "message",
                                type: "bytes",
                                internalType: "bytes",
                            },
                        ],
                    },
                    {
                        name: "inputAmount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "spokePool",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "nonce",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
            {
                name: "deadline",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "permitSignature",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "depositDataSignature",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "depositWithPermit2",
        inputs: [
            {
                name: "signatureOwner",
                type: "address",
                internalType: "address",
            },
            {
                name: "depositData",
                type: "tuple",
                internalType: "struct SpokePoolPeripheryInterface.DepositData",
                components: [
                    {
                        name: "submissionFees",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        components: [
                            {
                                name: "amount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "recipient",
                                type: "address",
                                internalType: "address",
                            },
                        ],
                    },
                    {
                        name: "baseDepositData",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        components: [
                            {
                                name: "inputToken",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "outputToken",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "outputAmount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "depositor",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "recipient",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "destinationChainId",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "exclusiveRelayer",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "quoteTimestamp",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "fillDeadline",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "exclusivityParameter",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "message",
                                type: "bytes",
                                internalType: "bytes",
                            },
                        ],
                    },
                    {
                        name: "inputAmount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "spokePool",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "nonce",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
            {
                name: "permit",
                type: "tuple",
                internalType: "struct IPermit2.PermitTransferFrom",
                components: [
                    {
                        name: "permitted",
                        type: "tuple",
                        internalType: "struct IPermit2.TokenPermissions",
                        components: [
                            {
                                name: "token",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "amount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                        ],
                    },
                    {
                        name: "nonce",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "deadline",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
            {
                name: "signature",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "permitNonces",
        inputs: [
            {
                name: "user",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "swapAndBridge",
        inputs: [
            {
                name: "swapAndDepositData",
                type: "tuple",
                internalType: "struct SpokePoolPeripheryInterface.SwapAndDepositData",
                components: [
                    {
                        name: "submissionFees",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        components: [
                            {
                                name: "amount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "recipient",
                                type: "address",
                                internalType: "address",
                            },
                        ],
                    },
                    {
                        name: "depositData",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        components: [
                            {
                                name: "inputToken",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "outputToken",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "outputAmount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "depositor",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "recipient",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "destinationChainId",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "exclusiveRelayer",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "quoteTimestamp",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "fillDeadline",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "exclusivityParameter",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "message",
                                type: "bytes",
                                internalType: "bytes",
                            },
                        ],
                    },
                    {
                        name: "swapToken",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "exchange",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "transferType",
                        type: "uint8",
                        internalType: "enum SpokePoolPeripheryInterface.TransferType",
                    },
                    {
                        name: "swapTokenAmount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "minExpectedInputTokenAmount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "routerCalldata",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "enableProportionalAdjustment",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "spokePool",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "nonce",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "swapAndBridgeWithAuthorization",
        inputs: [
            {
                name: "signatureOwner",
                type: "address",
                internalType: "address",
            },
            {
                name: "swapAndDepositData",
                type: "tuple",
                internalType: "struct SpokePoolPeripheryInterface.SwapAndDepositData",
                components: [
                    {
                        name: "submissionFees",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        components: [
                            {
                                name: "amount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "recipient",
                                type: "address",
                                internalType: "address",
                            },
                        ],
                    },
                    {
                        name: "depositData",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        components: [
                            {
                                name: "inputToken",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "outputToken",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "outputAmount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "depositor",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "recipient",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "destinationChainId",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "exclusiveRelayer",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "quoteTimestamp",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "fillDeadline",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "exclusivityParameter",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "message",
                                type: "bytes",
                                internalType: "bytes",
                            },
                        ],
                    },
                    {
                        name: "swapToken",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "exchange",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "transferType",
                        type: "uint8",
                        internalType: "enum SpokePoolPeripheryInterface.TransferType",
                    },
                    {
                        name: "swapTokenAmount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "minExpectedInputTokenAmount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "routerCalldata",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "enableProportionalAdjustment",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "spokePool",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "nonce",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
            {
                name: "validAfter",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "validBefore",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "receiveWithAuthSignature",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "swapAndDepositDataSignature",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "swapAndBridgeWithPermit",
        inputs: [
            {
                name: "signatureOwner",
                type: "address",
                internalType: "address",
            },
            {
                name: "swapAndDepositData",
                type: "tuple",
                internalType: "struct SpokePoolPeripheryInterface.SwapAndDepositData",
                components: [
                    {
                        name: "submissionFees",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        components: [
                            {
                                name: "amount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "recipient",
                                type: "address",
                                internalType: "address",
                            },
                        ],
                    },
                    {
                        name: "depositData",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        components: [
                            {
                                name: "inputToken",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "outputToken",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "outputAmount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "depositor",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "recipient",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "destinationChainId",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "exclusiveRelayer",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "quoteTimestamp",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "fillDeadline",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "exclusivityParameter",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "message",
                                type: "bytes",
                                internalType: "bytes",
                            },
                        ],
                    },
                    {
                        name: "swapToken",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "exchange",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "transferType",
                        type: "uint8",
                        internalType: "enum SpokePoolPeripheryInterface.TransferType",
                    },
                    {
                        name: "swapTokenAmount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "minExpectedInputTokenAmount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "routerCalldata",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "enableProportionalAdjustment",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "spokePool",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "nonce",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
            {
                name: "deadline",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "permitSignature",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "swapAndDepositDataSignature",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "swapAndBridgeWithPermit2",
        inputs: [
            {
                name: "signatureOwner",
                type: "address",
                internalType: "address",
            },
            {
                name: "swapAndDepositData",
                type: "tuple",
                internalType: "struct SpokePoolPeripheryInterface.SwapAndDepositData",
                components: [
                    {
                        name: "submissionFees",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        components: [
                            {
                                name: "amount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "recipient",
                                type: "address",
                                internalType: "address",
                            },
                        ],
                    },
                    {
                        name: "depositData",
                        type: "tuple",
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        components: [
                            {
                                name: "inputToken",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "outputToken",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "outputAmount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "depositor",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "recipient",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "destinationChainId",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "exclusiveRelayer",
                                type: "bytes32",
                                internalType: "bytes32",
                            },
                            {
                                name: "quoteTimestamp",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "fillDeadline",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "exclusivityParameter",
                                type: "uint32",
                                internalType: "uint32",
                            },
                            {
                                name: "message",
                                type: "bytes",
                                internalType: "bytes",
                            },
                        ],
                    },
                    {
                        name: "swapToken",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "exchange",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "transferType",
                        type: "uint8",
                        internalType: "enum SpokePoolPeripheryInterface.TransferType",
                    },
                    {
                        name: "swapTokenAmount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "minExpectedInputTokenAmount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "routerCalldata",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "enableProportionalAdjustment",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "spokePool",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "nonce",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
            {
                name: "permit",
                type: "tuple",
                internalType: "struct IPermit2.PermitTransferFrom",
                components: [
                    {
                        name: "permitted",
                        type: "tuple",
                        internalType: "struct IPermit2.TokenPermissions",
                        components: [
                            {
                                name: "token",
                                type: "address",
                                internalType: "address",
                            },
                            {
                                name: "amount",
                                type: "uint256",
                                internalType: "uint256",
                            },
                        ],
                    },
                    {
                        name: "nonce",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "deadline",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
            {
                name: "signature",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
];
class SpokePoolPeripheryInterface__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.SpokePoolPeripheryInterface__factory = SpokePoolPeripheryInterface__factory;
SpokePoolPeripheryInterface__factory.abi = _abi;
