@noosphere/contracts 0.2.0-alpha.1 → 0.2.1-alpha.1

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/README.md CHANGED
@@ -34,9 +34,10 @@ const coordinator = new CoordinatorContract(
34
34
  const subscription = await router.getComputeSubscription(1n);
35
35
  console.log('Subscription:', subscription);
36
36
 
37
- // Check redundancy
38
- const redundancy = await coordinator.redundancyCount('0x123...');
39
- console.log('Redundancy count:', redundancy);
37
+ // Check if request has commitment
38
+ const commitmentHash = await coordinator.requestCommitments('0x123...');
39
+ const hasCommitment = commitmentHash !== '0x' + '0'.repeat(64);
40
+ console.log('Has commitment:', hasCommitment);
40
41
  ```
41
42
 
42
43
  ### SubscriptionBatchReader
@@ -137,8 +138,7 @@ console.log('Transaction confirmed:', tx.hash);
137
138
 
138
139
  **Read Methods:**
139
140
  - `getCommitment(subscriptionId, interval)` - Get commitment
140
- - `redundancyCount(requestId)` - Get redundancy count
141
- - `requestCommitments(requestId)` - Get request ID
141
+ - `requestCommitments(requestId)` - Get commitment hash for request
142
142
 
143
143
  **Write Methods:**
144
144
  - `startRequest(...)` - Start new request