@zkp2p/sdk 0.14.3 → 0.14.4

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.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, t as SellerPlatform, u as CuratorSellerCredentialStatusResponse, Q as QuotesBestByPlatformRequest, v as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, w as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, x as PostDepositDetailsResponse, y as GetPayeeDetailsRequest, z as GetPayeeDetailsResponse, E as GetOwnerDepositsRequest, F as GetOwnerDepositsResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, M as GetOrderbookTableResponse, N as QuoteRequest, O as QuoteResponse, T as CuratorMetadata, W as CurrencyType, X as PaymentMethodCatalog, Y as TxOverrides } from './vaultUtils-BmF7Ko7F.mjs';
2
- export { dI as AccessPolicyOperations, dJ as AccessPolicyUnsupportedError, ao as ActionCallback, b7 as AmazonPayCredentialUploadInput, b8 as AmazonPayIdentityAttestationOutput, aT as ApiDeposit, a_ as ApiIntentStatus, bA as AttestationServiceSellerCredentialProbeResponse, am as AuthorizationTokenProvider, dF as BatchResult, az as BestByPlatformResponseObject, bB as BuyerTeePaymentParams, bC as BuyerTeePaymentProofInput, bD as BuyerTeeSessionMaterial, a5 as CancelIntentMethodParams, ay as CancelIntentParams, bi as CashAppCredentialUploadInput, ba as CashAppSessionMaterial, as as CreateDepositConversionRate, ar as CreateDepositParams, bE as CuratorSellerVerifyResponse, cZ as Currency, d4 as CurrencyData, df as DISPUTE_PROTECTION_POLICY_ABI, dE as DelegationDepositTarget, dC as DelegationRoute, dD as DelegationState, dq as Deposit, ds as DepositCurrency, bY as DepositIntentStatistics, aW as DepositStatus, aU as DepositVerifier, aV as DepositVerifierCurrency, bV as DepositVerifierData, dp as DepositView, ac as DisputeAttestationConfig, ct as DisputeProtectionIntentPage, cu as DisputeProtectionIntentPageParams, ad as DisputeProtectionReadinessOptions, ae as DisputeProtectionReadinessResult, aP as FiatResponse, bz as FulfillIntentAttestationResponse, a4 as FulfillIntentMethodParams, aw as FulfillIntentParams, aA as GetBestByPlatformResponse, aB as GetBestByPlatformResponseObject, aX as GetDepositByIdRequest, aY as GetDepositByIdResponse, b3 as GetIntentByHashRequest, b4 as GetIntentByHashResponse, b1 as GetIntentsByDepositRequest, b2 as GetIntentsByDepositResponse, aF as GetNearbyQuote, aG as GetNearbySuggestions, a$ as GetOwnerIntentsRequest, b0 as GetOwnerIntentsResponse, aC as GetPlatformQuote, aH as GetQuoteResponse, aI as GetQuoteResponseObject, aJ as GetQuoteSingleResponse, bJ as GetSellerCredentialStatusParams, bO as IdentityAttestationActionType, bP as IdentityAttestationOutput, bQ as IdentityAttestationOutputFor, bR as IdentityAttestationParams, cv as IndexedDisputeProtectionIntent, cw as IndexedPage, cx as IndexedPageAsOf, cy as IndexedRiskWindow, cz as IndexedStakeActivity, cA as IndexedStakeLock, cB as IndexedStakingRowFreshness, cC as IndexedStakingState, cD as IndexedStakingStateParams, cE as IndexedTakerAuthorization, cF as IndexedTakerStakeAuthorization, c2 as IndexerClient, cT as IndexerDeploymentEnv, ca as IndexerDeposit, cr as IndexerDepositDailySnapshot, cK as IndexerDepositFilter, cq as IndexerDepositFundActivity, cs as IndexerDepositFundActivityType, cN as IndexerDepositOrderDirection, cM as IndexerDepositOrderField, cL as IndexerDepositPagination, cd as IndexerDepositPaymentMethod, c4 as IndexerDepositService, cW as IndexerFulfillmentAndPaymentResponse, cU as IndexerFulfillmentRecord, cb as IndexerIntentFulfilled, cc as IndexerIntentFulfillmentAmounts, cf as IndexerIntentStatus, cj as IndexerManagerAggregateStats, cl as IndexerManagerDailySnapshot, ck as IndexerManagerStats, co as IndexerManualRateUpdate, ce as IndexerMethodCurrency, cp as IndexerOracleConfigUpdate, cV as IndexerPaymentVerifiedRecord, cg as IndexerRateManager, ci as IndexerRateManagerDelegation, cQ as IndexerRateManagerDelegationPagination, cn as IndexerRateManagerDetail, cO as IndexerRateManagerFilter, cm as IndexerRateManagerListItem, cS as IndexerRateManagerOrderDirection, cR as IndexerRateManagerOrderField, cP as IndexerRateManagerPagination, ch as IndexerRateManagerRate, c5 as IndexerRateManagerService, c8 as IndexerStakingService, aZ as Intent, ak as IntentGuardianErrorCode, ag as IntentGuardianPolicy, ah as IntentGuardianQuote, ai as IntentGuardianWriteFunction, aj as IntentGuardianWriteParams, du as IntentView, bS as MakerIdentityAttestationRequestBody, bT as MakerIdentityPlatform, aR as NearbyQuote, aS as NearbySuggestions, de as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bU as OnchainCurrency, dv as OnchainIntent, bX as OrderStats, c0 as OrderbookEntry, c1 as OrderbookTableRow, cX as PAYMENT_PLATFORMS, bf as PayPalGoogleOAuthSellerCredentialUploadBody, dr as PaymentMethodData, cY as PaymentPlatformType, aD as PlatformQuote, bW as PreparedTransaction, aO as QuoteFeesResponse, aN as QuoteIntentResponse, aL as QuoteMakerIdentity, aE as QuotePreference, aK as QuoteResponseObject, aM as QuoteSingleResponse, at as Range, af as ReadDisputeAttestationConfigParams, a1 as RedeemReferralCodeSignatureOptions, _ as ReferralBearerWriteOptions, dt as ReferralFee, $ as ReferralReadOptions, ap as ReferralRedemption, aq as ReferralSignatureBody, a0 as ReferralSignatureOptions, b5 as RegisterPayeeDetailsRequest, b6 as RegisterPayeeDetailsResponse, bF as RegisteredSellerCredentialPlatform, bH as RegisteredUploadSellerCredentialParams, ax as ReleaseFundsToPayerParams, dh as RuntimeEnv, dg as STAKE_VAULT_ABI, bx as SellerAttestationOutput, bl as SellerCiphertextBundle, bq as SellerCredentialBundleUpload, by as SellerCredentialProbeResponse, bs as SellerCredentialStatus, br as SellerCredentialStatusValue, bk as SellerCredentialUploadInputByPlatform, bw as SellerPaymentTypedDataValue, bp as SellerProbeInput, bm as SellerSignedCiphertextBundle, bu as SellerTypedDataField, bv as SellerTypedDataSpec, bo as SellerVerifyInput, bn as SellerVerifyIntentDetails, bt as SellerVerifyProxyBody, dH as SendBatchFn, dG as SendTransactionFn, a3 as SignalIntentMethodParams, av as SignalIntentParams, a2 as SignalIntentReferralFee, cG as StakeActivityPageParams, b_ as StakeEnvironment, cH as StakeLockPageParams, a8 as StakeVaultState, a9 as StakeVaultWriteFunction, aa as StakeVaultWriteParams, cI as StakingEntityIds, cJ as TakerStakeAuthorizationPageParams, b$ as TakerStakeBalances, an as TimeoutConfig, aQ as TokenResponse, a6 as UpdateReferralCodeSignatureOptions, bM as UploadGoogleOAuthSellerCredentialParams, bK as UploadPayPalGoogleOAuthSellerCredentialParams, bI as UploadSellerCredentialOptions, bG as UploadSellerCredentialParams, bL as UploadVenmoGoogleOAuthSellerCredentialParams, bZ as UsdcAmount, dj as V2ContractAbis, di as V2ContractAddresses, bh as VenmoCredentialUploadInput, bg as VenmoGoogleOAuthSellerCredentialUploadBody, b9 as VenmoSessionMaterial, bN as VerifySellerPaymentParams, bj as WiseCredentialUploadInput, bc as WiseProfileInfo, be as WiseProfileNotFound, bd as WiseProfileSelectionRequired, bb as WiseSessionMaterial, au as WithdrawDepositParams, dw as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a7 as Zkp2pClientOptions, c7 as buildStakingEntityIds, dB as classifyDelegationState, al as classifyIntentGuardianError, c6 as compareEventCursorIdsByRecency, c_ as currencyInfo, c3 as defaultIndexerEndpoint, dm as enrichPvDepositView, dn as enrichPvIntentView, c9 as fetchIndexerFulfillmentAndPayment, d5 as getContracts, d1 as getCurrencyCodeFromHash, d0 as getCurrencyInfoFromCountryCode, c$ as getCurrencyInfoFromHash, dA as getDelegationRoute, db as getDisputeProtectionPolicyContract, dd as getGatingServiceAddress, d6 as getIntentGuardianContract, da as getOrchestratorV3Contract, dc as getPaymentMethodsCatalog, d8 as getRateManagerContracts, d9 as getStakeVaultContract, d7 as hasIntentGuardian, d2 as isSupportedCurrencyHash, dx as isZeroRateManagerId, d3 as mapConversionRatesToOnchainMinRate, dy as normalizeRateManagerId, dz as normalizeRegistry, dk as parseDepositView, dl as parseIntentView, ab as readDisputeAttestationConfig } from './vaultUtils-BmF7Ko7F.mjs';
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, t as SellerPlatform, u as CuratorSellerCredentialStatusResponse, Q as QuotesBestByPlatformRequest, v as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, w as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, x as PostDepositDetailsResponse, y as GetPayeeDetailsRequest, z as GetPayeeDetailsResponse, E as GetOwnerDepositsRequest, F as GetOwnerDepositsResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, M as GetOrderbookTableResponse, N as QuoteRequest, O as QuoteResponse, T as CuratorMetadata, W as CurrencyType, X as PaymentMethodCatalog, Y as TxOverrides } from './vaultUtils-CK4ph-vu.mjs';
2
+ export { dI as AccessPolicyOperations, dJ as AccessPolicyUnsupportedError, ao as ActionCallback, b7 as AmazonPayCredentialUploadInput, b8 as AmazonPayIdentityAttestationOutput, aT as ApiDeposit, a_ as ApiIntentStatus, bA as AttestationServiceSellerCredentialProbeResponse, am as AuthorizationTokenProvider, dF as BatchResult, az as BestByPlatformResponseObject, bB as BuyerTeePaymentParams, bC as BuyerTeePaymentProofInput, bD as BuyerTeeSessionMaterial, a5 as CancelIntentMethodParams, ay as CancelIntentParams, bi as CashAppCredentialUploadInput, ba as CashAppSessionMaterial, as as CreateDepositConversionRate, ar as CreateDepositParams, bE as CuratorSellerVerifyResponse, cZ as Currency, d4 as CurrencyData, df as DISPUTE_PROTECTION_POLICY_ABI, dE as DelegationDepositTarget, dC as DelegationRoute, dD as DelegationState, dq as Deposit, ds as DepositCurrency, bY as DepositIntentStatistics, aW as DepositStatus, aU as DepositVerifier, aV as DepositVerifierCurrency, bV as DepositVerifierData, dp as DepositView, ac as DisputeAttestationConfig, ct as DisputeProtectionIntentPage, cu as DisputeProtectionIntentPageParams, ad as DisputeProtectionReadinessOptions, ae as DisputeProtectionReadinessResult, aP as FiatResponse, bz as FulfillIntentAttestationResponse, a4 as FulfillIntentMethodParams, aw as FulfillIntentParams, aA as GetBestByPlatformResponse, aB as GetBestByPlatformResponseObject, aX as GetDepositByIdRequest, aY as GetDepositByIdResponse, b3 as GetIntentByHashRequest, b4 as GetIntentByHashResponse, b1 as GetIntentsByDepositRequest, b2 as GetIntentsByDepositResponse, aF as GetNearbyQuote, aG as GetNearbySuggestions, a$ as GetOwnerIntentsRequest, b0 as GetOwnerIntentsResponse, aC as GetPlatformQuote, aH as GetQuoteResponse, aI as GetQuoteResponseObject, aJ as GetQuoteSingleResponse, bJ as GetSellerCredentialStatusParams, bO as IdentityAttestationActionType, bP as IdentityAttestationOutput, bQ as IdentityAttestationOutputFor, bR as IdentityAttestationParams, cv as IndexedDisputeProtectionIntent, cw as IndexedPage, cx as IndexedPageAsOf, cy as IndexedRiskWindow, cz as IndexedStakeActivity, cA as IndexedStakeLock, cB as IndexedStakingRowFreshness, cC as IndexedStakingState, cD as IndexedStakingStateParams, cE as IndexedTakerAuthorization, cF as IndexedTakerStakeAuthorization, c2 as IndexerClient, cT as IndexerDeploymentEnv, ca as IndexerDeposit, cr as IndexerDepositDailySnapshot, cK as IndexerDepositFilter, cq as IndexerDepositFundActivity, cs as IndexerDepositFundActivityType, cN as IndexerDepositOrderDirection, cM as IndexerDepositOrderField, cL as IndexerDepositPagination, cd as IndexerDepositPaymentMethod, c4 as IndexerDepositService, cW as IndexerFulfillmentAndPaymentResponse, cU as IndexerFulfillmentRecord, cb as IndexerIntentFulfilled, cc as IndexerIntentFulfillmentAmounts, cf as IndexerIntentStatus, cj as IndexerManagerAggregateStats, cl as IndexerManagerDailySnapshot, ck as IndexerManagerStats, co as IndexerManualRateUpdate, ce as IndexerMethodCurrency, cp as IndexerOracleConfigUpdate, cV as IndexerPaymentVerifiedRecord, cg as IndexerRateManager, ci as IndexerRateManagerDelegation, cQ as IndexerRateManagerDelegationPagination, cn as IndexerRateManagerDetail, cO as IndexerRateManagerFilter, cm as IndexerRateManagerListItem, cS as IndexerRateManagerOrderDirection, cR as IndexerRateManagerOrderField, cP as IndexerRateManagerPagination, ch as IndexerRateManagerRate, c5 as IndexerRateManagerService, c8 as IndexerStakingService, aZ as Intent, ak as IntentGuardianErrorCode, ag as IntentGuardianPolicy, ah as IntentGuardianQuote, ai as IntentGuardianWriteFunction, aj as IntentGuardianWriteParams, du as IntentView, bS as MakerIdentityAttestationRequestBody, bT as MakerIdentityPlatform, aR as NearbyQuote, aS as NearbySuggestions, de as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bU as OnchainCurrency, dv as OnchainIntent, bX as OrderStats, c0 as OrderbookEntry, c1 as OrderbookTableRow, cX as PAYMENT_PLATFORMS, bf as PayPalGoogleOAuthSellerCredentialUploadBody, dr as PaymentMethodData, cY as PaymentPlatformType, aD as PlatformQuote, bW as PreparedTransaction, aO as QuoteFeesResponse, aN as QuoteIntentResponse, aL as QuoteMakerIdentity, aE as QuotePreference, aK as QuoteResponseObject, aM as QuoteSingleResponse, at as Range, af as ReadDisputeAttestationConfigParams, a1 as RedeemReferralCodeSignatureOptions, _ as ReferralBearerWriteOptions, dt as ReferralFee, $ as ReferralReadOptions, ap as ReferralRedemption, aq as ReferralSignatureBody, a0 as ReferralSignatureOptions, b5 as RegisterPayeeDetailsRequest, b6 as RegisterPayeeDetailsResponse, bF as RegisteredSellerCredentialPlatform, bH as RegisteredUploadSellerCredentialParams, ax as ReleaseFundsToPayerParams, dh as RuntimeEnv, dg as STAKE_VAULT_ABI, bx as SellerAttestationOutput, bl as SellerCiphertextBundle, bq as SellerCredentialBundleUpload, by as SellerCredentialProbeResponse, bs as SellerCredentialStatus, br as SellerCredentialStatusValue, bk as SellerCredentialUploadInputByPlatform, bw as SellerPaymentTypedDataValue, bp as SellerProbeInput, bm as SellerSignedCiphertextBundle, bu as SellerTypedDataField, bv as SellerTypedDataSpec, bo as SellerVerifyInput, bn as SellerVerifyIntentDetails, bt as SellerVerifyProxyBody, dH as SendBatchFn, dG as SendTransactionFn, a3 as SignalIntentMethodParams, av as SignalIntentParams, a2 as SignalIntentReferralFee, cG as StakeActivityPageParams, b_ as StakeEnvironment, cH as StakeLockPageParams, a8 as StakeVaultState, a9 as StakeVaultWriteFunction, aa as StakeVaultWriteParams, cI as StakingEntityIds, cJ as TakerStakeAuthorizationPageParams, b$ as TakerStakeBalances, an as TimeoutConfig, aQ as TokenResponse, a6 as UpdateReferralCodeSignatureOptions, bM as UploadGoogleOAuthSellerCredentialParams, bK as UploadPayPalGoogleOAuthSellerCredentialParams, bI as UploadSellerCredentialOptions, bG as UploadSellerCredentialParams, bL as UploadVenmoGoogleOAuthSellerCredentialParams, bZ as UsdcAmount, dj as V2ContractAbis, di as V2ContractAddresses, bh as VenmoCredentialUploadInput, bg as VenmoGoogleOAuthSellerCredentialUploadBody, b9 as VenmoSessionMaterial, bN as VerifySellerPaymentParams, bj as WiseCredentialUploadInput, bc as WiseProfileInfo, be as WiseProfileNotFound, bd as WiseProfileSelectionRequired, bb as WiseSessionMaterial, au as WithdrawDepositParams, dw as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a7 as Zkp2pClientOptions, c7 as buildStakingEntityIds, dB as classifyDelegationState, al as classifyIntentGuardianError, c6 as compareEventCursorIdsByRecency, c_ as currencyInfo, c3 as defaultIndexerEndpoint, dm as enrichPvDepositView, dn as enrichPvIntentView, c9 as fetchIndexerFulfillmentAndPayment, d5 as getContracts, d1 as getCurrencyCodeFromHash, d0 as getCurrencyInfoFromCountryCode, c$ as getCurrencyInfoFromHash, dA as getDelegationRoute, db as getDisputeProtectionPolicyContract, dd as getGatingServiceAddress, d6 as getIntentGuardianContract, da as getOrchestratorV3Contract, dc as getPaymentMethodsCatalog, d8 as getRateManagerContracts, d9 as getStakeVaultContract, d7 as hasIntentGuardian, d2 as isSupportedCurrencyHash, dx as isZeroRateManagerId, d3 as mapConversionRatesToOnchainMinRate, dy as normalizeRateManagerId, dz as normalizeRegistry, dk as parseDepositView, dl as parseIntentView, ab as readDisputeAttestationConfig } from './vaultUtils-CK4ph-vu.mjs';
3
3
  import { Address, Hash, Hex, WalletClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
5
  export { DisputeActionTypeByPlatform, DisputeAttestationOutput, DisputeAttestationOutputFor, DisputeDetails, DisputePlatform, IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient, verifyDisputeAttestation } 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, t as SellerPlatform, u as CuratorSellerCredentialStatusResponse, Q as QuotesBestByPlatformRequest, v as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, w as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, x as PostDepositDetailsResponse, y as GetPayeeDetailsRequest, z as GetPayeeDetailsResponse, E as GetOwnerDepositsRequest, F as GetOwnerDepositsResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, M as GetOrderbookTableResponse, N as QuoteRequest, O as QuoteResponse, T as CuratorMetadata, W as CurrencyType, X as PaymentMethodCatalog, Y as TxOverrides } from './vaultUtils-BmF7Ko7F.js';
