Automatically merged updates to draft EIP(s) 1261 (#2107)

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:
Lucas Cullen 2019-06-07 20:00:05 +10:00 committed by EIP Automerge Bot
parent 296ba62c5f
commit 7b6925e69f
1 changed files with 6 additions and 6 deletions

View File

@ -94,7 +94,7 @@ interface IERC1261 {/* is ERC173, ERC165 */
/// Contract can set a max number of attributes and throw if limit is reached. /// Contract can set a max number of attributes and throw if limit is reached.
/// @param _name Name of the attribute which is to be added. /// @param _name Name of the attribute which is to be added.
/// @param values List of values of the specified attribute. /// @param values List of values of the specified attribute.
function addAttributeSet(bytes32 _name, bytes32[] values) external; function addAttributeSet(bytes32 _name, bytes32[] calldata values) external;
/// @notice Modifies the attribute value of a specific attribute for a given `_to` address. /// @notice Modifies the attribute value of a specific attribute for a given `_to` address.
/// @dev Use appropriate checks for whether a user/admin can modify the data. /// @dev Use appropriate checks for whether a user/admin can modify the data.
@ -112,7 +112,7 @@ interface IERC1261 {/* is ERC173, ERC165 */
/// dev can also oraclize the request to assign membership later /// dev can also oraclize the request to assign membership later
/// @param _attributeIndexes the attribute data associated with the member. /// @param _attributeIndexes the attribute data associated with the member.
/// This is an array which contains indexes of attributes. /// This is an array which contains indexes of attributes.
function requestMembership(uint[] _attributeIndexes) external payable; function requestMembership(uint[] calldata _attributeIndexes) external payable;
/// @notice User can forfeit his membership. /// @notice User can forfeit his membership.
/// @dev Throws if the `msg.sender` already doesn't have the token. /// @dev Throws if the `msg.sender` already doesn't have the token.
@ -146,7 +146,7 @@ interface IERC1261 {/* is ERC173, ERC165 */
/// @param _to The address to which the token is assigned. /// @param _to The address to which the token is assigned.
/// @param _attributeIndexes The attribute data associated with the member. /// @param _attributeIndexes The attribute data associated with the member.
/// This is an array which contains indexes of attributes. /// This is an array which contains indexes of attributes.
function assignTo(address _to, uint[] _attributeIndexes) external; function assignTo(address _to, uint[] calldata _attributeIndexes) external;
/// @notice Only Owner can revoke the membership. /// @notice Only Owner can revoke the membership.
/// @dev This removes the membership of the user. /// @dev This removes the membership of the user.
@ -168,7 +168,7 @@ interface IERC1261 {/* is ERC173, ERC165 */
/// @dev Returns the values of attributes as a bytes32 array. /// @dev Returns the values of attributes as a bytes32 array.
/// @param _name Name of the attribute whose values are to be fetched /// @param _name Name of the attribute whose values are to be fetched
/// @return The values of attributes. /// @return The values of attributes.
function getAttributeExhaustiveCollection(bytes32 _name) external view returns (bytes32[]); function getAttributeExhaustiveCollection(bytes32 _name) external view returns (bytes32[] memory);
/// @notice Returns the list of all past and present members. /// @notice Returns the list of all past and present members.
/// @dev Use this function along with isCurrentMember to find wasMemberOf() in Js. /// @dev Use this function along with isCurrentMember to find wasMemberOf() in Js.
@ -190,7 +190,7 @@ interface IERC1261 {/* is ERC173, ERC165 */
/// Which has a single attributeValue for each attributeName in an array. /// Which has a single attributeValue for each attributeName in an array.
/// Use web3.toAscii(data[0]).replace(/\u0000/g, "") to convert to string in JS. /// Use web3.toAscii(data[0]).replace(/\u0000/g, "") to convert to string in JS.
/// @return The names of attributes. /// @return The names of attributes.
function getAttributeNames() external view returns (bytes32[]); function getAttributeNames() external view returns (bytes32[] memory);
/// @notice Returns the attributes of `_to` address. /// @notice Returns the attributes of `_to` address.
/// @dev Throws if `_to` is the zero address. /// @dev Throws if `_to` is the zero address.
@ -215,7 +215,7 @@ interface ERC173 /* is ERC165 */ {
/// @notice Get the address of the owner /// @notice Get the address of the owner
/// @return The address of the owner. /// @return The address of the owner.
function owner() view external; function owner() external view;
/// @notice Set the address of the new owner of the contract /// @notice Set the address of the new owner of the contract
/// @param _newOwner The address of the new owner of the contract /// @param _newOwner The address of the new owner of the contract