Addresslist
Abstract contract · src/common/plugin/extensions/governance/Addresslist.sol
Explained in: Membership and the address list
Author: Aragon X - 2021-2023
The majority voting implementation using a list of member addresses.
Dev: This contract inherits from
MajorityVotingBaseand implements theIMajorityVotinginterface.
security-contact: sirt@aragon.org
Functions
addresslistLength
function addresslistLength() external view returns (uint256)Selector: 0x27f1608d
Returns the current length of the address list.
addresslistLengthAtBlock
function addresslistLengthAtBlock(uint256 _blockNumber) external view returns (uint256)Selector: 0x6a6b2d86
Returns the length of the address list at a specific block number.
| Parameter | Type | Description |
|---|---|---|
_blockNumber | uint256 | The specific block to get the count from. If 0, then the latest checkpoint value is returned. |
isListed
function isListed(address _account) external view returns (bool)Selector: 0xf794062e
Checks if an account is currently on the address list.
| Parameter | Type | Description |
|---|---|---|
_account | address | The account address being checked. |
isListedAtBlock
function isListedAtBlock(address _account, uint256 _blockNumber) external view returns (bool)Selector: 0xb1bb8d26
Checks if an account is on the address list at a specific block number.
| Parameter | Type | Description |
|---|---|---|
_account | address | The account address being checked. |
_blockNumber | uint256 | The block number. |
Errors
InvalidAddresslistUpdate
error InvalidAddresslistUpdate(address member)Thrown when the address list update is invalid, which can be caused by the addition of an existing member or removal of a non-existing member.
| Parameter | Type | Description |
|---|---|---|
member | address | The array of member addresses to be added or removed. |