2
- export { dI as AccessPolicyOperations, dJ as AccessPolicyUnsupportedError, ao as ActionCallback, b7 as AmazonPayCredentialUploadInput, b8 as AmazonPayIdentityAttestationOutput, aT as ApiDeposit, a_ as ApiIntentStatus, bA as AttestationServiceSellerCredentialProbeResponse, am as AuthorizationTokenProvider, dF as BatchResult, az as BestByPlatformResponseObject, bB as BuyerTeePaymentParams, bC as BuyerTeePaymentProofInput, bD as BuyerTeeSessionMaterial, a5 as CancelIntentMethodParams, ay as CancelIntentParams, bi as CashAppCredentialUploadInput, ba as CashAppSessionMaterial, as as CreateDepositConversionRate, ar as CreateDepositParams, bE as CuratorSellerVerifyResponse, cZ as Currency, d4 as CurrencyData, df as DISPUTE_PROTECTION_POLICY_ABI, dE as DelegationDepositTarget, dC as DelegationRoute, dD as DelegationState, dq as Deposit, ds as DepositCurrency, bY as DepositIntentStatistics, aW as DepositStatus, aU as DepositVerifier, aV as DepositVerifierCurrency, bV as DepositVerifierData, dp as DepositView, ac as DisputeAttestationConfig, ct as DisputeProtectionIntentPage, cu as DisputeProtectionIntentPageParams, ad as DisputeProtectionReadinessOptions, ae as DisputeProtectionReadinessResult, aP as FiatResponse, bz as FulfillIntentAttestationResponse, a4 as FulfillIntentMethodParams, aw as FulfillIntentParams, aA as GetBestByPlatformResponse, aB as GetBestByPlatformResponseObject, aX as GetDepositByIdRequest, aY as GetDepositByIdResponse, b3 as GetIntentByHashRequest, b4 as GetIntentByHashResponse, b1 as GetIntentsByDepositRequest, b2 as GetIntentsByDepositResponse, aF as GetNearbyQuote, aG as GetNearbySuggestions, a$ as GetOwnerIntentsRequest, b0 as GetOwnerIntentsResponse, aC as GetPlatformQuote, aH as GetQuoteResponse, aI as GetQuoteResponseObject, aJ as GetQuoteSingleResponse, bJ as GetSellerCredentialStatusParams, bO as IdentityAttestationActionType, bP as IdentityAttestationOutput, bQ as IdentityAttestationOutputFor, bR as IdentityAttestationParams, cv as IndexedDisputeProtectionIntent, cw as IndexedPage, cx as IndexedPageAsOf, cy as IndexedRiskWindow, cz as IndexedStakeActivity, cA as IndexedStakeLock, cB as IndexedStakingRowFreshness, cC as IndexedStakingState, cD as IndexedStakingStateParams, cE as IndexedTakerAuthorization, cF as IndexedTakerStakeAuthorization, c2 as IndexerClient, cT as IndexerDeploymentEnv, ca as IndexerDeposit, cr as IndexerDepositDailySnapshot, cK as IndexerDepositFilter, cq as IndexerDepositFundActivity, cs as IndexerDepositFundActivityType, cN as IndexerDepositOrderDirection, cM as IndexerDepositOrderField, cL as IndexerDepositPagination, cd as IndexerDepositPaymentMethod, c4 as IndexerDepositService, cW as IndexerFulfillmentAndPaymentResponse, cU as IndexerFulfillmentRecord, cb as IndexerIntentFulfilled, cc as IndexerIntentFulfillmentAmounts, cf as IndexerIntentStatus, cj as IndexerManagerAggregateStats, cl as IndexerManagerDailySnapshot, ck as IndexerManagerStats, co as IndexerManualRateUpdate, ce as IndexerMethodCurrency, cp as IndexerOracleConfigUpdate, cV as IndexerPaymentVerifiedRecord, cg as IndexerRateManager, ci as IndexerRateManagerDelegation, cQ as IndexerRateManagerDelegationPagination, cn as IndexerRateManagerDetail, cO as IndexerRateManagerFilter, cm as IndexerRateManagerListItem, cS as IndexerRateManagerOrderDirection, cR as IndexerRateManagerOrderField, cP as IndexerRateManagerPagination, ch as IndexerRateManagerRate, c5 as IndexerRateManagerService, c8 as IndexerStakingService, aZ as Intent, ak as IntentGuardianErrorCode, ag as IntentGuardianPolicy, ah as IntentGuardianQuote, ai as IntentGuardianWriteFunction, aj as IntentGuardianWriteParams, du as IntentView, bS as MakerIdentityAttestationRequestBody, bT as MakerIdentityPlatform, aR as NearbyQuote, aS as NearbySuggestions, de as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bU as OnchainCurrency, dv as OnchainIntent, bX as OrderStats, c0 as OrderbookEntry, c1 as OrderbookTableRow, cX as PAYMENT_PLATFORMS, bf as PayPalGoogleOAuthSellerCredentialUploadBody, dr as PaymentMethodData, cY as PaymentPlatformType, aD as PlatformQuote, bW as PreparedTransaction, aO as QuoteFeesResponse, aN as QuoteIntentResponse, aL as QuoteMakerIdentity, aE as QuotePreference, aK as QuoteResponseObject, aM as QuoteSingleResponse, at as Range, af as ReadDisputeAttestationConfigParams, a1 as RedeemReferralCodeSignatureOptions, _ as ReferralBearerWriteOptions, dt as ReferralFee, $ as ReferralReadOptions, ap as ReferralRedemption, aq as ReferralSignatureBody, a0 as ReferralSignatureOptions, b5 as RegisterPayeeDetailsRequest, b6 as RegisterPayeeDetailsResponse, bF as RegisteredSellerCredentialPlatform, bH as RegisteredUploadSellerCredentialParams, ax as ReleaseFundsToPayerParams, dh as RuntimeEnv, dg as STAKE_VAULT_ABI, bx as SellerAttestationOutput, bl as SellerCiphertextBundle, bq as SellerCredentialBundleUpload, by as SellerCredentialProbeResponse, bs as SellerCredentialStatus, br as SellerCredentialStatusValue, bk as SellerCredentialUploadInputByPlatform, bw as SellerPaymentTypedDataValue, bp as SellerProbeInput, bm as SellerSignedCiphertextBundle, bu as SellerTypedDataField, bv as SellerTypedDataSpec, bo as SellerVerifyInput, bn as SellerVerifyIntentDetails, bt as SellerVerifyProxyBody, dH as SendBatchFn, dG as SendTransactionFn, a3 as SignalIntentMethodParams, av as SignalIntentParams, a2 as SignalIntentReferralFee, cG as StakeActivityPageParams, b_ as StakeEnvironment, cH as StakeLockPageParams, a8 as StakeVaultState, a9 as StakeVaultWriteFunction, aa as StakeVaultWriteParams, cI as StakingEntityIds, cJ as TakerStakeAuthorizationPageParams, b$ as TakerStakeBalances, an as TimeoutConfig, aQ as TokenResponse, a6 as UpdateReferralCodeSignatureOptions, bM as UploadGoogleOAuthSellerCredentialParams, bK as UploadPayPalGoogleOAuthSellerCredentialParams, bI as UploadSellerCredentialOptions, bG as UploadSellerCredentialParams, bL as UploadVenmoGoogleOAuthSellerCredentialParams, bZ as UsdcAmount, dj as V2ContractAbis, di as V2ContractAddresses, bh as VenmoCredentialUploadInput, bg as VenmoGoogleOAuthSellerCredentialUploadBody, b9 as VenmoSessionMaterial, bN as VerifySellerPaymentParams, bj as WiseCredentialUploadInput, bc as WiseProfileInfo, be as WiseProfileNotFound, bd as WiseProfileSelectionRequired, bb as WiseSessionMaterial, au as WithdrawDepositParams, dw as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a7 as Zkp2pClientOptions, c7 as buildStakingEntityIds, dB as classifyDelegationState, al as classifyIntentGuardianError, c6 as compareEventCursorIdsByRecency, c_ as currencyInfo, c3 as defaultIndexerEndpoint, dm as enrichPvDepositView, dn as enrichPvIntentView, c9 as fetchIndexerFulfillmentAndPayment, d5 as getContracts, d1 as getCurrencyCodeFromHash, d0 as getCurrencyInfoFromCountryCode, c$ as getCurrencyInfoFromHash, dA as getDelegationRoute, db as getDisputeProtectionPolicyContract, dd as getGatingServiceAddress, d6 as getIntentGuardianContract, da as getOrchestratorV3Contract, dc as getPaymentMethodsCatalog, d8 as getRateManagerContracts, d9 as getStakeVaultContract, d7 as hasIntentGuardian, d2 as isSupportedCurrencyHash, dx as isZeroRateManagerId, d3 as mapConversionRatesToOnchainMinRate, dy as normalizeRateManagerId, dz as normalizeRegistry, dk as parseDepositView, dl as parseIntentView, ab as readDisputeAttestationConfig } from './vaultUtils-BmF7Ko7F.js';
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, t as SellerPlatform, u as CuratorSellerCredentialStatusResponse, Q as QuotesBestByPlatformRequest, v as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, w as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, x as PostDepositDetailsResponse, y as GetPayeeDetailsRequest, z as GetPayeeDetailsResponse, E as GetOwnerDepositsRequest, F as GetOwnerDepositsResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, M as GetOrderbookTableResponse, N as QuoteRequest, O as QuoteResponse, T as CuratorMetadata, W as CurrencyType, X as PaymentMethodCatalog, Y as TxOverrides } from './vaultUtils-CK4ph-vu.js';
2
+ export { dI as AccessPolicyOperations, dJ as AccessPolicyUnsupportedError, ao as ActionCallback, b7 as AmazonPayCredentialUploadInput, b8 as AmazonPayIdentityAttestationOutput, aT as ApiDeposit, a_ as ApiIntentStatus, bA as AttestationServiceSellerCredentialProbeResponse, am as AuthorizationTokenProvider, dF as BatchResult, az as BestByPlatformResponseObject, bB as BuyerTeePaymentParams, bC as BuyerTeePaymentProofInput, bD as BuyerTeeSessionMaterial, a5 as CancelIntentMethodParams, ay as CancelIntentParams, bi as CashAppCredentialUploadInput, ba as CashAppSessionMaterial, as as CreateDepositConversionRate, ar as CreateDepositParams, bE as CuratorSellerVerifyResponse, cZ as Currency, d4 as CurrencyData, df as DISPUTE_PROTECTION_POLICY_ABI, dE as DelegationDepositTarget, dC as DelegationRoute, dD as DelegationState, dq as Deposit, ds as DepositCurrency, bY as DepositIntentStatistics, aW as DepositStatus, aU as DepositVerifier, aV as DepositVerifierCurrency, bV as DepositVerifierData, dp as DepositView, ac as DisputeAttestationConfig, ct as DisputeProtectionIntentPage, cu as DisputeProtectionIntentPageParams, ad as DisputeProtectionReadinessOptions, ae as DisputeProtectionReadinessResult, aP as FiatResponse, bz as FulfillIntentAttestationResponse, a4 as FulfillIntentMethodParams, aw as FulfillIntentParams, aA as GetBestByPlatformResponse, aB as GetBestByPlatformResponseObject, aX as GetDepositByIdRequest, aY as GetDepositByIdResponse, b3 as GetIntentByHashRequest, b4 as GetIntentByHashResponse, b1 as GetIntentsByDepositRequest, b2 as GetIntentsByDepositResponse, aF as GetNearbyQuote, aG as GetNearbySuggestions, a$ as GetOwnerIntentsRequest, b0 as GetOwnerIntentsResponse, aC as GetPlatformQuote, aH as GetQuoteResponse, aI as GetQuoteResponseObject, aJ as GetQuoteSingleResponse, bJ as GetSellerCredentialStatusParams, bO as IdentityAttestationActionType, bP as IdentityAttestationOutput, bQ as IdentityAttestationOutputFor, bR as IdentityAttestationParams, cv as IndexedDisputeProtectionIntent, cw as IndexedPage, cx as IndexedPageAsOf, cy as IndexedRiskWindow, cz as IndexedStakeActivity, cA as IndexedStakeLock, cB as IndexedStakingRowFreshness, cC as IndexedStakingState, cD as IndexedStakingStateParams, cE as IndexedTakerAuthorization, cF as IndexedTakerStakeAuthorization, c2 as IndexerClient, cT as IndexerDeploymentEnv, ca as IndexerDeposit, cr as IndexerDepositDailySnapshot, cK as IndexerDepositFilter, cq as IndexerDepositFundActivity, cs as IndexerDepositFundActivityType, cN as IndexerDepositOrderDirection, cM as IndexerDepositOrderField, cL as IndexerDepositPagination, cd as IndexerDepositPaymentMethod, c4 as IndexerDepositService, cW as IndexerFulfillmentAndPaymentResponse, cU as IndexerFulfillmentRecord, cb as IndexerIntentFulfilled, cc as IndexerIntentFulfillmentAmounts, cf as IndexerIntentStatus, cj as IndexerManagerAggregateStats, cl as IndexerManagerDailySnapshot, ck as IndexerManagerStats, co as IndexerManualRateUpdate, ce as IndexerMethodCurrency, cp as IndexerOracleConfigUpdate, cV as IndexerPaymentVerifiedRecord, cg as IndexerRateManager, ci as IndexerRateManagerDelegation, cQ as IndexerRateManagerDelegationPagination, cn as IndexerRateManagerDetail, cO as IndexerRateManagerFilter, cm as IndexerRateManagerListItem, cS as IndexerRateManagerOrderDirection, cR as IndexerRateManagerOrderField, cP as IndexerRateManagerPagination, ch as IndexerRateManagerRate, c5 as IndexerRateManagerService, c8 as IndexerStakingService, aZ as Intent, ak as IntentGuardianErrorCode, ag as IntentGuardianPolicy, ah as IntentGuardianQuote, ai as IntentGuardianWriteFunction, aj as IntentGuardianWriteParams, du as IntentView, bS as MakerIdentityAttestationRequestBody, bT as MakerIdentityPlatform, aR as NearbyQuote, aS as NearbySuggestions, de as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bU as OnchainCurrency, dv as OnchainIntent, bX as OrderStats, c0 as OrderbookEntry, c1 as OrderbookTableRow, cX as PAYMENT_PLATFORMS, bf as PayPalGoogleOAuthSellerCredentialUploadBody, dr as PaymentMethodData, cY as PaymentPlatformType, aD as PlatformQuote, bW as PreparedTransaction, aO as QuoteFeesResponse, aN as QuoteIntentResponse, aL as QuoteMakerIdentity, aE as QuotePreference, aK as QuoteResponseObject, aM as QuoteSingleResponse, at as Range, af as ReadDisputeAttestationConfigParams, a1 as RedeemReferralCodeSignatureOptions, _ as ReferralBearerWriteOptions, dt as ReferralFee, $ as ReferralReadOptions, ap as ReferralRedemption, aq as ReferralSignatureBody, a0 as ReferralSignatureOptions, b5 as RegisterPayeeDetailsRequest, b6 as RegisterPayeeDetailsResponse, bF as RegisteredSellerCredentialPlatform, bH as RegisteredUploadSellerCredentialParams, ax as ReleaseFundsToPayerParams, dh as RuntimeEnv, dg as STAKE_VAULT_ABI, bx as SellerAttestationOutput, bl as SellerCiphertextBundle, bq as SellerCredentialBundleUpload, by as SellerCredentialProbeResponse, bs as SellerCredentialStatus, br as SellerCredentialStatusValue, bk as SellerCredentialUploadInputByPlatform, bw as SellerPaymentTypedDataValue, bp as SellerProbeInput, bm as SellerSignedCiphertextBundle, bu as SellerTypedDataField, bv as SellerTypedDataSpec, bo as SellerVerifyInput, bn as SellerVerifyIntentDetails, bt as SellerVerifyProxyBody, dH as SendBatchFn, dG as SendTransactionFn, a3 as SignalIntentMethodParams, av as SignalIntentParams, a2 as SignalIntentReferralFee, cG as StakeActivityPageParams, b_ as StakeEnvironment, cH as StakeLockPageParams, a8 as StakeVaultState, a9 as StakeVaultWriteFunction, aa as StakeVaultWriteParams, cI as StakingEntityIds, cJ as TakerStakeAuthorizationPageParams, b$ as TakerStakeBalances, an as TimeoutConfig, aQ as TokenResponse, a6 as UpdateReferralCodeSignatureOptions, bM as UploadGoogleOAuthSellerCredentialParams, bK as UploadPayPalGoogleOAuthSellerCredentialParams, bI as UploadSellerCredentialOptions, bG as UploadSellerCredentialParams, bL as UploadVenmoGoogleOAuthSellerCredentialParams, bZ as UsdcAmount, dj as V2ContractAbis, di as V2ContractAddresses, bh as VenmoCredentialUploadInput, bg as VenmoGoogleOAuthSellerCredentialUploadBody, b9 as VenmoSessionMaterial, bN as VerifySellerPaymentParams, bj as WiseCredentialUploadInput, bc as WiseProfileInfo, be as WiseProfileNotFound, bd as WiseProfileSelectionRequired, bb as WiseSessionMaterial, au as WithdrawDepositParams, dw as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a7 as Zkp2pClientOptions, c7 as buildStakingEntityIds, dB as classifyDelegationState, al as classifyIntentGuardianError, c6 as compareEventCursorIdsByRecency, c_ as currencyInfo, c3 as defaultIndexerEndpoint, dm as enrichPvDepositView, dn as enrichPvIntentView, c9 as fetchIndexerFulfillmentAndPayment, d5 as getContracts, d1 as getCurrencyCodeFromHash, d0 as getCurrencyInfoFromCountryCode, c$ as getCurrencyInfoFromHash, dA as getDelegationRoute, db as getDisputeProtectionPolicyContract, dd as getGatingServiceAddress, d6 as getIntentGuardianContract, da as getOrchestratorV3Contract, dc as getPaymentMethodsCatalog, d8 as getRateManagerContracts, d9 as getStakeVaultContract, d7 as hasIntentGuardian, d2 as isSupportedCurrencyHash, dx as isZeroRateManagerId, d3 as mapConversionRatesToOnchainMinRate, dy as normalizeRateManagerId, dz as normalizeRegistry, dk as parseDepositView, dl as parseIntentView, ab as readDisputeAttestationConfig } from './vaultUtils-CK4ph-vu.js';
3
3
  import { Address, Hash, Hex, WalletClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
5
  export { DisputeActionTypeByPlatform, DisputeAttestationOutput, DisputeAttestationOutputFor, DisputeDetails, DisputePlatform, IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient, verifyDisputeAttestation } from '@zkp2p/zkp2p-attestation';
package/dist/index.mjs CHANGED
@@ -2,11 +2,11 @@ import { IntentGuardianOperations } from './chunk-YA67SM3A.mjs';
2
2
  export { ZERO_RATE_MANAGER_ID, classifyDelegationState, classifyIntentGuardianError, getDelegationRoute, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-YA67SM3A.mjs';
3
3
  import { NetworkError, ValidationError, APIError } from './chunk-3J4FPMPW.mjs';
4
4
  export { APIError, ContractError, ErrorCode, NetworkError, ValidationError, ZKP2PError } from './chunk-3J4FPMPW.mjs';
5
- import { OrchestratorRegistry_default, DISPUTE_PROTECTION_POLICY_ABI, DisputeProtectionPolicy_default, METHOD_NAME_TO_HASH, matchesQuotePaymentMethod, matchesPaymentMethodNameAndHash, MultiAttestationVerifier_default, getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, SUPPORTED_PAYMENT_METHOD_HASHES, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash, OrchestratorV3_default, DisputeNullifierRegistry_default, DisputeVerifier_default, WhitelistPolicy_default, StakeVault_default, IntentLifecycleHookV1_default } from './chunk-2NJU3MGV.mjs';
6
- export { DISPUTE_PROTECTION_POLICY_ABI2 as DISPUTE_PROTECTION_POLICY_ABI, ORCHESTRATOR_V3_ABI, PAYMENT_PLATFORMS, STAKE_VAULT_ABI, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getDisputeProtectionPolicyContract, getGatingServiceAddress, getIntentGuardianContract, getOrchestratorV3Contract, getPaymentMethodsCatalog, getRateManagerContracts, getStakeVaultContract, hasIntentGuardian, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-2NJU3MGV.mjs';
5
+ import { OrchestratorRegistry_default, DISPUTE_PROTECTION_POLICY_ABI, DisputeProtectionPolicy_default, METHOD_NAME_TO_HASH, matchesQuotePaymentMethod, matchesPaymentMethodNameAndHash, MultiAttestationVerifier_default, getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, SUPPORTED_PAYMENT_METHOD_HASHES, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash, OrchestratorV3_default, DisputeNullifierRegistry_default, DisputeVerifier_default, WhitelistPolicy_default, StakeVault_default, IntentLifecycleHookV1_default } from './chunk-JU7CL4RJ.mjs';
6
+ export { DISPUTE_PROTECTION_POLICY_ABI2 as DISPUTE_PROTECTION_POLICY_ABI, ORCHESTRATOR_V3_ABI, PAYMENT_PLATFORMS, STAKE_VAULT_ABI, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getDisputeProtectionPolicyContract, getGatingServiceAddress, getIntentGuardianContract, getOrchestratorV3Contract, getPaymentMethodsCatalog, getRateManagerContracts, getStakeVaultContract, hasIntentGuardian, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-JU7CL4RJ.mjs';
7
7
  import { Currency, currencyKeccak256 } from './chunk-ZB22BZLZ.mjs';
8
8
  export { Currency, currencyInfo, getCurrencyCodeFromHash, getCurrencyInfoFromCountryCode, getCurrencyInfoFromHash, isSupportedCurrencyHash, mapConversionRatesToOnchainMinRate } from './chunk-ZB22BZLZ.mjs';
9
- import { define_ZKP2P_SDK_BUILD_METADATA_default } from './chunk-BY77PPIP.mjs';
9
+ import { define_ZKP2P_SDK_BUILD_METADATA_default } from './chunk-HQACV3RF.mjs';
10
10
  import { keccak256, concatHex, encodeFunctionData, encodeAbiParameters, createPublicClient, http, isAddress, zeroAddress, formatUnits } from 'viem';
11
11
  import { hardhat, base } from 'viem/chains';
12
12
  import { createEncryptedBuyerTeeSessionMaterial as createEncryptedBuyerTeeSessionMaterial$1, createEncryptedSellerCredentialUpload } from '@zkp2p/zkp2p-attestation';
@@ -357,7 +357,7 @@ async function withRetry(fn, maxRetries = 3, delayMs = 1e3, timeoutMs, shouldRet
357
357
  for (let i = 0; i < maxRetries; i++) {
358
358
  try {
359
359
  if (timeoutMs) {
360
- const { withTimeout } = await import('./timeout-5O5AVII5.mjs');
360
+ const { withTimeout } = await import('./timeout-TYWTCDEG.mjs');
361
361
  return await withTimeout(fn(), timeoutMs, `Operation timed out after ${timeoutMs}ms`);
362
362
  }
363
363
  return await fn();
@@ -1927,7 +1927,7 @@ var ProtocolViewerReader = class {
1927
1927
  if (inputCount === null) {
1928
1928
  throw new Error("Configured ProtocolViewer ABI does not expose getDeposit");
1929
1929
  }
1930
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-2KR7YF7Z.mjs');
1930
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-OLQPDNPL.mjs');
1931
1931
  if (inputCount >= 3) {
1932
1932
  return tryContexts(
1933
1933
  protocolViewerContexts,
@@ -2013,7 +2013,7 @@ var ProtocolViewerReader = class {
2013
2013
  return Promise.all(ids.map((id) => this.config.host.getPvDepositById(id)));
2014
2014
  }
2015
2015
  const bn = ids.map((id) => typeof id === "bigint" ? id : parseRawDepositId(id));
2016
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-2KR7YF7Z.mjs');
2016
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-OLQPDNPL.mjs');
2017
2017
  if (inputCount >= 2) {
2018
2018
  const requests = ids.map((id, index) => ({
2019
2019
  index,
@@ -2118,7 +2118,7 @@ var ProtocolViewerReader = class {
2118
2118
  if (!protocolViewerAddress || !protocolViewerAbi || inputCount === null) {
2119
2119
  return this.config.host.getPvAccountDepositsFromIndexer(owner);
2120
2120
  }
2121
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-2KR7YF7Z.mjs');
2121
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-OLQPDNPL.mjs');
2122
2122
  const { address, abi } = this.config.host.requireProtocolViewer();
2123
2123
  if (inputCount >= 2) {
2124
2124
  const readAndFilter = async (raw2) => {
@@ -2189,7 +2189,7 @@ var ProtocolViewerReader = class {
2189
2189
  if (protocolViewerEntries.length === 0) {
2190
2190
  throw new Error("ProtocolViewer not available for this network");
2191
2191
  }
2192
- const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-2KR7YF7Z.mjs');
2192
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-OLQPDNPL.mjs');
2193
2193
  const intentsByHash = /* @__PURE__ */ new Map();
2194
2194
  let attemptedRead = false;
2195
2195
  let hadSuccessfulRead = false;
@@ -2297,7 +2297,7 @@ var ProtocolViewerReader = class {
2297
2297
  if (protocolViewerEntries.length === 0) {
2298
2298
  throw new Error("ProtocolViewer not available for this network");
2299
2299
  }
2300
- const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-2KR7YF7Z.mjs');
2300
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-OLQPDNPL.mjs');
2301
2301
  let lastError;
2302
2302
  for (const pvEntry of protocolViewerEntries) {
2303
2303
  const inputCount = this.pvEntryFunctionInputCount(pvEntry, "getIntent");
@@ -11454,6 +11454,25 @@ var Zkp2pClient = class {
11454
11454
  };
11455
11455
  }
11456
11456
  async prepareCreateDepositInternal(params) {
11457
+ let txOverrides = params.txOverrides;
11458
+ if (params.referralCode !== void 0) {
11459
+ if (!isValidReferralCode(params.referralCode)) {
11460
+ throw new Error("createDeposit referralCode must be six alphanumeric characters");
11461
+ }
11462
+ const referrer = params.txOverrides?.referrer;
11463
+ const referrers = referrer === void 0 ? [] : Array.isArray(referrer) ? referrer : [referrer];
11464
+ if (referrers.some(
11465
+ (code) => code.split(",").some((part) => part.trim().toLowerCase().startsWith("peer-ref-"))
11466
+ )) {
11467
+ throw new Error(
11468
+ "createDeposit referralCode cannot be combined with a peer-ref- marker in txOverrides.referrer"
11469
+ );
11470
+ }
11471
+ txOverrides = {
11472
+ ...params.txOverrides,
11473
+ referrer: [`peer-ref-${normalizeReferralCode(params.referralCode)}`, ...referrers]
11474
+ };
11475
+ }
11457
11476
  const hasOverrides = Boolean(
11458
11477
  params.paymentMethodsOverride || params.paymentMethodDataOverride || params.currenciesOverride
11459
11478
  );
@@ -11553,7 +11572,7 @@ var Zkp2pClient = class {
11553
11572
  }
11554
11573
  }
11555
11574
  });
11556
- const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-GXJH7J2W.mjs');
11575
+ const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-Y5AB4CKQ.mjs');
11557
11576
  currencies = mapConversionRatesToOnchainMinRate2(
11558
11577
  params.conversionRates,
11559
11578
  paymentMethods.length
@@ -11581,7 +11600,7 @@ var Zkp2pClient = class {
11581
11600
  const prepared = this.prepareEscrowTransaction({
11582
11601
  functionName: "createDeposit",
11583
11602
  args,
11584
- txOverrides: params.txOverrides,
11603
+ txOverrides,
11585
11604
  escrowAddress: escrowContext.address,
11586
11605
  escrowAbi: escrowContext.abi
11587
11606
  });