{
    "Function": "slitherConstructorConstantVariables",
    "File": "src/Managed.sol",
    "Parent Contracts": [
        "lib/openzeppelin-contracts/contracts/proxy/utils/UUPSUpgradeable.sol",
        "lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Upgrade.sol",
        "lib/openzeppelin-contracts/contracts/interfaces/draft-IERC1822.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "abstract contract Managed is UUPSUpgradeable {\n    /// @notice The pointer to the storage slot holding a single `ManagedStorage` structure.\n    bytes32 private immutable _managedStorageSlot = _erc1967Slot(\"eip1967.managed.storage\");\n\n    /// @notice Emitted when the pauses role is granted.\n    /// @param pauser The address that the pauser role was granted to.\n    /// @param admin The address of the admin that triggered the change.\n    event PauserGranted(address indexed pauser, address admin);\n\n    /// @notice Emitted when the pauses role is revoked.\n    /// @param pauser The address that the pauser role was revoked from.\n    /// @param admin The address of the admin that triggered the change.\n    event PauserRevoked(address indexed pauser, address admin);\n\n    /// @notice Emitted when the pause is triggered.\n    /// @param pauser The address that triggered the change.\n    event Paused(address pauser);\n\n    /// @notice Emitted when the pause is lifted.\n    /// @param pauser The address that triggered the change.\n    event Unpaused(address pauser);\n\n    struct ManagedStorage {\n        bool isPaused;\n        EnumerableSet.AddressSet pausers;\n    }\n\n    /// @notice Throws if called by any caller other than the admin.\n    modifier onlyAdmin() {\n        require(admin() == msg.sender, \"Caller is not the admin\");\n        _;\n    }\n\n    /// @notice Throws if called by any caller other than the admin or a pauser.\n    modifier onlyAdminOrPauser() {\n        require(\n            admin() == msg.sender || isPauser(msg.sender), \"Caller is not the admin or a pauser\"\n        );\n        _;\n    }\n\n    /// @notice Modifier to make a function callable only when the contract is not paused.\n    modifier whenNotPaused() {\n        require(!paused(), \"Contract paused\");\n        _;\n    }\n\n    /// @notice Modifier to make a function callable only when the contract is paused.\n    modifier whenPaused() {\n        require(paused(), \"Contract not paused\");\n        _;\n    }\n\n    /// @notice Initializes the contract in paused state and with no admin.\n    /// The contract instance can be used only as a call delegation target for a proxy.\n    constructor() {\n        _managedStorage().isPaused = true;\n    }\n\n    /// @notice Returns the address of the current admin.\n    function admin() public view returns (address) {\n        return _getAdmin();\n    }\n\n    /// @notice Changes the admin of the contract.\n    /// Can only be called by the current admin.\n    function changeAdmin(address newAdmin) public onlyAdmin {\n        _changeAdmin(newAdmin);\n    }\n\n    /// @notice Grants the pauser role to an address. Callable only by the admin.\n    /// @param pauser The granted address.\n    function grantPauser(address pauser) public onlyAdmin {\n        require(_managedStorage().pausers.add(pauser), \"Address already is a pauser\");\n        emit PauserGranted(pauser, msg.sender);\n    }\n\n    /// @notice Revokes the pauser role from an address. Callable only by the admin.\n    /// @param pauser The revoked address.\n    function revokePauser(address pauser) public onlyAdmin {\n        require(_managedStorage().pausers.remove(pauser), \"Address is not a pauser\");\n        emit PauserRevoked(pauser, msg.sender);\n    }\n\n    /// @notice Checks if an address is a pauser.\n    /// @param pauser The checked address.\n    /// @return isAddrPauser True if the address is a pauser.\n    function isPauser(address pauser) public view returns (bool isAddrPauser) {\n        return _managedStorage().pausers.contains(pauser);\n    }\n\n    /// @notice Returns all the addresses with the pauser role.\n    /// @return pausersList The list of all the pausers, ordered arbitrarily.\n    /// The list's order may change after granting or revoking the pauser role.\n    function allPausers() public view returns (address[] memory pausersList) {\n        return _managedStorage().pausers.values();\n    }\n\n    /// @notice Returns true if the contract is paused, and false otherwise.\n    function paused() public view returns (bool isPaused) {\n        return _managedStorage().isPaused;\n    }\n\n    /// @notice Triggers stopped state. Callable only by the admin or a pauser.\n    function pause() public onlyAdminOrPauser whenNotPaused {\n        _managedStorage().isPaused = true;\n        emit Paused(msg.sender);\n    }\n\n    /// @notice Returns to normal state. Callable only by the admin or a pauser.\n    function unpause() public onlyAdminOrPauser whenPaused {\n        _managedStorage().isPaused = false;\n        emit Unpaused(msg.sender);\n    }\n\n    /// @notice Calculates the ERC-1967 slot pointer.\n    /// @param name The name of the slot, should be globally unique\n    /// @return slot The slot pointer\n    function _erc1967Slot(string memory name) internal pure returns (bytes32 slot) {\n        return bytes32(uint256(keccak256(bytes(name))) - 1);\n    }\n\n    /// @notice Returns the Managed storage.\n    /// @return storageRef The storage.\n    function _managedStorage() internal view returns (ManagedStorage storage storageRef) {\n        bytes32 slot = _managedStorageSlot;\n        // slither-disable-next-line assembly\n        assembly {\n            storageRef.slot := slot\n        }\n    }\n\n    /// @notice Authorizes the contract upgrade. See `UUPSUpgradeable` docs for more details.\n    function _authorizeUpgrade(address /* newImplementation */ ) internal view override onlyAdmin {\n        return;\n    }\n}"
}