-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99b439c
commit 8b4ce6c
Showing
12 changed files
with
94 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
import "contracts/libraries/Types.sol"; | ||
|
||
interface IRightsAccessControllerRegistrar { | ||
/// @notice Registers and enforces access for a specific account to a content ID based on the conditions set by a policy. | ||
/// @param account The address of the account to be granted access to the content. | ||
/// @param contentId The unique identifier of the content for which access is being registered. | ||
/// @param policy The address of the policy contract responsible for validating and enforcing the access conditions. | ||
/// @dev Access is granted only if the specified policy contract is valid and has the necessary delegation rights. | ||
/// If the policy conditions are not met, access will not be registered, and the operation will be rejected. | ||
function registerPolicy( | ||
uint256 contentId, | ||
address policy, | ||
address account | ||
) external payable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
interface IRightsCustodialManager { | ||
/// @notice Assigns distribution rights over the content. | ||
/// @dev The distributor must be active. | ||
/// @param contentId The ID of the content to assign. | ||
/// @param distributor The address of the distributor to assign the content to. | ||
function grantCustody(uint256 contentId, address distributor) external; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
import "contracts/libraries/Types.sol"; | ||
|
||
interface IRightsDelegableDelegator { | ||
|
||
/// @notice Delegates rights for a specific content ID to a grantee. | ||
/// @param grantee The address of the account or contract to delegate rights to. | ||
/// @param contentId The content ID for which rights are being delegated. | ||
function delegateRights(address grantee, uint256 contentId) external; | ||
|
||
/// @notice Revokes the delegation of rights for a grantee. | ||
/// @param grantee The address of the account or contract to revoke rights to. | ||
/// @param contentId The content ID for which rights are being revoked. | ||
function revokeRights(address grantee, uint256 contentId) external; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
import "contracts/libraries/Types.sol"; | ||
|
||
interface IRightsDelegableRevoker { | ||
|
||
/// @notice Revokes the delegation of rights for a grantee. | ||
/// @param grantee The address of the account or contract to revoke rights to. | ||
/// @param contentId The content ID for which rights are being revoked. | ||
function revokeRights(address grantee, uint256 contentId) external; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters