"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StakefishFeePool__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [],
        stateMutability: 'nonpayable',
        type: 'constructor',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'address',
                name: 'previousAdmin',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'newAdmin',
                type: 'address',
            },
        ],
        name: 'AdminChanged',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'beacon',
                type: 'address',
            },
        ],
        name: 'BeaconUpgraded',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'uint256',
                name: 'newRate',
                type: 'uint256',
            },
        ],
        name: 'CommissionRateChanged',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'uint8',
                name: 'version',
                type: 'uint8',
            },
        ],
        name: 'Initialized',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'address',
                name: 'newOperator',
                type: 'address',
            },
        ],
        name: 'OperatorChanged',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'implementation',
                type: 'address',
            },
        ],
        name: 'Upgraded',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'bytes',
                name: 'validatorPubkeyArray',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'address[]',
                name: 'depositorAddress',
                type: 'address[]',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'time',
                type: 'uint256',
            },
        ],
        name: 'ValidatorBulkJoined',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'bytes',
                name: 'validatorPubkeyArray',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'address[]',
                name: 'depositorAddress',
                type: 'address[]',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'time',
                type: 'uint256',
            },
        ],
        name: 'ValidatorBulkParted',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'bytes',
                name: 'validatorPubkey',
                type: 'bytes',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'depositorAddress',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'ts',
                type: 'uint256',
            },
        ],
        name: 'ValidatorJoined',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'bytes',
                name: 'validatorPubkey',
                type: 'bytes',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'depositorAddress',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'ts',
                type: 'uint256',
            },
        ],
        name: 'ValidatorParted',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'depositorAddress',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'beneficiary',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'rewardAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'requester',
                type: 'address',
            },
        ],
        name: 'ValidatorRewardCollected',
        type: 'event',
    },
    {
        inputs: [
            {
                internalType: 'bytes',
                name: 'validatorPubkeyArray',
                type: 'bytes',
            },
            {
                internalType: 'address[]',
                name: 'depositorAddresses',
                type: 'address[]',
            },
            {
                internalType: 'uint256',
                name: 'ts',
                type: 'uint256',
            },
        ],
        name: 'bulkJoinPool',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes',
                name: 'validatorPubkeyArray',
                type: 'bytes',
            },
            {
                internalType: 'uint256',
                name: 'ts',
                type: 'uint256',
            },
        ],
        name: 'bulkPartPool',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'newOperator',
                type: 'address',
            },
        ],
        name: 'changeOperator',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'closePoolForWithdrawal',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address payable',
                name: 'beneficiary',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amountRequested',
                type: 'uint256',
            },
        ],
        name: 'collectPoolCommission',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address payable',
                name: 'beneficiary',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amountRequested',
                type: 'uint256',
            },
        ],
        name: 'collectReward',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address[]',
                name: 'depositorAddresses',
                type: 'address[]',
            },
            {
                internalType: 'address[]',
                name: 'beneficiaries',
                type: 'address[]',
            },
            {
                internalType: 'uint256',
                name: 'maxAmount',
                type: 'uint256',
            },
        ],
        name: 'emergencyWithdraw',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'getPoolState',
        outputs: [
            {
                components: [
                    {
                        internalType: 'uint256',
                        name: 'lastCacheUpdateTime',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'totalValidatorUptime',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'totalUncollectedCommission',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'totalUncollectedUserBalance',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'totalUnsentUserRewards',
                        type: 'uint256',
                    },
                ],
                internalType: 'struct IStakefishTransactionFeePool.ComputationCache',
                name: '',
                type: 'tuple',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'operatorAddress_',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'adminAddress_',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'devAddress_',
                type: 'address',
            },
        ],
        name: 'initialize',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes',
                name: 'validatorPubKey',
                type: 'bytes',
            },
            {
                internalType: 'address',
                name: 'depositor',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'joinTime',
                type: 'uint256',
            },
        ],
        name: 'joinPool',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'openPoolForWithdrawal',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes',
                name: 'validatorPubKey',
                type: 'bytes',
            },
            {
                internalType: 'uint256',
                name: 'leaveTime',
                type: 'uint256',
            },
        ],
        name: 'partPool',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'depositorAddress',
                type: 'address',
            },
        ],
        name: 'pendingReward',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'proxiableUUID',
        outputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'commissionRate',
                type: 'uint256',
            },
        ],
        name: 'setCommissionRate',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'stakefishCommissionRateBasisPoints',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'totalValidators',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'newImplementation',
                type: 'address',
            },
        ],
        name: 'upgradeTo',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'newImplementation',
                type: 'address',
            },
            {
                internalType: 'bytes',
                name: 'data',
                type: 'bytes',
            },
        ],
        name: 'upgradeToAndCall',
        outputs: [],
        stateMutability: 'payable',
        type: 'function',
    },
    {
        stateMutability: 'payable',
        type: 'receive',
    },
];
class StakefishFeePool__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.StakefishFeePool__factory = StakefishFeePool__factory;
StakefishFeePool__factory.abi = _abi;
//# sourceMappingURL=StakefishFeePool__factory.js.map