From ad69c004a4d0873d07d75d29c72c4eefce87e406 Mon Sep 17 00:00:00 2001 From: Rekard0 <5880388+Rekard0@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:25:47 +0100 Subject: [PATCH] feat: add natspec to ListedCheckCondition --- packages/contracts/src/ListedCheckCondition.sol | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/contracts/src/ListedCheckCondition.sol b/packages/contracts/src/ListedCheckCondition.sol index b2616676..06fa3010 100644 --- a/packages/contracts/src/ListedCheckCondition.sol +++ b/packages/contracts/src/ListedCheckCondition.sol @@ -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 sirt@aragon.org 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,