{"sources":{"src/CircuitBreaker.sol":{"content":"// SPDX-FileCopyrightText: 2026 Lido <info@lido.fi>\n// SPDX-License-Identifier: GPL-3.0\npragma solidity 0.8.34;\n\nimport {Registry} from \"./Registry.sol\";\n\n/// @title  IPausable\n/// @notice Interface pausable contracts must implement for CircuitBreaker compatibility.\ninterface IPausable {\n    /// @notice Whether the contract is currently paused.\n    function isPaused() external view returns (bool);\n\n    /// @notice Pause the contract for a given duration.\n    /// @param  _duration Duration in seconds.\n    function pauseFor(uint256 _duration) external;\n}\n\n/// @title  CircuitBreaker\n/// @author Lido\n/// @notice Emergency pause manager for pausable contracts.\n/// @dev    Some setups (e.g. a DAO with on-chain voting) cannot respond fast enough\n///         in emergency situations. This contract lets the admin delegate pause authority to\n///         designated pausers that can act instantly.\n///\n///         Design:\n///         - Immutable admin to avoid ownership exploits/mistakes.\n///         - One pauser per pausable for clear accountability.\n///         - Single-use pause minimizes damage if pauser is compromised.\n///         - Same pause duration for all contracts because the admin's reaction time depends\n///           on the governance timelines, not on the individual contract.\n///         - Pausers must periodically heartbeat to prove liveness. Each heartbeat extends\n///           their authorization window. A committee that cannot prove its liveness should not\n///           be trusted to respond in an emergency.\n///\n///         Trust assumptions:\n///         - Admin is always honest.\n///         - Pausable is a trusted contract upon registration.\n///         - Pauser is a trusted multisig committee upon registration.\ncontract CircuitBreaker {\n    using Registry for Registry.Storage;\n\n    // =========================================================================\n    // Immutables\n    // =========================================================================\n\n    /// @notice Admin address.\n    address public immutable ADMIN;\n\n    /// @notice Inclusive lower bound for pauseDuration in seconds.\n    uint256 public immutable MIN_PAUSE_DURATION;\n\n    /// @notice Inclusive upper bound for pauseDuration in seconds.\n    uint256 public immutable MAX_PAUSE_DURATION;\n\n    /// @notice Inclusive lower bound for heartbeatInterval in seconds.\n    uint256 public immutable MIN_HEARTBEAT_INTERVAL;\n\n    /// @notice Inclusive upper bound for heartbeatInterval in seconds.\n    uint256 public immutable MAX_HEARTBEAT_INTERVAL;\n\n    // =========================================================================\n    // State variables\n    // =========================================================================\n\n    /// @notice Duration in seconds of the pause applied to the pausable on trigger.\n    uint256 public pauseDuration;\n\n    /// @notice Time window in seconds since last heartbeat within which a pauser is considered authorized.\n    uint256 public heartbeatInterval;\n\n    /// @notice Timestamp after which a pauser is no longer authorized to heartbeat or pause.\n    mapping(address pauser => uint256 timestamp) public heartbeatExpiry;\n\n    /// @dev    Tracks pausable-to-pauser registrations.\n    Registry.Storage internal registry;\n\n    /// @dev    Reentrancy guard that prevents a malicious pausable from reentering\n    ///         to trigger a pause on a different pausable.\n    bool internal transient lock;\n\n    // =========================================================================\n    // Events\n    // =========================================================================\n\n    event CircuitBreakerInitialized(\n        address indexed admin,\n        uint256 minPauseDuration,\n        uint256 maxPauseDuration,\n        uint256 minHeartbeatInterval,\n        uint256 maxHeartbeatInterval\n    );\n\n    event PauseDurationUpdated(uint256 previousPauseDuration, uint256 newPauseDuration);\n    event HeartbeatIntervalUpdated(uint256 previousHeartbeatInterval, uint256 newHeartbeatInterval);\n    event HeartbeatUpdated(address indexed pauser, uint256 newHeartbeatExpiry);\n    event PauseTriggered(address indexed pausable, address indexed pauser, uint256 pauseDuration);\n\n    // =========================================================================\n    // Errors\n    // =========================================================================\n\n    error SenderNotAdmin();\n    error SenderNotPauser();\n\n    error AdminZero();\n\n    error MinPauseDurationZero();\n    error MinPauseDurationExceedsMax();\n\n    error PauseDurationBelowMin();\n    error PauseDurationAboveMax();\n\n    error MinHeartbeatIntervalZero();\n    error MinHeartbeatIntervalExceedsMax();\n\n    error HeartbeatIntervalBelowMin();\n    error HeartbeatIntervalAboveMax();\n\n    error HeartbeatExpired();\n    error PauseFailed();\n    error ReentrantCall();\n\n    // =========================================================================\n    // Modifiers\n    // =========================================================================\n\n    modifier nonReentrant() {\n        require(!lock, ReentrantCall());\n        lock = true;\n        _;\n        lock = false;\n    }\n\n    modifier onlyAdmin() {\n        require(msg.sender == ADMIN, SenderNotAdmin());\n        _;\n    }\n\n    // =========================================================================\n    // Constructor\n    // =========================================================================\n\n    /// @param _admin                    Admin address.\n    /// @param _minPauseDuration         Inclusive lower bound for pause duration.\n    /// @param _maxPauseDuration         Inclusive upper bound for pause duration.\n    /// @param _minHeartbeatInterval     Inclusive lower bound for heartbeat interval.\n    /// @param _maxHeartbeatInterval     Inclusive upper bound for heartbeat interval.\n    /// @param _initialPauseDuration     Initial pause duration.\n    /// @param _initialHeartbeatInterval Initial heartbeat interval.\n    constructor(\n        address _admin,\n        uint256 _minPauseDuration,\n        uint256 _maxPauseDuration,\n        uint256 _minHeartbeatInterval,\n        uint256 _maxHeartbeatInterval,\n        uint256 _initialPauseDuration,\n        uint256 _initialHeartbeatInterval\n    ) {\n        require(_admin != address(0), AdminZero());\n        require(_minPauseDuration != 0, MinPauseDurationZero());\n        require(_minPauseDuration <= _maxPauseDuration, MinPauseDurationExceedsMax());\n        require(_minHeartbeatInterval != 0, MinHeartbeatIntervalZero());\n        require(_minHeartbeatInterval <= _maxHeartbeatInterval, MinHeartbeatIntervalExceedsMax());\n\n        ADMIN = _admin;\n        MIN_PAUSE_DURATION = _minPauseDuration;\n        MAX_PAUSE_DURATION = _maxPauseDuration;\n        MIN_HEARTBEAT_INTERVAL = _minHeartbeatInterval;\n        MAX_HEARTBEAT_INTERVAL = _maxHeartbeatInterval;\n\n        emit CircuitBreakerInitialized(\n            _admin, _minPauseDuration, _maxPauseDuration, _minHeartbeatInterval, _maxHeartbeatInterval\n        );\n\n        _setPauseDuration(_initialPauseDuration);\n        _setHeartbeatInterval(_initialHeartbeatInterval);\n    }\n\n    // =========================================================================\n    // View functions\n    // =========================================================================\n\n    /// @notice Return the pauser registered for a pausable.\n    /// @param  _pausable Pausable contract address.\n    /// @return Pauser address, or zero if not registered.\n    function getPauser(address _pausable) external view returns (address) {\n        return registry.getPauser(_pausable);\n    }\n\n    /// @notice Return all pausable addresses currently registered.\n    /// @return Array of pausable addresses.\n    function getPausables() external view returns (address[] memory) {\n        return registry.getPausables();\n    }\n\n    /// @notice Return the number of pausables assigned to a pauser.\n    /// @param  _pauser Pauser address.\n    /// @return Number of pausables.\n    function getPausableCount(address _pauser) external view returns (uint256) {\n        return registry.getPausableCount(_pauser);\n    }\n\n    /// @notice Return whether a pauser is live and registered to at least one pausable.\n    /// @param  _pauser Pauser address.\n    /// @return True if the heartbeat has not expired.\n    function isPauserLive(address _pauser) public view returns (bool) {\n        return block.timestamp < heartbeatExpiry[_pauser];\n    }\n\n    // =========================================================================\n    // Admin functions\n    // =========================================================================\n\n    /// @notice Set the pause duration applied on pause.\n    /// @param  _newPauseDuration New duration in seconds.\n    function setPauseDuration(uint256 _newPauseDuration) external onlyAdmin {\n        _setPauseDuration(_newPauseDuration);\n    }\n\n    /// @notice Set the heartbeat interval pausers must maintain to remain active.\n    /// @param  _newHeartbeatInterval New interval in seconds.\n    function setHeartbeatInterval(uint256 _newHeartbeatInterval) external onlyAdmin {\n        _setHeartbeatInterval(_newHeartbeatInterval);\n    }\n\n    /// @notice Register, replace, or unregister a pauser for a pausable.\n    ///         - The previous pauser is overwritten. If they have no remaining pausables,\n    ///           their heartbeat expiry is cleared.\n    ///         - The new pauser's heartbeat expiry is extended on registration.\n    /// @dev    Does not verify CircuitBreaker has pause permission on the pausable or that the\n    ///         pausable implements the correct interface. These properties can change after\n    ///         registration (e.g. the pausable revokes the role, implementation changes via proxy upgrade).\n    /// @param  _pausable Pausable contract address.\n    /// @param  _newPauser New pauser address. Zero unregisters the pauser.\n    function registerPauser(address _pausable, address _newPauser) external onlyAdmin {\n        address previousPauser = registry.getPauser(_pausable);\n        registry.setPauser(_pausable, _newPauser);\n\n        if (previousPauser != address(0) && !registry.isRegistered(previousPauser)) {\n            _setHeartbeatExpiry(previousPauser, 0);\n        }\n\n        if (_newPauser != address(0)) {\n            _setHeartbeatExpiry(_newPauser, block.timestamp + heartbeatInterval);\n        }\n    }\n\n    // =========================================================================\n    // Pauser functions\n    // =========================================================================\n\n    /// @notice Record a liveness proof to remain authorized to pause.\n    function heartbeat() external {\n        require(registry.isRegistered(msg.sender), SenderNotPauser());\n        require(isPauserLive(msg.sender), HeartbeatExpired());\n\n        _setHeartbeatExpiry(msg.sender, block.timestamp + heartbeatInterval);\n    }\n\n    /// @notice Pause a pausable contract. The pausable must implement IPausable and must have\n    ///         granted CircuitBreaker the pause role.\n    ///         Single-use: the caller is unregistered from this pausable after a successful\n    ///         pause. Their heartbeat expiry is extended if they still have other\n    ///         pausables registered, or cleared otherwise.\n    /// @param  _pausable Pausable contract to pause.\n    function pause(address _pausable) external nonReentrant {\n        require(msg.sender == registry.getPauser(_pausable), SenderNotPauser());\n        require(isPauserLive(msg.sender), HeartbeatExpired());\n\n        uint256 duration = pauseDuration;\n        IPausable target = IPausable(_pausable);\n\n        registry.setPauser(_pausable, address(0));\n        target.pauseFor(duration);\n        require(target.isPaused(), PauseFailed());\n        emit PauseTriggered(_pausable, msg.sender, duration);\n\n        _setHeartbeatExpiry(msg.sender, registry.isRegistered(msg.sender) ? block.timestamp + heartbeatInterval : 0);\n    }\n\n    // =========================================================================\n    // Internal functions\n    // =========================================================================\n\n    /// @dev    Sets the heartbeat expiry.\n    /// @param  _pauser Pauser address.\n    /// @param  _expiry New heartbeat expiry timestamp.\n    function _setHeartbeatExpiry(address _pauser, uint256 _expiry) internal {\n        heartbeatExpiry[_pauser] = _expiry;\n\n        emit HeartbeatUpdated(_pauser, _expiry);\n    }\n\n    /// @dev    Sets the pause duration. Reverts if outside [MIN, MAX] bounds.\n    /// @param  _newPauseDuration New duration in seconds.\n    function _setPauseDuration(uint256 _newPauseDuration) internal {\n        require(_newPauseDuration >= MIN_PAUSE_DURATION, PauseDurationBelowMin());\n        require(_newPauseDuration <= MAX_PAUSE_DURATION, PauseDurationAboveMax());\n\n        emit PauseDurationUpdated(pauseDuration, _newPauseDuration);\n\n        pauseDuration = _newPauseDuration;\n    }\n\n    /// @dev    Sets the heartbeat interval. Reverts if outside [MIN, MAX] bounds.\n    /// @param  _newHeartbeatInterval New interval in seconds.\n    function _setHeartbeatInterval(uint256 _newHeartbeatInterval) internal {\n        require(_newHeartbeatInterval >= MIN_HEARTBEAT_INTERVAL, HeartbeatIntervalBelowMin());\n        require(_newHeartbeatInterval <= MAX_HEARTBEAT_INTERVAL, HeartbeatIntervalAboveMax());\n\n        emit HeartbeatIntervalUpdated(heartbeatInterval, _newHeartbeatInterval);\n\n        heartbeatInterval = _newHeartbeatInterval;\n    }\n}\n"},"src/Registry.sol":{"content":"// SPDX-FileCopyrightText: 2026 Lido <info@lido.fi>\n// SPDX-License-Identifier: GPL-3.0\npragma solidity 0.8.34;\n\n/// @title  Registry\n/// @author Lido\n/// @notice Library for managing an enumerable pausable-pauser registry.\nlibrary Registry {\n    // =========================================================================\n    // Types\n    // =========================================================================\n\n    /// @dev Pausable-to-pauser registry with an enumerable set of pausables.\n    ///      Each pausable has one pauser, but a pauser can be registered for many pausables.\n    ///      A separate counter (pausableCount) is kept per pauser so that isRegistered() can\n    ///      answer in O(1) instead of looping over the pausables array.\n    struct Storage {\n        mapping(address pausable => address pauser) pauser;\n        mapping(address pausable => uint256 oneBasedIndex) oneBasedIndex;\n        address[] pausables;\n        mapping(address pauser => uint256 pausableCount) pausableCount;\n    }\n\n    // =========================================================================\n    // Events\n    // =========================================================================\n\n    event PauserSet(address indexed pausable, address indexed previousPauser, address indexed newPauser);\n\n    // =========================================================================\n    // Errors\n    // =========================================================================\n\n    error PausableZero();\n\n    // =========================================================================\n    // View functions\n    // =========================================================================\n\n    /// @dev    Return the address of the pauser registered for a pausable.\n    /// @param  _pausable Pausable contract address.\n    /// @return Pauser address, or zero if not registered.\n    function getPauser(Storage storage _self, address _pausable) internal view returns (address) {\n        return _self.pauser[_pausable];\n    }\n\n    /// @dev    Return an array of all currently registered pausables.\n    /// @return Array of pausable addresses.\n    function getPausables(Storage storage _self) internal view returns (address[] memory) {\n        return _self.pausables;\n    }\n\n    /// @dev    Return the number of pausables registered to a pauser.\n    /// @param  _pauser Pauser address.\n    /// @return Number of pausables.\n    function getPausableCount(Storage storage _self, address _pauser) internal view returns (uint256) {\n        return _self.pausableCount[_pauser];\n    }\n\n    /// @dev    Return whether an address is currently registered for at least one pausable.\n    /// @param  _pauser Address to check.\n    /// @return True if the address has at least one pausable registered.\n    function isRegistered(Storage storage _self, address _pauser) internal view returns (bool) {\n        return _self.pausableCount[_pauser] > 0;\n    }\n\n    // =========================================================================\n    // Write functions\n    // =========================================================================\n\n    /// @dev    Register, replace, or unregister a pauser for a pausable.\n    ///         - Register:   previousPauser == 0, _newPauser != 0\n    ///         - Replace:    previousPauser != 0, _newPauser != 0\n    ///         - Unregister: previousPauser != 0, _newPauser == 0\n    ///\n    ///         Unregistration is idempotent: setting zero on an already-zero pauser succeeds\n    ///         (with an event) instead of reverting. Without this, a pauser could grief the admin\n    ///         by frontrunning the unregistration tx with a pause() call, which clears the mapping\n    ///         and would make the admin's transaction revert.\n    /// @param  _pausable  Pausable contract address.\n    /// @param  _newPauser New pauser address. Use address(0) to unregister.\n    function setPauser(Storage storage _self, address _pausable, address _newPauser) internal {\n        require(_pausable != address(0), PausableZero());\n\n        address previousPauser = _self.pauser[_pausable];\n\n        // Update the pauser.\n        _self.pauser[_pausable] = _newPauser;\n\n        // If replacing or unregistering, decrement the old pauser's pausable count.\n        // Otherwise this is a new pausable, so add it to the set.\n        if (previousPauser != address(0)) {\n            --_self.pausableCount[previousPauser];\n        } else {\n            _self.pausables.push(_pausable);\n            _self.oneBasedIndex[_pausable] = _self.pausables.length;\n        }\n\n        // If registering or replacing, increment the new pauser's pausable count.\n        // Otherwise this is an unregistration, so remove the pausable from the set.\n        if (_newPauser != address(0)) {\n            ++_self.pausableCount[_newPauser];\n        } else {\n            uint256 removedIndex = _self.oneBasedIndex[_pausable];\n            address lastPausable = _self.pausables[_self.pausables.length - 1];\n\n            _self.pausables[removedIndex - 1] = lastPausable;\n            _self.oneBasedIndex[lastPausable] = removedIndex;\n\n            _self.pausables.pop();\n            delete _self.oneBasedIndex[_pausable];\n        }\n\n        emit PauserSet(_pausable, previousPauser, _newPauser);\n    }\n}\n"}},"metadata":{"compiler":{"version":"0.8.34+commit.80d5c536"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"uint256","name":"_minPauseDuration","type":"uint256"},{"internalType":"uint256","name":"_maxPauseDuration","type":"uint256"},{"internalType":"uint256","name":"_minHeartbeatInterval","type":"uint256"},{"internalType":"uint256","name":"_maxHeartbeatInterval","type":"uint256"},{"internalType":"uint256","name":"_initialPauseDuration","type":"uint256"},{"internalType":"uint256","name":"_initialHeartbeatInterval","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AdminZero","type":"error"},{"inputs":[],"name":"HeartbeatExpired","type":"error"},{"inputs":[],"name":"HeartbeatIntervalAboveMax","type":"error"},{"inputs":[],"name":"HeartbeatIntervalBelowMin","type":"error"},{"inputs":[],"name":"MinHeartbeatIntervalExceedsMax","type":"error"},{"inputs":[],"name":"MinHeartbeatIntervalZero","type":"error"},{"inputs":[],"name":"MinPauseDurationExceedsMax","type":"error"},{"inputs":[],"name":"MinPauseDurationZero","type":"error"},{"inputs":[],"name":"PausableZero","type":"error"},{"inputs":[],"name":"PauseDurationAboveMax","type":"error"},{"inputs":[],"name":"PauseDurationBelowMin","type":"error"},{"inputs":[],"name":"PauseFailed","type":"error"},{"inputs":[],"name":"ReentrantCall","type":"error"},{"inputs":[],"name":"SenderNotAdmin","type":"error"},{"inputs":[],"name":"SenderNotPauser","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"admin","type":"address"},{"indexed":false,"internalType":"uint256","name":"minPauseDuration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxPauseDuration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minHeartbeatInterval","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxHeartbeatInterval","type":"uint256"}],"name":"CircuitBreakerInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousHeartbeatInterval","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newHeartbeatInterval","type":"uint256"}],"name":"HeartbeatIntervalUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pauser","type":"address"},{"indexed":false,"internalType":"uint256","name":"newHeartbeatExpiry","type":"uint256"}],"name":"HeartbeatUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousPauseDuration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPauseDuration","type":"uint256"}],"name":"PauseDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pausable","type":"address"},{"indexed":true,"internalType":"address","name":"pauser","type":"address"},{"indexed":false,"internalType":"uint256","name":"pauseDuration","type":"uint256"}],"name":"PauseTriggered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pausable","type":"address"},{"indexed":true,"internalType":"address","name":"previousPauser","type":"address"},{"indexed":true,"internalType":"address","name":"newPauser","type":"address"}],"name":"PauserSet","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_HEARTBEAT_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PAUSE_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_HEARTBEAT_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_PAUSE_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pauser","type":"address"}],"name":"getPausableCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPausables","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pausable","type":"address"}],"name":"getPauser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"heartbeat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pauser","type":"address"}],"name":"heartbeatExpiry","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"heartbeatInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pauser","type":"address"}],"name":"isPauserLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pausable","type":"address"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pausable","type":"address"},{"internalType":"address","name":"_newPauser","type":"address"}],"name":"registerPauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newHeartbeatInterval","type":"uint256"}],"name":"setHeartbeatInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPauseDuration","type":"uint256"}],"name":"setPauseDuration","outputs":[],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"author":"Lido","details":"Some setups (e.g. a DAO with on-chain voting) cannot respond fast enough         in emergency situations. This contract lets the admin delegate pause authority to         designated pausers that can act instantly.         Design:         - Immutable admin to avoid ownership exploits/mistakes.         - One pauser per pausable for clear accountability.         - Single-use pause minimizes damage if pauser is compromised.         - Same pause duration for all contracts because the admin's reaction time depends           on the governance timelines, not on the individual contract.         - Pausers must periodically heartbeat to prove liveness. Each heartbeat extends           their authorization window. A committee that cannot prove its liveness should not           be trusted to respond in an emergency.         Trust assumptions:         - Admin is always honest.         - Pausable is a trusted contract upon registration.         - Pauser is a trusted multisig committee upon registration.","kind":"dev","methods":{"constructor":{"params":{"_admin":"Admin address.","_initialHeartbeatInterval":"Initial heartbeat interval.","_initialPauseDuration":"Initial pause duration.","_maxHeartbeatInterval":"Inclusive upper bound for heartbeat interval.","_maxPauseDuration":"Inclusive upper bound for pause duration.","_minHeartbeatInterval":"Inclusive lower bound for heartbeat interval.","_minPauseDuration":"Inclusive lower bound for pause duration."}},"getPausableCount(address)":{"params":{"_pauser":"Pauser address."},"returns":{"_0":"Number of pausables."}},"getPausables()":{"returns":{"_0":"Array of pausable addresses."}},"getPauser(address)":{"params":{"_pausable":"Pausable contract address."},"returns":{"_0":"Pauser address, or zero if not registered."}},"isPauserLive(address)":{"params":{"_pauser":"Pauser address."},"returns":{"_0":"True if the heartbeat has not expired."}},"pause(address)":{"params":{"_pausable":"Pausable contract to pause."}},"registerPauser(address,address)":{"details":"Does not verify CircuitBreaker has pause permission on the pausable or that the         pausable implements the correct interface. These properties can change after         registration (e.g. the pausable revokes the role, implementation changes via proxy upgrade).","params":{"_newPauser":"New pauser address. Zero unregisters the pauser.","_pausable":"Pausable contract address."}},"setHeartbeatInterval(uint256)":{"params":{"_newHeartbeatInterval":"New interval in seconds."}},"setPauseDuration(uint256)":{"params":{"_newPauseDuration":"New duration in seconds."}}},"stateVariables":{"lock":{"details":"Reentrancy guard that prevents a malicious pausable from reentering         to trigger a pause on a different pausable."},"registry":{"details":"Tracks pausable-to-pauser registrations."}},"title":"CircuitBreaker","version":1},"userdoc":{"kind":"user","methods":{"ADMIN()":{"notice":"Admin address."},"MAX_HEARTBEAT_INTERVAL()":{"notice":"Inclusive upper bound for heartbeatInterval in seconds."},"MAX_PAUSE_DURATION()":{"notice":"Inclusive upper bound for pauseDuration in seconds."},"MIN_HEARTBEAT_INTERVAL()":{"notice":"Inclusive lower bound for heartbeatInterval in seconds."},"MIN_PAUSE_DURATION()":{"notice":"Inclusive lower bound for pauseDuration in seconds."},"getPausableCount(address)":{"notice":"Return the number of pausables assigned to a pauser."},"getPausables()":{"notice":"Return all pausable addresses currently registered."},"getPauser(address)":{"notice":"Return the pauser registered for a pausable."},"heartbeat()":{"notice":"Record a liveness proof to remain authorized to pause."},"heartbeatExpiry(address)":{"notice":"Timestamp after which a pauser is no longer authorized to heartbeat or pause."},"heartbeatInterval()":{"notice":"Time window in seconds since last heartbeat within which a pauser is considered authorized."},"isPauserLive(address)":{"notice":"Return whether a pauser is live and registered to at least one pausable."},"pause(address)":{"notice":"Pause a pausable contract. The pausable must implement IPausable and must have         granted CircuitBreaker the pause role.         Single-use: the caller is unregistered from this pausable after a successful         pause. Their heartbeat expiry is extended if they still have other         pausables registered, or cleared otherwise."},"pauseDuration()":{"notice":"Duration in seconds of the pause applied to the pausable on trigger."},"registerPauser(address,address)":{"notice":"Register, replace, or unregister a pauser for a pausable.         - The previous pauser is overwritten. If they have no remaining pausables,           their heartbeat expiry is cleared.         - The new pauser's heartbeat expiry is extended on registration."},"setHeartbeatInterval(uint256)":{"notice":"Set the heartbeat interval pausers must maintain to remain active."},"setPauseDuration(uint256)":{"notice":"Set the pause duration applied on pause."}},"notice":"Emergency pause manager for pausable contracts.","version":1}},"settings":{"compilationTarget":{"src/CircuitBreaker.sol":"CircuitBreaker"},"evmVersion":"prague","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":10000},"remappings":[":forge-std/=lib/forge-std/src/"]},"sources":{"src/CircuitBreaker.sol":{"keccak256":"0x3eea71b5921c1d076671b95918456759532871fe09c5f27a52412785c84db010","license":"GPL-3.0","urls":["bzz-raw://55cbf3d3331febb837fd9c33490237a1a2cbe19e0977104681c7ba8b06d189ab","dweb:/ipfs/Qmanwj71EUGhb9cQKgAKgwFx9sdYseTsddUUj6ioxJvun1"]},"src/Registry.sol":{"keccak256":"0x1fba26df036604960bf1484f026089fc9b983a1cb295596eca9c8d2f9780bf9f","license":"GPL-3.0","urls":["bzz-raw://dd9247bebcc96302425c4631bd140b98374e1957043dcde2b1731f55ae0ec610","dweb:/ipfs/QmeRBMvBN4hosU6nMdx7d22ZDSWU5oUtebpmfehGXqVNfg"]}},"version":1},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.34+commit.80d5c536","compilerSettings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"ipfs","useLiteralContent":false},"optimizer":{"runs":10000,"enabled":true},"evmVersion":"prague","remappings":["forge-std/=lib/forge-std/src/"]},"name":"CircuitBreaker","fullyQualifiedName":"src/CircuitBreaker.sol:CircuitBreaker"},"runtimeBytecode":{"onchainBytecode":"0x608060405234801561000f575f5ffd5b5060043610610115575f3560e01c806371a99c22116100ad5780638cd80ba01161007d578063c427909e11610063578063c427909e146102a3578063c9387332146102c2578063d10ea321146102d5575f5ffd5b80638cd80ba0146102695780638dd54ee71461027c575f5ffd5b806371a99c22146101f557806376a67a511461020857806376c810b51461021b578063879f32f614610242575f5ffd5b80633defb962116100e85780633defb962146101bc5780635280237a146101c457806354720ecd146101d7578063561a4fac146101ec575f5ffd5b80630526679c146101195780632799657d146101345780632a0acc6a1461015b578063338d93fc146101a7575b5f5ffd5b6101215f5481565b6040519081526020015b60405180910390f35b6101217f00000000000000000000000000000000000000000000000000000000004f1a0081565b6101827f0000000000000000000000003e40d73eb977dc6a537af587d48316fee66e9c8c81565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161012b565b6101ba6101b5366004610fbb565b61031c565b005b6101ba610450565b6101826101d2366004610fec565b6104f0565b6101df610520565b60405161012b919061100c565b61012160015481565b6101ba610203366004611064565b610531565b6101ba610216366004610fec565b6105ac565b6101217f000000000000000000000000000000000000000000000000000000000006978081565b6101217f0000000000000000000000000000000000000000000000000000000005a39a8081565b610121610277366004610fec565b610892565b6101217f0000000000000000000000000000000000000000000000000000000000278d0081565b6101216102b1366004610fec565b60026020525f908152604090205481565b6101ba6102d0366004611064565b6108bc565b61030c6102e3366004610fec565b73ffffffffffffffffffffffffffffffffffffffff165f90815260026020526040902054421090565b604051901515815260200161012b565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003e40d73eb977dc6a537af587d48316fee66e9c8c161461038b576040517fa6c827a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8083165f9081526003602052604081205490911690506103c260038484610934565b73ffffffffffffffffffffffffffffffffffffffff811615801590610409575073ffffffffffffffffffffffffffffffffffffffff81165f90815260066020526040902054155b1561041857610418815f610cd5565b73ffffffffffffffffffffffffffffffffffffffff82161561044b5761044b826001544261044691906110a8565b610cd5565b505050565b335f90815260066020526040902054610495576040517f31fe391900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b335f9081526002602052604090205442106104dc576040517f0a59e02f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104ee336001544261044691906110a8565b565b73ffffffffffffffffffffffffffffffffffffffff8082165f908152600360205260408120549091165b92915050565b606061052c6003610d3a565b905090565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003e40d73eb977dc6a537af587d48316fee66e9c8c16146105a0576040517fa6c827a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105a981610dab565b50565b60ff5f5c16156105e8576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015f805c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168217905d5073ffffffffffffffffffffffffffffffffffffffff8181165f90815260036020526040902054163314610673576040517f31fe391900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b335f9081526002602052604090205442106106ba576040517f0a59e02f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80549082906106ce906003908390610934565b6040517ff3f449c70000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff82169063f3f449c7906024015f604051808303815f87803b158015610733575f5ffd5b505af1158015610745573d5f5f3e3d5ffd5b505050508073ffffffffffffffffffffffffffffffffffffffff1663b187bd266040518163ffffffff1660e01b8152600401602060405180830381865afa158015610792573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107b691906110bb565b6107ec576040517f50ea78a800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604051828152339073ffffffffffffffffffffffffffffffffffffffff8516907f9628d25c6e4299393a2779652c1df703eb599acae5fc406c6ef98e92c9ccd93e9060200160405180910390a3335f818152600660205260409020546108649190610857575f610cd5565b60015461044690426110a8565b505f90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815c16815d5050565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526006602052604081205461051a565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003e40d73eb977dc6a537af587d48316fee66e9c8c161461092b576040517fa6c827a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105a981610ea0565b73ffffffffffffffffffffffffffffffffffffffff8216610981576040517f621d63ad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8083165f90815260208590526040902080548383167fffffffffffffffffffffffff0000000000000000000000000000000000000000821617909155168015610a165773ffffffffffffffffffffffffffffffffffffffff81165f90815260038501602052604081208054909190610a0d906110da565b90915550610a81565b600284018054600180820183555f838152602080822090930180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8916908117909155935493815290870190915260409020555b73ffffffffffffffffffffffffffffffffffffffff821615610ada5773ffffffffffffffffffffffffffffffffffffffff82165f90815260038501602052604081208054909190610ad19061110e565b90915550610c5e565b73ffffffffffffffffffffffffffffffffffffffff83165f908152600180860160205260408220546002870180549193929091610b179190611145565b81548110610b2757610b27611158565b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff1690508060028701610b5a600185611145565b81548110610b6a57610b6a611158565b5f91825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559183168152600188019091526040902082905560028601805480610bdc57610bdc611185565b5f828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff87168252600188019052604081205550505b8173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fd92c3c28ed17463268f864776463c4c2154f89b18156d3edf77c0e37d047691360405160405180910390a450505050565b73ffffffffffffffffffffffffffffffffffffffff82165f8181526002602052604090819020839055517f4ea9e94baeeb3668b47d8d9b4cc8f5a1784d783dd263d7d76f8c10d6a10aed4490610d2e9084815260200190565b60405180910390a25050565b606081600201805480602002602001604051908101604052809291908181526020018280548015610d9f57602002820191905f5260205f20905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610d74575b50505050509050919050565b7f0000000000000000000000000000000000000000000000000000000000278d00811015610e05576040517f65c1a5a000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000005a39a80811115610e5f576040517ff6ba3d5600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015460408051918252602082018390527fca0a37da24604276f661e36e2b0e71661bb56f8d13994a5d0f207070125b950c910160405180910390a1600155565b7f0000000000000000000000000000000000000000000000000000000000069780811015610efa576040517fa63cdc9a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000004f1a00811115610f54576040517fbb456a6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5460408051918252602082018390527ff6e1f1afec511d8b8e9a65bb53c947ac99ea4211fb22e0d6a0e331d55d7345f8910160405180910390a15f55565b803573ffffffffffffffffffffffffffffffffffffffff81168114610fb6575f5ffd5b919050565b5f5f60408385031215610fcc575f5ffd5b610fd583610f93565b9150610fe360208401610f93565b90509250929050565b5f60208284031215610ffc575f5ffd5b61100582610f93565b9392505050565b602080825282518282018190525f918401906040840190835b8181101561105957835173ffffffffffffffffffffffffffffffffffffffff16835260209384019390920191600101611025565b509095945050505050565b5f60208284031215611074575f5ffd5b5035919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b8082018082111561051a5761051a61107b565b5f602082840312156110cb575f5ffd5b81518015158114611005575f5ffd5b5f816110e8576110e861107b565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361113e5761113e61107b565b5060010190565b8181038181111561051a5761051a61107b565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea264697066735822122027ff1eeeaefeaa0f332f4d60bf65d882e98623d7b0e15d59e15c244373a061bc64736f6c63430008220033","recompiledBytecode":"0x608060405234801561000f575f5ffd5b5060043610610115575f3560e01c806371a99c22116100ad5780638cd80ba01161007d578063c427909e11610063578063c427909e146102a3578063c9387332146102c2578063d10ea321146102d5575f5ffd5b80638cd80ba0146102695780638dd54ee71461027c575f5ffd5b806371a99c22146101f557806376a67a511461020857806376c810b51461021b578063879f32f614610242575f5ffd5b80633defb962116100e85780633defb962146101bc5780635280237a146101c457806354720ecd146101d7578063561a4fac146101ec575f5ffd5b80630526679c146101195780632799657d146101345780632a0acc6a1461015b578063338d93fc146101a7575b5f5ffd5b6101215f5481565b6040519081526020015b60405180910390f35b6101217f000000000000000000000000000000000000000000000000000000000000000081565b6101827f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161012b565b6101ba6101b5366004610fbb565b61031c565b005b6101ba610450565b6101826101d2366004610fec565b6104f0565b6101df610520565b60405161012b919061100c565b61012160015481565b6101ba610203366004611064565b610531565b6101ba610216366004610fec565b6105ac565b6101217f000000000000000000000000000000000000000000000000000000000000000081565b6101217f000000000000000000000000000000000000000000000000000000000000000081565b610121610277366004610fec565b610892565b6101217f000000000000000000000000000000000000000000000000000000000000000081565b6101216102b1366004610fec565b60026020525f908152604090205481565b6101ba6102d0366004611064565b6108bc565b61030c6102e3366004610fec565b73ffffffffffffffffffffffffffffffffffffffff165f90815260026020526040902054421090565b604051901515815260200161012b565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461038b576040517fa6c827a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8083165f9081526003602052604081205490911690506103c260038484610934565b73ffffffffffffffffffffffffffffffffffffffff811615801590610409575073ffffffffffffffffffffffffffffffffffffffff81165f90815260066020526040902054155b1561041857610418815f610cd5565b73ffffffffffffffffffffffffffffffffffffffff82161561044b5761044b826001544261044691906110a8565b610cd5565b505050565b335f90815260066020526040902054610495576040517f31fe391900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b335f9081526002602052604090205442106104dc576040517f0a59e02f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104ee336001544261044691906110a8565b565b73ffffffffffffffffffffffffffffffffffffffff8082165f908152600360205260408120549091165b92915050565b606061052c6003610d3a565b905090565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146105a0576040517fa6c827a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105a981610dab565b50565b60ff5f5c16156105e8576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015f805c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168217905d5073ffffffffffffffffffffffffffffffffffffffff8181165f90815260036020526040902054163314610673576040517f31fe391900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b335f9081526002602052604090205442106106ba576040517f0a59e02f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80549082906106ce906003908390610934565b6040517ff3f449c70000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff82169063f3f449c7906024015f604051808303815f87803b158015610733575f5ffd5b505af1158015610745573d5f5f3e3d5ffd5b505050508073ffffffffffffffffffffffffffffffffffffffff1663b187bd266040518163ffffffff1660e01b8152600401602060405180830381865afa158015610792573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107b691906110bb565b6107ec576040517f50ea78a800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604051828152339073ffffffffffffffffffffffffffffffffffffffff8516907f9628d25c6e4299393a2779652c1df703eb599acae5fc406c6ef98e92c9ccd93e9060200160405180910390a3335f818152600660205260409020546108649190610857575f610cd5565b60015461044690426110a8565b505f90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815c16815d5050565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526006602052604081205461051a565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461092b576040517fa6c827a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105a981610ea0565b73ffffffffffffffffffffffffffffffffffffffff8216610981576040517f621d63ad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8083165f90815260208590526040902080548383167fffffffffffffffffffffffff0000000000000000000000000000000000000000821617909155168015610a165773ffffffffffffffffffffffffffffffffffffffff81165f90815260038501602052604081208054909190610a0d906110da565b90915550610a81565b600284018054600180820183555f838152602080822090930180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8916908117909155935493815290870190915260409020555b73ffffffffffffffffffffffffffffffffffffffff821615610ada5773ffffffffffffffffffffffffffffffffffffffff82165f90815260038501602052604081208054909190610ad19061110e565b90915550610c5e565b73ffffffffffffffffffffffffffffffffffffffff83165f908152600180860160205260408220546002870180549193929091610b179190611145565b81548110610b2757610b27611158565b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff1690508060028701610b5a600185611145565b81548110610b6a57610b6a611158565b5f91825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559183168152600188019091526040902082905560028601805480610bdc57610bdc611185565b5f828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff87168252600188019052604081205550505b8173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fd92c3c28ed17463268f864776463c4c2154f89b18156d3edf77c0e37d047691360405160405180910390a450505050565b73ffffffffffffffffffffffffffffffffffffffff82165f8181526002602052604090819020839055517f4ea9e94baeeb3668b47d8d9b4cc8f5a1784d783dd263d7d76f8c10d6a10aed4490610d2e9084815260200190565b60405180910390a25050565b606081600201805480602002602001604051908101604052809291908181526020018280548015610d9f57602002820191905f5260205f20905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610d74575b50505050509050919050565b7f0000000000000000000000000000000000000000000000000000000000000000811015610e05576040517f65c1a5a000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115610e5f576040517ff6ba3d5600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015460408051918252602082018390527fca0a37da24604276f661e36e2b0e71661bb56f8d13994a5d0f207070125b950c910160405180910390a1600155565b7f0000000000000000000000000000000000000000000000000000000000000000811015610efa576040517fa63cdc9a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115610f54576040517fbb456a6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5460408051918252602082018390527ff6e1f1afec511d8b8e9a65bb53c947ac99ea4211fb22e0d6a0e331d55d7345f8910160405180910390a15f55565b803573ffffffffffffffffffffffffffffffffffffffff81168114610fb6575f5ffd5b919050565b5f5f60408385031215610fcc575f5ffd5b610fd583610f93565b9150610fe360208401610f93565b90509250929050565b5f60208284031215610ffc575f5ffd5b61100582610f93565b9392505050565b602080825282518282018190525f918401906040840190835b8181101561105957835173ffffffffffffffffffffffffffffffffffffffff16835260209384019390920191600101611025565b509095945050505050565b5f60208284031215611074575f5ffd5b5035919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b8082018082111561051a5761051a61107b565b5f602082840312156110cb575f5ffd5b81518015158114611005575f5ffd5b5f816110e8576110e861107b565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361113e5761113e61107b565b5060010190565b8181038181111561051a5761051a61107b565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea264697066735822122027ff1eeeaefeaa0f332f4d60bf65d882e98623d7b0e15d59e15c244373a061bc64736f6c63430008220033","sourceMap":"1747:11804:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2827:28;;;;;;;;;160:25:2;;;148:2;133:18;2827:28:0;;;;;;;;2254:43;;;;;2031:30;;;;;;;;372:42:2;360:55;;;342:74;;330:2;315:18;2031:30:0;196:226:2;9930:486:0;;;;;;:::i;:::-;;:::i;:::-;;10680:250;;;:::i;7511:123::-;;;;;;:::i;:::-;;:::i;7753:112::-;;;:::i;:::-;;;;;;;:::i;2970:32::-;;;;;;9057:141;;;;;;:::i;:::-;;:::i;11376:618::-;;;;;;:::i;:::-;;:::i;2136:43::-;;;;;2502:47;;;;;8017:133;;;;;;:::i;:::-;;:::i;2376:47::-;;;;;3103:67;;;;;;:::i;:::-;;;;;;;;;;;;;;8780:125;;;;;;:::i;:::-;;:::i;8340:132::-;;;;;;:::i;:::-;8441:24;;8400:4;8441:24;;;:15;:24;;;;;;8423:15;:42;;8340:132;;;;2099:14:2;;2092:22;2074:41;;2062:2;2047:18;8340:132:0;1934:187:2;9930:486:0;5221:10;:19;5235:5;5221:19;;5213:46;;;;;;;;;;;;;;;;;1996:23:1;;;;10022:22:0::1;1996:23:1::0;;;10047:8:0::1;1996:23:1::0;;;;;;10022:22:0;;1996:23:1;10022:54:0;-1:-1:-1;10086:41:0::1;:8;10105:9:::0;10116:10;10086:18:::1;:41::i;:::-;10142:28;::::0;::::1;::::0;;::::1;::::0;:70:::1;;-1:-1:-1::0;2900:28:1;;;2877:4;2900:28;;;:19;:28;;;;;;:32;10142:70:0::1;10138:139;;;10228:38;10248:14;10264:1;10228:19;:38::i;:::-;10291:24;::::0;::::1;::::0;10287:123:::1;;10331:68;10351:10;10381:17;;10363:15;:35;;;;:::i;:::-;10331:19;:68::i;:::-;10012:404;9930:486:::0;;:::o;10680:250::-;10750:10;2877:4:1;2900:28;;;:19;:28;;;;;;10720:61:0;;;;;;;;;;;;;;;;;10812:10;8400:4;8441:24;;;:15;:24;;;;;;8423:15;:42;10791:53;;;;;;;;;;;;;;;;;10855:68;10875:10;10905:17;;10887:15;:35;;;;:::i;10855:68::-;10680:250::o;7511:123::-;1996:23:1;;;;7572:7:0;1996:23:1;;;7598:8:0;1996:23:1;;;;;;7572:7:0;;1996:23:1;7598:29:0;7591:36;7511:123;-1:-1:-1;;7511:123:0:o;7753:112::-;7800:16;7835:23;:8;:21;:23::i;:::-;7828:30;;7753:112;:::o;9057:141::-;5221:10;:19;5235:5;5221:19;;5213:46;;;;;;;;;;;;;;;;;9147:44:::1;9169:21;9147;:44::i;:::-;9057:141:::0;:::o;11376:618::-;5093:4;;;;5092:5;5084:31;;;;;;;;;;;;;;;;;5132:4;5125;:11;;;;;;;;-1:-1:-1;1996:23:1;;;;1970:7;1996:23;;;11464:8:0::1;1996:23:1::0;;;;;;;11450:10:0::1;:43;11442:71;;;;;;;;;;;;;;;;;11544:10;8400:4:::0;8441:24;;;:15;:24;;;;;;8423:15;:42;11523:53:::1;;;;;;;;;;;;;;;;;11587:16;11606:13:::0;;;11658:9;;11679:41:::1;::::0;:8:::1;::::0;11658:9;;11679:18:::1;:41::i;:::-;11730:25;::::0;;;;::::1;::::0;::::1;160::2::0;;;11730:15:0::1;::::0;::::1;::::0;::::1;::::0;133:18:2;;11730:25:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11773:6;:15;;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11765:41;;;;;;;;;;;;;;;;;11821:47;::::0;160:25:2;;;11847:10:0::1;::::0;11821:47:::1;::::0;::::1;::::0;::::1;::::0;148:2:2;133:18;11821:47:0::1;;;;;;;11899:10;2877:4:1::0;2900:28;;;:19;:28;;;;;;11879:108:0::1;::::0;11899:10;11911:75:::1;;11985:1;10331:19;:68::i;11911:75::-;11965:17;::::0;11947:35:::1;::::0;:15:::1;:35;:::i;11879:108::-;-1:-1:-1::0;5164:5:0;;-1:-1:-1;5157:12:0;;;;5164:5;5157:12;;11376:618;:::o;8017:133::-;2542:28:1;;;8083:7:0;2542:28:1;;;:19;:28;;;;;;8109:34:0;2427:150:1;8780:125:0;5221:10;:19;5235:5;5221:19;;5213:46;;;;;;;;;;;;;;;;;8862:36:::1;8880:17;8862;:36::i;3901:1386:1:-:0;4009:23;;;4001:48;;;;;;;;;;;;;;;;;4085:23;;;;4060:22;4085:23;;;;;;;;;;;;4149:36;;;;;;;;;;4085:23;4352:28;;4348:227;;4398:35;;;;;;;:19;;;:35;;;;;4396:37;;4398:35;;;4396:37;;;:::i;:::-;;;;-1:-1:-1;4348:227:1;;;4464:15;;;:31;;;;;;;;-1:-1:-1;4464:31:1;;;;;;;;;;;;;;;;;;;;;;;4542:22;;4509:30;;;:19;;;:30;;;;;;:55;4348:227;4757:24;;;;4753:464;;4799:31;;;;;;;:19;;;:31;;;;;4797:33;;4799:31;;;4797:33;;;:::i;:::-;;;;-1:-1:-1;4753:464:1;;;4884:30;;;4861:20;4884:30;;;:19;;;;:30;;;;;;4951:15;;;4967:22;;4884:30;;4861:20;4951:15;;4967:26;;4884:19;4967:26;:::i;:::-;4951:43;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;4951:43:1;5009:15;;;5025:16;4951:43;5025:12;:16;:::i;:::-;5009:33;;;;;;;;:::i;:::-;;;;;;;;;;;;;:48;;;;;;;;;;;5071:33;;;;;-1:-1:-1;5071:19:1;;:33;;;;;;:48;;;5134:15;;;:21;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;5176:30;;;;5134:21;5176:19;;:30;;;;;5169:37;-1:-1:-1;;4753:464:1;5269:10;5232:48;;5253:14;5232:48;;5242:9;5232:48;;;;;;;;;;;;3991:1296;3901:1386;;;:::o;12328:173:0:-;12410:24;;;;;;;:15;:24;;;;;;;:34;;;12460;;;;;12437:7;160:25:2;;148:2;133:18;;14:177;12460:34:0;;;;;;;;12328:173;;:::o;2148:125:1:-;2216:16;2251:5;:15;;2244:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2148:125;;;:::o;13147:402:0:-;13261:22;13236:21;:47;;13228:85;;;;;;;;;;;;;;;;;13356:22;13331:21;:47;;13323:85;;;;;;;;;;;;;;;;;13449:17;;13424:66;;;3813:25:2;;;3869:2;3854:18;;3847:34;;;13424:66:0;;3786:18:2;13424:66:0;;;;;;;13501:17;:41;13147:402::o;12645:350::-;12747:18;12726:17;:39;;12718:73;;;;;;;;;;;;;;;;;12830:18;12809:17;:39;;12801:73;;;;;;;;;;;;;;;;;12911:13;;12890:54;;;3813:25:2;;;3869:2;3854:18;;3847:34;;;12890:54:0;;3786:18:2;12890:54:0;;;;;;;12955:13;:33;12645:350::o;427:196:2:-;495:20;;555:42;544:54;;534:65;;524:93;;613:1;610;603:12;524:93;427:196;;;:::o;628:260::-;696:6;704;757:2;745:9;736:7;732:23;728:32;725:52;;;773:1;770;763:12;725:52;796:29;815:9;796:29;:::i;:::-;786:39;;844:38;878:2;867:9;863:18;844:38;:::i;:::-;834:48;;628:260;;;;;:::o;893:186::-;952:6;1005:2;993:9;984:7;980:23;976:32;973:52;;;1021:1;1018;1011:12;973:52;1044:29;1063:9;1044:29;:::i;:::-;1034:39;893:186;-1:-1:-1;;;893:186:2:o;1084:660::-;1274:2;1286:21;;;1356:13;;1259:18;;;1378:22;;;1226:4;;1457:15;;;1431:2;1416:18;;;1226:4;1500:218;1514:6;1511:1;1508:13;1500:218;;;1579:13;;1594:42;1575:62;1563:75;;1667:2;1693:15;;;;1658:12;;;;1536:1;1529:9;1500:218;;;-1:-1:-1;1735:3:2;;1084:660;-1:-1:-1;;;;;1084:660:2:o;1749:180::-;1808:6;1861:2;1849:9;1840:7;1836:23;1832:32;1829:52;;;1877:1;1874;1867:12;1829:52;-1:-1:-1;1900:23:2;;1749:180;-1:-1:-1;1749:180:2:o;2126:184::-;2178:77;2175:1;2168:88;2275:4;2272:1;2265:15;2299:4;2296:1;2289:15;2315:125;2380:9;;;2401:10;;;2398:36;;;2414:18;;:::i;2445:277::-;2512:6;2565:2;2553:9;2544:7;2540:23;2536:32;2533:52;;;2581:1;2578;2571:12;2533:52;2613:9;2607:16;2666:5;2659:13;2652:21;2645:5;2642:32;2632:60;;2688:1;2685;2678:12;2727:196;2766:3;2794:5;2784:39;;2803:18;;:::i;:::-;-1:-1:-1;2850:66:2;2839:78;;2727:196::o;2928:195::-;2967:3;2998:66;2991:5;2988:77;2985:103;;3068:18;;:::i;:::-;-1:-1:-1;3115:1:2;3104:13;;2928:195::o;3128:128::-;3195:9;;;3216:11;;;3213:37;;;3230:18;;:::i;3261:184::-;3313:77;3310:1;3303:88;3410:4;3407:1;3400:15;3434:4;3431:1;3424:15;3450:184;3502:77;3499:1;3492:88;3599:4;3596:1;3589:15;3623:4;3620:1;3613:15","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa264697066735822122027ff1eeeaefeaa0f332f4d60bf65d882e98623d7b0e15d59e15c244373a061bc64736f6c63430008220033","offset":4531}},"immutableReferences":{"25":[{"start":352,"length":32},{"start":820,"length":32},{"start":1353,"length":32},{"start":2260,"length":32}],"28":[{"start":544,"length":32},{"start":3746,"length":32}],"31":[{"start":313,"length":32},{"start":3836,"length":32}],"34":[{"start":641,"length":32},{"start":3501,"length":32}],"37":[{"start":583,"length":32},{"start":3591,"length":32}]},"transformations":[{"id":"25","type":"replace","offset":352,"reason":"immutable"},{"id":"25","type":"replace","offset":820,"reason":"immutable"},{"id":"25","type":"replace","offset":1353,"reason":"immutable"},{"id":"25","type":"replace","offset":2260,"reason":"immutable"},{"id":"28","type":"replace","offset":544,"reason":"immutable"},{"id":"28","type":"replace","offset":3746,"reason":"immutable"},{"id":"31","type":"replace","offset":313,"reason":"immutable"},{"id":"31","type":"replace","offset":3836,"reason":"immutable"},{"id":"34","type":"replace","offset":641,"reason":"immutable"},{"id":"34","type":"replace","offset":3501,"reason":"immutable"},{"id":"37","type":"replace","offset":583,"reason":"immutable"},{"id":"37","type":"replace","offset":3591,"reason":"immutable"}],"transformationValues":{"immutables":{"25":"0x0000000000000000000000003e40d73eb977dc6a537af587d48316fee66e9c8c","28":"0x0000000000000000000000000000000000000000000000000000000000069780","31":"0x00000000000000000000000000000000000000000000000000000000004f1a00","34":"0x0000000000000000000000000000000000000000000000000000000000278d00","37":"0x0000000000000000000000000000000000000000000000000000000005a39a80"}}},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"deployment":{"transactionHash":"0x9a1328c1f63fcdfd53d611cfe9c9a5f4c284c4c3e61af9066d90acaac2d5279f","blockNumber":"24993190","transactionIndex":"1219","deployer":"0xaCf5f111399a7c613D2f5b96b70F2Ea464D3cdF3"},"matchId":"28446048","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-04-30T13:22:24Z","match":"exact_match","chainId":"1","address":"0x6019CB557978296BA3C08a7B73225C0975DFB2F7"}