@zkp2p/sdk 0.0.1 → 0.0.2
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 +18 -18
- package/dist/{Zkp2pClient-CODjD_Kf.d.mts → Zkp2pClient-DcNWTyeG.d.mts} +5 -5
- package/dist/{Zkp2pClient-CODjD_Kf.d.ts → Zkp2pClient-DcNWTyeG.d.ts} +5 -5
- package/dist/{chunk-PBBMWRNE.mjs → chunk-BEZUO5YY.mjs} +2 -2
- package/dist/chunk-BEZUO5YY.mjs.map +1 -0
- package/dist/{chunk-M6S5FL2X.mjs → chunk-GDKCACWH.mjs} +2 -2
- package/dist/{chunk-M6S5FL2X.mjs.map → chunk-GDKCACWH.mjs.map} +1 -1
- package/dist/{chunk-O7DHVBCL.mjs → chunk-KLSZK5TR.mjs} +4 -4
- package/dist/{chunk-O7DHVBCL.mjs.map → chunk-KLSZK5TR.mjs.map} +1 -1
- package/dist/{chunk-JLEW4EOG.mjs → chunk-P3NOBRQB.mjs} +2 -2
- package/dist/{chunk-JLEW4EOG.mjs.map → chunk-P3NOBRQB.mjs.map} +1 -1
- package/dist/constants-CFOT2I4R.mjs +4 -0
- package/dist/{constants-DMJE2ALO.mjs.map → constants-CFOT2I4R.mjs.map} +1 -1
- package/dist/{currency-ULYH5HL2.mjs → currency-JIMAHIGJ.mjs} +3 -3
- package/dist/{currency-ULYH5HL2.mjs.map → currency-JIMAHIGJ.mjs.map} +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +18 -18
- package/dist/index.mjs.map +1 -1
- package/dist/paymentResolution-4AAJVIIC.mjs +3 -0
- package/dist/{paymentResolution-S6GZR3OY.mjs.map → paymentResolution-4AAJVIIC.mjs.map} +1 -1
- package/dist/protocolViewerParsers-OYF64AE4.mjs +5 -0
- package/dist/{protocolViewerParsers-DTJLHUCH.mjs.map → protocolViewerParsers-OYF64AE4.mjs.map} +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-PBBMWRNE.mjs.map +0 -1
- package/dist/constants-DMJE2ALO.mjs +0 -4
- package/dist/paymentResolution-S6GZR3OY.mjs +0 -3
- package/dist/protocolViewerParsers-DTJLHUCH.mjs +0 -5
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 GetTakerTierRequest, e as GetTakerTierResponse, f as PaymentMethodCatalog, T as TxOverrides } from './Zkp2pClient-
|
|
2
|
-
export { A as ActionCallback, t as ApiDeposit, H as ApiIntentStatus, k as CancelIntentParams, i as CreateDepositConversionRate, C as CreateDepositParams, aq as Currency, ay as CurrencyData, ax as CurrencyType, aI as Deposit, aK as DepositCurrency, a1 as DepositIntentStatistics, w as DepositStatus, u as DepositVerifier, v as DepositVerifierCurrency, $ as DepositVerifierData, aH as DepositView, q as FiatResponse, F as FulfillIntentParams, z as GetDepositByIdRequest, B as GetDepositByIdResponse, O as GetIntentByHashRequest, U as GetIntentByHashResponse, L as GetIntentsByDepositRequest, M as GetIntentsByDepositResponse, x as GetOwnerDepositsRequest, y as GetOwnerDepositsResponse, J as GetOwnerIntentsRequest, K as GetOwnerIntentsResponse, a7 as IndexerClient, ak as IndexerDeploymentEnv, ab as IndexerDeposit, ag as IndexerDepositFilter, aj as IndexerDepositOrderDirection, ai as IndexerDepositOrderField, ah as IndexerDepositPagination, ad as IndexerDepositPaymentMethod, a9 as IndexerDepositService, an as IndexerFulfillmentAndPaymentResponse, al as IndexerFulfillmentRecord, ac as IndexerIntentFulfilled, af as IndexerIntentStatus, ae as IndexerMethodCurrency, am as IndexerPaymentVerifiedRecord, E as Intent, aL as IntentView, N as NearbyQuote, s as NearbySuggestions, Z as OfframpClient, _ as OnchainCurrency, aM as OnchainIntent, a0 as OrderStats, ao as PAYMENT_PLATFORMS, aJ as PaymentMethodData, ap as PaymentPlatformType, a5 as PlatformLimit, a6 as PlatformRiskLevel, p as QuoteFeesResponse, o as QuoteIntentResponse, Q as QuoteRequest, l as QuoteResponse, m as QuoteResponseObject, n as QuoteSingleResponse, R as Range, X as RegisterPayeeDetailsRequest, Y as RegisterPayeeDetailsResponse, j as ReleaseFundsToPayerParams, aC as RuntimeEnv, S as SignalIntentParams, a2 as TakerTier, a4 as TakerTierLevel, a3 as TakerTierStats, h as TimeoutConfig, r as TokenResponse, W as WithdrawDepositParams, Z as Zkp2pClient, g as Zkp2pClientOptions, ar as currencyInfo, a8 as defaultIndexerEndpoint, aF as enrichPvDepositView, aG as enrichPvIntentView, aa as fetchIndexerFulfillmentAndPayment, az as getContracts, au as getCurrencyCodeFromHash, at as getCurrencyInfoFromCountryCode, as as getCurrencyInfoFromHash, aB as getGatingServiceAddress, aA as getPaymentMethodsCatalog, av as isSupportedCurrencyHash, aw as mapConversionRatesToOnchainMinRate, aD as parseDepositView, aE as parseIntentView } from './Zkp2pClient-
|
|
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 GetTakerTierRequest, e as GetTakerTierResponse, f as PaymentMethodCatalog, T as TxOverrides } from './Zkp2pClient-DcNWTyeG.mjs';
|
|
2
|
+
export { A as ActionCallback, t as ApiDeposit, H as ApiIntentStatus, k as CancelIntentParams, i as CreateDepositConversionRate, C as CreateDepositParams, aq as Currency, ay as CurrencyData, ax as CurrencyType, aI as Deposit, aK as DepositCurrency, a1 as DepositIntentStatistics, w as DepositStatus, u as DepositVerifier, v as DepositVerifierCurrency, $ as DepositVerifierData, aH as DepositView, q as FiatResponse, F as FulfillIntentParams, z as GetDepositByIdRequest, B as GetDepositByIdResponse, O as GetIntentByHashRequest, U as GetIntentByHashResponse, L as GetIntentsByDepositRequest, M as GetIntentsByDepositResponse, x as GetOwnerDepositsRequest, y as GetOwnerDepositsResponse, J as GetOwnerIntentsRequest, K as GetOwnerIntentsResponse, a7 as IndexerClient, ak as IndexerDeploymentEnv, ab as IndexerDeposit, ag as IndexerDepositFilter, aj as IndexerDepositOrderDirection, ai as IndexerDepositOrderField, ah as IndexerDepositPagination, ad as IndexerDepositPaymentMethod, a9 as IndexerDepositService, an as IndexerFulfillmentAndPaymentResponse, al as IndexerFulfillmentRecord, ac as IndexerIntentFulfilled, af as IndexerIntentStatus, ae as IndexerMethodCurrency, am as IndexerPaymentVerifiedRecord, E as Intent, aL as IntentView, N as NearbyQuote, s as NearbySuggestions, Z as OfframpClient, _ as OnchainCurrency, aM as OnchainIntent, a0 as OrderStats, ao as PAYMENT_PLATFORMS, aJ as PaymentMethodData, ap as PaymentPlatformType, a5 as PlatformLimit, a6 as PlatformRiskLevel, p as QuoteFeesResponse, o as QuoteIntentResponse, Q as QuoteRequest, l as QuoteResponse, m as QuoteResponseObject, n as QuoteSingleResponse, R as Range, X as RegisterPayeeDetailsRequest, Y as RegisterPayeeDetailsResponse, j as ReleaseFundsToPayerParams, aC as RuntimeEnv, S as SignalIntentParams, a2 as TakerTier, a4 as TakerTierLevel, a3 as TakerTierStats, h as TimeoutConfig, r as TokenResponse, W as WithdrawDepositParams, Z as Zkp2pClient, g as Zkp2pClientOptions, ar as currencyInfo, a8 as defaultIndexerEndpoint, aF as enrichPvDepositView, aG as enrichPvIntentView, aa as fetchIndexerFulfillmentAndPayment, az as getContracts, au as getCurrencyCodeFromHash, at as getCurrencyInfoFromCountryCode, as as getCurrencyInfoFromHash, aB as getGatingServiceAddress, aA as getPaymentMethodsCatalog, av as isSupportedCurrencyHash, aw as mapConversionRatesToOnchainMinRate, aD as parseDepositView, aE as parseIntentView } from './Zkp2pClient-DcNWTyeG.mjs';
|
|
3
3
|
import { Abi } from 'abitype';
|
|
4
4
|
import { Hex, WalletClient, Hash } from 'viem';
|
|
5
5
|
|
|
@@ -90,7 +90,7 @@ declare function apiGetTakerTier(req: GetTakerTierRequest, apiKey: string | unde
|
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
92
|
* ```typescript
|
|
93
|
-
* import { SUPPORTED_CHAIN_IDS } from '@zkp2p/
|
|
93
|
+
* import { SUPPORTED_CHAIN_IDS } from '@zkp2p/sdk';
|
|
94
94
|
*
|
|
95
95
|
* const client = new Zkp2pClient({
|
|
96
96
|
* chainId: SUPPORTED_CHAIN_IDS.BASE_MAINNET,
|
|
@@ -243,7 +243,7 @@ declare function resolveFiatCurrencyBytes32(codeOrBytes: string): `0x${string}`;
|
|
|
243
243
|
*
|
|
244
244
|
* @example
|
|
245
245
|
* ```typescript
|
|
246
|
-
* import { getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog } from '@zkp2p/
|
|
246
|
+
* import { getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog } from '@zkp2p/sdk';
|
|
247
247
|
*
|
|
248
248
|
* const catalog = getPaymentMethodsCatalog(8453, 'production');
|
|
249
249
|
* const hash = resolvePaymentMethodHashFromCatalog('wise', catalog);
|
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 GetTakerTierRequest, e as GetTakerTierResponse, f as PaymentMethodCatalog, T as TxOverrides } from './Zkp2pClient-
|
|
2
|
-
export { A as ActionCallback, t as ApiDeposit, H as ApiIntentStatus, k as CancelIntentParams, i as CreateDepositConversionRate, C as CreateDepositParams, aq as Currency, ay as CurrencyData, ax as CurrencyType, aI as Deposit, aK as DepositCurrency, a1 as DepositIntentStatistics, w as DepositStatus, u as DepositVerifier, v as DepositVerifierCurrency, $ as DepositVerifierData, aH as DepositView, q as FiatResponse, F as FulfillIntentParams, z as GetDepositByIdRequest, B as GetDepositByIdResponse, O as GetIntentByHashRequest, U as GetIntentByHashResponse, L as GetIntentsByDepositRequest, M as GetIntentsByDepositResponse, x as GetOwnerDepositsRequest, y as GetOwnerDepositsResponse, J as GetOwnerIntentsRequest, K as GetOwnerIntentsResponse, a7 as IndexerClient, ak as IndexerDeploymentEnv, ab as IndexerDeposit, ag as IndexerDepositFilter, aj as IndexerDepositOrderDirection, ai as IndexerDepositOrderField, ah as IndexerDepositPagination, ad as IndexerDepositPaymentMethod, a9 as IndexerDepositService, an as IndexerFulfillmentAndPaymentResponse, al as IndexerFulfillmentRecord, ac as IndexerIntentFulfilled, af as IndexerIntentStatus, ae as IndexerMethodCurrency, am as IndexerPaymentVerifiedRecord, E as Intent, aL as IntentView, N as NearbyQuote, s as NearbySuggestions, Z as OfframpClient, _ as OnchainCurrency, aM as OnchainIntent, a0 as OrderStats, ao as PAYMENT_PLATFORMS, aJ as PaymentMethodData, ap as PaymentPlatformType, a5 as PlatformLimit, a6 as PlatformRiskLevel, p as QuoteFeesResponse, o as QuoteIntentResponse, Q as QuoteRequest, l as QuoteResponse, m as QuoteResponseObject, n as QuoteSingleResponse, R as Range, X as RegisterPayeeDetailsRequest, Y as RegisterPayeeDetailsResponse, j as ReleaseFundsToPayerParams, aC as RuntimeEnv, S as SignalIntentParams, a2 as TakerTier, a4 as TakerTierLevel, a3 as TakerTierStats, h as TimeoutConfig, r as TokenResponse, W as WithdrawDepositParams, Z as Zkp2pClient, g as Zkp2pClientOptions, ar as currencyInfo, a8 as defaultIndexerEndpoint, aF as enrichPvDepositView, aG as enrichPvIntentView, aa as fetchIndexerFulfillmentAndPayment, az as getContracts, au as getCurrencyCodeFromHash, at as getCurrencyInfoFromCountryCode, as as getCurrencyInfoFromHash, aB as getGatingServiceAddress, aA as getPaymentMethodsCatalog, av as isSupportedCurrencyHash, aw as mapConversionRatesToOnchainMinRate, aD as parseDepositView, aE as parseIntentView } from './Zkp2pClient-
|
|
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 GetTakerTierRequest, e as GetTakerTierResponse, f as PaymentMethodCatalog, T as TxOverrides } from './Zkp2pClient-DcNWTyeG.js';
|
|
2
|
+
export { A as ActionCallback, t as ApiDeposit, H as ApiIntentStatus, k as CancelIntentParams, i as CreateDepositConversionRate, C as CreateDepositParams, aq as Currency, ay as CurrencyData, ax as CurrencyType, aI as Deposit, aK as DepositCurrency, a1 as DepositIntentStatistics, w as DepositStatus, u as DepositVerifier, v as DepositVerifierCurrency, $ as DepositVerifierData, aH as DepositView, q as FiatResponse, F as FulfillIntentParams, z as GetDepositByIdRequest, B as GetDepositByIdResponse, O as GetIntentByHashRequest, U as GetIntentByHashResponse, L as GetIntentsByDepositRequest, M as GetIntentsByDepositResponse, x as GetOwnerDepositsRequest, y as GetOwnerDepositsResponse, J as GetOwnerIntentsRequest, K as GetOwnerIntentsResponse, a7 as IndexerClient, ak as IndexerDeploymentEnv, ab as IndexerDeposit, ag as IndexerDepositFilter, aj as IndexerDepositOrderDirection, ai as IndexerDepositOrderField, ah as IndexerDepositPagination, ad as IndexerDepositPaymentMethod, a9 as IndexerDepositService, an as IndexerFulfillmentAndPaymentResponse, al as IndexerFulfillmentRecord, ac as IndexerIntentFulfilled, af as IndexerIntentStatus, ae as IndexerMethodCurrency, am as IndexerPaymentVerifiedRecord, E as Intent, aL as IntentView, N as NearbyQuote, s as NearbySuggestions, Z as OfframpClient, _ as OnchainCurrency, aM as OnchainIntent, a0 as OrderStats, ao as PAYMENT_PLATFORMS, aJ as PaymentMethodData, ap as PaymentPlatformType, a5 as PlatformLimit, a6 as PlatformRiskLevel, p as QuoteFeesResponse, o as QuoteIntentResponse, Q as QuoteRequest, l as QuoteResponse, m as QuoteResponseObject, n as QuoteSingleResponse, R as Range, X as RegisterPayeeDetailsRequest, Y as RegisterPayeeDetailsResponse, j as ReleaseFundsToPayerParams, aC as RuntimeEnv, S as SignalIntentParams, a2 as TakerTier, a4 as TakerTierLevel, a3 as TakerTierStats, h as TimeoutConfig, r as TokenResponse, W as WithdrawDepositParams, Z as Zkp2pClient, g as Zkp2pClientOptions, ar as currencyInfo, a8 as defaultIndexerEndpoint, aF as enrichPvDepositView, aG as enrichPvIntentView, aa as fetchIndexerFulfillmentAndPayment, az as getContracts, au as getCurrencyCodeFromHash, at as getCurrencyInfoFromCountryCode, as as getCurrencyInfoFromHash, aB as getGatingServiceAddress, aA as getPaymentMethodsCatalog, av as isSupportedCurrencyHash, aw as mapConversionRatesToOnchainMinRate, aD as parseDepositView, aE as parseIntentView } from './Zkp2pClient-DcNWTyeG.js';
|
|
3
3
|
import { Abi } from 'abitype';
|
|
4
4
|
import { Hex, WalletClient, Hash } from 'viem';
|
|
5
5
|
|
|
@@ -90,7 +90,7 @@ declare function apiGetTakerTier(req: GetTakerTierRequest, apiKey: string | unde
|
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
92
|
* ```typescript
|
|
93
|
-
* import { SUPPORTED_CHAIN_IDS } from '@zkp2p/
|
|
93
|
+
* import { SUPPORTED_CHAIN_IDS } from '@zkp2p/sdk';
|
|
94
94
|
*
|
|
95
95
|
* const client = new Zkp2pClient({
|
|
96
96
|
* chainId: SUPPORTED_CHAIN_IDS.BASE_MAINNET,
|
|
@@ -243,7 +243,7 @@ declare function resolveFiatCurrencyBytes32(codeOrBytes: string): `0x${string}`;
|
|
|
243
243
|
*
|
|
244
244
|
* @example
|
|
245
245
|
* ```typescript
|
|
246
|
-
* import { getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog } from '@zkp2p/
|
|
246
|
+
* import { getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog } from '@zkp2p/sdk';
|
|
247
247
|
*
|
|
248
248
|
* const catalog = getPaymentMethodsCatalog(8453, 'production');
|
|
249
249
|
* const hash = resolvePaymentMethodHashFromCatalog('wise', catalog);
|
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
|
-
export { PAYMENT_PLATFORMS, PLATFORM_METADATA, SUPPORTED_CHAIN_IDS, TOKEN_METADATA } from './chunk-
|
|
4
|
-
import { getContracts, getPaymentMethodsCatalog, getGatingServiceAddress } from './chunk-
|
|
5
|
-
export { enrichPvDepositView, enrichPvIntentView, getContracts, getGatingServiceAddress, getPaymentMethodsCatalog, parseDepositView, parseIntentView } from './chunk-
|
|
6
|
-
import { resolvePaymentMethodHashFromCatalog, resolveFiatCurrencyBytes32 } from './chunk-
|
|
7
|
-
export { asciiToBytes32, ensureBytes32, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-
|
|
8
|
-
import { currencyKeccak256 } from './chunk-
|
|
9
|
-
export { Currency, currencyInfo, getCurrencyCodeFromHash, getCurrencyInfoFromCountryCode, getCurrencyInfoFromHash, isSupportedCurrencyHash, mapConversionRatesToOnchainMinRate } from './chunk-
|
|
3
|
+
export { PAYMENT_PLATFORMS, PLATFORM_METADATA, SUPPORTED_CHAIN_IDS, TOKEN_METADATA } from './chunk-P3NOBRQB.mjs';
|
|
4
|
+
import { getContracts, getPaymentMethodsCatalog, getGatingServiceAddress } from './chunk-KLSZK5TR.mjs';
|
|
5
|
+
export { enrichPvDepositView, enrichPvIntentView, getContracts, getGatingServiceAddress, getPaymentMethodsCatalog, parseDepositView, parseIntentView } from './chunk-KLSZK5TR.mjs';
|
|
6
|
+
import { resolvePaymentMethodHashFromCatalog, resolveFiatCurrencyBytes32 } from './chunk-GDKCACWH.mjs';
|
|
7
|
+
export { asciiToBytes32, ensureBytes32, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-GDKCACWH.mjs';
|
|
8
|
+
import { currencyKeccak256 } from './chunk-BEZUO5YY.mjs';
|
|
9
|
+
export { Currency, currencyInfo, getCurrencyCodeFromHash, getCurrencyInfoFromCountryCode, getCurrencyInfoFromHash, isSupportedCurrencyHash, mapConversionRatesToOnchainMinRate } from './chunk-BEZUO5YY.mjs';
|
|
10
10
|
import { concatHex, encodeFunctionData, createPublicClient, http } from 'viem';
|
|
11
11
|
import { hardhat, baseSepolia, base } from 'viem/chains';
|
|
12
12
|
import { AbiCoder } from 'ethers';
|
|
@@ -1335,7 +1335,7 @@ var Zkp2pClient = class {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
1337
|
});
|
|
1338
|
-
const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-
|
|
1338
|
+
const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-JIMAHIGJ.mjs');
|
|
1339
1339
|
const normalized = params.conversionRates.map((group) => group.map((r) => ({ currency: r.currency, conversionRate: r.conversionRate })));
|
|
1340
1340
|
const currencies = mapConversionRatesToOnchainMinRate2(normalized, paymentMethods.length);
|
|
1341
1341
|
const args = [{
|
|
@@ -1814,10 +1814,10 @@ var Zkp2pClient = class {
|
|
|
1814
1814
|
const paymentMethodHash = inputs.paymentMethodHash || "0x";
|
|
1815
1815
|
const timestampBufferMs = params.timestampBufferMs ?? "300000";
|
|
1816
1816
|
const catalog = getPaymentMethodsCatalog(this.chainId, this.runtimeEnv);
|
|
1817
|
-
const { resolvePaymentMethodNameFromHash: resolvePaymentMethodNameFromHash2 } = await import('./paymentResolution-
|
|
1817
|
+
const { resolvePaymentMethodNameFromHash: resolvePaymentMethodNameFromHash2 } = await import('./paymentResolution-4AAJVIIC.mjs');
|
|
1818
1818
|
const platformName = resolvePaymentMethodNameFromHash2(paymentMethodHash, catalog);
|
|
1819
1819
|
if (!platformName) throw new Error("Unknown paymentMethodHash for this network/env; update SDK catalogs.");
|
|
1820
|
-
const { resolvePlatformAttestationConfig } = await import('./constants-
|
|
1820
|
+
const { resolvePlatformAttestationConfig } = await import('./constants-CFOT2I4R.mjs');
|
|
1821
1821
|
const cfg = resolvePlatformAttestationConfig(platformName);
|
|
1822
1822
|
const platform = cfg.actionPlatform;
|
|
1823
1823
|
const actionType = cfg.actionType;
|
|
@@ -1971,11 +1971,11 @@ var Zkp2pClient = class {
|
|
|
1971
1971
|
try {
|
|
1972
1972
|
const { address, abi } = this.requireProtocolViewer();
|
|
1973
1973
|
const raw = await this.publicClient.readContract({ address, abi, functionName: "getDeposit", args: [id] });
|
|
1974
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
1974
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-OYF64AE4.mjs');
|
|
1975
1975
|
return parseDepositView2(raw);
|
|
1976
1976
|
} catch (e) {
|
|
1977
1977
|
const raw = await this.publicClient.readContract({ address: this.escrowAddress, abi: this.escrowAbi, functionName: "getDeposit", args: [id] });
|
|
1978
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
1978
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-OYF64AE4.mjs');
|
|
1979
1979
|
return parseDepositView2(raw);
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
@@ -1987,7 +1987,7 @@ var Zkp2pClient = class {
|
|
|
1987
1987
|
*/
|
|
1988
1988
|
async getPvDepositsFromIds(ids) {
|
|
1989
1989
|
if (!this.protocolViewerAddress || !this.protocolViewerAbi) {
|
|
1990
|
-
const { parseDepositView: parseDepositView3 } = await import('./protocolViewerParsers-
|
|
1990
|
+
const { parseDepositView: parseDepositView3 } = await import('./protocolViewerParsers-OYF64AE4.mjs');
|
|
1991
1991
|
const results = [];
|
|
1992
1992
|
for (const id of ids) {
|
|
1993
1993
|
const raw2 = await this.publicClient.readContract({
|
|
@@ -2007,7 +2007,7 @@ var Zkp2pClient = class {
|
|
|
2007
2007
|
functionName: "getDepositFromIds",
|
|
2008
2008
|
args: [bn]
|
|
2009
2009
|
});
|
|
2010
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
2010
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-OYF64AE4.mjs');
|
|
2011
2011
|
return raw.map(parseDepositView2);
|
|
2012
2012
|
}
|
|
2013
2013
|
/**
|
|
@@ -2020,11 +2020,11 @@ var Zkp2pClient = class {
|
|
|
2020
2020
|
try {
|
|
2021
2021
|
const { address, abi } = this.requireProtocolViewer();
|
|
2022
2022
|
const raw = await this.publicClient.readContract({ address, abi, functionName: "getAccountDeposits", args: [owner] });
|
|
2023
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
2023
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-OYF64AE4.mjs');
|
|
2024
2024
|
return raw.map(parseDepositView2);
|
|
2025
2025
|
} catch (e) {
|
|
2026
2026
|
const raw = await this.publicClient.readContract({ address: this.escrowAddress, abi: this.escrowAbi, functionName: "getAccountDeposits", args: [owner] });
|
|
2027
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
2027
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-OYF64AE4.mjs');
|
|
2028
2028
|
return raw.map(parseDepositView2);
|
|
2029
2029
|
}
|
|
2030
2030
|
}
|
|
@@ -2043,7 +2043,7 @@ var Zkp2pClient = class {
|
|
|
2043
2043
|
functionName: "getAccountIntents",
|
|
2044
2044
|
args: [owner]
|
|
2045
2045
|
});
|
|
2046
|
-
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-
|
|
2046
|
+
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-OYF64AE4.mjs');
|
|
2047
2047
|
return raw.map(parseIntentView2);
|
|
2048
2048
|
}
|
|
2049
2049
|
/**
|
|
@@ -2060,7 +2060,7 @@ var Zkp2pClient = class {
|
|
|
2060
2060
|
functionName: "getIntent",
|
|
2061
2061
|
args: [intentHash]
|
|
2062
2062
|
});
|
|
2063
|
-
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-
|
|
2063
|
+
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-OYF64AE4.mjs');
|
|
2064
2064
|
return parseIntentView2(raw);
|
|
2065
2065
|
}
|
|
2066
2066
|
// ╔═══════════════════════════════════════════════════════════════════════════╗
|