@zkp2p/sdk 0.14.7-rc.0 → 0.14.7

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.
@@ -0,0 +1,5 @@
1
+ export { enrichPvDepositView, enrichPvIntentView, parseDepositView, parseIntentView } from './chunk-ANDZNB7X.mjs';
2
+ import './chunk-WDEEWFEU.mjs';
3
+ import './chunk-SWQCAVQR.mjs';
4
+ //# sourceMappingURL=protocolViewerParsers-N5RU4PRR.mjs.map
5
+ //# sourceMappingURL=protocolViewerParsers-N5RU4PRR.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"protocolViewerParsers-MQMGKRVV.mjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"protocolViewerParsers-N5RU4PRR.mjs"}
package/dist/react.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as Zkp2pClient, P as PostDepositDetailsRequest, a4 as SignalIntentMethodParams, bY as PreparedTransaction, a5 as FulfillIntentMethodParams, dJ as SendTransactionFn, dK as SendBatchFn, dH as DelegationDepositTarget, dI as BatchResult, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote } from './vaultUtils-D-vYN77-.mjs';
2
- export { dF as DelegationRoute, dG as DelegationState, dT as VAULT_ZERO_ADDRESS, dz as ZERO_RATE_MANAGER_ID, dU as asErrorMessage, dV as assertDelegationMethodSupport, dE as classifyDelegationState, dD as getDelegationRoute, dA as isZeroRateManagerId, dB as normalizeRateManagerId, dC as normalizeRegistry } from './vaultUtils-D-vYN77-.mjs';
1
+ import { _ as Zkp2pClient, P as PostDepositDetailsRequest, a4 as SignalIntentMethodParams, bY as PreparedTransaction, a5 as FulfillIntentMethodParams, dJ as SendTransactionFn, dK as SendBatchFn, dH as DelegationDepositTarget, dI as BatchResult, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote } from './vaultUtils-C8yL2H-O.mjs';
2
+ export { dF as DelegationRoute, dG as DelegationState, dT as VAULT_ZERO_ADDRESS, dz as ZERO_RATE_MANAGER_ID, dU as asErrorMessage, dV as assertDelegationMethodSupport, dE as classifyDelegationState, dD as getDelegationRoute, dA as isZeroRateManagerId, dB as normalizeRateManagerId, dC as normalizeRegistry } from './vaultUtils-C8yL2H-O.mjs';
3
3
  import { Hash, Address, Hex } from 'viem';
4
4
  import '@zkp2p/indexer-schema';
5
5
  import 'abitype';
package/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as Zkp2pClient, P as PostDepositDetailsRequest, a4 as SignalIntentMethodParams, bY as PreparedTransaction, a5 as FulfillIntentMethodParams, dJ as SendTransactionFn, dK as SendBatchFn, dH as DelegationDepositTarget, dI as BatchResult, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote } from './vaultUtils-D-vYN77-.js';
2
- export { dF as DelegationRoute, dG as DelegationState, dT as VAULT_ZERO_ADDRESS, dz as ZERO_RATE_MANAGER_ID, dU as asErrorMessage, dV as assertDelegationMethodSupport, dE as classifyDelegationState, dD as getDelegationRoute, dA as isZeroRateManagerId, dB as normalizeRateManagerId, dC as normalizeRegistry } from './vaultUtils-D-vYN77-.js';
1
+ import { _ as Zkp2pClient, P as PostDepositDetailsRequest, a4 as SignalIntentMethodParams, bY as PreparedTransaction, a5 as FulfillIntentMethodParams, dJ as SendTransactionFn, dK as SendBatchFn, dH as DelegationDepositTarget, dI as BatchResult, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote } from './vaultUtils-C8yL2H-O.js';
2
+ export { dF as DelegationRoute, dG as DelegationState, dT as VAULT_ZERO_ADDRESS, dz as ZERO_RATE_MANAGER_ID, dU as asErrorMessage, dV as assertDelegationMethodSupport, dE as classifyDelegationState, dD as getDelegationRoute, dA as isZeroRateManagerId, dB as normalizeRateManagerId, dC as normalizeRegistry } from './vaultUtils-C8yL2H-O.js';
3
3
  import { Hash, Address, Hex } from 'viem';
4
4
  import '@zkp2p/indexer-schema';
5
5
  import 'abitype';
package/dist/react.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { asErrorMessage, ZERO_ADDRESS, getDelegationRoute, assertDelegationMethodSupport, prepareClearDelegationTx, normalizeRateManagerId, normalizeRegistry, isZeroRateManagerId, assertAtomicDelegationSwitchSupport, prepareSetDelegationTx, classifyIntentGuardianError } from './chunk-YA67SM3A.mjs';
2
2
  export { ZERO_ADDRESS as VAULT_ZERO_ADDRESS, ZERO_RATE_MANAGER_ID, asErrorMessage, assertDelegationMethodSupport, classifyDelegationState, getDelegationRoute, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-YA67SM3A.mjs';
3
- import './chunk-35IHGX4I.mjs';
3
+ import './chunk-SWQCAVQR.mjs';
4
4
  import { useState, useCallback, useMemo } from 'react';
5
5
 
6
6
  function useCreateDeposit({ client, onSuccess, onError }) {
@@ -1,5 +1,5 @@
1
1
  import { NetworkError } from './chunk-3J4FPMPW.mjs';
2
- import './chunk-35IHGX4I.mjs';
2
+ import './chunk-SWQCAVQR.mjs';
3
3
 
4
4
  // src/utils/timeout.ts
5
5
  async function withTimeout(promise, timeoutMs, timeoutMessage) {
@@ -30,5 +30,5 @@ var DEFAULT_TIMEOUTS = {
30
30
  };
31
31
 
32
32
  export { DEFAULT_TIMEOUTS, withTimeout };
33
- //# sourceMappingURL=timeout-3KQIWN2D.mjs.map
34
- //# sourceMappingURL=timeout-3KQIWN2D.mjs.map
33
+ //# sourceMappingURL=timeout-7GUR6QN3.mjs.map
34
+ //# sourceMappingURL=timeout-7GUR6QN3.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/timeout.ts"],"names":[],"mappings":";;;;AASA,eAAsB,WAAA,CACpB,OAAA,EACA,SAAA,EACA,cAAA,EACY;AACZ,EAAA,IAAI,SAAA;AAEJ,EAAA,MAAM,cAAA,GAAiB,IAAI,OAAA,CAAe,CAAC,GAAG,MAAA,KAAW;AACvD,IAAA,SAAA,GAAY,WAAW,MAAM;AAC3B,MAAA,MAAA,CAAO,IAAI,YAAA,CAAa,cAAA,EAAgB,EAAE,OAAA,EAAS,SAAA,EAAW,CAAC,CAAA;AAAA,IACjE,GAAG,SAAS,CAAA;AAAA,EACd,CAAC,CAAA;AAED,EAAA,IAAI;AACF,IAAA,MAAM,SAAS,MAAM,OAAA,CAAQ,KAAK,CAAC,OAAA,EAAS,cAAc,CAAC,CAAA;AAC3D,IAAA,IAAI,SAAA,eAAwB,SAAS,CAAA;AACrC,IAAA,OAAO,MAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,IAAI,SAAA,eAAwB,SAAS,CAAA;AACrC,IAAA,MAAM,KAAA;AAAA,EACR;AACF;AAKO,IAAM,gBAAA,GAAmB;AAAA;AAAA,EAE9B,GAAA,EAAK,GAAA;AAAA;AAAA,EAEL,WAAA,EAAa,GAAA;AAAA;AAAA,EAEb,gBAAA,EAAkB,IAAA;AAAA;AAAA,EAElB,SAAA,EAAW;AACb","file":"timeout-3KQIWN2D.mjs","sourcesContent":["import { NetworkError } from '../errors';\n\n/**\n * Wraps a promise with a timeout\n * @param promise - The promise to wrap\n * @param timeoutMs - Timeout in milliseconds\n * @param timeoutMessage - Error message when timeout occurs\n * @returns Promise that rejects if timeout occurs\n */\nexport async function withTimeout<T>(\n promise: Promise<T>,\n timeoutMs: number,\n timeoutMessage: string\n): Promise<T> {\n let timeoutId: NodeJS.Timeout | undefined;\n\n const timeoutPromise = new Promise<never>((_, reject) => {\n timeoutId = setTimeout(() => {\n reject(new NetworkError(timeoutMessage, { timeout: timeoutMs }));\n }, timeoutMs);\n });\n\n try {\n const result = await Promise.race([promise, timeoutPromise]);\n if (timeoutId) clearTimeout(timeoutId);\n return result;\n } catch (error) {\n if (timeoutId) clearTimeout(timeoutId);\n throw error;\n }\n}\n\n/**\n * Default timeout values for different operation types\n */\nexport const DEFAULT_TIMEOUTS = {\n /** API call timeout (30 seconds) */\n API: 30000,\n /** Blockchain transaction timeout (60 seconds) */\n TRANSACTION: 60000,\n /** Proof generation timeout (120 seconds) */\n PROOF_GENERATION: 120000,\n /** Extension communication timeout (60 seconds) */\n EXTENSION: 60000,\n} as const;"]}
1
+ {"version":3,"sources":["../src/utils/timeout.ts"],"names":[],"mappings":";;;;AASA,eAAsB,WAAA,CACpB,OAAA,EACA,SAAA,EACA,cAAA,EACY;AACZ,EAAA,IAAI,SAAA;AAEJ,EAAA,MAAM,cAAA,GAAiB,IAAI,OAAA,CAAe,CAAC,GAAG,MAAA,KAAW;AACvD,IAAA,SAAA,GAAY,WAAW,MAAM;AAC3B,MAAA,MAAA,CAAO,IAAI,YAAA,CAAa,cAAA,EAAgB,EAAE,OAAA,EAAS,SAAA,EAAW,CAAC,CAAA;AAAA,IACjE,GAAG,SAAS,CAAA;AAAA,EACd,CAAC,CAAA;AAED,EAAA,IAAI;AACF,IAAA,MAAM,SAAS,MAAM,OAAA,CAAQ,KAAK,CAAC,OAAA,EAAS,cAAc,CAAC,CAAA;AAC3D,IAAA,IAAI,SAAA,eAAwB,SAAS,CAAA;AACrC,IAAA,OAAO,MAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,IAAI,SAAA,eAAwB,SAAS,CAAA;AACrC,IAAA,MAAM,KAAA;AAAA,EACR;AACF;AAKO,IAAM,gBAAA,GAAmB;AAAA;AAAA,EAE9B,GAAA,EAAK,GAAA;AAAA;AAAA,EAEL,WAAA,EAAa,GAAA;AAAA;AAAA,EAEb,gBAAA,EAAkB,IAAA;AAAA;AAAA,EAElB,SAAA,EAAW;AACb","file":"timeout-7GUR6QN3.mjs","sourcesContent":["import { NetworkError } from '../errors';\n\n/**\n * Wraps a promise with a timeout\n * @param promise - The promise to wrap\n * @param timeoutMs - Timeout in milliseconds\n * @param timeoutMessage - Error message when timeout occurs\n * @returns Promise that rejects if timeout occurs\n */\nexport async function withTimeout<T>(\n promise: Promise<T>,\n timeoutMs: number,\n timeoutMessage: string\n): Promise<T> {\n let timeoutId: NodeJS.Timeout | undefined;\n\n const timeoutPromise = new Promise<never>((_, reject) => {\n timeoutId = setTimeout(() => {\n reject(new NetworkError(timeoutMessage, { timeout: timeoutMs }));\n }, timeoutMs);\n });\n\n try {\n const result = await Promise.race([promise, timeoutPromise]);\n if (timeoutId) clearTimeout(timeoutId);\n return result;\n } catch (error) {\n if (timeoutId) clearTimeout(timeoutId);\n throw error;\n }\n}\n\n/**\n * Default timeout values for different operation types\n */\nexport const DEFAULT_TIMEOUTS = {\n /** API call timeout (30 seconds) */\n API: 30000,\n /** Blockchain transaction timeout (60 seconds) */\n TRANSACTION: 60000,\n /** Proof generation timeout (120 seconds) */\n PROOF_GENERATION: 120000,\n /** Extension communication timeout (60 seconds) */\n EXTENSION: 60000,\n} as const;"]}
@@ -4672,7 +4672,7 @@ declare class Zkp2pClient {
4672
4672
  * then stored unchanged for that maker; the maker is not re-registered.
4673
4673
  *
4674
4674
  * Rejects with `ICloudMailCredentialError` (`reason` names the failure)
4675
- * before any mailbox work when `payeeId` does not hash to `payeeDetails`,
4675
+ * before any mailbox work when the payee does not hash to `payeeDetails`,
4676
4676
  * while another connection for the mailbox runs, or during a rate-limit
4677
4677
  * delay. The attestor defaults to the one paired with `baseApiUrl`.
4678
4678
  */
@@ -4672,7 +4672,7 @@ declare class Zkp2pClient {
4672
4672
  * then stored unchanged for that maker; the maker is not re-registered.
4673
4673
  *
4674
4674
  * Rejects with `ICloudMailCredentialError` (`reason` names the failure)
4675
- * before any mailbox work when `payeeId` does not hash to `payeeDetails`,
4675
+ * before any mailbox work when the payee does not hash to `payeeDetails`,
4676
4676
  * while another connection for the mailbox runs, or during a rate-limit
4677
4677
  * delay. The attestor defaults to the one paired with `baseApiUrl`.
4678
4678
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/sdk",
3
- "version": "0.14.7-rc.0",
3
+ "version": "0.14.7",
4
4
  "description": "ZKP2P Client SDK - TypeScript SDK for deposit management, liquidity provision, and onramping",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.cjs",
@@ -1,12 +0,0 @@
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: "702186ed22ef1102f2827501e14f12172b5acf9b", kind: "github", distributable: true }, sdkPackageVersion: "0.14.7-rc.0", 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-35IHGX4I.mjs.map
12
- //# sourceMappingURL=chunk-35IHGX4I.mjs.map
@@ -1 +0,0 @@
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,eAAc,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-35IHGX4I.mjs","sourcesContent":["{\"schemaVersion\":2,\"source\":{\"repository\":\"zkp2p/zkp2p-clients\",\"commitSha\":\"702186ed22ef1102f2827501e14f12172b5acf9b\",\"kind\":\"github\",\"distributable\":true},\"sdkPackageVersion\":\"0.14.7-rc.0\",\"contractsPackageVersion\":\"0.4.4-rc.2\",\"indexerSchemaPackageVersion\":\"0.22.0\",\"activeDisputeStack\":{\"base\":{\"version\":2,\"selectionHash\":\"ba40c2954b408d0c658881a8d28e5bfcc9bade5cc3d953fd17eae1eca69d841c\"},\"baseStaging\":{\"version\":2,\"selectionHash\":\"6c49c1ce51eec594a22385c4efcab08aa9926b6b63a725e14a0027ec5d2f4fc9\"}}}"]}
@@ -1,5 +0,0 @@
1
- export { enrichPvDepositView, enrichPvIntentView, parseDepositView, parseIntentView } from './chunk-UQ4YSOEL.mjs';
2
- import './chunk-WDEEWFEU.mjs';
3
- import './chunk-35IHGX4I.mjs';
4
- //# sourceMappingURL=protocolViewerParsers-MQMGKRVV.mjs.map
5
- //# sourceMappingURL=protocolViewerParsers-MQMGKRVV.mjs.map