Skip to content

Commit

Permalink
test: distributor impl
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Oct 19, 2024
1 parent 2cc6602 commit bd4442f
Show file tree
Hide file tree
Showing 7 changed files with 228 additions and 119 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cov-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions contracts/interfaces/assets/IContentReferendum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ import { IContentVerifiable } from "contracts/interfaces/assets/IContentVerifiab
/// @title IContentReferendum
/// @notice Interface manage content registration, roles, and verifications within a referendum context.
interface IContentReferendum is IContentRegistrable, IContentRoleManager, IContentVerifiable {}

Check failure on line 11 in contracts/interfaces/assets/IContentReferendum.sol

View workflow job for this annotation

GitHub Actions / Static Analysis

Delete ⏎
2 changes: 2 additions & 0 deletions contracts/interfaces/economics/ITreasury.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { IBalanceWithdrawable } from "contracts/interfaces/IBalanceWithdrawable.

/// @title ITreasury Interface
/// @notice Defines the standard functions for a Treasury contract.
/// Each contract should represent a single specific role with a clear responsibility and

Check failure on line 9 in contracts/interfaces/economics/ITreasury.sol

View workflow job for this annotation

GitHub Actions / Static Analysis

Delete ·
/// may only assign generic roles that complement its primary purpose.
interface ITreasury is IBalanceVerifiable, IBalanceWithdrawable {
/// @notice Retrieves the vault address where operational funds or profits are stored.
/// @dev This address points to the vault responsible for managing protocol-level profits.
Expand Down
4 changes: 3 additions & 1 deletion contracts/rightsmanager/RightsContentCustodian.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ contract RightsContentCustodian is Initializable, UUPSUpgradeable, GovernableUpg
/// @notice Retrieves the custodians' addresses for a given content holder.
/// @param holder The address of the content rights holder whose custodians' addresses are being retrieved.
function getCustodians(address holder) public view returns (address[] memory) {
// TODO collect the custody based on deman
// TODO collect the custody based on demand, round robin?
// TODO un metodo que haga un check o seleccion del custodio disponible.
// TODO VRF generation to select the next custodian?
// TODO if custodians are blocked we need an auxiliar mechanism and return the higher rated distributor
return custodying[holder].values();
}
Expand Down
Loading

0 comments on commit bd4442f

Please sign in to comment.