"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 = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_permit2",
                type: "address",
                internalType: "contract IPermit2",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        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: "domainSeparator",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "eip712Domain",
        inputs: [],
        outputs: [
            {
                name: "fields",
                type: "bytes1",
                internalType: "bytes1",
            },
            {
                name: "name",
                type: "string",
                internalType: "string",
            },
            {
                name: "version",
                type: "string",
                internalType: "string",
            },
            {
                name: "chainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "verifyingContract",
                type: "address",
                internalType: "address",
            },
            {
                name: "salt",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "extensions",
                type: "uint256[]",
                internalType: "uint256[]",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "multicall",
        inputs: [
            {
                name: "data",
                type: "bytes[]",
                internalType: "bytes[]",
            },
        ],
        outputs: [
            {
                name: "results",
                type: "bytes[]",
                internalType: "bytes[]",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "permit2",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract IPermit2",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "permitNonces",
        inputs: [
            {
                name: "",
                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",
    },
    {
        type: "function",
        name: "swapProxy",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract SwapProxy",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "event",
        name: "EIP712DomainChanged",
        inputs: [],
        anonymous: false,
    },
    {
        type: "event",
        name: "SwapBeforeBridge",
        inputs: [
            {
                name: "exchange",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "exchangeCalldata",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "swapToken",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "acrossInputToken",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "swapTokenAmount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "acrossInputAmount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "acrossOutputToken",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
            {
                name: "acrossOutputAmount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
        ],
        anonymous: false,
    },
    {
        type: "error",
        name: "InvalidMinExpectedInputAmount",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidMsgValue",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidNonce",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidShortString",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidSignature",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidSignature",
        inputs: [],
    },
    {
        type: "error",
        name: "MinimumExpectedInputAmount",
        inputs: [],
    },
    {
        type: "error",
        name: "StringTooLong",
        inputs: [
            {
                name: "str",
                type: "string",
                internalType: "string",
            },
        ],
    },
];
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;
