"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpokePoolInterface__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "function",
        name: "chainId",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "depositDeprecated_5947912356",
        inputs: [
            {
                name: "recipient",
                type: "address",
                internalType: "address",
            },
            {
                name: "originToken",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "destinationChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "relayerFeePct",
                type: "int64",
                internalType: "int64",
            },
            {
                name: "quoteTimestamp",
                type: "uint32",
                internalType: "uint32",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "maxCount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "depositFor",
        inputs: [
            {
                name: "depositor",
                type: "address",
                internalType: "address",
            },
            {
                name: "recipient",
                type: "address",
                internalType: "address",
            },
            {
                name: "originToken",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "destinationChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "relayerFeePct",
                type: "int64",
                internalType: "int64",
            },
            {
                name: "quoteTimestamp",
                type: "uint32",
                internalType: "uint32",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "maxCount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "emergencyDeleteRootBundle",
        inputs: [
            {
                name: "rootBundleId",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "executeRelayerRefundLeaf",
        inputs: [
            {
                name: "rootBundleId",
                type: "uint32",
                internalType: "uint32",
            },
            {
                name: "relayerRefundLeaf",
                type: "tuple",
                internalType: "struct SpokePoolInterface.RelayerRefundLeaf",
                components: [
                    {
                        name: "amountToReturn",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "chainId",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "refundAmounts",
                        type: "uint256[]",
                        internalType: "uint256[]",
                    },
                    {
                        name: "leafId",
                        type: "uint32",
                        internalType: "uint32",
                    },
                    {
                        name: "l2TokenAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "refundAddresses",
                        type: "address[]",
                        internalType: "address[]",
                    },
                ],
            },
            {
                name: "proof",
                type: "bytes32[]",
                internalType: "bytes32[]",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "pauseDeposits",
        inputs: [
            {
                name: "pause",
                type: "bool",
                internalType: "bool",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "pauseFills",
        inputs: [
            {
                name: "pause",
                type: "bool",
                internalType: "bool",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "relayRootBundle",
        inputs: [
            {
                name: "relayerRefundRoot",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "slowRelayRoot",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setCrossDomainAdmin",
        inputs: [
            {
                name: "newCrossDomainAdmin",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setWithdrawalRecipient",
        inputs: [
            {
                name: "newWithdrawalRecipient",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "error",
        name: "DepositsArePaused",
        inputs: [],
    },
    {
        type: "error",
        name: "ExternalCallExecutionFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "FillsArePaused",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidCrossDomainAdmin",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidDepositorSignature",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidWithdrawalRecipient",
        inputs: [],
    },
    {
        type: "error",
        name: "MessageTooShort",
        inputs: [],
    },
    {
        type: "error",
        name: "NotEOA",
        inputs: [],
    },
    {
        type: "error",
        name: "ZeroAddressTarget",
        inputs: [],
    },
];
class SpokePoolInterface__factory {
    static abi = _abi;
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.SpokePoolInterface__factory = SpokePoolInterface__factory;
//# sourceMappingURL=SpokePoolInterface__factory.js.map