@zkp2p/sdk 0.11.0 → 0.11.2
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 +6 -0
- package/dist/index.cjs +2 -2
- 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 +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{vaultUtils-DmGhwFto.d.mts → vaultUtils-CbfjrxgD.d.mts} +1 -1
- package/dist/{vaultUtils-DmGhwFto.d.ts → vaultUtils-CbfjrxgD.d.ts} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -182,6 +182,12 @@ console.log(result.depositDetails);
|
|
|
182
182
|
|
|
183
183
|
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.
|
|
184
184
|
|
|
185
|
+
New deposits default to the paid intent guardian deployed for the client's
|
|
186
|
+
environment. Production and preproduction use
|
|
187
|
+
`0x83671606454fA72ba1e2831E18C5090D25629414`, enabling prepaid intent-lifetime
|
|
188
|
+
extensions. Pass `intentGuardian` explicitly only when integrating a custom
|
|
189
|
+
guardian.
|
|
190
|
+
|
|
185
191
|
## Payee Registration and Quotes
|
|
186
192
|
|
|
187
193
|
```ts
|
package/dist/index.cjs
CHANGED
|
@@ -64150,7 +64150,7 @@ var Zkp2pClient = class {
|
|
|
64150
64150
|
* @param params.conversionRates - Conversion rates per processor, grouped by currency
|
|
64151
64151
|
* @param params.payeeDetailsHashes - Pre-computed hashed on-chain IDs (from registerPayeeDetails). When provided, skips the curator API call entirely.
|
|
64152
64152
|
* @param params.delegate - Optional delegate address that can manage the deposit
|
|
64153
|
-
* @param params.intentGuardian -
|
|
64153
|
+
* @param params.intentGuardian - Guardian for intent approval. Defaults to the paid guardian deployed for the client's environment.
|
|
64154
64154
|
* @param params.retainOnEmpty - Keep deposit active when balance reaches zero
|
|
64155
64155
|
* @param params.txOverrides - Optional viem transaction overrides
|
|
64156
64156
|
* @returns The deposit details posted to API (empty when payee registration is skipped) and the transaction hash
|
|
@@ -64313,7 +64313,7 @@ var Zkp2pClient = class {
|
|
|
64313
64313
|
paymentMethodData,
|
|
64314
64314
|
currencies: normalizedCurrencies,
|
|
64315
64315
|
delegate: params.delegate ?? "0x0000000000000000000000000000000000000000",
|
|
64316
|
-
intentGuardian: params.intentGuardian ??
|
|
64316
|
+
intentGuardian: params.intentGuardian ?? this.intentGuardianAddress ?? ZERO_ADDRESS,
|
|
64317
64317
|
retainOnEmpty: Boolean(params.retainOnEmpty ?? false)
|
|
64318
64318
|
}
|
|
64319
64319
|
];
|