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
53fb127a
Unverified
Commit
53fb127a
authored
Oct 17, 2023
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ctb): Make Safe Module and Guard ISemver
parent
80323872
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
LivenessGuard.sol
packages/contracts-bedrock/src/Safe/LivenessGuard.sol
+6
-1
LivenessModule.sol
packages/contracts-bedrock/src/Safe/LivenessModule.sol
+5
-0
No files found.
packages/contracts-bedrock/src/Safe/LivenessGuard.sol
View file @
53fb127a
...
@@ -6,12 +6,17 @@ import { BaseGuard, GuardManager } from "safe-contracts/base/GuardManager.sol";
...
@@ -6,12 +6,17 @@ import { BaseGuard, GuardManager } from "safe-contracts/base/GuardManager.sol";
import { ModuleManager } from "safe-contracts/base/ModuleManager.sol";
import { ModuleManager } from "safe-contracts/base/ModuleManager.sol";
import { SignatureDecoder } from "safe-contracts/common/SignatureDecoder.sol";
import { SignatureDecoder } from "safe-contracts/common/SignatureDecoder.sol";
import { Enum } from "safe-contracts/common/Enum.sol";
import { Enum } from "safe-contracts/common/Enum.sol";
import { ISemver } from "src/universal/ISemver.sol";
contract LivenessGuard is SignatureDecoder, BaseGuard {
contract LivenessGuard is
ISemver,
SignatureDecoder, BaseGuard {
/// @notice Emitted when a new set of signers is recorded.
/// @notice Emitted when a new set of signers is recorded.
/// @param signers An arrary of signer addresses.
/// @param signers An arrary of signer addresses.
event SignersRecorded(bytes32 indexed txHash, address[] signers);
event SignersRecorded(bytes32 indexed txHash, address[] signers);
/// @notice Semantic version.
/// @custom:semver 1.0.0
string public constant version = "1.0.0";
Safe public immutable safe;
Safe public immutable safe;
mapping(address => uint256) public lastSigned;
mapping(address => uint256) public lastSigned;
...
...
packages/contracts-bedrock/src/Safe/LivenessModule.sol
View file @
53fb127a
...
@@ -5,6 +5,7 @@ import { Safe } from "safe-contracts/Safe.sol";
...
@@ -5,6 +5,7 @@ import { Safe } from "safe-contracts/Safe.sol";
import { Enum } from "safe-contracts/common/Enum.sol";
import { Enum } from "safe-contracts/common/Enum.sol";
import { OwnerManager } from "safe-contracts/base/OwnerManager.sol";
import { OwnerManager } from "safe-contracts/base/OwnerManager.sol";
import { LivenessGuard } from "src/Safe/LivenessGuard.sol";
import { LivenessGuard } from "src/Safe/LivenessGuard.sol";
import { ISemver } from "src/universal/ISemver.sol";
// TODO(maurelian): remove me
// TODO(maurelian): remove me
import { console2 as console } from "forge-std/console2.sol";
import { console2 as console } from "forge-std/console2.sol";
...
@@ -28,6 +29,10 @@ contract LivenessModule {
...
@@ -28,6 +29,10 @@ contract LivenessModule {
/// @notice The fallback owner of the Safe
/// @notice The fallback owner of the Safe
address public fallbackOwner;
address public fallbackOwner;
/// @notice Semantic version.
/// @custom:semver 1.0.0
string public constant version = "1.0.0";
// Constructor to initialize the Safe and baseModule instances
// Constructor to initialize the Safe and baseModule instances
constructor(
constructor(
Safe _safe,
Safe _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