@zkp2p/sdk 0.11.0-rc.6 → 0.11.0

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/dist/index.mjs CHANGED
@@ -2,8 +2,8 @@ import { IntentGuardianOperations } from './chunk-FCOH36IX.mjs';
2
2
  export { ZERO_RATE_MANAGER_ID, classifyDelegationState, classifyIntentGuardianError, getDelegationRoute, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-FCOH36IX.mjs';
3
3
  import { NetworkError, ValidationError, APIError } from './chunk-GHQK65J2.mjs';
4
4
  export { APIError, ContractError, ErrorCode, NetworkError, ValidationError, ZKP2PError } from './chunk-GHQK65J2.mjs';
5
- import { METHOD_NAME_TO_HASH, matchesQuotePaymentMethod, matchesPaymentMethodNameAndHash, getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, SUPPORTED_PAYMENT_METHOD_HASHES, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash } from './chunk-R4MPJTU7.mjs';
6
- export { PAYMENT_PLATFORMS, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getGatingServiceAddress, getIntentGuardianContract, getPaymentMethodsCatalog, getRateManagerContracts, hasIntentGuardian, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-R4MPJTU7.mjs';
5
+ import { METHOD_NAME_TO_HASH, matchesQuotePaymentMethod, matchesPaymentMethodNameAndHash, getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, SUPPORTED_PAYMENT_METHOD_HASHES, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash } from './chunk-LPKFXAKY.mjs';
6
+ export { PAYMENT_PLATFORMS, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getGatingServiceAddress, getIntentGuardianContract, getPaymentMethodsCatalog, getRateManagerContracts, hasIntentGuardian, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-LPKFXAKY.mjs';
7
7
  import { Currency, currencyKeccak256 } from './chunk-ZFBH4HD7.mjs';
8
8
  export { Currency, currencyInfo, getCurrencyCodeFromHash, getCurrencyInfoFromCountryCode, getCurrencyInfoFromHash, isSupportedCurrencyHash, mapConversionRatesToOnchainMinRate } from './chunk-ZFBH4HD7.mjs';
9
9
  import './chunk-J5LGTIGS.mjs';
@@ -852,7 +852,7 @@ async function sendTransactionWithAttribution(walletClient, request, referrer, o
852
852
  // src/utils/constants.ts
853
853
  var DEFAULT_BASE_API_URL = "https://api.zkp2p.xyz";
854
854
 
855
- // ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.4.0-rc.5_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
855
+ // ../../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
856
856
  var chainlink_default = {
857
857
  feeds: [
858
858
  {
@@ -1898,7 +1898,7 @@ var ProtocolViewerReader = class {
1898
1898
  if (inputCount === null) {
1899
1899
  throw new Error("Configured ProtocolViewer ABI does not expose getDeposit");
1900
1900
  }
1901
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-EXBJYYDQ.mjs');
1901
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
1902
1902
  if (inputCount >= 3) {
1903
1903
  return tryContexts(
1904
1904
  protocolViewerContexts,
@@ -1984,7 +1984,7 @@ var ProtocolViewerReader = class {
1984
1984
  return Promise.all(ids.map((id) => this.config.host.getPvDepositById(id)));
1985
1985
  }
1986
1986
  const bn = ids.map((id) => typeof id === "bigint" ? id : parseRawDepositId(id));
1987
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-EXBJYYDQ.mjs');
1987
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
1988
1988
  if (inputCount >= 2) {
1989
1989
  const requests = ids.map((id, index) => ({
1990
1990
  index,
@@ -2089,7 +2089,7 @@ var ProtocolViewerReader = class {
2089
2089
  if (!protocolViewerAddress || !protocolViewerAbi || inputCount === null) {
2090
2090
  return this.config.host.getPvAccountDepositsFromIndexer(owner);
2091
2091
  }
2092
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-EXBJYYDQ.mjs');
2092
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
2093
2093
  const { address, abi } = this.config.host.requireProtocolViewer();
2094
2094
  if (inputCount >= 2) {
2095
2095
  const readAndFilter = async (raw2) => {
@@ -2160,7 +2160,7 @@ var ProtocolViewerReader = class {
2160
2160
  if (protocolViewerEntries.length === 0) {
2161
2161
  throw new Error("ProtocolViewer not available for this network");
2162
2162
  }
2163
- const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-EXBJYYDQ.mjs');
2163
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
2164
2164
  const intentsByHash = /* @__PURE__ */ new Map();
2165
2165
  let attemptedRead = false;
2166
2166
  let hadSuccessfulRead = false;
@@ -2268,7 +2268,7 @@ var ProtocolViewerReader = class {
2268
2268
  if (protocolViewerEntries.length === 0) {
2269
2269
  throw new Error("ProtocolViewer not available for this network");
2270
2270
  }
2271
- const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-EXBJYYDQ.mjs');
2271
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
2272
2272
  let lastError;
2273
2273
  for (const pvEntry of protocolViewerEntries) {
2274
2274
  const inputCount = this.pvEntryFunctionInputCount(pvEntry, "getIntent");