Skip to content

Commit

Permalink
add event IpRoyaltyVaultDeployed (storyprotocol#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spablob authored Sep 23, 2024
1 parent 802c265 commit 0f9a346
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/interfaces/modules/royalty/IRoyaltyModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ interface IRoyaltyModule is IModule {
bytes externalData
);

/// @notice Event emitted when an IP royalty vault is deployed
/// @param ipId The ipId of IP asset
/// @param ipRoyaltyVault The address of the royalty vault
event IpRoyaltyVaultDeployed(address ipId, address ipRoyaltyVault);

/// @notice Sets the treasury address
/// @dev Enforced to be only callable by the protocol admin
/// @param treasury The address of the treasury
Expand Down
2 changes: 2 additions & 0 deletions contracts/modules/royalty/RoyaltyModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,8 @@ contract RoyaltyModule is IRoyaltyModule, VaultController, ReentrancyGuardUpgrad
$.ipRoyaltyVaults[ipId] = ipRoyaltyVault;
$.isIpRoyaltyVault[ipRoyaltyVault] = true;

emit IpRoyaltyVaultDeployed(ipId, ipRoyaltyVault);

return ipRoyaltyVault;
}

Expand Down

0 comments on commit 0f9a346

Please sign in to comment.