@zkp2p/sdk 0.5.5 → 0.5.6
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/{chunk-NKTSEXJB.mjs → chunk-NMIFJSZ3.mjs} +101 -129
- package/dist/{chunk-NKTSEXJB.mjs.map → chunk-NMIFJSZ3.mjs.map} +1 -1
- package/dist/index.cjs +167 -195
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-N5SJ4KHJ.mjs +5 -0
- package/dist/{protocolViewerParsers-3JGPLQGP.mjs.map → protocolViewerParsers-N5SJ4KHJ.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/protocolViewerParsers-3JGPLQGP.mjs +0 -5
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { TAKER_TIER_CAPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, ZERO_RATE_MANAGER_ID, classifyDelegationState, getDelegationRoute, getNextTakerTier, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-TGMRXUP2.mjs';
|
|
2
2
|
import { APIError, NetworkError, ValidationError } from './chunk-GHQK65J2.mjs';
|
|
3
3
|
export { APIError, ContractError, ErrorCode, NetworkError, ValidationError, ZKP2PError } from './chunk-GHQK65J2.mjs';
|
|
4
|
-
import { getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash } from './chunk-
|
|
5
|
-
export { asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getGatingServiceAddress, getPaymentMethodsCatalog, getRateManagerContracts, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-
|
|
4
|
+
import { getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash } from './chunk-NMIFJSZ3.mjs';
|
|
5
|
+
export { asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getGatingServiceAddress, getPaymentMethodsCatalog, getRateManagerContracts, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-NMIFJSZ3.mjs';
|
|
6
6
|
import { Currency, currencyKeccak256 } from './chunk-ZFBH4HD7.mjs';
|
|
7
7
|
export { Currency, currencyInfo, getCurrencyCodeFromHash, getCurrencyInfoFromCountryCode, getCurrencyInfoFromHash, isSupportedCurrencyHash, mapConversionRatesToOnchainMinRate } from './chunk-ZFBH4HD7.mjs';
|
|
8
8
|
import './chunk-J5LGTIGS.mjs';
|
|
@@ -716,7 +716,7 @@ var PAYMENT_PLATFORMS = [
|
|
|
716
716
|
// src/utils/constants.ts
|
|
717
717
|
var DEFAULT_BASE_API_URL = "https://api.zkp2p.xyz";
|
|
718
718
|
|
|
719
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.2.
|
|
719
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.2.4_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
|
|
720
720
|
var chainlink_default = {
|
|
721
721
|
feeds: [
|
|
722
722
|
{
|
|
@@ -1820,7 +1820,7 @@ var ProtocolViewerReader = class {
|
|
|
1820
1820
|
if (inputCount === null) {
|
|
1821
1821
|
throw new Error("Configured ProtocolViewer ABI does not expose getDeposit");
|
|
1822
1822
|
}
|
|
1823
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
1823
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-N5SJ4KHJ.mjs');
|
|
1824
1824
|
if (inputCount >= 3) {
|
|
1825
1825
|
return tryContexts(
|
|
1826
1826
|
protocolViewerContexts,
|
|
@@ -1899,7 +1899,7 @@ var ProtocolViewerReader = class {
|
|
|
1899
1899
|
return Promise.all(ids.map((id) => this.config.host.getPvDepositById(id)));
|
|
1900
1900
|
}
|
|
1901
1901
|
const bn = ids.map((id) => typeof id === "bigint" ? id : parseRawDepositId(id));
|
|
1902
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
1902
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-N5SJ4KHJ.mjs');
|
|
1903
1903
|
if (inputCount >= 2) {
|
|
1904
1904
|
const requests = ids.map((id, index) => ({
|
|
1905
1905
|
index,
|
|
@@ -2004,7 +2004,7 @@ var ProtocolViewerReader = class {
|
|
|
2004
2004
|
if (!protocolViewerAddress || !protocolViewerAbi || inputCount === null) {
|
|
2005
2005
|
return this.config.host.getPvAccountDepositsFromIndexer(owner);
|
|
2006
2006
|
}
|
|
2007
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
2007
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-N5SJ4KHJ.mjs');
|
|
2008
2008
|
const { address, abi } = this.config.host.requireProtocolViewer();
|
|
2009
2009
|
if (inputCount >= 2) {
|
|
2010
2010
|
const readAndFilter = async (raw2) => {
|
|
@@ -2075,7 +2075,7 @@ var ProtocolViewerReader = class {
|
|
|
2075
2075
|
if (protocolViewerEntries.length === 0) {
|
|
2076
2076
|
throw new Error("ProtocolViewer not available for this network");
|
|
2077
2077
|
}
|
|
2078
|
-
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-
|
|
2078
|
+
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-N5SJ4KHJ.mjs');
|
|
2079
2079
|
const intentsByHash = /* @__PURE__ */ new Map();
|
|
2080
2080
|
let attemptedRead = false;
|
|
2081
2081
|
let hadSuccessfulRead = false;
|
|
@@ -2183,7 +2183,7 @@ var ProtocolViewerReader = class {
|
|
|
2183
2183
|
if (protocolViewerEntries.length === 0) {
|
|
2184
2184
|
throw new Error("ProtocolViewer not available for this network");
|
|
2185
2185
|
}
|
|
2186
|
-
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-
|
|
2186
|
+
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-N5SJ4KHJ.mjs');
|
|
2187
2187
|
let lastError;
|
|
2188
2188
|
for (const pvEntry of protocolViewerEntries) {
|
|
2189
2189
|
const inputCount = this.pvEntryFunctionInputCount(pvEntry, "getIntent");
|