Skip to content

Commit

Permalink
Update EIP-5585: Add a new interface 'transferUserRights()'
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
featheryus authored Jul 12, 2023
1 parent b53b74c commit 61a7314
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions EIPS/eip-5585.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ interface IERC5585 {
/// @param rights Rights autorised to the user, such as renting, distribution or display etc
/// @param duration The period of time the authorization lasts
function authorizeUser(uint256 tokenId, address user, string[] rights, uint duration) external;
/// @notice The user of the NFT transfers his rights to the new user
/// @dev The zero address indicates there is no user
/// @param tokenId The rights of this NFT is transferred to the new user
/// @param newUser The new user
function transferUserRights(uint256 tokenId, address newUser) external;
/// @notice NFT holder extends the duration of authorization
/// @dev The zero address indicates there is no user. It will throw exception when the rights are not defined by this NFT project
Expand Down Expand Up @@ -123,6 +129,8 @@ The `authorizeUser(uint256 tokenId, address user, uint duration)` function MAY b

The `authorizeUser(uint256 tokenId, address user, string[] rights; uint duration)` function MAY be implemented as `public` or `external`.

The `transferUserRights(uint256 tokenId, address newUser)` function MAY be implemented as `public` or `external`.

The `extendDuration(uint256 tokenId, address user, uint duration)` function MAY be implemented as `public` or `external`.

The `updateUserRights(uint256 tokenId, address user, string[] rights)` function MAY be implemented as `public` or `external`.
Expand Down

0 comments on commit 61a7314

Please sign in to comment.