@zkp2p/sdk 0.14.6-rc.0 → 0.14.6
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 +14 -1
- package/dist/build-metadata.json +3 -3
- package/dist/chunk-BBPE3X6U.mjs +12 -0
- package/dist/chunk-BBPE3X6U.mjs.map +1 -0
- package/dist/{chunk-CZSKDEQ3.mjs → chunk-PT56GEQ4.mjs} +112 -96
- package/dist/{chunk-CZSKDEQ3.mjs.map → chunk-PT56GEQ4.mjs.map} +1 -1
- package/dist/{currency-QFYEK4YI.mjs → currency-OXHRXRZK.mjs} +3 -3
- package/dist/{currency-QFYEK4YI.mjs.map → currency-OXHRXRZK.mjs.map} +1 -1
- package/dist/index.cjs +1052 -977
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +5036 -4976
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-L64CKN7P.mjs +5 -0
- package/dist/{protocolViewerParsers-DCRTQQV3.mjs.map → protocolViewerParsers-L64CKN7P.mjs.map} +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.mjs +1 -1
- package/dist/{timeout-7GM3I6QA.mjs → timeout-5R4PPJPO.mjs} +3 -3
- package/dist/{timeout-7GM3I6QA.mjs.map → timeout-5R4PPJPO.mjs.map} +1 -1
- package/dist/{vaultUtils-CAK6rnEl.d.mts → vaultUtils-Cg9_7sMz.d.mts} +14 -2
- package/dist/{vaultUtils-CAK6rnEl.d.ts → vaultUtils-Cg9_7sMz.d.ts} +14 -2
- package/package.json +2 -2
- package/dist/chunk-LDP257MM.mjs +0 -12
- package/dist/chunk-LDP257MM.mjs.map +0 -1
- package/dist/protocolViewerParsers-DCRTQQV3.mjs +0 -5
package/README.md
CHANGED
|
@@ -313,6 +313,18 @@ console.log(result.hash);
|
|
|
313
313
|
console.log(result.depositDetails);
|
|
314
314
|
```
|
|
315
315
|
|
|
316
|
+
By default, `createDeposit()` enables the trusted group bypass on Venmo and
|
|
317
|
+
PayPal methods. After the deposit mines, it sends one
|
|
318
|
+
`WhitelistPolicy.configureDeposit` per Venmo/PayPal method with the Peer Pay
|
|
319
|
+
merchant group and returns the confirmed hashes as
|
|
320
|
+
`result.accessPolicyTxHashes` (empty for other methods). Members of that group
|
|
321
|
+
skip dispute-protection staking; other takers still stake, and until the policy
|
|
322
|
+
mines, merchants stake too. Pass `enableTrustedGroupBypass: false` to skip it.
|
|
323
|
+
If the deposit was sent but the policy was not confirmed, it throws a
|
|
324
|
+
`ContractError` whose `details.hash` is the deposit transaction. `prepareCreateDeposit()` does not add
|
|
325
|
+
the policy; custom senders call `client.accessPolicy.prepareConfigurePeerPayMerchantDeposit()`
|
|
326
|
+
once the deposit ID is known.
|
|
327
|
+
|
|
316
328
|
If you do not pass `payeeDetailsHashes`, `createDeposit()` can register the payee details for you. If you want to pre-register or reuse hashes across deposits, use `registerPayeeDetails()` first.
|
|
317
329
|
|
|
318
330
|
New deposits default to the paid intent guardian deployed for the client's
|
|
@@ -660,7 +672,8 @@ transactions for policies written before Groups were retired. Gate use on
|
|
|
660
672
|
`client.accessPolicy.isSupported`; unsupported deployments fail closed.
|
|
661
673
|
|
|
662
674
|
Existing policies remain enforced on-chain until disabled or their deposits
|
|
663
|
-
close.
|
|
675
|
+
close. The only new policy is the trusted group bypass that `createDeposit()`
|
|
676
|
+
adds to Venmo and PayPal deposits by default. Depositors can use
|
|
664
677
|
`prepareDisable`, `prepareRemoveAllowedGroups`, and
|
|
665
678
|
`prepareRemoveWhitelistedAddresses` to fail open and remove historical entries.
|
|
666
679
|
|
package/dist/build-metadata.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"source": {
|
|
4
4
|
"repository": "zkp2p/zkp2p-clients",
|
|
5
|
-
"commitSha": "
|
|
5
|
+
"commitSha": "fd02009b2fcfda2e4ee8decaa6bd572181ffdb4a",
|
|
6
6
|
"kind": "github",
|
|
7
7
|
"distributable": true
|
|
8
8
|
},
|
|
9
|
-
"sdkPackageVersion": "0.14.6
|
|
10
|
-
"contractsPackageVersion": "0.4.4-rc.
|
|
9
|
+
"sdkPackageVersion": "0.14.6",
|
|
10
|
+
"contractsPackageVersion": "0.4.4-rc.2",
|
|
11
11
|
"indexerSchemaPackageVersion": "0.22.0",
|
|
12
12
|
"activeDisputeStack": {
|
|
13
13
|
"base": {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
// <define:__ZKP2P_SDK_BUILD_METADATA__>
|
|
8
|
+
var define_ZKP2P_SDK_BUILD_METADATA_default = { schemaVersion: 2, source: { repository: "zkp2p/zkp2p-clients", commitSha: "fd02009b2fcfda2e4ee8decaa6bd572181ffdb4a", kind: "github", distributable: true }, sdkPackageVersion: "0.14.6", contractsPackageVersion: "0.4.4-rc.2", indexerSchemaPackageVersion: "0.22.0", activeDisputeStack: { base: { version: 2, selectionHash: "ba40c2954b408d0c658881a8d28e5bfcc9bade5cc3d953fd17eae1eca69d841c" }, baseStaging: { version: 2, selectionHash: "6c49c1ce51eec594a22385c4efcab08aa9926b6b63a725e14a0027ec5d2f4fc9" } } };
|
|
9
|
+
|
|
10
|
+
export { __export, define_ZKP2P_SDK_BUILD_METADATA_default };
|
|
11
|
+
//# sourceMappingURL=chunk-BBPE3X6U.mjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-BBPE3X6U.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["%3Cdefine:__ZKP2P_SDK_BUILD_METADATA__%3E"],"names":[],"mappings":";;;;;;;AAAA,IAAA,uCAAA,GAAA,EAAC,aAAA,EAAgB,CAAA,EAAE,MAAA,EAAS,EAAC,YAAa,qBAAA,EAAsB,SAAA,EAAY,0CAAA,EAA2C,IAAA,EAAO,UAAS,aAAA,EAAgB,IAAA,EAAI,EAAE,iBAAA,EAAoB,UAAS,uBAAA,EAA0B,YAAA,EAAa,2BAAA,EAA8B,QAAA,EAAS,oBAAqB,EAAC,IAAA,EAAO,EAAC,OAAA,EAAU,GAAE,aAAA,EAAgB,kEAAA,EAAkE,EAAE,WAAA,EAAc,EAAC,OAAA,EAAU,CAAA,EAAE,aAAA,EAAgB,kEAAA,IAAmE","file":"chunk-BBPE3X6U.mjs","sourcesContent":["{\"schemaVersion\":2,\"source\":{\"repository\":\"zkp2p/zkp2p-clients\",\"commitSha\":\"fd02009b2fcfda2e4ee8decaa6bd572181ffdb4a\",\"kind\":\"github\",\"distributable\":true},\"sdkPackageVersion\":\"0.14.6\",\"contractsPackageVersion\":\"0.4.4-rc.2\",\"indexerSchemaPackageVersion\":\"0.22.0\",\"activeDisputeStack\":{\"base\":{\"version\":2,\"selectionHash\":\"ba40c2954b408d0c658881a8d28e5bfcc9bade5cc3d953fd17eae1eca69d841c\"},\"baseStaging\":{\"version\":2,\"selectionHash\":\"6c49c1ce51eec594a22385c4efcab08aa9926b6b63a725e14a0027ec5d2f4fc9\"}}}"]}
|