"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpokePoolPeriphery__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "contract IPermit2",
                name: "_permit2",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [],
        name: "InvalidMinExpectedInputAmount",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidMsgValue",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidNonce",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidShortString",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidSignature",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidSignature",
        type: "error",
    },
    {
        inputs: [],
        name: "MinimumExpectedInputAmount",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "string",
                name: "str",
                type: "string",
            },
        ],
        name: "StringTooLong",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [],
        name: "EIP712DomainChanged",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "exchange",
                type: "address",
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "exchangeCalldata",
                type: "bytes",
            },
            {
                indexed: true,
                internalType: "address",
                name: "swapToken",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "acrossInputToken",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "swapTokenAmount",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "acrossInputAmount",
                type: "uint256",
            },
            {
                indexed: true,
                internalType: "bytes32",
                name: "acrossOutputToken",
                type: "bytes32",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "acrossOutputAmount",
                type: "uint256",
            },
        ],
        name: "SwapBeforeBridge",
        type: "event",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "spokePool",
                type: "address",
            },
            {
                internalType: "bytes32",
                name: "recipient",
                type: "bytes32",
            },
            {
                internalType: "address",
                name: "inputToken",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "inputAmount",
                type: "uint256",
            },
            {
                internalType: "bytes32",
                name: "outputToken",
                type: "bytes32",
            },
            {
                internalType: "uint256",
                name: "outputAmount",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "destinationChainId",
                type: "uint256",
            },
            {
                internalType: "bytes32",
                name: "exclusiveRelayer",
                type: "bytes32",
            },
            {
                internalType: "uint32",
                name: "quoteTimestamp",
                type: "uint32",
            },
            {
                internalType: "uint32",
                name: "fillDeadline",
                type: "uint32",
            },
            {
                internalType: "uint32",
                name: "exclusivityParameter",
                type: "uint32",
            },
            {
                internalType: "bytes",
                name: "message",
                type: "bytes",
            },
        ],
        name: "depositNative",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "signatureOwner",
                type: "address",
            },
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "uint256",
                                name: "amount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "recipient",
                                type: "address",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        name: "submissionFees",
                        type: "tuple",
                    },
                    {
                        components: [
                            {
                                internalType: "address",
                                name: "inputToken",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "outputToken",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "outputAmount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "depositor",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "recipient",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "destinationChainId",
                                type: "uint256",
                            },
                            {
                                internalType: "bytes32",
                                name: "exclusiveRelayer",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint32",
                                name: "quoteTimestamp",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "fillDeadline",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "exclusivityParameter",
                                type: "uint32",
                            },
                            {
                                internalType: "bytes",
                                name: "message",
                                type: "bytes",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        name: "baseDepositData",
                        type: "tuple",
                    },
                    {
                        internalType: "uint256",
                        name: "inputAmount",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "spokePool",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "nonce",
                        type: "uint256",
                    },
                ],
                internalType: "struct SpokePoolPeripheryInterface.DepositData",
                name: "depositData",
                type: "tuple",
            },
            {
                internalType: "uint256",
                name: "validAfter",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "validBefore",
                type: "uint256",
            },
            {
                internalType: "bytes",
                name: "receiveWithAuthSignature",
                type: "bytes",
            },
            {
                internalType: "bytes",
                name: "depositDataSignature",
                type: "bytes",
            },
        ],
        name: "depositWithAuthorization",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "signatureOwner",
                type: "address",
            },
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "uint256",
                                name: "amount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "recipient",
                                type: "address",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        name: "submissionFees",
                        type: "tuple",
                    },
                    {
                        components: [
                            {
                                internalType: "address",
                                name: "inputToken",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "outputToken",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "outputAmount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "depositor",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "recipient",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "destinationChainId",
                                type: "uint256",
                            },
                            {
                                internalType: "bytes32",
                                name: "exclusiveRelayer",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint32",
                                name: "quoteTimestamp",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "fillDeadline",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "exclusivityParameter",
                                type: "uint32",
                            },
                            {
                                internalType: "bytes",
                                name: "message",
                                type: "bytes",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        name: "baseDepositData",
                        type: "tuple",
                    },
                    {
                        internalType: "uint256",
                        name: "inputAmount",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "spokePool",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "nonce",
                        type: "uint256",
                    },
                ],
                internalType: "struct SpokePoolPeripheryInterface.DepositData",
                name: "depositData",
                type: "tuple",
            },
            {
                internalType: "uint256",
                name: "deadline",
                type: "uint256",
            },
            {
                internalType: "bytes",
                name: "permitSignature",
                type: "bytes",
            },
            {
                internalType: "bytes",
                name: "depositDataSignature",
                type: "bytes",
            },
        ],
        name: "depositWithPermit",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "signatureOwner",
                type: "address",
            },
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "uint256",
                                name: "amount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "recipient",
                                type: "address",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        name: "submissionFees",
                        type: "tuple",
                    },
                    {
                        components: [
                            {
                                internalType: "address",
                                name: "inputToken",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "outputToken",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "outputAmount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "depositor",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "recipient",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "destinationChainId",
                                type: "uint256",
                            },
                            {
                                internalType: "bytes32",
                                name: "exclusiveRelayer",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint32",
                                name: "quoteTimestamp",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "fillDeadline",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "exclusivityParameter",
                                type: "uint32",
                            },
                            {
                                internalType: "bytes",
                                name: "message",
                                type: "bytes",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        name: "baseDepositData",
                        type: "tuple",
                    },
                    {
                        internalType: "uint256",
                        name: "inputAmount",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "spokePool",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "nonce",
                        type: "uint256",
                    },
                ],
                internalType: "struct SpokePoolPeripheryInterface.DepositData",
                name: "depositData",
                type: "tuple",
            },
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "address",
                                name: "token",
                                type: "address",
                            },
                            {
                                internalType: "uint256",
                                name: "amount",
                                type: "uint256",
                            },
                        ],
                        internalType: "struct IPermit2.TokenPermissions",
                        name: "permitted",
                        type: "tuple",
                    },
                    {
                        internalType: "uint256",
                        name: "nonce",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "deadline",
                        type: "uint256",
                    },
                ],
                internalType: "struct IPermit2.PermitTransferFrom",
                name: "permit",
                type: "tuple",
            },
            {
                internalType: "bytes",
                name: "signature",
                type: "bytes",
            },
        ],
        name: "depositWithPermit2",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "domainSeparator",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "eip712Domain",
        outputs: [
            {
                internalType: "bytes1",
                name: "fields",
                type: "bytes1",
            },
            {
                internalType: "string",
                name: "name",
                type: "string",
            },
            {
                internalType: "string",
                name: "version",
                type: "string",
            },
            {
                internalType: "uint256",
                name: "chainId",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "verifyingContract",
                type: "address",
            },
            {
                internalType: "bytes32",
                name: "salt",
                type: "bytes32",
            },
            {
                internalType: "uint256[]",
                name: "extensions",
                type: "uint256[]",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes[]",
                name: "data",
                type: "bytes[]",
            },
        ],
        name: "multicall",
        outputs: [
            {
                internalType: "bytes[]",
                name: "results",
                type: "bytes[]",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "permit2",
        outputs: [
            {
                internalType: "contract IPermit2",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "permitNonces",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "uint256",
                                name: "amount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "recipient",
                                type: "address",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        name: "submissionFees",
                        type: "tuple",
                    },
                    {
                        components: [
                            {
                                internalType: "address",
                                name: "inputToken",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "outputToken",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "outputAmount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "depositor",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "recipient",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "destinationChainId",
                                type: "uint256",
                            },
                            {
                                internalType: "bytes32",
                                name: "exclusiveRelayer",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint32",
                                name: "quoteTimestamp",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "fillDeadline",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "exclusivityParameter",
                                type: "uint32",
                            },
                            {
                                internalType: "bytes",
                                name: "message",
                                type: "bytes",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        name: "depositData",
                        type: "tuple",
                    },
                    {
                        internalType: "address",
                        name: "swapToken",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "exchange",
                        type: "address",
                    },
                    {
                        internalType: "enum SpokePoolPeripheryInterface.TransferType",
                        name: "transferType",
                        type: "uint8",
                    },
                    {
                        internalType: "uint256",
                        name: "swapTokenAmount",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "minExpectedInputTokenAmount",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "routerCalldata",
                        type: "bytes",
                    },
                    {
                        internalType: "bool",
                        name: "enableProportionalAdjustment",
                        type: "bool",
                    },
                    {
                        internalType: "address",
                        name: "spokePool",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "nonce",
                        type: "uint256",
                    },
                ],
                internalType: "struct SpokePoolPeripheryInterface.SwapAndDepositData",
                name: "swapAndDepositData",
                type: "tuple",
            },
        ],
        name: "swapAndBridge",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "signatureOwner",
                type: "address",
            },
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "uint256",
                                name: "amount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "recipient",
                                type: "address",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        name: "submissionFees",
                        type: "tuple",
                    },
                    {
                        components: [
                            {
                                internalType: "address",
                                name: "inputToken",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "outputToken",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "outputAmount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "depositor",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "recipient",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "destinationChainId",
                                type: "uint256",
                            },
                            {
                                internalType: "bytes32",
                                name: "exclusiveRelayer",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint32",
                                name: "quoteTimestamp",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "fillDeadline",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "exclusivityParameter",
                                type: "uint32",
                            },
                            {
                                internalType: "bytes",
                                name: "message",
                                type: "bytes",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        name: "depositData",
                        type: "tuple",
                    },
                    {
                        internalType: "address",
                        name: "swapToken",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "exchange",
                        type: "address",
                    },
                    {
                        internalType: "enum SpokePoolPeripheryInterface.TransferType",
                        name: "transferType",
                        type: "uint8",
                    },
                    {
                        internalType: "uint256",
                        name: "swapTokenAmount",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "minExpectedInputTokenAmount",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "routerCalldata",
                        type: "bytes",
                    },
                    {
                        internalType: "bool",
                        name: "enableProportionalAdjustment",
                        type: "bool",
                    },
                    {
                        internalType: "address",
                        name: "spokePool",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "nonce",
                        type: "uint256",
                    },
                ],
                internalType: "struct SpokePoolPeripheryInterface.SwapAndDepositData",
                name: "swapAndDepositData",
                type: "tuple",
            },
            {
                internalType: "uint256",
                name: "validAfter",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "validBefore",
                type: "uint256",
            },
            {
                internalType: "bytes",
                name: "receiveWithAuthSignature",
                type: "bytes",
            },
            {
                internalType: "bytes",
                name: "swapAndDepositDataSignature",
                type: "bytes",
            },
        ],
        name: "swapAndBridgeWithAuthorization",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "signatureOwner",
                type: "address",
            },
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "uint256",
                                name: "amount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "recipient",
                                type: "address",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        name: "submissionFees",
                        type: "tuple",
                    },
                    {
                        components: [
                            {
                                internalType: "address",
                                name: "inputToken",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "outputToken",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "outputAmount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "depositor",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "recipient",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "destinationChainId",
                                type: "uint256",
                            },
                            {
                                internalType: "bytes32",
                                name: "exclusiveRelayer",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint32",
                                name: "quoteTimestamp",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "fillDeadline",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "exclusivityParameter",
                                type: "uint32",
                            },
                            {
                                internalType: "bytes",
                                name: "message",
                                type: "bytes",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        name: "depositData",
                        type: "tuple",
                    },
                    {
                        internalType: "address",
                        name: "swapToken",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "exchange",
                        type: "address",
                    },
                    {
                        internalType: "enum SpokePoolPeripheryInterface.TransferType",
                        name: "transferType",
                        type: "uint8",
                    },
                    {
                        internalType: "uint256",
                        name: "swapTokenAmount",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "minExpectedInputTokenAmount",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "routerCalldata",
                        type: "bytes",
                    },
                    {
                        internalType: "bool",
                        name: "enableProportionalAdjustment",
                        type: "bool",
                    },
                    {
                        internalType: "address",
                        name: "spokePool",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "nonce",
                        type: "uint256",
                    },
                ],
                internalType: "struct SpokePoolPeripheryInterface.SwapAndDepositData",
                name: "swapAndDepositData",
                type: "tuple",
            },
            {
                internalType: "uint256",
                name: "deadline",
                type: "uint256",
            },
            {
                internalType: "bytes",
                name: "permitSignature",
                type: "bytes",
            },
            {
                internalType: "bytes",
                name: "swapAndDepositDataSignature",
                type: "bytes",
            },
        ],
        name: "swapAndBridgeWithPermit",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "signatureOwner",
                type: "address",
            },
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "uint256",
                                name: "amount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "recipient",
                                type: "address",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.Fees",
                        name: "submissionFees",
                        type: "tuple",
                    },
                    {
                        components: [
                            {
                                internalType: "address",
                                name: "inputToken",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "outputToken",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "outputAmount",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "depositor",
                                type: "address",
                            },
                            {
                                internalType: "bytes32",
                                name: "recipient",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint256",
                                name: "destinationChainId",
                                type: "uint256",
                            },
                            {
                                internalType: "bytes32",
                                name: "exclusiveRelayer",
                                type: "bytes32",
                            },
                            {
                                internalType: "uint32",
                                name: "quoteTimestamp",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "fillDeadline",
                                type: "uint32",
                            },
                            {
                                internalType: "uint32",
                                name: "exclusivityParameter",
                                type: "uint32",
                            },
                            {
                                internalType: "bytes",
                                name: "message",
                                type: "bytes",
                            },
                        ],
                        internalType: "struct SpokePoolPeripheryInterface.BaseDepositData",
                        name: "depositData",
                        type: "tuple",
                    },
                    {
                        internalType: "address",
                        name: "swapToken",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "exchange",
                        type: "address",
                    },
                    {
                        internalType: "enum SpokePoolPeripheryInterface.TransferType",
                        name: "transferType",
                        type: "uint8",
                    },
                    {
                        internalType: "uint256",
                        name: "swapTokenAmount",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "minExpectedInputTokenAmount",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "routerCalldata",
                        type: "bytes",
                    },
                    {
                        internalType: "bool",
                        name: "enableProportionalAdjustment",
                        type: "bool",
                    },
                    {
                        internalType: "address",
                        name: "spokePool",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "nonce",
                        type: "uint256",
                    },
                ],
                internalType: "struct SpokePoolPeripheryInterface.SwapAndDepositData",
                name: "swapAndDepositData",
                type: "tuple",
            },
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "address",
                                name: "token",
                                type: "address",
                            },
                            {
                                internalType: "uint256",
                                name: "amount",
                                type: "uint256",
                            },
                        ],
                        internalType: "struct IPermit2.TokenPermissions",
                        name: "permitted",
                        type: "tuple",
                    },
                    {
                        internalType: "uint256",
                        name: "nonce",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "deadline",
                        type: "uint256",
                    },
                ],
                internalType: "struct IPermit2.PermitTransferFrom",
                name: "permit",
                type: "tuple",
            },
            {
                internalType: "bytes",
                name: "signature",
                type: "bytes",
            },
        ],
        name: "swapAndBridgeWithPermit2",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "swapProxy",
        outputs: [
            {
                internalType: "contract SwapProxy",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class SpokePoolPeriphery__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(_permit2, overrides) {
        return super.deploy(_permit2, overrides || {});
    }
    getDeployTransaction(_permit2, overrides) {
        return super.getDeployTransaction(_permit2, 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.SpokePoolPeriphery__factory = SpokePoolPeriphery__factory;
SpokePoolPeriphery__factory.bytecode = _bytecode;
SpokePoolPeriphery__factory.abi = _abi;
