Skip to main content

IMembership

Description

An interface to be implemented by DAO plugins that define membership.

Implementation

event MembersAdded

Emitted when members are added to the DAO plugin.

event MembersAdded(address[] members)
InputTypeDescription
membersaddress[]The list of new members being added.

event MembersRemoved

Emitted when members are removed from the DAO plugin.

event MembersRemoved(address[] members)
InputTypeDescription
membersaddress[]The list of existing members being removed.

event MembershipContractAnnounced

Emitted to announce the membership being defined by a contract.

event MembershipContractAnnounced(address definingContract)
InputTypeDescription
definingContractaddressThe contract defining the membership.

external function isMember

Checks if an account is a member of the DAO.

function isMember(address _account) external view returns (bool)
InputTypeDescription
_accountaddressThe address of the account to be checked.
Output
0boolWhether the account is a member or not.

This function must be implemented in the plugin contract that introduces the members to the DAO.

© 2024