{
    "Function": "recordFirstStakeUpdate",
    "File": "src/contracts/core/Slasher.sol",
    "Parent Contracts": [
        "src/contracts/permissions/Pausable.sol",
        "src/contracts/interfaces/IPausable.sol",
        "src/contracts/interfaces/ISlasher.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/access/OwnableUpgradeable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol",
        "lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol"
    ],
    "High-Level Calls": [
        "StructuredLinkedList"
    ],
    "Internal Calls": [
        "_recordUpdateAndAddToMiddlewareTimes",
        "onlyWhenNotPaused",
        "_addressToUint",
        "require(bool,string)",
        "onlyRegisteredForService"
    ],
    "Library Calls": [
        "pushBack"
    ],
    "Low-Level Calls": [],
    "Code": "function recordFirstStakeUpdate(address operator, uint32 serveUntilBlock) \n        external \n        onlyWhenNotPaused(PAUSED_FIRST_STAKE_UPDATE)\n        onlyRegisteredForService(operator)\n    {\n        // update the 'stalest' stakes update time + latest 'serveUntil' time of the `operator`\n        _recordUpdateAndAddToMiddlewareTimes(operator, uint32(block.number), serveUntilBlock);\n\n        // Push the middleware to the end of the update list. This will fail if the caller *is* already in the list.\n        require(_operatorToWhitelistedContractsByUpdate[operator].pushBack(_addressToUint(msg.sender)), \n            \"Slasher.recordFirstStakeUpdate: Appending middleware unsuccessful\");\n    }"
}