Automatically merged updates to draft EIP(s) 1261

Hi, I'm a bot! This change was automatically merged because:

 - It only modifies existing Draft or Last Call EIP(s)
 - The PR was approved or written by at least one author of each modified EIP
 - The build is passing
This commit is contained in:
Chaitanya Potti 2018-11-20 18:19:12 +05:30 committed by EIP Automerge Bot
parent 8dddf4acdf
commit 63cdb5e1dd

View File

@ -71,20 +71,20 @@ The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "S
/// Note: the ERC-165 identifier for this interface is 0x1d8362cf.
interface IERC1261 {/* is ERC173, ERC165 */
/// @dev This emits when a token is assigned to a member.
event Assigned(address indexed to, uint[] attributeIndexes);
event Assigned(address indexed _to, uint[] attributeIndexes);
/// @dev This emits when a membership is revoked.
event Revoked(address indexed to);
event Revoked(address indexed _to);
/// @dev This emits when a membership request is accepted
event ApprovedMembership(address indexed to);
event ApprovedMembership(address indexed _to);
/// @dev This emits when a membership is requested by an user
event RequestedMembership(address indexed to);
event RequestedMembership(address indexed _to);
/// @dev This emits when data of a member is modified.
/// Doesn't emit when a new membership is created and data is assigned.
event ModifiedAttributes(address indexed to, bytes32 attributeName, uint attributeIndex);
event ModifiedAttributes(address indexed _to, bytes32 attributeName, uint attributeIndex);
/// @notice Adds a new attribute (key, value) pair to the set of pre-existing attributes.
/// @dev Adds a new attribute at the end of the array of attributes and maps it to `values`.
@ -161,6 +161,12 @@ interface IERC1261 {/* is ERC173, ERC165 */
/// @return Whether the member owns the token.
function isCurrentMember(address _to) external view returns (bool);
/// @notice Gets the value collection of an attribute.
/// @dev Returns the values of attributes as a bytes32 array.
/// @param _name Name of the attribute whose values are to be fetched
/// @return The values of attributes.
function getAttributeCollection(bytes32 _name) external view returns (bytes32[]);
/// @notice Returns the list of all past and present members.
/// @dev Use this function along with isCurrentMember to find wasMemberOf() in Js.
/// It can be calculated as present in getAllMembers() and !isCurrentMember().