Skip to content

Commit

Permalink
feat: add natspec to ListedCheckCondition
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekard0 committed Nov 7, 2024
1 parent 1f88553 commit ad69c00
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/contracts/src/ListedCheckCondition.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ad69c00

Please sign in to comment.