@zkp2p/sdk 0.11.0-rc.5 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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-Kk5IunVy.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-Kk5IunVy.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, 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-DmGhwFto.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-DmGhwFto.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-Kk5IunVy.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-Kk5IunVy.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, 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-DmGhwFto.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-DmGhwFto.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-R4MPJTU7.mjs';
6
- export { PAYMENT_PLATFORMS, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getGatingServiceAddress, getIntentGuardianContract, getPaymentMethodsCatalog, getRateManagerContracts, hasIntentGuardian, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-R4MPJTU7.mjs';
5
+ import { METHOD_NAME_TO_HASH, matchesQuotePaymentMethod, matchesPaymentMethodNameAndHash, getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, SUPPORTED_PAYMENT_METHOD_HASHES, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash } from './chunk-LPKFXAKY.mjs';
6
+ export { PAYMENT_PLATFORMS, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getGatingServiceAddress, getIntentGuardianContract, getPaymentMethodsCatalog, getRateManagerContracts, hasIntentGuardian, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-LPKFXAKY.mjs';
7
7
  import { Currency, currencyKeccak256 } from './chunk-ZFBH4HD7.mjs';
8
8
  export { Currency, currencyInfo, getCurrencyCodeFromHash, getCurrencyInfoFromCountryCode, getCurrencyInfoFromHash, isSupportedCurrencyHash, mapConversionRatesToOnchainMinRate } from './chunk-ZFBH4HD7.mjs';
9
9
  import './chunk-J5LGTIGS.mjs';
@@ -179,12 +179,15 @@ var ContractRouter = class {
179
179
  this.escrowV2Address ?? this.escrowAddress,
180
180
  primaryOrchestratorAddress
181
181
  );
182
+ const pairedOrchestratorAddresses = this.orchestratorAddresses.filter(
183
+ (address) => !isSameAddress(address, this.orchestratorV3Address)
184
+ );
182
185
  const configuredPairCount = Math.min(
183
186
  this.escrowAddresses.length,
184
- this.orchestratorAddresses.length
187
+ pairedOrchestratorAddresses.length
185
188
  );
186
189
  for (let index = 0; index < configuredPairCount; index += 1) {
187
- addEscrowOrchestratorPair(this.escrowAddresses[index], this.orchestratorAddresses[index]);
190
+ addEscrowOrchestratorPair(this.escrowAddresses[index], pairedOrchestratorAddresses[index]);
188
191
  }
189
192
  const resolveOrchestratorAbi = (address) => this.getOrchestratorContextByAddress(address)?.abi ?? (isSameAddress(address, this.orchestratorV3Address) ? this.orchestratorV3Abi : isSameAddress(address, this.orchestratorV2Address) ? this.orchestratorV2Abi ?? this.orchestratorAbi : this.orchestratorAbi ?? this.orchestratorV2Abi);
190
193
  const uniqueOrchestratorAddresses = /* @__PURE__ */ new Set();
@@ -849,7 +852,7 @@ async function sendTransactionWithAttribution(walletClient, request, referrer, o
849
852
  // src/utils/constants.ts
850
853
  var DEFAULT_BASE_API_URL = "https://api.zkp2p.xyz";
851
854
 
852
- // ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.4.0-rc.5_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/oracleFeeds/chainlink.json
855
+ // ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.4.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/oracleFeeds/chainlink.json
853
856
  var chainlink_default = {
854
857
  feeds: [
855
858
  {
@@ -1543,8 +1546,8 @@ var IntentOperations = class {
1543
1546
  return this.config.getRuntimeEnv() === "staging" ? "https://attestation-service-staging.zkp2p.xyz" : "https://attestation-service.zkp2p.xyz";
1544
1547
  }
1545
1548
  async getFulfillIntentInputs(intentHash, options) {
1546
- const isCurrentOrchestrator = !options?.orchestratorAddress || options.orchestratorAddress.toLowerCase() === this.config.getOrchestratorV2Address()?.toLowerCase();
1547
- if (isCurrentOrchestrator) {
1549
+ const isProtocolViewerOrchestrator = !options?.orchestratorAddress || options.orchestratorAddress.toLowerCase() === this.config.getOrchestratorV2Address()?.toLowerCase() || options.orchestratorAddress.toLowerCase() === this.config.getOrchestratorV3Address()?.toLowerCase();
1550
+ if (isProtocolViewerOrchestrator) {
1548
1551
  try {
1549
1552
  if (this.config.getProtocolViewerAddress() && this.config.getProtocolViewerAbi()) {
1550
1553
  const view = await this.config.host.getPvIntent(intentHash);
@@ -1895,7 +1898,7 @@ var ProtocolViewerReader = class {
1895
1898
  if (inputCount === null) {
1896
1899
  throw new Error("Configured ProtocolViewer ABI does not expose getDeposit");
1897
1900
  }
1898
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-EXBJYYDQ.mjs');
1901
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
1899
1902
  if (inputCount >= 3) {
1900
1903
  return tryContexts(
1901
1904
  protocolViewerContexts,
@@ -1981,7 +1984,7 @@ var ProtocolViewerReader = class {
1981
1984
  return Promise.all(ids.map((id) => this.config.host.getPvDepositById(id)));
1982
1985
  }
1983
1986
  const bn = ids.map((id) => typeof id === "bigint" ? id : parseRawDepositId(id));
1984
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-EXBJYYDQ.mjs');
1987
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
1985
1988
  if (inputCount >= 2) {
1986
1989
  const requests = ids.map((id, index) => ({
1987
1990
  index,
@@ -2086,7 +2089,7 @@ var ProtocolViewerReader = class {
2086
2089
  if (!protocolViewerAddress || !protocolViewerAbi || inputCount === null) {
2087
2090
  return this.config.host.getPvAccountDepositsFromIndexer(owner);
2088
2091
  }
2089
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-EXBJYYDQ.mjs');
2092
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
2090
2093
  const { address, abi } = this.config.host.requireProtocolViewer();
2091
2094
  if (inputCount >= 2) {
2092
2095
  const readAndFilter = async (raw2) => {
@@ -2157,7 +2160,7 @@ var ProtocolViewerReader = class {
2157
2160
  if (protocolViewerEntries.length === 0) {
2158
2161
  throw new Error("ProtocolViewer not available for this network");
2159
2162
  }
2160
- const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-EXBJYYDQ.mjs');
2163
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
2161
2164
  const intentsByHash = /* @__PURE__ */ new Map();
2162
2165
  let attemptedRead = false;
2163
2166
  let hadSuccessfulRead = false;
@@ -2260,12 +2263,12 @@ var ProtocolViewerReader = class {
2260
2263
  return left.intent.timestamp < right.intent.timestamp ? -1 : 1;
2261
2264
  });
2262
2265
  }
2263
- async getPvIntent(intentHash) {
2266
+ async getPvIntentWithContext(intentHash) {
2264
2267
  const protocolViewerEntries = this.config.getProtocolViewerEntries();
2265
2268
  if (protocolViewerEntries.length === 0) {
2266
2269
  throw new Error("ProtocolViewer not available for this network");
2267
2270
  }
2268
- const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-EXBJYYDQ.mjs');
2271
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-M7C2ICV3.mjs');
2269
2272
  let lastError;
2270
2273
  for (const pvEntry of protocolViewerEntries) {
2271
2274
  const inputCount = this.pvEntryFunctionInputCount(pvEntry, "getIntent");
@@ -2291,7 +2294,7 @@ var ProtocolViewerReader = class {
2291
2294
  });
2292
2295
  const parsed = parseIntentView2(raw);
2293
2296
  if (this.config.host.isProtocolViewerIntentPopulated(parsed)) {
2294
- return parsed;
2297
+ return { view: parsed, context };
2295
2298
  }
2296
2299
  lastError = new Error("Intent not found");
2297
2300
  } catch (readError) {
@@ -2308,7 +2311,7 @@ var ProtocolViewerReader = class {
2308
2311
  });
2309
2312
  const parsed = parseIntentView2(raw);
2310
2313
  if (this.config.host.isProtocolViewerIntentPopulated(parsed)) {
2311
- return parsed;
2314
+ return { view: parsed };
2312
2315
  }
2313
2316
  lastError = new Error("Intent not found");
2314
2317
  } catch (readError) {
@@ -2318,6 +2321,9 @@ var ProtocolViewerReader = class {
2318
2321
  }
2319
2322
  throw lastError ?? new Error("Intent not found");
2320
2323
  }
2324
+ async getPvIntent(intentHash) {
2325
+ return (await this.getPvIntentWithContext(intentHash)).view;
2326
+ }
2321
2327
  };
2322
2328
 
2323
2329
  // src/indexer/client.ts
@@ -7754,13 +7760,12 @@ var Zkp2pClient = class {
7754
7760
  throw new Error(`Failed to resolve intent routing for ${intentHash}: ${message}`);
7755
7761
  }
7756
7762
  }
7757
- async lookupIntentEscrowOnchain(intentHash) {
7758
- try {
7759
- const view = await this.getPvIntent(intentHash);
7760
- return this.normalizeAddress(view.intent.escrow);
7761
- } catch {
7762
- return void 0;
7763
- }
7763
+ async lookupIntentRoutingOnchain(intentHash) {
7764
+ const result = await this._pvReader.getPvIntentWithContext(intentHash);
7765
+ return {
7766
+ orchestratorAddress: this.normalizeAddress(result.context?.orchestrator),
7767
+ escrowAddress: this.normalizeAddress(result.context?.escrow) ?? this.normalizeAddress(result.view.intent.escrow)
7768
+ };
7764
7769
  }
7765
7770
  warnOrchestratorFallback(intentHash, source, error) {
7766
7771
  const message = error instanceof Error ? error.message : "Unknown routing error";
@@ -7772,31 +7777,22 @@ var Zkp2pClient = class {
7772
7777
  const explicit = this.getOrchestratorContextByAddress(options?.orchestratorAddress);
7773
7778
  if (explicit) return explicit;
7774
7779
  if (options?.orchestratorAddress) {
7775
- const addr = options.orchestratorAddress;
7776
- const abi = this.orchestratorV2Abi ?? this.orchestratorAbi;
7777
- if (!abi) throw new Error("Orchestrator not available");
7778
- return { address: addr, abi, version: "v2" };
7780
+ throw new Error(`Unsupported orchestrator address: ${options.orchestratorAddress}`);
7779
7781
  }
7780
7782
  if (options?.intentHash) {
7781
7783
  try {
7782
7784
  const routing = await this.lookupIntentRouting(options.intentHash);
7783
7785
  const fromIntent = this.getOrchestratorContextByAddress(routing.orchestratorAddress);
7784
7786
  if (fromIntent) return fromIntent;
7785
- if (routing.escrowAddress) {
7786
- const fromIntentEscrow = this.resolveOrchestratorForEscrow(routing.escrowAddress);
7787
- if (fromIntentEscrow) return fromIntentEscrow;
7788
- }
7789
7787
  } catch (error) {
7790
7788
  this.warnOrchestratorFallback(options.intentHash, "Indexer intent routing lookup", error);
7791
7789
  }
7792
7790
  try {
7793
- const onchainEscrow = await this.lookupIntentEscrowOnchain(options.intentHash);
7794
- if (onchainEscrow) {
7795
- const fromOnchainEscrow = this.resolveOrchestratorForEscrow(onchainEscrow);
7796
- if (fromOnchainEscrow) return fromOnchainEscrow;
7797
- }
7791
+ const routing = await this.lookupIntentRoutingOnchain(options.intentHash);
7792
+ const fromIntent = this.getOrchestratorContextByAddress(routing.orchestratorAddress);
7793
+ if (fromIntent) return fromIntent;
7798
7794
  } catch (error) {
7799
- this.warnOrchestratorFallback(options.intentHash, "On-chain intent escrow lookup", error);
7795
+ this.warnOrchestratorFallback(options.intentHash, "On-chain intent routing lookup", error);
7800
7796
  }
7801
7797
  }
7802
7798
  if (options?.escrowAddress) {
@@ -7804,19 +7800,9 @@ var Zkp2pClient = class {
7804
7800
  if (fromEscrow) return fromEscrow;
7805
7801
  }
7806
7802
  if (options?.intentHash) {
7807
- const primaryAddress = this.orchestratorV2Address ?? this.orchestratorAddress;
7808
- const primaryContext = this.getOrchestratorContextByAddress(primaryAddress);
7809
- if (primaryContext) return primaryContext;
7810
- if (primaryAddress) {
7811
- const primaryAbi = this.orchestratorV2Abi ?? this.orchestratorAbi;
7812
- if (primaryAbi) {
7813
- return {
7814
- address: primaryAddress,
7815
- abi: primaryAbi,
7816
- version: "v2"
7817
- };
7818
- }
7819
- }
7803
+ throw new Error(
7804
+ `Unable to resolve orchestrator for intent ${options.intentHash}; indexer and on-chain routing did not identify a configured orchestrator`
7805
+ );
7820
7806
  }
7821
7807
  const fallback = this.resolveOrchestratorForEscrow();
7822
7808
  if (fallback) return fallback;