Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
To
|
Amount
|
||
|---|---|---|---|---|---|---|---|
| Get Staking Modu... | 862557 | 179 days ago | 0 ETH | ||||
| Obtain Deposit D... | 862531 | 179 days ago | 0 ETH | ||||
| Get Staking Modu... | 862531 | 179 days ago | 0 ETH | ||||
| Get Nonce | 862531 | 179 days ago | 0 ETH | ||||
| On Exited And St... | 862301 | 179 days ago | 0 ETH | ||||
| Get Staking Modu... | 862301 | 179 days ago | 0 ETH | ||||
| On Rewards Minte... | 862289 | 179 days ago | 0 ETH | ||||
| Get Staking Modu... | 862289 | 179 days ago | 0 ETH | ||||
| On Exited And St... | 862122 | 179 days ago | 0 ETH | ||||
| Get Staking Modu... | 862122 | 179 days ago | 0 ETH | ||||
| On Rewards Minte... | 862114 | 179 days ago | 0 ETH | ||||
| Get Staking Modu... | 862114 | 179 days ago | 0 ETH | ||||
| On Exited And St... | 861965 | 179 days ago | 0 ETH | ||||
| Get Staking Modu... | 861965 | 179 days ago | 0 ETH | ||||
| On Rewards Minte... | 861953 | 179 days ago | 0 ETH | ||||
| Get Staking Modu... | 861953 | 179 days ago | 0 ETH | ||||
| On Exited And St... | 861798 | 179 days ago | 0 ETH | ||||
| Get Staking Modu... | 861798 | 179 days ago | 0 ETH | ||||
| On Rewards Minte... | 861779 | 179 days ago | 0 ETH | ||||
| Get Staking Modu... | 861779 | 179 days ago | 0 ETH | ||||
| Get Node Operato... | 861625 | 179 days ago | 0 ETH | ||||
| Get Node Operato... | 861625 | 179 days ago | 0 ETH | ||||
| Claim Rewards Un... | 861625 | 179 days ago | 0 ETH | ||||
| On Exited And St... | 861609 | 179 days ago | 0 ETH | ||||
| Get Staking Modu... | 861609 | 179 days ago | 0 ETH |
Loading...
Loading
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
CSModule
Compiler Version
v0.8.24+commit.e11b9ed9
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; import { PausableUntil } from "./lib/utils/PausableUntil.sol"; import { Math } from "@openzeppelin/contracts/utils/math/Math.sol"; import { AccessControlEnumerableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/extensions/AccessControlEnumerableUpgradeable.sol"; import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import { ILidoLocator } from "./interfaces/ILidoLocator.sol"; import { IStETH } from "./interfaces/IStETH.sol"; import { ICSAccounting } from "./interfaces/ICSAccounting.sol"; import { ICSEarlyAdoption } from "./interfaces/ICSEarlyAdoption.sol"; import { ICSModule, NodeOperator, NodeOperatorManagementProperties } from "./interfaces/ICSModule.sol"; import { QueueLib, Batch } from "./lib/QueueLib.sol"; import { ValidatorCountsReport } from "./lib/ValidatorCountsReport.sol"; import { NOAddresses } from "./lib/NOAddresses.sol"; import { SigningKeys } from "./lib/SigningKeys.sol"; import { AssetRecoverer } from "./abstract/AssetRecoverer.sol"; contract CSModule is ICSModule, Initializable, AccessControlEnumerableUpgradeable, PausableUntil, AssetRecoverer { using QueueLib for QueueLib.Queue; bytes32 public constant PAUSE_ROLE = keccak256("PAUSE_ROLE"); bytes32 public constant RESUME_ROLE = keccak256("RESUME_ROLE"); bytes32 public constant MODULE_MANAGER_ROLE = keccak256("MODULE_MANAGER_ROLE"); bytes32 public constant STAKING_ROUTER_ROLE = keccak256("STAKING_ROUTER_ROLE"); bytes32 public constant REPORT_EL_REWARDS_STEALING_PENALTY_ROLE = keccak256("REPORT_EL_REWARDS_STEALING_PENALTY_ROLE"); bytes32 public constant SETTLE_EL_REWARDS_STEALING_PENALTY_ROLE = keccak256("SETTLE_EL_REWARDS_STEALING_PENALTY_ROLE"); bytes32 public constant VERIFIER_ROLE = keccak256("VERIFIER_ROLE"); bytes32 public constant RECOVERER_ROLE = keccak256("RECOVERER_ROLE"); uint256 private constant DEPOSIT_SIZE = 32 ether; // @dev see IStakingModule.sol uint8 private constant FORCED_TARGET_LIMIT_MODE_ID = 2; uint256 public immutable INITIAL_SLASHING_PENALTY; uint256 public immutable EL_REWARDS_STEALING_FINE; uint256 public immutable MAX_SIGNING_KEYS_PER_OPERATOR_BEFORE_PUBLIC_RELEASE; uint256 public immutable MAX_KEY_REMOVAL_CHARGE; bytes32 private immutable MODULE_TYPE; ILidoLocator public immutable LIDO_LOCATOR; IStETH public immutable STETH; //////////////////////// // State variables below //////////////////////// uint256 public keyRemovalCharge; QueueLib.Queue public depositQueue; ICSAccounting public accounting; ICSEarlyAdoption public earlyAdoption; bool public publicRelease; uint256 private _nonce; mapping(uint256 => NodeOperator) private _nodeOperators; // @dev see _keyPointer function for details of noKeyIndexPacked structure mapping(uint256 noKeyIndexPacked => bool) private _isValidatorWithdrawn; mapping(uint256 noKeyIndexPacked => bool) private _isValidatorSlashed; uint64 private _totalDepositedValidators; uint64 private _totalExitedValidators; uint64 private _depositableValidatorsCount; uint64 private _nodeOperatorsCount; event NodeOperatorAdded( uint256 indexed nodeOperatorId, address indexed managerAddress, address indexed rewardAddress ); event ReferrerSet(uint256 indexed nodeOperatorId, address indexed referrer); event DepositableSigningKeysCountChanged( uint256 indexed nodeOperatorId, uint256 depositableKeysCount ); event VettedSigningKeysCountChanged( uint256 indexed nodeOperatorId, uint256 vettedKeysCount ); event VettedSigningKeysCountDecreased(uint256 indexed nodeOperatorId); event DepositedSigningKeysCountChanged( uint256 indexed nodeOperatorId, uint256 depositedKeysCount ); event ExitedSigningKeysCountChanged( uint256 indexed nodeOperatorId, uint256 exitedKeysCount ); event StuckSigningKeysCountChanged( uint256 indexed nodeOperatorId, uint256 stuckKeysCount ); event TotalSigningKeysCountChanged( uint256 indexed nodeOperatorId, uint256 totalKeysCount ); event TargetValidatorsCountChanged( uint256 indexed nodeOperatorId, uint256 targetLimitMode, uint256 targetValidatorsCount ); event WithdrawalSubmitted( uint256 indexed nodeOperatorId, uint256 keyIndex, uint256 amount, bytes pubkey ); event InitialSlashingSubmitted( uint256 indexed nodeOperatorId, uint256 keyIndex, bytes pubkey ); event PublicRelease(); event KeyRemovalChargeSet(uint256 amount); event KeyRemovalChargeApplied(uint256 indexed nodeOperatorId); event ELRewardsStealingPenaltyReported( uint256 indexed nodeOperatorId, bytes32 proposedBlockHash, uint256 stolenAmount ); event ELRewardsStealingPenaltyCancelled( uint256 indexed nodeOperatorId, uint256 amount ); event ELRewardsStealingPenaltyCompensated( uint256 indexed nodeOperatorId, uint256 amount ); event ELRewardsStealingPenaltySettled(uint256 indexed nodeOperatorId); error SenderIsNotEligible(); error InvalidVetKeysPointer(); error StuckKeysHigherThanNonExited(); error ExitedKeysHigherThanTotalDeposited(); error ExitedKeysDecrease(); error InvalidInput(); error NotEnoughKeys(); error SigningKeysInvalidOffset(); error AlreadySubmitted(); error AlreadyActivated(); error InvalidAmount(); error NotAllowedToJoinYet(); error MaxSigningKeysCountExceeded(); error NotSupported(); error ZeroLocatorAddress(); error ZeroAccountingAddress(); error ZeroAdminAddress(); constructor( bytes32 moduleType, uint256 minSlashingPenaltyQuotient, uint256 elRewardsStealingFine, uint256 maxKeysPerOperatorEA, uint256 maxKeyRemovalCharge, address lidoLocator ) { if (lidoLocator == address(0)) revert ZeroLocatorAddress(); MODULE_TYPE = moduleType; INITIAL_SLASHING_PENALTY = DEPOSIT_SIZE / minSlashingPenaltyQuotient; EL_REWARDS_STEALING_FINE = elRewardsStealingFine; MAX_SIGNING_KEYS_PER_OPERATOR_BEFORE_PUBLIC_RELEASE = maxKeysPerOperatorEA; MAX_KEY_REMOVAL_CHARGE = maxKeyRemovalCharge; LIDO_LOCATOR = ILidoLocator(lidoLocator); STETH = IStETH(LIDO_LOCATOR.lido()); _disableInitializers(); } function initialize( address _accounting, address _earlyAdoption, uint256 _keyRemovalCharge, address admin ) external initializer { if (_accounting == address(0)) revert ZeroAccountingAddress(); if (admin == address(0)) revert ZeroAdminAddress(); __AccessControlEnumerable_init(); accounting = ICSAccounting(_accounting); // it is possible to deploy module without EA contract earlyAdoption = ICSEarlyAdoption(_earlyAdoption); _grantRole(DEFAULT_ADMIN_ROLE, admin); _grantRole(STAKING_ROUTER_ROLE, address(LIDO_LOCATOR.stakingRouter())); _setKeyRemovalCharge(_keyRemovalCharge); // CSM is on pause initially and should be resumed during the vote _pauseFor(PausableUntil.PAUSE_INFINITELY); } /// @notice Resume creation of the Node Operators and keys upload function resume() external onlyRole(RESUME_ROLE) { _resume(); } /// @notice Pause creation of the Node Operators and keys upload for `duration` seconds. /// Existing NO management and reward claims are still available. /// To pause reward claims use pause method on CSAccounting /// @param duration Duration of the pause in seconds function pauseFor(uint256 duration) external onlyRole(PAUSE_ROLE) { _pauseFor(duration); } /// @notice Activate public release mode /// Enable permissionless creation of the Node Operators /// Remove the keys limit for the Node Operators function activatePublicRelease() external onlyRole(MODULE_MANAGER_ROLE) { if (publicRelease) revert AlreadyActivated(); publicRelease = true; emit PublicRelease(); } /// @notice Set the key removal charge amount. /// A charge is taken from the bond for each removed key /// @param amount Amount of stETH in wei to be charged for removing a single key function setKeyRemovalCharge( uint256 amount ) external onlyRole(MODULE_MANAGER_ROLE) { _setKeyRemovalCharge(amount); } /// @notice Add a new Node Operator using ETH as a bond. /// At least one deposit data and corresponding bond should be provided /// @param keysCount Signing keys count /// @param publicKeys Public keys to submit /// @param signatures Signatures of `(deposit_message_root, domain)` tuples /// https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#signingdata /// @param managementProperties Optional. Management properties to be used for the Node Operator. /// managerAddress: Used as `managerAddress` for the Node Operator. If not passed `msg.sender` will be used. /// rewardAddress: Used as `rewardAddress` for the Node Operator. If not passed `msg.sender` will be used. /// extendedManagerPermissions: Flag indicating that managerAddress will be able to change rewardAddress. /// If set to true `resetNodeOperatorManagerAddress` method will be disabled /// @param eaProof Optional. Merkle proof of the sender being eligible for the Early Adoption /// @param referrer Optional. Referrer address. Should be passed when Node Operator is created using partners integration function addNodeOperatorETH( uint256 keysCount, bytes calldata publicKeys, bytes calldata signatures, NodeOperatorManagementProperties calldata managementProperties, bytes32[] calldata eaProof, address referrer ) external payable whenResumed { (uint256 nodeOperatorId, uint256 curveId) = _createNodeOperator( managementProperties, referrer, eaProof ); if ( msg.value < accounting.getBondAmountByKeysCount(keysCount, curveId) ) { revert InvalidAmount(); } accounting.depositETH{ value: msg.value }(msg.sender, nodeOperatorId); _addKeysAndUpdateDepositableValidatorsCount( nodeOperatorId, keysCount, publicKeys, signatures ); } /// @notice Add a new Node Operator using stETH as a bond. /// At least one deposit data and corresponding bond should be provided /// @notice Due to the stETH rounding issue make sure to make approval or sign permit with extra 10 wei to avoid revert /// @param keysCount Signing keys count /// @param publicKeys Public keys to submit /// @param signatures Signatures of `(deposit_message_root, domain)` tuples /// https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#signingdata /// @param managementProperties Optional. Management properties to be used for the Node Operator. /// managerAddress: Used as `managerAddress` for the Node Operator. If not passed `msg.sender` will be used. /// rewardAddress: Used as `rewardAddress` for the Node Operator. If not passed `msg.sender` will be used. /// extendedManagerPermissions: Flag indicating that managerAddress will be able to change rewardAddress. /// If set to true `resetNodeOperatorManagerAddress` method will be disabled /// @param permit Optional. Permit to use stETH as bond /// @param eaProof Optional. Merkle proof of the sender being eligible for the Early Adoption /// @param referrer Optional. Referrer address. Should be passed when Node Operator is created using partners integration function addNodeOperatorStETH( uint256 keysCount, bytes calldata publicKeys, bytes calldata signatures, NodeOperatorManagementProperties calldata managementProperties, ICSAccounting.PermitInput calldata permit, bytes32[] calldata eaProof, address referrer ) external whenResumed { (uint256 nodeOperatorId, uint256 curveId) = _createNodeOperator( managementProperties, referrer, eaProof ); uint256 amount = accounting.getBondAmountByKeysCount( keysCount, curveId ); accounting.depositStETH(msg.sender, nodeOperatorId, amount, permit); _addKeysAndUpdateDepositableValidatorsCount( nodeOperatorId, keysCount, publicKeys, signatures ); } /// @notice Add a new Node Operator using wstETH as a bond. /// At least one deposit data and corresponding bond should be provided /// @notice Due to the stETH rounding issue make sure to make approval or sign permit with extra 10 wei to avoid revert /// @param keysCount Signing keys count /// @param publicKeys Public keys to submit /// @param signatures Signatures of `(deposit_message_root, domain)` tuples /// https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#signingdata /// @param managementProperties Optional. Management properties to be used for the Node Operator. /// managerAddress: Used as `managerAddress` for the Node Operator. If not passed `msg.sender` will be used. /// rewardAddress: Used as `rewardAddress` for the Node Operator. If not passed `msg.sender` will be used. /// extendedManagerPermissions: Flag indicating that managerAddress will be able to change rewardAddress. /// If set to true `resetNodeOperatorManagerAddress` method will be disabled /// @param permit Optional. Permit to use wstETH as bond /// @param eaProof Optional. Merkle proof of the sender being eligible for the Early Adoption /// @param referrer Optional. Referrer address. Should be passed when Node Operator is created using partners integration function addNodeOperatorWstETH( uint256 keysCount, bytes calldata publicKeys, bytes calldata signatures, NodeOperatorManagementProperties calldata managementProperties, ICSAccounting.PermitInput calldata permit, bytes32[] calldata eaProof, address referrer ) external whenResumed { (uint256 nodeOperatorId, uint256 curveId) = _createNodeOperator( managementProperties, referrer, eaProof ); uint256 amount = accounting.getBondAmountByKeysCountWstETH( keysCount, curveId ); accounting.depositWstETH(msg.sender, nodeOperatorId, amount, permit); _addKeysAndUpdateDepositableValidatorsCount( nodeOperatorId, keysCount, publicKeys, signatures ); } /// @notice Add new keys to the existing Node Operator using ETH as a bond /// @param nodeOperatorId ID of the Node Operator /// @param keysCount Signing keys count /// @param publicKeys Public keys to submit /// @param signatures Signatures of `(deposit_message_root, domain)` tuples /// https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#signingdata function addValidatorKeysETH( uint256 nodeOperatorId, uint256 keysCount, bytes calldata publicKeys, bytes calldata signatures ) external payable whenResumed { _onlyNodeOperatorManager(nodeOperatorId); if ( msg.value < accounting.getRequiredBondForNextKeys(nodeOperatorId, keysCount) ) { revert InvalidAmount(); } accounting.depositETH{ value: msg.value }(msg.sender, nodeOperatorId); _addKeysAndUpdateDepositableValidatorsCount( nodeOperatorId, keysCount, publicKeys, signatures ); } /// @notice Add new keys to the existing Node Operator using stETH as a bond /// @notice Due to the stETH rounding issue make sure to make approval or sign permit with extra 10 wei to avoid revert /// @param nodeOperatorId ID of the Node Operator /// @param keysCount Signing keys count /// @param publicKeys Public keys to submit /// @param signatures Signatures of `(deposit_message_root, domain)` tuples /// https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#signingdata /// @param permit Optional. Permit to use stETH as bond function addValidatorKeysStETH( uint256 nodeOperatorId, uint256 keysCount, bytes calldata publicKeys, bytes calldata signatures, ICSAccounting.PermitInput calldata permit ) external whenResumed { _onlyNodeOperatorManager(nodeOperatorId); uint256 amount = accounting.getRequiredBondForNextKeys( nodeOperatorId, keysCount ); accounting.depositStETH(msg.sender, nodeOperatorId, amount, permit); _addKeysAndUpdateDepositableValidatorsCount( nodeOperatorId, keysCount, publicKeys, signatures ); } /// @notice Add new keys to the existing Node Operator using wstETH as a bond /// @notice Due to the stETH rounding issue make sure to make approval or sign permit with extra 10 wei to avoid revert /// @param nodeOperatorId ID of the Node Operator /// @param keysCount Signing keys count /// @param publicKeys Public keys to submit /// @param signatures Signatures of `(deposit_message_root, domain)` tuples /// https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#signingdata /// @param permit Optional. Permit to use wstETH as bond function addValidatorKeysWstETH( uint256 nodeOperatorId, uint256 keysCount, bytes calldata publicKeys, bytes calldata signatures, ICSAccounting.PermitInput calldata permit ) external whenResumed { _onlyNodeOperatorManager(nodeOperatorId); uint256 amount = accounting.getRequiredBondForNextKeysWstETH( nodeOperatorId, keysCount ); accounting.depositWstETH(msg.sender, nodeOperatorId, amount, permit); _addKeysAndUpdateDepositableValidatorsCount( nodeOperatorId, keysCount, publicKeys, signatures ); } /// @notice Stake user's ETH with Lido and make a deposit in stETH to the bond of the existing Node Operator /// @param nodeOperatorId ID of the Node Operator function depositETH(uint256 nodeOperatorId) external payable { _onlyExistingNodeOperator(nodeOperatorId); accounting.depositETH{ value: msg.value }(msg.sender, nodeOperatorId); // Due to new bond nonce update might be required and normalize queue might be required _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); } /// @notice Deposit user's stETH to the bond of the existing Node Operator /// @param nodeOperatorId ID of the Node Operator /// @param stETHAmount Amount of stETH to deposit /// @param permit Optional. Permit to use stETH as bond function depositStETH( uint256 nodeOperatorId, uint256 stETHAmount, ICSAccounting.PermitInput calldata permit ) external { _onlyExistingNodeOperator(nodeOperatorId); accounting.depositStETH( msg.sender, nodeOperatorId, stETHAmount, permit ); // Due to new bond nonce update might be required and normalize queue might be required _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); } /// @notice Unwrap the user's wstETH and make a deposit in stETH to the bond of the existing Node Operator /// @param nodeOperatorId ID of the Node Operator /// @param wstETHAmount Amount of wstETH to deposit /// @param permit Optional. Permit to use wstETH as bond function depositWstETH( uint256 nodeOperatorId, uint256 wstETHAmount, ICSAccounting.PermitInput calldata permit ) external { _onlyExistingNodeOperator(nodeOperatorId); accounting.depositWstETH( msg.sender, nodeOperatorId, wstETHAmount, permit ); // Due to new bond nonce update might be required and normalize queue might be required _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); } /// @notice Claim full reward (fees + bond rewards) in stETH for the given Node Operator /// @notice If `stETHAmount` exceeds the current claimable amount, the claimable amount will be used instead /// @notice If `rewardsProof` is not provided, only excess bond (bond rewards) will be available for claim /// @param nodeOperatorId ID of the Node Operator /// @param stETHAmount Amount of stETH to claim /// @param cumulativeFeeShares Optional. Cumulative fee stETH shares for the Node Operator /// @param rewardsProof Optional. Merkle proof of the rewards function claimRewardsStETH( uint256 nodeOperatorId, uint256 stETHAmount, uint256 cumulativeFeeShares, bytes32[] calldata rewardsProof ) external { _onlyNodeOperatorManagerOrRewardAddresses(nodeOperatorId); accounting.claimRewardsStETH({ nodeOperatorId: nodeOperatorId, stETHAmount: stETHAmount, rewardAddress: _nodeOperators[nodeOperatorId].rewardAddress, cumulativeFeeShares: cumulativeFeeShares, rewardsProof: rewardsProof }); // Due to possible missing bond compensation nonce update might be required and normalize queue might be required _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); } /// @notice Claim full reward (fees + bond rewards) in wstETH for the given Node Operator /// @notice If `wstETHAmount` exceeds the current claimable amount, the claimable amount will be used instead /// @notice If `rewardsProof` is not provided, only excess bond (bond rewards) will be available for claim /// @param nodeOperatorId ID of the Node Operator /// @param wstETHAmount Amount of wstETH to claim /// @param cumulativeFeeShares Optional. Cumulative fee stETH shares for the Node Operator /// @param rewardsProof Optional. Merkle proof of the rewards function claimRewardsWstETH( uint256 nodeOperatorId, uint256 wstETHAmount, uint256 cumulativeFeeShares, bytes32[] calldata rewardsProof ) external { _onlyNodeOperatorManagerOrRewardAddresses(nodeOperatorId); accounting.claimRewardsWstETH({ nodeOperatorId: nodeOperatorId, wstETHAmount: wstETHAmount, rewardAddress: _nodeOperators[nodeOperatorId].rewardAddress, cumulativeFeeShares: cumulativeFeeShares, rewardsProof: rewardsProof }); // Due to possible missing bond compensation nonce update might be required and normalize queue might be required _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); } /// @notice Request full reward (fees + bond rewards) in Withdrawal NFT (unstETH) for the given Node Operator /// @notice Amounts less than `MIN_STETH_WITHDRAWAL_AMOUNT` (see LidoWithdrawalQueue contract) are not allowed /// @notice Amounts above `MAX_STETH_WITHDRAWAL_AMOUNT` should be requested in several transactions /// @notice If `ethAmount` exceeds the current claimable amount, the claimable amount will be used instead /// @notice If `rewardsProof` is not provided, only excess bond (bond rewards) will be available for claim /// @dev Reverts if amount isn't between `MIN_STETH_WITHDRAWAL_AMOUNT` and `MAX_STETH_WITHDRAWAL_AMOUNT` /// @param nodeOperatorId ID of the Node Operator /// @param stEthAmount Amount of ETH to request /// @param cumulativeFeeShares Optional. Cumulative fee stETH shares for the Node Operator /// @param rewardsProof Optional. Merkle proof of the rewards function claimRewardsUnstETH( uint256 nodeOperatorId, uint256 stEthAmount, uint256 cumulativeFeeShares, bytes32[] calldata rewardsProof ) external { _onlyNodeOperatorManagerOrRewardAddresses(nodeOperatorId); accounting.claimRewardsUnstETH({ nodeOperatorId: nodeOperatorId, stEthAmount: stEthAmount, rewardAddress: _nodeOperators[nodeOperatorId].rewardAddress, cumulativeFeeShares: cumulativeFeeShares, rewardsProof: rewardsProof }); // Due to possible missing bond compensation nonce update might be required and normalize queue might be required _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); } /// @notice Propose a new manager address for the Node Operator /// @param nodeOperatorId ID of the Node Operator /// @param proposedAddress Proposed manager address function proposeNodeOperatorManagerAddressChange( uint256 nodeOperatorId, address proposedAddress ) external { NOAddresses.proposeNodeOperatorManagerAddressChange( _nodeOperators, nodeOperatorId, proposedAddress ); } /// @notice Confirm a new manager address for the Node Operator. /// Should be called from the currently proposed address /// @param nodeOperatorId ID of the Node Operator function confirmNodeOperatorManagerAddressChange( uint256 nodeOperatorId ) external { NOAddresses.confirmNodeOperatorManagerAddressChange( _nodeOperators, nodeOperatorId ); } /// @notice Propose a new reward address for the Node Operator /// @param nodeOperatorId ID of the Node Operator /// @param proposedAddress Proposed reward address function proposeNodeOperatorRewardAddressChange( uint256 nodeOperatorId, address proposedAddress ) external { NOAddresses.proposeNodeOperatorRewardAddressChange( _nodeOperators, nodeOperatorId, proposedAddress ); } /// @notice Confirm a new reward address for the Node Operator. /// Should be called from the currently proposed address /// @param nodeOperatorId ID of the Node Operator function confirmNodeOperatorRewardAddressChange( uint256 nodeOperatorId ) external { NOAddresses.confirmNodeOperatorRewardAddressChange( _nodeOperators, nodeOperatorId ); } /// @notice Reset the manager address to the reward address. /// Should be called from the reward address /// @param nodeOperatorId ID of the Node Operator function resetNodeOperatorManagerAddress(uint256 nodeOperatorId) external { NOAddresses.resetNodeOperatorManagerAddress( _nodeOperators, nodeOperatorId ); } /// @notice Change rewardAddress if extendedManagerPermissions is enabled for the Node Operator /// @param nodeOperatorId ID of the Node Operator /// @param newAddress Proposed reward address function changeNodeOperatorRewardAddress( uint256 nodeOperatorId, address newAddress ) external { if (newAddress == address(0)) { revert ZeroRewardAddress(); } NOAddresses.changeNodeOperatorRewardAddress( _nodeOperators, nodeOperatorId, newAddress ); } /// @notice Called when rewards are minted for the module /// @dev Called by StakingRouter /// @dev Passes through the minted stETH shares to the fee distributor function onRewardsMinted( uint256 totalShares ) external onlyRole(STAKING_ROUTER_ROLE) { STETH.transferShares(address(accounting.feeDistributor()), totalShares); } /// @notice Update stuck validators count for Node Operators /// @dev Called by StakingRouter /// @dev If the stuck keys count is above zero for the Node Operator, /// the depositable validators count is set to 0 for this Node Operator /// @param nodeOperatorIds bytes packed array of Node Operator IDs /// @param stuckValidatorsCounts bytes packed array of stuck validators counts function updateStuckValidatorsCount( bytes calldata nodeOperatorIds, bytes calldata stuckValidatorsCounts ) external onlyRole(STAKING_ROUTER_ROLE) { uint256 operatorsInReport = ValidatorCountsReport.safeCountOperators( nodeOperatorIds, stuckValidatorsCounts ); for (uint256 i = 0; i < operatorsInReport; ++i) { ( uint256 nodeOperatorId, uint256 stuckValidatorsCount ) = ValidatorCountsReport.next( nodeOperatorIds, stuckValidatorsCounts, i ); _updateStuckValidatorsCount(nodeOperatorId, stuckValidatorsCount); } _incrementModuleNonce(); } /// @notice Update exited validators count for Node Operators /// @dev Called by StakingRouter /// @param nodeOperatorIds bytes packed array of Node Operator IDs /// @param exitedValidatorsCounts bytes packed array of exited validators counts function updateExitedValidatorsCount( bytes calldata nodeOperatorIds, bytes calldata exitedValidatorsCounts ) external onlyRole(STAKING_ROUTER_ROLE) { uint256 operatorsInReport = ValidatorCountsReport.safeCountOperators( nodeOperatorIds, exitedValidatorsCounts ); for (uint256 i = 0; i < operatorsInReport; ++i) { ( uint256 nodeOperatorId, uint256 exitedValidatorsCount ) = ValidatorCountsReport.next( nodeOperatorIds, exitedValidatorsCounts, i ); _updateExitedValidatorsCount({ nodeOperatorId: nodeOperatorId, exitedValidatorsCount: exitedValidatorsCount, allowDecrease: false }); } _incrementModuleNonce(); } /// @notice Update refunded validators count for the Node Operator. /// Non supported in CSM /// @dev Called by StakingRouter /// @dev Always reverts /// @dev `refundedValidatorsCount` is not used in the module function updateRefundedValidatorsCount( uint256 /* nodeOperatorId */, uint256 /* refundedValidatorsCount */ ) external onlyRole(STAKING_ROUTER_ROLE) { revert NotSupported(); } /// @notice Update target validators limits for Node Operator /// @dev Called by StakingRouter /// @param nodeOperatorId ID of the Node Operator /// @param targetLimitMode Target limit mode for the Node Operator (see https://hackmd.io/@lido/BJXRTxMRp) /// 0 - disabled /// 1 - soft mode /// 2 - forced mode /// @param targetLimit Target limit of validators function updateTargetValidatorsLimits( uint256 nodeOperatorId, uint256 targetLimitMode, uint256 targetLimit ) external onlyRole(STAKING_ROUTER_ROLE) { if (targetLimitMode > FORCED_TARGET_LIMIT_MODE_ID) { revert InvalidInput(); } if (targetLimit > type(uint32).max) { revert InvalidInput(); } _onlyExistingNodeOperator(nodeOperatorId); NodeOperator storage no = _nodeOperators[nodeOperatorId]; if (targetLimitMode == 0) { targetLimit = 0; } if ( no.targetLimitMode == targetLimitMode && no.targetLimit == targetLimit ) return; if (no.targetLimitMode != targetLimitMode) { // @dev No need to safe cast due to conditions above no.targetLimitMode = uint8(targetLimitMode); } if (no.targetLimit != targetLimit) { // @dev No need to safe cast due to conditions above no.targetLimit = uint32(targetLimit); } emit TargetValidatorsCountChanged( nodeOperatorId, targetLimitMode, targetLimit ); // Nonce will be updated below even if depositable count was not changed _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: false }); _incrementModuleNonce(); } /// @notice Called when exited and stuck validators counts updated. /// This method is not used in CSM, hence it is empty /// @dev Called by StakingRouter // @dev for some reason foundry coverage consider this function as not fully covered. Check tests to see it is covered indeed function onExitedAndStuckValidatorsCountsUpdated() external onlyRole(STAKING_ROUTER_ROLE) { // solhint-disable-previous-line no-empty-blocks // Nothing to do, rewards are distributed by a performance oracle. } /// @notice Unsafe update of validators count for Node Operator by the DAO /// @dev Called by StakingRouter /// @param nodeOperatorId ID of the Node Operator /// @param exitedValidatorsKeysCount Exited validators counts /// @param stuckValidatorsKeysCount Stuck validators counts function unsafeUpdateValidatorsCount( uint256 nodeOperatorId, uint256 exitedValidatorsKeysCount, uint256 stuckValidatorsKeysCount ) external onlyRole(STAKING_ROUTER_ROLE) { _updateExitedValidatorsCount({ nodeOperatorId: nodeOperatorId, exitedValidatorsCount: exitedValidatorsKeysCount, allowDecrease: true }); _updateStuckValidatorsCount(nodeOperatorId, stuckValidatorsKeysCount); _incrementModuleNonce(); } /// @notice Called to decrease the number of vetted keys for Node Operators with given ids /// @dev Called by StakingRouter /// @param nodeOperatorIds Bytes packed array of the Node Operator ids /// @param vettedSigningKeysCounts Bytes packed array of the new numbers of vetted keys for the Node Operators function decreaseVettedSigningKeysCount( bytes calldata nodeOperatorIds, bytes calldata vettedSigningKeysCounts ) external onlyRole(STAKING_ROUTER_ROLE) { uint256 operatorsInReport = ValidatorCountsReport.safeCountOperators( nodeOperatorIds, vettedSigningKeysCounts ); for (uint256 i = 0; i < operatorsInReport; ++i) { ( uint256 nodeOperatorId, uint256 vettedSigningKeysCount ) = ValidatorCountsReport.next( nodeOperatorIds, vettedSigningKeysCounts, i ); _onlyExistingNodeOperator(nodeOperatorId); NodeOperator storage no = _nodeOperators[nodeOperatorId]; if (vettedSigningKeysCount >= no.totalVettedKeys) { revert InvalidVetKeysPointer(); } if (vettedSigningKeysCount < no.totalDepositedKeys) { revert InvalidVetKeysPointer(); } // @dev No need to safe cast due to conditions above no.totalVettedKeys = uint32(vettedSigningKeysCount); emit VettedSigningKeysCountChanged( nodeOperatorId, vettedSigningKeysCount ); // @dev separate event for intentional decrease from Staking Router emit VettedSigningKeysCountDecreased(nodeOperatorId); // Nonce will be updated below once _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: false }); } _incrementModuleNonce(); } /// @notice Remove keys for the Node Operator and confiscate removal charge for each deleted key /// @param nodeOperatorId ID of the Node Operator /// @param startIndex Index of the first key /// @param keysCount Keys count to delete function removeKeys( uint256 nodeOperatorId, uint256 startIndex, uint256 keysCount ) external { _onlyNodeOperatorManager(nodeOperatorId); NodeOperator storage no = _nodeOperators[nodeOperatorId]; if (startIndex < no.totalDepositedKeys) { revert SigningKeysInvalidOffset(); } // solhint-disable-next-line func-named-parameters uint256 newTotalSigningKeys = SigningKeys.removeKeysSigs( nodeOperatorId, startIndex, keysCount, no.totalAddedKeys ); // The Node Operator is charged for the every removed key. It's motivated by the fact that the DAO should cleanup // the queue from the empty batches related to the Node Operator. It's possible to have multiple batches with only one // key in it, so it means the DAO should be able to cover removal costs for as much batches as keys removed in this case. uint256 amountToCharge = keyRemovalCharge * keysCount; if (amountToCharge != 0) { accounting.chargeFee(nodeOperatorId, amountToCharge); emit KeyRemovalChargeApplied(nodeOperatorId); } // @dev No need to safe cast due to checks in the func above no.totalAddedKeys = uint32(newTotalSigningKeys); emit TotalSigningKeysCountChanged(nodeOperatorId, newTotalSigningKeys); // @dev No need to safe cast due to checks in the func above no.totalVettedKeys = uint32(newTotalSigningKeys); emit VettedSigningKeysCountChanged(nodeOperatorId, newTotalSigningKeys); // Nonce is updated below due to keys state change _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: false }); _incrementModuleNonce(); } // @notice CSM will go live before EIP-7002 // @notice to be implemented in CSM v2 // /// @notice Node Operator should be able to voluntary eject own validators // /// @notice Validator private key might be lost // function voluntaryEjectValidator( // uint256 nodeOperatorId, // uint256 startIndex, // uint256 keysCount // ) external onlyExistingNodeOperator(nodeOperatorId) { // onlyNodeOperatorManager(nodeOperatorId); // // Mark validators for priority ejection // // Confiscate ejection fee from the bond // } /// @notice Perform queue normalization for the given Node Operator /// @notice Normalization stands for adding vetted but not enqueued keys to the queue /// @param nodeOperatorId ID of the Node Operator function normalizeQueue(uint256 nodeOperatorId) external { _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); // Direct call of `normalize` if depositable is not changed depositQueue.normalize(_nodeOperators, nodeOperatorId); } /// @notice Report EL rewards stealing for the given Node Operator /// @notice The amount equal to the stolen funds plus EL stealing fine will be locked /// @param nodeOperatorId ID of the Node Operator /// @param blockHash Execution layer block hash of the proposed block with EL rewards stealing /// @param amount Amount of stolen EL rewards in ETH function reportELRewardsStealingPenalty( uint256 nodeOperatorId, bytes32 blockHash, uint256 amount ) external onlyRole(REPORT_EL_REWARDS_STEALING_PENALTY_ROLE) { _onlyExistingNodeOperator(nodeOperatorId); if (amount == 0) revert InvalidAmount(); accounting.lockBondETH( nodeOperatorId, amount + EL_REWARDS_STEALING_FINE ); emit ELRewardsStealingPenaltyReported( nodeOperatorId, blockHash, amount ); // Nonce should be updated if depositableValidators change _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); } /// @notice Cancel previously reported and not settled EL rewards stealing penalty for the given Node Operator /// @notice The funds will be unlocked /// @param nodeOperatorId ID of the Node Operator /// @param amount Amount of penalty to cancel function cancelELRewardsStealingPenalty( uint256 nodeOperatorId, uint256 amount ) external onlyRole(REPORT_EL_REWARDS_STEALING_PENALTY_ROLE) { _onlyExistingNodeOperator(nodeOperatorId); accounting.releaseLockedBondETH(nodeOperatorId, amount); emit ELRewardsStealingPenaltyCancelled(nodeOperatorId, amount); // Nonce should be updated if depositableValidators change _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); } /// @notice Settle locked bond for the given Node Operators /// @dev SETTLE_EL_REWARDS_STEALING_PENALTY_ROLE role is expected to be assigned to Easy Track /// @param nodeOperatorIds IDs of the Node Operators function settleELRewardsStealingPenalty( uint256[] calldata nodeOperatorIds ) external onlyRole(SETTLE_EL_REWARDS_STEALING_PENALTY_ROLE) { ICSAccounting _accounting = accounting; for (uint256 i; i < nodeOperatorIds.length; ++i) { uint256 nodeOperatorId = nodeOperatorIds[i]; _onlyExistingNodeOperator(nodeOperatorId); uint256 lockedBondBefore = _accounting.getActualLockedBond( nodeOperatorId ); _accounting.settleLockedBondETH(nodeOperatorId); // settled amount might be zero either if the lock expired, or the bond is zero // so we need to check actual locked bond before to determine if the penalty was settled if (lockedBondBefore > 0) { // Bond curve should be reset to default in case of confirmed MEV stealing. See https://hackmd.io/@lido/SygBLW5ja _accounting.resetBondCurve(nodeOperatorId); // Nonce should be updated if depositableValidators change _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); emit ELRewardsStealingPenaltySettled(nodeOperatorId); } } } /// @notice Compensate EL rewards stealing penalty for the given Node Operator to prevent further validator exits /// @dev Can only be called by the Node Operator manager /// @param nodeOperatorId ID of the Node Operator function compensateELRewardsStealingPenalty( uint256 nodeOperatorId ) external payable { _onlyNodeOperatorManager(nodeOperatorId); accounting.compensateLockedBondETH{ value: msg.value }(nodeOperatorId); // Nonce should be updated if depositableValidators change _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); emit ELRewardsStealingPenaltyCompensated(nodeOperatorId, msg.value); } /// @notice Report Node Operator's key as withdrawn and settle withdrawn amount /// @notice Called by the Verifier contract. /// See `CSVerifier.processWithdrawalProof` to use this method permissionless /// @param nodeOperatorId ID of the Node Operator /// @param keyIndex Index of the withdrawn key in the Node Operator's keys storage /// @param amount Amount of withdrawn ETH in wei /// @param isSlashed Validator is slashed or not function submitWithdrawal( uint256 nodeOperatorId, uint256 keyIndex, uint256 amount, bool isSlashed ) external onlyRole(VERIFIER_ROLE) { _onlyExistingNodeOperator(nodeOperatorId); NodeOperator storage no = _nodeOperators[nodeOperatorId]; if (keyIndex >= no.totalDepositedKeys) { revert SigningKeysInvalidOffset(); } uint256 pointer = _keyPointer(nodeOperatorId, keyIndex); if (_isValidatorWithdrawn[pointer]) { revert AlreadySubmitted(); } _isValidatorWithdrawn[pointer] = true; unchecked { ++no.totalWithdrawnKeys; } bytes memory pubkey = SigningKeys.loadKeys(nodeOperatorId, keyIndex, 1); emit WithdrawalSubmitted(nodeOperatorId, keyIndex, amount, pubkey); if (isSlashed) { if (_isValidatorSlashed[pointer]) { // Account already burned value unchecked { amount += INITIAL_SLASHING_PENALTY; } } else { _isValidatorSlashed[pointer] = true; } // Bond curve should be reset to default in case of slashing. See https://hackmd.io/@lido/SygBLW5ja accounting.resetBondCurve(nodeOperatorId); } if (DEPOSIT_SIZE > amount) { unchecked { accounting.penalize(nodeOperatorId, DEPOSIT_SIZE - amount); } } // Nonce should be updated if depositableValidators change _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); } /// @notice Report Node Operator's key as slashed and apply the initial slashing penalty /// @notice Called by the Verifier contract. /// See `CSVerifier.processSlashingProof` to use this method permissionless /// @param nodeOperatorId ID of the Node Operator /// @param keyIndex Index of the slashed key in the Node Operator's keys storage function submitInitialSlashing( uint256 nodeOperatorId, uint256 keyIndex ) external onlyRole(VERIFIER_ROLE) { _onlyExistingNodeOperator(nodeOperatorId); NodeOperator storage no = _nodeOperators[nodeOperatorId]; if (keyIndex >= no.totalDepositedKeys) { revert SigningKeysInvalidOffset(); } uint256 pointer = _keyPointer(nodeOperatorId, keyIndex); if (_isValidatorSlashed[pointer]) { revert AlreadySubmitted(); } _isValidatorSlashed[pointer] = true; bytes memory pubkey = SigningKeys.loadKeys(nodeOperatorId, keyIndex, 1); emit InitialSlashingSubmitted(nodeOperatorId, keyIndex, pubkey); accounting.penalize(nodeOperatorId, INITIAL_SLASHING_PENALTY); // Nonce should be updated if depositableValidators change _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: true }); } /// @notice Called by the Staking Router when withdrawal credentials changed by DAO /// @dev Called by StakingRouter /// @dev Resets the key removal charge /// @dev Changing the WC means that the current deposit data in the queue is not valid anymore and can't be deposited /// So, the key removal charge should be reset to 0 to allow Node Operators to remove the keys without any charge. /// After keys removal the DAO should set the new key removal charge. function onWithdrawalCredentialsChanged() external onlyRole(STAKING_ROUTER_ROLE) { _setKeyRemovalCharge(0); } /// @notice Get the next `depositsCount` of depositable keys with signatures from the queue /// @dev Called by StakingRouter /// @dev Second param `depositCalldata` is not used /// @param depositsCount Count of deposits to get /// @param /* depositCalldata */ (unused) Deposit calldata /// @return publicKeys Public keys /// @return signatures Signatures function obtainDepositData( uint256 depositsCount, bytes calldata /* depositCalldata */ ) external onlyRole(STAKING_ROUTER_ROLE) returns (bytes memory publicKeys, bytes memory signatures) { (publicKeys, signatures) = SigningKeys.initKeysSigsBuf(depositsCount); if (depositsCount == 0) return (publicKeys, signatures); uint256 depositsLeft = depositsCount; uint256 loadedKeysCount = 0; for ( Batch item = depositQueue.peek(); !item.isNil(); item = depositQueue.peek() ) { // NOTE: see the `enqueuedCount` note below. unchecked { uint256 noId = item.noId(); uint256 keysInBatch = item.keys(); NodeOperator storage no = _nodeOperators[noId]; uint256 keysCount = Math.min( Math.min(no.depositableValidatorsCount, keysInBatch), depositsLeft ); // `depositsLeft` is non-zero at this point all the time, so the check `depositsLeft > keysCount` // covers the case when no depositable keys on the Node Operator have been left. if (depositsLeft > keysCount || keysCount == keysInBatch) { // NOTE: `enqueuedCount` >= keysInBatch invariant should be checked. // @dev No need to safe cast due to internal logic no.enqueuedCount -= uint32(keysInBatch); // We've consumed all the keys in the batch, so we dequeue it. depositQueue.dequeue(); } else { // This branch covers the case when we stop in the middle of the batch. // We release the amount of keys consumed only, the rest will be kept. // @dev No need to safe cast due to internal logic no.enqueuedCount -= uint32(keysCount); // NOTE: `keysInBatch` can't be less than `keysCount` at this point. // We update the batch with the remaining keys. item = item.setKeys(keysInBatch - keysCount); // Store the updated batch back to the queue. depositQueue.queue[depositQueue.head] = item; } if (keysCount == 0) { continue; } // solhint-disable-next-line func-named-parameters SigningKeys.loadKeysSigs( noId, no.totalDepositedKeys, keysCount, publicKeys, signatures, loadedKeysCount ); // It's impossible in practice to reach the limit of these variables. loadedKeysCount += keysCount; // @dev No need to safe cast due to internal logic no.totalDepositedKeys += uint32(keysCount); emit DepositedSigningKeysCountChanged( noId, no.totalDepositedKeys ); // No need for `_updateDepositableValidatorsCount` call since we update the number directly. // `keysCount` is min of `depositableValidatorsCount` and `depositsLeft`. // @dev No need to safe cast due to internal logic uint32 newCount = no.depositableValidatorsCount - uint32(keysCount); no.depositableValidatorsCount = newCount; emit DepositableSigningKeysCountChanged(noId, newCount); depositsLeft -= keysCount; if (depositsLeft == 0) { break; } } } if (loadedKeysCount != depositsCount) { revert NotEnoughKeys(); } unchecked { // @dev depositsCount can not overflow in practice due to memory and gas limits _depositableValidatorsCount -= uint64(depositsCount); _totalDepositedValidators += uint64(depositsCount); } _incrementModuleNonce(); } /// @notice Clean the deposit queue from batches with no depositable keys /// @dev Use **eth_call** to check how many items will be removed /// @param maxItems How many queue items to review /// @return removed Count of batches to be removed by visiting `maxItems` batches /// @return lastRemovedAtDepth The value to use as `maxItems` to remove `removed` batches if the static call of the method was used function cleanDepositQueue( uint256 maxItems ) external returns (uint256 removed, uint256 lastRemovedAtDepth) { (removed, lastRemovedAtDepth) = depositQueue.clean( _nodeOperators, maxItems ); } /// @notice Get the deposit queue item by an index /// @param index Index of a queue item /// @return Deposit queue item function depositQueueItem(uint128 index) external view returns (Batch) { return depositQueue.at(index); } /// @notice Check if the given Node Operator's key is reported as slashed /// @param nodeOperatorId ID of the Node Operator /// @param keyIndex Index of the key to check /// @return Validator reported as slashed flag function isValidatorSlashed( uint256 nodeOperatorId, uint256 keyIndex ) external view returns (bool) { return _isValidatorSlashed[_keyPointer(nodeOperatorId, keyIndex)]; } /// @notice Check if the given Node Operator's key is reported as withdrawn /// @param nodeOperatorId ID of the Node Operator /// @param keyIndex index of the key to check /// @return Validator reported as withdrawn flag function isValidatorWithdrawn( uint256 nodeOperatorId, uint256 keyIndex ) external view returns (bool) { return _isValidatorWithdrawn[_keyPointer(nodeOperatorId, keyIndex)]; } /// @notice Get the module type /// @return Module type function getType() external view returns (bytes32) { return MODULE_TYPE; } /// @notice Get staking module summary function getStakingModuleSummary() external view returns ( uint256 totalExitedValidators, uint256 totalDepositedValidators, uint256 depositableValidatorsCount ) { totalExitedValidators = _totalExitedValidators; totalDepositedValidators = _totalDepositedValidators; depositableValidatorsCount = _depositableValidatorsCount; } /// @notice Get Node Operator info /// @param nodeOperatorId ID of the Node Operator /// @return Node Operator info function getNodeOperator( uint256 nodeOperatorId ) external view returns (NodeOperator memory) { return _nodeOperators[nodeOperatorId]; } /// @notice Get Node Operator non-withdrawn keys /// @param nodeOperatorId ID of the Node Operator /// @return Non-withdrawn keys count function getNodeOperatorNonWithdrawnKeys( uint256 nodeOperatorId ) external view returns (uint256) { NodeOperator storage no = _nodeOperators[nodeOperatorId]; unchecked { return no.totalAddedKeys - no.totalWithdrawnKeys; } } /// @notice Get Node Operator summary /// @notice depositableValidatorsCount depends on: /// - totalVettedKeys /// - totalDepositedKeys /// - totalExitedKeys /// - targetLimitMode /// - targetValidatorsCount /// - totalUnbondedKeys /// - totalStuckKeys /// @param nodeOperatorId ID of the Node Operator /// @return targetLimitMode Target limit mode /// @return targetValidatorsCount Target validators count /// @return stuckValidatorsCount Stuck validators count /// @return refundedValidatorsCount Refunded validators count /// @return stuckPenaltyEndTimestamp Stuck penalty end timestamp (unused) /// @return totalExitedValidators Total exited validators /// @return totalDepositedValidators Total deposited validators /// @return depositableValidatorsCount Depositable validators count function getNodeOperatorSummary( uint256 nodeOperatorId ) external view returns ( uint256 targetLimitMode, uint256 targetValidatorsCount, uint256 stuckValidatorsCount, uint256 refundedValidatorsCount, uint256 stuckPenaltyEndTimestamp, uint256 totalExitedValidators, uint256 totalDepositedValidators, uint256 depositableValidatorsCount ) { NodeOperator storage no = _nodeOperators[nodeOperatorId]; uint256 totalUnbondedKeys = accounting.getUnbondedKeysCountToEject( nodeOperatorId ); uint256 totalNonDepositedKeys = no.totalAddedKeys - no.totalDepositedKeys; // Force mode enabled and unbonded deposited keys if ( totalUnbondedKeys > totalNonDepositedKeys && no.targetLimitMode == FORCED_TARGET_LIMIT_MODE_ID ) { targetLimitMode = FORCED_TARGET_LIMIT_MODE_ID; unchecked { targetValidatorsCount = Math.min( no.targetLimit, no.totalAddedKeys - no.totalWithdrawnKeys - totalUnbondedKeys ); } // No force mode enabled but unbonded deposited keys } else if (totalUnbondedKeys > totalNonDepositedKeys) { targetLimitMode = FORCED_TARGET_LIMIT_MODE_ID; unchecked { targetValidatorsCount = no.totalAddedKeys - no.totalWithdrawnKeys - totalUnbondedKeys; } } else { targetLimitMode = no.targetLimitMode; targetValidatorsCount = no.targetLimit; } stuckValidatorsCount = no.stuckValidatorsCount; // @dev unused in CSM refundedValidatorsCount = 0; // @dev unused in CSM stuckPenaltyEndTimestamp = 0; totalExitedValidators = no.totalExitedKeys; totalDepositedValidators = no.totalDepositedKeys; depositableValidatorsCount = no.depositableValidatorsCount; } /// @notice Get Node Operator signing keys /// @param nodeOperatorId ID of the Node Operator /// @param startIndex Index of the first key /// @param keysCount Count of keys to get /// @return Signing keys function getSigningKeys( uint256 nodeOperatorId, uint256 startIndex, uint256 keysCount ) external view returns (bytes memory) { _onlyValidIndexRange(nodeOperatorId, startIndex, keysCount); return SigningKeys.loadKeys(nodeOperatorId, startIndex, keysCount); } /// @notice Get Node Operator signing keys with signatures /// @param nodeOperatorId ID of the Node Operator /// @param startIndex Index of the first key /// @param keysCount Count of keys to get /// @return keys Signing keys /// @return signatures Signatures of `(deposit_message_root, domain)` tuples /// https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#signingdata function getSigningKeysWithSignatures( uint256 nodeOperatorId, uint256 startIndex, uint256 keysCount ) external view returns (bytes memory keys, bytes memory signatures) { _onlyValidIndexRange(nodeOperatorId, startIndex, keysCount); (keys, signatures) = SigningKeys.initKeysSigsBuf(keysCount); // solhint-disable-next-line func-named-parameters SigningKeys.loadKeysSigs( nodeOperatorId, startIndex, keysCount, keys, signatures, 0 ); } /// @notice Get nonce of the module function getNonce() external view returns (uint256) { return _nonce; } /// @notice Get total number of Node Operators function getNodeOperatorsCount() external view returns (uint256) { return _nodeOperatorsCount; } /// @notice Get total number of active Node Operators function getActiveNodeOperatorsCount() external view returns (uint256) { return _nodeOperatorsCount; } /// @notice Get Node Operator active status /// @param nodeOperatorId ID of the Node Operator /// @return active Operator is active flag function getNodeOperatorIsActive( uint256 nodeOperatorId ) external view returns (bool) { return nodeOperatorId < _nodeOperatorsCount; } /// @notice Get IDs of Node Operators /// @param offset Offset of the first Node Operator ID to get /// @param limit Count of Node Operator IDs to get /// @return nodeOperatorIds IDs of the Node Operators function getNodeOperatorIds( uint256 offset, uint256 limit ) external view returns (uint256[] memory nodeOperatorIds) { uint256 nodeOperatorsCount = _nodeOperatorsCount; if (offset >= nodeOperatorsCount || limit == 0) return new uint256[](0); uint256 idsCount = limit < nodeOperatorsCount - offset ? limit : nodeOperatorsCount - offset; nodeOperatorIds = new uint256[](idsCount); for (uint256 i = 0; i < nodeOperatorIds.length; ++i) { nodeOperatorIds[i] = offset + i; } } function _incrementModuleNonce() internal { unchecked { ++_nonce; } emit NonceChanged(_nonce); } function _createNodeOperator( NodeOperatorManagementProperties calldata managementProperties, address referrer, bytes32[] calldata proof ) internal returns (uint256 noId, uint256 curveId) { if (!publicRelease) { if (proof.length == 0 || address(earlyAdoption) == address(0)) { revert NotAllowedToJoinYet(); } } noId = _nodeOperatorsCount; NodeOperator storage no = _nodeOperators[noId]; no.managerAddress = managementProperties.managerAddress == address(0) ? msg.sender : managementProperties.managerAddress; no.rewardAddress = managementProperties.rewardAddress == address(0) ? msg.sender : managementProperties.rewardAddress; if (managementProperties.extendedManagerPermissions) no.extendedManagerPermissions = managementProperties .extendedManagerPermissions; unchecked { ++_nodeOperatorsCount; } emit NodeOperatorAdded(noId, no.managerAddress, no.rewardAddress); if (referrer != address(0)) emit ReferrerSet(noId, referrer); // @dev It's possible to join with proof even after public release to get beneficial bond curve if (proof.length != 0 && address(earlyAdoption) != address(0)) { earlyAdoption.consume(msg.sender, proof); curveId = earlyAdoption.CURVE_ID(); accounting.setBondCurve(noId, curveId); } else { curveId = accounting.DEFAULT_BOND_CURVE_ID(); } } function _addKeysAndUpdateDepositableValidatorsCount( uint256 nodeOperatorId, uint256 keysCount, bytes calldata publicKeys, bytes calldata signatures ) internal { NodeOperator storage no = _nodeOperators[nodeOperatorId]; uint256 startIndex = no.totalAddedKeys; unchecked { // startIndex + keysCount can't overflow because of deposit check in the parent methods if ( !publicRelease && startIndex + keysCount > MAX_SIGNING_KEYS_PER_OPERATOR_BEFORE_PUBLIC_RELEASE ) { revert MaxSigningKeysCountExceeded(); } } // solhint-disable-next-line func-named-parameters SigningKeys.saveKeysSigs( nodeOperatorId, startIndex, keysCount, publicKeys, signatures ); unchecked { // Optimistic vetting takes place. if (no.totalAddedKeys == no.totalVettedKeys) { // @dev No need to safe cast due to internal logic no.totalVettedKeys += uint32(keysCount); emit VettedSigningKeysCountChanged( nodeOperatorId, no.totalVettedKeys ); } // @dev No need to safe cast due to internal logic no.totalAddedKeys += uint32(keysCount); } emit TotalSigningKeysCountChanged(nodeOperatorId, no.totalAddedKeys); // Nonce is updated below since in case of stuck keys depositable keys might not change _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: false }); _incrementModuleNonce(); } function _setKeyRemovalCharge(uint256 amount) internal { if (amount > MAX_KEY_REMOVAL_CHARGE) revert InvalidInput(); keyRemovalCharge = amount; emit KeyRemovalChargeSet(amount); } /// @dev Update exited validators count for a single Node Operator /// @dev Allows decrease the count for unsafe updates function _updateExitedValidatorsCount( uint256 nodeOperatorId, uint256 exitedValidatorsCount, bool allowDecrease ) internal { _onlyExistingNodeOperator(nodeOperatorId); NodeOperator storage no = _nodeOperators[nodeOperatorId]; if (exitedValidatorsCount == no.totalExitedKeys) return; if (exitedValidatorsCount > no.totalDepositedKeys) revert ExitedKeysHigherThanTotalDeposited(); if (!allowDecrease && exitedValidatorsCount < no.totalExitedKeys) revert ExitedKeysDecrease(); unchecked { // @dev No need to safe cast due to conditions above _totalExitedValidators = (_totalExitedValidators - no.totalExitedKeys) + uint64(exitedValidatorsCount); } // @dev No need to safe cast due to conditions above no.totalExitedKeys = uint32(exitedValidatorsCount); emit ExitedSigningKeysCountChanged( nodeOperatorId, exitedValidatorsCount ); } function _updateStuckValidatorsCount( uint256 nodeOperatorId, uint256 stuckValidatorsCount ) internal { _onlyExistingNodeOperator(nodeOperatorId); NodeOperator storage no = _nodeOperators[nodeOperatorId]; if (stuckValidatorsCount == no.stuckValidatorsCount) return; unchecked { if ( stuckValidatorsCount > no.totalDepositedKeys - no.totalExitedKeys ) revert StuckKeysHigherThanNonExited(); } // @dev No need to safe cast due to conditions above no.stuckValidatorsCount = uint32(stuckValidatorsCount); emit StuckSigningKeysCountChanged(nodeOperatorId, stuckValidatorsCount); if (stuckValidatorsCount > 0 && no.depositableValidatorsCount > 0) { // INFO: The only consequence of stuck keys from the on-chain perspective is suspending deposits to the // Node Operator. To do that, we set the depositableValidatorsCount to 0 for this Node Operator. Hence // we can omit the call to the _updateDepositableValidatorsCount function here to save gas. unchecked { _depositableValidatorsCount -= no.depositableValidatorsCount; } no.depositableValidatorsCount = 0; emit DepositableSigningKeysCountChanged(nodeOperatorId, 0); } else { // Nonce will be updated on the top level once per call _updateDepositableValidatorsCount({ nodeOperatorId: nodeOperatorId, incrementNonceIfUpdated: false }); } } function _updateDepositableValidatorsCount( uint256 nodeOperatorId, bool incrementNonceIfUpdated ) internal { NodeOperator storage no = _nodeOperators[nodeOperatorId]; uint256 newCount = no.totalVettedKeys - no.totalDepositedKeys; uint256 unbondedKeys = accounting.getUnbondedKeysCount(nodeOperatorId); { uint256 nonDeposited = no.totalAddedKeys - no.totalDepositedKeys; if (unbondedKeys >= nonDeposited) { newCount = 0; } else if (unbondedKeys > no.totalAddedKeys - no.totalVettedKeys) { newCount = nonDeposited - unbondedKeys; } } if (no.stuckValidatorsCount > 0 && newCount > 0) { newCount = 0; } if (no.targetLimitMode > 0 && newCount > 0) { unchecked { uint256 nonWithdrawnValidators = no.totalDepositedKeys - no.totalWithdrawnKeys; newCount = Math.min( no.targetLimit > nonWithdrawnValidators ? no.targetLimit - nonWithdrawnValidators : 0, newCount ); } } if (no.depositableValidatorsCount != newCount) { // Updating the global counter. // @dev No need to safe cast due to internal logic unchecked { _depositableValidatorsCount = _depositableValidatorsCount - no.depositableValidatorsCount + uint64(newCount); } // @dev No need to safe cast due to internal logic no.depositableValidatorsCount = uint32(newCount); emit DepositableSigningKeysCountChanged(nodeOperatorId, newCount); if (incrementNonceIfUpdated) { _incrementModuleNonce(); } depositQueue.normalize(_nodeOperators, nodeOperatorId); } } function _onlyNodeOperatorManager(uint256 nodeOperatorId) internal view { NodeOperator storage no = _nodeOperators[nodeOperatorId]; if (no.managerAddress == address(0)) revert NodeOperatorDoesNotExist(); if (no.managerAddress != msg.sender) revert SenderIsNotEligible(); } function _onlyNodeOperatorManagerOrRewardAddresses( uint256 nodeOperatorId ) internal view { NodeOperator storage no = _nodeOperators[nodeOperatorId]; if (no.managerAddress == address(0)) revert NodeOperatorDoesNotExist(); if (no.managerAddress != msg.sender && no.rewardAddress != msg.sender) revert SenderIsNotEligible(); } function _onlyExistingNodeOperator(uint256 nodeOperatorId) internal view { if (nodeOperatorId < _nodeOperatorsCount) return; revert NodeOperatorDoesNotExist(); } function _onlyValidIndexRange( uint256 nodeOperatorId, uint256 startIndex, uint256 keysCount ) internal view { if ( startIndex + keysCount > _nodeOperators[nodeOperatorId].totalAddedKeys ) { revert SigningKeysInvalidOffset(); } } function _onlyRecoverer() internal view override { _checkRole(RECOVERER_ROLE); } /// @dev Both nodeOperatorId and keyIndex are limited to uint64 by the contract function _keyPointer( uint256 nodeOperatorId, uint256 keyIndex ) internal pure returns (uint256) { return (nodeOperatorId << 128) | keyIndex; } }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; import { UnstructuredStorage } from "../UnstructuredStorage.sol"; contract PausableUntil { using UnstructuredStorage for bytes32; /// Contract resume/pause control storage slot bytes32 internal constant RESUME_SINCE_TIMESTAMP_POSITION = keccak256("lido.PausableUntil.resumeSinceTimestamp"); /// Special value for the infinite pause uint256 public constant PAUSE_INFINITELY = type(uint256).max; /// @notice Emitted when paused by the `pauseFor` or `pauseUntil` call event Paused(uint256 duration); /// @notice Emitted when resumed by the `resume` call event Resumed(); error ZeroPauseDuration(); error PausedExpected(); error ResumedExpected(); error PauseUntilMustBeInFuture(); /// @notice Reverts when resumed modifier whenPaused() { _checkPaused(); _; } /// @notice Reverts when paused modifier whenResumed() { _checkResumed(); _; } /// @notice Returns one of: /// - PAUSE_INFINITELY if paused infinitely returns /// - first second when get contract get resumed if paused for specific duration /// - some timestamp in past if not paused function getResumeSinceTimestamp() external view returns (uint256) { return RESUME_SINCE_TIMESTAMP_POSITION.getStorageUint256(); } /// @notice Returns whether the contract is paused function isPaused() public view returns (bool) { return block.timestamp < RESUME_SINCE_TIMESTAMP_POSITION.getStorageUint256(); } function _resume() internal { _checkPaused(); RESUME_SINCE_TIMESTAMP_POSITION.setStorageUint256(block.timestamp); emit Resumed(); } function _pauseFor(uint256 duration) internal { _checkResumed(); if (duration == 0) revert ZeroPauseDuration(); uint256 resumeSince; if (duration == PAUSE_INFINITELY) { resumeSince = PAUSE_INFINITELY; } else { resumeSince = block.timestamp + duration; } _setPausedState(resumeSince); } function _pauseUntil(uint256 pauseUntilInclusive) internal { _checkResumed(); if (pauseUntilInclusive < block.timestamp) revert PauseUntilMustBeInFuture(); uint256 resumeSince; if (pauseUntilInclusive != PAUSE_INFINITELY) { resumeSince = pauseUntilInclusive + 1; } else { resumeSince = PAUSE_INFINITELY; } _setPausedState(resumeSince); } function _setPausedState(uint256 resumeSince) internal { RESUME_SINCE_TIMESTAMP_POSITION.setStorageUint256(resumeSince); if (resumeSince == PAUSE_INFINITELY) { emit Paused(PAUSE_INFINITELY); } else { emit Paused(resumeSince - block.timestamp); } } function _checkPaused() internal view { if (!isPaused()) { revert PausedExpected(); } } function _checkResumed() internal view { if (isPaused()) { revert ResumedExpected(); } } }
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Muldiv operation overflow.
*/
error MathOverflowedMulDiv();
enum Rounding {
Floor, // Toward negative infinity
Ceil, // Toward positive infinity
Trunc, // Toward zero
Expand // Away from zero
}
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds towards infinity instead
* of rounding towards zero.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
if (b == 0) {
// Guarantee the same behavior as in a regular Solidity division.
return a / b;
}
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
* denominator == 0.
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
* Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0 = x * y; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
if (denominator <= prod1) {
revert MathOverflowedMulDiv();
}
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator.
// Always >= 1. See https://cs.stackexchange.com/q/138556/92363.
uint256 twos = denominator & (0 - denominator);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
// works in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
* towards zero.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256 of a positive value rounded towards zero.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
}
}
/**
* @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
*/
function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
return uint8(rounding) % 2 == 1;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/AccessControlEnumerable.sol)
pragma solidity ^0.8.20;
import {IAccessControlEnumerable} from "@openzeppelin/contracts/access/extensions/IAccessControlEnumerable.sol";
import {AccessControlUpgradeable} from "../AccessControlUpgradeable.sol";
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";
/**
* @dev Extension of {AccessControl} that allows enumerating the members of each role.
*/
abstract contract AccessControlEnumerableUpgradeable is Initializable, IAccessControlEnumerable, AccessControlUpgradeable {
using EnumerableSet for EnumerableSet.AddressSet;
/// @custom:storage-location erc7201:openzeppelin.storage.AccessControlEnumerable
struct AccessControlEnumerableStorage {
mapping(bytes32 role => EnumerableSet.AddressSet) _roleMembers;
}
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.AccessControlEnumerable")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant AccessControlEnumerableStorageLocation = 0xc1f6fe24621ce81ec5827caf0253cadb74709b061630e6b55e82371705932000;
function _getAccessControlEnumerableStorage() private pure returns (AccessControlEnumerableStorage storage $) {
assembly {
$.slot := AccessControlEnumerableStorageLocation
}
}
function __AccessControlEnumerable_init() internal onlyInitializing {
}
function __AccessControlEnumerable_init_unchained() internal onlyInitializing {
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns one of the accounts that have `role`. `index` must be a
* value between 0 and {getRoleMemberCount}, non-inclusive.
*
* Role bearers are not sorted in any particular way, and their ordering may
* change at any point.
*
* WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
* you perform all queries on the same block. See the following
* https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
* for more information.
*/
function getRoleMember(bytes32 role, uint256 index) public view virtual returns (address) {
AccessControlEnumerableStorage storage $ = _getAccessControlEnumerableStorage();
return $._roleMembers[role].at(index);
}
/**
* @dev Returns the number of accounts that have `role`. Can be used
* together with {getRoleMember} to enumerate all bearers of a role.
*/
function getRoleMemberCount(bytes32 role) public view virtual returns (uint256) {
AccessControlEnumerableStorage storage $ = _getAccessControlEnumerableStorage();
return $._roleMembers[role].length();
}
/**
* @dev Overload {AccessControl-_grantRole} to track enumerable memberships
*/
function _grantRole(bytes32 role, address account) internal virtual override returns (bool) {
AccessControlEnumerableStorage storage $ = _getAccessControlEnumerableStorage();
bool granted = super._grantRole(role, account);
if (granted) {
$._roleMembers[role].add(account);
}
return granted;
}
/**
* @dev Overload {AccessControl-_revokeRole} to track enumerable memberships
*/
function _revokeRole(bytes32 role, address account) internal virtual override returns (bool) {
AccessControlEnumerableStorage storage $ = _getAccessControlEnumerableStorage();
bool revoked = super._revokeRole(role, account);
if (revoked) {
$._roleMembers[role].remove(account);
}
return revoked;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.20;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```solidity
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
*
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Storage of the initializable contract.
*
* It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
* when using with upgradeable contracts.
*
* @custom:storage-location erc7201:openzeppelin.storage.Initializable
*/
struct InitializableStorage {
/**
* @dev Indicates that the contract has been initialized.
*/
uint64 _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool _initializing;
}
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;
/**
* @dev The contract is already initialized.
*/
error InvalidInitialization();
/**
* @dev The contract is not initializing.
*/
error NotInitializing();
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint64 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
* number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
* production.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
// solhint-disable-next-line var-name-mixedcase
InitializableStorage storage $ = _getInitializableStorage();
// Cache values to avoid duplicated sloads
bool isTopLevelCall = !$._initializing;
uint64 initialized = $._initialized;
// Allowed calls:
// - initialSetup: the contract is not in the initializing state and no previous version was
// initialized
// - construction: the contract is initialized at version 1 (no reininitialization) and the
// current contract is just being deployed
bool initialSetup = initialized == 0 && isTopLevelCall;
bool construction = initialized == 1 && address(this).code.length == 0;
if (!initialSetup && !construction) {
revert InvalidInitialization();
}
$._initialized = 1;
if (isTopLevelCall) {
$._initializing = true;
}
_;
if (isTopLevelCall) {
$._initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint64 version) {
// solhint-disable-next-line var-name-mixedcase
InitializableStorage storage $ = _getInitializableStorage();
if ($._initializing || $._initialized >= version) {
revert InvalidInitialization();
}
$._initialized = version;
$._initializing = true;
_;
$._initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
_checkInitializing();
_;
}
/**
* @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
*/
function _checkInitializing() internal view virtual {
if (!_isInitializing()) {
revert NotInitializing();
}
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
// solhint-disable-next-line var-name-mixedcase
InitializableStorage storage $ = _getInitializableStorage();
if ($._initializing) {
revert InvalidInitialization();
}
if ($._initialized != type(uint64).max) {
$._initialized = type(uint64).max;
emit Initialized(type(uint64).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint64) {
return _getInitializableStorage()._initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _getInitializableStorage()._initializing;
}
/**
* @dev Returns a pointer to the storage namespace.
*/
// solhint-disable-next-line var-name-mixedcase
function _getInitializableStorage() private pure returns (InitializableStorage storage $) {
assembly {
$.slot := INITIALIZABLE_STORAGE
}
}
}// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; interface ILidoLocator { error ZeroAddress(); function accountingOracle() external view returns (address); function burner() external view returns (address); function coreComponents() external view returns (address, address, address, address, address, address); function depositSecurityModule() external view returns (address); function elRewardsVault() external view returns (address); function legacyOracle() external view returns (address); function lido() external view returns (address); function oracleDaemonConfig() external view returns (address); function oracleReportComponentsForLido() external view returns (address, address, address, address, address, address, address); function oracleReportSanityChecker() external view returns (address); function postTokenRebaseReceiver() external view returns (address); function stakingRouter() external view returns (address payable); function treasury() external view returns (address); function validatorsExitBusOracle() external view returns (address); function withdrawalQueue() external view returns (address); function withdrawalVault() external view returns (address); }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; /** * @title Interface defining ERC20-compatible StETH token */ interface IStETH { /** * @notice Get stETH amount by the provided shares amount * @param _sharesAmount shares amount * @dev dual to `getSharesByPooledEth`. */ function getPooledEthByShares( uint256 _sharesAmount ) external view returns (uint256); /** * @notice Get shares amount by the provided stETH amount * @param _pooledEthAmount stETH amount * @dev dual to `getPooledEthByShares`. */ function getSharesByPooledEth( uint256 _pooledEthAmount ) external view returns (uint256); /** * @notice Get shares amount of the provided account * @param _account provided account address. */ function sharesOf(address _account) external view returns (uint256); function balanceOf(address _account) external view returns (uint256); /** * @notice Transfer `_sharesAmount` stETH shares from `_sender` to `_receiver` using allowance. */ function transferSharesFrom( address _sender, address _recipient, uint256 _sharesAmount ) external returns (uint256); /** * @notice Moves `_sharesAmount` token shares from the caller's account to the `_recipient` account. */ function transferShares( address _recipient, uint256 _sharesAmount ) external returns (uint256); /** * @notice Moves `_pooledEthAmount` stETH from the caller's account to the `_recipient` account. */ function transfer( address _recipient, uint256 _amount ) external returns (bool); /** * @notice Moves `_pooledEthAmount` stETH from the `_sender` account to the `_recipient` account. */ function transferFrom( address _sender, address _recipient, uint256 _amount ) external returns (bool); function approve(address _spender, uint256 _amount) external returns (bool); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; function allowance( address _owner, address _spender ) external view returns (uint256); }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; import { ICSBondCore } from "./ICSBondCore.sol"; import { ICSBondCurve } from "./ICSBondCurve.sol"; import { ICSBondLock } from "./ICSBondLock.sol"; import { ICSFeeDistributor } from "./ICSFeeDistributor.sol"; import { IAssetRecovererLib } from "../lib/AssetRecovererLib.sol"; interface ICSAccounting is ICSBondCore, ICSBondCurve, ICSBondLock, IAssetRecovererLib { struct PermitInput { uint256 value; uint256 deadline; uint8 v; bytes32 r; bytes32 s; } function feeDistributor() external view returns (ICSFeeDistributor); function chargePenaltyRecipient() external view returns (address); function getRequiredBondForNextKeys( uint256 nodeOperatorId, uint256 additionalKeys ) external view returns (uint256); function getBondAmountByKeysCountWstETH( uint256 keysCount, uint256 curveId ) external view returns (uint256); function getBondAmountByKeysCountWstETH( uint256 keysCount, BondCurve memory curve ) external view returns (uint256); function getRequiredBondForNextKeysWstETH( uint256 nodeOperatorId, uint256 additionalKeys ) external view returns (uint256); function getUnbondedKeysCount( uint256 nodeOperatorId ) external view returns (uint256); function getUnbondedKeysCountToEject( uint256 nodeOperatorId ) external view returns (uint256); function depositWstETH( address from, uint256 nodeOperatorId, uint256 wstETHAmount, PermitInput calldata permit ) external; function depositStETH( address from, uint256 nodeOperatorId, uint256 stETHAmount, PermitInput calldata permit ) external; function depositETH(address from, uint256 nodeOperatorId) external payable; function claimRewardsStETH( uint256 nodeOperatorId, uint256 stETHAmount, address rewardAddress, uint256 cumulativeFeeShares, bytes32[] calldata rewardsProof ) external; function claimRewardsWstETH( uint256 nodeOperatorId, uint256 wstETHAmount, address rewardAddress, uint256 cumulativeFeeShares, bytes32[] calldata rewardsProof ) external; function claimRewardsUnstETH( uint256 nodeOperatorId, uint256 stEthAmount, address rewardAddress, uint256 cumulativeFeeShares, bytes32[] calldata rewardsProof ) external; function lockBondETH(uint256 nodeOperatorId, uint256 amount) external; function releaseLockedBondETH( uint256 nodeOperatorId, uint256 amount ) external; function settleLockedBondETH(uint256 nodeOperatorId) external; function compensateLockedBondETH(uint256 nodeOperatorId) external payable; function setBondCurve(uint256 nodeOperatorId, uint256 curveId) external; function resetBondCurve(uint256 nodeOperatorId) external; function penalize(uint256 nodeOperatorId, uint256 amount) external; function chargeFee(uint256 nodeOperatorId, uint256 amount) external; }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; interface ICSEarlyAdoption { function CURVE_ID() external view returns (uint256); function TREE_ROOT() external view returns (bytes32); function verifyProof( address addr, bytes32[] calldata proof ) external view returns (bool); function consume(address sender, bytes32[] calldata proof) external; function isConsumed(address sender) external view returns (bool); }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; import { IStakingModule } from "./IStakingModule.sol"; import { ICSAccounting } from "./ICSAccounting.sol"; import { IQueueLib } from "../lib/QueueLib.sol"; import { INOAddresses } from "../lib/NOAddresses.sol"; import { IAssetRecovererLib } from "../lib/AssetRecovererLib.sol"; struct NodeOperator { // All the counters below are used together e.g. in the _updateDepositableValidatorsCount /* 1 */ uint32 totalAddedKeys; // @dev increased and decreased when removed /* 1 */ uint32 totalWithdrawnKeys; // @dev only increased /* 1 */ uint32 totalDepositedKeys; // @dev only increased /* 1 */ uint32 totalVettedKeys; // @dev both increased and decreased /* 1 */ uint32 stuckValidatorsCount; // @dev both increased and decreased /* 1 */ uint32 depositableValidatorsCount; // @dev any value /* 1 */ uint32 targetLimit; /* 1 */ uint8 targetLimitMode; /* 2 */ uint32 totalExitedKeys; // @dev only increased except for the unsafe updates /* 2 */ uint32 enqueuedCount; // Tracks how many places are occupied by the node operator's keys in the queue. /* 2 */ address managerAddress; /* 3 */ address proposedManagerAddress; /* 4 */ address rewardAddress; /* 5 */ address proposedRewardAddress; /* 5 */ bool extendedManagerPermissions; } struct NodeOperatorManagementProperties { address managerAddress; address rewardAddress; bool extendedManagerPermissions; } /// @title Lido's Community Staking Module interface interface ICSModule is IStakingModule, IQueueLib, INOAddresses, IAssetRecovererLib { error NodeOperatorDoesNotExist(); error ZeroRewardAddress(); /// @notice Gets node operator non-withdrawn keys /// @param nodeOperatorId ID of the node operator /// @return Non-withdrawn keys count function getNodeOperatorNonWithdrawnKeys( uint256 nodeOperatorId ) external view returns (uint256); /// @notice Returns the node operator by id /// @param nodeOperatorId Node Operator id function getNodeOperator( uint256 nodeOperatorId ) external view returns (NodeOperator memory); /// @notice Gets node operator signing keys /// @param nodeOperatorId ID of the node operator /// @param startIndex Index of the first key /// @param keysCount Count of keys to get /// @return Signing keys function getSigningKeys( uint256 nodeOperatorId, uint256 startIndex, uint256 keysCount ) external view returns (bytes memory); /// @notice Gets node operator signing keys with signatures /// @param nodeOperatorId ID of the node operator /// @param startIndex Index of the first key /// @param keysCount Count of keys to get /// @return keys Signing keys /// @return signatures Signatures of (deposit_message, domain) tuples function getSigningKeysWithSignatures( uint256 nodeOperatorId, uint256 startIndex, uint256 keysCount ) external view returns (bytes memory keys, bytes memory signatures); /// @notice Report node operator's key as slashed and apply initial slashing penalty. /// @param nodeOperatorId Operator ID in the module. /// @param keyIndex Index of the slashed key in the node operator's keys. function submitInitialSlashing( uint256 nodeOperatorId, uint256 keyIndex ) external; /// @notice Report node operator's key as withdrawn and settle withdrawn amount. /// @param nodeOperatorId Operator ID in the module. /// @param keyIndex Index of the withdrawn key in the node operator's keys. /// @param amount Amount of withdrawn ETH in wei. /// @param isSlashed Validator is slashed or not function submitWithdrawal( uint256 nodeOperatorId, uint256 keyIndex, uint256 amount, bool isSlashed ) external; function depositWstETH( uint256 nodeOperatorId, uint256 wstETHAmount, ICSAccounting.PermitInput calldata permit ) external; function depositStETH( uint256 nodeOperatorId, uint256 stETHAmount, ICSAccounting.PermitInput calldata permit ) external; function depositETH(uint256 nodeOperatorId) external payable; }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; import { NodeOperator } from "../interfaces/ICSModule.sol"; import { TransientUintUintMap, TransientUintUintMapLib } from "./TransientUintUintMapLib.sol"; // Batch is an uint256 as it's the internal data type used by solidity. // Batch is a packed value, consisting of the following fields: // - uint64 nodeOperatorId // - uint64 keysCount -- count of keys enqueued by the batch // - uint128 next -- index of the next batch in the queue type Batch is uint256; /// @notice Batch of the operator with index 0, with no keys in it and the next Batch' index 0 is meaningless. function isNil(Batch self) pure returns (bool) { return Batch.unwrap(self) == 0; } /// @dev Syntactic sugar for the type. function unwrap(Batch self) pure returns (uint256) { return Batch.unwrap(self); } function noId(Batch self) pure returns (uint64 n) { assembly { n := shr(192, self) } } function keys(Batch self) pure returns (uint64 n) { assembly { n := shl(64, self) n := shr(192, n) } } function next(Batch self) pure returns (uint128 n) { assembly { n := shl(128, self) n := shr(128, n) } } /// @dev keys count cast is unsafe function setKeys(Batch self, uint256 keysCount) pure returns (Batch) { assembly { self := or( and( self, 0xffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff ), shl(128, and(keysCount, 0xffffffffffffffff)) ) // self.keys = keysCount } return self; } /// @dev can be unsafe if the From batch is previous to the self function setNext(Batch self, Batch from) pure returns (Batch) { assembly { self := or( and( self, 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000 ), and( from, 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff ) ) // self.next = from.next } return self; } /// @dev Instantiate a new Batch to be added to the queue. The `next` field will be determined upon the enqueue. /// @dev Parameters are uint256 to make usage easier. function createBatch( uint256 nodeOperatorId, uint256 keysCount ) pure returns (Batch item) { // NOTE: No need to safe cast due to internal logic. nodeOperatorId = uint64(nodeOperatorId); keysCount = uint64(keysCount); assembly { item := shl(128, keysCount) // `keysCount` in [64:127] item := or(item, shl(192, nodeOperatorId)) // `nodeOperatorId` in [0:63] } } using { noId, keys, setKeys, setNext, next, isNil, unwrap } for Batch global; using QueueLib for QueueLib.Queue; interface IQueueLib { event BatchEnqueued(uint256 indexed nodeOperatorId, uint256 count); error QueueIsEmpty(); error QueueLookupNoLimit(); } /// @author madlabman library QueueLib { struct Queue { // Pointer to the item to be dequeued. uint128 head; // Tracks the total number of batches ever enqueued. uint128 tail; // Mapping saves a little in costs and allows easily fallback to a zeroed batch on out-of-bounds access. mapping(uint128 => Batch) queue; } ////// /// External methods ////// function normalize( Queue storage self, mapping(uint256 => NodeOperator) storage nodeOperators, uint256 nodeOperatorId ) external { NodeOperator storage no = nodeOperators[nodeOperatorId]; uint32 depositable = no.depositableValidatorsCount; uint32 enqueued = no.enqueuedCount; if (enqueued < depositable) { uint32 count; unchecked { count = depositable - enqueued; } no.enqueuedCount = depositable; self.enqueue(nodeOperatorId, count); } } function clean( Queue storage self, mapping(uint256 => NodeOperator) storage nodeOperators, uint256 maxItems ) external returns (uint256 removed, uint256 lastRemovedAtDepth) { if (maxItems == 0) revert IQueueLib.QueueLookupNoLimit(); Batch prev; uint128 indexOfPrev; uint128 head = self.head; uint128 curr = head; TransientUintUintMap queueLookup = TransientUintUintMapLib.create(); for (uint256 i; i < maxItems; ++i) { Batch item = self.queue[curr]; if (item.isNil()) { break; } NodeOperator storage no = nodeOperators[item.noId()]; if (queueLookup.get(item.noId()) >= no.depositableValidatorsCount) { // NOTE: Since we reached that point there's no way for a Node Operator to have a depositable batch // later in the queue, and hence we don't update _queueLookup for the Node Operator. if (curr == head) { self.dequeue(); head = self.head; } else { // There's no `prev` item while we call `dequeue`, and removing an item will keep the `prev` intact // other than changing its `next` field. prev = prev.setNext(item); self.queue[indexOfPrev] = prev; } // We assume that the invariant `enqueuedCount` >= `keys` is kept. // NOTE: No need to safe cast due to internal logic. no.enqueuedCount -= uint32(item.keys()); unchecked { lastRemovedAtDepth = i + 1; ++removed; } } else { queueLookup.add(item.noId(), item.keys()); indexOfPrev = curr; prev = item; } curr = item.next(); } } ///// /// Internal methods ///// function enqueue( Queue storage self, uint256 nodeOperatorId, uint256 keysCount ) internal returns (Batch item) { uint128 tail = self.tail; item = createBatch(nodeOperatorId, keysCount); assembly { item := or( and( item, 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000 ), add(tail, 1) ) // item.next = self.tail + 1; } self.queue[tail] = item; unchecked { ++self.tail; } emit IQueueLib.BatchEnqueued(nodeOperatorId, keysCount); } function dequeue(Queue storage self) internal returns (Batch item) { item = peek(self); if (item.isNil()) { revert IQueueLib.QueueIsEmpty(); } self.head = item.next(); } function peek(Queue storage self) internal view returns (Batch) { return self.queue[self.head]; } function at( Queue storage self, uint128 index ) internal view returns (Batch) { return self.queue[index]; } }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; /// @author skhomuti library ValidatorCountsReport { error InvalidReportData(); function safeCountOperators( bytes calldata ids, bytes calldata counts ) internal pure returns (uint256) { if ( counts.length / 16 != ids.length / 8 || ids.length % 8 != 0 || counts.length % 16 != 0 ) { revert InvalidReportData(); } return ids.length / 8; } function next( bytes calldata ids, bytes calldata counts, uint256 offset ) internal pure returns (uint256 nodeOperatorId, uint256 keysCount) { // prettier-ignore assembly ("memory-safe") { nodeOperatorId := shr(192, calldataload(add(ids.offset, mul(offset, 8)))) keysCount := shr(128, calldataload(add(counts.offset, mul(offset, 16)))) } } }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; import { NodeOperator, ICSModule } from "../interfaces/ICSModule.sol"; /// Library for changing and reset node operator's manager and reward addresses /// @dev the only use of this to be a library is to save CSModule contract size via delegatecalls interface INOAddresses { event NodeOperatorManagerAddressChangeProposed( uint256 indexed nodeOperatorId, address indexed oldProposedAddress, address indexed newProposedAddress ); event NodeOperatorRewardAddressChangeProposed( uint256 indexed nodeOperatorId, address indexed oldProposedAddress, address indexed newProposedAddress ); // args order as in https://github.com/OpenZeppelin/openzeppelin-contracts/blob/11dc5e3809ebe07d5405fe524385cbe4f890a08b/contracts/access/Ownable.sol#L33 event NodeOperatorManagerAddressChanged( uint256 indexed nodeOperatorId, address indexed oldAddress, address indexed newAddress ); event NodeOperatorRewardAddressChanged( uint256 indexed nodeOperatorId, address indexed oldAddress, address indexed newAddress ); error AlreadyProposed(); error SameAddress(); error SenderIsNotManagerAddress(); error SenderIsNotRewardAddress(); error SenderIsNotProposedAddress(); error MethodCallIsNotAllowed(); } library NOAddresses { /// @notice Propose a new manager address for the Node Operator /// @param nodeOperatorId ID of the Node Operator /// @param proposedAddress Proposed manager address function proposeNodeOperatorManagerAddressChange( mapping(uint256 => NodeOperator) storage nodeOperators, uint256 nodeOperatorId, address proposedAddress ) external { NodeOperator storage no = nodeOperators[nodeOperatorId]; if (no.managerAddress == address(0)) revert ICSModule.NodeOperatorDoesNotExist(); if (no.managerAddress != msg.sender) revert INOAddresses.SenderIsNotManagerAddress(); if (no.managerAddress == proposedAddress) revert INOAddresses.SameAddress(); if (no.proposedManagerAddress == proposedAddress) revert INOAddresses.AlreadyProposed(); address oldProposedAddress = no.proposedManagerAddress; no.proposedManagerAddress = proposedAddress; emit INOAddresses.NodeOperatorManagerAddressChangeProposed( nodeOperatorId, oldProposedAddress, proposedAddress ); } /// @notice Confirm a new manager address for the Node Operator. /// Should be called from the currently proposed address /// @param nodeOperatorId ID of the Node Operator function confirmNodeOperatorManagerAddressChange( mapping(uint256 => NodeOperator) storage nodeOperators, uint256 nodeOperatorId ) external { NodeOperator storage no = nodeOperators[nodeOperatorId]; if (no.managerAddress == address(0)) revert ICSModule.NodeOperatorDoesNotExist(); if (no.proposedManagerAddress != msg.sender) revert INOAddresses.SenderIsNotProposedAddress(); address oldAddress = no.managerAddress; no.managerAddress = msg.sender; delete no.proposedManagerAddress; emit INOAddresses.NodeOperatorManagerAddressChanged( nodeOperatorId, oldAddress, msg.sender ); } /// @notice Propose a new reward address for the Node Operator /// @param nodeOperatorId ID of the Node Operator /// @param proposedAddress Proposed reward address function proposeNodeOperatorRewardAddressChange( mapping(uint256 => NodeOperator) storage nodeOperators, uint256 nodeOperatorId, address proposedAddress ) external { NodeOperator storage no = nodeOperators[nodeOperatorId]; if (no.rewardAddress == address(0)) revert ICSModule.NodeOperatorDoesNotExist(); if (no.rewardAddress != msg.sender) revert INOAddresses.SenderIsNotRewardAddress(); if (no.rewardAddress == proposedAddress) revert INOAddresses.SameAddress(); if (no.proposedRewardAddress == proposedAddress) revert INOAddresses.AlreadyProposed(); address oldProposedAddress = no.proposedRewardAddress; no.proposedRewardAddress = proposedAddress; emit INOAddresses.NodeOperatorRewardAddressChangeProposed( nodeOperatorId, oldProposedAddress, proposedAddress ); } /// @notice Confirm a new reward address for the Node Operator. /// Should be called from the currently proposed address /// @param nodeOperatorId ID of the Node Operator function confirmNodeOperatorRewardAddressChange( mapping(uint256 => NodeOperator) storage nodeOperators, uint256 nodeOperatorId ) external { NodeOperator storage no = nodeOperators[nodeOperatorId]; if (no.rewardAddress == address(0)) revert ICSModule.NodeOperatorDoesNotExist(); if (no.proposedRewardAddress != msg.sender) revert INOAddresses.SenderIsNotProposedAddress(); address oldAddress = no.rewardAddress; no.rewardAddress = msg.sender; delete no.proposedRewardAddress; emit INOAddresses.NodeOperatorRewardAddressChanged( nodeOperatorId, oldAddress, msg.sender ); } /// @notice Reset the manager address to the reward address. /// Should be called from the reward address /// @param nodeOperatorId ID of the Node Operator function resetNodeOperatorManagerAddress( mapping(uint256 => NodeOperator) storage nodeOperators, uint256 nodeOperatorId ) external { NodeOperator storage no = nodeOperators[nodeOperatorId]; if (no.rewardAddress == address(0)) revert ICSModule.NodeOperatorDoesNotExist(); if (no.extendedManagerPermissions) revert INOAddresses.MethodCallIsNotAllowed(); if (no.rewardAddress != msg.sender) revert INOAddresses.SenderIsNotRewardAddress(); if (no.managerAddress == no.rewardAddress) revert INOAddresses.SameAddress(); address previousManagerAddress = no.managerAddress; no.managerAddress = no.rewardAddress; // @dev Gas golfing if (no.proposedManagerAddress != address(0)) delete no.proposedManagerAddress; emit INOAddresses.NodeOperatorManagerAddressChanged( nodeOperatorId, previousManagerAddress, no.rewardAddress ); } /// @notice Change rewardAddress if extendedManagerPermissions is enabled for the Node Operator. /// Should be called from the current manager address /// @param nodeOperatorId ID of the Node Operator /// @param newAddress New reward address function changeNodeOperatorRewardAddress( mapping(uint256 => NodeOperator) storage nodeOperators, uint256 nodeOperatorId, address newAddress ) external { NodeOperator storage no = nodeOperators[nodeOperatorId]; if (no.managerAddress == address(0)) revert ICSModule.NodeOperatorDoesNotExist(); if (!no.extendedManagerPermissions) revert INOAddresses.MethodCallIsNotAllowed(); if (no.managerAddress != msg.sender) revert INOAddresses.SenderIsNotManagerAddress(); address oldAddress = no.rewardAddress; no.rewardAddress = newAddress; // @dev Gas golfing if (no.proposedRewardAddress != address(0)) delete no.proposedRewardAddress; emit INOAddresses.NodeOperatorRewardAddressChanged( nodeOperatorId, oldAddress, newAddress ); } }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 // See contracts/COMPILERS.md pragma solidity 0.8.24; import { IStakingModule } from "../interfaces/IStakingModule.sol"; /// @title Library for manage operator keys in storage /// @author KRogLA library SigningKeys { using SigningKeys for bytes32; bytes32 internal constant SIGNING_KEYS_POSITION = keccak256("lido.CommunityStakingModule.signingKeysPosition"); uint64 internal constant PUBKEY_LENGTH = 48; uint64 internal constant SIGNATURE_LENGTH = 96; error InvalidKeysCount(); error InvalidLength(); error EmptyKey(); /// @dev store operator keys to storage /// @param nodeOperatorId operator id /// @param startIndex start index /// @param keysCount keys count to load /// @param pubkeys keys buffer to read from /// @param signatures signatures buffer to read from /// @return new total keys count function saveKeysSigs( uint256 nodeOperatorId, uint256 startIndex, uint256 keysCount, bytes calldata pubkeys, bytes calldata signatures ) internal returns (uint256) { if (keysCount == 0 || startIndex + keysCount > type(uint32).max) { revert InvalidKeysCount(); } unchecked { if ( pubkeys.length != keysCount * PUBKEY_LENGTH || signatures.length != keysCount * SIGNATURE_LENGTH ) { revert InvalidLength(); } } uint256 curOffset; bool isEmpty; bytes memory tmpKey = new bytes(48); for (uint256 i; i < keysCount; ) { curOffset = SIGNING_KEYS_POSITION.getKeyOffset( nodeOperatorId, startIndex ); assembly { let _ofs := add(pubkeys.offset, mul(i, 48)) // PUBKEY_LENGTH = 48 let _part1 := calldataload(_ofs) // bytes 0..31 let _part2 := calldataload(add(_ofs, 0x10)) // bytes 16..47 isEmpty := iszero(or(_part1, _part2)) mstore(add(tmpKey, 0x30), _part2) // store 2nd part first mstore(add(tmpKey, 0x20), _part1) // store 1st part with overwrite bytes 16-31 } if (isEmpty) { revert EmptyKey(); } assembly { // store key sstore(curOffset, mload(add(tmpKey, 0x20))) // store bytes 0..31 sstore(add(curOffset, 1), shl(128, mload(add(tmpKey, 0x30)))) // store bytes 32..47 // store signature let _ofs := add(signatures.offset, mul(i, 96)) // SIGNATURE_LENGTH = 96 sstore(add(curOffset, 2), calldataload(_ofs)) sstore(add(curOffset, 3), calldataload(add(_ofs, 0x20))) sstore(add(curOffset, 4), calldataload(add(_ofs, 0x40))) i := add(i, 1) startIndex := add(startIndex, 1) } emit IStakingModule.SigningKeyAdded(nodeOperatorId, tmpKey); } return startIndex; } /// @dev remove operator keys from storage /// @param nodeOperatorId operator id /// @param startIndex start index /// @param keysCount keys count to load /// @param totalKeysCount current total keys count for operator /// @return new total keys count function removeKeysSigs( uint256 nodeOperatorId, uint256 startIndex, uint256 keysCount, uint256 totalKeysCount ) internal returns (uint256) { if ( keysCount == 0 || startIndex + keysCount > totalKeysCount || totalKeysCount > type(uint32).max ) { revert InvalidKeysCount(); } uint256 curOffset; uint256 lastOffset; uint256 j; bytes memory tmpKey = new bytes(48); // removing from the last index unchecked { for (uint256 i = startIndex + keysCount; i > startIndex; ) { curOffset = SIGNING_KEYS_POSITION.getKeyOffset( nodeOperatorId, i - 1 ); assembly { // read key mstore( add(tmpKey, 0x30), shr(128, sload(add(curOffset, 1))) ) // bytes 16..47 mstore(add(tmpKey, 0x20), sload(curOffset)) // bytes 0..31 } if (i < totalKeysCount) { lastOffset = SIGNING_KEYS_POSITION.getKeyOffset( nodeOperatorId, totalKeysCount - 1 ); // move last key to deleted key index for (j = 0; j < 5; ) { // load 160 bytes (5 slots) containing key and signature assembly { sstore(add(curOffset, j), sload(add(lastOffset, j))) j := add(j, 1) } } curOffset = lastOffset; } // clear storage for (j = 0; j < 5; ) { assembly { sstore(add(curOffset, j), 0) j := add(j, 1) } } assembly { totalKeysCount := sub(totalKeysCount, 1) i := sub(i, 1) } emit IStakingModule.SigningKeyRemoved(nodeOperatorId, tmpKey); } } return totalKeysCount; } /// @dev Load operator's keys and signatures from the storage to the given in-memory arrays. /// @dev The function doesn't check for `pubkeys` and `signatures` out of boundaries access. /// @param nodeOperatorId operator id /// @param startIndex start index /// @param keysCount keys count to load /// @param pubkeys preallocated kes buffer to read in /// @param signatures preallocated signatures buffer to read in /// @param bufOffset start offset in `pubkeys`/`signatures` buffer to place values (in number of keys) function loadKeysSigs( uint256 nodeOperatorId, uint256 startIndex, uint256 keysCount, bytes memory pubkeys, bytes memory signatures, uint256 bufOffset ) internal view { uint256 curOffset; for (uint256 i; i < keysCount; ) { curOffset = SIGNING_KEYS_POSITION.getKeyOffset( nodeOperatorId, startIndex + i ); assembly { // read key let _ofs := add(add(pubkeys, 0x20), mul(add(bufOffset, i), 48)) // PUBKEY_LENGTH = 48 mstore(add(_ofs, 0x10), shr(128, sload(add(curOffset, 1)))) // bytes 16..47 mstore(_ofs, sload(curOffset)) // bytes 0..31 // store signature _ofs := add(add(signatures, 0x20), mul(add(bufOffset, i), 96)) // SIGNATURE_LENGTH = 96 mstore(_ofs, sload(add(curOffset, 2))) mstore(add(_ofs, 0x20), sload(add(curOffset, 3))) mstore(add(_ofs, 0x40), sload(add(curOffset, 4))) i := add(i, 1) } } } function loadKeys( uint256 nodeOperatorId, uint256 startIndex, uint256 keysCount ) internal view returns (bytes memory pubkeys) { uint256 curOffset; pubkeys = new bytes(keysCount * PUBKEY_LENGTH); for (uint256 i; i < keysCount; ) { curOffset = SIGNING_KEYS_POSITION.getKeyOffset( nodeOperatorId, startIndex + i ); assembly { // read key let offset := add(add(pubkeys, 0x20), mul(i, 48)) // PUBKEY_LENGTH = 48 mstore(add(offset, 0x10), shr(128, sload(add(curOffset, 1)))) // bytes 16..47 mstore(offset, sload(curOffset)) // bytes 0..31 i := add(i, 1) } } } function initKeysSigsBuf( uint256 count ) internal pure returns (bytes memory, bytes memory) { return ( new bytes(count * PUBKEY_LENGTH), new bytes(count * SIGNATURE_LENGTH) ); } function getKeyOffset( bytes32 position, uint256 nodeOperatorId, uint256 keyIndex ) internal pure returns (uint256) { return uint256( keccak256(abi.encodePacked(position, nodeOperatorId, keyIndex)) ); } }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; import { AssetRecovererLib } from "../lib/AssetRecovererLib.sol"; /// @title AssetRecoverer /// @dev Abstract contract providing mechanisms for recovering various asset types (ETH, ERC20, ERC721, ERC1155) from a contract. /// This contract is designed to allow asset recovery by an authorized address by implementing the onlyRecovererRole guardian /// @notice Assets can be sent only to the `msg.sender` abstract contract AssetRecoverer { /// @dev Allows sender to recover Ether held by the contract /// Emits an EtherRecovered event upon success function recoverEther() external { _onlyRecoverer(); AssetRecovererLib.recoverEther(); } /// @dev Allows sender to recover ERC20 tokens held by the contract /// @param token The address of the ERC20 token to recover /// Emits an ERC20Recovered event upon success /// Optionally, the inheriting contract can override this function to add additional restrictions function recoverERC20(address token, uint256 amount) external virtual { _onlyRecoverer(); AssetRecovererLib.recoverERC20(token, amount); } /// @dev Allows sender to recover ERC721 tokens held by the contract /// @param token The address of the ERC721 token to recover /// @param tokenId The token ID of the ERC721 token to recover /// Emits an ERC721Recovered event upon success function recoverERC721(address token, uint256 tokenId) external { _onlyRecoverer(); AssetRecovererLib.recoverERC721(token, tokenId); } /// @dev Allows sender to recover ERC1155 tokens held by the contract. /// @param token The address of the ERC1155 token to recover. /// @param tokenId The token ID of the ERC1155 token to recover. /// Emits an ERC1155Recovered event upon success. function recoverERC1155(address token, uint256 tokenId) external { _onlyRecoverer(); AssetRecovererLib.recoverERC1155(token, tokenId); } /// @dev Guardian to restrict access to the recover methods. /// Should be implemented by the inheriting contract function _onlyRecoverer() internal view virtual; }
/*
* SPDX-License-Identifier: MIT
*/
pragma solidity 0.8.24;
/**
* @notice Aragon Unstructured Storage library
*/
library UnstructuredStorage {
function setStorageAddress(bytes32 position, address data) internal {
assembly {
sstore(position, data)
}
}
function setStorageUint256(bytes32 position, uint256 data) internal {
assembly {
sstore(position, data)
}
}
function getStorageAddress(
bytes32 position
) internal view returns (address data) {
assembly {
data := sload(position)
}
}
function getStorageUint256(
bytes32 position
) internal view returns (uint256 data) {
assembly {
data := sload(position)
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/IAccessControlEnumerable.sol)
pragma solidity ^0.8.20;
import {IAccessControl} from "../IAccessControl.sol";
/**
* @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
*/
interface IAccessControlEnumerable is IAccessControl {
/**
* @dev Returns one of the accounts that have `role`. `index` must be a
* value between 0 and {getRoleMemberCount}, non-inclusive.
*
* Role bearers are not sorted in any particular way, and their ordering may
* change at any point.
*
* WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
* you perform all queries on the same block. See the following
* https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
* for more information.
*/
function getRoleMember(bytes32 role, uint256 index) external view returns (address);
/**
* @dev Returns the number of accounts that have `role`. Can be used
* together with {getRoleMember} to enumerate all bearers of a role.
*/
function getRoleMemberCount(bytes32 role) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)
pragma solidity ^0.8.20;
import {IAccessControl} from "@openzeppelin/contracts/access/IAccessControl.sol";
import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol";
import {ERC165Upgradeable} from "../utils/introspection/ERC165Upgradeable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```solidity
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```solidity
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControl, ERC165Upgradeable {
struct RoleData {
mapping(address account => bool) hasRole;
bytes32 adminRole;
}
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/// @custom:storage-location erc7201:openzeppelin.storage.AccessControl
struct AccessControlStorage {
mapping(bytes32 role => RoleData) _roles;
}
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.AccessControl")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant AccessControlStorageLocation = 0x02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800;
function _getAccessControlStorage() private pure returns (AccessControlStorage storage $) {
assembly {
$.slot := AccessControlStorageLocation
}
}
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with an {AccessControlUnauthorizedAccount} error including the required role.
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
function __AccessControl_init() internal onlyInitializing {
}
function __AccessControl_init_unchained() internal onlyInitializing {
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual returns (bool) {
AccessControlStorage storage $ = _getAccessControlStorage();
return $._roles[role].hasRole[account];
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
* is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
* is missing `role`.
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert AccessControlUnauthorizedAccount(account, role);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
AccessControlStorage storage $ = _getAccessControlStorage();
return $._roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address callerConfirmation) public virtual {
if (callerConfirmation != _msgSender()) {
revert AccessControlBadConfirmation();
}
_revokeRole(role, callerConfirmation);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
AccessControlStorage storage $ = _getAccessControlStorage();
bytes32 previousAdminRole = getRoleAdmin(role);
$._roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
AccessControlStorage storage $ = _getAccessControlStorage();
if (!hasRole(role, account)) {
$._roles[role].hasRole[account] = true;
emit RoleGranted(role, account, _msgSender());
return true;
} else {
return false;
}
}
/**
* @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
AccessControlStorage storage $ = _getAccessControlStorage();
if (hasRole(role, account)) {
$._roles[role].hasRole[account] = false;
emit RoleRevoked(role, account, _msgSender());
return true;
} else {
return false;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.20;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position is the index of the value in the `values` array plus 1.
// Position 0 is used to mean a value is not in the set.
mapping(bytes32 value => uint256) _positions;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._positions[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We cache the value's position to prevent multiple reads from the same storage slot
uint256 position = set._positions[value];
if (position != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 valueIndex = position - 1;
uint256 lastIndex = set._values.length - 1;
if (valueIndex != lastIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the lastValue to the index where the value to delete is
set._values[valueIndex] = lastValue;
// Update the tracked position of the lastValue (that was just moved)
set._positions[lastValue] = position;
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the tracked position for the deleted slot
delete set._positions[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._positions[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; interface ICSBondCore { function totalBondShares() external view returns (uint256); function getBondShares( uint256 nodeOperatorId ) external view returns (uint256); function getBond(uint256 nodeOperatorId) external view returns (uint256); }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; interface ICSBondCurve { /// @dev Bond curve structure. /// It contains: /// - points |> total bond amount for particular keys count /// - trend |> value for the next keys after described points /// /// For example, how the curve points look like: /// Points Array Index |> 0 1 2 i /// Bond Amount |> [ 2 ETH ] [ 3.9 ETH ] [ 5.7 ETH ] [ ... ] /// Keys Count |> 1 2 3 i + 1 /// /// Bond Amount (ETH) /// ^ /// | /// 6 - /// | ------------------ 5.7 ETH --> . /// 5.5 - ..^ /// | . | /// 5 - . | /// | . | /// 4.5 - . | /// | . | /// 4 - .. | /// | ------- 3.9 ETH --> .. | /// 3.5 - .^ | /// | .. | | /// 3 - .. | | /// | . | | /// 2.5 - . | | /// | .. | | /// 2 - -------->.. | | /// | ^ | | /// |----------|----------|----------|----------|----> Keys Count /// | 1 2 3 i /// struct BondCurve { uint256[] points; uint256 trend; } // solhint-disable-next-line function DEFAULT_BOND_CURVE_ID() external view returns (uint256); function getCurveInfo( uint256 curveId ) external view returns (BondCurve memory); function getBondCurve( uint256 nodeOperatorId ) external view returns (BondCurve memory); function getBondCurveId( uint256 nodeOperatorId ) external view returns (uint256); function getBondAmountByKeysCount( uint256 keys, uint256 curveId ) external view returns (uint256); function getBondAmountByKeysCount( uint256 keys, BondCurve memory curve ) external view returns (uint256); function getKeysCountByBondAmount( uint256 amount, uint256 curveId ) external view returns (uint256); function getKeysCountByBondAmount( uint256 amount, BondCurve memory curve ) external view returns (uint256); }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; interface ICSBondLock { /// @dev Bond lock structure. /// It contains: /// - amount |> amount of locked bond /// - retentionUntil |> timestamp until locked bond is retained struct BondLock { uint128 amount; uint128 retentionUntil; } function getBondLockRetentionPeriod() external view returns (uint256 retention); function getLockedBondInfo( uint256 nodeOperatorId ) external view returns (BondLock memory); function getActualLockedBond( uint256 nodeOperatorId ) external view returns (uint256); }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 import { IAssetRecovererLib } from "../lib/AssetRecovererLib.sol"; pragma solidity 0.8.24; interface ICSFeeDistributor is IAssetRecovererLib { function getFeesToDistribute( uint256 nodeOperatorId, uint256 shares, bytes32[] calldata proof ) external view returns (uint256); function distributeFees( uint256 nodeOperatorId, uint256 shares, bytes32[] calldata proof ) external returns (uint256); function processOracleReport( bytes32 _treeRoot, string calldata _treeCid, string calldata _logCid, uint256 _distributedShares ) external; /// @notice Returns the amount of shares that are pending to be distributed function pendingSharesToDistribute() external view returns (uint256); }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import { IERC1155 } from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import { ILido } from "../interfaces/ILido.sol"; interface IAssetRecovererLib { event EtherRecovered(address indexed recipient, uint256 amount); event ERC20Recovered( address indexed token, address indexed recipient, uint256 amount ); event StETHSharesRecovered(address indexed recipient, uint256 shares); event ERC721Recovered( address indexed token, uint256 tokenId, address indexed recipient ); event ERC1155Recovered( address indexed token, uint256 tokenId, address indexed recipient, uint256 amount ); error FailedToSendEther(); error NotAllowedToRecover(); } /* * @title AssetRecovererLib * @dev Library providing mechanisms for recovering various asset types (ETH, ERC20, ERC721, ERC1155). * This library is designed to be used by a contract that implements the AssetRecoverer interface. */ library AssetRecovererLib { using SafeERC20 for IERC20; /** * @dev Allows the sender to recover Ether held by the contract. * Emits an EtherRecovered event upon success. */ function recoverEther() external { uint256 amount = address(this).balance; (bool success, ) = msg.sender.call{ value: amount }(""); if (!success) revert IAssetRecovererLib.FailedToSendEther(); emit IAssetRecovererLib.EtherRecovered(msg.sender, amount); } /** * @dev Allows the sender to recover ERC20 tokens held by the contract. * @param token The address of the ERC20 token to recover. * @param amount The amount of the ERC20 token to recover. * Emits an ERC20Recovered event upon success. */ function recoverERC20(address token, uint256 amount) external { IERC20(token).safeTransfer(msg.sender, amount); emit IAssetRecovererLib.ERC20Recovered(token, msg.sender, amount); } /** * @dev Allows the sender to recover stETH shares held by the contract. * The use of a separate method for stETH is to avoid rounding problems when converting shares to stETH. * @param lido The address of the Lido contract. * @param shares The amount of stETH shares to recover. * Emits an StETHRecovered event upon success. */ function recoverStETHShares(address lido, uint256 shares) external { ILido(lido).transferShares(msg.sender, shares); emit IAssetRecovererLib.StETHSharesRecovered(msg.sender, shares); } /** * @dev Allows the sender to recover ERC721 tokens held by the contract. * @param token The address of the ERC721 token to recover. * @param tokenId The token ID of the ERC721 token to recover. * Emits an ERC721Recovered event upon success. */ function recoverERC721(address token, uint256 tokenId) external { IERC721(token).safeTransferFrom(address(this), msg.sender, tokenId); emit IAssetRecovererLib.ERC721Recovered(token, tokenId, msg.sender); } /** * @dev Allows the sender to recover ERC1155 tokens held by the contract. * @param token The address of the ERC1155 token to recover. * @param tokenId The token ID of the ERC1155 token to recover. * Emits an ERC1155Recovered event upon success. */ function recoverERC1155(address token, uint256 tokenId) external { uint256 amount = IERC1155(token).balanceOf(address(this), tokenId); IERC1155(token).safeTransferFrom({ from: address(this), to: msg.sender, id: tokenId, value: amount, data: "" }); emit IAssetRecovererLib.ERC1155Recovered( token, tokenId, msg.sender, amount ); } }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; /// @title Lido's Staking Module interface interface IStakingModule { /// @notice Returns the type of the staking module function getType() external view returns (bytes32); /// @notice Returns all-validators summary in the staking module /// @return totalExitedValidators total number of validators in the EXITED state /// on the Consensus Layer. This value can't decrease in normal conditions /// @return totalDepositedValidators total number of validators deposited via the /// official Deposit Contract. This value is a cumulative counter: even when the validator /// goes into EXITED state this counter is not decreasing /// @return depositableValidatorsCount number of validators in the set available for deposit function getStakingModuleSummary() external view returns ( uint256 totalExitedValidators, uint256 totalDepositedValidators, uint256 depositableValidatorsCount ); /// @notice Returns all-validators summary belonging to the node operator with the given id /// @param _nodeOperatorId id of the operator to return report for /// @return targetLimitMode shows whether the current target limit applied to the node operator (1 = soft mode, 2 = forced mode) /// @return targetValidatorsCount relative target active validators limit for operator /// @return stuckValidatorsCount number of validators with an expired request to exit time /// @return refundedValidatorsCount number of validators that can't be withdrawn, but deposit /// costs were compensated to the Lido by the node operator /// @return stuckPenaltyEndTimestamp time when the penalty for stuck validators stops applying /// to node operator rewards /// @return totalExitedValidators total number of validators in the EXITED state /// on the Consensus Layer. This value can't decrease in normal conditions /// @return totalDepositedValidators total number of validators deposited via the official /// Deposit Contract. This value is a cumulative counter: even when the validator goes into /// EXITED state this counter is not decreasing /// @return depositableValidatorsCount number of validators in the set available for deposit function getNodeOperatorSummary( uint256 _nodeOperatorId ) external view returns ( uint256 targetLimitMode, uint256 targetValidatorsCount, uint256 stuckValidatorsCount, uint256 refundedValidatorsCount, uint256 stuckPenaltyEndTimestamp, uint256 totalExitedValidators, uint256 totalDepositedValidators, uint256 depositableValidatorsCount ); /// @notice Returns a counter that MUST change its value whenever the deposit data set changes. /// Below is the typical list of actions that requires an update of the nonce: /// 1. a node operator's deposit data is added /// 2. a node operator's deposit data is removed /// 3. a node operator's ready-to-deposit data size is changed /// 4. a node operator was activated/deactivated /// 5. a node operator's deposit data is used for the deposit /// Note: Depending on the StakingModule implementation above list might be extended /// @dev In some scenarios, it's allowed to update nonce without actual change of the deposit /// data subset, but it MUST NOT lead to the DOS of the staking module via continuous /// update of the nonce by the malicious actor function getNonce() external view returns (uint256); /// @notice Returns total number of node operators function getNodeOperatorsCount() external view returns (uint256); /// @notice Returns number of active node operators function getActiveNodeOperatorsCount() external view returns (uint256); /// @notice Returns if the node operator with given id is active /// @param _nodeOperatorId Id of the node operator function getNodeOperatorIsActive( uint256 _nodeOperatorId ) external view returns (bool); /// @notice Returns up to `_limit` node operator ids starting from the `_offset`. The order of /// the returned ids is not defined and might change between calls. /// @dev This view must not revert in case of invalid data passed. When `_offset` exceeds the /// total node operators count or when `_limit` is equal to 0 MUST be returned empty array. function getNodeOperatorIds( uint256 _offset, uint256 _limit ) external view returns (uint256[] memory nodeOperatorIds); /// @notice Called by StakingRouter to signal that stETH rewards were minted for this module. /// @param _totalShares Amount of stETH shares that were minted to reward all node operators. /// @dev IMPORTANT: this method SHOULD revert with empty error data ONLY because of "out of gas". /// Details about error data: https://docs.soliditylang.org/en/v0.8.9/control-structures.html#error-handling-assert-require-revert-and-exceptions function onRewardsMinted(uint256 _totalShares) external; /// @notice Called by StakingRouter to decrease the number of vetted keys for node operator with given id /// @param _nodeOperatorIds bytes packed array of the node operators id /// @param _vettedSigningKeysCounts bytes packed array of the new number of vetted keys for the node operators function decreaseVettedSigningKeysCount( bytes calldata _nodeOperatorIds, bytes calldata _vettedSigningKeysCounts ) external; /// @notice Updates the number of the validators of the given node operator that were requested /// to exit but failed to do so in the max allowed time /// @param _nodeOperatorIds bytes packed array of the node operators id /// @param _stuckValidatorsCounts bytes packed array of the new number of STUCK validators for the node operators function updateStuckValidatorsCount( bytes calldata _nodeOperatorIds, bytes calldata _stuckValidatorsCounts ) external; /// @notice Updates the number of the validators in the EXITED state for node operator with given id /// @param _nodeOperatorIds bytes packed array of the node operators id /// @param _exitedValidatorsCounts bytes packed array of the new number of EXITED validators for the node operators function updateExitedValidatorsCount( bytes calldata _nodeOperatorIds, bytes calldata _exitedValidatorsCounts ) external; /// @notice Updates the number of the refunded validators for node operator with the given id /// @param _nodeOperatorId Id of the node operator /// @param _refundedValidatorsCount New number of refunded validators of the node operator function updateRefundedValidatorsCount( uint256 _nodeOperatorId, uint256 _refundedValidatorsCount ) external; /// @notice Updates the limit of the validators that can be used for deposit /// @param _nodeOperatorId Id of the node operator /// @param _targetLimitMode target limit mode /// @param _targetLimit Target limit of the node operator function updateTargetValidatorsLimits( uint256 _nodeOperatorId, uint256 _targetLimitMode, uint256 _targetLimit ) external; /// @notice Unsafely updates the number of validators in the EXITED/STUCK states for node operator with given id /// 'unsafely' means that this method can both increase and decrease exited and stuck counters /// @param _nodeOperatorId Id of the node operator /// @param _exitedValidatorsCount New number of EXITED validators for the node operator /// @param _stuckValidatorsCount New number of STUCK validator for the node operator function unsafeUpdateValidatorsCount( uint256 _nodeOperatorId, uint256 _exitedValidatorsCount, uint256 _stuckValidatorsCount ) external; /// @notice Obtains deposit data to be used by StakingRouter to deposit to the Ethereum Deposit /// contract /// @dev The method MUST revert when the staking module has not enough deposit data items /// @param _depositsCount Number of deposits to be done /// @param _depositCalldata Staking module defined data encoded as bytes. /// IMPORTANT: _depositCalldata MUST NOT modify the deposit data set of the staking module /// @return publicKeys Batch of the concatenated public validators keys /// @return signatures Batch of the concatenated deposit signatures for returned public keys function obtainDepositData( uint256 _depositsCount, bytes calldata _depositCalldata ) external returns (bytes memory publicKeys, bytes memory signatures); /// @notice Called by StakingRouter after it finishes updating exited and stuck validators /// counts for this module's node operators. /// /// Guaranteed to be called after an oracle report is applied, regardless of whether any node /// operator in this module has actually received any updated counts as a result of the report /// but given that the total number of exited validators returned from getStakingModuleSummary /// is the same as StakingRouter expects based on the total count received from the oracle. /// /// @dev IMPORTANT: this method SHOULD revert with empty error data ONLY because of "out of gas". /// Details about error data: https://docs.soliditylang.org/en/v0.8.9/control-structures.html#error-handling-assert-require-revert-and-exceptions function onExitedAndStuckValidatorsCountsUpdated() external; /// @notice Called by StakingRouter when withdrawal credentials are changed. /// @dev This method MUST discard all StakingModule's unused deposit data cause they become /// invalid after the withdrawal credentials are changed /// /// @dev IMPORTANT: this method SHOULD revert with empty error data ONLY because of "out of gas". /// Details about error data: https://docs.soliditylang.org/en/v0.8.9/control-structures.html#error-handling-assert-require-revert-and-exceptions function onWithdrawalCredentialsChanged() external; /// @dev Event to be emitted on StakingModule's nonce change event NonceChanged(uint256 nonce); /// @dev Event to be emitted when a signing key is added to the StakingModule event SigningKeyAdded(uint256 indexed nodeOperatorId, bytes pubkey); /// @dev Event to be emitted when a signing key is removed from the StakingModule event SigningKeyRemoved(uint256 indexed nodeOperatorId, bytes pubkey); }
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; type TransientUintUintMap is uint256; using TransientUintUintMapLib for TransientUintUintMap global; library TransientUintUintMapLib { function create() internal returns (TransientUintUintMap self) { // keccak256(abi.encode(uint256(keccak256("TransientUintUintMap")) - 1)) & ~bytes32(uint256(0xff)) uint256 anchor = 0x6e38e7eaa4307e6ee6c66720337876ca65012869fbef035f57219354c1728400; // `anchor` slot in the transient storage tracks the "address" of the last created object. // The next address is being computed as keccak256(`anchor` . `prev`). assembly ("memory-safe") { let prev := tload(anchor) mstore(0x00, anchor) mstore(0x20, prev) self := keccak256(0x00, 0x40) tstore(anchor, self) } } function add( TransientUintUintMap self, uint256 key, uint256 value ) internal { uint256 slot = _slot(self, key); assembly ("memory-safe") { let v := tload(slot) // NOTE: Here's no overflow check. v := add(v, value) tstore(slot, v) } } function get( TransientUintUintMap self, uint256 key ) internal view returns (uint256 v) { uint256 slot = _slot(self, key); assembly ("memory-safe") { v := tload(slot) } } function _slot( TransientUintUintMap self, uint256 key ) internal pure returns (uint256 slot) { // Compute an address in the transient storage in the same manner it works for storage mappings. // `slot` = keccak256(`self` . `key`) assembly ("memory-safe") { mstore(0x00, self) mstore(0x20, key) slot := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev The `account` is missing a role.
*/
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
/**
* @dev The caller of a function is not the expected one.
*
* NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
*/
error AccessControlBadConfirmation();
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*/
function renounceRole(bytes32 role, address callerConfirmation) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
import {Initializable} from "../proxy/utils/Initializable.sol";
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*/
abstract contract ERC165Upgradeable is Initializable, IERC165 {
function __ERC165_init() internal onlyInitializing {
}
function __ERC165_init_unchained() internal onlyInitializing {
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
* {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the address zero.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (token/ERC1155/IERC1155.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*/
interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` amount of tokens of type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
* transfers.
*/
event TransferBatch(
address indexed operator,
address indexed from,
address indexed to,
uint256[] ids,
uint256[] values
);
/**
* @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
* `approved`.
*/
event ApprovalForAll(address indexed account, address indexed operator, bool approved);
/**
* @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
*
* If an {URI} event was emitted for `id`, the standard
* https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
* returned by {IERC1155MetadataURI-uri}.
*/
event URI(string value, uint256 indexed id);
/**
* @dev Returns the value of tokens of token type `id` owned by `account`.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function balanceOf(address account, uint256 id) external view returns (uint256);
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(
address[] calldata accounts,
uint256[] calldata ids
) external view returns (uint256[] memory);
/**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the caller.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address account, address operator) external view returns (bool);
/**
* @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`.
*
* WARNING: This function can potentially allow a reentrancy attack when transferring tokens
* to an untrusted contract, when invoking {onERC1155Received} on the receiver.
* Ensure to follow the checks-effects-interactions pattern and consider employing
* reentrancy guards when interacting with untrusted contracts.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must have a balance of tokens of type `id` of at least `value` amount.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes calldata data) external;
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* WARNING: This function can potentially allow a reentrancy attack when transferring tokens
* to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver.
* Ensure to follow the checks-effects-interactions pattern and consider employing
* reentrancy guards when interacting with untrusted contracts.
*
* Emits either a {TransferSingle} or a {TransferBatch} event, depending on the length of the array arguments.
*
* Requirements:
*
* - `ids` and `values` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev An operation with an ERC20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}// SPDX-FileCopyrightText: 2024 Lido <[email protected]> // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.24; import { IStETH } from "./IStETH.sol"; /** * @title Interface defining Lido contract */ interface ILido is IStETH { function STAKING_CONTROL_ROLE() external view returns (bytes32); function submit(address _referal) external payable returns (uint256); function deposit( uint256 _maxDepositsCount, uint256 _stakingModuleId, bytes calldata _depositCalldata ) external; function removeStakingLimit() external; function kernel() external returns (address); function sharesOf(address _account) external view returns (uint256); }
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}{
"remappings": [
"@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
"@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/",
"forge-std/=node_modules/forge-std/src/",
"ds-test/=node_modules/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"openzeppelin-contracts-v4.4/=lib/openzeppelin-contracts-v4.4/contracts/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/"
],
"optimizer": {
"enabled": true,
"runs": 250
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "none",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"evmVersion": "cancun",
"viaIR": false,
"libraries": {
"src/lib/AssetRecovererLib.sol": {
"AssetRecovererLib": "0xA0513a7e28dAc4C31b5cCbF9A5F474B759257985"
},
"src/lib/NOAddresses.sol": {
"NOAddresses": "0x479244Bac2ae1D64841753307a0552183642c121"
},
"src/lib/QueueLib.sol": {
"QueueLib": "0x6FB7aF5aDDB044182caa27db35e394Ed3451A4da"
}
}
}Contract ABI
API[{"inputs":[{"internalType":"bytes32","name":"moduleType","type":"bytes32"},{"internalType":"uint256","name":"minSlashingPenaltyQuotient","type":"uint256"},{"internalType":"uint256","name":"elRewardsStealingFine","type":"uint256"},{"internalType":"uint256","name":"maxKeysPerOperatorEA","type":"uint256"},{"internalType":"uint256","name":"maxKeyRemovalCharge","type":"uint256"},{"internalType":"address","name":"lidoLocator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"AlreadyActivated","type":"error"},{"inputs":[],"name":"AlreadyProposed","type":"error"},{"inputs":[],"name":"AlreadySubmitted","type":"error"},{"inputs":[],"name":"EmptyKey","type":"error"},{"inputs":[],"name":"ExitedKeysDecrease","type":"error"},{"inputs":[],"name":"ExitedKeysHigherThanTotalDeposited","type":"error"},{"inputs":[],"name":"FailedToSendEther","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"InvalidInput","type":"error"},{"inputs":[],"name":"InvalidKeysCount","type":"error"},{"inputs":[],"name":"InvalidLength","type":"error"},{"inputs":[],"name":"InvalidReportData","type":"error"},{"inputs":[],"name":"InvalidVetKeysPointer","type":"error"},{"inputs":[],"name":"MaxSigningKeysCountExceeded","type":"error"},{"inputs":[],"name":"MethodCallIsNotAllowed","type":"error"},{"inputs":[],"name":"NodeOperatorDoesNotExist","type":"error"},{"inputs":[],"name":"NotAllowedToJoinYet","type":"error"},{"inputs":[],"name":"NotAllowedToRecover","type":"error"},{"inputs":[],"name":"NotEnoughKeys","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[],"name":"NotSupported","type":"error"},{"inputs":[],"name":"PauseUntilMustBeInFuture","type":"error"},{"inputs":[],"name":"PausedExpected","type":"error"},{"inputs":[],"name":"QueueIsEmpty","type":"error"},{"inputs":[],"name":"QueueLookupNoLimit","type":"error"},{"inputs":[],"name":"ResumedExpected","type":"error"},{"inputs":[],"name":"SameAddress","type":"error"},{"inputs":[],"name":"SenderIsNotEligible","type":"error"},{"inputs":[],"name":"SenderIsNotManagerAddress","type":"error"},{"inputs":[],"name":"SenderIsNotProposedAddress","type":"error"},{"inputs":[],"name":"SenderIsNotRewardAddress","type":"error"},{"inputs":[],"name":"SigningKeysInvalidOffset","type":"error"},{"inputs":[],"name":"StuckKeysHigherThanNonExited","type":"error"},{"inputs":[],"name":"ZeroAccountingAddress","type":"error"},{"inputs":[],"name":"ZeroAdminAddress","type":"error"},{"inputs":[],"name":"ZeroLocatorAddress","type":"error"},{"inputs":[],"name":"ZeroPauseDuration","type":"error"},{"inputs":[],"name":"ZeroRewardAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"BatchEnqueued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositableKeysCount","type":"uint256"}],"name":"DepositableSigningKeysCountChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositedKeysCount","type":"uint256"}],"name":"DepositedSigningKeysCountChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ELRewardsStealingPenaltyCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ELRewardsStealingPenaltyCompensated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"proposedBlockHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"stolenAmount","type":"uint256"}],"name":"ELRewardsStealingPenaltyReported","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"ELRewardsStealingPenaltySettled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC1155Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"}],"name":"ERC721Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EtherRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"exitedKeysCount","type":"uint256"}],"name":"ExitedSigningKeysCountChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"keyIndex","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"pubkey","type":"bytes"}],"name":"InitialSlashingSubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"KeyRemovalChargeApplied","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"KeyRemovalChargeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":true,"internalType":"address","name":"managerAddress","type":"address"},{"indexed":true,"internalType":"address","name":"rewardAddress","type":"address"}],"name":"NodeOperatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":true,"internalType":"address","name":"oldProposedAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newProposedAddress","type":"address"}],"name":"NodeOperatorManagerAddressChangeProposed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"NodeOperatorManagerAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":true,"internalType":"address","name":"oldProposedAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newProposedAddress","type":"address"}],"name":"NodeOperatorRewardAddressChangeProposed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"NodeOperatorRewardAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"NonceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[],"name":"PublicRelease","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":true,"internalType":"address","name":"referrer","type":"address"}],"name":"ReferrerSet","type":"event"},{"anonymous":false,"inputs":[],"name":"Resumed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"pubkey","type":"bytes"}],"name":"SigningKeyAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"pubkey","type":"bytes"}],"name":"SigningKeyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"StETHSharesRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stuckKeysCount","type":"uint256"}],"name":"StuckSigningKeysCountChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"targetLimitMode","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"targetValidatorsCount","type":"uint256"}],"name":"TargetValidatorsCountChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalKeysCount","type":"uint256"}],"name":"TotalSigningKeysCountChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"vettedKeysCount","type":"uint256"}],"name":"VettedSigningKeysCountChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"VettedSigningKeysCountDecreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"keyIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"pubkey","type":"bytes"}],"name":"WithdrawalSubmitted","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EL_REWARDS_STEALING_FINE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_SLASHING_PENALTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIDO_LOCATOR","outputs":[{"internalType":"contract ILidoLocator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_KEY_REMOVAL_CHARGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SIGNING_KEYS_PER_OPERATOR_BEFORE_PUBLIC_RELEASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MODULE_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSE_INFINITELY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RECOVERER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REPORT_EL_REWARDS_STEALING_PENALTY_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESUME_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SETTLE_EL_REWARDS_STEALING_PENALTY_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKING_ROUTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STETH","outputs":[{"internalType":"contract IStETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERIFIER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accounting","outputs":[{"internalType":"contract ICSAccounting","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activatePublicRelease","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"keysCount","type":"uint256"},{"internalType":"bytes","name":"publicKeys","type":"bytes"},{"internalType":"bytes","name":"signatures","type":"bytes"},{"components":[{"internalType":"address","name":"managerAddress","type":"address"},{"internalType":"address","name":"rewardAddress","type":"address"},{"internalType":"bool","name":"extendedManagerPermissions","type":"bool"}],"internalType":"struct NodeOperatorManagementProperties","name":"managementProperties","type":"tuple"},{"internalType":"bytes32[]","name":"eaProof","type":"bytes32[]"},{"internalType":"address","name":"referrer","type":"address"}],"name":"addNodeOperatorETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"keysCount","type":"uint256"},{"internalType":"bytes","name":"publicKeys","type":"bytes"},{"internalType":"bytes","name":"signatures","type":"bytes"},{"components":[{"internalType":"address","name":"managerAddress","type":"address"},{"internalType":"address","name":"rewardAddress","type":"address"},{"internalType":"bool","name":"extendedManagerPermissions","type":"bool"}],"internalType":"struct NodeOperatorManagementProperties","name":"managementProperties","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct ICSAccounting.PermitInput","name":"permit","type":"tuple"},{"internalType":"bytes32[]","name":"eaProof","type":"bytes32[]"},{"internalType":"address","name":"referrer","type":"address"}],"name":"addNodeOperatorStETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"keysCount","type":"uint256"},{"internalType":"bytes","name":"publicKeys","type":"bytes"},{"internalType":"bytes","name":"signatures","type":"bytes"},{"components":[{"internalType":"address","name":"managerAddress","type":"address"},{"internalType":"address","name":"rewardAddress","type":"address"},{"internalType":"bool","name":"extendedManagerPermissions","type":"bool"}],"internalType":"struct NodeOperatorManagementProperties","name":"managementProperties","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct ICSAccounting.PermitInput","name":"permit","type":"tuple"},{"internalType":"bytes32[]","name":"eaProof","type":"bytes32[]"},{"internalType":"address","name":"referrer","type":"address"}],"name":"addNodeOperatorWstETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"keysCount","type":"uint256"},{"internalType":"bytes","name":"publicKeys","type":"bytes"},{"internalType":"bytes","name":"signatures","type":"bytes"}],"name":"addValidatorKeysETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"keysCount","type":"uint256"},{"internalType":"bytes","name":"publicKeys","type":"bytes"},{"internalType":"bytes","name":"signatures","type":"bytes"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct ICSAccounting.PermitInput","name":"permit","type":"tuple"}],"name":"addValidatorKeysStETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"keysCount","type":"uint256"},{"internalType":"bytes","name":"publicKeys","type":"bytes"},{"internalType":"bytes","name":"signatures","type":"bytes"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct ICSAccounting.PermitInput","name":"permit","type":"tuple"}],"name":"addValidatorKeysWstETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"cancelELRewardsStealingPenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"address","name":"newAddress","type":"address"}],"name":"changeNodeOperatorRewardAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"stETHAmount","type":"uint256"},{"internalType":"uint256","name":"cumulativeFeeShares","type":"uint256"},{"internalType":"bytes32[]","name":"rewardsProof","type":"bytes32[]"}],"name":"claimRewardsStETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"stEthAmount","type":"uint256"},{"internalType":"uint256","name":"cumulativeFeeShares","type":"uint256"},{"internalType":"bytes32[]","name":"rewardsProof","type":"bytes32[]"}],"name":"claimRewardsUnstETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"wstETHAmount","type":"uint256"},{"internalType":"uint256","name":"cumulativeFeeShares","type":"uint256"},{"internalType":"bytes32[]","name":"rewardsProof","type":"bytes32[]"}],"name":"claimRewardsWstETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxItems","type":"uint256"}],"name":"cleanDepositQueue","outputs":[{"internalType":"uint256","name":"removed","type":"uint256"},{"internalType":"uint256","name":"lastRemovedAtDepth","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"compensateELRewardsStealingPenalty","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"confirmNodeOperatorManagerAddressChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"confirmNodeOperatorRewardAddressChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"nodeOperatorIds","type":"bytes"},{"internalType":"bytes","name":"vettedSigningKeysCounts","type":"bytes"}],"name":"decreaseVettedSigningKeysCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"depositETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"depositQueue","outputs":[{"internalType":"uint128","name":"head","type":"uint128"},{"internalType":"uint128","name":"tail","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"index","type":"uint128"}],"name":"depositQueueItem","outputs":[{"internalType":"Batch","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"stETHAmount","type":"uint256"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct ICSAccounting.PermitInput","name":"permit","type":"tuple"}],"name":"depositStETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"wstETHAmount","type":"uint256"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct ICSAccounting.PermitInput","name":"permit","type":"tuple"}],"name":"depositWstETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earlyAdoption","outputs":[{"internalType":"contract ICSEarlyAdoption","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getActiveNodeOperatorsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"getNodeOperator","outputs":[{"components":[{"internalType":"uint32","name":"totalAddedKeys","type":"uint32"},{"internalType":"uint32","name":"totalWithdrawnKeys","type":"uint32"},{"internalType":"uint32","name":"totalDepositedKeys","type":"uint32"},{"internalType":"uint32","name":"totalVettedKeys","type":"uint32"},{"internalType":"uint32","name":"stuckValidatorsCount","type":"uint32"},{"internalType":"uint32","name":"depositableValidatorsCount","type":"uint32"},{"internalType":"uint32","name":"targetLimit","type":"uint32"},{"internalType":"uint8","name":"targetLimitMode","type":"uint8"},{"internalType":"uint32","name":"totalExitedKeys","type":"uint32"},{"internalType":"uint32","name":"enqueuedCount","type":"uint32"},{"internalType":"address","name":"managerAddress","type":"address"},{"internalType":"address","name":"proposedManagerAddress","type":"address"},{"internalType":"address","name":"rewardAddress","type":"address"},{"internalType":"address","name":"proposedRewardAddress","type":"address"},{"internalType":"bool","name":"extendedManagerPermissions","type":"bool"}],"internalType":"struct NodeOperator","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"getNodeOperatorIds","outputs":[{"internalType":"uint256[]","name":"nodeOperatorIds","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"getNodeOperatorIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"getNodeOperatorNonWithdrawnKeys","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"getNodeOperatorSummary","outputs":[{"internalType":"uint256","name":"targetLimitMode","type":"uint256"},{"internalType":"uint256","name":"targetValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"stuckValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"refundedValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"stuckPenaltyEndTimestamp","type":"uint256"},{"internalType":"uint256","name":"totalExitedValidators","type":"uint256"},{"internalType":"uint256","name":"totalDepositedValidators","type":"uint256"},{"internalType":"uint256","name":"depositableValidatorsCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNodeOperatorsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getResumeSinceTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"keysCount","type":"uint256"}],"name":"getSigningKeys","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"keysCount","type":"uint256"}],"name":"getSigningKeysWithSignatures","outputs":[{"internalType":"bytes","name":"keys","type":"bytes"},{"internalType":"bytes","name":"signatures","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingModuleSummary","outputs":[{"internalType":"uint256","name":"totalExitedValidators","type":"uint256"},{"internalType":"uint256","name":"totalDepositedValidators","type":"uint256"},{"internalType":"uint256","name":"depositableValidatorsCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getType","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_accounting","type":"address"},{"internalType":"address","name":"_earlyAdoption","type":"address"},{"internalType":"uint256","name":"_keyRemovalCharge","type":"uint256"},{"internalType":"address","name":"admin","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"keyIndex","type":"uint256"}],"name":"isValidatorSlashed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"keyIndex","type":"uint256"}],"name":"isValidatorWithdrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keyRemovalCharge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"normalizeQueue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"depositsCount","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"obtainDepositData","outputs":[{"internalType":"bytes","name":"publicKeys","type":"bytes"},{"internalType":"bytes","name":"signatures","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"onExitedAndStuckValidatorsCountsUpdated","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalShares","type":"uint256"}],"name":"onRewardsMinted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"onWithdrawalCredentialsChanged","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"pauseFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"address","name":"proposedAddress","type":"address"}],"name":"proposeNodeOperatorManagerAddressChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"address","name":"proposedAddress","type":"address"}],"name":"proposeNodeOperatorRewardAddressChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicRelease","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"recoverERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"recoverERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recoverEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"keysCount","type":"uint256"}],"name":"removeKeys","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"bytes32","name":"blockHash","type":"bytes32"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reportELRewardsStealingPenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"}],"name":"resetNodeOperatorManagerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resume","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setKeyRemovalCharge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"nodeOperatorIds","type":"uint256[]"}],"name":"settleELRewardsStealingPenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"keyIndex","type":"uint256"}],"name":"submitInitialSlashing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"keyIndex","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"isSlashed","type":"bool"}],"name":"submitWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"exitedValidatorsKeysCount","type":"uint256"},{"internalType":"uint256","name":"stuckValidatorsKeysCount","type":"uint256"}],"name":"unsafeUpdateValidatorsCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"nodeOperatorIds","type":"bytes"},{"internalType":"bytes","name":"exitedValidatorsCounts","type":"bytes"}],"name":"updateExitedValidatorsCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"updateRefundedValidatorsCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"nodeOperatorIds","type":"bytes"},{"internalType":"bytes","name":"stuckValidatorsCounts","type":"bytes"}],"name":"updateStuckValidatorsCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"targetLimitMode","type":"uint256"},{"internalType":"uint256","name":"targetLimit","type":"uint256"}],"name":"updateTargetValidatorsLimits","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
61016060405234801562000011575f80fd5b50604051620061d0380380620061d08339810160408190526200003491620001ec565b6001600160a01b0381166200005c57604051630f05a38b60e41b815260040160405180910390fd5b61010086905262000077856801bc16d674ec8000006200023c565b60805260a084905260c083905260e08290526001600160a01b038116610120819052604080516323509a2d60e01b815290516323509a2d916004808201926020929091908290030181865afa158015620000d3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620000f991906200025c565b6001600160a01b031661014052620001106200011c565b5050505050506200027f565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156200016d5760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620001cd5780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b0381168114620001e7575f80fd5b919050565b5f805f805f8060c0878903121562000202575f80fd5b86519550602087015194506040870151935060608701519250608087015191506200023060a08801620001d0565b90509295509295509295565b5f826200025757634e487b7160e01b5f52601260045260245ffd5b500490565b5f602082840312156200026d575f80fd5b6200027882620001d0565b9392505050565b60805160a05160c05160e051610100516101205161014051615ece620003025f395f81816111b001526125b001525f818161117d0152612fbb01525f61057501525f8181610808015261495f01525f81816107d501526142c401525f818161102c015261192801525f8181611136015281816136c9015261390d0152615ece5ff3fe6080604052600436106104e7575f3560e01c80638b3ac71d11610283578063ba1557ae11610155578063dbba4b48116100c9578063f2e2ca6311610083578063f2e2ca6314611258578063f3f449c714611277578063f408b55114611296578063f617eecc146112b5578063f96d3952146112ff578063fe7ed3cd1461131e575f80fd5b8063dbba4b481461116c578063e00bfe501461119f578063e1aa105d146111d2578063e21a430b146111f1578063e7705db614611211578063e864299e14611244575f80fd5b8063cb17ed3e1161011a578063cb17ed3e146110ab578063d087d288146110de578063d3931457146110f2578063d547741f14611106578063d647791914611125578063d9df8c9214611158575f80fd5b8063ba1557ae14610ffc578063bdac46a21461101b578063be2030941461104e578063bee41b581461106d578063ca15c8731461108c575f80fd5b80639b3d1900116101f7578063acc446eb116101b1578063acc446eb14610efe578063acf1c94814610f1d578063b1520dc514610f50578063b187bd2614610f6f578063b3076c3c14610f83578063b643189b14610fdd575f80fd5b80639b3d190014610e7a5780639ec3c24c14610e99578063a217fddf14610eb8578063a2e080f114610ecb578063a302ee3814610eea578063a70c70e414610c72575f80fd5b806390c09bdb1161024857806390c09bdb14610da557806391d1485414610db9578063946654ad14610dd85780639624e83e14610df75780639abddf0914610e165780639b00c14614610e5b575f80fd5b80638b3ac71d14610ce85780638cabe95914610d075780638d7e401714610d265780638ec6902814610d455780639010d07c14610d86575f80fd5b80635097ef59116103bc5780636a5f2c4a1161033057806380231f15116102ea57806380231f1514610c14578063819d4cc614610c345780638409d4fe14610c535780638469cbd314610c725780638573e35114610c965780638980f11f14610cc9575f80fd5b80636a5f2c4a14610b515780636a6304cc14610b705780636bb1bfdf14610b8f5780636efe37a214610bae578063735dfa2814610bc157806375a401da14610bf5575f80fd5b8063589ff76c11610381578063589ff76c1461090757806359e25c121461091b5780635c654ad9146109475780635e169fb8146109665780635e2fb9081461098557806365c14dc7146109b6575f80fd5b80635097ef59146108835780635204281c146108a257806352d8bfc2146108c157806353433643146108d55780635358fbda146108f4575f80fd5b806337b12b5f1161045e5780633f214bb2116104185780633f214bb21461078657806340044801146107a557806347faf311146107c45780634baf13cc146107f75780634febc81b1461082a57806350388cb614610856575f80fd5b806337b12b5f146106a4578063388dd1d1146106c3578063389ed267146106e25780633dbe8b5a146107155780633df6c438146107345780633f04f0c814610753575f80fd5b80631b40b231116104af5780631b40b231146105a3578063248a9ca3146105c257806326a666e4146105fc5780632de03aa1146106335780632f2ff15d1461066657806336568abe14610685575f80fd5b806301ffc9a7146104eb578063046f7da21461051f57806308a679ad14610535578063157a039b1461055457806315dae03e14610567575b5f80fd5b3480156104f6575f80fd5b5061050a61050536600461537e565b611331565b60405190151581526020015b60405180910390f35b34801561052a575f80fd5b5061053361135b565b005b348015610540575f80fd5b5061053361054f3660046153a5565b611390565b61053361056236600461547c565b6114f2565b348015610572575f80fd5b507f00000000000000000000000000000000000000000000000000000000000000005b604051908152602001610516565b3480156105ae575f80fd5b506105336105bd36600461553e565b61161b565b3480156105cd575f80fd5b506105956105dc36600461556c565b5f9081525f80516020615ea2833981519152602052604090206001015490565b348015610607575f80fd5b5060045461061b906001600160a01b031681565b6040516001600160a01b039091168152602001610516565b34801561063e575f80fd5b506105957f2fc10cc8ae19568712f7a176fb4978616a610650813c9d05326c34abb62749c781565b348015610671575f80fd5b5061053361068036600461553e565b611694565b348015610690575f80fd5b5061053361069f36600461553e565b6116c4565b3480156106af575f80fd5b506105336106be366004615583565b6116fc565b3480156106ce575f80fd5b506105336106dd3660046153a5565b6118be565b3480156106ed575f80fd5b506105957f139c2898040ef16910dc9f44dc697df79363da767d8bc92f2e310312b816e46d81565b348015610720575f80fd5b5061050a61072f3660046155c1565b6119e4565b34801561073f575f80fd5b5061053361074e3660046155e1565b611a0a565b34801561075e575f80fd5b506105957fe85fdec10fe0f93d0792364051df7c3d73e37c17b3a954bffe593960e3cd301281565b348015610791575f80fd5b506105336107a036600461564c565b611a98565b3480156107b0575f80fd5b506105336107bf3660046155c1565b611b0f565b3480156107cf575f80fd5b506105957f000000000000000000000000000000000000000000000000000000000000000081565b348015610802575f80fd5b506105957f000000000000000000000000000000000000000000000000000000000000000081565b348015610835575f80fd5b506108496108443660046155c1565b611be7565b604051610516919061567f565b348015610861575f80fd5b506108756108703660046153a5565b611ccf565b604051610516929190615705565b34801561088e575f80fd5b5061053361089d3660046155e1565b611d01565b3480156108ad575f80fd5b506105336108bc36600461556c565b611d57565b3480156108cc575f80fd5b50610533611dba565b3480156108e0575f80fd5b5061050a6108ef3660046155c1565b611e16565b61053361090236600461556c565b611e26565b348015610912575f80fd5b50610595611e9c565b348015610926575f80fd5b5061093a6109353660046153a5565b611eca565b6040516105169190615729565b348015610952575f80fd5b5061053361096136600461573b565b611eea565b348015610971575f80fd5b50610595610980366004615765565b611f39565b348015610990575f80fd5b5061050a61099f36600461556c565b600954600160c01b90046001600160401b03161190565b3480156109c1575f80fd5b50610b446109d036600461556c565b604080516101e0810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c0810191909152505f9081526006602090815260409182902082516101e081018452815463ffffffff8082168352600160201b808304821695840195909552600160401b808304821696840196909652600160601b820481166060840152600160801b820481166080840152600160a01b808304821660a0850152600160c01b8304821660c085015260ff600160e01b909304831660e085015260018501548083166101008601529586049091166101208401526001600160a01b0395909404851661014083015260028301548516610160830152600383015485166101808301526004909201549384166101a08201529190920490911615156101c082015290565b604051610516919061578b565b348015610b5c575f80fd5b50610533610b6b3660046158b8565b611f56565b348015610b7b575f80fd5b50610533610b8a36600461556c565b61207c565b348015610b9a575f80fd5b50610533610ba936600461556c565b6120bb565b610533610bbc36600461556c565b6120fa565b348015610bcc575f80fd5b50610be0610bdb36600461556c565b6121a7565b60408051928352602083019190915201610516565b348015610c00575f80fd5b50610533610c0f36600461553e565b612234565b348015610c1f575f80fd5b506105955f80516020615e8283398151915281565b348015610c3f575f80fd5b50610533610c4e36600461573b565b6122a9565b348015610c5e575f80fd5b50610533610c6d3660046155e1565b6122f8565b348015610c7d575f80fd5b50600954600160c01b90046001600160401b0316610595565b348015610ca1575f80fd5b506105957f59911a6aa08a72fe3824aec4500dc42335c6d0702b6d5c5c72ceb265a0de930281565b348015610cd4575f80fd5b50610533610ce336600461573b565b61234e565b348015610cf3575f80fd5b50610533610d023660046153a5565b61239d565b348015610d12575f80fd5b50610533610d2136600461553e565b612549565b348015610d31575f80fd5b50610533610d4036600461556c565b612597565b348015610d50575f80fd5b50610595610d5f36600461556c565b5f9081526006602052604090205463ffffffff600160201b82048116918116919091031690565b348015610d91575f80fd5b5061061b610da03660046155c1565b6126bf565b348015610db0575f80fd5b506105336126f7565b348015610dc4575f80fd5b5061050a610dd336600461553e565b612717565b348015610de3575f80fd5b50610533610df236600461598e565b61274d565b348015610e02575f80fd5b5060035461061b906001600160a01b031681565b348015610e21575f80fd5b50600954604080516001600160401b03600160401b8404811682528084166020830152600160801b90930490921690820152606001610516565b348015610e66575f80fd5b50610533610e75366004615a1c565b61284c565b348015610e85575f80fd5b50610533610e94366004615a1c565b6128ae565b348015610ea4575f80fd5b50610533610eb336600461598e565b612906565b348015610ec3575f80fd5b506105955f81565b348015610ed6575f80fd5b50610533610ee53660046155c1565b6129c0565b348015610ef5575f80fd5b506105955f1981565b348015610f09575f80fd5b50610533610f183660046158b8565b6129f0565b348015610f28575f80fd5b506105957fb3e25b5404b87e5a838579cb5d7481d61ad96ee284d38ec1e97c07ba64e7f6fc81565b348015610f5b575f80fd5b50610533610f6a36600461556c565b612acc565b348015610f7a575f80fd5b5061050a612b1d565b348015610f8e575f80fd5b50610fa2610f9d36600461556c565b612b4d565b604080519889526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610516565b348015610fe8575f80fd5b50610533610ff7366004615a1c565b612ce1565b348015611007575f80fd5b5061053361101636600461556c565b612e2b565b348015611026575f80fd5b506105957f000000000000000000000000000000000000000000000000000000000000000081565b348015611059575f80fd5b50610533611068366004615a82565b612e62565b348015611078575f80fd5b50610875611087366004615ad2565b6130a3565b348015611097575f80fd5b506105956110a636600461556c565b6133bb565b3480156110b6575f80fd5b506105957f79dfcec784e591aafcf60db7db7b029a5c8b12aac4afd4e8c4eb740430405fa681565b3480156110e9575f80fd5b50600554610595565b3480156110fd575f80fd5b506105336133f9565b348015611111575f80fd5b5061053361112036600461553e565b61348c565b348015611130575f80fd5b506105957f000000000000000000000000000000000000000000000000000000000000000081565b348015611163575f80fd5b506105955f5481565b348015611177575f80fd5b5061061b7f000000000000000000000000000000000000000000000000000000000000000081565b3480156111aa575f80fd5b5061061b7f000000000000000000000000000000000000000000000000000000000000000081565b3480156111dd575f80fd5b506105336111ec36600461564c565b6134bc565b3480156111fc575f80fd5b5060045461050a90600160a01b900460ff1681565b34801561121c575f80fd5b506105957f0ce23c3e399818cfee81a7ab0880f714e53d7672b08df0fa62f2843416e1ea0981565b34801561124f575f80fd5b506105336134fb565b348015611263575f80fd5b506105336112723660046153a5565b613512565b348015611282575f80fd5b5061053361129136600461556c565b613547565b3480156112a1575f80fd5b506105336112b0366004615b2d565b61357a565b3480156112c0575f80fd5b506001546112df906001600160801b0380821691600160801b90041682565b604080516001600160801b03938416815292909116602083015201610516565b34801561130a575f80fd5b506105336113193660046155c1565b6137ec565b61053361132c366004615b69565b61397e565b5f6001600160e01b03198216635a05180f60e01b1480611355575061135582613a91565b92915050565b7f2fc10cc8ae19568712f7a176fb4978616a610650813c9d05326c34abb62749c761138581613ac5565b61138d613acf565b50565b5f80516020615e828339815191526113a781613ac5565b60028311156113c95760405163b4fa3fb360e01b815260040160405180910390fd5b63ffffffff8211156113ee5760405163b4fa3fb360e01b815260040160405180910390fd5b6113f784613b24565b5f84815260066020526040812090849003611410575f92505b8054600160e01b900460ff168414801561143757508054600160c01b900463ffffffff1683145b1561144257506114ec565b8054600160e01b900460ff16841461146b57805460ff60e01b1916600160e01b60ff8616021781555b8054600160c01b900463ffffffff16831461149d57805463ffffffff60c01b1916600160c01b63ffffffff8516021781555b604080518581526020810185905286917ff92eb109ce5b449e9b121c352c6aeb4319538a90738cb95d84f08e41274e92d2910160405180910390a26114e2855f613b5a565b6114ea613e25565b505b50505050565b6114fa613e65565b5f8061150886848787613e8d565b60035460405163546da24f60e01b8152600481018f9052602481018390529294509092506001600160a01b03169063546da24f90604401602060405180830381865afa15801561155a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061157e9190615be5565b34101561159e5760405163162908e360e11b815260040160405180910390fd5b600354604051630b96641560e21b8152336004820152602481018490526001600160a01b0390911690632e5990549034906044015f604051808303818588803b1580156115e9575f80fd5b505af11580156115fb573d5f803e3d5ffd5b505050505061160e828c8c8c8c8c614295565b5050505050505050505050565b60405162d74f0b60e71b815260066004820152602481018390526001600160a01b038216604482015273479244bac2ae1d64841753307a0552183642c12190636ba78580906064015b5f6040518083038186803b15801561167a575f80fd5b505af415801561168c573d5f803e3d5ffd5b505050505050565b5f8281525f80516020615ea283398151915260205260409020600101546116ba81613ac5565b6114ec83836143f1565b6001600160a01b03811633146116ed5760405163334bd91960e11b815260040160405180910390fd5b6116f78282614446565b505050565b7fe85fdec10fe0f93d0792364051df7c3d73e37c17b3a954bffe593960e3cd301261172681613ac5565b6003546001600160a01b03165f5b838110156114ea575f85858381811061174f5761174f615bfc565b90506020020135905061176181613b24565b60405163ead42a6960e01b8152600481018290525f906001600160a01b0385169063ead42a6990602401602060405180830381865afa1580156117a6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117ca9190615be5565b6040516325d9153960e11b8152600481018490529091506001600160a01b03851690634bb22a72906024015f604051808303815f87803b15801561180c575f80fd5b505af115801561181e573d5f803e3d5ffd5b505050505f8111156118b45760405163449add1b60e01b8152600481018390526001600160a01b0385169063449add1b906024015f604051808303815f87803b158015611869575f80fd5b505af115801561187b573d5f803e3d5ffd5b5050505061188a826001613b5a565b60405182907ef4fe19c0404d2fbb58da6f646c0a3ee5a6994a034213bbd22b072ed1ca5c27905f90a25b5050600101611734565b7f59911a6aa08a72fe3824aec4500dc42335c6d0702b6d5c5c72ceb265a0de93026118e881613ac5565b6118f184613b24565b815f036119115760405163162908e360e11b815260040160405180910390fd5b6003546001600160a01b031663dcab7f838561194d7f000000000000000000000000000000000000000000000000000000000000000086615c24565b6040516001600160e01b031960e085901b168152600481019290925260248201526044015f604051808303815f87803b158015611988575f80fd5b505af115801561199a573d5f803e3d5ffd5b505060408051868152602081018690528793507feec4d6dbe34149c6728a9638eca869d0e5a7fcd85c7a96178f7e9780b4b7fe4b92500160405180910390a26114ec846001613b5a565b5f600881608085901b84175b815260208101919091526040015f205460ff169392505050565b611a1385614492565b600380545f878152600660205260409081902090920154915163cc810cb960e01b81526001600160a01b039182169263cc810cb992611a60928a928a921690899089908990600401615c67565b5f604051808303815f87803b158015611a77575f80fd5b505af1158015611a89573d5f803e3d5ffd5b505050506114ea856001613b5a565b611aa183613b24565b600354604051637bcb377f60e11b81526001600160a01b039091169063f7966efe90611ad7903390879087908790600401615ca7565b5f604051808303815f87803b158015611aee575f80fd5b505af1158015611b00573d5f803e3d5ffd5b505050506116f7836001613b5a565b7f59911a6aa08a72fe3824aec4500dc42335c6d0702b6d5c5c72ceb265a0de9302611b3981613ac5565b611b4283613b24565b60035460405163d963ae5560e01b815260048101859052602481018490526001600160a01b039091169063d963ae55906044015f604051808303815f87803b158015611b8c575f80fd5b505af1158015611b9e573d5f803e3d5ffd5b50505050827f1e7ebd3c5f4de9502000b6f7e6e7cf5d4ecb27d6fe1778e43fb9d1d0ca87d0e783604051611bd491815260200190565b60405180910390a26116f7836001613b5a565b600954606090600160c01b90046001600160401b03168084101580611c0a575082155b15611c24575050604080515f815260208101909152611355565b5f611c2f8583615d23565b8410611c4457611c3f8583615d23565b611c46565b835b9050806001600160401b03811115611c6057611c60615d0f565b604051908082528060200260200182016040528015611c89578160200160208202803683370190505b5092505f5b8351811015611cc657611ca18187615c24565b848281518110611cb357611cb3615bfc565b6020908102919091010152600101611c8e565b50505092915050565b606080611cdd858585614520565b611ce68361455d565b9092509050611cf985858585855f614603565b935093915050565b611d0a85614492565b600380545f87815260066020526040908190209092015491516370903eb960e01b81526001600160a01b03918216926370903eb992611a60928a928a921690899089908990600401615c67565b604051631f46d51760e01b8152600660048201526024810182905273479244bac2ae1d64841753307a0552183642c12190631f46d517906044015b5f6040518083038186803b158015611da8575f80fd5b505af41580156114ea573d5f803e3d5ffd5b611dc2614691565b73a0513a7e28dac4c31b5ccbf9a5f474b7592579856352d8bfc26040518163ffffffff1660e01b81526004015f6040518083038186803b158015611e04575f80fd5b505af41580156114ec573d5f803e3d5ffd5b5f600781608085901b84176119f0565b611e2f81613b24565b600354604051630b96641560e21b8152336004820152602481018390526001600160a01b0390911690632e5990549034906044015f604051808303818588803b158015611e7a575f80fd5b505af1158015611e8c573d5f803e3d5ffd5b505050505061138d816001613b5a565b5f611ec57fe8b012900cb200ee5dfc3b895a32791b67d12891b09f117814f167a237783a025490565b905090565b6060611ed7848484614520565b611ee28484846146ba565b949350505050565b611ef2614691565b604051635c654ad960e01b81526001600160a01b03831660048201526024810182905273a0513a7e28dac4c31b5ccbf9a5f474b75925798590635c654ad990604401611664565b6001600160801b0381165f90815260026020526040812054611355565b611f5e613e65565b5f80611f6c87848787613e8d565b915091505f60035f9054906101000a90046001600160a01b03166001600160a01b031663546da24f8e846040518363ffffffff1660e01b8152600401611fbc929190918252602082015260400190565b602060405180830381865afa158015611fd7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ffb9190615be5565b60035460405163263f69e960e11b81529192506001600160a01b031690634c7ed3d290612032903390879086908d90600401615ca7565b5f604051808303815f87803b158015612049575f80fd5b505af115801561205b573d5f803e3d5ffd5b5050505061206d838e8e8e8e8e614295565b50505050505050505050505050565b60405163612b8c3b60e11b8152600660048201526024810182905273479244bac2ae1d64841753307a0552183642c1219063c257187690604401611d92565b60405163c990450f60e01b8152600660048201526024810182905273479244bac2ae1d64841753307a0552183642c1219063c990450f90604401611d92565b61210381614755565b6003546040516315b5c47760e01b8152600481018390526001600160a01b03909116906315b5c4779034906024015f604051808303818588803b158015612148575f80fd5b505af115801561215a573d5f803e3d5ffd5b505050505061216a816001613b5a565b807fb1858b4c2ab6242521725a8f7350a6cb22ad4ecae009c9b63ef114baffb054be3460405161219c91815260200190565b60405180910390a250565b6040516351fbfaa560e11b81526001600482015260066024820152604481018290525f908190736fb7af5addb044182caa27db35e394ed3451a4da9063a3f7f54a906064016040805180830381865af4158015612206573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061222a9190615d36565b9094909350915050565b6001600160a01b03811661225b5760405163111164f760e21b815260040160405180910390fd5b6040516317a9a2c160e11b815260066004820152602481018390526001600160a01b038216604482015273479244bac2ae1d64841753307a0552183642c12190632f53458290606401611664565b6122b1614691565b6040516340cea66360e11b81526001600160a01b03831660048201526024810182905273a0513a7e28dac4c31b5ccbf9a5f474b7592579859063819d4cc690604401611664565b61230185614492565b600380545f878152600660205260409081902090920154915163f939122360e01b81526001600160a01b039182169263f939122392611a60928a928a921690899089908990600401615c67565b612356614691565b604051638980f11f60e01b81526001600160a01b03831660048201526024810182905273a0513a7e28dac4c31b5ccbf9a5f474b75925798590638980f11f90604401611664565b6123a683614755565b5f8381526006602052604090208054600160401b900463ffffffff168310156123e257604051635caf530f60e11b815260040160405180910390fd5b80545f906123fb9086908690869063ffffffff166147c8565b90505f835f5461240b9190615d58565b9050801561249e57600354604051632207e80f60e21b815260048101889052602481018390526001600160a01b039091169063881fa03c906044015f604051808303815f87803b15801561245d575f80fd5b505af115801561246f573d5f803e3d5ffd5b50506040518892507f1cbb8dafbedbdf4f813a8ed1f50d871def63e1104f8729b677af57905eda90f691505f90a25b825463ffffffff191663ffffffff831617835560405182815286907fdd01838a366ae4dc9a86e1922512c0716abebc9a440baae0e22d2dec578223f09060200160405180910390a2825463ffffffff60601b1916600160601b63ffffffff84160217835560405182815286907f947f955eec7e1f626bee3afd2aa47b5de04ddcdd3fe78dc8838213015ef58dfd9060200160405180910390a2612541865f613b5a565b61168c613e25565b604051632a5a705b60e01b815260066004820152602481018390526001600160a01b038216604482015273479244bac2ae1d64841753307a0552183642c12190632a5a705b90606401611664565b5f80516020615e828339815191526125ae81613ac5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638fcb4e5b60035f9054906101000a90046001600160a01b03166001600160a01b0316630d43e8ad6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561262d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126519190615d6f565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018590526044016020604051808303815f875af115801561269b573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116f79190615be5565b5f8281527fc1f6fe24621ce81ec5827caf0253cadb74709b061630e6b55e82371705932000602081905260408220611ee29084614952565b5f80516020615e8283398151915261270e81613ac5565b61138d5f61495d565b5f9182525f80516020615ea2833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b612755613e65565b61275e87614755565b6003546040516358a46db560e11b815260048101899052602481018890525f916001600160a01b03169063b148db6a90604401602060405180830381865afa1580156127ac573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906127d09190615be5565b60035460405163263f69e960e11b81529192506001600160a01b031690634c7ed3d2906128079033908c9086908890600401615ca7565b5f604051808303815f87803b15801561281e575f80fd5b505af1158015612830573d5f803e3d5ffd5b50505050612842888888888888614295565b5050505050505050565b5f80516020615e8283398151915261286381613ac5565b5f612870868686866149d9565b90505f5b818110156128a5576008810287013560c01c6010820286013560801c61289b82825f614a4c565b5050600101612874565b5061168c613e25565b5f80516020615e828339815191526128c581613ac5565b5f6128d2868686866149d9565b90505f5b818110156128a5576008810287013560c01c6010820286013560801c6128fc8282614b6d565b50506001016128d6565b61290e613e65565b61291787614755565b600354604051632884698160e01b815260048101899052602481018890525f916001600160a01b031690632884698190604401602060405180830381865afa158015612965573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129899190615be5565b600354604051637bcb377f60e11b81529192506001600160a01b03169063f7966efe906128079033908c9086908890600401615ca7565b5f80516020615e828339815191526129d781613ac5565b604051630280e1e560e61b815260040160405180910390fd5b6129f8613e65565b5f80612a0687848787613e8d565b915091505f60035f9054906101000a90046001600160a01b03166001600160a01b03166313d1234b8e846040518363ffffffff1660e01b8152600401612a56929190918252602082015260400190565b602060405180830381865afa158015612a71573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a959190615be5565b600354604051637bcb377f60e11b81529192506001600160a01b03169063f7966efe90612032903390879086908d90600401615ca7565b612ad7816001613b5a565b604051633f58c75d60e21b8152600160048201526006602482015260448101829052736fb7af5addb044182caa27db35e394ed3451a4da9063fd631d7490606401611d92565b5f612b467fe8b012900cb200ee5dfc3b895a32791b67d12891b09f117814f167a237783a025490565b4210905090565b5f818152600660205260408082206003549151634e28b08160e11b815260048101859052839283928392839283928392839283916001600160a01b0390911690639c51610290602401602060405180830381865afa158015612bb1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612bd59190615be5565b82549091505f90612bf59063ffffffff600160401b820481169116615d8a565b63ffffffff1690508082118015612c1757508254600160e01b900460ff166002145b15612c5257825460029b50612c4b9063ffffffff600160c01b8204811691600160201b810482169082160316849003614cdf565b9950612c9e565b80821115612c8057825460029b5063ffffffff600160201b8204811691811691909103168290039950612c9e565b8254600160e01b810460ff169b50600160c01b900463ffffffff1699505b50508054600190910154989a97995063ffffffff600160801b82048116995f998a99509082169750600160401b830482169650600160a01b909204169350915050565b5f80516020615e82833981519152612cf881613ac5565b5f612d05868686866149d9565b90505f5b818110156128a5576008810287013560c01c6010820286013560801c612d2e82613b24565b5f8281526006602052604090208054600160601b900463ffffffff168210612d69576040516388e1a28160e01b815260040160405180910390fd5b8054600160401b900463ffffffff16821015612d98576040516388e1a28160e01b815260040160405180910390fd5b805463ffffffff60601b1916600160601b63ffffffff84160217815560405182815283907f947f955eec7e1f626bee3afd2aa47b5de04ddcdd3fe78dc8838213015ef58dfd9060200160405180910390a260405183907fe5725d045d5c47bd1483feba445e395dc8647486963e6d54aad9ed03ff7d6ce6905f90a2612e1d835f613b5a565b505050806001019050612d09565b7f79dfcec784e591aafcf60db7db7b029a5c8b12aac4afd4e8c4eb740430405fa6612e5581613ac5565b612e5e8261495d565b5050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03165f81158015612ea65750825b90505f826001600160401b03166001148015612ec15750303b155b905081158015612ecf575080155b15612eed5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315612f1757845460ff60401b1916600160401b1785555b6001600160a01b038916612f3e576040516368ea2bc160e01b815260040160405180910390fd5b6001600160a01b038616612f6557604051633ef39b8160e01b815260040160405180910390fd5b612f6d614cf4565b600380546001600160a01b03808c166001600160a01b03199283161790925560048054928b1692909116919091179055612fa75f876143f1565b5061303e5f80516020615e828339815191527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ef6c064c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613015573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130399190615d6f565b6143f1565b506130488761495d565b6130525f19614cfc565b831561309857845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050505050565b6060805f80516020615e828339815191526130bd81613ac5565b6130c68661455d565b909350915085156133b2576001546001600160801b03165f908152600260205260408120548791905b801561332d575f6131008260c01c90565b6001600160401b039081165f8181526006602052604081208054929450608086901c90931692916131489061314290600160a01b900463ffffffff1685614cdf565b88614cdf565b90508087118061315757508281145b15613198576001808301805463ffffffff600160201b80830482168890039091160267ffffffff000000001990911617905561319290614d4b565b506131f6565b60018201805463ffffffff600160201b808304821685900382160267ffffffff0000000019909216919091179091556131d790869083860390614daa16565b6001546001600160801b03165f90815260026020526040902081905594505b805f03613206575050505061330d565b8154613224908590600160401b900463ffffffff16838d8d8b614603565b815463ffffffff600160401b80830482168401821681026bffffffff000000000000000019909316929092178085556040519290041681529581019584907f24eb1c9e765ba41accf9437300ea91ece5ed3f897ec3cdee0e9debd7fe309b789060200160405180910390a2815463ffffffff600160a01b808304821684900391821690810263ffffffff60a01b199093169290921784556040519182529085907ff9109091b368cedad2edff45414eef892edd6b4fe80084bd590aa8f8def8ed339060200160405180910390a28188039750875f0361330757505050505061332d565b50505050505b506001546001600160801b03165f908152600260205260409020546130ef565b5087811461334e57604051630bc9ea5560e21b815260040160405180910390fd5b600980546001600160401b03600160801b80830482168c9003821602808216828416178c0190911667ffffffffffffffff1990911677ffffffffffffffff0000000000000000ffffffffffffffff19909216919091171790556133af613e25565b50505b50935093915050565b5f8181527fc1f6fe24621ce81ec5827caf0253cadb74709b061630e6b55e823717059320006020819052604082206133f290614dcf565b9392505050565b7f79dfcec784e591aafcf60db7db7b029a5c8b12aac4afd4e8c4eb740430405fa661342381613ac5565b600454600160a01b900460ff161561344e5760405163ef65161f60e01b815260040160405180910390fd5b6004805460ff60a01b1916600160a01b1790556040517fe5eb57aa4d841adeece4ac87bd294965df4a894f0aa24db4a4a55a39ab101d6e905f90a150565b5f8281525f80516020615ea283398151915260205260409020600101546134b281613ac5565b6114ec8383614446565b6134c583613b24565b60035460405163263f69e960e11b81526001600160a01b0390911690634c7ed3d290611ad7903390879087908790600401615ca7565b5f80516020615e8283398151915261138d81613ac5565b5f80516020615e8283398151915261352981613ac5565b61353584846001614a4c565b61353f8483614b6d565b6114ec613e25565b7f139c2898040ef16910dc9f44dc697df79363da767d8bc92f2e310312b816e46d61357181613ac5565b612e5e82614cfc565b7f0ce23c3e399818cfee81a7ab0880f714e53d7672b08df0fa62f2843416e1ea096135a481613ac5565b6135ad85613b24565b5f8581526006602052604090208054600160401b900463ffffffff1685106135e857604051635caf530f60e11b815260040160405180910390fd5b608086901b85175f8181526007602052604090205460ff161561361e57604051639fbfc58960e01b815260040160405180910390fd5b5f818152600760205260408120805460ff19166001908117909155835463ffffffff600160201b808304821684019091160267ffffffff000000001990911617845561366d90899089906146ba565b9050877f9bc54857932b6f10bb750fdad91f736b82dd4de202ed5c2f9f076773bb5b3fb78888846040516136a393929190615da7565b60405180910390a28415613764575f8281526008602052604090205460ff16156136f1577f00000000000000000000000000000000000000000000000000000000000000008601955061370a565b5f828152600860205260409020805460ff191660011790555b60035460405163449add1b60e01b8152600481018a90526001600160a01b039091169063449add1b906024015f604051808303815f87803b15801561374d575f80fd5b505af115801561375f573d5f803e3d5ffd5b505050505b856801bc16d674ec80000011156137e15760035460405163e5220e3f60e01b8152600481018a90526801bc16d674ec80000088900360248201526001600160a01b039091169063e5220e3f906044015f604051808303815f87803b1580156137ca575f80fd5b505af11580156137dc573d5f803e3d5ffd5b505050505b612842886001613b5a565b7f0ce23c3e399818cfee81a7ab0880f714e53d7672b08df0fa62f2843416e1ea0961381681613ac5565b61381f83613b24565b5f8381526006602052604090208054600160401b900463ffffffff16831061385a57604051635caf530f60e11b815260040160405180910390fd5b608084901b83175f8181526008602052604090205460ff161561389057604051639fbfc58960e01b815260040160405180910390fd5b5f818152600860205260408120805460ff191660019081179091556138b890879087906146ba565b9050857f0d541877c9d326d4c8ccfd72e6719f06dccb62a28292ae647e923441bcaad5c086836040516138ec929190615dc5565b60405180910390a260035460405163e5220e3f60e01b8152600481018890527f000000000000000000000000000000000000000000000000000000000000000060248201526001600160a01b039091169063e5220e3f906044015f604051808303815f87803b15801561395d575f80fd5b505af115801561396f573d5f803e3d5ffd5b5050505061168c866001613b5a565b613986613e65565b61398f86614755565b6003546040516358a46db560e11b815260048101889052602481018790526001600160a01b039091169063b148db6a90604401602060405180830381865afa1580156139dd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613a019190615be5565b341015613a215760405163162908e360e11b815260040160405180910390fd5b600354604051630b96641560e21b8152336004820152602481018890526001600160a01b0390911690632e5990549034906044015f604051808303818588803b158015613a6c575f80fd5b505af1158015613a7e573d5f803e3d5ffd5b505050505061168c868686868686614295565b5f6001600160e01b03198216637965db0b60e01b148061135557506301ffc9a760e01b6001600160e01b0319831614611355565b61138d8133614dd8565b613ad7614e15565b427fe8b012900cb200ee5dfc3b895a32791b67d12891b09f117814f167a237783a02556040517f62451d457bc659158be6e6247f56ec1df424a5c7597f71c20c2bc44e0965c8f9905f90a1565b600954600160c01b90046001600160401b0316811015613b415750565b604051633ed893db60e21b815260040160405180910390fd5b5f8281526006602052604081208054909190613b8c9063ffffffff600160401b8204811691600160601b900416615d8a565b6003546040516301a5e9e360e01b81526004810187905263ffffffff9290921692505f916001600160a01b03909116906301a5e9e390602401602060405180830381865afa158015613be0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613c049190615be5565b83549091505f90613c249063ffffffff600160401b820481169116615d8a565b63ffffffff169050808210613c3b575f9250613c70565b8354613c569063ffffffff600160601b820481169116615d8a565b63ffffffff16821115613c7057613c6d8282615d23565b92505b508254600160801b900463ffffffff1615801590613c8d57505f82115b15613c96575f91505b8254600160e01b900460ff1615801590613caf57505f82115b15613d0757825463ffffffff600160201b82048116600160401b8304821603811691613d0391600160c01b909104168210613cea575f613cfd565b8454600160c01b900463ffffffff168290035b84614cdf565b9250505b8254600160a01b900463ffffffff1682146114ea5782546009805467ffffffffffffffff60801b198116600160a01b9384900463ffffffff908116600160801b938490046001600160401b039081169190910388011690920217909155845463ffffffff60a01b191690841690910217835560405182815285907ff9109091b368cedad2edff45414eef892edd6b4fe80084bd590aa8f8def8ed339060200160405180910390a28315613dbc57613dbc613e25565b604051633f58c75d60e21b8152600160048201526006602482015260448101869052736fb7af5addb044182caa27db35e394ed3451a4da9063fd631d74906064015f6040518083038186803b158015613e13575f80fd5b505af4158015613098573d5f803e3d5ffd5b60058054600101908190556040519081527f7220970e1f1f12864ecccd8942690a837c7a8dd45d158cb891eb45a8a69134aa9060200160405180910390a1565b613e6d612b1d565b15613e8b57604051630286f07360e31b815260040160405180910390fd5b565b6004545f908190600160a01b900460ff16613ed657821580613eb857506004546001600160a01b0316155b15613ed65760405163084a55b960e41b815260040160405180910390fd5b600954600160c01b90046001600160401b03165f8181526006602090815260408220929450613f0790890189615ddd565b6001600160a01b031614613f2757613f226020880188615ddd565b613f29565b335b6001820180546001600160a01b0392909216600160401b027fffffffff0000000000000000000000000000000000000000ffffffffffffffff9092169190911790555f613f7c6040890160208a01615ddd565b6001600160a01b031614613f9f57613f9a6040880160208901615ddd565b613fa1565b335b6003820180546001600160a01b0319166001600160a01b0392909216919091179055613fd36060880160408901615df8565b1561400757613fe86060880160408901615df8565b600482018054911515600160a01b0260ff60a01b199092169190911790555b6009805460016001600160401b03600160c01b80840482168301909116026001600160c01b03909216919091179091556003820154908201546040516001600160a01b0392831692600160401b9092049091169085907ff35982c84fdc94f58d48e901c54c615804cf7d7939b9b8f76ce4d459354e6363905f90a46001600160a01b038616156140c7576040516001600160a01b0387169084907f67334334c388385e5f244703f8a8b28b7f4ffe52909130aca69bc62a8e27f09a905f90a35b83158015906140e057506004546001600160a01b031615155b15614214576004805460405163076123b360e21b81526001600160a01b0390911691631d848ecc916141189133918a918a9101615e11565b5f604051808303815f87803b15801561412f575f80fd5b505af1158015614141573d5f803e3d5ffd5b5050600480546040805163464b6c0d60e11b815290516001600160a01b039092169450638c96d81a935080830192602092918290030181865afa15801561418a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906141ae9190615be5565b60035460405163b2d03e4d60e01b815260048101869052602481018390529193506001600160a01b03169063b2d03e4d906044015f604051808303815f87803b1580156141f9575f80fd5b505af115801561420b573d5f803e3d5ffd5b5050505061428b565b60035f9054906101000a90046001600160a01b03166001600160a01b031663443fbfef6040518163ffffffff1660e01b8152600401602060405180830381865afa158015614264573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906142889190615be5565b91505b5094509492505050565b5f868152600660205260409020805460045463ffffffff90911690600160a01b900460ff161580156142e857507f0000000000000000000000000000000000000000000000000000000000000000878201115b15614306576040516347f1bdb360e11b815260040160405180910390fd5b61431588828989898989614e3a565b50815463ffffffff600160601b8204811691160361439057815463ffffffff600160601b80830482168a018216810263ffffffff60601b199093169290921780855560405192900416815288907f947f955eec7e1f626bee3afd2aa47b5de04ddcdd3fe78dc8838213015ef58dfd9060200160405180910390a25b815463ffffffff80821689011663ffffffff199091168117835560405190815288907fdd01838a366ae4dc9a86e1922512c0716abebc9a440baae0e22d2dec578223f09060200160405180910390a26143e9885f613b5a565b612842613e25565b5f7fc1f6fe24621ce81ec5827caf0253cadb74709b061630e6b55e823717059320008161441e8585614fce565b90508015611ee2575f85815260208390526040902061443d9085615076565b50949350505050565b5f7fc1f6fe24621ce81ec5827caf0253cadb74709b061630e6b55e8237170593200081614473858561508a565b90508015611ee2575f85815260208390526040902061443d9085615103565b5f8181526006602052604090206001810154600160401b90046001600160a01b03166144d157604051633ed893db60e21b815260040160405180910390fd5b6001810154600160401b90046001600160a01b03163314801590614502575060038101546001600160a01b03163314155b15612e5e5760405163743a3f7960e11b815260040160405180910390fd5b5f8381526006602052604090205463ffffffff1661453e8284615c24565b11156116f757604051635caf530f60e11b815260040160405180910390fd5b60608061456b603084615d58565b6001600160401b0381111561458257614582615d0f565b6040519080825280601f01601f1916602001820160405280156145ac576020820181803683370190505b506145b8606085615d58565b6001600160401b038111156145cf576145cf615d0f565b6040519080825280601f01601f1916602001820160405280156145f9576020820181803683370190505b5091509150915091565b5f805b85811015612842576146448861461c838a615c24565b7f059e9c54cf92ba46cc39c6b4acd51d5116e9d49fabee6193530ea918b54be94a9190615117565b60018082015460801c85840160308181028a019081019290925283546020928301526002840154606091820289019283015260038401546040830152600484015491015290925001614606565b613e8b7fb3e25b5404b87e5a838579cb5d7481d61ad96ee284d38ec1e97c07ba64e7f6fc613ac5565b60605f6146c8603084615d58565b6001600160401b038111156146df576146df615d0f565b6040519080825280601f01601f191660200182016040528015614709576020820181803683370190505b5091505f5b8381101561474c576147248661461c8388615c24565b9150603081026020840101600183015460801c6010820152825481525060018101905061470e565b50509392505050565b5f8181526006602052604090206001810154600160401b90046001600160a01b031661479457604051633ed893db60e21b815260040160405180910390fd5b6001810154600160401b90046001600160a01b03163314612e5e5760405163743a3f7960e11b815260040160405180910390fd5b5f8215806147de5750816147dc8486615c24565b115b806147ec575063ffffffff82115b1561480a5760405163575697ff60e01b815260040160405180910390fd5b604080516030808252606082019092525f91829182918291906020820181803683370190505090508787015b888111156149445761486c7f059e9c54cf92ba46cc39c6b4acd51d5116e9d49fabee6193530ea918b54be94a8b5f198401615117565b9450600185015460801c603083015284546020830152868110156148de576148b87f059e9c54cf92ba46cc39c6b4acd51d5116e9d49fabee6193530ea918b54be94a8b5f198a01615117565b93505f92505b60058310156148da5782840154838601556001830192506148be565b8394505b5f92505b60058310156148fb575f838601556001830192506148e2565b600187039650600181039050897fea4b75aaf57196f73d338cadf79ecd0a437902e2dd0d2c4c2cf3ea71b8ab27b9836040516149379190615729565b60405180910390a2614836565b509498975050505050505050565b5f6133f2838361514e565b7f000000000000000000000000000000000000000000000000000000000000000081111561499e5760405163b4fa3fb360e01b815260040160405180910390fd5b5f8190556040518181527f699ec9c671aad1f3dcc15e571375584a1d6fb7176afd545d14467fd31477e98e906020015b60405180910390a150565b5f6149e5600885615e47565b6149f0601084615e47565b141580614a065750614a03600885615e5a565b15155b80614a1a5750614a17601083615e5a565b15155b15614a385760405163319c9a2160e21b815260040160405180910390fd5b614a43600885615e47565b95945050505050565b614a5583613b24565b5f838152600660205260409020600181015463ffffffff168303614a795750505050565b8054600160401b900463ffffffff16831115614aa85760405163cc11217f60e01b815260040160405180910390fd5b81158015614abf5750600181015463ffffffff1683105b15614add576040516371a4bd1560e01b815260040160405180910390fd5b6001810180546009805463ffffffff9283166001600160401b03600160401b808404821692909203890116026fffffffffffffffff000000000000000019909116179055815490851663ffffffff1990911617905560405183815284907f0f67960648751434ae86bf350db61194f387fda387e7f568b0ccd0ae0c2201669060200160405180910390a250505050565b614b7682613b24565b5f8281526006602052604090208054600160801b900463ffffffff168203614b9d57505050565b6001810154815463ffffffff918216600160401b90910482160316821115614bd857604051636af5e8d960e11b815260040160405180910390fd5b805463ffffffff60801b1916600160801b63ffffffff84160217815560405182815283907fb4f5879eca27b32881cec7907d1310378e9b4c79927062fb7d4a321434b5b04a9060200160405180910390a25f82118015614c4557508054600160a01b900463ffffffff1615155b15614cd55780546009805467ffffffffffffffff60801b198116600160a01b90930463ffffffff16600160801b918290046001600160401b03908116919091031602919091179055805463ffffffff60a01b191681556040515f815283907ff9109091b368cedad2edff45414eef892edd6b4fe80084bd590aa8f8def8ed339060200160405180910390a2505050565b6116f7835f613b5a565b5f818310614ced57816133f2565b5090919050565b613e8b615174565b614d04613e65565b805f03614d245760405163ad58bfc760e01b815260040160405180910390fd5b5f5f198203614d3557505f19614d42565b614d3f8242615c24565b90505b612e5e816151bd565b80546001600160801b03165f90815260018201602052604090205480614d84576040516363c3654960e01b815260040160405180910390fd5b81546fffffffffffffffffffffffffffffffff19166001600160801b0382161790915590565b60801b67ffffffffffffffff60801b1667ffffffffffffffff60801b19919091161790565b5f611355825490565b614de28282612717565b612e5e5760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440160405180910390fd5b614e1d612b1d565b613e8b5760405163b047186b60e01b815260040160405180910390fd5b5f851580614e54575063ffffffff614e528789615c24565b115b15614e725760405163575697ff60e01b815260040160405180910390fd5b6030860284141580614e875750606086028214155b15614ea55760405163251f56a160e21b815260040160405180910390fd5b604080516030808252606082019092525f91829182916020820181803683370190505090505f5b89811015614fbe57614eff7f059e9c54cf92ba46cc39c6b4acd51d5116e9d49fabee6193530ea918b54be94a8d8d615117565b60308281028b0160108101359185018290523560208501819052919550171592508215614f3f57604051630f35a7eb60e21b815260040160405180910390fd5b60208201518455603082015160801b60018501556060810287018035600286015560208101356003860155604081013560048601555060018101905060018b019a508b7fc77a17d6b857abe6d6e6c37301621bc72c4dd52fa8830fb54dfa715c04911a8983604051614fb19190615729565b60405180910390a2614ecc565b50989a9950505050505050505050565b5f5f80516020615ea2833981519152614fe78484612717565b615066575f848152602082815260408083206001600160a01b03871684529091529020805460ff1916600117905561501c3390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001915050611355565b5f915050611355565b5092915050565b5f6133f2836001600160a01b038416615258565b5f5f80516020615ea28339815191526150a38484612717565b15615066575f848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a46001915050611355565b5f6133f2836001600160a01b0384166152a4565b6040805160208082019590955280820193909352606080840192909252805180840390920182526080909201909152805191012090565b5f825f01828154811061516357615163615bfc565b905f5260205f200154905092915050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16613e8b57604051631afcd79f60e31b815260040160405180910390fd5b6151e67fe8b012900cb200ee5dfc3b895a32791b67d12891b09f117814f167a237783a02829055565b5f19810361521f576040515f1981527f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e906020016149ce565b7f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e61524a4283615d23565b6040519081526020016149ce565b5f81815260018301602052604081205461529d57508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155611355565b505f611355565b5f8181526001830160205260408120548015615066575f6152c6600183615d23565b85549091505f906152d990600190615d23565b9050808214615338575f865f0182815481106152f7576152f7615bfc565b905f5260205f200154905080875f01848154811061531757615317615bfc565b5f918252602080832090910192909255918252600188019052604090208390555b855486908061534957615349615e6d565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050611355565b5f6020828403121561538e575f80fd5b81356001600160e01b0319811681146133f2575f80fd5b5f805f606084860312156153b7575f80fd5b505081359360208301359350604090920135919050565b5f8083601f8401126153de575f80fd5b5081356001600160401b038111156153f4575f80fd5b60208301915083602082850101111561540b575f80fd5b9250929050565b5f60608284031215615422575f80fd5b50919050565b5f8083601f840112615438575f80fd5b5081356001600160401b0381111561544e575f80fd5b6020830191508360208260051b850101111561540b575f80fd5b6001600160a01b038116811461138d575f80fd5b5f805f805f805f805f6101008a8c031215615495575f80fd5b8935985060208a01356001600160401b03808211156154b2575f80fd5b6154be8d838e016153ce565b909a50985060408c01359150808211156154d6575f80fd5b6154e28d838e016153ce565b90985096508691506154f78d60608e01615412565b955060c08c013591508082111561550c575f80fd5b506155198c828d01615428565b90945092505060e08a013561552d81615468565b809150509295985092959850929598565b5f806040838503121561554f575f80fd5b82359150602083013561556181615468565b809150509250929050565b5f6020828403121561557c575f80fd5b5035919050565b5f8060208385031215615594575f80fd5b82356001600160401b038111156155a9575f80fd5b6155b585828601615428565b90969095509350505050565b5f80604083850312156155d2575f80fd5b50508035926020909101359150565b5f805f805f608086880312156155f5575f80fd5b85359450602086013593506040860135925060608601356001600160401b0381111561561f575f80fd5b61562b88828901615428565b969995985093965092949392505050565b5f60a08284031215615422575f80fd5b5f805f60e0848603121561565e575f80fd5b8335925060208401359150615676856040860161563c565b90509250925092565b602080825282518282018190525f9190848201906040850190845b818110156156b65783518352928401929184019160010161569a565b50909695505050505050565b5f81518084525f5b818110156156e6576020818501810151868301820152016156ca565b505f602082860101526020601f19601f83011685010191505092915050565b604081525f61571760408301856156c2565b8281036020840152614a4381856156c2565b602081525f6133f260208301846156c2565b5f806040838503121561574c575f80fd5b823561575781615468565b946020939093013593505050565b5f60208284031215615775575f80fd5b81356001600160801b03811681146133f2575f80fd5b815163ffffffff1681526101e0810160208301516157b1602084018263ffffffff169052565b5060408301516157c9604084018263ffffffff169052565b5060608301516157e1606084018263ffffffff169052565b5060808301516157f9608084018263ffffffff169052565b5060a083015161581160a084018263ffffffff169052565b5060c083015161582960c084018263ffffffff169052565b5060e083015161583e60e084018260ff169052565b506101008381015163ffffffff908116918401919091526101208085015190911690830152610140808401516001600160a01b039081169184019190915261016080850151821690840152610180808501518216908401526101a080850151909116908301526101c0928301511515929091019190915290565b5f805f805f805f805f806101a08b8d0312156158d2575f80fd5b8a35995060208b01356001600160401b03808211156158ef575f80fd5b6158fb8e838f016153ce565b909b50995060408d0135915080821115615913575f80fd5b61591f8e838f016153ce565b90995097508791506159348e60608f01615412565b96506159438e60c08f0161563c565b95506101608d0135915080821115615959575f80fd5b506159668d828e01615428565b9094509250506101808b013561597b81615468565b809150509295989b9194979a5092959850565b5f805f805f805f610120888a0312156159a5575f80fd5b873596506020880135955060408801356001600160401b03808211156159c9575f80fd5b6159d58b838c016153ce565b909750955060608a01359150808211156159ed575f80fd5b506159fa8a828b016153ce565b9094509250615a0e90508960808a0161563c565b905092959891949750929550565b5f805f8060408587031215615a2f575f80fd5b84356001600160401b0380821115615a45575f80fd5b615a51888389016153ce565b90965094506020870135915080821115615a69575f80fd5b50615a76878288016153ce565b95989497509550505050565b5f805f8060808587031215615a95575f80fd5b8435615aa081615468565b93506020850135615ab081615468565b9250604085013591506060850135615ac781615468565b939692955090935050565b5f805f60408486031215615ae4575f80fd5b8335925060208401356001600160401b03811115615b00575f80fd5b615b0c868287016153ce565b9497909650939450505050565b80358015158114615b28575f80fd5b919050565b5f805f8060808587031215615b40575f80fd5b843593506020850135925060408501359150615b5e60608601615b19565b905092959194509250565b5f805f805f8060808789031215615b7e575f80fd5b863595506020870135945060408701356001600160401b0380821115615ba2575f80fd5b615bae8a838b016153ce565b90965094506060890135915080821115615bc6575f80fd5b50615bd389828a016153ce565b979a9699509497509295939492505050565b5f60208284031215615bf5575f80fd5b5051919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561135557611355615c10565b8183525f6001600160fb1b03831115615c4e575f80fd5b8260051b80836020870137939093016020019392505050565b8681528560208201526001600160a01b038516604082015283606082015260a060808201525f615c9b60a083018486615c37565b98975050505050505050565b5f610100820190506001600160a01b03861682528460208301528360408301528235606083015260208301356080830152604083013560ff8116808214615cec575f80fd5b60a084015250606083013560c083015260809092013560e0909101529392505050565b634e487b7160e01b5f52604160045260245ffd5b8181038181111561135557611355615c10565b5f8060408385031215615d47575f80fd5b505080516020909101519092909150565b808202811582820484141761135557611355615c10565b5f60208284031215615d7f575f80fd5b81516133f281615468565b63ffffffff82811682821603908082111561506f5761506f615c10565b838152826020820152606060408201525f614a4360608301846156c2565b828152604060208201525f611ee260408301846156c2565b5f60208284031215615ded575f80fd5b81356133f281615468565b5f60208284031215615e08575f80fd5b6133f282615b19565b6001600160a01b0384168152604060208201525f614a43604083018486615c37565b634e487b7160e01b5f52601260045260245ffd5b5f82615e5557615e55615e33565b500490565b5f82615e6857615e68615e33565b500690565b634e487b7160e01b5f52603160045260245ffdfebb75b874360e0bfd87f964eadd8276d8efb7c942134fc329b513032d0803e0c602dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800a164736f6c6343000818000a636f6d6d756e6974792d6f6e636861696e2d76310000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000e2ef9536daaaebff5b1c130957ab3e80056b06d8
Deployed Bytecode
0x6080604052600436106104e7575f3560e01c80638b3ac71d11610283578063ba1557ae11610155578063dbba4b48116100c9578063f2e2ca6311610083578063f2e2ca6314611258578063f3f449c714611277578063f408b55114611296578063f617eecc146112b5578063f96d3952146112ff578063fe7ed3cd1461131e575f80fd5b8063dbba4b481461116c578063e00bfe501461119f578063e1aa105d146111d2578063e21a430b146111f1578063e7705db614611211578063e864299e14611244575f80fd5b8063cb17ed3e1161011a578063cb17ed3e146110ab578063d087d288146110de578063d3931457146110f2578063d547741f14611106578063d647791914611125578063d9df8c9214611158575f80fd5b8063ba1557ae14610ffc578063bdac46a21461101b578063be2030941461104e578063bee41b581461106d578063ca15c8731461108c575f80fd5b80639b3d1900116101f7578063acc446eb116101b1578063acc446eb14610efe578063acf1c94814610f1d578063b1520dc514610f50578063b187bd2614610f6f578063b3076c3c14610f83578063b643189b14610fdd575f80fd5b80639b3d190014610e7a5780639ec3c24c14610e99578063a217fddf14610eb8578063a2e080f114610ecb578063a302ee3814610eea578063a70c70e414610c72575f80fd5b806390c09bdb1161024857806390c09bdb14610da557806391d1485414610db9578063946654ad14610dd85780639624e83e14610df75780639abddf0914610e165780639b00c14614610e5b575f80fd5b80638b3ac71d14610ce85780638cabe95914610d075780638d7e401714610d265780638ec6902814610d455780639010d07c14610d86575f80fd5b80635097ef59116103bc5780636a5f2c4a1161033057806380231f15116102ea57806380231f1514610c14578063819d4cc614610c345780638409d4fe14610c535780638469cbd314610c725780638573e35114610c965780638980f11f14610cc9575f80fd5b80636a5f2c4a14610b515780636a6304cc14610b705780636bb1bfdf14610b8f5780636efe37a214610bae578063735dfa2814610bc157806375a401da14610bf5575f80fd5b8063589ff76c11610381578063589ff76c1461090757806359e25c121461091b5780635c654ad9146109475780635e169fb8146109665780635e2fb9081461098557806365c14dc7146109b6575f80fd5b80635097ef59146108835780635204281c146108a257806352d8bfc2146108c157806353433643146108d55780635358fbda146108f4575f80fd5b806337b12b5f1161045e5780633f214bb2116104185780633f214bb21461078657806340044801146107a557806347faf311146107c45780634baf13cc146107f75780634febc81b1461082a57806350388cb614610856575f80fd5b806337b12b5f146106a4578063388dd1d1146106c3578063389ed267146106e25780633dbe8b5a146107155780633df6c438146107345780633f04f0c814610753575f80fd5b80631b40b231116104af5780631b40b231146105a3578063248a9ca3146105c257806326a666e4146105fc5780632de03aa1146106335780632f2ff15d1461066657806336568abe14610685575f80fd5b806301ffc9a7146104eb578063046f7da21461051f57806308a679ad14610535578063157a039b1461055457806315dae03e14610567575b5f80fd5b3480156104f6575f80fd5b5061050a61050536600461537e565b611331565b60405190151581526020015b60405180910390f35b34801561052a575f80fd5b5061053361135b565b005b348015610540575f80fd5b5061053361054f3660046153a5565b611390565b61053361056236600461547c565b6114f2565b348015610572575f80fd5b507f636f6d6d756e6974792d6f6e636861696e2d76310000000000000000000000005b604051908152602001610516565b3480156105ae575f80fd5b506105336105bd36600461553e565b61161b565b3480156105cd575f80fd5b506105956105dc36600461556c565b5f9081525f80516020615ea2833981519152602052604090206001015490565b348015610607575f80fd5b5060045461061b906001600160a01b031681565b6040516001600160a01b039091168152602001610516565b34801561063e575f80fd5b506105957f2fc10cc8ae19568712f7a176fb4978616a610650813c9d05326c34abb62749c781565b348015610671575f80fd5b5061053361068036600461553e565b611694565b348015610690575f80fd5b5061053361069f36600461553e565b6116c4565b3480156106af575f80fd5b506105336106be366004615583565b6116fc565b3480156106ce575f80fd5b506105336106dd3660046153a5565b6118be565b3480156106ed575f80fd5b506105957f139c2898040ef16910dc9f44dc697df79363da767d8bc92f2e310312b816e46d81565b348015610720575f80fd5b5061050a61072f3660046155c1565b6119e4565b34801561073f575f80fd5b5061053361074e3660046155e1565b611a0a565b34801561075e575f80fd5b506105957fe85fdec10fe0f93d0792364051df7c3d73e37c17b3a954bffe593960e3cd301281565b348015610791575f80fd5b506105336107a036600461564c565b611a98565b3480156107b0575f80fd5b506105336107bf3660046155c1565b611b0f565b3480156107cf575f80fd5b506105957f000000000000000000000000000000000000000000000000000000000000000a81565b348015610802575f80fd5b506105957f000000000000000000000000000000000000000000000000016345785d8a000081565b348015610835575f80fd5b506108496108443660046155c1565b611be7565b604051610516919061567f565b348015610861575f80fd5b506108756108703660046153a5565b611ccf565b604051610516929190615705565b34801561088e575f80fd5b5061053361089d3660046155e1565b611d01565b3480156108ad575f80fd5b506105336108bc36600461556c565b611d57565b3480156108cc575f80fd5b50610533611dba565b3480156108e0575f80fd5b5061050a6108ef3660046155c1565b611e16565b61053361090236600461556c565b611e26565b348015610912575f80fd5b50610595611e9c565b348015610926575f80fd5b5061093a6109353660046153a5565b611eca565b6040516105169190615729565b348015610952575f80fd5b5061053361096136600461573b565b611eea565b348015610971575f80fd5b50610595610980366004615765565b611f39565b348015610990575f80fd5b5061050a61099f36600461556c565b600954600160c01b90046001600160401b03161190565b3480156109c1575f80fd5b50610b446109d036600461556c565b604080516101e0810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c0810191909152505f9081526006602090815260409182902082516101e081018452815463ffffffff8082168352600160201b808304821695840195909552600160401b808304821696840196909652600160601b820481166060840152600160801b820481166080840152600160a01b808304821660a0850152600160c01b8304821660c085015260ff600160e01b909304831660e085015260018501548083166101008601529586049091166101208401526001600160a01b0395909404851661014083015260028301548516610160830152600383015485166101808301526004909201549384166101a08201529190920490911615156101c082015290565b604051610516919061578b565b348015610b5c575f80fd5b50610533610b6b3660046158b8565b611f56565b348015610b7b575f80fd5b50610533610b8a36600461556c565b61207c565b348015610b9a575f80fd5b50610533610ba936600461556c565b6120bb565b610533610bbc36600461556c565b6120fa565b348015610bcc575f80fd5b50610be0610bdb36600461556c565b6121a7565b60408051928352602083019190915201610516565b348015610c00575f80fd5b50610533610c0f36600461553e565b612234565b348015610c1f575f80fd5b506105955f80516020615e8283398151915281565b348015610c3f575f80fd5b50610533610c4e36600461573b565b6122a9565b348015610c5e575f80fd5b50610533610c6d3660046155e1565b6122f8565b348015610c7d575f80fd5b50600954600160c01b90046001600160401b0316610595565b348015610ca1575f80fd5b506105957f59911a6aa08a72fe3824aec4500dc42335c6d0702b6d5c5c72ceb265a0de930281565b348015610cd4575f80fd5b50610533610ce336600461573b565b61234e565b348015610cf3575f80fd5b50610533610d023660046153a5565b61239d565b348015610d12575f80fd5b50610533610d2136600461553e565b612549565b348015610d31575f80fd5b50610533610d4036600461556c565b612597565b348015610d50575f80fd5b50610595610d5f36600461556c565b5f9081526006602052604090205463ffffffff600160201b82048116918116919091031690565b348015610d91575f80fd5b5061061b610da03660046155c1565b6126bf565b348015610db0575f80fd5b506105336126f7565b348015610dc4575f80fd5b5061050a610dd336600461553e565b612717565b348015610de3575f80fd5b50610533610df236600461598e565b61274d565b348015610e02575f80fd5b5060035461061b906001600160a01b031681565b348015610e21575f80fd5b50600954604080516001600160401b03600160401b8404811682528084166020830152600160801b90930490921690820152606001610516565b348015610e66575f80fd5b50610533610e75366004615a1c565b61284c565b348015610e85575f80fd5b50610533610e94366004615a1c565b6128ae565b348015610ea4575f80fd5b50610533610eb336600461598e565b612906565b348015610ec3575f80fd5b506105955f81565b348015610ed6575f80fd5b50610533610ee53660046155c1565b6129c0565b348015610ef5575f80fd5b506105955f1981565b348015610f09575f80fd5b50610533610f183660046158b8565b6129f0565b348015610f28575f80fd5b506105957fb3e25b5404b87e5a838579cb5d7481d61ad96ee284d38ec1e97c07ba64e7f6fc81565b348015610f5b575f80fd5b50610533610f6a36600461556c565b612acc565b348015610f7a575f80fd5b5061050a612b1d565b348015610f8e575f80fd5b50610fa2610f9d36600461556c565b612b4d565b604080519889526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610516565b348015610fe8575f80fd5b50610533610ff7366004615a1c565b612ce1565b348015611007575f80fd5b5061053361101636600461556c565b612e2b565b348015611026575f80fd5b506105957f000000000000000000000000000000000000000000000000016345785d8a000081565b348015611059575f80fd5b50610533611068366004615a82565b612e62565b348015611078575f80fd5b50610875611087366004615ad2565b6130a3565b348015611097575f80fd5b506105956110a636600461556c565b6133bb565b3480156110b6575f80fd5b506105957f79dfcec784e591aafcf60db7db7b029a5c8b12aac4afd4e8c4eb740430405fa681565b3480156110e9575f80fd5b50600554610595565b3480156110fd575f80fd5b506105336133f9565b348015611111575f80fd5b5061053361112036600461553e565b61348c565b348015611130575f80fd5b506105957f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b348015611163575f80fd5b506105955f5481565b348015611177575f80fd5b5061061b7f000000000000000000000000e2ef9536daaaebff5b1c130957ab3e80056b06d881565b3480156111aa575f80fd5b5061061b7f0000000000000000000000003508a952176b3c15387c97be809eaffb1982176a81565b3480156111dd575f80fd5b506105336111ec36600461564c565b6134bc565b3480156111fc575f80fd5b5060045461050a90600160a01b900460ff1681565b34801561121c575f80fd5b506105957f0ce23c3e399818cfee81a7ab0880f714e53d7672b08df0fa62f2843416e1ea0981565b34801561124f575f80fd5b506105336134fb565b348015611263575f80fd5b506105336112723660046153a5565b613512565b348015611282575f80fd5b5061053361129136600461556c565b613547565b3480156112a1575f80fd5b506105336112b0366004615b2d565b61357a565b3480156112c0575f80fd5b506001546112df906001600160801b0380821691600160801b90041682565b604080516001600160801b03938416815292909116602083015201610516565b34801561130a575f80fd5b506105336113193660046155c1565b6137ec565b61053361132c366004615b69565b61397e565b5f6001600160e01b03198216635a05180f60e01b1480611355575061135582613a91565b92915050565b7f2fc10cc8ae19568712f7a176fb4978616a610650813c9d05326c34abb62749c761138581613ac5565b61138d613acf565b50565b5f80516020615e828339815191526113a781613ac5565b60028311156113c95760405163b4fa3fb360e01b815260040160405180910390fd5b63ffffffff8211156113ee5760405163b4fa3fb360e01b815260040160405180910390fd5b6113f784613b24565b5f84815260066020526040812090849003611410575f92505b8054600160e01b900460ff168414801561143757508054600160c01b900463ffffffff1683145b1561144257506114ec565b8054600160e01b900460ff16841461146b57805460ff60e01b1916600160e01b60ff8616021781555b8054600160c01b900463ffffffff16831461149d57805463ffffffff60c01b1916600160c01b63ffffffff8516021781555b604080518581526020810185905286917ff92eb109ce5b449e9b121c352c6aeb4319538a90738cb95d84f08e41274e92d2910160405180910390a26114e2855f613b5a565b6114ea613e25565b505b50505050565b6114fa613e65565b5f8061150886848787613e8d565b60035460405163546da24f60e01b8152600481018f9052602481018390529294509092506001600160a01b03169063546da24f90604401602060405180830381865afa15801561155a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061157e9190615be5565b34101561159e5760405163162908e360e11b815260040160405180910390fd5b600354604051630b96641560e21b8152336004820152602481018490526001600160a01b0390911690632e5990549034906044015f604051808303818588803b1580156115e9575f80fd5b505af11580156115fb573d5f803e3d5ffd5b505050505061160e828c8c8c8c8c614295565b5050505050505050505050565b60405162d74f0b60e71b815260066004820152602481018390526001600160a01b038216604482015273479244bac2ae1d64841753307a0552183642c12190636ba78580906064015b5f6040518083038186803b15801561167a575f80fd5b505af415801561168c573d5f803e3d5ffd5b505050505050565b5f8281525f80516020615ea283398151915260205260409020600101546116ba81613ac5565b6114ec83836143f1565b6001600160a01b03811633146116ed5760405163334bd91960e11b815260040160405180910390fd5b6116f78282614446565b505050565b7fe85fdec10fe0f93d0792364051df7c3d73e37c17b3a954bffe593960e3cd301261172681613ac5565b6003546001600160a01b03165f5b838110156114ea575f85858381811061174f5761174f615bfc565b90506020020135905061176181613b24565b60405163ead42a6960e01b8152600481018290525f906001600160a01b0385169063ead42a6990602401602060405180830381865afa1580156117a6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117ca9190615be5565b6040516325d9153960e11b8152600481018490529091506001600160a01b03851690634bb22a72906024015f604051808303815f87803b15801561180c575f80fd5b505af115801561181e573d5f803e3d5ffd5b505050505f8111156118b45760405163449add1b60e01b8152600481018390526001600160a01b0385169063449add1b906024015f604051808303815f87803b158015611869575f80fd5b505af115801561187b573d5f803e3d5ffd5b5050505061188a826001613b5a565b60405182907ef4fe19c0404d2fbb58da6f646c0a3ee5a6994a034213bbd22b072ed1ca5c27905f90a25b5050600101611734565b7f59911a6aa08a72fe3824aec4500dc42335c6d0702b6d5c5c72ceb265a0de93026118e881613ac5565b6118f184613b24565b815f036119115760405163162908e360e11b815260040160405180910390fd5b6003546001600160a01b031663dcab7f838561194d7f000000000000000000000000000000000000000000000000016345785d8a000086615c24565b6040516001600160e01b031960e085901b168152600481019290925260248201526044015f604051808303815f87803b158015611988575f80fd5b505af115801561199a573d5f803e3d5ffd5b505060408051868152602081018690528793507feec4d6dbe34149c6728a9638eca869d0e5a7fcd85c7a96178f7e9780b4b7fe4b92500160405180910390a26114ec846001613b5a565b5f600881608085901b84175b815260208101919091526040015f205460ff169392505050565b611a1385614492565b600380545f878152600660205260409081902090920154915163cc810cb960e01b81526001600160a01b039182169263cc810cb992611a60928a928a921690899089908990600401615c67565b5f604051808303815f87803b158015611a77575f80fd5b505af1158015611a89573d5f803e3d5ffd5b505050506114ea856001613b5a565b611aa183613b24565b600354604051637bcb377f60e11b81526001600160a01b039091169063f7966efe90611ad7903390879087908790600401615ca7565b5f604051808303815f87803b158015611aee575f80fd5b505af1158015611b00573d5f803e3d5ffd5b505050506116f7836001613b5a565b7f59911a6aa08a72fe3824aec4500dc42335c6d0702b6d5c5c72ceb265a0de9302611b3981613ac5565b611b4283613b24565b60035460405163d963ae5560e01b815260048101859052602481018490526001600160a01b039091169063d963ae55906044015f604051808303815f87803b158015611b8c575f80fd5b505af1158015611b9e573d5f803e3d5ffd5b50505050827f1e7ebd3c5f4de9502000b6f7e6e7cf5d4ecb27d6fe1778e43fb9d1d0ca87d0e783604051611bd491815260200190565b60405180910390a26116f7836001613b5a565b600954606090600160c01b90046001600160401b03168084101580611c0a575082155b15611c24575050604080515f815260208101909152611355565b5f611c2f8583615d23565b8410611c4457611c3f8583615d23565b611c46565b835b9050806001600160401b03811115611c6057611c60615d0f565b604051908082528060200260200182016040528015611c89578160200160208202803683370190505b5092505f5b8351811015611cc657611ca18187615c24565b848281518110611cb357611cb3615bfc565b6020908102919091010152600101611c8e565b50505092915050565b606080611cdd858585614520565b611ce68361455d565b9092509050611cf985858585855f614603565b935093915050565b611d0a85614492565b600380545f87815260066020526040908190209092015491516370903eb960e01b81526001600160a01b03918216926370903eb992611a60928a928a921690899089908990600401615c67565b604051631f46d51760e01b8152600660048201526024810182905273479244bac2ae1d64841753307a0552183642c12190631f46d517906044015b5f6040518083038186803b158015611da8575f80fd5b505af41580156114ea573d5f803e3d5ffd5b611dc2614691565b73a0513a7e28dac4c31b5ccbf9a5f474b7592579856352d8bfc26040518163ffffffff1660e01b81526004015f6040518083038186803b158015611e04575f80fd5b505af41580156114ec573d5f803e3d5ffd5b5f600781608085901b84176119f0565b611e2f81613b24565b600354604051630b96641560e21b8152336004820152602481018390526001600160a01b0390911690632e5990549034906044015f604051808303818588803b158015611e7a575f80fd5b505af1158015611e8c573d5f803e3d5ffd5b505050505061138d816001613b5a565b5f611ec57fe8b012900cb200ee5dfc3b895a32791b67d12891b09f117814f167a237783a025490565b905090565b6060611ed7848484614520565b611ee28484846146ba565b949350505050565b611ef2614691565b604051635c654ad960e01b81526001600160a01b03831660048201526024810182905273a0513a7e28dac4c31b5ccbf9a5f474b75925798590635c654ad990604401611664565b6001600160801b0381165f90815260026020526040812054611355565b611f5e613e65565b5f80611f6c87848787613e8d565b915091505f60035f9054906101000a90046001600160a01b03166001600160a01b031663546da24f8e846040518363ffffffff1660e01b8152600401611fbc929190918252602082015260400190565b602060405180830381865afa158015611fd7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ffb9190615be5565b60035460405163263f69e960e11b81529192506001600160a01b031690634c7ed3d290612032903390879086908d90600401615ca7565b5f604051808303815f87803b158015612049575f80fd5b505af115801561205b573d5f803e3d5ffd5b5050505061206d838e8e8e8e8e614295565b50505050505050505050505050565b60405163612b8c3b60e11b8152600660048201526024810182905273479244bac2ae1d64841753307a0552183642c1219063c257187690604401611d92565b60405163c990450f60e01b8152600660048201526024810182905273479244bac2ae1d64841753307a0552183642c1219063c990450f90604401611d92565b61210381614755565b6003546040516315b5c47760e01b8152600481018390526001600160a01b03909116906315b5c4779034906024015f604051808303818588803b158015612148575f80fd5b505af115801561215a573d5f803e3d5ffd5b505050505061216a816001613b5a565b807fb1858b4c2ab6242521725a8f7350a6cb22ad4ecae009c9b63ef114baffb054be3460405161219c91815260200190565b60405180910390a250565b6040516351fbfaa560e11b81526001600482015260066024820152604481018290525f908190736fb7af5addb044182caa27db35e394ed3451a4da9063a3f7f54a906064016040805180830381865af4158015612206573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061222a9190615d36565b9094909350915050565b6001600160a01b03811661225b5760405163111164f760e21b815260040160405180910390fd5b6040516317a9a2c160e11b815260066004820152602481018390526001600160a01b038216604482015273479244bac2ae1d64841753307a0552183642c12190632f53458290606401611664565b6122b1614691565b6040516340cea66360e11b81526001600160a01b03831660048201526024810182905273a0513a7e28dac4c31b5ccbf9a5f474b7592579859063819d4cc690604401611664565b61230185614492565b600380545f878152600660205260409081902090920154915163f939122360e01b81526001600160a01b039182169263f939122392611a60928a928a921690899089908990600401615c67565b612356614691565b604051638980f11f60e01b81526001600160a01b03831660048201526024810182905273a0513a7e28dac4c31b5ccbf9a5f474b75925798590638980f11f90604401611664565b6123a683614755565b5f8381526006602052604090208054600160401b900463ffffffff168310156123e257604051635caf530f60e11b815260040160405180910390fd5b80545f906123fb9086908690869063ffffffff166147c8565b90505f835f5461240b9190615d58565b9050801561249e57600354604051632207e80f60e21b815260048101889052602481018390526001600160a01b039091169063881fa03c906044015f604051808303815f87803b15801561245d575f80fd5b505af115801561246f573d5f803e3d5ffd5b50506040518892507f1cbb8dafbedbdf4f813a8ed1f50d871def63e1104f8729b677af57905eda90f691505f90a25b825463ffffffff191663ffffffff831617835560405182815286907fdd01838a366ae4dc9a86e1922512c0716abebc9a440baae0e22d2dec578223f09060200160405180910390a2825463ffffffff60601b1916600160601b63ffffffff84160217835560405182815286907f947f955eec7e1f626bee3afd2aa47b5de04ddcdd3fe78dc8838213015ef58dfd9060200160405180910390a2612541865f613b5a565b61168c613e25565b604051632a5a705b60e01b815260066004820152602481018390526001600160a01b038216604482015273479244bac2ae1d64841753307a0552183642c12190632a5a705b90606401611664565b5f80516020615e828339815191526125ae81613ac5565b7f0000000000000000000000003508a952176b3c15387c97be809eaffb1982176a6001600160a01b0316638fcb4e5b60035f9054906101000a90046001600160a01b03166001600160a01b0316630d43e8ad6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561262d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126519190615d6f565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018590526044016020604051808303815f875af115801561269b573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116f79190615be5565b5f8281527fc1f6fe24621ce81ec5827caf0253cadb74709b061630e6b55e82371705932000602081905260408220611ee29084614952565b5f80516020615e8283398151915261270e81613ac5565b61138d5f61495d565b5f9182525f80516020615ea2833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b612755613e65565b61275e87614755565b6003546040516358a46db560e11b815260048101899052602481018890525f916001600160a01b03169063b148db6a90604401602060405180830381865afa1580156127ac573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906127d09190615be5565b60035460405163263f69e960e11b81529192506001600160a01b031690634c7ed3d2906128079033908c9086908890600401615ca7565b5f604051808303815f87803b15801561281e575f80fd5b505af1158015612830573d5f803e3d5ffd5b50505050612842888888888888614295565b5050505050505050565b5f80516020615e8283398151915261286381613ac5565b5f612870868686866149d9565b90505f5b818110156128a5576008810287013560c01c6010820286013560801c61289b82825f614a4c565b5050600101612874565b5061168c613e25565b5f80516020615e828339815191526128c581613ac5565b5f6128d2868686866149d9565b90505f5b818110156128a5576008810287013560c01c6010820286013560801c6128fc8282614b6d565b50506001016128d6565b61290e613e65565b61291787614755565b600354604051632884698160e01b815260048101899052602481018890525f916001600160a01b031690632884698190604401602060405180830381865afa158015612965573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129899190615be5565b600354604051637bcb377f60e11b81529192506001600160a01b03169063f7966efe906128079033908c9086908890600401615ca7565b5f80516020615e828339815191526129d781613ac5565b604051630280e1e560e61b815260040160405180910390fd5b6129f8613e65565b5f80612a0687848787613e8d565b915091505f60035f9054906101000a90046001600160a01b03166001600160a01b03166313d1234b8e846040518363ffffffff1660e01b8152600401612a56929190918252602082015260400190565b602060405180830381865afa158015612a71573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a959190615be5565b600354604051637bcb377f60e11b81529192506001600160a01b03169063f7966efe90612032903390879086908d90600401615ca7565b612ad7816001613b5a565b604051633f58c75d60e21b8152600160048201526006602482015260448101829052736fb7af5addb044182caa27db35e394ed3451a4da9063fd631d7490606401611d92565b5f612b467fe8b012900cb200ee5dfc3b895a32791b67d12891b09f117814f167a237783a025490565b4210905090565b5f818152600660205260408082206003549151634e28b08160e11b815260048101859052839283928392839283928392839283916001600160a01b0390911690639c51610290602401602060405180830381865afa158015612bb1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612bd59190615be5565b82549091505f90612bf59063ffffffff600160401b820481169116615d8a565b63ffffffff1690508082118015612c1757508254600160e01b900460ff166002145b15612c5257825460029b50612c4b9063ffffffff600160c01b8204811691600160201b810482169082160316849003614cdf565b9950612c9e565b80821115612c8057825460029b5063ffffffff600160201b8204811691811691909103168290039950612c9e565b8254600160e01b810460ff169b50600160c01b900463ffffffff1699505b50508054600190910154989a97995063ffffffff600160801b82048116995f998a99509082169750600160401b830482169650600160a01b909204169350915050565b5f80516020615e82833981519152612cf881613ac5565b5f612d05868686866149d9565b90505f5b818110156128a5576008810287013560c01c6010820286013560801c612d2e82613b24565b5f8281526006602052604090208054600160601b900463ffffffff168210612d69576040516388e1a28160e01b815260040160405180910390fd5b8054600160401b900463ffffffff16821015612d98576040516388e1a28160e01b815260040160405180910390fd5b805463ffffffff60601b1916600160601b63ffffffff84160217815560405182815283907f947f955eec7e1f626bee3afd2aa47b5de04ddcdd3fe78dc8838213015ef58dfd9060200160405180910390a260405183907fe5725d045d5c47bd1483feba445e395dc8647486963e6d54aad9ed03ff7d6ce6905f90a2612e1d835f613b5a565b505050806001019050612d09565b7f79dfcec784e591aafcf60db7db7b029a5c8b12aac4afd4e8c4eb740430405fa6612e5581613ac5565b612e5e8261495d565b5050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03165f81158015612ea65750825b90505f826001600160401b03166001148015612ec15750303b155b905081158015612ecf575080155b15612eed5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315612f1757845460ff60401b1916600160401b1785555b6001600160a01b038916612f3e576040516368ea2bc160e01b815260040160405180910390fd5b6001600160a01b038616612f6557604051633ef39b8160e01b815260040160405180910390fd5b612f6d614cf4565b600380546001600160a01b03808c166001600160a01b03199283161790925560048054928b1692909116919091179055612fa75f876143f1565b5061303e5f80516020615e828339815191527f000000000000000000000000e2ef9536daaaebff5b1c130957ab3e80056b06d86001600160a01b031663ef6c064c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613015573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130399190615d6f565b6143f1565b506130488761495d565b6130525f19614cfc565b831561309857845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050505050565b6060805f80516020615e828339815191526130bd81613ac5565b6130c68661455d565b909350915085156133b2576001546001600160801b03165f908152600260205260408120548791905b801561332d575f6131008260c01c90565b6001600160401b039081165f8181526006602052604081208054929450608086901c90931692916131489061314290600160a01b900463ffffffff1685614cdf565b88614cdf565b90508087118061315757508281145b15613198576001808301805463ffffffff600160201b80830482168890039091160267ffffffff000000001990911617905561319290614d4b565b506131f6565b60018201805463ffffffff600160201b808304821685900382160267ffffffff0000000019909216919091179091556131d790869083860390614daa16565b6001546001600160801b03165f90815260026020526040902081905594505b805f03613206575050505061330d565b8154613224908590600160401b900463ffffffff16838d8d8b614603565b815463ffffffff600160401b80830482168401821681026bffffffff000000000000000019909316929092178085556040519290041681529581019584907f24eb1c9e765ba41accf9437300ea91ece5ed3f897ec3cdee0e9debd7fe309b789060200160405180910390a2815463ffffffff600160a01b808304821684900391821690810263ffffffff60a01b199093169290921784556040519182529085907ff9109091b368cedad2edff45414eef892edd6b4fe80084bd590aa8f8def8ed339060200160405180910390a28188039750875f0361330757505050505061332d565b50505050505b506001546001600160801b03165f908152600260205260409020546130ef565b5087811461334e57604051630bc9ea5560e21b815260040160405180910390fd5b600980546001600160401b03600160801b80830482168c9003821602808216828416178c0190911667ffffffffffffffff1990911677ffffffffffffffff0000000000000000ffffffffffffffff19909216919091171790556133af613e25565b50505b50935093915050565b5f8181527fc1f6fe24621ce81ec5827caf0253cadb74709b061630e6b55e823717059320006020819052604082206133f290614dcf565b9392505050565b7f79dfcec784e591aafcf60db7db7b029a5c8b12aac4afd4e8c4eb740430405fa661342381613ac5565b600454600160a01b900460ff161561344e5760405163ef65161f60e01b815260040160405180910390fd5b6004805460ff60a01b1916600160a01b1790556040517fe5eb57aa4d841adeece4ac87bd294965df4a894f0aa24db4a4a55a39ab101d6e905f90a150565b5f8281525f80516020615ea283398151915260205260409020600101546134b281613ac5565b6114ec8383614446565b6134c583613b24565b60035460405163263f69e960e11b81526001600160a01b0390911690634c7ed3d290611ad7903390879087908790600401615ca7565b5f80516020615e8283398151915261138d81613ac5565b5f80516020615e8283398151915261352981613ac5565b61353584846001614a4c565b61353f8483614b6d565b6114ec613e25565b7f139c2898040ef16910dc9f44dc697df79363da767d8bc92f2e310312b816e46d61357181613ac5565b612e5e82614cfc565b7f0ce23c3e399818cfee81a7ab0880f714e53d7672b08df0fa62f2843416e1ea096135a481613ac5565b6135ad85613b24565b5f8581526006602052604090208054600160401b900463ffffffff1685106135e857604051635caf530f60e11b815260040160405180910390fd5b608086901b85175f8181526007602052604090205460ff161561361e57604051639fbfc58960e01b815260040160405180910390fd5b5f818152600760205260408120805460ff19166001908117909155835463ffffffff600160201b808304821684019091160267ffffffff000000001990911617845561366d90899089906146ba565b9050877f9bc54857932b6f10bb750fdad91f736b82dd4de202ed5c2f9f076773bb5b3fb78888846040516136a393929190615da7565b60405180910390a28415613764575f8281526008602052604090205460ff16156136f1577f0000000000000000000000000000000000000000000000000de0b6b3a76400008601955061370a565b5f828152600860205260409020805460ff191660011790555b60035460405163449add1b60e01b8152600481018a90526001600160a01b039091169063449add1b906024015f604051808303815f87803b15801561374d575f80fd5b505af115801561375f573d5f803e3d5ffd5b505050505b856801bc16d674ec80000011156137e15760035460405163e5220e3f60e01b8152600481018a90526801bc16d674ec80000088900360248201526001600160a01b039091169063e5220e3f906044015f604051808303815f87803b1580156137ca575f80fd5b505af11580156137dc573d5f803e3d5ffd5b505050505b612842886001613b5a565b7f0ce23c3e399818cfee81a7ab0880f714e53d7672b08df0fa62f2843416e1ea0961381681613ac5565b61381f83613b24565b5f8381526006602052604090208054600160401b900463ffffffff16831061385a57604051635caf530f60e11b815260040160405180910390fd5b608084901b83175f8181526008602052604090205460ff161561389057604051639fbfc58960e01b815260040160405180910390fd5b5f818152600860205260408120805460ff191660019081179091556138b890879087906146ba565b9050857f0d541877c9d326d4c8ccfd72e6719f06dccb62a28292ae647e923441bcaad5c086836040516138ec929190615dc5565b60405180910390a260035460405163e5220e3f60e01b8152600481018890527f0000000000000000000000000000000000000000000000000de0b6b3a764000060248201526001600160a01b039091169063e5220e3f906044015f604051808303815f87803b15801561395d575f80fd5b505af115801561396f573d5f803e3d5ffd5b5050505061168c866001613b5a565b613986613e65565b61398f86614755565b6003546040516358a46db560e11b815260048101889052602481018790526001600160a01b039091169063b148db6a90604401602060405180830381865afa1580156139dd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613a019190615be5565b341015613a215760405163162908e360e11b815260040160405180910390fd5b600354604051630b96641560e21b8152336004820152602481018890526001600160a01b0390911690632e5990549034906044015f604051808303818588803b158015613a6c575f80fd5b505af1158015613a7e573d5f803e3d5ffd5b505050505061168c868686868686614295565b5f6001600160e01b03198216637965db0b60e01b148061135557506301ffc9a760e01b6001600160e01b0319831614611355565b61138d8133614dd8565b613ad7614e15565b427fe8b012900cb200ee5dfc3b895a32791b67d12891b09f117814f167a237783a02556040517f62451d457bc659158be6e6247f56ec1df424a5c7597f71c20c2bc44e0965c8f9905f90a1565b600954600160c01b90046001600160401b0316811015613b415750565b604051633ed893db60e21b815260040160405180910390fd5b5f8281526006602052604081208054909190613b8c9063ffffffff600160401b8204811691600160601b900416615d8a565b6003546040516301a5e9e360e01b81526004810187905263ffffffff9290921692505f916001600160a01b03909116906301a5e9e390602401602060405180830381865afa158015613be0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613c049190615be5565b83549091505f90613c249063ffffffff600160401b820481169116615d8a565b63ffffffff169050808210613c3b575f9250613c70565b8354613c569063ffffffff600160601b820481169116615d8a565b63ffffffff16821115613c7057613c6d8282615d23565b92505b508254600160801b900463ffffffff1615801590613c8d57505f82115b15613c96575f91505b8254600160e01b900460ff1615801590613caf57505f82115b15613d0757825463ffffffff600160201b82048116600160401b8304821603811691613d0391600160c01b909104168210613cea575f613cfd565b8454600160c01b900463ffffffff168290035b84614cdf565b9250505b8254600160a01b900463ffffffff1682146114ea5782546009805467ffffffffffffffff60801b198116600160a01b9384900463ffffffff908116600160801b938490046001600160401b039081169190910388011690920217909155845463ffffffff60a01b191690841690910217835560405182815285907ff9109091b368cedad2edff45414eef892edd6b4fe80084bd590aa8f8def8ed339060200160405180910390a28315613dbc57613dbc613e25565b604051633f58c75d60e21b8152600160048201526006602482015260448101869052736fb7af5addb044182caa27db35e394ed3451a4da9063fd631d74906064015f6040518083038186803b158015613e13575f80fd5b505af4158015613098573d5f803e3d5ffd5b60058054600101908190556040519081527f7220970e1f1f12864ecccd8942690a837c7a8dd45d158cb891eb45a8a69134aa9060200160405180910390a1565b613e6d612b1d565b15613e8b57604051630286f07360e31b815260040160405180910390fd5b565b6004545f908190600160a01b900460ff16613ed657821580613eb857506004546001600160a01b0316155b15613ed65760405163084a55b960e41b815260040160405180910390fd5b600954600160c01b90046001600160401b03165f8181526006602090815260408220929450613f0790890189615ddd565b6001600160a01b031614613f2757613f226020880188615ddd565b613f29565b335b6001820180546001600160a01b0392909216600160401b027fffffffff0000000000000000000000000000000000000000ffffffffffffffff9092169190911790555f613f7c6040890160208a01615ddd565b6001600160a01b031614613f9f57613f9a6040880160208901615ddd565b613fa1565b335b6003820180546001600160a01b0319166001600160a01b0392909216919091179055613fd36060880160408901615df8565b1561400757613fe86060880160408901615df8565b600482018054911515600160a01b0260ff60a01b199092169190911790555b6009805460016001600160401b03600160c01b80840482168301909116026001600160c01b03909216919091179091556003820154908201546040516001600160a01b0392831692600160401b9092049091169085907ff35982c84fdc94f58d48e901c54c615804cf7d7939b9b8f76ce4d459354e6363905f90a46001600160a01b038616156140c7576040516001600160a01b0387169084907f67334334c388385e5f244703f8a8b28b7f4ffe52909130aca69bc62a8e27f09a905f90a35b83158015906140e057506004546001600160a01b031615155b15614214576004805460405163076123b360e21b81526001600160a01b0390911691631d848ecc916141189133918a918a9101615e11565b5f604051808303815f87803b15801561412f575f80fd5b505af1158015614141573d5f803e3d5ffd5b5050600480546040805163464b6c0d60e11b815290516001600160a01b039092169450638c96d81a935080830192602092918290030181865afa15801561418a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906141ae9190615be5565b60035460405163b2d03e4d60e01b815260048101869052602481018390529193506001600160a01b03169063b2d03e4d906044015f604051808303815f87803b1580156141f9575f80fd5b505af115801561420b573d5f803e3d5ffd5b5050505061428b565b60035f9054906101000a90046001600160a01b03166001600160a01b031663443fbfef6040518163ffffffff1660e01b8152600401602060405180830381865afa158015614264573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906142889190615be5565b91505b5094509492505050565b5f868152600660205260409020805460045463ffffffff90911690600160a01b900460ff161580156142e857507f000000000000000000000000000000000000000000000000000000000000000a878201115b15614306576040516347f1bdb360e11b815260040160405180910390fd5b61431588828989898989614e3a565b50815463ffffffff600160601b8204811691160361439057815463ffffffff600160601b80830482168a018216810263ffffffff60601b199093169290921780855560405192900416815288907f947f955eec7e1f626bee3afd2aa47b5de04ddcdd3fe78dc8838213015ef58dfd9060200160405180910390a25b815463ffffffff80821689011663ffffffff199091168117835560405190815288907fdd01838a366ae4dc9a86e1922512c0716abebc9a440baae0e22d2dec578223f09060200160405180910390a26143e9885f613b5a565b612842613e25565b5f7fc1f6fe24621ce81ec5827caf0253cadb74709b061630e6b55e823717059320008161441e8585614fce565b90508015611ee2575f85815260208390526040902061443d9085615076565b50949350505050565b5f7fc1f6fe24621ce81ec5827caf0253cadb74709b061630e6b55e8237170593200081614473858561508a565b90508015611ee2575f85815260208390526040902061443d9085615103565b5f8181526006602052604090206001810154600160401b90046001600160a01b03166144d157604051633ed893db60e21b815260040160405180910390fd5b6001810154600160401b90046001600160a01b03163314801590614502575060038101546001600160a01b03163314155b15612e5e5760405163743a3f7960e11b815260040160405180910390fd5b5f8381526006602052604090205463ffffffff1661453e8284615c24565b11156116f757604051635caf530f60e11b815260040160405180910390fd5b60608061456b603084615d58565b6001600160401b0381111561458257614582615d0f565b6040519080825280601f01601f1916602001820160405280156145ac576020820181803683370190505b506145b8606085615d58565b6001600160401b038111156145cf576145cf615d0f565b6040519080825280601f01601f1916602001820160405280156145f9576020820181803683370190505b5091509150915091565b5f805b85811015612842576146448861461c838a615c24565b7f059e9c54cf92ba46cc39c6b4acd51d5116e9d49fabee6193530ea918b54be94a9190615117565b60018082015460801c85840160308181028a019081019290925283546020928301526002840154606091820289019283015260038401546040830152600484015491015290925001614606565b613e8b7fb3e25b5404b87e5a838579cb5d7481d61ad96ee284d38ec1e97c07ba64e7f6fc613ac5565b60605f6146c8603084615d58565b6001600160401b038111156146df576146df615d0f565b6040519080825280601f01601f191660200182016040528015614709576020820181803683370190505b5091505f5b8381101561474c576147248661461c8388615c24565b9150603081026020840101600183015460801c6010820152825481525060018101905061470e565b50509392505050565b5f8181526006602052604090206001810154600160401b90046001600160a01b031661479457604051633ed893db60e21b815260040160405180910390fd5b6001810154600160401b90046001600160a01b03163314612e5e5760405163743a3f7960e11b815260040160405180910390fd5b5f8215806147de5750816147dc8486615c24565b115b806147ec575063ffffffff82115b1561480a5760405163575697ff60e01b815260040160405180910390fd5b604080516030808252606082019092525f91829182918291906020820181803683370190505090508787015b888111156149445761486c7f059e9c54cf92ba46cc39c6b4acd51d5116e9d49fabee6193530ea918b54be94a8b5f198401615117565b9450600185015460801c603083015284546020830152868110156148de576148b87f059e9c54cf92ba46cc39c6b4acd51d5116e9d49fabee6193530ea918b54be94a8b5f198a01615117565b93505f92505b60058310156148da5782840154838601556001830192506148be565b8394505b5f92505b60058310156148fb575f838601556001830192506148e2565b600187039650600181039050897fea4b75aaf57196f73d338cadf79ecd0a437902e2dd0d2c4c2cf3ea71b8ab27b9836040516149379190615729565b60405180910390a2614836565b509498975050505050505050565b5f6133f2838361514e565b7f000000000000000000000000000000000000000000000000016345785d8a000081111561499e5760405163b4fa3fb360e01b815260040160405180910390fd5b5f8190556040518181527f699ec9c671aad1f3dcc15e571375584a1d6fb7176afd545d14467fd31477e98e906020015b60405180910390a150565b5f6149e5600885615e47565b6149f0601084615e47565b141580614a065750614a03600885615e5a565b15155b80614a1a5750614a17601083615e5a565b15155b15614a385760405163319c9a2160e21b815260040160405180910390fd5b614a43600885615e47565b95945050505050565b614a5583613b24565b5f838152600660205260409020600181015463ffffffff168303614a795750505050565b8054600160401b900463ffffffff16831115614aa85760405163cc11217f60e01b815260040160405180910390fd5b81158015614abf5750600181015463ffffffff1683105b15614add576040516371a4bd1560e01b815260040160405180910390fd5b6001810180546009805463ffffffff9283166001600160401b03600160401b808404821692909203890116026fffffffffffffffff000000000000000019909116179055815490851663ffffffff1990911617905560405183815284907f0f67960648751434ae86bf350db61194f387fda387e7f568b0ccd0ae0c2201669060200160405180910390a250505050565b614b7682613b24565b5f8281526006602052604090208054600160801b900463ffffffff168203614b9d57505050565b6001810154815463ffffffff918216600160401b90910482160316821115614bd857604051636af5e8d960e11b815260040160405180910390fd5b805463ffffffff60801b1916600160801b63ffffffff84160217815560405182815283907fb4f5879eca27b32881cec7907d1310378e9b4c79927062fb7d4a321434b5b04a9060200160405180910390a25f82118015614c4557508054600160a01b900463ffffffff1615155b15614cd55780546009805467ffffffffffffffff60801b198116600160a01b90930463ffffffff16600160801b918290046001600160401b03908116919091031602919091179055805463ffffffff60a01b191681556040515f815283907ff9109091b368cedad2edff45414eef892edd6b4fe80084bd590aa8f8def8ed339060200160405180910390a2505050565b6116f7835f613b5a565b5f818310614ced57816133f2565b5090919050565b613e8b615174565b614d04613e65565b805f03614d245760405163ad58bfc760e01b815260040160405180910390fd5b5f5f198203614d3557505f19614d42565b614d3f8242615c24565b90505b612e5e816151bd565b80546001600160801b03165f90815260018201602052604090205480614d84576040516363c3654960e01b815260040160405180910390fd5b81546fffffffffffffffffffffffffffffffff19166001600160801b0382161790915590565b60801b67ffffffffffffffff60801b1667ffffffffffffffff60801b19919091161790565b5f611355825490565b614de28282612717565b612e5e5760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440160405180910390fd5b614e1d612b1d565b613e8b5760405163b047186b60e01b815260040160405180910390fd5b5f851580614e54575063ffffffff614e528789615c24565b115b15614e725760405163575697ff60e01b815260040160405180910390fd5b6030860284141580614e875750606086028214155b15614ea55760405163251f56a160e21b815260040160405180910390fd5b604080516030808252606082019092525f91829182916020820181803683370190505090505f5b89811015614fbe57614eff7f059e9c54cf92ba46cc39c6b4acd51d5116e9d49fabee6193530ea918b54be94a8d8d615117565b60308281028b0160108101359185018290523560208501819052919550171592508215614f3f57604051630f35a7eb60e21b815260040160405180910390fd5b60208201518455603082015160801b60018501556060810287018035600286015560208101356003860155604081013560048601555060018101905060018b019a508b7fc77a17d6b857abe6d6e6c37301621bc72c4dd52fa8830fb54dfa715c04911a8983604051614fb19190615729565b60405180910390a2614ecc565b50989a9950505050505050505050565b5f5f80516020615ea2833981519152614fe78484612717565b615066575f848152602082815260408083206001600160a01b03871684529091529020805460ff1916600117905561501c3390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001915050611355565b5f915050611355565b5092915050565b5f6133f2836001600160a01b038416615258565b5f5f80516020615ea28339815191526150a38484612717565b15615066575f848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a46001915050611355565b5f6133f2836001600160a01b0384166152a4565b6040805160208082019590955280820193909352606080840192909252805180840390920182526080909201909152805191012090565b5f825f01828154811061516357615163615bfc565b905f5260205f200154905092915050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16613e8b57604051631afcd79f60e31b815260040160405180910390fd5b6151e67fe8b012900cb200ee5dfc3b895a32791b67d12891b09f117814f167a237783a02829055565b5f19810361521f576040515f1981527f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e906020016149ce565b7f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e61524a4283615d23565b6040519081526020016149ce565b5f81815260018301602052604081205461529d57508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155611355565b505f611355565b5f8181526001830160205260408120548015615066575f6152c6600183615d23565b85549091505f906152d990600190615d23565b9050808214615338575f865f0182815481106152f7576152f7615bfc565b905f5260205f200154905080875f01848154811061531757615317615bfc565b5f918252602080832090910192909255918252600188019052604090208390555b855486908061534957615349615e6d565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050611355565b5f6020828403121561538e575f80fd5b81356001600160e01b0319811681146133f2575f80fd5b5f805f606084860312156153b7575f80fd5b505081359360208301359350604090920135919050565b5f8083601f8401126153de575f80fd5b5081356001600160401b038111156153f4575f80fd5b60208301915083602082850101111561540b575f80fd5b9250929050565b5f60608284031215615422575f80fd5b50919050565b5f8083601f840112615438575f80fd5b5081356001600160401b0381111561544e575f80fd5b6020830191508360208260051b850101111561540b575f80fd5b6001600160a01b038116811461138d575f80fd5b5f805f805f805f805f6101008a8c031215615495575f80fd5b8935985060208a01356001600160401b03808211156154b2575f80fd5b6154be8d838e016153ce565b909a50985060408c01359150808211156154d6575f80fd5b6154e28d838e016153ce565b90985096508691506154f78d60608e01615412565b955060c08c013591508082111561550c575f80fd5b506155198c828d01615428565b90945092505060e08a013561552d81615468565b809150509295985092959850929598565b5f806040838503121561554f575f80fd5b82359150602083013561556181615468565b809150509250929050565b5f6020828403121561557c575f80fd5b5035919050565b5f8060208385031215615594575f80fd5b82356001600160401b038111156155a9575f80fd5b6155b585828601615428565b90969095509350505050565b5f80604083850312156155d2575f80fd5b50508035926020909101359150565b5f805f805f608086880312156155f5575f80fd5b85359450602086013593506040860135925060608601356001600160401b0381111561561f575f80fd5b61562b88828901615428565b969995985093965092949392505050565b5f60a08284031215615422575f80fd5b5f805f60e0848603121561565e575f80fd5b8335925060208401359150615676856040860161563c565b90509250925092565b602080825282518282018190525f9190848201906040850190845b818110156156b65783518352928401929184019160010161569a565b50909695505050505050565b5f81518084525f5b818110156156e6576020818501810151868301820152016156ca565b505f602082860101526020601f19601f83011685010191505092915050565b604081525f61571760408301856156c2565b8281036020840152614a4381856156c2565b602081525f6133f260208301846156c2565b5f806040838503121561574c575f80fd5b823561575781615468565b946020939093013593505050565b5f60208284031215615775575f80fd5b81356001600160801b03811681146133f2575f80fd5b815163ffffffff1681526101e0810160208301516157b1602084018263ffffffff169052565b5060408301516157c9604084018263ffffffff169052565b5060608301516157e1606084018263ffffffff169052565b5060808301516157f9608084018263ffffffff169052565b5060a083015161581160a084018263ffffffff169052565b5060c083015161582960c084018263ffffffff169052565b5060e083015161583e60e084018260ff169052565b506101008381015163ffffffff908116918401919091526101208085015190911690830152610140808401516001600160a01b039081169184019190915261016080850151821690840152610180808501518216908401526101a080850151909116908301526101c0928301511515929091019190915290565b5f805f805f805f805f806101a08b8d0312156158d2575f80fd5b8a35995060208b01356001600160401b03808211156158ef575f80fd5b6158fb8e838f016153ce565b909b50995060408d0135915080821115615913575f80fd5b61591f8e838f016153ce565b90995097508791506159348e60608f01615412565b96506159438e60c08f0161563c565b95506101608d0135915080821115615959575f80fd5b506159668d828e01615428565b9094509250506101808b013561597b81615468565b809150509295989b9194979a5092959850565b5f805f805f805f610120888a0312156159a5575f80fd5b873596506020880135955060408801356001600160401b03808211156159c9575f80fd5b6159d58b838c016153ce565b909750955060608a01359150808211156159ed575f80fd5b506159fa8a828b016153ce565b9094509250615a0e90508960808a0161563c565b905092959891949750929550565b5f805f8060408587031215615a2f575f80fd5b84356001600160401b0380821115615a45575f80fd5b615a51888389016153ce565b90965094506020870135915080821115615a69575f80fd5b50615a76878288016153ce565b95989497509550505050565b5f805f8060808587031215615a95575f80fd5b8435615aa081615468565b93506020850135615ab081615468565b9250604085013591506060850135615ac781615468565b939692955090935050565b5f805f60408486031215615ae4575f80fd5b8335925060208401356001600160401b03811115615b00575f80fd5b615b0c868287016153ce565b9497909650939450505050565b80358015158114615b28575f80fd5b919050565b5f805f8060808587031215615b40575f80fd5b843593506020850135925060408501359150615b5e60608601615b19565b905092959194509250565b5f805f805f8060808789031215615b7e575f80fd5b863595506020870135945060408701356001600160401b0380821115615ba2575f80fd5b615bae8a838b016153ce565b90965094506060890135915080821115615bc6575f80fd5b50615bd389828a016153ce565b979a9699509497509295939492505050565b5f60208284031215615bf5575f80fd5b5051919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561135557611355615c10565b8183525f6001600160fb1b03831115615c4e575f80fd5b8260051b80836020870137939093016020019392505050565b8681528560208201526001600160a01b038516604082015283606082015260a060808201525f615c9b60a083018486615c37565b98975050505050505050565b5f610100820190506001600160a01b03861682528460208301528360408301528235606083015260208301356080830152604083013560ff8116808214615cec575f80fd5b60a084015250606083013560c083015260809092013560e0909101529392505050565b634e487b7160e01b5f52604160045260245ffd5b8181038181111561135557611355615c10565b5f8060408385031215615d47575f80fd5b505080516020909101519092909150565b808202811582820484141761135557611355615c10565b5f60208284031215615d7f575f80fd5b81516133f281615468565b63ffffffff82811682821603908082111561506f5761506f615c10565b838152826020820152606060408201525f614a4360608301846156c2565b828152604060208201525f611ee260408301846156c2565b5f60208284031215615ded575f80fd5b81356133f281615468565b5f60208284031215615e08575f80fd5b6133f282615b19565b6001600160a01b0384168152604060208201525f614a43604083018486615c37565b634e487b7160e01b5f52601260045260245ffd5b5f82615e5557615e55615e33565b500490565b5f82615e6857615e68615e33565b500690565b634e487b7160e01b5f52603160045260245ffdfebb75b874360e0bfd87f964eadd8276d8efb7c942134fc329b513032d0803e0c602dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800a164736f6c6343000818000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
636f6d6d756e6974792d6f6e636861696e2d76310000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000e2ef9536daaaebff5b1c130957ab3e80056b06d8
-----Decoded View---------------
Arg [0] : moduleType (bytes32): 0x636f6d6d756e6974792d6f6e636861696e2d7631000000000000000000000000
Arg [1] : minSlashingPenaltyQuotient (uint256): 32
Arg [2] : elRewardsStealingFine (uint256): 100000000000000000
Arg [3] : maxKeysPerOperatorEA (uint256): 10
Arg [4] : maxKeyRemovalCharge (uint256): 100000000000000000
Arg [5] : lidoLocator (address): 0xe2EF9536DAAAEBFf5b1c130957AB3E80056b06D8
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 636f6d6d756e6974792d6f6e636861696e2d7631000000000000000000000000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [2] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [5] : 000000000000000000000000e2ef9536daaaebff5b1c130957ab3e80056b06d8
Deployed Bytecode Sourcemap
1142:72460:16:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1695:212:1;;;;;;;;;;-1:-1:-1;1695:212:1;;;;;:::i;:::-;;:::i;:::-;;;566:14:37;;559:22;541:41;;529:2;514:18;1695:212:1;;;;;;;;7663:75:16;;;;;;;;;;;;;:::i;:::-;;32800:1452;;;;;;;;;;-1:-1:-1;32800:1452:16;;;;;:::i;:::-;;:::i;10202:856::-;;;;;;:::i;:::-;;:::i;55898:86::-;;;;;;;;;;-1:-1:-1;55966:11:16;55898:86;;;3547:25:37;;;3535:2;3520:18;55898:86:16;3401:177:37;27497:290:16;;;;;;;;;;-1:-1:-1;27497:290:16;;;;;:::i;:::-;;:::i;4759:191:0:-;;;;;;;;;;-1:-1:-1;4759:191:0;;;;;:::i;:::-;4824:7;4919:14;;;-1:-1:-1;;;;;;;;;;;4919:14:0;;;;;:24;;;;4759:191;2784:37:16;;;;;;;;;;-1:-1:-1;2784:37:16;;;;-1:-1:-1;;;;;2784:37:16;;;;;;-1:-1:-1;;;;;4277:55:37;;;4259:74;;4247:2;4232:18;2784:37:16;4088:251:37;1387:62:16;;;;;;;;;;;;1425:24;1387:62;;5246:136:0;;;;;;;;;;-1:-1:-1;5246:136:0;;;;;:::i;:::-;;:::i;6348:245::-;;;;;;;;;;-1:-1:-1;6348:245:0;;;;;:::i;:::-;;:::i;43115:1322:16:-;;;;;;;;;;-1:-1:-1;43115:1322:16;;;;;:::i;:::-;;:::i;41304:750::-;;;;;;;;;;-1:-1:-1;41304:750:16;;;;;:::i;:::-;;:::i;1321:60::-;;;;;;;;;;;;1358:23;1321:60;;55175:203;;;;;;;;;;-1:-1:-1;55175:203:16;;;;;:::i;:::-;;:::i;25587:824::-;;;;;;;;;;-1:-1:-1;25587:824:16;;;;;:::i;:::-;;:::i;1771:126::-;;;;;;;;;;;;1845:52;1771:126;;21231:590;;;;;;;;;;-1:-1:-1;21231:590:16;;;;;:::i;:::-;;:::i;42322:567::-;;;;;;;;;;-1:-1:-1;42322:567:16;;;;;:::i;:::-;;:::i;2310:84::-;;;;;;;;;;;;;;;2400:47;;;;;;;;;;;;;;;62855:579;;;;;;;;;;-1:-1:-1;62855:579:16;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;61263:::-;;;;;;;;;;-1:-1:-1;61263:579:16;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;23825:825::-;;;;;;;;;;-1:-1:-1;23825:825:16;;;;;:::i;:::-;;:::i;27984:228::-;;;;;;;;;;-1:-1:-1;27984:228:16;;;;;:::i;:::-;;:::i;679:108:17:-;;;;;;;;;;;;;:::i;55621:207:16:-;;;;;;;;;;-1:-1:-1;55621:207:16;;;;;:::i;:::-;;:::i;19667:437::-;;;;;;:::i;:::-;;:::i;1298:142:36:-;;;;;;;;;;;;;:::i;60499:307:16:-;;;;;;;;;;-1:-1:-1;60499:307:16;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1925:156:17:-;;;;;;;;;;-1:-1:-1;1925:156:17;;;;;:::i;:::-;;:::i;54819:117:16:-;;;;;;;;;;-1:-1:-1;54819:117:16;;;;;:::i;:::-;;:::i;62468:160::-;;;;;;;;;;-1:-1:-1;62468:160:16;;;;;:::i;:::-;62602:19;;-1:-1:-1;;;62602:19:16;;-1:-1:-1;;;;;62602:19:16;-1:-1:-1;;62468:160:16;56591:161;;;;;;;;;;-1:-1:-1;56591:161:16;;;;;:::i;:::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56715:30:16;;;;:14;:30;;;;;;;;;56708:37;;;;;;;;;;;;;;;-1:-1:-1;;;56708:37:16;;;;;;;;;;;;-1:-1:-1;;;56708:37:16;;;;;;;;;;;;-1:-1:-1;;;56708:37:16;;;;;;;;-1:-1:-1;;;56708:37:16;;;;;;;;-1:-1:-1;;;56708:37:16;;;;;;;;;-1:-1:-1;;;56708:37:16;;;;;;;;;-1:-1:-1;;;56708:37:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;56708:37:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56591:161;;;;;;;;:::i;12571:863::-;;;;;;;;;;-1:-1:-1;12571:863:16;;;;;:::i;:::-;;:::i;28394:200::-;;;;;;;;;;-1:-1:-1;28394:200:16;;;;;:::i;:::-;;:::i;27085:230::-;;;;;;;;;;-1:-1:-1;27085:230:16;;;;;:::i;:::-;;:::i;44676:522::-;;;;;;:::i;:::-;;:::i;54431:249::-;;;;;;;;;;-1:-1:-1;54431:249:16;;;;;:::i;:::-;;:::i;:::-;;;;13867:25:37;;;13923:2;13908:18;;13901:34;;;;13840:18;54431:249:16;13693:248:37;28804:357:16;;;;;;;;;;-1:-1:-1;28804:357:16;;;;;:::i;:::-;;:::i;1547:86::-;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1547:86:16;;1501:154:17;;;;;;;;;;-1:-1:-1;1501:154:17;;;;;:::i;:::-;;:::i;22411:820:16:-;;;;;;;;;;-1:-1:-1;22411:820:16;;;;;:::i;:::-;;:::i;62199:114::-;;;;;;;;;;-1:-1:-1;62287:19:16;;-1:-1:-1;;;62287:19:16;;-1:-1:-1;;;;;62287:19:16;62199:114;;1639:126;;;;;;;;;;;;1713:52;1639:126;;1081:158:17;;;;;;;;;;-1:-1:-1;1081:158:17;;;;;:::i;:::-;;:::i;37917:1859:16:-;;;;;;;;;;-1:-1:-1;37917:1859:16;;;;;:::i;:::-;;:::i;26595:292::-;;;;;;;;;;-1:-1:-1;26595:292:16;;;;;:::i;:::-;;:::i;29341:187::-;;;;;;;;;;-1:-1:-1;29341:187:16;;;;;:::i;:::-;;:::i;56906:276::-;;;;;;;;;;-1:-1:-1;56906:276:16;;;;;:::i;:::-;57008:7;57053:30;;;:14;:30;;;;;57144:21;;-1:-1:-1;;;57144:21:16;;;;57124:17;;;:41;;;;57117:48;;56906:276;2492:233:1;;;;;;;;;;-1:-1:-1;2492:233:1;;;;;:::i;:::-;;:::i;49245:141:16:-;;;;;;;;;;;;;:::i;3732:207:0:-;;;;;;;;;;-1:-1:-1;3732:207:0;;;;;:::i;:::-;;:::i;17540:662:16:-;;;;;;;;;;-1:-1:-1;17540:662:16;;;;;:::i;:::-;;:::i;2746:31::-;;;;;;;;;;-1:-1:-1;2746:31:16;;;;-1:-1:-1;;;;;2746:31:16;;;56033:424;;;;;;;;;;-1:-1:-1;56300:22:16;;56033:424;;;-1:-1:-1;;;;;;;;56300:22:16;;;;15879:25:37;;56359::16;;;15935:2:37;15920:18;;15913:34;-1:-1:-1;;;56423:27:16;;;;;;15963:18:37;;;15956:34;15867:2;15852:18;56033:424:16;15677:319:37;30981:903:16;;;;;;;;;;-1:-1:-1;30981:903:16;;;;;:::i;:::-;;:::i;29945:771::-;;;;;;;;;;-1:-1:-1;29945:771:16;;;;;:::i;:::-;;:::i;18824:670::-;;;;;;;;;;-1:-1:-1;18824:670:16;;;;;:::i;:::-;;:::i;2317:49:0:-;;;;;;;;;;-1:-1:-1;2317:49:0;2362:4;2317:49;;32129:207:16;;;;;;;;;;-1:-1:-1;32129:207:16;;;;;:::i;:::-;;:::i;475:60:36:-;;;;;;;;;;;;-1:-1:-1;;475:60:36;;14949:871:16;;;;;;;;;;-1:-1:-1;14949:871:16;;;;;:::i;:::-;;:::i;1975:68::-;;;;;;;;;;;;2016:27;1975:68;;40589:338;;;;;;;;;;-1:-1:-1;40589:338:16;;;;;:::i;:::-;;:::i;1501:164:36:-;;;;;;;;;;;;;:::i;58084:2184:16:-;;;;;;;;;;-1:-1:-1;58084:2184:16;;;;;:::i;:::-;;:::i;:::-;;;;17066:25:37;;;17122:2;17107:18;;17100:34;;;;17150:18;;;17143:34;;;;17208:2;17193:18;;17186:34;;;;17251:3;17236:19;;17229:35;17295:3;17280:19;;17273:35;17339:3;17324:19;;17317:35;17383:3;17368:19;;17361:35;17053:3;17038:19;58084:2184:16;16723:679:37;35953:1708:16;;;;;;;;;;-1:-1:-1;35953:1708:16;;;;;:::i;:::-;;:::i;8731:143::-;;;;;;;;;;-1:-1:-1;8731:143:16;;;;;:::i;:::-;;:::i;2255:49::-;;;;;;;;;;;;;;;6765:822;;;;;;;;;;-1:-1:-1;6765:822:16;;;;;:::i;:::-;;:::i;49775:4225::-;;;;;;;;;;-1:-1:-1;49775:4225:16;;;;;:::i;:::-;;:::i;2893:222:1:-;;;;;;;;;;-1:-1:-1;2893:222:1;;;;;:::i;:::-;;:::i;1455:86:16:-;;;;;;;;;;;;1509:32;1455:86;;61888:82;;;;;;;;;;-1:-1:-1;61957:6:16;;61888:82;;8327:193;;;;;;;;;;;;;:::i;5662:138:0:-;;;;;;;;;;-1:-1:-1;5662:138:0;;;;;:::i;:::-;;:::i;2200:49:16:-;;;;;;;;;;;;;;;2667:31;;;;;;;;;;;;;;;;2496:42;;;;;;;;;;;;;;;2544:29;;;;;;;;;;;;;;;20357:586;;;;;;;;;;-1:-1:-1;20357:586:16;;;;;:::i;:::-;;:::i;2827:25::-;;;;;;;;;;-1:-1:-1;2827:25:16;;;;-1:-1:-1;;;2827:25:16;;;;;;1903:66;;;;;;;;;;;;1943:26;1903:66;;34563:249;;;;;;;;;;;;;:::i;35118:507::-;;;;;;;;;;-1:-1:-1;35118:507:16;;;;;:::i;:::-;;:::i;8044:102::-;;;;;;;;;;-1:-1:-1;8044:102:16;;;;;:::i;:::-;;:::i;45674:1696::-;;;;;;;;;;-1:-1:-1;45674:1696:16;;;;;:::i;:::-;;:::i;2705:34::-;;;;;;;;;;-1:-1:-1;2705:34:16;;;;-1:-1:-1;;;;;2705:34:16;;;;-1:-1:-1;;;2705:34:16;;;;;;;;;-1:-1:-1;;;;;19790:15:37;;;19772:34;;19842:15;;;;19837:2;19822:18;;19815:43;19692:18;2705:34:16;19545:319:37;47745:1001:16;;;;;;;;;;-1:-1:-1;47745:1001:16;;;;;:::i;:::-;;:::i;16254:666::-;;;;;;:::i;:::-;;:::i;1695:212:1:-;1780:4;-1:-1:-1;;;;;;1803:57:1;;-1:-1:-1;;;1803:57:1;;:97;;;1864:36;1888:11;1864:23;:36::i;:::-;1796:104;1695:212;-1:-1:-1;;1695:212:1:o;7663:75:16:-;1425:24;3191:16:0;3202:4;3191:10;:16::i;:::-;7722:9:16::1;:7;:9::i;:::-;7663:75:::0;:::o;32800:1452::-;-1:-1:-1;;;;;;;;;;;3191:16:0;3202:4;3191:10;:16::i;:::-;2192:1:16::1;32991:45:::0;::::1;32987:97;;;33059:14;;-1:-1:-1::0;;;33059:14:16::1;;;;;;;;;;;32987:97;33111:16;33097:30:::0;::::1;33093:82;;;33150:14;;-1:-1:-1::0;;;33150:14:16::1;;;;;;;;;;;33093:82;33184:41;33210:14;33184:25;:41::i;:::-;33235:23;33261:30:::0;;;:14:::1;:30;::::0;;;;;33306:20;;;33302:66:::1;;33356:1;33342:15;;33302:66;33395:18:::0;;-1:-1:-1;;;33395:18:16;::::1;;;:37:::0;::::1;:82:::0;::::1;;;-1:-1:-1::0;33448:14:16;;-1:-1:-1;;;33448:14:16;::::1;;;:29:::0;::::1;33395:82;33378:117;;;33488:7;;;33378:117;33509:18:::0;;-1:-1:-1;;;33509:18:16;::::1;;;:37:::0;::::1;33505:176;;33627:43:::0;;-1:-1:-1;;;;33627:43:16::1;-1:-1:-1::0;;;33627:43:16::1;::::0;::::1;;;::::0;;33505:176:::1;33695:14:::0;;-1:-1:-1;;;33695:14:16;::::1;;;:29:::0;::::1;33691:161;;33805:36:::0;;-1:-1:-1;;;;33805:36:16::1;-1:-1:-1::0;;;33805:36:16::1;::::0;::::1;;;::::0;;33691:161:::1;33867:120;::::0;;13867:25:37;;;13923:2;13908:18;;13901:34;;;33909:14:16;;33867:120:::1;::::0;13840:18:37;33867:120:16::1;;;;;;;34079:133;34143:14;34196:5;34079:33;:133::i;:::-;34222:23;:21;:23::i;:::-;32977:1275;3217:1:0;32800:1452:16::0;;;;:::o;10202:856::-;1036:15:36;:13;:15::i;:::-;10507:22:16::1;10531:15:::0;10550:106:::1;10583:20;10617:8;10639:7;;10550:19;:106::i;:::-;10696:10;::::0;:55:::1;::::0;-1:-1:-1;;;10696:55:16;;::::1;::::0;::::1;13867:25:37::0;;;13908:18;;;13901:34;;;10506:150:16;;-1:-1:-1;10506:150:16;;-1:-1:-1;;;;;;10696:10:16::1;::::0;:35:::1;::::0;13840:18:37;;10696:55:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;10684:9;:67;10667:142;;;10783:15;;-1:-1:-1::0;;;10783:15:16::1;;;;;;;;;;;10667:142;10819:10;::::0;:69:::1;::::0;-1:-1:-1;;;10819:69:16;;10861:10:::1;10819:69;::::0;::::1;21091:74:37::0;21181:18;;;21174:34;;;-1:-1:-1;;;;;10819:10:16;;::::1;::::0;:21:::1;::::0;10849:9:::1;::::0;21064:18:37;;10819:69:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;10899:152;10956:14;10984:9;11007:10;;11031;;10899:43;:152::i;:::-;10496:562;;10202:856:::0;;;;;;;;;:::o;27497:290::-;27635:145;;-1:-1:-1;;;27635:145:16;;27699:14;27635:145;;;21481:25:37;21522:18;;;21515:34;;;-1:-1:-1;;;;;21585:55:37;;21565:18;;;21558:83;27635:11:16;;:50;;21454:18:37;;27635:145:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27497:290;;:::o;5246:136:0:-;4824:7;4919:14;;;-1:-1:-1;;;;;;;;;;;4919:14:0;;;;;:24;;;3191:16;3202:4;3191:10;:16::i;:::-;5350:25:::1;5361:4;5367:7;5350:10;:25::i;6348:245::-:0;-1:-1:-1;;;;;6441:34:0;;966:10:3;6441:34:0;6437:102;;6498:30;;-1:-1:-1;;;6498:30:0;;;;;;;;;;;6437:102;6549:37;6561:4;6567:18;6549:11;:37::i;:::-;;6348:245;;:::o;43115:1322:16:-;1845:52;3191:16:0;3202:4;3191:10;:16::i;:::-;43302:10:16::1;::::0;-1:-1:-1;;;;;43302:10:16::1;43274:25;43322:1109;43338:26:::0;;::::1;43322:1109;;;43385:22;43410:15;;43426:1;43410:18;;;;;;;:::i;:::-;;;;;;;43385:43;;43442:41;43468:14;43442:25;:41::i;:::-;43524:77;::::0;-1:-1:-1;;;43524:77:16;;::::1;::::0;::::1;3547:25:37::0;;;43497:24:16::1;::::0;-1:-1:-1;;;;;43524:31:16;::::1;::::0;::::1;::::0;3520:18:37;;43524:77:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43616:47;::::0;-1:-1:-1;;;43616:47:16;;::::1;::::0;::::1;3547:25:37::0;;;43497:104:16;;-1:-1:-1;;;;;;43616:31:16;::::1;::::0;::::1;::::0;3520:18:37;;43616:47:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;43894:1;43875:16;:20;43871:550;;;44045:42;::::0;-1:-1:-1;;;44045:42:16;;::::1;::::0;::::1;3547:25:37::0;;;-1:-1:-1;;;;;44045:26:16;::::1;::::0;::::1;::::0;3520:18:37;;44045:42:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;44180:156;44252:14;44313:4;44180:33;:156::i;:::-;44359:47;::::0;44391:14;;44359:47:::1;::::0;;;::::1;43871:550;-1:-1:-1::0;;43366:3:16::1;;43322:1109;;41304:750:::0;1713:52;3191:16:0;3202:4;3191:10;:16::i;:::-;41502:41:16::1;41528:14;41502:25;:41::i;:::-;41557:6;41567:1;41557:11:::0;41553:39:::1;;41577:15;;-1:-1:-1::0;;;41577:15:16::1;;;;;;;;;;;41553:39;41602:10;::::0;-1:-1:-1;;;;;41602:10:16::1;:22;41638:14:::0;41666:33:::1;41675:24;41666:6:::0;:33:::1;:::i;:::-;41602:107;::::0;-1:-1:-1;;;;;;41602:107:16::1;::::0;;;;;;::::1;::::0;::::1;13867:25:37::0;;;;13908:18;;;13901:34;13840:18;;41602:107:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;41724:113:16::1;::::0;;13867:25:37;;;13923:2;13908:18;;13901:34;;;41770:14:16;;-1:-1:-1;41724:113:16::1;::::0;-1:-1:-1;13840:18:37;41724:113:16::1;;;;;;;41915:132;41979:14;42032:4;41915:33;:132::i;55175:203::-:0;55290:4;55313:19;55290:4;73578:3;73560:21;;;73559:34;;55333:37;55313:58;;;;;;;;;;;-1:-1:-1;55313:58:16;;;;;55175:203;-1:-1:-1;;;55175:203:16:o;25587:824::-;25780:57;25822:14;25780:41;:57::i;:::-;25848:10;;;;25990:30;;;:14;:30;;;;;;;:44;;;;25848:291;;-1:-1:-1;;;25848:291:16;;-1:-1:-1;;;;;25848:10:16;;;;:30;;:291;;25909:14;;25950:11;;25990:44;;26069:19;;26116:12;;;;25848:291;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26272:132;26336:14;26389:4;26272:33;:132::i;21231:590::-;21392:41;21418:14;21392:25;:41::i;:::-;21443:10;;:132;;-1:-1:-1;;;21443:132:16;;-1:-1:-1;;;;;21443:10:16;;;;:24;;:132;;21481:10;;21505:14;;21533:12;;21559:6;;21443:132;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21682;21746:14;21799:4;21682:33;:132::i;42322:567::-;1713:52;3191:16:0;3202:4;3191:10;:16::i;:::-;42493:41:16::1;42519:14;42493:25;:41::i;:::-;42544:10;::::0;:55:::1;::::0;-1:-1:-1;;;42544:55:16;;::::1;::::0;::::1;13867:25:37::0;;;13908:18;;;13901:34;;;-1:-1:-1;;;;;42544:10:16;;::::1;::::0;:31:::1;::::0;13840:18:37;;42544:55:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;42649:14;42615:57;42665:6;42615:57;;;;3547:25:37::0;;3535:2;3520:18;;3401:177;42615:57:16::1;;;;;;;;42750:132;42814:14;42867:4;42750:33;:132::i;62855:579::-:0;63032:19;;62959:32;;-1:-1:-1;;;63032:19:16;;-1:-1:-1;;;;;63032:19:16;63065:28;;;;;:42;;-1:-1:-1;63097:10:16;;63065:42;63061:71;;;-1:-1:-1;;63116:16:16;;;63130:1;63116:16;;;;;;;;63109:23;;63061:71;63142:16;63169:27;63190:6;63169:18;:27;:::i;:::-;63161:5;:35;:97;;63231:27;63252:6;63231:18;:27;:::i;:::-;63161:97;;;63211:5;63161:97;63142:116;;63300:8;-1:-1:-1;;;;;63286:23:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63286:23:16;;63268:41;;63324:9;63319:109;63343:15;:22;63339:1;:26;63319:109;;;63407:10;63416:1;63407:6;:10;:::i;:::-;63386:15;63402:1;63386:18;;;;;;;;:::i;:::-;;;;;;;;;;:31;63367:3;;63319:109;;;;62993:441;;62855:579;;;;:::o;61263:::-;61417:17;61436:23;61471:59;61492:14;61508:10;61520:9;61471:20;:59::i;:::-;61562:38;61590:9;61562:27;:38::i;:::-;61541:59;;-1:-1:-1;61541:59:16;-1:-1:-1;61669:166:16;61707:14;61735:10;61759:9;61541:59;;61824:1;61669:24;:166::i;:::-;61263:579;;;;;;:::o;23825:825::-;24018:57;24060:14;24018:41;:57::i;:::-;24086:10;;;;24229:30;;;:14;:30;;;;;;;:44;;;;24086:292;;-1:-1:-1;;;24086:292:16;;-1:-1:-1;;;;;24086:10:16;;;;:29;;:292;;24146:14;;24188:12;;24229:44;;24308:19;;24355:12;;;;24086:292;;;:::i;27984:228::-;28089:116;;-1:-1:-1;;;28089:116:16;;28153:14;28089:116;;;13867:25:37;13908:18;;;13901:34;;;28089:11:16;;:50;;13840:18:37;;28089:116:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;679:108:17;722:16;:14;:16::i;:::-;748:17;:30;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55621:207:16;55738:4;55761:21;55738:4;73578:3;73560:21;;;73559:34;;55783:37;73425:175;19667:437;19738:41;19764:14;19738:25;:41::i;:::-;19789:10;;:69;;-1:-1:-1;;;19789:69:16;;19831:10;19789:69;;;21091:74:37;21181:18;;;21174:34;;;-1:-1:-1;;;;;19789:10:16;;;;:21;;19819:9;;21064:18:37;;19789:69:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19965:132;20029:14;20082:4;19965:33;:132::i;1298:142:36:-;1356:7;1382:51;372:52;755:15:34;;618:168;1382:51:36;1375:58;;1298:142;:::o;60499:307:16:-;60639:12;60663:59;60684:14;60700:10;60712:9;60663:20;:59::i;:::-;60740;60761:14;60777:10;60789:9;60740:20;:59::i;:::-;60733:66;60499:307;-1:-1:-1;;;;60499:307:16:o;1925:156:17:-;2000:16;:14;:16::i;:::-;2026:48;;-1:-1:-1;;;2026:48:17;;-1:-1:-1;;;;;21109:55:37;;2026:48:17;;;21091:74:37;21181:18;;;21174:34;;;2026:17:17;;:32;;21064:18:37;;2026:48:17;20917:297:37;54819:117:16;-1:-1:-1;;;;;7175:17:31;;54883:5:16;7175:17:31;;;:10;:17;;;;;;54907:22:16;7059:140:31;12571:863:16;1036:15:36;:13;:15::i;:::-;12921:22:16::1;12945:15:::0;12964:106:::1;12997:20;13031:8;13053:7;;12964:19;:106::i;:::-;12920:150;;;;13081:14;13098:10;;;;;;;;;-1:-1:-1::0;;;;;13098:10:16::1;-1:-1:-1::0;;;;;13098:35:16::1;;13147:9;13170:7;13098:89;;;;;;;;;;;;;;;13867:25:37::0;;;13923:2;13908:18;;13901:34;13855:2;13840:18;;13693:248;13098:89:16::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;13197:10;::::0;:67:::1;::::0;-1:-1:-1;;;13197:67:16;;13081:106;;-1:-1:-1;;;;;;13197:10:16::1;::::0;:23:::1;::::0;:67:::1;::::0;13221:10:::1;::::0;13233:14;;13081:106;;13257:6;;13197:67:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;13275:152;13332:14;13360:9;13383:10;;13407;;13275:43;:152::i;:::-;12910:524;;;12571:863:::0;;;;;;;;;;:::o;28394:200::-;28478:109;;-1:-1:-1;;;28478:109:16;;28535:14;28478:109;;;13867:25:37;13908:18;;;13901:34;;;28478:11:16;;:43;;13840:18:37;;28478:109:16;13693:248:37;27085:230:16;27191:117;;-1:-1:-1;;;27191:117:16;;27256:14;27191:117;;;13867:25:37;13908:18;;;13901:34;;;27191:11:16;;:51;;13840:18:37;;27191:117:16;13693:248:37;44676:522:16;44785:40;44810:14;44785:24;:40::i;:::-;44835:10;;:70;;-1:-1:-1;;;44835:70:16;;;;;3547:25:37;;;-1:-1:-1;;;;;44835:10:16;;;;:34;;44878:9;;3520:18:37;;44835:70:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44982:132;45046:14;45099:4;44982:33;:132::i;:::-;45165:14;45129:62;45181:9;45129:62;;;;3547:25:37;;3535:2;3520:18;;3401:177;45129:62:16;;;;;;;;44676:522;:::o;54431:249::-;54595:78;;-1:-1:-1;;;54595:78:16;;:12;:78;;;15879:25:37;54627:14:16;15920:18:37;;;15913:34;15963:18;;;15956:34;;;54508:15:16;;;;54595:18;;;;15852::37;;54595:78:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54563:110;;;;-1:-1:-1;54431:249:16;-1:-1:-1;;54431:249:16:o;28804:357::-;-1:-1:-1;;;;;28934:24:16;;28930:81;;28981:19;;-1:-1:-1;;;28981:19:16;;;;;;;;;;;28930:81;29021:133;;-1:-1:-1;;;29021:133:16;;29078:14;29021:133;;;21481:25:37;21522:18;;;21515:34;;;-1:-1:-1;;;;;21585:55:37;;21565:18;;;21558:83;29021:11:16;;:43;;21454:18:37;;29021:133:16;21219:428:37;1501:154:17;1575:16;:14;:16::i;:::-;1601:47;;-1:-1:-1;;;1601:47:17;;-1:-1:-1;;;;;21109:55:37;;1601:47:17;;;21091:74:37;21181:18;;;21174:34;;;1601:17:17;;:31;;21064:18:37;;1601:47:17;20917:297:37;22411:820:16;22602:57;22644:14;22602:41;:57::i;:::-;22670:10;;;;22810:30;;;:14;:30;;;;;;;:44;;;;22670:289;;-1:-1:-1;;;22670:289:16;;-1:-1:-1;;;;;22670:10:16;;;;:28;;:289;;22729:14;;22770:11;;22810:44;;22889:19;;22936:12;;;;22670:289;;;:::i;1081:158:17:-;1161:16;:14;:16::i;:::-;1187:45;;-1:-1:-1;;;1187:45:17;;-1:-1:-1;;;;;21109:55:37;;1187:45:17;;;21091:74:37;21181:18;;;21174:34;;;1187:17:17;;:30;;21064:18:37;;1187:45:17;20917:297:37;37917:1859:16;38049:40;38074:14;38049:24;:40::i;:::-;38099:23;38125:30;;;:14;:30;;;;;38183:21;;-1:-1:-1;;;38183:21:16;;;;38170:34;;38166:98;;;38227:26;;-1:-1:-1;;;38227:26:16;;;;;;;;;;;38166:98;38478:17;;38333:27;;38363:142;;38403:14;;38431:10;;38455:9;;38478:17;;38363:26;:142::i;:::-;38333:172;;38895:22;38939:9;38920:16;;:28;;;;:::i;:::-;38895:53;-1:-1:-1;38962:19:16;;38958:160;;38997:10;;:52;;-1:-1:-1;;;38997:52:16;;;;;13867:25:37;;;13908:18;;;13901:34;;;-1:-1:-1;;;;;38997:10:16;;;;:20;;13840:18:37;;38997:52:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;39068:39:16;;39092:14;;-1:-1:-1;39068:39:16;;-1:-1:-1;39068:39:16;;;38958:160;39197:47;;-1:-1:-1;;39197:47:16;;;;;;;39259:65;;3547:25:37;;;39288:14:16;;39259:65;;3535:2:37;3520:18;39259:65:16;;;;;;;39404:48;;-1:-1:-1;;;;39404:48:16;-1:-1:-1;;;39404:48:16;;;;;;;39467:66;;3547:25:37;;;39497:14:16;;39467:66;;3535:2:37;3520:18;39467:66:16;;;;;;;39603:133;39667:14;39720:5;39603:33;:133::i;:::-;39746:23;:21;:23::i;26595:292::-;26734:146;;-1:-1:-1;;;26734:146:16;;26799:14;26734:146;;;21481:25:37;21522:18;;;21515:34;;;-1:-1:-1;;;;;21585:55:37;;21565:18;;;21558:83;26734:11:16;;:51;;21454:18:37;;26734:146:16;21219:428:37;29341:187:16;-1:-1:-1;;;;;;;;;;;3191:16:0;3202:4;3191:10;:16::i;:::-;29450:5:16::1;-1:-1:-1::0;;;;;29450:20:16::1;;29479:10;;;;;;;;;-1:-1:-1::0;;;;;29479:10:16::1;-1:-1:-1::0;;;;;29479:25:16::1;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;29450:71;::::0;-1:-1:-1;;;;;;29450:71:16::1;::::0;;;;;;-1:-1:-1;;;;;21109:55:37;;;29450:71:16::1;::::0;::::1;21091:74:37::0;21181:18;;;21174:34;;;21064:18;;29450:71:16::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;2492:233:1:-:0;2573:7;2688:20;;;1403:38;2688:20;;;;;;;:30;;2712:5;2688:23;:30::i;49245:141:16:-;-1:-1:-1;;;;;;;;;;;3191:16:0;3202:4;3191:10;:16::i;:::-;49356:23:16::1;49377:1;49356:20;:23::i;3732:207:0:-:0;3809:4;3901:14;;;-1:-1:-1;;;;;;;;;;;3901:14:0;;;;;;;;-1:-1:-1;;;;;3901:31:0;;;;;;;;;;;;;;;3732:207::o;17540:662:16:-;1036:15:36;:13;:15::i;:::-;17788:40:16::1;17813:14;17788:24;:40::i;:::-;17856:10;::::0;:98:::1;::::0;-1:-1:-1;;;17856:98:16;;::::1;::::0;::::1;13867:25:37::0;;;13908:18;;;13901:34;;;17839:14:16::1;::::0;-1:-1:-1;;;;;17856:10:16::1;::::0;:37:::1;::::0;13840:18:37;;17856:98:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;17965:10;::::0;:67:::1;::::0;-1:-1:-1;;;17965:67:16;;17839:115;;-1:-1:-1;;;;;;17965:10:16::1;::::0;:23:::1;::::0;:67:::1;::::0;17989:10:::1;::::0;18001:14;;17839:115;;18025:6;;17965:67:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;18043:152;18100:14;18128:9;18151:10;;18175;;18043:43;:152::i;:::-;17778:424;17540:662:::0;;;;;;;:::o;30981:903::-;-1:-1:-1;;;;;;;;;;;3191:16:0;3202:4;3191:10;:16::i;:::-;31160:25:16::1;31188:115;31242:15;;31271:22;;31188:40;:115::i;:::-;31160:143;;31319:9;31314:531;31338:17;31334:1;:21;31314:531;;;883:1:35::0;871:14;;855:31;;842:45;837:3;833:55;967:2;955:15;;936:35;;923:49;918:3;914:59;31642:192:16::1;833:55:35::0;914:59;31394:22:16::1;31642:28;:192::i;:::-;-1:-1:-1::0;;31357:3:16::1;;31314:531;;;;31854:23;:21;:23::i;29945:771::-:0;-1:-1:-1;;;;;;;;;;;3191:16:0;3202:4;3191:10;:16::i;:::-;30122:25:16::1;30150:114;30204:15;;30233:21;;30150:40;:114::i;:::-;30122:142;;30280:9;30275:402;30299:17;30295:1;:21;30275:402;;;883:1:35::0;871:14;;855:31;;842:45;837:3;833:55;967:2;955:15;;936:35;;923:49;918:3;914:59;30601:65:16::1;833:55:35::0;914:59;30601:27:16::1;:65::i;:::-;-1:-1:-1::0;;30318:3:16::1;;30275:402;;18824:670:::0;1036:15:36;:13;:15::i;:::-;19073:40:16::1;19098:14;19073:24;:40::i;:::-;19141:10;::::0;:104:::1;::::0;-1:-1:-1;;;19141:104:16;;::::1;::::0;::::1;13867:25:37::0;;;13908:18;;;13901:34;;;19124:14:16::1;::::0;-1:-1:-1;;;;;19141:10:16::1;::::0;:43:::1;::::0;13840:18:37;;19141:104:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;19256:10;::::0;:68:::1;::::0;-1:-1:-1;;;19256:68:16;;19124:121;;-1:-1:-1;;;;;;19256:10:16::1;::::0;:24:::1;::::0;:68:::1;::::0;19281:10:::1;::::0;19293:14;;19124:121;;19317:6;;19256:68:::1;;;:::i;32129:207::-:0;-1:-1:-1;;;;;;;;;;;3191:16:0;3202:4;3191:10;:16::i;:::-;32315:14:16::1;;-1:-1:-1::0;;;32315:14:16::1;;;;;;;;;;;14949:871:::0;1036:15:36;:13;:15::i;:::-;15300:22:16::1;15324:15:::0;15343:106:::1;15376:20;15410:8;15432:7;;15343:19;:106::i;:::-;15299:150;;;;15460:14;15477:10;;;;;;;;;-1:-1:-1::0;;;;;15477:10:16::1;-1:-1:-1::0;;;;;15477:41:16::1;;15532:9;15555:7;15477:95;;;;;;;;;;;;;;;13867:25:37::0;;;13923:2;13908:18;;13901:34;13855:2;13840:18;;13693:248;15477:95:16::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;15582:10;::::0;:68:::1;::::0;-1:-1:-1;;;15582:68:16;;15460:112;;-1:-1:-1;;;;;;15582:10:16::1;::::0;:24:::1;::::0;:68:::1;::::0;15607:10:::1;::::0;15619:14;;15460:112;;15643:6;;15582:68:::1;;;:::i;40589:338::-:0;40656:132;40720:14;40773:4;40656:33;:132::i;:::-;40866:54;;-1:-1:-1;;;40866:54:16;;:12;:54;;;15879:25:37;40889:14:16;15920:18:37;;;15913:34;15963:18;;;15956:34;;;40866:22:16;;;;15852:18:37;;40866:54:16;15677:319:37;1501:164:36;1542:4;1607:51;372:52;755:15:34;;618:168;1607:51:36;1577:15;:81;1558:100;;1501:164;:::o;58084:2184:16:-;58214:23;58601:30;;;:14;:30;;;;;;58669:10;;:76;;-1:-1:-1;;;58669:76:16;;;;;3547:25:37;;;58214:23:16;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58669:10:16;;;;:38;;3520:18:37;;58669:76:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58819:21;;58641:104;;-1:-1:-1;58755:29:16;;58787:53;;58819:21;-1:-1:-1;;;58819:21:16;;;;;58787:17;:53;:::i;:::-;58755:85;;;;58945:21;58925:17;:41;:106;;;;-1:-1:-1;58982:18:16;;-1:-1:-1;;;58982:18:16;;:49;:18;2192:1;58982:49;58925:106;58908:985;;;59197:14;;2192:1;;-1:-1:-1;59167:193:16;;59197:14;-1:-1:-1;;;59197:14:16;;;;;-1:-1:-1;;;59277:21:16;;;;59233:17;;;:65;:109;;;;59167:8;:193::i;:::-;59143:217;;58908:985;;;59480:21;59460:17;:41;59456:437;;;59688:21;;2192:1;;-1:-1:-1;59688:21:16;-1:-1:-1;;;59688:21:16;;;;59648:17;;;:61;;;;:101;;;;;-1:-1:-1;59456:437:16;;;59812:18;;-1:-1:-1;;;59812:18:16;;;;;-1:-1:-1;;;;59868:14:16;;;;;-1:-1:-1;59456:437:16;-1:-1:-1;;59925:23:16;;60117:18;;;;;58084:2184;;;;-1:-1:-1;59925:23:16;-1:-1:-1;;;59925:23:16;;;;;;;;;-1:-1:-1;60117:18:16;;;;-1:-1:-1;;;;60172:21:16;;;;;-1:-1:-1;;;;60232:29:16;;;;;-1:-1:-1;58084:2184:16;-1:-1:-1;;58084:2184:16:o;35953:1708::-;-1:-1:-1;;;;;;;;;;;3191:16:0;3202:4;3191:10;:16::i;:::-;36136:25:16::1;36164:116;36218:15;;36247:23;;36164:40;:116::i;:::-;36136:144;;36296:9;36291:1330;36315:17;36311:1;:21;36291:1330;;;883:1:35::0;871:14;;855:31;;842:45;837:3;833:55;967:2;955:15;;936:35;;923:49;918:3;914:59;36622:41:16::1;833:55:35::0;36622:25:16::1;:41::i;:::-;36678:23;36704:30:::0;;;:14:::1;:30;::::0;;;;36779:18;;-1:-1:-1;;;36779:18:16;::::1;;;36753:44:::0;::::1;36749:113;;36824:23;;-1:-1:-1::0;;;36824:23:16::1;;;;;;;;;;;36749:113;36905:21:::0;;-1:-1:-1;;;36905:21:16;::::1;;;36880:46:::0;::::1;36876:115;;;36953:23;;-1:-1:-1::0;;;36953:23:16::1;;;;;;;;;;;36876:115;37070:51:::0;;-1:-1:-1;;;;37070:51:16::1;-1:-1:-1::0;;;37070:51:16::1;::::0;::::1;;;::::0;;37140:115:::1;::::0;3547:25:37;;;37187:14:16;;37140:115:::1;::::0;3535:2:37;3520:18;37140:115:16::1;;;;;;;37355:47;::::0;37387:14;;37355:47:::1;::::0;;;::::1;37465:145;37533:14;37590:5;37465:33;:145::i;:::-;36339:1282;;;36334:3;;;;;36291:1330;;8731:143:::0;1509:32;3191:16:0;3202:4;3191:10;:16::i;:::-;8839:28:16::1;8860:6;8839:20;:28::i;:::-;8731:143:::0;;:::o;6765:822::-;8870:21:2;4302:15;;-1:-1:-1;;;4302:15:2;;;;4301:16;;-1:-1:-1;;;;;4348:14:2;4158:30;4726:16;;:34;;;;;4746:14;4726:34;4706:54;;4770:17;4790:11;-1:-1:-1;;;;;4790:16:2;4805:1;4790:16;:50;;;;-1:-1:-1;4818:4:2;4810:25;:30;4790:50;4770:70;;4856:12;4855:13;:30;;;;;4873:12;4872:13;4855:30;4851:91;;;4908:23;;-1:-1:-1;;;4908:23:2;;;;;;;;;;;4851:91;4951:18;;-1:-1:-1;;4951:18:2;4968:1;4951:18;;;4979:67;;;;5013:22;;-1:-1:-1;;;;5013:22:2;-1:-1:-1;;;5013:22:2;;;4979:67;-1:-1:-1;;;;;6945:25:16;::::1;6941:61;;6979:23;;-1:-1:-1::0;;;6979:23:16::1;;;;;;;;;;;6941:61;-1:-1:-1::0;;;;;7016:19:16;::::1;7012:50;;7044:18;;-1:-1:-1::0;;;7044:18:16::1;;;;;;;;;;;7012:50;7073:32;:30;:32::i;:::-;7116:10;:39:::0;;-1:-1:-1;;;;;7116:39:16;;::::1;-1:-1:-1::0;;;;;;7116:39:16;;::::1;;::::0;;;7228:13:::1;:48:::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;7287:37:::1;7116:10;7318:5:::0;7287:10:::1;:37::i;:::-;;7334:70;-1:-1:-1::0;;;;;;;;;;;7374:12:16::1;-1:-1:-1::0;;;;;7374:26:16::1;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7334:10;:70::i;:::-;;7415:39;7436:17;7415:20;:39::i;:::-;7539:41;-1:-1:-1::0;;7539:9:16::1;:41::i;:::-;5070:14:2::0;5066:101;;;5100:23;;-1:-1:-1;;;;5100:23:2;;;5142:14;;-1:-1:-1;26739:50:37;;5142:14:2;;26727:2:37;26712:18;5142:14:2;;;;;;;5066:101;4092:1081;;;;;6765:822:16;;;;:::o;49775:4225::-;49957:23;49982;-1:-1:-1;;;;;;;;;;;3191:16:0;3202:4;3191:10;:16::i;:::-;50048:42:16::1;50076:13;50048:27;:42::i;:::-;50021:69:::0;;-1:-1:-1;50021:69:16;-1:-1:-1;50100:55:16;;50124:31:::1;50100:55;50281:12;7036:9:31::0;-1:-1:-1;;;;;7036:9:31;50166:20:16::1;7025:21:31::0;;;:10;:21;;;;;;50189:13:16;;50166:20;50250:3363:::1;757:23:31::0;;50250:3363:16::1;;50477:12;50492:11;:4;995:3:31::0;991:14;;911:102;50492:11:16::1;-1:-1:-1::0;;;;;50477:26:16;;::::1;50521:19;50598:20:::0;;;:14:::1;:20;::::0;;;;50696:29;;50477:26;;-1:-1:-1;1122:11:31;;;;;;;;50598:20:16;50657:134:::1;::::0;50687:52:::1;::::0;-1:-1:-1;;;50696:29:16;::::1;;;1122:11:31::0;50687:8:16::1;:52::i;:::-;50761:12;50657:8;:134::i;:::-;50637:154;;51039:9;51024:12;:24;:52;;;;51065:11;51052:9;:24;51024:52;51020:1118;;;51260:16;::::0;;::::1;:39:::0;;::::1;-1:-1:-1::0;;;51260:39:16;;::::1;::::0;::::1;::::0;;::::1;::::0;;::::1;;-1:-1:-1::0;;51260:39:16;;::::1;;::::0;;51404:22:::1;::::0;:20:::1;:22::i;:::-;;51020:1118;;;51727:16;::::0;::::1;:37:::0;;::::1;-1:-1:-1::0;;;51727:37:16;;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;;-1:-1:-1::0;;51727:37:16;;::::1;::::0;;;::::1;::::0;;;51950::::1;::::0;:4;;51963:23;;::::1;::::0;51950:12:::1;:37;:::i;:::-;52075:12;52094:17:::0;-1:-1:-1;;;;;52094:17:16::1;52075:37;::::0;;;:18;:37:::1;::::0;;;;:44;;;51943;-1:-1:-1;51020:1118:16::1;52160:9;52173:1;52160:14:::0;52156:69:::1;;52198:8;;;;;;52156:69;52382:21:::0;;52310:243:::1;::::0;52356:4;;-1:-1:-1;;;52382:21:16;::::1;;;52425:9:::0;52456:10;52488;52520:15;52310:24:::1;:243::i;:::-;52771:42:::0;;::::1;-1:-1:-1::0;;;52771:42:16;;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;-1:-1:-1::0;;52771:42:16;;::::1;::::0;;;::::1;::::0;;;52837:119:::1;::::0;52917:21;;::::1;;26945:42:37::0;;52658:28:16;;::::1;::::0;52891:4;;52837:119:::1;::::0;26933:2:37;26918:18;52837:119:16::1;;;;;;;53259:29:::0;;::::1;-1:-1:-1::0;;;53259:29:16;;::::1;::::0;::::1;:69:::0;;::::1;53346:40:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;;53346:40:16;;::::1;::::0;;;::::1;::::0;;53409:50:::1;::::0;26945:42:37;;;53259:69:16;53444:4;;53409:50:::1;::::0;26933:2:37;26918:18;53409:50:16::1;;;;;;;53493:9;53477:25;;;;53524:12;53540:1;53524:17:::0;53520:69:::1;;53565:5;;;;;;;53520:69;50449:3154;;;;;50250:3363;-1:-1:-1::0;50348:12:16::1;7036:9:31::0;-1:-1:-1;;;;;7036:9:31;7001:5;7025:21;;;:10;:21;;;;;;50250:3363:16::1;;;;53645:13;53626:15;:32;53622:85;;53681:15;;-1:-1:-1::0;;;53681:15:16::1;;;;;;;;;;;53622:85;53833:27;:52:::0;;-1:-1:-1;;;;;;;;53833:52:16;;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;;53899:50:::0;;;;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;53899:50:16;;;-1:-1:-1;;53899:50:16;;;;;;;::::1;::::0;;53970:23:::1;:21;:23::i;:::-;50011:3989;;3217:1:0;49775:4225:16::0;;;;;;;:::o;2893:222:1:-;2964:7;3079:20;;;1403:38;3079:20;;;;;;;:29;;:27;:29::i;:::-;3072:36;2893:222;-1:-1:-1;;;2893:222:1:o;8327:193:16:-;1509:32;3191:16:0;3202:4;3191:10;:16::i;:::-;8413:13:16::1;::::0;-1:-1:-1;;;8413:13:16;::::1;;;8409:44;;;8435:18;;-1:-1:-1::0;;;8435:18:16::1;;;;;;;;;;;8409:44;8463:13;:20:::0;;-1:-1:-1;;;;8463:20:16::1;-1:-1:-1::0;;;8463:20:16::1;::::0;;8498:15:::1;::::0;::::1;::::0;8463:20;;8498:15:::1;8327:193:::0;:::o;5662:138:0:-;4824:7;4919:14;;;-1:-1:-1;;;;;;;;;;;4919:14:0;;;;;:24;;;3191:16;3202:4;3191:10;:16::i;:::-;5767:26:::1;5779:4;5785:7;5767:11;:26::i;20357:586:16:-:0;20516:41;20542:14;20516:25;:41::i;:::-;20567:10;;:130;;-1:-1:-1;;;20567:130:16;;-1:-1:-1;;;;;20567:10:16;;;;:23;;:130;;20604:10;;20628:14;;20656:11;;20681:6;;20567:130;;;:::i;34563:249::-;-1:-1:-1;;;;;;;;;;;3191:16:0;3202:4;3191:10;:16::i;35118:507:16:-;-1:-1:-1;;;;;;;;;;;3191:16:0;3202:4;3191:10;:16::i;:::-;35327:179:16::1;35386:14;35437:25;35491:4;35327:28;:179::i;:::-;35516:69;35544:14;35560:24;35516:27;:69::i;:::-;35595:23;:21;:23::i;8044:102::-:0;1358:23;3191:16:0;3202:4;3191:10;:16::i;:::-;8120:19:16::1;8130:8;8120:9;:19::i;45674:1696::-:0;1943:26;3191:16:0;3202:4;3191:10;:16::i;:::-;45855:41:16::1;45881:14;45855:25;:41::i;:::-;45906:23;45932:30:::0;;;:14:::1;:30;::::0;;;;45988:21;;-1:-1:-1;;;45988:21:16;::::1;;;45976:33:::0;::::1;45972:97;;46032:26;;-1:-1:-1::0;;;46032:26:16::1;;;;;;;;;;;45972:97;73578:3:::0;73560:21;;;73559:34;;46079:15:::1;46148:30:::0;;;:21:::1;:30;::::0;;;;;::::1;;46144:86;;;46201:18;;-1:-1:-1::0;;;46201:18:16::1;;;;;;;;;;;46144:86;46240:30;::::0;;;:21:::1;:30;::::0;;;;:37;;-1:-1:-1;;46240:37:16::1;46273:4;46240:37:::0;;::::1;::::0;;;46311:23;;::::1;-1:-1:-1::0;;;46311:23:16;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;;-1:-1:-1::0;;46311:23:16;;::::1;;::::0;;46377:49:::1;::::0;46398:14;;46414:8;;46377:20:::1;:49::i;:::-;46355:71;;46461:14;46441:61;46477:8;46487:6;46495;46441:61;;;;;;;;:::i;:::-;;;;;;;;46517:9;46513:479;;;46546:28;::::0;;;:19:::1;:28;::::0;;;;;::::1;;46542:273;;;46684:24;46674:34;;;;46542:273;;;46765:28;::::0;;;:19:::1;:28;::::0;;;;:35;;-1:-1:-1;;46765:35:16::1;46796:4;46765:35;::::0;;46542:273:::1;46940:10;::::0;:41:::1;::::0;-1:-1:-1;;;46940:41:16;;::::1;::::0;::::1;3547:25:37::0;;;-1:-1:-1;;;;;46940:10:16;;::::1;::::0;:25:::1;::::0;3520:18:37;;46940:41:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;46513:479;47021:6;2090:8;47006:21;47002:152;;;47071:10;::::0;:58:::1;::::0;-1:-1:-1;;;47071:58:16;;::::1;::::0;::::1;13867:25:37::0;;;2090:8:16::1;47107:21:::0;;::::1;13908:18:37::0;;;13901:34;-1:-1:-1;;;;;47071:10:16;;::::1;::::0;:19:::1;::::0;13840:18:37;;47071:58:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;47002:152;47231:132;47295:14;47348:4;47231:33;:132::i;47745:1001::-:0;1943:26;3191:16:0;3202:4;3191:10;:16::i;:::-;47883:41:16::1;47909:14;47883:25;:41::i;:::-;47934:23;47960:30:::0;;;:14:::1;:30;::::0;;;;48016:21;;-1:-1:-1;;;48016:21:16;::::1;;;48004:33:::0;::::1;48000:97;;48060:26;;-1:-1:-1::0;;;48060:26:16::1;;;;;;;;;;;48000:97;73578:3:::0;73560:21;;;73559:34;;48107:15:::1;48177:28:::0;;;:19:::1;:28;::::0;;;;;::::1;;48173:84;;;48228:18;;-1:-1:-1::0;;;48228:18:16::1;;;;;;;;;;;48173:84;48267:28;::::0;;;:19:::1;:28;::::0;;;;:35;;-1:-1:-1;;48267:35:16::1;48298:4;48267:35:::0;;::::1;::::0;;;48335:49:::1;::::0;48356:14;;48372:8;;48335:20:::1;:49::i;:::-;48313:71;;48424:14;48399:58;48440:8;48450:6;48399:58;;;;;;;:::i;:::-;;;;;;;;48468:10;::::0;:61:::1;::::0;-1:-1:-1;;;48468:61:16;;::::1;::::0;::::1;13867:25:37::0;;;48504:24:16::1;13908:18:37::0;;;13901:34;-1:-1:-1;;;;;48468:10:16;;::::1;::::0;:19:::1;::::0;13840:18:37;;48468:61:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;48607:132;48671:14;48724:4;48607:33;:132::i;16254:666::-:0;1036:15:36;:13;:15::i;:::-;16457:40:16::1;16482:14;16457:24;:40::i;:::-;16549:10;::::0;:64:::1;::::0;-1:-1:-1;;;16549:64:16;;::::1;::::0;::::1;13867:25:37::0;;;13908:18;;;13901:34;;;-1:-1:-1;;;;;16549:10:16;;::::1;::::0;:37:::1;::::0;13840:18:37;;16549:64:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;16525:9;:88;16508:163;;;16645:15;;-1:-1:-1::0;;;16645:15:16::1;;;;;;;;;;;16508:163;16681:10;::::0;:69:::1;::::0;-1:-1:-1;;;16681:69:16;;16723:10:::1;16681:69;::::0;::::1;21091:74:37::0;21181:18;;;21174:34;;;-1:-1:-1;;;;;16681:10:16;;::::1;::::0;:21:::1;::::0;16711:9:::1;::::0;21064:18:37;;16681:69:16::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;16761:152;16818:14;16846:9;16869:10;;16893;;16761:43;:152::i;3443:202:0:-:0;3528:4;-1:-1:-1;;;;;;3551:47:0;;-1:-1:-1;;;3551:47:0;;:87;;-1:-1:-1;;;;;;;;;;1133:40:4;;;3602:36:0;1034:146:4;4148:103:0;4214:30;4225:4;966:10:3;4214::0;:30::i;1671:159:36:-;1709:14;:12;:14::i;:::-;1783:15;372:52;400:22:34;1814:9:36;;;;;;;1671:159::o;72729:181:16:-;72833:19;;-1:-1:-1;;;72833:19:16;;-1:-1:-1;;;;;72833:19:16;72816:36;;72812:49;;;72729:181;:::o;72812:49::-;72877:26;;-1:-1:-1;;;72877:26:16;;;;;;;;;;;70030:2004;70168:23;70194:30;;;:14;:30;;;;;70275:21;;70194:30;;70168:23;70254:42;;70275:21;-1:-1:-1;;;70275:21:16;;;;;-1:-1:-1;;;70254:18:16;;;:42;:::i;:::-;70329:10;;:47;;-1:-1:-1;;;70329:47:16;;;;;3547:25:37;;;70235:61:16;;;;;;-1:-1:-1;70306:20:16;;-1:-1:-1;;;;;70329:10:16;;;;:31;;3520:18:37;;70329:47:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;70444:21;;70306:70;;-1:-1:-1;70401:20:16;;70424:41;;70444:21;-1:-1:-1;;;70444:21:16;;;;;70424:17;:41;:::i;:::-;70401:64;;;;70499:12;70483;:28;70479:215;;70542:1;70531:12;;70479:215;;;70603:18;;70583:38;;70603:18;-1:-1:-1;;;70603:18:16;;;;;70583:17;:38;:::i;:::-;70568:53;;:12;:53;70564:130;;;70652:27;70667:12;70652;:27;:::i;:::-;70641:38;;70564:130;-1:-1:-1;70718:23:16;;-1:-1:-1;;;70718:23:16;;;;:27;;;;:43;;;70760:1;70749:8;:12;70718:43;70714:86;;;70788:1;70777:12;;70714:86;70814:18;;-1:-1:-1;;;70814:18:16;;;;:22;;;;:38;;;70851:1;70840:8;:12;70814:38;70810:449;;;70973:21;;;-1:-1:-1;;;70973:21:16;;;;-1:-1:-1;;;70929:21:16;;;;:65;70896:98;;;71023:211;;-1:-1:-1;;;71053:14:16;;;;:39;-1:-1:-1;71053:133:16;;71185:1;71053:133;;;71119:14;;-1:-1:-1;;;71119:14:16;;;;:39;;;71053:133;71208:8;71023;:211::i;:::-;71012:222;;70868:381;70810:449;71273:29;;-1:-1:-1;;;71273:29:16;;;;:41;;71269:759;;71565:29;;71515:27;;;-1:-1:-1;;;;71465:168:16;;-1:-1:-1;;;71565:29:16;;;;;;;;-1:-1:-1;;;71515:27:16;;;;-1:-1:-1;;;;;71515:27:16;;;:79;;;;:118;;71465:168;;;;;;;;71724:48;;-1:-1:-1;;;;71724:48:16;;;;;;;;;;71791:60;;3547:25:37;;;71826:14:16;;71791:60;;3535:2:37;3520:18;71791:60:16;;;;;;;71869:23;71865:85;;;71912:23;:21;:23::i;:::-;71963:54;;-1:-1:-1;;;71963:54:16;;:12;:54;;;15879:25:37;71986:14:16;15920:18:37;;;15913:34;15963:18;;;15956:34;;;71963:22:16;;;;15852:18:37;;71963:54:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63440:136;63518:6;63516:8;;;;;;;;63549:20;;3547:25:37;;;63549:20:16;;3535:2:37;3520:18;63549:20:16;;;;;;;63440:136::o;3090:120:36:-;3143:10;:8;:10::i;:::-;3139:65;;;3176:17;;-1:-1:-1;;;3176:17:36;;;;;;;;;;;3139:65;3090:120::o;63582:1600:16:-;63813:13;;63767:12;;;;-1:-1:-1;;;63813:13:16;;;;63808:168;;63846:17;;;:57;;-1:-1:-1;63875:13:16;;-1:-1:-1;;;;;63875:13:16;63867:36;63846:57;63842:124;;;63930:21;;-1:-1:-1;;;63930:21:16;;;;;;;;;;;63842:124;63993:19;;-1:-1:-1;;;63993:19:16;;-1:-1:-1;;;;;63993:19:16;64022:23;64048:20;;;:14;:20;;;;;;;63993:19;;-1:-1:-1;64099:35:16;;;;;;:::i;:::-;-1:-1:-1;;;;;64099:49:16;;:124;;64188:35;;;;:20;:35;:::i;:::-;64099:124;;;64163:10;64099:124;64079:17;;;:144;;-1:-1:-1;;;;;64079:144:16;;;;-1:-1:-1;;;64079:144:16;;;;;;;;;;;-1:-1:-1;64252:34:16;;;;;;;;:::i;:::-;-1:-1:-1;;;;;64252:48:16;;:122;;64340:34;;;;;;;;:::i;:::-;64252:122;;;64315:10;64252:122;64233:16;;;:141;;-1:-1:-1;;;;;;64233:141:16;-1:-1:-1;;;;;64233:141:16;;;;;;;;;;64388:47;;;;;;;;:::i;:::-;64384:161;;;64481:64;;;;;;;;:::i;:::-;64449:29;;;:96;;;;;-1:-1:-1;;;64449:96:16;-1:-1:-1;;;;64449:96:16;;;;;;;;;64384:161;64582:19;64580:21;;;-1:-1:-1;;;;;;;;64580:21:16;;;;;;;;;;;-1:-1:-1;;;;;64580:21:16;;;;;;;;;;64670:16;;;;64651:17;;;;64627:60;;-1:-1:-1;;;;;64670:16:16;;;;-1:-1:-1;;;64651:17:16;;;;;;;64645:4;;64627:60;;-1:-1:-1;;64627:60:16;-1:-1:-1;;;;;64702:22:16;;;64698:60;;64731:27;;-1:-1:-1;;;;;64731:27:16;;;64743:4;;64731:27;;;;;64698:60;64877:17;;;;;:57;;-1:-1:-1;64906:13:16;;-1:-1:-1;;;;;64906:13:16;64898:36;;64877:57;64873:303;;;64950:13;;;:40;;-1:-1:-1;;;64950:40:16;;-1:-1:-1;;;;;64950:13:16;;;;:21;;:40;;64972:10;;64984:5;;;;64950:40;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;65014:13:16;;;:24;;;-1:-1:-1;;;65014:24:16;;;;-1:-1:-1;;;;;65014:13:16;;;;-1:-1:-1;65014:22:16;;-1:-1:-1;65014:24:16;;;;;;;;;;;;:13;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;65052:10;;:38;;-1:-1:-1;;;65052:38:16;;;;;13867:25:37;;;13908:18;;;13901:34;;;65004::16;;-1:-1:-1;;;;;;65052:10:16;;:23;;13840:18:37;;65052:38:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64873:303;;;65131:10;;;;;;;;;-1:-1:-1;;;;;65131:10:16;-1:-1:-1;;;;;65131:32:16;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;65121:44;;64873:303;63798:1384;63582:1600;;;;;;;:::o;65188:1806::-;65395:23;65421:30;;;:14;:30;;;;;65482:17;;65655:13;;65482:17;;;;;-1:-1:-1;;;65655:13:16;;;;65654:14;:126;;;;;65729:51;65701:9;65688:10;:22;:92;65654:126;65633:231;;;65820:29;;-1:-1:-1;;;65820:29:16;;;;;;;;;;;65633:231;65943:157;65981:14;66009:10;66033:9;66056:10;;66080;;65943:24;:157::i;:::-;-1:-1:-1;66206:18:16;;;-1:-1:-1;;;66206:18:16;;;;66185:17;;:39;66181:330;;66311:39;;;-1:-1:-1;;;66311:39:16;;;;;;;;;;;-1:-1:-1;;;;66311:39:16;;;;;;;;;;66373:123;;66460:18;;;;26945:42:37;;66424:14:16;;66373:123;;26933:2:37;26918:18;66373:123:16;;;;;;;66181:330;66588:38;;;;;;;;;-1:-1:-1;;66588:38:16;;;;;;;66651:63;;26945:42:37;;;66680:14:16;;66651:63;;26933:2:37;26918:18;66651:63:16;;;;;;;66821:133;66885:14;66938:5;66821:33;:133::i;:::-;66964:23;:21;:23::i;3217:348:1:-;3303:4;1403:38;3303:4;3423:31;3440:4;3446:7;3423:16;:31::i;:::-;3408:46;;3468:7;3464:71;;;3491:14;:20;;;;;;;;;;:33;;3516:7;3491:24;:33::i;:::-;;3551:7;3217:348;-1:-1:-1;;;;3217:348:1:o;3668:353::-;3755:4;1403:38;3755:4;3875:32;3893:4;3899:7;3875:17;:32::i;:::-;3860:47;;3921:7;3917:74;;;3944:14;:20;;;;;;;;;;:36;;3972:7;3944:27;:36::i;72346:377:16:-;72459:23;72485:30;;;:14;:30;;;;;72529:17;;;;-1:-1:-1;;;72529:17:16;;-1:-1:-1;;;;;72529:17:16;72525:70;;72569:26;;-1:-1:-1;;;72569:26:16;;;;;;;;;;;72525:70;72609:17;;;;-1:-1:-1;;;72609:17:16;;-1:-1:-1;;;;;72609:17:16;72630:10;72609:31;;;;:65;;-1:-1:-1;72644:16:16;;;;-1:-1:-1;;;;;72644:16:16;72664:10;72644:30;;72609:65;72605:111;;;72695:21;;-1:-1:-1;;;72695:21:16;;;;;;;;;;;72916:321;73117:30;;;;:14;:30;;;;;:45;;;73080:22;73093:9;73080:10;:22;:::i;:::-;:82;73063:168;;;73194:26;;-1:-1:-1;;;73194:26:16;;;;;;;;;;;8193:234:32;8270:12;;8339:21;514:2;8339:5;:21;:::i;:::-;-1:-1:-1;;;;;8329:32:32;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8329:32:32;-1:-1:-1;8385:24:32;566:2;8385:5;:24;:::i;:::-;-1:-1:-1;;;;;8375:35:32;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8375:35:32;;8308:112;;;;8193:234;;;:::o;6279:1122::-;6508:17;6540:9;6535:860;6555:9;6551:1;:13;6535:860;;;6594:112;6646:14;6678;6691:1;6678:10;:14;:::i;:::-;406:60;;6594:112;:34;:112::i;:::-;6931:1;6916:17;;;6910:24;6905:3;6901:34;6815:17;;;6834:2;6811:26;;;6787:51;;6884:15;;;6877:59;;;;6982:16;;6804:4;6787:51;;;6969:30;7204:1;7189:17;;7183:24;7124:2;7101:26;;;7074:54;;;;;7170:38;7270:1;7255:17;;7249:24;7232:15;;;7225:49;7336:1;7321:17;;7315:24;7298:15;;7291:49;6582:124;;-1:-1:-1;7362:9:32;6535:860;;73243:92:16;73302:26;2016:27;73302:10;:26::i;7407:780:32:-;7541:20;7573:17;7621:25;514:2;7621:9;:25;:::i;:::-;-1:-1:-1;;;;;7611:36:32;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7611:36:32;;7601:46;;7662:9;7657:524;7677:9;7673:1;:13;7657:524;;;7716:112;7768:14;7800;7813:1;7800:10;:14;:::i;7716:112::-;7704:124;;7942:2;7939:1;7935:10;7928:4;7919:7;7915:18;7911:35;8041:1;8030:9;8026:17;8020:24;8015:3;8011:34;8004:4;7996:6;7992:17;7985:61;8100:9;8094:16;8086:6;8079:32;;8155:1;8152;8148:9;8143:14;;7657:524;;;;7563:624;7407:780;;;;;:::o;72040:300:16:-;72122:23;72148:30;;;:14;:30;;;;;72192:17;;;;-1:-1:-1;;;72192:17:16;;-1:-1:-1;;;;;72192:17:16;72188:70;;72232:26;;-1:-1:-1;;;72232:26:16;;;;;;;;;;;72188:70;72272:17;;;;-1:-1:-1;;;72272:17:16;;-1:-1:-1;;;;;72272:17:16;72293:10;72272:31;72268:65;;72312:21;;-1:-1:-1;;;72312:21:16;;;;;;;;;;;3434:2288:32;3601:7;3637:14;;;:69;;-1:-1:-1;3692:14:32;3667:22;3680:9;3667:10;:22;:::i;:::-;:39;3637:69;:118;;;-1:-1:-1;3739:16:32;3722:33;;3637:118;3620:196;;;3787:18;;-1:-1:-1;;;3787:18:32;;;;;;;;;;;3620:196;3922:13;;;3932:2;3922:13;;;;;;;;;3826:17;;;;;;;;3922:13;;;;;;;;;;;-1:-1:-1;;3900:35:32;-1:-1:-1;4026:22:32;;;4009:1666;4054:10;4050:1;:14;4009:1666;;;4098:115;406:60;4154:14;-1:-1:-1;;4190:5:32;;4098:34;:115::i;:::-;4086:127;;4399:1;4388:9;4384:17;4378:24;4373:3;4369:34;4338:4;4330:6;4326:17;4294:131;4494:9;4488:16;4481:4;4473:6;4469:17;4462:43;4563:14;4559:1;:18;4555:651;;;4614:140;406:60;4674:14;-1:-1:-1;;4714:18:32;;4614:34;:140::i;:::-;4601:153;;4843:1;4839:5;;4834:310;4850:1;4846;:5;4834:310;;;5049:1;5037:10;5033:18;5027:25;5023:1;5012:9;5008:17;5001:52;5094:1;5091;5087:9;5082:14;;4834:310;;;5177:10;5165:22;;4555:651;5265:1;5261:5;;5256:185;5272:1;5268;:5;5256:185;;;5360:1;5356;5345:9;5341:17;5334:28;5399:1;5396;5392:9;5387:14;;5256:185;;;5527:1;5511:14;5507:22;5489:40;;5562:1;5559;5555:9;5550:14;;5637;5604:56;5653:6;5604:56;;;;;;:::i;:::-;;;;;;;;4009:1666;;;-1:-1:-1;5701:14:32;;3434:2288;-1:-1:-1;;;;;;;;3434:2288:32:o;9574:156:15:-;9648:7;9698:22;9702:3;9714:5;9698:3;:22::i;67000:207:16:-;67078:22;67069:6;:31;67065:58;;;67109:14;;-1:-1:-1;;;67109:14:16;;;;;;;;;;;67065:58;67133:16;:25;;;67173:27;;3547:25:37;;;67173:27:16;;3535:2:37;3520:18;67173:27:16;;;;;;;;67000:207;:::o;202:362:35:-;318:7;376:14;389:1;376:3;:14;:::i;:::-;354:18;370:2;354:6;:18;:::i;:::-;:36;;:71;;;-1:-1:-1;406:14:35;419:1;406:3;:14;:::i;:::-;:19;;354:71;:110;;;-1:-1:-1;441:18:35;457:2;441:6;:18;:::i;:::-;:23;;354:110;337:189;;;496:19;;-1:-1:-1;;;496:19:35;;;;;;;;;;;337:189;543:14;556:1;543:3;:14;:::i;:::-;536:21;202:362;-1:-1:-1;;;;;202:362:35:o;67342:1054:16:-;67504:41;67530:14;67504:25;:41::i;:::-;67555:23;67581:30;;;:14;:30;;;;;67650:18;;;;;;67625:43;;67621:56;;67670:7;67342:1054;;;:::o;67621:56::-;67714:21;;-1:-1:-1;;;67714:21:16;;;;67690:45;;67686:106;;;67756:36;;-1:-1:-1;;;67756:36:16;;;;;;;;;;;67686:106;67807:13;67806:14;:60;;;;-1:-1:-1;67848:18:16;;;;;;67824:42;;67806:60;67802:105;;;67887:20;;-1:-1:-1;;;67887:20:16;;;;;;;;;;;67802:105;68073:18;;;;;68048:22;;;68073:18;;;;-1:-1:-1;;;;;;;;68048:22:16;;;;;:43;;;;68047:93;;68006:134;;-1:-1:-1;;68006:134:16;;;;;;68221:50;;;;;-1:-1:-1;;68221:50:16;;;;;;68287:102;;3547:25:37;;;68330:14:16;;68287:102;;3535:2:37;3520:18;68287:102:16;;;;;;;67494:902;67342:1054;;;:::o;68402:1622::-;68534:41;68560:14;68534:25;:41::i;:::-;68585:23;68611:30;;;:14;:30;;;;;68679:23;;-1:-1:-1;;;68679:23:16;;;;68655:47;;68651:60;;68704:7;68402:1622;;:::o;68651:60::-;68828:18;;;;68804:21;;68828:18;;;;-1:-1:-1;;;68804:21:16;;;;;:42;68765:81;;;68744:154;;;68868:30;;-1:-1:-1;;;68868:30:16;;;;;;;;;;;68744:154;68980:54;;-1:-1:-1;;;;68980:54:16;-1:-1:-1;;;68980:54:16;;;;;;;69049:66;;3547:25:37;;;69078:14:16;;69049:66;;3535:2:37;3520:18;69049:66:16;;;;;;;69153:1;69130:20;:24;:61;;;;-1:-1:-1;69158:29:16;;-1:-1:-1;;;69158:29:16;;;;:33;;69130:61;69126:892;;;69601:29;;69570:27;:60;;-1:-1:-1;;;;69570:60:16;;-1:-1:-1;;;69601:29:16;;;;;-1:-1:-1;;;69570:60:16;;;;-1:-1:-1;;;;;69570:60:16;;;;;;;;;;;;;;;69658:33;;-1:-1:-1;;;;69658:33:16;;;69710:53;;-1:-1:-1;3547:25:37;;69745:14:16;;69710:53;;3535:2:37;3520:18;69710:53:16;;;;;;;6549:37:0;6348:245;;:::o;69126:892:16:-;69862:145;69930:14;69987:5;69862:33;:145::i;2557:104:14:-;2615:7;2645:1;2641;:5;:13;;2653:1;2641:13;;;-1:-1:-1;2649:1:14;;2634:20;-1:-1:-1;2557:104:14:o;1463:75:1:-;6931:20:2;:18;:20::i;1836:370:36:-;1892:15;:13;:15::i;:::-;1921:8;1933:1;1921:13;1917:45;;1943:19;;-1:-1:-1;;;1943:19:36;;;;;;;;;;;1917:45;1973:19;-1:-1:-1;;2006:8:36;:28;2002:160;;-1:-1:-1;;;2002:160:36;;;2125:26;2143:8;2125:15;:26;:::i;:::-;2111:40;;2002:160;2171:28;2187:11;2171:15;:28::i;6719:219:31:-;7036:9;;-1:-1:-1;;;;;7036:9:31;6774:10;7025:21;;;:10;;;:21;;;;;;;6824:74;;6863:24;;-1:-1:-1;;;6863:24:31;;;;;;;;;;;6824:74;6908:23;;-1:-1:-1;;6908:23:31;-1:-1:-1;;;;;1252:11:31;;6908:23;;;;1252:11;6719:219::o;1308:360::-;1567:3;1563:44;-1:-1:-1;;;1563:44:31;-1:-1:-1;;;;1426:123:31;;;;1410:207;;1308:360::o;9117:115:15:-;9180:7;9206:19;9214:3;4556:18;;4474:107;4381:197:0;4469:22;4477:4;4483:7;4469;:22::i;:::-;4464:108;;4514:47;;-1:-1:-1;;;4514:47:0;;-1:-1:-1;;;;;21109:55:37;;4514:47:0;;;21091:74:37;21181:18;;;21174:34;;;21064:18;;4514:47:0;;;;;;;2965:119:36;3018:10;:8;:10::i;:::-;3013:65;;3051:16;;-1:-1:-1;;;3051:16:36;;;;;;;;;;;965:2187:32;1165:7;1188:14;;;:59;;-1:-1:-1;1231:16:32;1206:22;1219:9;1206:10;:22;:::i;:::-;:41;1188:59;1184:115;;;1270:18;;-1:-1:-1;;;1270:18:32;;;;;;;;;;;1184:115;514:2;1371:25;;1353:43;;;;:112;;-1:-1:-1;566:2:32;1437:28;;1416:49;;;1353:112;1332:203;;;1505:15;;-1:-1:-1;;;1505:15:32;;;;;;;;;;;1332:203;1626:13;;;1636:2;1626:13;;;;;;;;;1555:17;;;;;;1626:13;;;;;;;;;;-1:-1:-1;1626:13:32;1604:35;;1655:9;1650:1469;1670:9;1666:1;:13;1650:1469;;;1709:108;406:60;1761:14;1793:10;1709:34;:108::i;:::-;1897:2;1890:10;;;1870:31;;2041:4;2031:15;;2018:29;2141:17;;;2134:33;;;1954:18;2227:4;2215:17;;2208:33;;;1697:120;;-1:-1:-1;2098:18:32;2091:26;;-1:-1:-1;2314:63:32;;;;2352:10;;-1:-1:-1;;;2352:10:32;;;;;;;;;;;2314:63;2483:4;2475:6;2471:17;2465:24;2454:9;2447:43;2581:4;2573:6;2569:17;2563:24;2558:3;2554:34;2550:1;2539:9;2535:17;2528:61;2705:2;2702:1;2698:10;2679:17;2675:34;2790:4;2777:18;2773:1;2762:9;2758:17;2751:45;2862:4;2856;2852:15;2839:29;2835:1;2824:9;2820:17;2813:56;2935:4;2929;2925:15;2912:29;2908:1;2897:9;2893:17;2886:56;;2971:1;2968;2964:9;2959:14;;3020:1;3008:10;3004:18;2990:32;;3085:14;3054:54;3101:6;3054:54;;;;;;:::i;:::-;;;;;;;;1650:1469;;;-1:-1:-1;3135:10:32;;965:2187;-1:-1:-1;;;;;;;;;;965:2187:32:o;7270:387:0:-;7347:4;-1:-1:-1;;;;;;;;;;;7437:22:0;7445:4;7451:7;7437;:22::i;:::-;7432:219;;7475:8;:14;;;;;;;;;;;-1:-1:-1;;;;;7475:31:0;;;;;;;;;:38;;-1:-1:-1;;7475:38:0;7509:4;7475:38;;;7559:12;966:10:3;;887:96;7559:12:0;-1:-1:-1;;;;;7532:40:0;7550:7;-1:-1:-1;;;;;7532:40:0;7544:4;7532:40;;;;;;;;;;7593:4;7586:11;;;;;7432:219;7635:5;7628:12;;;;;7432:219;7353:304;7270:387;;;;:::o;8316:150:15:-;8386:4;8409:50;8414:3;-1:-1:-1;;;;;8434:23:15;;8409:4;:50::i;7892:388:0:-;7970:4;-1:-1:-1;;;;;;;;;;;8059:22:0;8067:4;8073:7;8059;:22::i;:::-;8055:219;;;8131:5;8097:14;;;;;;;;;;;-1:-1:-1;;;;;8097:31:0;;;;;;;;;;:39;;-1:-1:-1;;8097:39:0;;;8155:40;966:10:3;;8097:14:0;;8155:40;;8131:5;8155:40;8216:4;8209:11;;;;;8634:156:15;8707:4;8730:53;8738:3;-1:-1:-1;;;;;8758:23:15;;8730:7;:53::i;8433:282:32:-;8641:52;;;;;;;29556:19:37;;;;29591:12;;;29584:28;;;;29628:12;;;;29621:28;;;;8641:52:32;;;;;;;;;;29665:12:37;;;;8641:52:32;;;8631:63;;;;;;8433:282::o;4923:118:15:-;4990:7;5016:3;:11;;5028:5;5016:18;;;;;;;;:::i;:::-;;;;;;;;;5009:25;;4923:118;;;;:::o;7084:141:2:-;8870:21;8560:40;-1:-1:-1;;;8560:40:2;;;;7146:73;;7191:17;;-1:-1:-1;;;7191:17:2;;;;;;;;;;;2652:307:36;2717:62;372:52;2767:11;400:22:34;;299:139;2717:62:36;-1:-1:-1;;2793:11:36;:31;2789:164;;2845:24;;-1:-1:-1;;3547:25:37;;2845:24:36;;3535:2:37;3520:18;2845:24:36;3401:177:37;2789:164:36;2905:37;2912:29;2926:15;2912:11;:29;:::i;:::-;2905:37;;3547:25:37;;;3535:2;3520:18;2905:37:36;3401:177:37;2241:406:15;2304:4;4360:21;;;:14;;;:21;;;;;;2320:321;;-1:-1:-1;2362:23:15;;;;;;;;:11;:23;;;;;;;;;;;;;2544:18;;2520:21;;;:14;;;:21;;;;;;:42;;;;2576:11;;2320:321;-1:-1:-1;2625:5:15;2618:12;;2815:1368;2881:4;3010:21;;;:14;;;:21;;;;;;3046:13;;3042:1135;;3413:18;3434:12;3445:1;3434:8;:12;:::i;:::-;3480:18;;3413:33;;-1:-1:-1;3460:17:15;;3480:22;;3501:1;;3480:22;:::i;:::-;3460:42;;3535:9;3521:10;:23;3517:378;;3564:17;3584:3;:11;;3596:9;3584:22;;;;;;;;:::i;:::-;;;;;;;;;3564:42;;3731:9;3705:3;:11;;3717:10;3705:23;;;;;;;;:::i;:::-;;;;;;;;;;;;:35;;;;3844:25;;;:14;;;:25;;;;;:36;;;3517:378;3973:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;4076:3;:14;;:21;4091:5;4076:21;;;;;;;;;;;4069:28;;;4119:4;4112:11;;;;;;;14:286:37;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:37;;209:43;;199:71;;266:1;263;256:12;593:316;670:6;678;686;739:2;727:9;718:7;714:23;710:32;707:52;;;755:1;752;745:12;707:52;-1:-1:-1;;778:23:37;;;848:2;833:18;;820:32;;-1:-1:-1;899:2:37;884:18;;;871:32;;593:316;-1:-1:-1;593:316:37:o;914:347::-;965:8;975:6;1029:3;1022:4;1014:6;1010:17;1006:27;996:55;;1047:1;1044;1037:12;996:55;-1:-1:-1;1070:20:37;;-1:-1:-1;;;;;1102:30:37;;1099:50;;;1145:1;1142;1135:12;1099:50;1182:4;1174:6;1170:17;1158:29;;1234:3;1227:4;1218:6;1210;1206:19;1202:30;1199:39;1196:59;;;1251:1;1248;1241:12;1196:59;914:347;;;;;:::o;1266:180::-;1351:5;1396:2;1387:6;1382:3;1378:16;1374:25;1371:45;;;1412:1;1409;1402:12;1371:45;-1:-1:-1;1434:6:37;1266:180;-1:-1:-1;1266:180:37:o;1451:367::-;1514:8;1524:6;1578:3;1571:4;1563:6;1559:17;1555:27;1545:55;;1596:1;1593;1586:12;1545:55;-1:-1:-1;1619:20:37;;-1:-1:-1;;;;;1651:30:37;;1648:50;;;1694:1;1691;1684:12;1648:50;1731:4;1723:6;1719:17;1707:29;;1791:3;1784:4;1774:6;1771:1;1767:14;1759:6;1755:27;1751:38;1748:47;1745:67;;;1808:1;1805;1798:12;1823:154;-1:-1:-1;;;;;1902:5:37;1898:54;1891:5;1888:65;1878:93;;1967:1;1964;1957:12;1982:1414;2187:6;2195;2203;2211;2219;2227;2235;2243;2251;2304:3;2292:9;2283:7;2279:23;2275:33;2272:53;;;2321:1;2318;2311:12;2272:53;2357:9;2344:23;2334:33;;2418:2;2407:9;2403:18;2390:32;-1:-1:-1;;;;;2482:2:37;2474:6;2471:14;2468:34;;;2498:1;2495;2488:12;2468:34;2537:58;2587:7;2578:6;2567:9;2563:22;2537:58;:::i;:::-;2614:8;;-1:-1:-1;2511:84:37;-1:-1:-1;2702:2:37;2687:18;;2674:32;;-1:-1:-1;2718:16:37;;;2715:36;;;2747:1;2744;2737:12;2715:36;2786:60;2838:7;2827:8;2816:9;2812:24;2786:60;:::i;:::-;2865:8;;-1:-1:-1;2760:86:37;-1:-1:-1;2760:86:37;;-1:-1:-1;2919:88:37;2999:7;2994:2;2979:18;;2919:88;:::i;:::-;2909:98;;3060:3;3049:9;3045:19;3032:33;3016:49;;3090:2;3080:8;3077:16;3074:36;;;3106:1;3103;3096:12;3074:36;;3145:72;3209:7;3198:8;3187:9;3183:24;3145:72;:::i;:::-;3236:8;;-1:-1:-1;3119:98:37;-1:-1:-1;;3321:3:37;3306:19;;3293:33;3335:31;3293:33;3335:31;:::i;:::-;3385:5;3375:15;;;1982:1414;;;;;;;;;;;:::o;3583:315::-;3651:6;3659;3712:2;3700:9;3691:7;3687:23;3683:32;3680:52;;;3728:1;3725;3718:12;3680:52;3764:9;3751:23;3741:33;;3824:2;3813:9;3809:18;3796:32;3837:31;3862:5;3837:31;:::i;:::-;3887:5;3877:15;;;3583:315;;;;;:::o;3903:180::-;3962:6;4015:2;4003:9;3994:7;3990:23;3986:32;3983:52;;;4031:1;4028;4021:12;3983:52;-1:-1:-1;4054:23:37;;3903:180;-1:-1:-1;3903:180:37:o;4664:437::-;4750:6;4758;4811:2;4799:9;4790:7;4786:23;4782:32;4779:52;;;4827:1;4824;4817:12;4779:52;4867:9;4854:23;-1:-1:-1;;;;;4892:6:37;4889:30;4886:50;;;4932:1;4929;4922:12;4886:50;4971:70;5033:7;5024:6;5013:9;5009:22;4971:70;:::i;:::-;5060:8;;4945:96;;-1:-1:-1;4664:437:37;-1:-1:-1;;;;4664:437:37:o;5427:248::-;5495:6;5503;5556:2;5544:9;5535:7;5531:23;5527:32;5524:52;;;5572:1;5569;5562:12;5524:52;-1:-1:-1;;5595:23:37;;;5665:2;5650:18;;;5637:32;;-1:-1:-1;5427:248:37:o;5680:642::-;5793:6;5801;5809;5817;5825;5878:3;5866:9;5857:7;5853:23;5849:33;5846:53;;;5895:1;5892;5885:12;5846:53;5931:9;5918:23;5908:33;;5988:2;5977:9;5973:18;5960:32;5950:42;;6039:2;6028:9;6024:18;6011:32;6001:42;;6094:2;6083:9;6079:18;6066:32;-1:-1:-1;;;;;6113:6:37;6110:30;6107:50;;;6153:1;6150;6143:12;6107:50;6192:70;6254:7;6245:6;6234:9;6230:22;6192:70;:::i;:::-;5680:642;;;;-1:-1:-1;5680:642:37;;-1:-1:-1;6281:8:37;;6166:96;5680:642;-1:-1:-1;;;5680:642:37:o;6327:160::-;6391:5;6436:3;6427:6;6422:3;6418:16;6414:26;6411:46;;;6453:1;6450;6443:12;6492:383;6600:6;6608;6616;6669:3;6657:9;6648:7;6644:23;6640:33;6637:53;;;6686:1;6683;6676:12;6637:53;6722:9;6709:23;6699:33;;6779:2;6768:9;6764:18;6751:32;6741:42;;6802:67;6861:7;6856:2;6845:9;6841:18;6802:67;:::i;:::-;6792:77;;6492:383;;;;;:::o;7062:632::-;7233:2;7285:21;;;7355:13;;7258:18;;;7377:22;;;7204:4;;7233:2;7456:15;;;;7430:2;7415:18;;;7204:4;7499:169;7513:6;7510:1;7507:13;7499:169;;;7574:13;;7562:26;;7643:15;;;;7608:12;;;;7535:1;7528:9;7499:169;;;-1:-1:-1;7685:3:37;;7062:632;-1:-1:-1;;;;;;7062:632:37:o;7699:422::-;7740:3;7778:5;7772:12;7805:6;7800:3;7793:19;7830:1;7840:162;7854:6;7851:1;7848:13;7840:162;;;7916:4;7972:13;;;7968:22;;7962:29;7944:11;;;7940:20;;7933:59;7869:12;7840:162;;;7844:3;8047:1;8040:4;8031:6;8026:3;8022:16;8018:27;8011:38;8110:4;8103:2;8099:7;8094:2;8086:6;8082:15;8078:29;8073:3;8069:39;8065:50;8058:57;;;7699:422;;;;:::o;8126:377::-;8319:2;8308:9;8301:21;8282:4;8345:44;8385:2;8374:9;8370:18;8362:6;8345:44;:::i;:::-;8437:9;8429:6;8425:22;8420:2;8409:9;8405:18;8398:50;8465:32;8490:6;8482;8465:32;:::i;8693:217::-;8840:2;8829:9;8822:21;8803:4;8860:44;8900:2;8889:9;8885:18;8877:6;8860:44;:::i;8915:315::-;8983:6;8991;9044:2;9032:9;9023:7;9019:23;9015:32;9012:52;;;9060:1;9057;9050:12;9012:52;9099:9;9086:23;9118:31;9143:5;9118:31;:::i;:::-;9168:5;9220:2;9205:18;;;;9192:32;;-1:-1:-1;;;8915:315:37:o;9235:301::-;9294:6;9347:2;9335:9;9326:7;9322:23;9318:32;9315:52;;;9363:1;9360;9353:12;9315:52;9402:9;9389:23;-1:-1:-1;;;;;9445:5:37;9441:46;9434:5;9431:57;9421:85;;9502:1;9499;9492:12;10060:2074;10285:13;;9825:10;9814:22;9802:35;;10254:3;10239:19;;10357:4;10349:6;10345:17;10339:24;10372:53;10419:4;10408:9;10404:20;10390:12;9825:10;9814:22;9802:35;;9749:94;10372:53;;10474:4;10466:6;10462:17;10456:24;10489:55;10538:4;10527:9;10523:20;10507:14;9825:10;9814:22;9802:35;;9749:94;10489:55;;10593:4;10585:6;10581:17;10575:24;10608:55;10657:4;10646:9;10642:20;10626:14;9825:10;9814:22;9802:35;;9749:94;10608:55;;10712:4;10704:6;10700:17;10694:24;10727:55;10776:4;10765:9;10761:20;10745:14;9825:10;9814:22;9802:35;;9749:94;10727:55;;10831:4;10823:6;10819:17;10813:24;10846:55;10895:4;10884:9;10880:20;10864:14;9825:10;9814:22;9802:35;;9749:94;10846:55;;10950:4;10942:6;10938:17;10932:24;10965:55;11014:4;11003:9;10999:20;10983:14;9825:10;9814:22;9802:35;;9749:94;10965:55;;11069:4;11061:6;11057:17;11051:24;11084:54;11132:4;11121:9;11117:20;11101:14;9915:4;9904:16;9892:29;;9848:75;11084:54;-1:-1:-1;11157:6:37;11200:15;;;11194:22;9825:10;9814:22;;;11259:18;;;9802:35;;;;11297:6;11340:15;;;11334:22;9814;;;11399:18;;;9802:35;11437:6;11480:15;;;11474:22;-1:-1:-1;;;;;9994:54:37;;;11540:18;;;9982:67;;;;11578:6;11622:15;;;11616:22;9994:54;;11683:18;;;9982:67;11721:6;11765:15;;;11759:22;9994:54;;11826:18;;;9982:67;11864:6;11908:15;;;11902:22;9994:54;;;11969:18;;;9982:67;12007:6;12051:15;;;12045:22;375:13;368:21;12109:18;;;;356:34;;;;10060:2074;:::o;12139:1549::-;12384:6;12392;12400;12408;12416;12424;12432;12440;12448;12456;12509:3;12497:9;12488:7;12484:23;12480:33;12477:53;;;12526:1;12523;12516:12;12477:53;12562:9;12549:23;12539:33;;12623:2;12612:9;12608:18;12595:32;-1:-1:-1;;;;;12687:2:37;12679:6;12676:14;12673:34;;;12703:1;12700;12693:12;12673:34;12742:58;12792:7;12783:6;12772:9;12768:22;12742:58;:::i;:::-;12819:8;;-1:-1:-1;12716:84:37;-1:-1:-1;12907:2:37;12892:18;;12879:32;;-1:-1:-1;12923:16:37;;;12920:36;;;12952:1;12949;12942:12;12920:36;12991:60;13043:7;13032:8;13021:9;13017:24;12991:60;:::i;:::-;13070:8;;-1:-1:-1;12965:86:37;-1:-1:-1;12965:86:37;;-1:-1:-1;13124:88:37;13204:7;13199:2;13184:18;;13124:88;:::i;:::-;13114:98;;13231:68;13291:7;13285:3;13274:9;13270:19;13231:68;:::i;:::-;13221:78;;13352:3;13341:9;13337:19;13324:33;13308:49;;13382:2;13372:8;13369:16;13366:36;;;13398:1;13395;13388:12;13366:36;;13437:72;13501:7;13490:8;13479:9;13475:24;13437:72;:::i;:::-;13528:8;;-1:-1:-1;13411:98:37;-1:-1:-1;;13613:3:37;13598:19;;13585:33;13627:31;13585:33;13627:31;:::i;:::-;13677:5;13667:15;;;12139:1549;;;;;;;;;;;;;:::o;14430:989::-;14578:6;14586;14594;14602;14610;14618;14626;14679:3;14667:9;14658:7;14654:23;14650:33;14647:53;;;14696:1;14693;14686:12;14647:53;14732:9;14719:23;14709:33;;14789:2;14778:9;14774:18;14761:32;14751:42;;14844:2;14833:9;14829:18;14816:32;-1:-1:-1;;;;;14908:2:37;14900:6;14897:14;14894:34;;;14924:1;14921;14914:12;14894:34;14963:58;15013:7;15004:6;14993:9;14989:22;14963:58;:::i;:::-;15040:8;;-1:-1:-1;14937:84:37;-1:-1:-1;15128:2:37;15113:18;;15100:32;;-1:-1:-1;15144:16:37;;;15141:36;;;15173:1;15170;15163:12;15141:36;;15212:60;15264:7;15253:8;15242:9;15238:24;15212:60;:::i;:::-;15291:8;;-1:-1:-1;15186:86:37;-1:-1:-1;15345:68:37;;-1:-1:-1;15405:7:37;15399:3;15384:19;;15345:68;:::i;:::-;15335:78;;14430:989;;;;;;;;;;:::o;16001:717::-;16091:6;16099;16107;16115;16168:2;16156:9;16147:7;16143:23;16139:32;16136:52;;;16184:1;16181;16174:12;16136:52;16224:9;16211:23;-1:-1:-1;;;;;16294:2:37;16286:6;16283:14;16280:34;;;16310:1;16307;16300:12;16280:34;16349:58;16399:7;16390:6;16379:9;16375:22;16349:58;:::i;:::-;16426:8;;-1:-1:-1;16323:84:37;-1:-1:-1;16514:2:37;16499:18;;16486:32;;-1:-1:-1;16530:16:37;;;16527:36;;;16559:1;16556;16549:12;16527:36;;16598:60;16650:7;16639:8;16628:9;16624:24;16598:60;:::i;:::-;16001:717;;;;-1:-1:-1;16677:8:37;-1:-1:-1;;;;16001:717:37:o;17407:598::-;17493:6;17501;17509;17517;17570:3;17558:9;17549:7;17545:23;17541:33;17538:53;;;17587:1;17584;17577:12;17538:53;17626:9;17613:23;17645:31;17670:5;17645:31;:::i;:::-;17695:5;-1:-1:-1;17752:2:37;17737:18;;17724:32;17765:33;17724:32;17765:33;:::i;:::-;17817:7;-1:-1:-1;17871:2:37;17856:18;;17843:32;;-1:-1:-1;17927:2:37;17912:18;;17899:32;17940:33;17899:32;17940:33;:::i;:::-;17407:598;;;;-1:-1:-1;17407:598:37;;-1:-1:-1;;17407:598:37:o;18010:477::-;18089:6;18097;18105;18158:2;18146:9;18137:7;18133:23;18129:32;18126:52;;;18174:1;18171;18164:12;18126:52;18210:9;18197:23;18187:33;;18271:2;18260:9;18256:18;18243:32;-1:-1:-1;;;;;18290:6:37;18287:30;18284:50;;;18330:1;18327;18320:12;18284:50;18369:58;18419:7;18410:6;18399:9;18395:22;18369:58;:::i;:::-;18010:477;;18446:8;;-1:-1:-1;18343:84:37;;-1:-1:-1;;;;18010:477:37:o;18990:160::-;19055:20;;19111:13;;19104:21;19094:32;;19084:60;;19140:1;19137;19130:12;19084:60;18990:160;;;:::o;19155:385::-;19238:6;19246;19254;19262;19315:3;19303:9;19294:7;19290:23;19286:33;19283:53;;;19332:1;19329;19322:12;19283:53;19368:9;19355:23;19345:33;;19425:2;19414:9;19410:18;19397:32;19387:42;;19476:2;19465:9;19461:18;19448:32;19438:42;;19499:35;19530:2;19519:9;19515:18;19499:35;:::i;:::-;19489:45;;19155:385;;;;;;;:::o;19869:854::-;19977:6;19985;19993;20001;20009;20017;20070:3;20058:9;20049:7;20045:23;20041:33;20038:53;;;20087:1;20084;20077:12;20038:53;20123:9;20110:23;20100:33;;20180:2;20169:9;20165:18;20152:32;20142:42;;20235:2;20224:9;20220:18;20207:32;-1:-1:-1;;;;;20299:2:37;20291:6;20288:14;20285:34;;;20315:1;20312;20305:12;20285:34;20354:58;20404:7;20395:6;20384:9;20380:22;20354:58;:::i;:::-;20431:8;;-1:-1:-1;20328:84:37;-1:-1:-1;20519:2:37;20504:18;;20491:32;;-1:-1:-1;20535:16:37;;;20532:36;;;20564:1;20561;20554:12;20532:36;;20603:60;20655:7;20644:8;20633:9;20629:24;20603:60;:::i;:::-;19869:854;;;;-1:-1:-1;19869:854:37;;-1:-1:-1;19869:854:37;;20682:8;;19869:854;-1:-1:-1;;;19869:854:37:o;20728:184::-;20798:6;20851:2;20839:9;20830:7;20826:23;20822:32;20819:52;;;20867:1;20864;20857:12;20819:52;-1:-1:-1;20890:16:37;;20728:184;-1:-1:-1;20728:184:37:o;21652:127::-;21713:10;21708:3;21704:20;21701:1;21694:31;21744:4;21741:1;21734:15;21768:4;21765:1;21758:15;21784:127;21845:10;21840:3;21836:20;21833:1;21826:31;21876:4;21873:1;21866:15;21900:4;21897:1;21890:15;21916:125;21981:9;;;22002:10;;;21999:36;;;22015:18;;:::i;22299:311::-;22387:19;;;22369:3;-1:-1:-1;;;;;22418:31:37;;22415:51;;;22462:1;22459;22452:12;22415:51;22498:6;22495:1;22491:14;22550:8;22543:5;22536:4;22531:3;22527:14;22514:45;22579:18;;;;22599:4;22575:29;;22299:311;-1:-1:-1;;;22299:311:37:o;22615:624::-;22916:6;22905:9;22898:25;22959:6;22954:2;22943:9;22939:18;22932:34;-1:-1:-1;;;;;23006:6:37;23002:55;22997:2;22986:9;22982:18;22975:83;23094:6;23089:2;23078:9;23074:18;23067:34;23138:3;23132;23121:9;23117:19;23110:32;22879:4;23159:74;23228:3;23217:9;23213:19;23205:6;23197;23159:74;:::i;:::-;23151:82;22615:624;-1:-1:-1;;;;;;;;22615:624:37:o;23244:892::-;23480:4;23522:3;23511:9;23507:19;23499:27;;-1:-1:-1;;;;;23557:6:37;23553:55;23542:9;23535:74;23645:6;23640:2;23629:9;23625:18;23618:34;23688:6;23683:2;23672:9;23668:18;23661:34;23744:6;23731:20;23726:2;23715:9;23711:18;23704:48;23814:2;23806:6;23802:15;23789:29;23783:3;23772:9;23768:19;23761:58;23866:2;23858:6;23854:15;23841:29;23900:4;23893:5;23889:16;23934:2;23927:5;23924:13;23914:41;;23951:1;23948;23941:12;23914:41;23986:3;23971:19;;23964:31;-1:-1:-1;24057:2:37;24045:15;;24032:29;24026:3;24011:19;;24004:58;24124:3;24112:16;;;24099:30;24093:3;24078:19;;;24071:59;23244:892;;-1:-1:-1;;;23244:892:37:o;24141:127::-;24202:10;24197:3;24193:20;24190:1;24183:31;24233:4;24230:1;24223:15;24257:4;24254:1;24247:15;24273:128;24340:9;;;24361:11;;;24358:37;;;24375:18;;:::i;25437:245::-;25516:6;25524;25577:2;25565:9;25556:7;25552:23;25548:32;25545:52;;;25593:1;25590;25583:12;25545:52;-1:-1:-1;;25616:16:37;;25672:2;25657:18;;;25651:25;25616:16;;25651:25;;-1:-1:-1;25437:245:37:o;25687:168::-;25760:9;;;25791;;25808:15;;;25802:22;;25788:37;25778:71;;25829:18;;:::i;25860:277::-;25956:6;26009:2;25997:9;25988:7;25984:23;25980:32;25977:52;;;26025:1;26022;26015:12;25977:52;26057:9;26051:16;26076:31;26101:5;26076:31;:::i;26142:175::-;26210:10;26253;;;26241;;;26237:27;;26276:12;;;26273:38;;;26291:18;;:::i;26998:359::-;27201:6;27190:9;27183:25;27244:6;27239:2;27228:9;27224:18;27217:34;27287:2;27282;27271:9;27267:18;27260:30;27164:4;27307:44;27347:2;27336:9;27332:18;27324:6;27307:44;:::i;27362:288::-;27537:6;27526:9;27519:25;27580:2;27575;27564:9;27560:18;27553:30;27500:4;27600:44;27640:2;27629:9;27625:18;27617:6;27600:44;:::i;27655:247::-;27714:6;27767:2;27755:9;27746:7;27742:23;27738:32;27735:52;;;27783:1;27780;27773:12;27735:52;27822:9;27809:23;27841:31;27866:5;27841:31;:::i;27907:180::-;27963:6;28016:2;28004:9;27995:7;27991:23;27987:32;27984:52;;;28032:1;28029;28022:12;27984:52;28055:26;28071:9;28055:26;:::i;28092:408::-;-1:-1:-1;;;;;28313:6:37;28309:55;28298:9;28291:74;28401:2;28396;28385:9;28381:18;28374:30;28272:4;28421:73;28490:2;28479:9;28475:18;28467:6;28459;28421:73;:::i;28505:127::-;28566:10;28561:3;28557:20;28554:1;28547:31;28597:4;28594:1;28587:15;28621:4;28618:1;28611:15;28637:120;28677:1;28703;28693:35;;28708:18;;:::i;:::-;-1:-1:-1;28742:9:37;;28637:120::o;28762:112::-;28794:1;28820;28810:35;;28825:18;;:::i;:::-;-1:-1:-1;28859:9:37;;28762:112::o;29688:127::-;29749:10;29744:3;29740:20;29737:1;29730:31;29780:4;29777:1;29770:15;29804:4;29801:1;29794:15
Swarm Source
none
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.