"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HubPool__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_lpTokenFactory",
                type: "address",
                internalType: "contract LpTokenFactoryInterface",
            },
            {
                name: "_finder",
                type: "address",
                internalType: "contract FinderInterface",
            },
            {
                name: "_weth",
                type: "address",
                internalType: "contract WETH9Interface",
            },
            {
                name: "_timer",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "fallback",
        stateMutability: "payable",
    },
    {
        type: "receive",
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "addLiquidity",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "l1TokenAmount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "bondAmount",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "bondToken",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract IERC20",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "claimProtocolFeesCaptured",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "crossChainContracts",
        inputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "adapter",
                type: "address",
                internalType: "address",
            },
            {
                name: "spokePool",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "disableL1TokenForLiquidityProvision",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "disputeRootBundle",
        inputs: [],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "emergencyDeleteProposal",
        inputs: [],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "enableL1TokenForLiquidityProvision",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "exchangeRateCurrent",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "executeRootBundle",
        inputs: [
            {
                name: "chainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "groupIndex",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "bundleLpFees",
                type: "uint256[]",
                internalType: "uint256[]",
            },
            {
                name: "netSendAmounts",
                type: "int256[]",
                internalType: "int256[]",
            },
            {
                name: "runningBalances",
                type: "int256[]",
                internalType: "int256[]",
            },
            {
                name: "leafId",
                type: "uint8",
                internalType: "uint8",
            },
            {
                name: "l1Tokens",
                type: "address[]",
                internalType: "address[]",
            },
            {
                name: "proof",
                type: "bytes32[]",
                internalType: "bytes32[]",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "finder",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract FinderInterface",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "getCurrentTime",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "haircutReserves",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "haircutAmount",
                type: "int256",
                internalType: "int256",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "identifier",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "liquidityUtilizationCurrent",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "liquidityUtilizationPostRelay",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "relayedAmount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "liveness",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint32",
                internalType: "uint32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "loadEthForL2Calls",
        inputs: [],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "lpFeeRatePerSecond",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "lpTokenFactory",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract LpTokenFactoryInterface",
            },
        ],
        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: "owner",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "paused",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bool",
                internalType: "bool",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "poolRebalanceRoute",
        inputs: [
            {
                name: "destinationChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [
            {
                name: "destinationToken",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "pooledTokens",
        inputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [
            {
                name: "lpToken",
                type: "address",
                internalType: "address",
            },
            {
                name: "isEnabled",
                type: "bool",
                internalType: "bool",
            },
            {
                name: "lastLpFeeUpdate",
                type: "uint32",
                internalType: "uint32",
            },
            {
                name: "utilizedReserves",
                type: "int256",
                internalType: "int256",
            },
            {
                name: "liquidReserves",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "undistributedLpFees",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "proposeRootBundle",
        inputs: [
            {
                name: "bundleEvaluationBlockNumbers",
                type: "uint256[]",
                internalType: "uint256[]",
            },
            {
                name: "poolRebalanceLeafCount",
                type: "uint8",
                internalType: "uint8",
            },
            {
                name: "poolRebalanceRoot",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "relayerRefundRoot",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "slowRelayRoot",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "protocolFeeCaptureAddress",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "protocolFeeCapturePct",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "relaySpokePoolAdminFunction",
        inputs: [
            {
                name: "chainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "functionData",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "removeLiquidity",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "lpTokenAmount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "sendEth",
                type: "bool",
                internalType: "bool",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "renounceOwnership",
        inputs: [],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "rootBundleProposal",
        inputs: [],
        outputs: [
            {
                name: "poolRebalanceRoot",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "relayerRefundRoot",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "slowRelayRoot",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "claimedBitMap",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "proposer",
                type: "address",
                internalType: "address",
            },
            {
                name: "unclaimedPoolRebalanceLeafCount",
                type: "uint8",
                internalType: "uint8",
            },
            {
                name: "challengePeriodEndTimestamp",
                type: "uint32",
                internalType: "uint32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "setBond",
        inputs: [
            {
                name: "newBondToken",
                type: "address",
                internalType: "contract IERC20",
            },
            {
                name: "newBondAmount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setCrossChainContracts",
        inputs: [
            {
                name: "l2ChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "adapter",
                type: "address",
                internalType: "address",
            },
            {
                name: "spokePool",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setCurrentTime",
        inputs: [
            {
                name: "time",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setDepositRoute",
        inputs: [
            {
                name: "originChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "destinationChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "originToken",
                type: "address",
                internalType: "address",
            },
            {
                name: "depositsEnabled",
                type: "bool",
                internalType: "bool",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setIdentifier",
        inputs: [
            {
                name: "newIdentifier",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setLiveness",
        inputs: [
            {
                name: "newLiveness",
                type: "uint32",
                internalType: "uint32",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setPaused",
        inputs: [
            {
                name: "pause",
                type: "bool",
                internalType: "bool",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setPoolRebalanceRoute",
        inputs: [
            {
                name: "destinationChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "destinationToken",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setProtocolFeeCapture",
        inputs: [
            {
                name: "newProtocolFeeCaptureAddress",
                type: "address",
                internalType: "address",
            },
            {
                name: "newProtocolFeeCapturePct",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "sync",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "timerAddress",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "transferOwnership",
        inputs: [
            {
                name: "newOwner",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "unclaimedAccumulatedProtocolFees",
        inputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "weth",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract WETH9Interface",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "event",
        name: "BondSet",
        inputs: [
            {
                name: "newBondToken",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "newBondAmount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "CrossChainContractsSet",
        inputs: [
            {
                name: "l2ChainId",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "adapter",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "spokePool",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "EmergencyRootBundleDeleted",
        inputs: [
            {
                name: "poolRebalanceRoot",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
            {
                name: "relayerRefundRoot",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
            {
                name: "slowRelayRoot",
                type: "bytes32",
                indexed: false,
                internalType: "bytes32",
            },
            {
                name: "proposer",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "IdentifierSet",
        inputs: [
            {
                name: "newIdentifier",
                type: "bytes32",
                indexed: false,
                internalType: "bytes32",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "L1TokenEnabledForLiquidityProvision",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "lpToken",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "L2TokenDisabledForLiquidityProvision",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "lpToken",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "LiquidityAdded",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "lpTokensMinted",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "liquidityProvider",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "LiquidityRemoved",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "lpTokensBurnt",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "liquidityProvider",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "LivenessSet",
        inputs: [
            {
                name: "newLiveness",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "OwnershipTransferred",
        inputs: [
            {
                name: "previousOwner",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "newOwner",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "Paused",
        inputs: [
            {
                name: "isPaused",
                type: "bool",
                indexed: true,
                internalType: "bool",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ProposeRootBundle",
        inputs: [
            {
                name: "challengePeriodEndTimestamp",
                type: "uint32",
                indexed: false,
                internalType: "uint32",
            },
            {
                name: "poolRebalanceLeafCount",
                type: "uint8",
                indexed: false,
                internalType: "uint8",
            },
            {
                name: "bundleEvaluationBlockNumbers",
                type: "uint256[]",
                indexed: false,
                internalType: "uint256[]",
            },
            {
                name: "poolRebalanceRoot",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
            {
                name: "relayerRefundRoot",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
            {
                name: "slowRelayRoot",
                type: "bytes32",
                indexed: false,
                internalType: "bytes32",
            },
            {
                name: "proposer",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ProtocolFeeCaptureSet",
        inputs: [
            {
                name: "newProtocolFeeCaptureAddress",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "newProtocolFeeCapturePct",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ProtocolFeesCapturedClaimed",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "accumulatedFees",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "RootBundleCanceled",
        inputs: [
            {
                name: "disputer",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "requestTime",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "RootBundleDisputed",
        inputs: [
            {
                name: "disputer",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "requestTime",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "RootBundleExecuted",
        inputs: [
            {
                name: "groupIndex",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "leafId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "chainId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "l1Tokens",
                type: "address[]",
                indexed: false,
                internalType: "address[]",
            },
            {
                name: "bundleLpFees",
                type: "uint256[]",
                indexed: false,
                internalType: "uint256[]",
            },
            {
                name: "netSendAmounts",
                type: "int256[]",
                indexed: false,
                internalType: "int256[]",
            },
            {
                name: "runningBalances",
                type: "int256[]",
                indexed: false,
                internalType: "int256[]",
            },
            {
                name: "caller",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "SetEnableDepositRoute",
        inputs: [
            {
                name: "originChainId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "destinationChainId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "originToken",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "depositsEnabled",
                type: "bool",
                indexed: false,
                internalType: "bool",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "SetPoolRebalanceRoute",
        inputs: [
            {
                name: "destinationChainId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "l1Token",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "destinationToken",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "SpokePoolAdminFunctionTriggered",
        inputs: [
            {
                name: "chainId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "message",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
        ],
        anonymous: false,
    },
];
class HubPool__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.HubPool__factory = HubPool__factory;
//# sourceMappingURL=HubPool__factory.js.map