Commit 53fb127a authored by Maurelian's avatar Maurelian

feat(ctb): Make Safe Module and Guard ISemver

parent 80323872
......@@ -6,12 +6,17 @@ import { BaseGuard, GuardManager } from "safe-contracts/base/GuardManager.sol";
import { ModuleManager } from "safe-contracts/base/ModuleManager.sol";
import { SignatureDecoder } from "safe-contracts/common/SignatureDecoder.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.
/// @param signers An arrary of signer addresses.
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;
mapping(address => uint256) public lastSigned;
......
......@@ -5,6 +5,7 @@ import { Safe } from "safe-contracts/Safe.sol";
import { Enum } from "safe-contracts/common/Enum.sol";
import { OwnerManager } from "safe-contracts/base/OwnerManager.sol";
import { LivenessGuard } from "src/Safe/LivenessGuard.sol";
import { ISemver } from "src/universal/ISemver.sol";
// TODO(maurelian): remove me
import { console2 as console } from "forge-std/console2.sol";
......@@ -28,6 +29,10 @@ contract LivenessModule {
/// @notice The fallback owner of the Safe
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(
Safe _safe,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment