@zkp2p/sdk 0.11.0 → 0.11.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 +6 -0
- package/dist/index.cjs +3 -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 +3 -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
|
@@ -56295,6 +56295,7 @@ init_types();
|
|
|
56295
56295
|
|
|
56296
56296
|
// src/utils/constants.ts
|
|
56297
56297
|
var DEFAULT_BASE_API_URL = "https://api.zkp2p.xyz";
|
|
56298
|
+
var DEFAULT_INTENT_GUARDIAN_ADDRESS = "0x83671606454fA72ba1e2831E18C5090D25629414";
|
|
56298
56299
|
|
|
56299
56300
|
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.4.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/oracleFeeds/chainlink.json
|
|
56300
56301
|
var chainlink_default = {
|
|
@@ -64150,7 +64151,7 @@ var Zkp2pClient = class {
|
|
|
64150
64151
|
* @param params.conversionRates - Conversion rates per processor, grouped by currency
|
|
64151
64152
|
* @param params.payeeDetailsHashes - Pre-computed hashed on-chain IDs (from registerPayeeDetails). When provided, skips the curator API call entirely.
|
|
64152
64153
|
* @param params.delegate - Optional delegate address that can manage the deposit
|
|
64153
|
-
* @param params.intentGuardian -
|
|
64154
|
+
* @param params.intentGuardian - Guardian for intent approval. Defaults to the paid guardian deployed for the client's environment.
|
|
64154
64155
|
* @param params.retainOnEmpty - Keep deposit active when balance reaches zero
|
|
64155
64156
|
* @param params.txOverrides - Optional viem transaction overrides
|
|
64156
64157
|
* @returns The deposit details posted to API (empty when payee registration is skipped) and the transaction hash
|
|
@@ -64313,7 +64314,7 @@ var Zkp2pClient = class {
|
|
|
64313
64314
|
paymentMethodData,
|
|
64314
64315
|
currencies: normalizedCurrencies,
|
|
64315
64316
|
delegate: params.delegate ?? "0x0000000000000000000000000000000000000000",
|
|
64316
|
-
intentGuardian: params.intentGuardian ??
|
|
64317
|
+
intentGuardian: params.intentGuardian ?? this.intentGuardianAddress ?? DEFAULT_INTENT_GUARDIAN_ADDRESS,
|
|
64317
64318
|
retainOnEmpty: Boolean(params.retainOnEmpty ?? false)
|
|
64318
64319
|
}
|
|
64319
64320
|
];
|