@semaphore-protocol/contracts 4.0.0-beta.15 → 4.0.0-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Semaphore.sol CHANGED
@@ -19,6 +19,7 @@ contract Semaphore is ISemaphore, SemaphoreGroups {
19
19
  mapping(uint256 => Group) public groups;
20
20
 
21
21
  /// @dev Counter to assign an incremental id to the groups.
22
+ /// This counter is used to keep track of the number of groups created.
22
23
  uint256 public groupCounter;
23
24
 
24
25
  /// @dev Initializes the Semaphore verifier used to verify the user's ZK proofs.
@@ -55,6 +55,10 @@ interface ISemaphore {
55
55
  uint256[8] points
56
56
  );
57
57
 
58
+ /// @dev Returns the current value of the group counter.
59
+ /// @return The current group counter value.
60
+ function groupCounter() external view returns (uint256);
61
+
58
62
  /// @dev See {SemaphoreGroups-_createGroup}.
59
63
  function createGroup() external returns (uint256);
60
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/contracts",
3
- "version": "4.0.0-beta.15",
3
+ "version": "4.0.0-beta.16",
4
4
  "description": "Semaphore contracts to manage groups and broadcast anonymous signals.",
5
5
  "license": "MIT",
6
6
  "files": [