Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
2ce7314d
Unverified
Commit
2ce7314d
authored
Oct 23, 2023
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ctb): Add missing natspec to LivenessGuard and LivenessModule
parent
38f828d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
LivenessGuard.sol
packages/contracts-bedrock/src/Safe/LivenessGuard.sol
+9
-0
LivenessModule.sol
packages/contracts-bedrock/src/Safe/LivenessModule.sol
+5
-2
No files found.
packages/contracts-bedrock/src/Safe/LivenessGuard.sol
View file @
2ce7314d
...
@@ -20,11 +20,20 @@ contract LivenessGuard is ISemver, GetSigners, BaseGuard {
...
@@ -20,11 +20,20 @@ contract LivenessGuard is ISemver, GetSigners, BaseGuard {
/// @custom:semver 1.0.0
/// @custom:semver 1.0.0
string public constant version = "1.0.0";
string public constant version = "1.0.0";
/// @notice The safe account for which this contract will be the guard.
Safe public immutable safe;
Safe public immutable safe;
/// @notice A mapping of the timestamp at which an owner last participated in signing a
/// an executed transaction.
mapping(address => uint256) public lastLive;
mapping(address => uint256) public lastLive;
/// @notice An enumerable set of addresses used to store the list of owners before execution,
/// and then to update the lastSigned mapping according to changes in the set observed
/// after execution.
EnumerableSet.AddressSet private ownersBefore;
EnumerableSet.AddressSet private ownersBefore;
/// @notice Constructor.
/// @param _safe The safe account for which this contract will be the guard.
constructor(Safe _safe) {
constructor(Safe _safe) {
safe = _safe;
safe = _safe;
}
}
...
...
packages/contracts-bedrock/src/Safe/LivenessModule.sol
View file @
2ce7314d
...
@@ -11,8 +11,11 @@ import { ISemver } from "src/universal/ISemver.sol";
...
@@ -11,8 +11,11 @@ import { ISemver } from "src/universal/ISemver.sol";
import { console2 as console } from "forge-std/console2.sol";
import { console2 as console } from "forge-std/console2.sol";
/// @title LivenessModule
/// @title LivenessModule
/// @notice This module is intended to be used in conjunction with the LivenessGuard. It should be able to
/// @notice This module is intended to be used in conjunction with the LivenessGuard. In the event
/// execute a transaction on the Safe in only a small number of cases.
/// that an owner of the safe is not recorded by the guard during the liveness interval,
/// the owner will be considered inactive and will be removed from the list of owners.
/// If the number of owners falls below the minimum number of owners, the ownership of the
/// safe will be transferred to the fallback owner.
contract LivenessModule is ISemver {
contract LivenessModule is ISemver {
/// @notice The Safe contract instance
/// @notice The Safe contract instance
Safe public safe;
Safe public safe;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment