@zkp2p/sdk 0.0.8 → 0.0.9

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.
Files changed (29) hide show
  1. package/dist/{Zkp2pClient-w5Pzlea6.d.mts → Zkp2pClient-tpqzO2dc.d.mts} +4 -0
  2. package/dist/{Zkp2pClient-w5Pzlea6.d.ts → Zkp2pClient-tpqzO2dc.d.ts} +4 -0
  3. package/dist/{chunk-J34QNX2H.mjs → chunk-GNGQRV2U.mjs} +2 -2
  4. package/dist/{chunk-J34QNX2H.mjs.map → chunk-GNGQRV2U.mjs.map} +1 -1
  5. package/dist/{chunk-LZJL5J5X.mjs → chunk-IXZY7BSF.mjs} +3 -3
  6. package/dist/{chunk-LZJL5J5X.mjs.map → chunk-IXZY7BSF.mjs.map} +1 -1
  7. package/dist/{chunk-NRU6Z6WS.mjs → chunk-PLKVLZVI.mjs} +4 -4
  8. package/dist/{chunk-NRU6Z6WS.mjs.map → chunk-PLKVLZVI.mjs.map} +1 -1
  9. package/dist/{chunk-MWFONYDJ.mjs → chunk-RMWIECY7.mjs} +3 -3
  10. package/dist/{chunk-MWFONYDJ.mjs.map → chunk-RMWIECY7.mjs.map} +1 -1
  11. package/dist/{constants-S277YHME.mjs → constants-UPXDEQFF.mjs} +4 -4
  12. package/dist/{constants-S277YHME.mjs.map → constants-UPXDEQFF.mjs.map} +1 -1
  13. package/dist/{currency-NTRIKAOH.mjs → currency-V2V6PKXO.mjs} +4 -4
  14. package/dist/{currency-NTRIKAOH.mjs.map → currency-V2V6PKXO.mjs.map} +1 -1
  15. package/dist/index.cjs +21 -9
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.mts +2 -2
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.mjs +24 -17
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/paymentResolution-AZUVXTLV.mjs +5 -0
  22. package/dist/{paymentResolution-WNXTUSNH.mjs.map → paymentResolution-AZUVXTLV.mjs.map} +1 -1
  23. package/dist/protocolViewerParsers-ZHJDHXTL.mjs +7 -0
  24. package/dist/{protocolViewerParsers-FCIK2ZTT.mjs.map → protocolViewerParsers-ZHJDHXTL.mjs.map} +1 -1
  25. package/dist/react.d.mts +1 -1
  26. package/dist/react.d.ts +1 -1
  27. package/package.json +15 -15
  28. package/dist/paymentResolution-WNXTUSNH.mjs +0 -5
  29. package/dist/protocolViewerParsers-FCIK2ZTT.mjs +0 -7
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DepositWithRelations, I as IntentEntity, V as ValidatePayeeDetailsRequest, a as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, b as PostDepositDetailsResponse, G as GetPayeeDetailsRequest, c as GetPayeeDetailsResponse, d as GetOwnerDepositsRequest, e as GetOwnerDepositsResponse, f as GetTakerTierRequest, g as GetTakerTierResponse, h as PaymentMethodCatalog, T as TxOverrides } from './Zkp2pClient-w5Pzlea6.mjs';
2
- export { A as ActionCallback, y as ApiDeposit, L as ApiIntentStatus, C as CancelIntentMethodParams, p as CancelIntentParams, l as CreateDepositConversionRate, k as CreateDepositParams, au as Currency, aC as CurrencyData, aB as CurrencyType, aM as Deposit, aO as DepositCurrency, a5 as DepositIntentStatistics, E as DepositStatus, z as DepositVerifier, B as DepositVerifierCurrency, a2 as DepositVerifierData, aL as DepositView, v as FiatResponse, F as FulfillIntentMethodParams, n as FulfillIntentParams, H as GetDepositByIdRequest, J as GetDepositByIdResponse, Y as GetIntentByHashRequest, _ as GetIntentByHashResponse, U as GetIntentsByDepositRequest, X as GetIntentsByDepositResponse, M as GetOwnerIntentsRequest, O as GetOwnerIntentsResponse, ab as IndexerClient, ao as IndexerDeploymentEnv, af as IndexerDeposit, ak as IndexerDepositFilter, an as IndexerDepositOrderDirection, am as IndexerDepositOrderField, al as IndexerDepositPagination, ah as IndexerDepositPaymentMethod, ad as IndexerDepositService, ar as IndexerFulfillmentAndPaymentResponse, ap as IndexerFulfillmentRecord, ag as IndexerIntentFulfilled, aj as IndexerIntentStatus, ai as IndexerMethodCurrency, aq as IndexerPaymentVerifiedRecord, K as Intent, aP as IntentView, N as NearbyQuote, x as NearbySuggestions, Z as OfframpClient, a1 as OnchainCurrency, aQ as OnchainIntent, a4 as OrderStats, as as PAYMENT_PLATFORMS, aN as PaymentMethodData, at as PaymentPlatformType, a9 as PlatformLimit, aa as PlatformRiskLevel, a3 as PreparedTransaction, u as QuoteFeesResponse, t as QuoteIntentResponse, Q as QuoteRequest, q as QuoteResponse, r as QuoteResponseObject, s as QuoteSingleResponse, R as Range, $ as RegisterPayeeDetailsRequest, a0 as RegisterPayeeDetailsResponse, o as ReleaseFundsToPayerParams, aG as RuntimeEnv, S as SignalIntentMethodParams, m as SignalIntentParams, a6 as TakerTier, a8 as TakerTierLevel, a7 as TakerTierStats, j as TimeoutConfig, w as TokenResponse, W as WithdrawDepositParams, Z as Zkp2pClient, i as Zkp2pClientOptions, av as currencyInfo, ac as defaultIndexerEndpoint, aJ as enrichPvDepositView, aK as enrichPvIntentView, ae as fetchIndexerFulfillmentAndPayment, aD as getContracts, ay as getCurrencyCodeFromHash, ax as getCurrencyInfoFromCountryCode, aw as getCurrencyInfoFromHash, aF as getGatingServiceAddress, aE as getPaymentMethodsCatalog, az as isSupportedCurrencyHash, aA as mapConversionRatesToOnchainMinRate, aH as parseDepositView, aI as parseIntentView } from './Zkp2pClient-w5Pzlea6.mjs';
1
+ import { D as DepositWithRelations, I as IntentEntity, V as ValidatePayeeDetailsRequest, a as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, b as PostDepositDetailsResponse, G as GetPayeeDetailsRequest, c as GetPayeeDetailsResponse, d as GetOwnerDepositsRequest, e as GetOwnerDepositsResponse, f as GetTakerTierRequest, g as GetTakerTierResponse, h as PaymentMethodCatalog, T as TxOverrides } from './Zkp2pClient-tpqzO2dc.mjs';
2
+ export { A as ActionCallback, y as ApiDeposit, L as ApiIntentStatus, C as CancelIntentMethodParams, p as CancelIntentParams, l as CreateDepositConversionRate, k as CreateDepositParams, au as Currency, aC as CurrencyData, aB as CurrencyType, aM as Deposit, aO as DepositCurrency, a5 as DepositIntentStatistics, E as DepositStatus, z as DepositVerifier, B as DepositVerifierCurrency, a2 as DepositVerifierData, aL as DepositView, v as FiatResponse, F as FulfillIntentMethodParams, n as FulfillIntentParams, H as GetDepositByIdRequest, J as GetDepositByIdResponse, Y as GetIntentByHashRequest, _ as GetIntentByHashResponse, U as GetIntentsByDepositRequest, X as GetIntentsByDepositResponse, M as GetOwnerIntentsRequest, O as GetOwnerIntentsResponse, ab as IndexerClient, ao as IndexerDeploymentEnv, af as IndexerDeposit, ak as IndexerDepositFilter, an as IndexerDepositOrderDirection, am as IndexerDepositOrderField, al as IndexerDepositPagination, ah as IndexerDepositPaymentMethod, ad as IndexerDepositService, ar as IndexerFulfillmentAndPaymentResponse, ap as IndexerFulfillmentRecord, ag as IndexerIntentFulfilled, aj as IndexerIntentStatus, ai as IndexerMethodCurrency, aq as IndexerPaymentVerifiedRecord, K as Intent, aP as IntentView, N as NearbyQuote, x as NearbySuggestions, Z as OfframpClient, a1 as OnchainCurrency, aQ as OnchainIntent, a4 as OrderStats, as as PAYMENT_PLATFORMS, aN as PaymentMethodData, at as PaymentPlatformType, a9 as PlatformLimit, aa as PlatformRiskLevel, a3 as PreparedTransaction, u as QuoteFeesResponse, t as QuoteIntentResponse, Q as QuoteRequest, q as QuoteResponse, r as QuoteResponseObject, s as QuoteSingleResponse, R as Range, $ as RegisterPayeeDetailsRequest, a0 as RegisterPayeeDetailsResponse, o as ReleaseFundsToPayerParams, aG as RuntimeEnv, S as SignalIntentMethodParams, m as SignalIntentParams, a6 as TakerTier, a8 as TakerTierLevel, a7 as TakerTierStats, j as TimeoutConfig, w as TokenResponse, W as WithdrawDepositParams, Z as Zkp2pClient, i as Zkp2pClientOptions, av as currencyInfo, ac as defaultIndexerEndpoint, aJ as enrichPvDepositView, aK as enrichPvIntentView, ae as fetchIndexerFulfillmentAndPayment, aD as getContracts, ay as getCurrencyCodeFromHash, ax as getCurrencyInfoFromCountryCode, aw as getCurrencyInfoFromHash, aF as getGatingServiceAddress, aE as getPaymentMethodsCatalog, az as isSupportedCurrencyHash, aA as mapConversionRatesToOnchainMinRate, aH as parseDepositView, aI as parseIntentView } from './Zkp2pClient-tpqzO2dc.mjs';
3
3
  import { Abi } from 'abitype';
4
4
  import { Hex, WalletClient, Hash } from 'viem';
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DepositWithRelations, I as IntentEntity, V as ValidatePayeeDetailsRequest, a as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, b as PostDepositDetailsResponse, G as GetPayeeDetailsRequest, c as GetPayeeDetailsResponse, d as GetOwnerDepositsRequest, e as GetOwnerDepositsResponse, f as GetTakerTierRequest, g as GetTakerTierResponse, h as PaymentMethodCatalog, T as TxOverrides } from './Zkp2pClient-w5Pzlea6.js';
2
- export { A as ActionCallback, y as ApiDeposit, L as ApiIntentStatus, C as CancelIntentMethodParams, p as CancelIntentParams, l as CreateDepositConversionRate, k as CreateDepositParams, au as Currency, aC as CurrencyData, aB as CurrencyType, aM as Deposit, aO as DepositCurrency, a5 as DepositIntentStatistics, E as DepositStatus, z as DepositVerifier, B as DepositVerifierCurrency, a2 as DepositVerifierData, aL as DepositView, v as FiatResponse, F as FulfillIntentMethodParams, n as FulfillIntentParams, H as GetDepositByIdRequest, J as GetDepositByIdResponse, Y as GetIntentByHashRequest, _ as GetIntentByHashResponse, U as GetIntentsByDepositRequest, X as GetIntentsByDepositResponse, M as GetOwnerIntentsRequest, O as GetOwnerIntentsResponse, ab as IndexerClient, ao as IndexerDeploymentEnv, af as IndexerDeposit, ak as IndexerDepositFilter, an as IndexerDepositOrderDirection, am as IndexerDepositOrderField, al as IndexerDepositPagination, ah as IndexerDepositPaymentMethod, ad as IndexerDepositService, ar as IndexerFulfillmentAndPaymentResponse, ap as IndexerFulfillmentRecord, ag as IndexerIntentFulfilled, aj as IndexerIntentStatus, ai as IndexerMethodCurrency, aq as IndexerPaymentVerifiedRecord, K as Intent, aP as IntentView, N as NearbyQuote, x as NearbySuggestions, Z as OfframpClient, a1 as OnchainCurrency, aQ as OnchainIntent, a4 as OrderStats, as as PAYMENT_PLATFORMS, aN as PaymentMethodData, at as PaymentPlatformType, a9 as PlatformLimit, aa as PlatformRiskLevel, a3 as PreparedTransaction, u as QuoteFeesResponse, t as QuoteIntentResponse, Q as QuoteRequest, q as QuoteResponse, r as QuoteResponseObject, s as QuoteSingleResponse, R as Range, $ as RegisterPayeeDetailsRequest, a0 as RegisterPayeeDetailsResponse, o as ReleaseFundsToPayerParams, aG as RuntimeEnv, S as SignalIntentMethodParams, m as SignalIntentParams, a6 as TakerTier, a8 as TakerTierLevel, a7 as TakerTierStats, j as TimeoutConfig, w as TokenResponse, W as WithdrawDepositParams, Z as Zkp2pClient, i as Zkp2pClientOptions, av as currencyInfo, ac as defaultIndexerEndpoint, aJ as enrichPvDepositView, aK as enrichPvIntentView, ae as fetchIndexerFulfillmentAndPayment, aD as getContracts, ay as getCurrencyCodeFromHash, ax as getCurrencyInfoFromCountryCode, aw as getCurrencyInfoFromHash, aF as getGatingServiceAddress, aE as getPaymentMethodsCatalog, az as isSupportedCurrencyHash, aA as mapConversionRatesToOnchainMinRate, aH as parseDepositView, aI as parseIntentView } from './Zkp2pClient-w5Pzlea6.js';
1
+ import { D as DepositWithRelations, I as IntentEntity, V as ValidatePayeeDetailsRequest, a as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, b as PostDepositDetailsResponse, G as GetPayeeDetailsRequest, c as GetPayeeDetailsResponse, d as GetOwnerDepositsRequest, e as GetOwnerDepositsResponse, f as GetTakerTierRequest, g as GetTakerTierResponse, h as PaymentMethodCatalog, T as TxOverrides } from './Zkp2pClient-tpqzO2dc.js';
2
+ export { A as ActionCallback, y as ApiDeposit, L as ApiIntentStatus, C as CancelIntentMethodParams, p as CancelIntentParams, l as CreateDepositConversionRate, k as CreateDepositParams, au as Currency, aC as CurrencyData, aB as CurrencyType, aM as Deposit, aO as DepositCurrency, a5 as DepositIntentStatistics, E as DepositStatus, z as DepositVerifier, B as DepositVerifierCurrency, a2 as DepositVerifierData, aL as DepositView, v as FiatResponse, F as FulfillIntentMethodParams, n as FulfillIntentParams, H as GetDepositByIdRequest, J as GetDepositByIdResponse, Y as GetIntentByHashRequest, _ as GetIntentByHashResponse, U as GetIntentsByDepositRequest, X as GetIntentsByDepositResponse, M as GetOwnerIntentsRequest, O as GetOwnerIntentsResponse, ab as IndexerClient, ao as IndexerDeploymentEnv, af as IndexerDeposit, ak as IndexerDepositFilter, an as IndexerDepositOrderDirection, am as IndexerDepositOrderField, al as IndexerDepositPagination, ah as IndexerDepositPaymentMethod, ad as IndexerDepositService, ar as IndexerFulfillmentAndPaymentResponse, ap as IndexerFulfillmentRecord, ag as IndexerIntentFulfilled, aj as IndexerIntentStatus, ai as IndexerMethodCurrency, aq as IndexerPaymentVerifiedRecord, K as Intent, aP as IntentView, N as NearbyQuote, x as NearbySuggestions, Z as OfframpClient, a1 as OnchainCurrency, aQ as OnchainIntent, a4 as OrderStats, as as PAYMENT_PLATFORMS, aN as PaymentMethodData, at as PaymentPlatformType, a9 as PlatformLimit, aa as PlatformRiskLevel, a3 as PreparedTransaction, u as QuoteFeesResponse, t as QuoteIntentResponse, Q as QuoteRequest, q as QuoteResponse, r as QuoteResponseObject, s as QuoteSingleResponse, R as Range, $ as RegisterPayeeDetailsRequest, a0 as RegisterPayeeDetailsResponse, o as ReleaseFundsToPayerParams, aG as RuntimeEnv, S as SignalIntentMethodParams, m as SignalIntentParams, a6 as TakerTier, a8 as TakerTierLevel, a7 as TakerTierStats, j as TimeoutConfig, w as TokenResponse, W as WithdrawDepositParams, Z as Zkp2pClient, i as Zkp2pClientOptions, av as currencyInfo, ac as defaultIndexerEndpoint, aJ as enrichPvDepositView, aK as enrichPvIntentView, ae as fetchIndexerFulfillmentAndPayment, aD as getContracts, ay as getCurrencyCodeFromHash, ax as getCurrencyInfoFromCountryCode, aw as getCurrencyInfoFromHash, aF as getGatingServiceAddress, aE as getPaymentMethodsCatalog, az as isSupportedCurrencyHash, aA as mapConversionRatesToOnchainMinRate, aH as parseDepositView, aI as parseIntentView } from './Zkp2pClient-tpqzO2dc.js';
3
3
  import { Abi } from 'abitype';
4
4
  import { Hex, WalletClient, Hash } from 'viem';
5
5
 
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import { ValidationError, APIError, NetworkError } from './chunk-GHQK65J2.mjs';
2
2
  export { APIError, ContractError, ErrorCode, NetworkError, ValidationError, ZKP2PError } from './chunk-GHQK65J2.mjs';
3
3
  export { PAYMENT_PLATFORMS, PLATFORM_METADATA, SUPPORTED_CHAIN_IDS, TOKEN_METADATA } from './chunk-GYYD6SSA.mjs';
4
- import { getContracts, getPaymentMethodsCatalog, getGatingServiceAddress } from './chunk-NRU6Z6WS.mjs';
5
- export { enrichPvDepositView, enrichPvIntentView, getContracts, getGatingServiceAddress, getPaymentMethodsCatalog, parseDepositView, parseIntentView } from './chunk-NRU6Z6WS.mjs';
6
- import { resolvePaymentMethodHashFromCatalog, resolveFiatCurrencyBytes32 } from './chunk-MWFONYDJ.mjs';
7
- export { asciiToBytes32, ensureBytes32, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-MWFONYDJ.mjs';
8
- export { Currency, currencyInfo, getCurrencyCodeFromHash, getCurrencyInfoFromCountryCode, getCurrencyInfoFromHash, isSupportedCurrencyHash, mapConversionRatesToOnchainMinRate } from './chunk-LZJL5J5X.mjs';
9
- import { currencyKeccak256 } from './chunk-J34QNX2H.mjs';
4
+ import { getContracts, getPaymentMethodsCatalog, getGatingServiceAddress } from './chunk-PLKVLZVI.mjs';
5
+ export { enrichPvDepositView, enrichPvIntentView, getContracts, getGatingServiceAddress, getPaymentMethodsCatalog, parseDepositView, parseIntentView } from './chunk-PLKVLZVI.mjs';
6
+ import { resolvePaymentMethodHashFromCatalog, resolveFiatCurrencyBytes32 } from './chunk-RMWIECY7.mjs';
7
+ export { asciiToBytes32, ensureBytes32, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-RMWIECY7.mjs';
8
+ export { Currency, currencyInfo, getCurrencyCodeFromHash, getCurrencyInfoFromCountryCode, getCurrencyInfoFromHash, isSupportedCurrencyHash, mapConversionRatesToOnchainMinRate } from './chunk-IXZY7BSF.mjs';
9
+ import { currencyKeccak256 } from './chunk-GNGQRV2U.mjs';
10
10
  import './chunk-3QS3WKRC.mjs';
11
11
  import { concatHex, encodeFunctionData, createPublicClient, http } from 'viem';
12
12
  import { hardhat, baseSepolia, base } from 'viem/chains';
@@ -74,6 +74,7 @@ var DEPOSIT_FIELDS = `
74
74
  escrowAddress
75
75
  depositId
76
76
  depositor
77
+ delegate
77
78
  token
78
79
  remainingDeposits
79
80
  intentAmountMin
@@ -414,6 +415,7 @@ function groupByDepositId(items) {
414
415
  }
415
416
  var DEFAULT_LIMIT = 100;
416
417
  var DEFAULT_ORDER_FIELD = "remainingDeposits";
418
+ var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
417
419
  var IndexerDepositService = class {
418
420
  constructor(client) {
419
421
  this.client = client;
@@ -423,6 +425,11 @@ var IndexerDepositService = class {
423
425
  const where = {};
424
426
  if (filter.status) where.status = { _eq: filter.status };
425
427
  if (filter.depositor) where.depositor = { _ilike: filter.depositor };
428
+ if (filter.delegate) {
429
+ where.delegate = { _ilike: filter.delegate };
430
+ } else if (filter.delegateIsSet !== void 0) {
431
+ where.delegate = filter.delegateIsSet ? { _neq: ZERO_ADDRESS } : { _eq: ZERO_ADDRESS };
432
+ }
426
433
  if (filter.chainId) where.chainId = { _eq: filter.chainId };
427
434
  if (filter.escrowAddresses && filter.escrowAddresses.length) {
428
435
  where.escrowAddress = { _in: filter.escrowAddresses };
@@ -1973,7 +1980,7 @@ var Zkp2pClient = class {
1973
1980
  }
1974
1981
  }
1975
1982
  });
1976
- const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-NTRIKAOH.mjs');
1983
+ const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-V2V6PKXO.mjs');
1977
1984
  const normalized = params.conversionRates.map((group) => group.map((r) => ({ currency: r.currency, conversionRate: r.conversionRate })));
1978
1985
  currencies = mapConversionRatesToOnchainMinRate2(normalized, paymentMethods.length);
1979
1986
  }
@@ -2107,10 +2114,10 @@ var Zkp2pClient = class {
2107
2114
  const paymentMethodHash = inputs.paymentMethodHash || "0x";
2108
2115
  const timestampBufferMs = params.timestampBufferMs ?? "300000";
2109
2116
  const catalog = getPaymentMethodsCatalog(this.chainId, this.runtimeEnv);
2110
- const { resolvePaymentMethodNameFromHash: resolvePaymentMethodNameFromHash2 } = await import('./paymentResolution-WNXTUSNH.mjs');
2117
+ const { resolvePaymentMethodNameFromHash: resolvePaymentMethodNameFromHash2 } = await import('./paymentResolution-AZUVXTLV.mjs');
2111
2118
  const platformName = resolvePaymentMethodNameFromHash2(paymentMethodHash, catalog);
2112
2119
  if (!platformName) throw new Error("Unknown paymentMethodHash for this network/env; update SDK catalogs.");
2113
- const { resolvePlatformAttestationConfig } = await import('./constants-S277YHME.mjs');
2120
+ const { resolvePlatformAttestationConfig } = await import('./constants-UPXDEQFF.mjs');
2114
2121
  const cfg = resolvePlatformAttestationConfig(platformName);
2115
2122
  const platform = cfg.actionPlatform;
2116
2123
  const actionType = cfg.actionType;
@@ -2272,11 +2279,11 @@ var Zkp2pClient = class {
2272
2279
  try {
2273
2280
  const { address, abi } = this.requireProtocolViewer();
2274
2281
  const raw = await this.publicClient.readContract({ address, abi, functionName: "getDeposit", args: [id] });
2275
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-FCIK2ZTT.mjs');
2282
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-ZHJDHXTL.mjs');
2276
2283
  return parseDepositView2(raw);
2277
2284
  } catch (e) {
2278
2285
  const raw = await this.publicClient.readContract({ address: this.escrowAddress, abi: this.escrowAbi, functionName: "getDeposit", args: [id] });
2279
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-FCIK2ZTT.mjs');
2286
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-ZHJDHXTL.mjs');
2280
2287
  return parseDepositView2(raw);
2281
2288
  }
2282
2289
  }
@@ -2288,7 +2295,7 @@ var Zkp2pClient = class {
2288
2295
  */
2289
2296
  async getPvDepositsFromIds(ids) {
2290
2297
  if (!this.protocolViewerAddress || !this.protocolViewerAbi) {
2291
- const { parseDepositView: parseDepositView3 } = await import('./protocolViewerParsers-FCIK2ZTT.mjs');
2298
+ const { parseDepositView: parseDepositView3 } = await import('./protocolViewerParsers-ZHJDHXTL.mjs');
2292
2299
  const results = [];
2293
2300
  for (const id of ids) {
2294
2301
  const raw2 = await this.publicClient.readContract({
@@ -2308,7 +2315,7 @@ var Zkp2pClient = class {
2308
2315
  functionName: "getDepositFromIds",
2309
2316
  args: [bn]
2310
2317
  });
2311
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-FCIK2ZTT.mjs');
2318
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-ZHJDHXTL.mjs');
2312
2319
  return raw.map(parseDepositView2);
2313
2320
  }
2314
2321
  /**
@@ -2321,11 +2328,11 @@ var Zkp2pClient = class {
2321
2328
  try {
2322
2329
  const { address, abi } = this.requireProtocolViewer();
2323
2330
  const raw = await this.publicClient.readContract({ address, abi, functionName: "getAccountDeposits", args: [owner] });
2324
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-FCIK2ZTT.mjs');
2331
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-ZHJDHXTL.mjs');
2325
2332
  return raw.map(parseDepositView2);
2326
2333
  } catch (e) {
2327
2334
  const raw = await this.publicClient.readContract({ address: this.escrowAddress, abi: this.escrowAbi, functionName: "getAccountDeposits", args: [owner] });
2328
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-FCIK2ZTT.mjs');
2335
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-ZHJDHXTL.mjs');
2329
2336
  return raw.map(parseDepositView2);
2330
2337
  }
2331
2338
  }
@@ -2344,7 +2351,7 @@ var Zkp2pClient = class {
2344
2351
  functionName: "getAccountIntents",
2345
2352
  args: [owner]
2346
2353
  });
2347
- const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-FCIK2ZTT.mjs');
2354
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-ZHJDHXTL.mjs');
2348
2355
  return raw.map(parseIntentView2);
2349
2356
  }
2350
2357
  /**
@@ -2361,7 +2368,7 @@ var Zkp2pClient = class {
2361
2368
  functionName: "getIntent",
2362
2369
  args: [intentHash]
2363
2370
  });
2364
- const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-FCIK2ZTT.mjs');
2371
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-ZHJDHXTL.mjs');
2365
2372
  return parseIntentView2(raw);
2366
2373
  }
2367
2374
  // ╔═══════════════════════════════════════════════════════════════════════════╗