forked from aragon/osx-plugin-template-hardhat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add natspec to ListedCheckCondition
- Loading branch information
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,24 @@ pragma solidity ^0.8.8; | |
|
||
import {Multisig} from "./Multisig.sol"; | ||
|
||
import {IPermissionCondition} from "@aragon/osx-commons-contracts/src/permission/condition/IPermissionCondition.sol"; | ||
import {PermissionCondition} from "@aragon/osx-commons-contracts/src/permission/condition/PermissionCondition.sol"; | ||
|
||
/// @title ListedCheckCondition | ||
/// @author Aragon X - 2024 | ||
/// @notice A condition contract that checks if an address is listed as a member in the associated Multisig contract. | ||
/// @custom:security-contact [email protected] | ||
contract ListedCheckCondition is PermissionCondition { | ||
/// @notice The immutable address of the Multisig plugin used for fetching plugin settings. | ||
Multisig private immutable MULTISIG; | ||
|
||
/// @notice Initializes the condition with the address of the Multisig plugin. | ||
/// @param _multisig The address of the Multisig plugin that stores listing and other configuration settings. | ||
constructor(address _multisig) { | ||
MULTISIG = Multisig(_multisig); | ||
} | ||
|
||
/// @inheritdoc IPermissionCondition | ||
function isGranted( | ||
address _where, | ||
address _who, | ||
|