@zkp2p/sdk 0.11.0-rc.6 → 0.11.1
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 +16 -9
- package/dist/{chunk-R4MPJTU7.mjs → chunk-LPKFXAKY.mjs} +91 -91
- package/dist/{chunk-R4MPJTU7.mjs.map → chunk-LPKFXAKY.mjs.map} +1 -1
- package/dist/index.cjs +180 -179
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +11 -10
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-M7C2ICV3.mjs +5 -0
- package/dist/{protocolViewerParsers-EXBJYYDQ.mjs.map → protocolViewerParsers-M7C2ICV3.mjs.map} +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{vaultUtils-DmGhwFto.d.mts → vaultUtils-CbfjrxgD.d.mts} +1 -1
- package/dist/{vaultUtils-DmGhwFto.d.ts → vaultUtils-CbfjrxgD.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/protocolViewerParsers-EXBJYYDQ.mjs +0 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-
|
|
2
|
-
export { d8 as AccessPolicyDiff, d0 as AccessPolicyOperations, d9 as AccessPolicyOrdering, da as AccessPolicyPlan, db as AccessPolicyPlanStep, dc as AccessPolicyState, d1 as AccessPolicyUnsupportedError, dd as AccessPolicyViolation, ae as ActionCallback, aI as ApiDeposit, aP as ApiIntentStatus, bn as AttestationServiceSellerCredentialProbeResponse, ac as AuthorizationTokenProvider, cZ as BatchResult, ap as BestByPlatformResponseObject, bo as BuyerTeePaymentParams, bp as BuyerTeePaymentProofInput, bq as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, ao as CancelIntentParams, b5 as CashAppCredentialUploadInput, a_ as CashAppSessionMaterial, ai as CreateDepositConversionRate, ah as CreateDepositParams, br as CuratorSellerCredentialStatusResponse, bs as CuratorSellerVerifyResponse, cq as Currency, cx as CurrencyData, cY as DelegationDepositTarget, cW as DelegationRoute, cX as DelegationState, cK as Deposit, cM as DepositCurrency, bL as DepositIntentStatistics, aL as DepositStatus, aJ as DepositVerifier, aK as DepositVerifierCurrency, bI as DepositVerifierData, cJ as DepositView, aE as FiatResponse, bm as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, am as FulfillIntentParams, aq as GetBestByPlatformResponse, ar as GetBestByPlatformResponseObject, aM as GetDepositByIdRequest, aN as GetDepositByIdResponse, aU as GetIntentByHashRequest, aV as GetIntentByHashResponse, aS as GetIntentsByDepositRequest, aT as GetIntentsByDepositResponse, av as GetNearbyQuote, aw as GetNearbySuggestions, aQ as GetOwnerIntentsRequest, aR as GetOwnerIntentsResponse, as as GetPlatformQuote, ax as GetQuoteResponse, ay as GetQuoteResponseObject, az as GetQuoteSingleResponse, bx as GetSellerCredentialStatusParams, bB as IdentityAttestationActionType, bC as IdentityAttestationOutput, bD as IdentityAttestationOutputFor, bE as IdentityAttestationParams, bO as IndexerClient, ck as IndexerDeploymentEnv, bU as IndexerDeposit, c9 as IndexerDepositDailySnapshot, cb as IndexerDepositFilter, c8 as IndexerDepositFundActivity, ca as IndexerDepositFundActivityType, ce as IndexerDepositOrderDirection, cd as IndexerDepositOrderField, cc as IndexerDepositPagination, bX as IndexerDepositPaymentMethod, bQ as IndexerDepositService, cn as IndexerFulfillmentAndPaymentResponse, cl as IndexerFulfillmentRecord, bV as IndexerIntentFulfilled, bW as IndexerIntentFulfillmentAmounts, bZ as IndexerIntentStatus, c1 as IndexerManagerAggregateStats, c3 as IndexerManagerDailySnapshot, c2 as IndexerManagerStats, c6 as IndexerManualRateUpdate, bY as IndexerMethodCurrency, c7 as IndexerOracleConfigUpdate, cm as IndexerPaymentVerifiedRecord, b_ as IndexerRateManager, c0 as IndexerRateManagerDelegation, ch as IndexerRateManagerDelegationPagination, c5 as IndexerRateManagerDetail, cf as IndexerRateManagerFilter, c4 as IndexerRateManagerListItem, cj as IndexerRateManagerOrderDirection, ci as IndexerRateManagerOrderField, cg as IndexerRateManagerPagination, b$ as IndexerRateManagerRate, bR as IndexerRateManagerService, aO as Intent, aa as IntentGuardianErrorCode, a6 as IntentGuardianPolicy, a7 as IntentGuardianQuote, a8 as IntentGuardianWriteFunction, a9 as IntentGuardianWriteParams, cO as IntentView, d3 as MAX_ADDRESSES_PER_CALL, d2 as MAX_GROUPS_PER_DEPOSIT, d4 as MAX_WHITELISTED_ADDRESSES, bF as MakerIdentityAttestationRequestBody, bG as MakerIdentityPlatform, aG as NearbyQuote, aH as NearbySuggestions, Z as OfframpClient, bH as OnchainCurrency, cP as OnchainIntent, bK as OrderStats, bM as OrderbookEntry, bN as OrderbookTableRow, co as PAYMENT_PLATFORMS, b3 as PayPalGoogleOAuthSellerCredentialUploadBody, cL as PaymentMethodData, cp as PaymentPlatformType, at as PlatformQuote, bJ as PreparedTransaction, aD as QuoteFeesResponse, aC as QuoteIntentResponse, au as QuotePreference, aA as QuoteResponseObject, aB as QuoteSingleResponse, aj as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, cN as ReferralFee, Y as ReferralReadOptions, af as ReferralRedemption, ag as ReferralSignatureBody, _ as ReferralSignatureOptions, aW as RegisterPayeeDetailsRequest, aX as RegisterPayeeDetailsResponse, bt as RegisteredSellerCredentialPlatform, bv as RegisteredUploadSellerCredentialParams, an as ReleaseFundsToPayerParams, cE as RuntimeEnv, bk as SellerAttestationOutput, b8 as SellerCiphertextBundle, bd as SellerCredentialBundleUpload, bl as SellerCredentialProbeResponse, bf as SellerCredentialStatus, be as SellerCredentialStatusValue, b7 as SellerCredentialUploadInputByPlatform, bj as SellerPaymentTypedDataValue, aY as SellerPlatform, bc as SellerProbeInput, b9 as SellerSignedCiphertextBundle, bh as SellerTypedDataField, bi as SellerTypedDataSpec, bb as SellerVerifyInput, ba as SellerVerifyIntentDetails, bg as SellerVerifyProxyBody, c$ as SendBatchFn, c_ as SendTransactionFn, a1 as SignalIntentMethodParams, al as SignalIntentParams, a0 as SignalIntentReferralFee, ad as TimeoutConfig, aF as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bz as UploadGoogleOAuthSellerCredentialParams, by as UploadPayPalGoogleOAuthSellerCredentialParams, bw as UploadSellerCredentialOptions, bu as UploadSellerCredentialParams, b4 as VenmoCredentialUploadInput, aZ as VenmoSessionMaterial, bA as VerifySellerPaymentParams, b6 as WiseCredentialUploadInput, b0 as WiseProfileInfo, b2 as WiseProfileNotFound, b1 as WiseProfileSelectionRequired, a$ as WiseSessionMaterial, ak as WithdrawDepositParams, cQ as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, cV as classifyDelegationState, ab as classifyIntentGuardianError, bS as compareEventCursorIdsByRecency, cr as currencyInfo, bP as defaultIndexerEndpoint, d5 as diffAccessPolicy, cH as enrichPvDepositView, cI as enrichPvIntentView, bT as fetchIndexerFulfillmentAndPayment, cy as getContracts, cu as getCurrencyCodeFromHash, ct as getCurrencyInfoFromCountryCode, cs as getCurrencyInfoFromHash, cU as getDelegationRoute, cD as getGatingServiceAddress, cz as getIntentGuardianContract, cC as getPaymentMethodsCatalog, cB as getRateManagerContracts, cA as hasIntentGuardian, cv as isSupportedCurrencyHash, cR as isZeroRateManagerId, cw as mapConversionRatesToOnchainMinRate, d6 as normalizeAccessPolicyState, cS as normalizeRateManagerId, cT as normalizeRegistry, cF as parseDepositView, cG as parseIntentView, d7 as planAccessPolicyUpdate } from './vaultUtils-
|
|
1
|
+
import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-CbfjrxgD.mjs';
|
|
2
|
+
export { d8 as AccessPolicyDiff, d0 as AccessPolicyOperations, d9 as AccessPolicyOrdering, da as AccessPolicyPlan, db as AccessPolicyPlanStep, dc as AccessPolicyState, d1 as AccessPolicyUnsupportedError, dd as AccessPolicyViolation, ae as ActionCallback, aI as ApiDeposit, aP as ApiIntentStatus, bn as AttestationServiceSellerCredentialProbeResponse, ac as AuthorizationTokenProvider, cZ as BatchResult, ap as BestByPlatformResponseObject, bo as BuyerTeePaymentParams, bp as BuyerTeePaymentProofInput, bq as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, ao as CancelIntentParams, b5 as CashAppCredentialUploadInput, a_ as CashAppSessionMaterial, ai as CreateDepositConversionRate, ah as CreateDepositParams, br as CuratorSellerCredentialStatusResponse, bs as CuratorSellerVerifyResponse, cq as Currency, cx as CurrencyData, cY as DelegationDepositTarget, cW as DelegationRoute, cX as DelegationState, cK as Deposit, cM as DepositCurrency, bL as DepositIntentStatistics, aL as DepositStatus, aJ as DepositVerifier, aK as DepositVerifierCurrency, bI as DepositVerifierData, cJ as DepositView, aE as FiatResponse, bm as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, am as FulfillIntentParams, aq as GetBestByPlatformResponse, ar as GetBestByPlatformResponseObject, aM as GetDepositByIdRequest, aN as GetDepositByIdResponse, aU as GetIntentByHashRequest, aV as GetIntentByHashResponse, aS as GetIntentsByDepositRequest, aT as GetIntentsByDepositResponse, av as GetNearbyQuote, aw as GetNearbySuggestions, aQ as GetOwnerIntentsRequest, aR as GetOwnerIntentsResponse, as as GetPlatformQuote, ax as GetQuoteResponse, ay as GetQuoteResponseObject, az as GetQuoteSingleResponse, bx as GetSellerCredentialStatusParams, bB as IdentityAttestationActionType, bC as IdentityAttestationOutput, bD as IdentityAttestationOutputFor, bE as IdentityAttestationParams, bO as IndexerClient, ck as IndexerDeploymentEnv, bU as IndexerDeposit, c9 as IndexerDepositDailySnapshot, cb as IndexerDepositFilter, c8 as IndexerDepositFundActivity, ca as IndexerDepositFundActivityType, ce as IndexerDepositOrderDirection, cd as IndexerDepositOrderField, cc as IndexerDepositPagination, bX as IndexerDepositPaymentMethod, bQ as IndexerDepositService, cn as IndexerFulfillmentAndPaymentResponse, cl as IndexerFulfillmentRecord, bV as IndexerIntentFulfilled, bW as IndexerIntentFulfillmentAmounts, bZ as IndexerIntentStatus, c1 as IndexerManagerAggregateStats, c3 as IndexerManagerDailySnapshot, c2 as IndexerManagerStats, c6 as IndexerManualRateUpdate, bY as IndexerMethodCurrency, c7 as IndexerOracleConfigUpdate, cm as IndexerPaymentVerifiedRecord, b_ as IndexerRateManager, c0 as IndexerRateManagerDelegation, ch as IndexerRateManagerDelegationPagination, c5 as IndexerRateManagerDetail, cf as IndexerRateManagerFilter, c4 as IndexerRateManagerListItem, cj as IndexerRateManagerOrderDirection, ci as IndexerRateManagerOrderField, cg as IndexerRateManagerPagination, b$ as IndexerRateManagerRate, bR as IndexerRateManagerService, aO as Intent, aa as IntentGuardianErrorCode, a6 as IntentGuardianPolicy, a7 as IntentGuardianQuote, a8 as IntentGuardianWriteFunction, a9 as IntentGuardianWriteParams, cO as IntentView, d3 as MAX_ADDRESSES_PER_CALL, d2 as MAX_GROUPS_PER_DEPOSIT, d4 as MAX_WHITELISTED_ADDRESSES, bF as MakerIdentityAttestationRequestBody, bG as MakerIdentityPlatform, aG as NearbyQuote, aH as NearbySuggestions, Z as OfframpClient, bH as OnchainCurrency, cP as OnchainIntent, bK as OrderStats, bM as OrderbookEntry, bN as OrderbookTableRow, co as PAYMENT_PLATFORMS, b3 as PayPalGoogleOAuthSellerCredentialUploadBody, cL as PaymentMethodData, cp as PaymentPlatformType, at as PlatformQuote, bJ as PreparedTransaction, aD as QuoteFeesResponse, aC as QuoteIntentResponse, au as QuotePreference, aA as QuoteResponseObject, aB as QuoteSingleResponse, aj as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, cN as ReferralFee, Y as ReferralReadOptions, af as ReferralRedemption, ag as ReferralSignatureBody, _ as ReferralSignatureOptions, aW as RegisterPayeeDetailsRequest, aX as RegisterPayeeDetailsResponse, bt as RegisteredSellerCredentialPlatform, bv as RegisteredUploadSellerCredentialParams, an as ReleaseFundsToPayerParams, cE as RuntimeEnv, bk as SellerAttestationOutput, b8 as SellerCiphertextBundle, bd as SellerCredentialBundleUpload, bl as SellerCredentialProbeResponse, bf as SellerCredentialStatus, be as SellerCredentialStatusValue, b7 as SellerCredentialUploadInputByPlatform, bj as SellerPaymentTypedDataValue, aY as SellerPlatform, bc as SellerProbeInput, b9 as SellerSignedCiphertextBundle, bh as SellerTypedDataField, bi as SellerTypedDataSpec, bb as SellerVerifyInput, ba as SellerVerifyIntentDetails, bg as SellerVerifyProxyBody, c$ as SendBatchFn, c_ as SendTransactionFn, a1 as SignalIntentMethodParams, al as SignalIntentParams, a0 as SignalIntentReferralFee, ad as TimeoutConfig, aF as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bz as UploadGoogleOAuthSellerCredentialParams, by as UploadPayPalGoogleOAuthSellerCredentialParams, bw as UploadSellerCredentialOptions, bu as UploadSellerCredentialParams, b4 as VenmoCredentialUploadInput, aZ as VenmoSessionMaterial, bA as VerifySellerPaymentParams, b6 as WiseCredentialUploadInput, b0 as WiseProfileInfo, b2 as WiseProfileNotFound, b1 as WiseProfileSelectionRequired, a$ as WiseSessionMaterial, ak as WithdrawDepositParams, cQ as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, cV as classifyDelegationState, ab as classifyIntentGuardianError, bS as compareEventCursorIdsByRecency, cr as currencyInfo, bP as defaultIndexerEndpoint, d5 as diffAccessPolicy, cH as enrichPvDepositView, cI as enrichPvIntentView, bT as fetchIndexerFulfillmentAndPayment, cy as getContracts, cu as getCurrencyCodeFromHash, ct as getCurrencyInfoFromCountryCode, cs as getCurrencyInfoFromHash, cU as getDelegationRoute, cD as getGatingServiceAddress, cz as getIntentGuardianContract, cC as getPaymentMethodsCatalog, cB as getRateManagerContracts, cA as hasIntentGuardian, cv as isSupportedCurrencyHash, cR as isZeroRateManagerId, cw as mapConversionRatesToOnchainMinRate, d6 as normalizeAccessPolicyState, cS as normalizeRateManagerId, cT as normalizeRegistry, cF as parseDepositView, cG as parseIntentView, d7 as planAccessPolicyUpdate } from './vaultUtils-CbfjrxgD.mjs';
|
|
3
3
|
import { Address, Hash, Hex, WalletClient } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
5
|
export { IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-
|
|
2
|
-
export { d8 as AccessPolicyDiff, d0 as AccessPolicyOperations, d9 as AccessPolicyOrdering, da as AccessPolicyPlan, db as AccessPolicyPlanStep, dc as AccessPolicyState, d1 as AccessPolicyUnsupportedError, dd as AccessPolicyViolation, ae as ActionCallback, aI as ApiDeposit, aP as ApiIntentStatus, bn as AttestationServiceSellerCredentialProbeResponse, ac as AuthorizationTokenProvider, cZ as BatchResult, ap as BestByPlatformResponseObject, bo as BuyerTeePaymentParams, bp as BuyerTeePaymentProofInput, bq as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, ao as CancelIntentParams, b5 as CashAppCredentialUploadInput, a_ as CashAppSessionMaterial, ai as CreateDepositConversionRate, ah as CreateDepositParams, br as CuratorSellerCredentialStatusResponse, bs as CuratorSellerVerifyResponse, cq as Currency, cx as CurrencyData, cY as DelegationDepositTarget, cW as DelegationRoute, cX as DelegationState, cK as Deposit, cM as DepositCurrency, bL as DepositIntentStatistics, aL as DepositStatus, aJ as DepositVerifier, aK as DepositVerifierCurrency, bI as DepositVerifierData, cJ as DepositView, aE as FiatResponse, bm as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, am as FulfillIntentParams, aq as GetBestByPlatformResponse, ar as GetBestByPlatformResponseObject, aM as GetDepositByIdRequest, aN as GetDepositByIdResponse, aU as GetIntentByHashRequest, aV as GetIntentByHashResponse, aS as GetIntentsByDepositRequest, aT as GetIntentsByDepositResponse, av as GetNearbyQuote, aw as GetNearbySuggestions, aQ as GetOwnerIntentsRequest, aR as GetOwnerIntentsResponse, as as GetPlatformQuote, ax as GetQuoteResponse, ay as GetQuoteResponseObject, az as GetQuoteSingleResponse, bx as GetSellerCredentialStatusParams, bB as IdentityAttestationActionType, bC as IdentityAttestationOutput, bD as IdentityAttestationOutputFor, bE as IdentityAttestationParams, bO as IndexerClient, ck as IndexerDeploymentEnv, bU as IndexerDeposit, c9 as IndexerDepositDailySnapshot, cb as IndexerDepositFilter, c8 as IndexerDepositFundActivity, ca as IndexerDepositFundActivityType, ce as IndexerDepositOrderDirection, cd as IndexerDepositOrderField, cc as IndexerDepositPagination, bX as IndexerDepositPaymentMethod, bQ as IndexerDepositService, cn as IndexerFulfillmentAndPaymentResponse, cl as IndexerFulfillmentRecord, bV as IndexerIntentFulfilled, bW as IndexerIntentFulfillmentAmounts, bZ as IndexerIntentStatus, c1 as IndexerManagerAggregateStats, c3 as IndexerManagerDailySnapshot, c2 as IndexerManagerStats, c6 as IndexerManualRateUpdate, bY as IndexerMethodCurrency, c7 as IndexerOracleConfigUpdate, cm as IndexerPaymentVerifiedRecord, b_ as IndexerRateManager, c0 as IndexerRateManagerDelegation, ch as IndexerRateManagerDelegationPagination, c5 as IndexerRateManagerDetail, cf as IndexerRateManagerFilter, c4 as IndexerRateManagerListItem, cj as IndexerRateManagerOrderDirection, ci as IndexerRateManagerOrderField, cg as IndexerRateManagerPagination, b$ as IndexerRateManagerRate, bR as IndexerRateManagerService, aO as Intent, aa as IntentGuardianErrorCode, a6 as IntentGuardianPolicy, a7 as IntentGuardianQuote, a8 as IntentGuardianWriteFunction, a9 as IntentGuardianWriteParams, cO as IntentView, d3 as MAX_ADDRESSES_PER_CALL, d2 as MAX_GROUPS_PER_DEPOSIT, d4 as MAX_WHITELISTED_ADDRESSES, bF as MakerIdentityAttestationRequestBody, bG as MakerIdentityPlatform, aG as NearbyQuote, aH as NearbySuggestions, Z as OfframpClient, bH as OnchainCurrency, cP as OnchainIntent, bK as OrderStats, bM as OrderbookEntry, bN as OrderbookTableRow, co as PAYMENT_PLATFORMS, b3 as PayPalGoogleOAuthSellerCredentialUploadBody, cL as PaymentMethodData, cp as PaymentPlatformType, at as PlatformQuote, bJ as PreparedTransaction, aD as QuoteFeesResponse, aC as QuoteIntentResponse, au as QuotePreference, aA as QuoteResponseObject, aB as QuoteSingleResponse, aj as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, cN as ReferralFee, Y as ReferralReadOptions, af as ReferralRedemption, ag as ReferralSignatureBody, _ as ReferralSignatureOptions, aW as RegisterPayeeDetailsRequest, aX as RegisterPayeeDetailsResponse, bt as RegisteredSellerCredentialPlatform, bv as RegisteredUploadSellerCredentialParams, an as ReleaseFundsToPayerParams, cE as RuntimeEnv, bk as SellerAttestationOutput, b8 as SellerCiphertextBundle, bd as SellerCredentialBundleUpload, bl as SellerCredentialProbeResponse, bf as SellerCredentialStatus, be as SellerCredentialStatusValue, b7 as SellerCredentialUploadInputByPlatform, bj as SellerPaymentTypedDataValue, aY as SellerPlatform, bc as SellerProbeInput, b9 as SellerSignedCiphertextBundle, bh as SellerTypedDataField, bi as SellerTypedDataSpec, bb as SellerVerifyInput, ba as SellerVerifyIntentDetails, bg as SellerVerifyProxyBody, c$ as SendBatchFn, c_ as SendTransactionFn, a1 as SignalIntentMethodParams, al as SignalIntentParams, a0 as SignalIntentReferralFee, ad as TimeoutConfig, aF as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bz as UploadGoogleOAuthSellerCredentialParams, by as UploadPayPalGoogleOAuthSellerCredentialParams, bw as UploadSellerCredentialOptions, bu as UploadSellerCredentialParams, b4 as VenmoCredentialUploadInput, aZ as VenmoSessionMaterial, bA as VerifySellerPaymentParams, b6 as WiseCredentialUploadInput, b0 as WiseProfileInfo, b2 as WiseProfileNotFound, b1 as WiseProfileSelectionRequired, a$ as WiseSessionMaterial, ak as WithdrawDepositParams, cQ as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, cV as classifyDelegationState, ab as classifyIntentGuardianError, bS as compareEventCursorIdsByRecency, cr as currencyInfo, bP as defaultIndexerEndpoint, d5 as diffAccessPolicy, cH as enrichPvDepositView, cI as enrichPvIntentView, bT as fetchIndexerFulfillmentAndPayment, cy as getContracts, cu as getCurrencyCodeFromHash, ct as getCurrencyInfoFromCountryCode, cs as getCurrencyInfoFromHash, cU as getDelegationRoute, cD as getGatingServiceAddress, cz as getIntentGuardianContract, cC as getPaymentMethodsCatalog, cB as getRateManagerContracts, cA as hasIntentGuardian, cv as isSupportedCurrencyHash, cR as isZeroRateManagerId, cw as mapConversionRatesToOnchainMinRate, d6 as normalizeAccessPolicyState, cS as normalizeRateManagerId, cT as normalizeRegistry, cF as parseDepositView, cG as parseIntentView, d7 as planAccessPolicyUpdate } from './vaultUtils-
|
|
1
|
+
import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-CbfjrxgD.js';
|
|
2
|
+
export { d8 as AccessPolicyDiff, d0 as AccessPolicyOperations, d9 as AccessPolicyOrdering, da as AccessPolicyPlan, db as AccessPolicyPlanStep, dc as AccessPolicyState, d1 as AccessPolicyUnsupportedError, dd as AccessPolicyViolation, ae as ActionCallback, aI as ApiDeposit, aP as ApiIntentStatus, bn as AttestationServiceSellerCredentialProbeResponse, ac as AuthorizationTokenProvider, cZ as BatchResult, ap as BestByPlatformResponseObject, bo as BuyerTeePaymentParams, bp as BuyerTeePaymentProofInput, bq as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, ao as CancelIntentParams, b5 as CashAppCredentialUploadInput, a_ as CashAppSessionMaterial, ai as CreateDepositConversionRate, ah as CreateDepositParams, br as CuratorSellerCredentialStatusResponse, bs as CuratorSellerVerifyResponse, cq as Currency, cx as CurrencyData, cY as DelegationDepositTarget, cW as DelegationRoute, cX as DelegationState, cK as Deposit, cM as DepositCurrency, bL as DepositIntentStatistics, aL as DepositStatus, aJ as DepositVerifier, aK as DepositVerifierCurrency, bI as DepositVerifierData, cJ as DepositView, aE as FiatResponse, bm as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, am as FulfillIntentParams, aq as GetBestByPlatformResponse, ar as GetBestByPlatformResponseObject, aM as GetDepositByIdRequest, aN as GetDepositByIdResponse, aU as GetIntentByHashRequest, aV as GetIntentByHashResponse, aS as GetIntentsByDepositRequest, aT as GetIntentsByDepositResponse, av as GetNearbyQuote, aw as GetNearbySuggestions, aQ as GetOwnerIntentsRequest, aR as GetOwnerIntentsResponse, as as GetPlatformQuote, ax as GetQuoteResponse, ay as GetQuoteResponseObject, az as GetQuoteSingleResponse, bx as GetSellerCredentialStatusParams, bB as IdentityAttestationActionType, bC as IdentityAttestationOutput, bD as IdentityAttestationOutputFor, bE as IdentityAttestationParams, bO as IndexerClient, ck as IndexerDeploymentEnv, bU as IndexerDeposit, c9 as IndexerDepositDailySnapshot, cb as IndexerDepositFilter, c8 as IndexerDepositFundActivity, ca as IndexerDepositFundActivityType, ce as IndexerDepositOrderDirection, cd as IndexerDepositOrderField, cc as IndexerDepositPagination, bX as IndexerDepositPaymentMethod, bQ as IndexerDepositService, cn as IndexerFulfillmentAndPaymentResponse, cl as IndexerFulfillmentRecord, bV as IndexerIntentFulfilled, bW as IndexerIntentFulfillmentAmounts, bZ as IndexerIntentStatus, c1 as IndexerManagerAggregateStats, c3 as IndexerManagerDailySnapshot, c2 as IndexerManagerStats, c6 as IndexerManualRateUpdate, bY as IndexerMethodCurrency, c7 as IndexerOracleConfigUpdate, cm as IndexerPaymentVerifiedRecord, b_ as IndexerRateManager, c0 as IndexerRateManagerDelegation, ch as IndexerRateManagerDelegationPagination, c5 as IndexerRateManagerDetail, cf as IndexerRateManagerFilter, c4 as IndexerRateManagerListItem, cj as IndexerRateManagerOrderDirection, ci as IndexerRateManagerOrderField, cg as IndexerRateManagerPagination, b$ as IndexerRateManagerRate, bR as IndexerRateManagerService, aO as Intent, aa as IntentGuardianErrorCode, a6 as IntentGuardianPolicy, a7 as IntentGuardianQuote, a8 as IntentGuardianWriteFunction, a9 as IntentGuardianWriteParams, cO as IntentView, d3 as MAX_ADDRESSES_PER_CALL, d2 as MAX_GROUPS_PER_DEPOSIT, d4 as MAX_WHITELISTED_ADDRESSES, bF as MakerIdentityAttestationRequestBody, bG as MakerIdentityPlatform, aG as NearbyQuote, aH as NearbySuggestions, Z as OfframpClient, bH as OnchainCurrency, cP as OnchainIntent, bK as OrderStats, bM as OrderbookEntry, bN as OrderbookTableRow, co as PAYMENT_PLATFORMS, b3 as PayPalGoogleOAuthSellerCredentialUploadBody, cL as PaymentMethodData, cp as PaymentPlatformType, at as PlatformQuote, bJ as PreparedTransaction, aD as QuoteFeesResponse, aC as QuoteIntentResponse, au as QuotePreference, aA as QuoteResponseObject, aB as QuoteSingleResponse, aj as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, cN as ReferralFee, Y as ReferralReadOptions, af as ReferralRedemption, ag as ReferralSignatureBody, _ as ReferralSignatureOptions, aW as RegisterPayeeDetailsRequest, aX as RegisterPayeeDetailsResponse, bt as RegisteredSellerCredentialPlatform, bv as RegisteredUploadSellerCredentialParams, an as ReleaseFundsToPayerParams, cE as RuntimeEnv, bk as SellerAttestationOutput, b8 as SellerCiphertextBundle, bd as SellerCredentialBundleUpload, bl as SellerCredentialProbeResponse, bf as SellerCredentialStatus, be as SellerCredentialStatusValue, b7 as SellerCredentialUploadInputByPlatform, bj as SellerPaymentTypedDataValue, aY as SellerPlatform, bc as SellerProbeInput, b9 as SellerSignedCiphertextBundle, bh as SellerTypedDataField, bi as SellerTypedDataSpec, bb as SellerVerifyInput, ba as SellerVerifyIntentDetails, bg as SellerVerifyProxyBody, c$ as SendBatchFn, c_ as SendTransactionFn, a1 as SignalIntentMethodParams, al as SignalIntentParams, a0 as SignalIntentReferralFee, ad as TimeoutConfig, aF as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bz as UploadGoogleOAuthSellerCredentialParams, by as UploadPayPalGoogleOAuthSellerCredentialParams, bw as UploadSellerCredentialOptions, bu as UploadSellerCredentialParams, b4 as VenmoCredentialUploadInput, aZ as VenmoSessionMaterial, bA as VerifySellerPaymentParams, b6 as WiseCredentialUploadInput, b0 as WiseProfileInfo, b2 as WiseProfileNotFound, b1 as WiseProfileSelectionRequired, a$ as WiseSessionMaterial, ak as WithdrawDepositParams, cQ as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, cV as classifyDelegationState, ab as classifyIntentGuardianError, bS as compareEventCursorIdsByRecency, cr as currencyInfo, bP as defaultIndexerEndpoint, d5 as diffAccessPolicy, cH as enrichPvDepositView, cI as enrichPvIntentView, bT as fetchIndexerFulfillmentAndPayment, cy as getContracts, cu as getCurrencyCodeFromHash, ct as getCurrencyInfoFromCountryCode, cs as getCurrencyInfoFromHash, cU as getDelegationRoute, cD as getGatingServiceAddress, cz as getIntentGuardianContract, cC as getPaymentMethodsCatalog, cB as getRateManagerContracts, cA as hasIntentGuardian, cv as isSupportedCurrencyHash, cR as isZeroRateManagerId, cw as mapConversionRatesToOnchainMinRate, d6 as normalizeAccessPolicyState, cS as normalizeRateManagerId, cT as normalizeRegistry, cF as parseDepositView, cG as parseIntentView, d7 as planAccessPolicyUpdate } from './vaultUtils-CbfjrxgD.js';
|
|
3
3
|
import { Address, Hash, Hex, WalletClient } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
5
|
export { IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
|
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-
|
|
6
|
-
export { PAYMENT_PLATFORMS, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getGatingServiceAddress, getIntentGuardianContract, getPaymentMethodsCatalog, getRateManagerContracts, hasIntentGuardian, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-
|
|
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';
|
|
@@ -851,8 +851,9 @@ async function sendTransactionWithAttribution(walletClient, request, referrer, o
|
|
|
851
851
|
|
|
852
852
|
// src/utils/constants.ts
|
|
853
853
|
var DEFAULT_BASE_API_URL = "https://api.zkp2p.xyz";
|
|
854
|
+
var DEFAULT_INTENT_GUARDIAN_ADDRESS = "0x83671606454fA72ba1e2831E18C5090D25629414";
|
|
854
855
|
|
|
855
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.4.
|
|
856
|
+
// ../../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
857
|
var chainlink_default = {
|
|
857
858
|
feeds: [
|
|
858
859
|
{
|
|
@@ -1898,7 +1899,7 @@ var ProtocolViewerReader = class {
|
|
|
1898
1899
|
if (inputCount === null) {
|
|
1899
1900
|
throw new Error("Configured ProtocolViewer ABI does not expose getDeposit");
|
|
1900
1901
|
}
|
|
1901
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
1902
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
|
|
1902
1903
|
if (inputCount >= 3) {
|
|
1903
1904
|
return tryContexts(
|
|
1904
1905
|
protocolViewerContexts,
|
|
@@ -1984,7 +1985,7 @@ var ProtocolViewerReader = class {
|
|
|
1984
1985
|
return Promise.all(ids.map((id) => this.config.host.getPvDepositById(id)));
|
|
1985
1986
|
}
|
|
1986
1987
|
const bn = ids.map((id) => typeof id === "bigint" ? id : parseRawDepositId(id));
|
|
1987
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
1988
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
|
|
1988
1989
|
if (inputCount >= 2) {
|
|
1989
1990
|
const requests = ids.map((id, index) => ({
|
|
1990
1991
|
index,
|
|
@@ -2089,7 +2090,7 @@ var ProtocolViewerReader = class {
|
|
|
2089
2090
|
if (!protocolViewerAddress || !protocolViewerAbi || inputCount === null) {
|
|
2090
2091
|
return this.config.host.getPvAccountDepositsFromIndexer(owner);
|
|
2091
2092
|
}
|
|
2092
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
2093
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
|
|
2093
2094
|
const { address, abi } = this.config.host.requireProtocolViewer();
|
|
2094
2095
|
if (inputCount >= 2) {
|
|
2095
2096
|
const readAndFilter = async (raw2) => {
|
|
@@ -2160,7 +2161,7 @@ var ProtocolViewerReader = class {
|
|
|
2160
2161
|
if (protocolViewerEntries.length === 0) {
|
|
2161
2162
|
throw new Error("ProtocolViewer not available for this network");
|
|
2162
2163
|
}
|
|
2163
|
-
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-
|
|
2164
|
+
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
|
|
2164
2165
|
const intentsByHash = /* @__PURE__ */ new Map();
|
|
2165
2166
|
let attemptedRead = false;
|
|
2166
2167
|
let hadSuccessfulRead = false;
|
|
@@ -2268,7 +2269,7 @@ var ProtocolViewerReader = class {
|
|
|
2268
2269
|
if (protocolViewerEntries.length === 0) {
|
|
2269
2270
|
throw new Error("ProtocolViewer not available for this network");
|
|
2270
2271
|
}
|
|
2271
|
-
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-
|
|
2272
|
+
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
|
|
2272
2273
|
let lastError;
|
|
2273
2274
|
for (const pvEntry of protocolViewerEntries) {
|
|
2274
2275
|
const inputCount = this.pvEntryFunctionInputCount(pvEntry, "getIntent");
|
|
@@ -8512,7 +8513,7 @@ var Zkp2pClient = class {
|
|
|
8512
8513
|
* @param params.conversionRates - Conversion rates per processor, grouped by currency
|
|
8513
8514
|
* @param params.payeeDetailsHashes - Pre-computed hashed on-chain IDs (from registerPayeeDetails). When provided, skips the curator API call entirely.
|
|
8514
8515
|
* @param params.delegate - Optional delegate address that can manage the deposit
|
|
8515
|
-
* @param params.intentGuardian -
|
|
8516
|
+
* @param params.intentGuardian - Guardian for intent approval. Defaults to the paid guardian deployed for the client's environment.
|
|
8516
8517
|
* @param params.retainOnEmpty - Keep deposit active when balance reaches zero
|
|
8517
8518
|
* @param params.txOverrides - Optional viem transaction overrides
|
|
8518
8519
|
* @returns The deposit details posted to API (empty when payee registration is skipped) and the transaction hash
|
|
@@ -8675,7 +8676,7 @@ var Zkp2pClient = class {
|
|
|
8675
8676
|
paymentMethodData,
|
|
8676
8677
|
currencies: normalizedCurrencies,
|
|
8677
8678
|
delegate: params.delegate ?? "0x0000000000000000000000000000000000000000",
|
|
8678
|
-
intentGuardian: params.intentGuardian ??
|
|
8679
|
+
intentGuardian: params.intentGuardian ?? this.intentGuardianAddress ?? DEFAULT_INTENT_GUARDIAN_ADDRESS,
|
|
8679
8680
|
retainOnEmpty: Boolean(params.retainOnEmpty ?? false)
|
|
8680
8681
|
}
|
|
8681
8682
|
];
|