33pragma solidity 0.8.26 ;
44
55import { UUPSUpgradeable } from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol " ;
6- import { EIP712Upgradeable } from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol " ;
7- import { NoncesUpgradeable } from "@openzeppelin/contracts-upgradeable/utils/NoncesUpgradeable.sol " ;
86import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol " ;
97import { EnumerableSet } from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol " ;
108
119import { AccessControlledUpgradeable } from "@synaps3/core/primitives/upgradeable/AccessControlledUpgradeable.sol " ;
1210import { QuorumUpgradeable } from "@synaps3/core/primitives/upgradeable/QuorumUpgradeable.sol " ;
1311import { IAssetReferendum } from "@synaps3/core/interfaces/assets/IAssetReferendum.sol " ;
12+ import { T } from "@synaps3/core/primitives/Types.sol " ;
1413import { C } from "@synaps3/core/primitives/Constants.sol " ;
1514
1615/// @title AssetReferendum
@@ -20,8 +19,6 @@ contract AssetReferendum is
2019 Initializable ,
2120 UUPSUpgradeable ,
2221 AccessControlledUpgradeable ,
23- NoncesUpgradeable ,
24- EIP712Upgradeable ,
2522 QuorumUpgradeable ,
2623 IAssetReferendum
2724{
@@ -34,19 +31,19 @@ contract AssetReferendum is
3431 /// @dev Event emitted when a content is submitted for referendum.
3532 /// @param assetId The ID of the asset that has been submitted.
3633 /// @param initiator The address of the initiator who submitted the asset.
37- event Submitted (address indexed initiator , uint256 assetId );
34+ event Submitted (address indexed initiator , uint256 indexed assetId );
3835
3936 /// @dev Event emitted when a content is approved.
4037 /// @param assetId The ID of the asset that has been approved.
41- event Approved (uint256 assetId );
38+ event Approved (uint256 indexed assetId );
4239
4340 /// @dev Event emitted when a content is revoked.
4441 /// @param assetId The ID of the asset that has been revoked.
45- event Revoked (uint256 assetId );
42+ event Revoked (uint256 indexed assetId );
4643
4744 /// @dev Event emitted when a content is rejected.
4845 /// @param assetId The ID of the asset that has been rejected.
49- event Rejected (uint256 assetId );
46+ event Rejected (uint256 indexed assetId );
5047
5148 /// @dev Error thrown when asset submission fails.
5249 /// @param initiator The address of the user who attempted to submit the asset.
@@ -66,7 +63,6 @@ contract AssetReferendum is
6663 function initialize (address accessManager ) public initializer {
6764 __Quorum_init ();
6865 __UUPSUpgradeable_init ();
69- __EIP712_init ("Referendum " , "1 " );
7066 __AccessControlled_init (accessManager);
7167 }
7268
@@ -133,7 +129,7 @@ contract AssetReferendum is
133129 /// @notice Checks if the asset is active nor blocked.
134130 /// @param assetId The ID of the asset.
135131 function isActive (uint256 assetId ) public view returns (bool ) {
136- return _status (assetId) == Status.Active;
132+ return _status (assetId) == T. Status.Active;
137133 }
138134
139135 /// @notice Function that should revert when msg.sender is not authorized to upgrade the contract.
0 commit comments