@zkp2p/sdk 0.12.2-rc.2 → 0.12.2-rc.4

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
@@ -96,7 +96,7 @@ Indexer defaults by environment:
96
96
  | Deposits | `createDeposit`, `addFunds`, `removeFunds`, `withdrawDeposit`, `ensureAllowance`, `setAcceptingIntents`, `setIntentRange`, `setCurrencyMinRate`, `setRetainOnEmpty` |
97
97
  | Payment methods and currencies | `addPaymentMethods`, `removePaymentMethod`, `setPaymentMethodActive`, `addCurrencies`, `removeCurrency`, `deactivateCurrency`, `pruneExpiredIntents` |
98
98
  | Intents | `signalIntent`, `fulfillIntent`, `cancelIntent`, `releaseFundsToPayer`, `getFulfillIntentInputs`, `getIntentGuardianPolicy`, `quoteIntentExtension`, `getIntentGuardianPayerFunding`, `extendIntentLifetime` |
99
- | Deposit access policy | `client.accessPolicy.*`, `planAccessPolicyUpdate`, `diffAccessPolicy`; production enforcement runs through OrchestratorV3's active lifecycle hook |
99
+ | Deposit access policy | `client.accessPolicy.*` reads, historical-policy unwind operations, and `prepareConfigurePeerPayMerchantDeposit` for the fixed environment-owned merchant policy during atomic sell-deposit creation |
100
100
  | Prepared transactions | `client.prepareCreateDeposit(...)`, `client.signalIntent.prepare(...)`, `client.fulfillIntent.prepare(...)`, `client.setVaultFee.prepare(...)`, and equivalent prepare flows across the rest of the prepareable write surface |
101
101
  | Payee and quote APIs | `registerPayeeDetails`, `resolvePayeeHash`, `getQuote`, `getQuotesBestByPlatform` |
102
102
  | Seller automated release | `uploadSellerCredential`, `getSellerCredentialStatus`, `verifySellerPayment` |
@@ -368,6 +368,24 @@ verified while `orchestratorPaused`, `allowMultipleIntents`, and
368
368
  traffic. Unknown hooks, misconfigured successors, runtime-code changes,
369
369
  dependency mismatches, and RPC failures return `mismatch` and fail closed.
370
370
 
371
+ Dispute evidence callers should read the current attestation trust roots before
372
+ requesting evidence and again before submitting it:
373
+
374
+ ```ts
375
+ const attestationConfig = await readDisputeAttestationConfig({
376
+ publicClient,
377
+ chainId: 8453,
378
+ environment: 'production',
379
+ });
380
+
381
+ if (attestationConfig.requiredSignatures !== 1) {
382
+ throw new Error('The current dispute attestation threshold is unsupported');
383
+ }
384
+ ```
385
+
386
+ The helper pins the witness and threshold reads to `asOfBlock`; it does not use
387
+ the packaged witness set as live governance state.
388
+
371
389
  `SDK_BUILD_METADATA` and the `@zkp2p/sdk/build-metadata.json` export identify
372
390
  the SDK commit, contracts package, indexer schema package, and active manifest
373
391
  selection hashes. A local build has the deterministic `development` identity
@@ -480,18 +498,16 @@ The guardian charges the target deposit's token and pays the deposit owner.
480
498
  Extension payments are prepaid and non-refundable. `extendIntentLifetime.prepare()`
481
499
  returns calldata without sending it.
482
500
 
483
- ## Deposit Access Policy
501
+ ## Historical Deposit Access Policy
484
502
 
485
- `client.accessPolicy` exposes environment-aware reads and prepareable writes
486
- for `WhitelistPolicy` and `AddressGroupRegistry`. Gate the UI on
503
+ `client.accessPolicy` exposes environment-aware reads and unwind-only prepared
504
+ transactions for policies written before Groups were retired. Gate use on
487
505
  `client.accessPolicy.isSupported`; unsupported deployments fail closed.
488
506
 
489
- Use `planAccessPolicyUpdate(persisted, draft)` or `diffAccessPolicy()` to turn a
490
- policy edit into deterministic, idempotent transaction steps, then prepare each
491
- step with `client.accessPolicy.preparePlanStep(...)` or the complete plan with
492
- `preparePlan(...)`. Writes are depositor-only. A saved policy is enforced
493
- on-chain: `WhitelistPolicy` is wired to the deposit as its whitelist hook, so a
494
- non-member's `signalIntent` reverts.
507
+ Existing policies remain enforced on-chain until disabled or their deposits
508
+ close. New policies cannot be created through the SDK. Depositors can use
509
+ `prepareDisable`, `prepareRemoveAllowedGroups`, and
510
+ `prepareRemoveWhitelistedAddresses` to fail open and remove historical entries.
495
511
 
496
512
  ## Referral Account API
497
513
 
@@ -1,22 +1,22 @@
1
1
  {
2
- "schemaVersion": 1,
2
+ "schemaVersion": 2,
3
3
  "source": {
4
4
  "repository": "zkp2p/zkp2p-clients",
5
- "commitSha": "cd5bc55d4e764b20785c7d0c444ef03faddbf111",
5
+ "commitSha": "223c0a0b20e2ee2d2ef65ba62da3076f2c8a08fb",
6
6
  "kind": "github",
7
7
  "distributable": true
8
8
  },
9
- "sdkPackageVersion": "0.12.2-rc.2",
10
- "contractsPackageVersion": "0.4.1-rc.6",
11
- "indexerSchemaPackageVersion": "0.22.0-rc.1",
9
+ "sdkPackageVersion": "0.12.2-rc.4",
10
+ "contractsPackageVersion": "0.4.1-rc.9",
11
+ "indexerSchemaPackageVersion": "0.22.0-rc.3",
12
12
  "activeDisputeStack": {
13
13
  "base": {
14
- "version": 1,
15
- "selectionHash": "a4f17ae7c1620ecfe7d036f0b9cc7b39c50e1382dc8dc14d2e5f7f21061cd5ad"
14
+ "version": 2,
15
+ "selectionHash": "ba40c2954b408d0c658881a8d28e5bfcc9bade5cc3d953fd17eae1eca69d841c"
16
16
  },
17
17
  "baseStaging": {
18
- "version": 1,
19
- "selectionHash": "586c90f9de3d10b6d48f4286c709aa7f870fc2fdcfb0af1da947c1da76132dd0"
18
+ "version": 2,
19
+ "selectionHash": "6c49c1ce51eec594a22385c4efcab08aa9926b6b63a725e14a0027ec5d2f4fc9"
20
20
  }
21
21
  }
22
22
  }