@zkp2p/sdk 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, b as SellerCredentialUploadInput, c as SellerPlatform, d as SellerCredentialAttestationRuntime, e as AttestationServiceSellerCredentialUploadResponse, B as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, f as ConfirmPayPalForwardingResponse, G as GoogleOAuthSellerCredentialPlatform, g as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, h as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, i as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, j as PostDepositDetailsResponse, k as GetPayeeDetailsRequest, l as GetPayeeDetailsResponse, m as GetOwnerDepositsRequest, n as GetOwnerDepositsResponse, o as GetTakerTierRequest, p as GetTakerTierResponse, q as GetDepositBundleParams, r as ApiAdapterOptions, s as GetDepositBundleResponse, t as GetOrderbookParams, u as GetOrderbookResponse, v as CurrencyType, w as PaymentMethodCatalog, T as TxOverrides } from './vaultUtils-BL8tzsmH.mjs';
2
- export { K as ActionCallback, aj as ApiDeposit, aq as ApiIntentStatus, b1 as AttestationServiceSellerCredentialProbeResponse, a$ as AttestationServiceSellerVerifyResponse, H as AuthorizationTokenProvider, cG as BatchResult, $ as BestByPlatformResponseObject, b2 as BuyerTeePaymentParams, b3 as BuyerTeePaymentProofInput, b4 as BuyerTeeSessionMaterial, z as CancelIntentMethodParams, _ as CancelIntentParams, aJ as CashAppCredentialUploadInput, aA as CashAppSessionMaterial, bc as ConfirmPayPalForwardingRequest, M as CreateDepositConversionRate, L as CreateDepositParams, b5 as CuratorSellerCredentialStatusResponse, b6 as CuratorSellerVerifyResponse, c9 as Currency, cg as CurrencyData, cF as DelegationDepositTarget, cD as DelegationRoute, cE as DelegationState, cr as Deposit, ct as DepositCurrency, bq as DepositIntentStatistics, am as DepositStatus, ak as DepositVerifier, al as DepositVerifierCurrency, bn as DepositVerifierData, cq as DepositView, af as FiatResponse, b0 as FulfillIntentAttestationResponse, F as FulfillIntentMethodParams, X as FulfillIntentParams, a0 as GetBestByPlatformResponse, a1 as GetBestByPlatformResponseObject, an as GetDepositByIdRequest, ao as GetDepositByIdResponse, av as GetIntentByHashRequest, aw as GetIntentByHashResponse, at as GetIntentsByDepositRequest, au as GetIntentsByDepositResponse, a5 as GetNearbyQuote, a6 as GetNearbySuggestions, ar as GetOwnerIntentsRequest, as as GetOwnerIntentsResponse, a2 as GetPlatformQuote, a7 as GetQuoteResponse, a8 as GetQuoteResponseObject, a9 as GetQuoteSingleResponse, bb as GetSellerCredentialStatusParams, bi as IdentityAttestationActionType, bj as IdentityAttestationParams, bx as IndexerClient, c3 as IndexerDeploymentEnv, bD as IndexerDeposit, bU as IndexerDepositDailySnapshot, bW as IndexerDepositFilter, bT as IndexerDepositFundActivity, bV as IndexerDepositFundActivityType, bZ as IndexerDepositOrderDirection, bY as IndexerDepositOrderField, bX as IndexerDepositPagination, bG as IndexerDepositPaymentMethod, bz as IndexerDepositService, c6 as IndexerFulfillmentAndPaymentResponse, c4 as IndexerFulfillmentRecord, bE as IndexerIntentFulfilled, bF as IndexerIntentFulfillmentAmounts, bI as IndexerIntentStatus, bM as IndexerManagerAggregateStats, bO as IndexerManagerDailySnapshot, bN as IndexerManagerStats, bR as IndexerManualRateUpdate, bH as IndexerMethodCurrency, bS as IndexerOracleConfigUpdate, c5 as IndexerPaymentVerifiedRecord, bJ as IndexerRateManager, bL as IndexerRateManagerDelegation, c0 as IndexerRateManagerDelegationPagination, bQ as IndexerRateManagerDetail, b_ as IndexerRateManagerFilter, bP as IndexerRateManagerListItem, c2 as IndexerRateManagerOrderDirection, c1 as IndexerRateManagerOrderField, b$ as IndexerRateManagerPagination, bK as IndexerRateManagerRate, bA as IndexerRateManagerService, ap as Intent, cv as IntentView, bk as MakerIdentityAttestationRequestBody, bl as MakerIdentityPlatform, ah as NearbyQuote, ai as NearbySuggestions, Z as OfframpClient, bm as OnchainCurrency, cw as OnchainIntent, bp as OrderStats, bw as OrderbookEntry, c7 as PAYMENT_PLATFORMS, aL as PayPalCredentialUploadInput, bd as PayPalForwardingConfirmationErrorCode, aG as PayPalGoogleOAuthSellerCredentialUploadBody, aF as PayPalSessionMaterial, cs as PaymentMethodData, c8 as PaymentPlatformType, bu as PlatformLimit, a3 as PlatformQuote, bv as PlatformRiskLevel, bo as PreparedTransaction, ae as QuoteFeesResponse, ad as QuoteIntentResponse, a4 as QuoteRequest, aa as QuoteResponse, ab as QuoteResponseObject, ac as QuoteSingleResponse, N as Range, cu as ReferralFee, ax as RegisterPayeeDetailsRequest, ay as RegisterPayeeDetailsResponse, b7 as RegisteredSellerCredentialPlatform, b9 as RegisteredUploadSellerCredentialParams, Y as ReleaseFundsToPayerParams, cl as RuntimeEnv, aZ as SellerAttestationOutput, aN as SellerCiphertextBundle, aS as SellerCredentialBundleUpload, a_ as SellerCredentialProbeResponse, aU as SellerCredentialStatus, aT as SellerCredentialStatusValue, aM as SellerCredentialUploadInputByPlatform, aY as SellerPaymentTypedDataValue, aR as SellerProbeInput, aO as SellerSignedCiphertextBundle, aW as SellerTypedDataField, aX as SellerTypedDataSpec, aQ as SellerVerifyInput, aP as SellerVerifyIntentDetails, aV as SellerVerifyProxyBody, cI as SendBatchFn, cH as SendTransactionFn, y as SignalIntentMethodParams, O as SignalIntentParams, x as SignalIntentReferralFee, br as TakerTier, bt as TakerTierLevel, bs as TakerTierStats, J as TimeoutConfig, ag as TokenResponse, bg as UploadGoogleOAuthSellerCredentialParams, be as UploadPayPalGoogleOAuthSellerCredentialParams, ba as UploadSellerCredentialOptions, b8 as UploadSellerCredentialParams, bf as UploadVenmoGoogleOAuthSellerCredentialParams, aI as VenmoCredentialUploadInput, aH as VenmoGoogleOAuthSellerCredentialUploadBody, az as VenmoSessionMaterial, bh as VerifySellerPaymentParams, aK as WiseCredentialUploadInput, aC as WiseProfileInfo, aE as WiseProfileNotFound, aD as WiseProfileSelectionRequired, aB as WiseSessionMaterial, W as WithdrawDepositParams, cx as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, E as Zkp2pClientOptions, cC as classifyDelegationState, bB as compareEventCursorIdsByRecency, ca as currencyInfo, by as defaultIndexerEndpoint, co as enrichPvDepositView, cp as enrichPvIntentView, bC as fetchIndexerFulfillmentAndPayment, ch as getContracts, cd as getCurrencyCodeFromHash, cc as getCurrencyInfoFromCountryCode, cb as getCurrencyInfoFromHash, cB as getDelegationRoute, ck as getGatingServiceAddress, cj as getPaymentMethodsCatalog, ci as getRateManagerContracts, ce as isSupportedCurrencyHash, cy as isZeroRateManagerId, cf as mapConversionRatesToOnchainMinRate, cz as normalizeRateManagerId, cA as normalizeRegistry, cm as parseDepositView, cn as parseIntentView } from './vaultUtils-BL8tzsmH.mjs';
1
+ import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, b as SellerCredentialUploadInput, c as SellerCredentialUploadPlatform, d as SellerCredentialAttestationRuntime, e as AttestationServiceSellerCredentialUploadResponse, B as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, G as GoogleOAuthSellerCredentialPlatform, f as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, g as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, h as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, i as PostDepositDetailsResponse, j as GetPayeeDetailsRequest, k as GetPayeeDetailsResponse, l as GetOwnerDepositsRequest, m as GetOwnerDepositsResponse, n as GetTakerTierRequest, o as GetTakerTierResponse, p as GetDepositBundleParams, q as ApiAdapterOptions, r as GetDepositBundleResponse, s as GetOrderbookParams, t as GetOrderbookResponse, u as CurrencyType, v as PaymentMethodCatalog, T as TxOverrides } from './vaultUtils-CtNcKlpg.mjs';
2
+ export { J as ActionCallback, ai as ApiDeposit, ap as ApiIntentStatus, a$ as AttestationServiceSellerCredentialProbeResponse, aZ as AttestationServiceSellerVerifyResponse, E as AuthorizationTokenProvider, cE as BatchResult, _ as BestByPlatformResponseObject, b0 as BuyerTeePaymentParams, b1 as BuyerTeePaymentProofInput, b2 as BuyerTeeSessionMaterial, y as CancelIntentMethodParams, Y as CancelIntentParams, aI as CashAppCredentialUploadInput, aA as CashAppSessionMaterial, L as CreateDepositConversionRate, K as CreateDepositParams, b3 as CuratorSellerCredentialStatusResponse, b4 as CuratorSellerVerifyResponse, c7 as Currency, ce as CurrencyData, cD as DelegationDepositTarget, cB as DelegationRoute, cC as DelegationState, cp as Deposit, cr as DepositCurrency, bo as DepositIntentStatistics, al as DepositStatus, aj as DepositVerifier, ak as DepositVerifierCurrency, bl as DepositVerifierData, co as DepositView, ae as FiatResponse, a_ as FulfillIntentAttestationResponse, F as FulfillIntentMethodParams, O as FulfillIntentParams, $ as GetBestByPlatformResponse, a0 as GetBestByPlatformResponseObject, am as GetDepositByIdRequest, an as GetDepositByIdResponse, au as GetIntentByHashRequest, av as GetIntentByHashResponse, as as GetIntentsByDepositRequest, at as GetIntentsByDepositResponse, a4 as GetNearbyQuote, a5 as GetNearbySuggestions, aq as GetOwnerIntentsRequest, ar as GetOwnerIntentsResponse, a1 as GetPlatformQuote, a6 as GetQuoteResponse, a7 as GetQuoteResponseObject, a8 as GetQuoteSingleResponse, b9 as GetSellerCredentialStatusParams, be as IdentityAttestationActionType, bf as IdentityAttestationOutput, bg as IdentityAttestationOutputFor, bh as IdentityAttestationParams, bv as IndexerClient, c1 as IndexerDeploymentEnv, bB as IndexerDeposit, bS as IndexerDepositDailySnapshot, bU as IndexerDepositFilter, bR as IndexerDepositFundActivity, bT as IndexerDepositFundActivityType, bX as IndexerDepositOrderDirection, bW as IndexerDepositOrderField, bV as IndexerDepositPagination, bE as IndexerDepositPaymentMethod, bx as IndexerDepositService, c4 as IndexerFulfillmentAndPaymentResponse, c2 as IndexerFulfillmentRecord, bC as IndexerIntentFulfilled, bD as IndexerIntentFulfillmentAmounts, bG as IndexerIntentStatus, bK as IndexerManagerAggregateStats, bM as IndexerManagerDailySnapshot, bL as IndexerManagerStats, bP as IndexerManualRateUpdate, bF as IndexerMethodCurrency, bQ as IndexerOracleConfigUpdate, c3 as IndexerPaymentVerifiedRecord, bH as IndexerRateManager, bJ as IndexerRateManagerDelegation, b_ as IndexerRateManagerDelegationPagination, bO as IndexerRateManagerDetail, bY as IndexerRateManagerFilter, bN as IndexerRateManagerListItem, c0 as IndexerRateManagerOrderDirection, b$ as IndexerRateManagerOrderField, bZ as IndexerRateManagerPagination, bI as IndexerRateManagerRate, by as IndexerRateManagerService, ao as Intent, ct as IntentView, bi as MakerIdentityAttestationRequestBody, bj as MakerIdentityPlatform, ag as NearbyQuote, ah as NearbySuggestions, Z as OfframpClient, bk as OnchainCurrency, cu as OnchainIntent, bn as OrderStats, bu as OrderbookEntry, c5 as PAYMENT_PLATFORMS, aF as PayPalGoogleOAuthSellerCredentialUploadBody, cq as PaymentMethodData, c6 as PaymentPlatformType, bs as PlatformLimit, a2 as PlatformQuote, bt as PlatformRiskLevel, bm as PreparedTransaction, ad as QuoteFeesResponse, ac as QuoteIntentResponse, a3 as QuoteRequest, a9 as QuoteResponse, aa as QuoteResponseObject, ab as QuoteSingleResponse, M as Range, cs as ReferralFee, aw as RegisterPayeeDetailsRequest, ax as RegisterPayeeDetailsResponse, b5 as RegisteredSellerCredentialPlatform, b7 as RegisteredUploadSellerCredentialParams, X as ReleaseFundsToPayerParams, cj as RuntimeEnv, aX as SellerAttestationOutput, aL as SellerCiphertextBundle, aQ as SellerCredentialBundleUpload, aY as SellerCredentialProbeResponse, aS as SellerCredentialStatus, aR as SellerCredentialStatusValue, aK as SellerCredentialUploadInputByPlatform, aW as SellerPaymentTypedDataValue, ay as SellerPlatform, aP as SellerProbeInput, aM as SellerSignedCiphertextBundle, aU as SellerTypedDataField, aV as SellerTypedDataSpec, aO as SellerVerifyInput, aN as SellerVerifyIntentDetails, aT as SellerVerifyProxyBody, cG as SendBatchFn, cF as SendTransactionFn, x as SignalIntentMethodParams, N as SignalIntentParams, w as SignalIntentReferralFee, bp as TakerTier, br as TakerTierLevel, bq as TakerTierStats, H as TimeoutConfig, af as TokenResponse, bc as UploadGoogleOAuthSellerCredentialParams, ba as UploadPayPalGoogleOAuthSellerCredentialParams, b8 as UploadSellerCredentialOptions, b6 as UploadSellerCredentialParams, bb as UploadVenmoGoogleOAuthSellerCredentialParams, aH as VenmoCredentialUploadInput, aG as VenmoGoogleOAuthSellerCredentialUploadBody, az as VenmoSessionMaterial, bd as VerifySellerPaymentParams, aJ as WiseCredentialUploadInput, aC as WiseProfileInfo, aE as WiseProfileNotFound, aD as WiseProfileSelectionRequired, aB as WiseSessionMaterial, W as WithdrawDepositParams, cv as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, z as Zkp2pClientOptions, cA as classifyDelegationState, bz as compareEventCursorIdsByRecency, c8 as currencyInfo, bw as defaultIndexerEndpoint, cm as enrichPvDepositView, cn as enrichPvIntentView, bA as fetchIndexerFulfillmentAndPayment, cf as getContracts, cb as getCurrencyCodeFromHash, ca as getCurrencyInfoFromCountryCode, c9 as getCurrencyInfoFromHash, cz as getDelegationRoute, ci as getGatingServiceAddress, ch as getPaymentMethodsCatalog, cg as getRateManagerContracts, cc as isSupportedCurrencyHash, cw as isZeroRateManagerId, cd as mapConversionRatesToOnchainMinRate, cx as normalizeRateManagerId, cy as normalizeRegistry, ck as parseDepositView, cl as parseIntentView } from './vaultUtils-CtNcKlpg.mjs';
3
3
  import { Address, Hash, Hex, WalletClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
- export { IdentityActionType, IdentityActionTypeByPlatform, IdentityAttestationOutput, IdentityAttestationOutputFor, IdentityParamsByPlatform, IdentityPlatform } from '@zkp2p/zkp2p-attestation';
5
+ export { IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
6
6
  import '@zkp2p/indexer-schema';
7
7
 
8
8
  interface EscrowRange {
@@ -208,7 +208,7 @@ declare function convertIndexerIntentsToEscrowViews(intents: IntentEntity[], dep
208
208
 
209
209
  declare function apiRequestIdentityAttestation(payload: IdentityAttestationRequestBody, attestationServiceUrl: string, platform: string, actionType: string): Promise<AttestationServiceIdentityResponse>;
210
210
  declare function createEncryptedBuyerTeeSessionMaterial({ actionType, attestationRuntime, attestationServiceUrl, platform, sessionMaterial, timeoutMs, }: BuyerTeeSessionMaterialEncryptionInput): Promise<string>;
211
- declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime): Promise<AttestationServiceSellerCredentialUploadResponse>;
211
+ declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerCredentialUploadPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime): Promise<AttestationServiceSellerCredentialUploadResponse>;
212
212
 
213
213
  /**
214
214
  * Store an already-encrypted seller credential bundle with curator.
@@ -224,14 +224,6 @@ declare function apiGetOwnerDeposits(req: GetOwnerDepositsRequest, apiKey: strin
224
224
  * Get taker tier information for a specific address.
225
225
  */
226
226
  declare function apiGetTakerTier(req: GetTakerTierRequest, apiKey: string | undefined, baseApiUrl: string, timeoutMs?: number): Promise<GetTakerTierResponse>;
227
- declare function apiConfirmPayPalForwarding(payeeDetails: Hash, body: {
228
- payeeEmail: string;
229
- forwardingInitiatorEmail: string;
230
- }, baseApiUrl: string, opts?: {
231
- apiKey?: string;
232
- authToken?: string;
233
- timeoutMs?: number;
234
- }): Promise<ConfirmPayPalForwardingResponse>;
235
227
  declare function apiUploadGoogleOAuthSellerCredential<P extends GoogleOAuthSellerCredentialPlatform>(processorName: P, payeeDetails: Hash, body: GoogleOAuthSellerCredentialUploadBodyByPlatform[P], baseApiUrl: string, opts?: {
236
228
  apiKey?: string;
237
229
  authToken?: string;
@@ -739,4 +731,4 @@ declare class ContractError extends ZKP2PError {
739
731
  constructor(message: string, details?: unknown);
740
732
  }
741
733
 
742
- export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ConfirmPayPalForwardingResponse, ContractError, ContractRouter, type ContractRouterConfig, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GetTakerTierRequest, GetTakerTierResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataProviderConfig, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiConfirmPayPalForwarding, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiRequestIdentityAttestation, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
734
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GetTakerTierRequest, GetTakerTierResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataProviderConfig, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiRequestIdentityAttestation, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, b as SellerCredentialUploadInput, c as SellerPlatform, d as SellerCredentialAttestationRuntime, e as AttestationServiceSellerCredentialUploadResponse, B as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, f as ConfirmPayPalForwardingResponse, G as GoogleOAuthSellerCredentialPlatform, g as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, h as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, i as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, j as PostDepositDetailsResponse, k as GetPayeeDetailsRequest, l as GetPayeeDetailsResponse, m as GetOwnerDepositsRequest, n as GetOwnerDepositsResponse, o as GetTakerTierRequest, p as GetTakerTierResponse, q as GetDepositBundleParams, r as ApiAdapterOptions, s as GetDepositBundleResponse, t as GetOrderbookParams, u as GetOrderbookResponse, v as CurrencyType, w as PaymentMethodCatalog, T as TxOverrides } from './vaultUtils-BL8tzsmH.js';
2
- export { K as ActionCallback, aj as ApiDeposit, aq as ApiIntentStatus, b1 as AttestationServiceSellerCredentialProbeResponse, a$ as AttestationServiceSellerVerifyResponse, H as AuthorizationTokenProvider, cG as BatchResult, $ as BestByPlatformResponseObject, b2 as BuyerTeePaymentParams, b3 as BuyerTeePaymentProofInput, b4 as BuyerTeeSessionMaterial, z as CancelIntentMethodParams, _ as CancelIntentParams, aJ as CashAppCredentialUploadInput, aA as CashAppSessionMaterial, bc as ConfirmPayPalForwardingRequest, M as CreateDepositConversionRate, L as CreateDepositParams, b5 as CuratorSellerCredentialStatusResponse, b6 as CuratorSellerVerifyResponse, c9 as Currency, cg as CurrencyData, cF as DelegationDepositTarget, cD as DelegationRoute, cE as DelegationState, cr as Deposit, ct as DepositCurrency, bq as DepositIntentStatistics, am as DepositStatus, ak as DepositVerifier, al as DepositVerifierCurrency, bn as DepositVerifierData, cq as DepositView, af as FiatResponse, b0 as FulfillIntentAttestationResponse, F as FulfillIntentMethodParams, X as FulfillIntentParams, a0 as GetBestByPlatformResponse, a1 as GetBestByPlatformResponseObject, an as GetDepositByIdRequest, ao as GetDepositByIdResponse, av as GetIntentByHashRequest, aw as GetIntentByHashResponse, at as GetIntentsByDepositRequest, au as GetIntentsByDepositResponse, a5 as GetNearbyQuote, a6 as GetNearbySuggestions, ar as GetOwnerIntentsRequest, as as GetOwnerIntentsResponse, a2 as GetPlatformQuote, a7 as GetQuoteResponse, a8 as GetQuoteResponseObject, a9 as GetQuoteSingleResponse, bb as GetSellerCredentialStatusParams, bi as IdentityAttestationActionType, bj as IdentityAttestationParams, bx as IndexerClient, c3 as IndexerDeploymentEnv, bD as IndexerDeposit, bU as IndexerDepositDailySnapshot, bW as IndexerDepositFilter, bT as IndexerDepositFundActivity, bV as IndexerDepositFundActivityType, bZ as IndexerDepositOrderDirection, bY as IndexerDepositOrderField, bX as IndexerDepositPagination, bG as IndexerDepositPaymentMethod, bz as IndexerDepositService, c6 as IndexerFulfillmentAndPaymentResponse, c4 as IndexerFulfillmentRecord, bE as IndexerIntentFulfilled, bF as IndexerIntentFulfillmentAmounts, bI as IndexerIntentStatus, bM as IndexerManagerAggregateStats, bO as IndexerManagerDailySnapshot, bN as IndexerManagerStats, bR as IndexerManualRateUpdate, bH as IndexerMethodCurrency, bS as IndexerOracleConfigUpdate, c5 as IndexerPaymentVerifiedRecord, bJ as IndexerRateManager, bL as IndexerRateManagerDelegation, c0 as IndexerRateManagerDelegationPagination, bQ as IndexerRateManagerDetail, b_ as IndexerRateManagerFilter, bP as IndexerRateManagerListItem, c2 as IndexerRateManagerOrderDirection, c1 as IndexerRateManagerOrderField, b$ as IndexerRateManagerPagination, bK as IndexerRateManagerRate, bA as IndexerRateManagerService, ap as Intent, cv as IntentView, bk as MakerIdentityAttestationRequestBody, bl as MakerIdentityPlatform, ah as NearbyQuote, ai as NearbySuggestions, Z as OfframpClient, bm as OnchainCurrency, cw as OnchainIntent, bp as OrderStats, bw as OrderbookEntry, c7 as PAYMENT_PLATFORMS, aL as PayPalCredentialUploadInput, bd as PayPalForwardingConfirmationErrorCode, aG as PayPalGoogleOAuthSellerCredentialUploadBody, aF as PayPalSessionMaterial, cs as PaymentMethodData, c8 as PaymentPlatformType, bu as PlatformLimit, a3 as PlatformQuote, bv as PlatformRiskLevel, bo as PreparedTransaction, ae as QuoteFeesResponse, ad as QuoteIntentResponse, a4 as QuoteRequest, aa as QuoteResponse, ab as QuoteResponseObject, ac as QuoteSingleResponse, N as Range, cu as ReferralFee, ax as RegisterPayeeDetailsRequest, ay as RegisterPayeeDetailsResponse, b7 as RegisteredSellerCredentialPlatform, b9 as RegisteredUploadSellerCredentialParams, Y as ReleaseFundsToPayerParams, cl as RuntimeEnv, aZ as SellerAttestationOutput, aN as SellerCiphertextBundle, aS as SellerCredentialBundleUpload, a_ as SellerCredentialProbeResponse, aU as SellerCredentialStatus, aT as SellerCredentialStatusValue, aM as SellerCredentialUploadInputByPlatform, aY as SellerPaymentTypedDataValue, aR as SellerProbeInput, aO as SellerSignedCiphertextBundle, aW as SellerTypedDataField, aX as SellerTypedDataSpec, aQ as SellerVerifyInput, aP as SellerVerifyIntentDetails, aV as SellerVerifyProxyBody, cI as SendBatchFn, cH as SendTransactionFn, y as SignalIntentMethodParams, O as SignalIntentParams, x as SignalIntentReferralFee, br as TakerTier, bt as TakerTierLevel, bs as TakerTierStats, J as TimeoutConfig, ag as TokenResponse, bg as UploadGoogleOAuthSellerCredentialParams, be as UploadPayPalGoogleOAuthSellerCredentialParams, ba as UploadSellerCredentialOptions, b8 as UploadSellerCredentialParams, bf as UploadVenmoGoogleOAuthSellerCredentialParams, aI as VenmoCredentialUploadInput, aH as VenmoGoogleOAuthSellerCredentialUploadBody, az as VenmoSessionMaterial, bh as VerifySellerPaymentParams, aK as WiseCredentialUploadInput, aC as WiseProfileInfo, aE as WiseProfileNotFound, aD as WiseProfileSelectionRequired, aB as WiseSessionMaterial, W as WithdrawDepositParams, cx as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, E as Zkp2pClientOptions, cC as classifyDelegationState, bB as compareEventCursorIdsByRecency, ca as currencyInfo, by as defaultIndexerEndpoint, co as enrichPvDepositView, cp as enrichPvIntentView, bC as fetchIndexerFulfillmentAndPayment, ch as getContracts, cd as getCurrencyCodeFromHash, cc as getCurrencyInfoFromCountryCode, cb as getCurrencyInfoFromHash, cB as getDelegationRoute, ck as getGatingServiceAddress, cj as getPaymentMethodsCatalog, ci as getRateManagerContracts, ce as isSupportedCurrencyHash, cy as isZeroRateManagerId, cf as mapConversionRatesToOnchainMinRate, cz as normalizeRateManagerId, cA as normalizeRegistry, cm as parseDepositView, cn as parseIntentView } from './vaultUtils-BL8tzsmH.js';
1
+ import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, b as SellerCredentialUploadInput, c as SellerCredentialUploadPlatform, d as SellerCredentialAttestationRuntime, e as AttestationServiceSellerCredentialUploadResponse, B as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, G as GoogleOAuthSellerCredentialPlatform, f as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, g as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, h as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, i as PostDepositDetailsResponse, j as GetPayeeDetailsRequest, k as GetPayeeDetailsResponse, l as GetOwnerDepositsRequest, m as GetOwnerDepositsResponse, n as GetTakerTierRequest, o as GetTakerTierResponse, p as GetDepositBundleParams, q as ApiAdapterOptions, r as GetDepositBundleResponse, s as GetOrderbookParams, t as GetOrderbookResponse, u as CurrencyType, v as PaymentMethodCatalog, T as TxOverrides } from './vaultUtils-CtNcKlpg.js';
2
+ export { J as ActionCallback, ai as ApiDeposit, ap as ApiIntentStatus, a$ as AttestationServiceSellerCredentialProbeResponse, aZ as AttestationServiceSellerVerifyResponse, E as AuthorizationTokenProvider, cE as BatchResult, _ as BestByPlatformResponseObject, b0 as BuyerTeePaymentParams, b1 as BuyerTeePaymentProofInput, b2 as BuyerTeeSessionMaterial, y as CancelIntentMethodParams, Y as CancelIntentParams, aI as CashAppCredentialUploadInput, aA as CashAppSessionMaterial, L as CreateDepositConversionRate, K as CreateDepositParams, b3 as CuratorSellerCredentialStatusResponse, b4 as CuratorSellerVerifyResponse, c7 as Currency, ce as CurrencyData, cD as DelegationDepositTarget, cB as DelegationRoute, cC as DelegationState, cp as Deposit, cr as DepositCurrency, bo as DepositIntentStatistics, al as DepositStatus, aj as DepositVerifier, ak as DepositVerifierCurrency, bl as DepositVerifierData, co as DepositView, ae as FiatResponse, a_ as FulfillIntentAttestationResponse, F as FulfillIntentMethodParams, O as FulfillIntentParams, $ as GetBestByPlatformResponse, a0 as GetBestByPlatformResponseObject, am as GetDepositByIdRequest, an as GetDepositByIdResponse, au as GetIntentByHashRequest, av as GetIntentByHashResponse, as as GetIntentsByDepositRequest, at as GetIntentsByDepositResponse, a4 as GetNearbyQuote, a5 as GetNearbySuggestions, aq as GetOwnerIntentsRequest, ar as GetOwnerIntentsResponse, a1 as GetPlatformQuote, a6 as GetQuoteResponse, a7 as GetQuoteResponseObject, a8 as GetQuoteSingleResponse, b9 as GetSellerCredentialStatusParams, be as IdentityAttestationActionType, bf as IdentityAttestationOutput, bg as IdentityAttestationOutputFor, bh as IdentityAttestationParams, bv as IndexerClient, c1 as IndexerDeploymentEnv, bB as IndexerDeposit, bS as IndexerDepositDailySnapshot, bU as IndexerDepositFilter, bR as IndexerDepositFundActivity, bT as IndexerDepositFundActivityType, bX as IndexerDepositOrderDirection, bW as IndexerDepositOrderField, bV as IndexerDepositPagination, bE as IndexerDepositPaymentMethod, bx as IndexerDepositService, c4 as IndexerFulfillmentAndPaymentResponse, c2 as IndexerFulfillmentRecord, bC as IndexerIntentFulfilled, bD as IndexerIntentFulfillmentAmounts, bG as IndexerIntentStatus, bK as IndexerManagerAggregateStats, bM as IndexerManagerDailySnapshot, bL as IndexerManagerStats, bP as IndexerManualRateUpdate, bF as IndexerMethodCurrency, bQ as IndexerOracleConfigUpdate, c3 as IndexerPaymentVerifiedRecord, bH as IndexerRateManager, bJ as IndexerRateManagerDelegation, b_ as IndexerRateManagerDelegationPagination, bO as IndexerRateManagerDetail, bY as IndexerRateManagerFilter, bN as IndexerRateManagerListItem, c0 as IndexerRateManagerOrderDirection, b$ as IndexerRateManagerOrderField, bZ as IndexerRateManagerPagination, bI as IndexerRateManagerRate, by as IndexerRateManagerService, ao as Intent, ct as IntentView, bi as MakerIdentityAttestationRequestBody, bj as MakerIdentityPlatform, ag as NearbyQuote, ah as NearbySuggestions, Z as OfframpClient, bk as OnchainCurrency, cu as OnchainIntent, bn as OrderStats, bu as OrderbookEntry, c5 as PAYMENT_PLATFORMS, aF as PayPalGoogleOAuthSellerCredentialUploadBody, cq as PaymentMethodData, c6 as PaymentPlatformType, bs as PlatformLimit, a2 as PlatformQuote, bt as PlatformRiskLevel, bm as PreparedTransaction, ad as QuoteFeesResponse, ac as QuoteIntentResponse, a3 as QuoteRequest, a9 as QuoteResponse, aa as QuoteResponseObject, ab as QuoteSingleResponse, M as Range, cs as ReferralFee, aw as RegisterPayeeDetailsRequest, ax as RegisterPayeeDetailsResponse, b5 as RegisteredSellerCredentialPlatform, b7 as RegisteredUploadSellerCredentialParams, X as ReleaseFundsToPayerParams, cj as RuntimeEnv, aX as SellerAttestationOutput, aL as SellerCiphertextBundle, aQ as SellerCredentialBundleUpload, aY as SellerCredentialProbeResponse, aS as SellerCredentialStatus, aR as SellerCredentialStatusValue, aK as SellerCredentialUploadInputByPlatform, aW as SellerPaymentTypedDataValue, ay as SellerPlatform, aP as SellerProbeInput, aM as SellerSignedCiphertextBundle, aU as SellerTypedDataField, aV as SellerTypedDataSpec, aO as SellerVerifyInput, aN as SellerVerifyIntentDetails, aT as SellerVerifyProxyBody, cG as SendBatchFn, cF as SendTransactionFn, x as SignalIntentMethodParams, N as SignalIntentParams, w as SignalIntentReferralFee, bp as TakerTier, br as TakerTierLevel, bq as TakerTierStats, H as TimeoutConfig, af as TokenResponse, bc as UploadGoogleOAuthSellerCredentialParams, ba as UploadPayPalGoogleOAuthSellerCredentialParams, b8 as UploadSellerCredentialOptions, b6 as UploadSellerCredentialParams, bb as UploadVenmoGoogleOAuthSellerCredentialParams, aH as VenmoCredentialUploadInput, aG as VenmoGoogleOAuthSellerCredentialUploadBody, az as VenmoSessionMaterial, bd as VerifySellerPaymentParams, aJ as WiseCredentialUploadInput, aC as WiseProfileInfo, aE as WiseProfileNotFound, aD as WiseProfileSelectionRequired, aB as WiseSessionMaterial, W as WithdrawDepositParams, cv as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, z as Zkp2pClientOptions, cA as classifyDelegationState, bz as compareEventCursorIdsByRecency, c8 as currencyInfo, bw as defaultIndexerEndpoint, cm as enrichPvDepositView, cn as enrichPvIntentView, bA as fetchIndexerFulfillmentAndPayment, cf as getContracts, cb as getCurrencyCodeFromHash, ca as getCurrencyInfoFromCountryCode, c9 as getCurrencyInfoFromHash, cz as getDelegationRoute, ci as getGatingServiceAddress, ch as getPaymentMethodsCatalog, cg as getRateManagerContracts, cc as isSupportedCurrencyHash, cw as isZeroRateManagerId, cd as mapConversionRatesToOnchainMinRate, cx as normalizeRateManagerId, cy as normalizeRegistry, ck as parseDepositView, cl as parseIntentView } from './vaultUtils-CtNcKlpg.js';
3
3
  import { Address, Hash, Hex, WalletClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
- export { IdentityActionType, IdentityActionTypeByPlatform, IdentityAttestationOutput, IdentityAttestationOutputFor, IdentityParamsByPlatform, IdentityPlatform } from '@zkp2p/zkp2p-attestation';
5
+ export { IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
6
6
  import '@zkp2p/indexer-schema';
7
7
 
8
8
  interface EscrowRange {
@@ -208,7 +208,7 @@ declare function convertIndexerIntentsToEscrowViews(intents: IntentEntity[], dep
208
208
 
209
209
  declare function apiRequestIdentityAttestation(payload: IdentityAttestationRequestBody, attestationServiceUrl: string, platform: string, actionType: string): Promise<AttestationServiceIdentityResponse>;
210
210
  declare function createEncryptedBuyerTeeSessionMaterial({ actionType, attestationRuntime, attestationServiceUrl, platform, sessionMaterial, timeoutMs, }: BuyerTeeSessionMaterialEncryptionInput): Promise<string>;
211
- declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime): Promise<AttestationServiceSellerCredentialUploadResponse>;
211
+ declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerCredentialUploadPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime): Promise<AttestationServiceSellerCredentialUploadResponse>;
212
212
 
213
213
  /**
214
214
  * Store an already-encrypted seller credential bundle with curator.
@@ -224,14 +224,6 @@ declare function apiGetOwnerDeposits(req: GetOwnerDepositsRequest, apiKey: strin
224
224
  * Get taker tier information for a specific address.
225
225
  */
226
226
  declare function apiGetTakerTier(req: GetTakerTierRequest, apiKey: string | undefined, baseApiUrl: string, timeoutMs?: number): Promise<GetTakerTierResponse>;
227
- declare function apiConfirmPayPalForwarding(payeeDetails: Hash, body: {
228
- payeeEmail: string;
229
- forwardingInitiatorEmail: string;
230
- }, baseApiUrl: string, opts?: {
231
- apiKey?: string;
232
- authToken?: string;
233
- timeoutMs?: number;
234
- }): Promise<ConfirmPayPalForwardingResponse>;
235
227
  declare function apiUploadGoogleOAuthSellerCredential<P extends GoogleOAuthSellerCredentialPlatform>(processorName: P, payeeDetails: Hash, body: GoogleOAuthSellerCredentialUploadBodyByPlatform[P], baseApiUrl: string, opts?: {
236
228
  apiKey?: string;
237
229
  authToken?: string;
@@ -739,4 +731,4 @@ declare class ContractError extends ZKP2PError {
739
731
  constructor(message: string, details?: unknown);
740
732
  }
741
733
 
742
- export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ConfirmPayPalForwardingResponse, ContractError, ContractRouter, type ContractRouterConfig, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GetTakerTierRequest, GetTakerTierResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataProviderConfig, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiConfirmPayPalForwarding, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiRequestIdentityAttestation, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
734
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GetTakerTierRequest, GetTakerTierResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataProviderConfig, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiRequestIdentityAttestation, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
package/dist/index.mjs CHANGED
@@ -9,6 +9,7 @@ import './chunk-J5LGTIGS.mjs';
9
9
  import { concatHex, encodeFunctionData, encodeAbiParameters, createPublicClient, http, formatUnits } from 'viem';
10
10
  import { hardhat, base } from 'viem/chains';
11
11
  import { createEncryptedBuyerTeeSessionMaterial as createEncryptedBuyerTeeSessionMaterial$1, createEncryptedSellerCredentialUpload } from '@zkp2p/zkp2p-attestation';
12
+ export { createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
12
13
  import { AbiCoder } from 'ethers';
13
14
  import { Attribution } from 'ox/erc8021';
14
15
 
@@ -468,29 +469,6 @@ async function createEncryptedSellerCredentialUploadForPlatform({
468
469
  ...attestationRuntime?.getRandomValues ? { getRandomValues: attestationRuntime.getRandomValues } : {}
469
470
  });
470
471
  }
471
- async function apiCreatePaymentAttestation(payload, attestationServiceUrl, platform, actionType) {
472
- return withRetry(async () => {
473
- let res;
474
- try {
475
- const endpoint = `/verify/${encodeURIComponent(platform)}/${encodeURIComponent(actionType)}`;
476
- res = await fetch(`${attestationServiceUrl}${endpoint}`, {
477
- method: "POST",
478
- headers: headers(),
479
- body: JSON.stringify(payload)
480
- });
481
- } catch (error) {
482
- throw new NetworkError("Failed to connect to Attestation Service", {
483
- endpoint: `/verify/${platform}/${actionType}`,
484
- error
485
- });
486
- }
487
- if (!res.ok) {
488
- const errorText = await res.text();
489
- throw parseAPIError(res, errorText);
490
- }
491
- return res.json();
492
- });
493
- }
494
472
  async function apiVerifyBuyerTeePayment(payload, attestationServiceUrl, platform, actionType) {
495
473
  return withRetry(async () => {
496
474
  let res;
@@ -528,6 +506,7 @@ async function apiRequestIdentityAttestation(payload, attestationServiceUrl, pla
528
506
  body: JSON.stringify({
529
507
  platform,
530
508
  actionType,
509
+ callerAddress: payload.callerAddress,
531
510
  encryptedSessionMaterial: payload.encryptedSessionMaterial,
532
511
  params: payload.params
533
512
  })
@@ -1328,8 +1307,7 @@ var IntentOperations = class {
1328
1307
  paymentProof = precomputed.paymentProof;
1329
1308
  verificationData = precomputed.verificationData;
1330
1309
  } else {
1331
- const { proof } = params;
1332
- const buyerTeeProof = parseBuyerTeePaymentProofInput(proof);
1310
+ const buyerTeeProof = parseBuyerTeePaymentProofInput(params.proof);
1333
1311
  const attestationServiceUrl = params.attestationServiceUrl ?? this.defaultAttestationService();
1334
1312
  const inputs = await this.config.host.getFulfillIntentInputs(intentHash, {
1335
1313
  orchestratorAddress: orchestratorContext.address
@@ -1354,7 +1332,7 @@ var IntentOperations = class {
1354
1332
  payeeDetails: inputs.payeeDetails,
1355
1333
  timestampBufferMs: params.timestampBufferMs ?? "300000"
1356
1334
  };
1357
- const attestation = buyerTeeProof ? await apiVerifyBuyerTeePayment(
1335
+ const attestation = await apiVerifyBuyerTeePayment(
1358
1336
  {
1359
1337
  encryptedSessionMaterial: buyerTeeProof.encryptedSessionMaterial,
1360
1338
  params: buyerTeeProof.params,
@@ -1364,16 +1342,6 @@ var IntentOperations = class {
1364
1342
  attestationServiceUrl,
1365
1343
  buyerTeeProof.actionPlatform ?? platformConfig.actionPlatform,
1366
1344
  buyerTeeProof.actionType ?? platformConfig.actionType
1367
- ) : await apiCreatePaymentAttestation(
1368
- {
1369
- proofType: "reclaim",
1370
- proof: typeof proof === "string" ? proof : serializeProofInput(proof),
1371
- chainId: this.config.getChainId(),
1372
- intent
1373
- },
1374
- attestationServiceUrl,
1375
- platformConfig.actionPlatform,
1376
- platformConfig.actionType
1377
1345
  );
1378
1346
  paymentProof = encodePaymentAttestation(attestation);
1379
1347
  verificationData = encodeVerifyPaymentData({
@@ -1463,9 +1431,12 @@ var IntentOperations = class {
1463
1431
  const deposit = await this.config.getIndexerService().fetchDepositWithRelations(record.depositId, {
1464
1432
  includeIntents: false
1465
1433
  });
1434
+ if (!deposit) {
1435
+ throw new Error(`Deposit ${record.depositId} not found on indexer for intent ${intentHash}`);
1436
+ }
1466
1437
  let payee;
1467
1438
  const paymentMethodHashLower = (record.paymentMethodHash || "").toLowerCase();
1468
- for (const paymentMethod of deposit?.paymentMethods || []) {
1439
+ for (const paymentMethod of deposit.paymentMethods || []) {
1469
1440
  if ((paymentMethod.paymentMethodHash || "").toLowerCase() === paymentMethodHashLower) {
1470
1441
  payee = paymentMethod.payeeDetailsHash;
1471
1442
  break;
@@ -1483,12 +1454,6 @@ var IntentOperations = class {
1483
1454
  };
1484
1455
  }
1485
1456
  };
1486
- function serializeProofInput(proof) {
1487
- return JSON.stringify(
1488
- proof,
1489
- (_key, value) => typeof value === "bigint" ? value.toString() : value
1490
- );
1491
- }
1492
1457
  function isRecord(value) {
1493
1458
  return typeof value === "object" && value !== null && !Array.isArray(value);
1494
1459
  }
@@ -1499,7 +1464,9 @@ function isBuyerTeeParams(value) {
1499
1464
  }
1500
1465
  function parseBuyerTeePaymentProofInput(proof) {
1501
1466
  if (!isRecord(proof) || proof.proofType !== "buyerTee") {
1502
- return null;
1467
+ throw new Error(
1468
+ "Buyer TEE proof input is required; legacy proof inputs are no longer supported."
1469
+ );
1503
1470
  }
1504
1471
  if (typeof proof.encryptedSessionMaterial !== "string" || !isBuyerTeeParams(proof.params)) {
1505
1472
  throw new Error("Buyer TEE proof requires encryptedSessionMaterial and params.");
@@ -4975,6 +4942,44 @@ async function fetchFulfillmentAndPayment(client, intentHash) {
4975
4942
  });
4976
4943
  }
4977
4944
 
4945
+ // src/utils/logger.ts
4946
+ var currentLevel = "info";
4947
+ function setLogLevel(level) {
4948
+ currentLevel = level;
4949
+ }
4950
+ function shouldLog(level) {
4951
+ switch (currentLevel) {
4952
+ case "debug":
4953
+ return true;
4954
+ case "info":
4955
+ return level !== "debug";
4956
+ case "error":
4957
+ return level === "error";
4958
+ default:
4959
+ return true;
4960
+ }
4961
+ }
4962
+ var logger = {
4963
+ debug: (...args) => {
4964
+ if (shouldLog("debug")) {
4965
+ console.log("[DEBUG]", ...args);
4966
+ }
4967
+ },
4968
+ info: (...args) => {
4969
+ if (shouldLog("info")) {
4970
+ console.log("[INFO]", ...args);
4971
+ }
4972
+ },
4973
+ warn: (...args) => {
4974
+ if (shouldLog("info")) {
4975
+ console.warn("[WARN]", ...args);
4976
+ }
4977
+ },
4978
+ error: (...args) => {
4979
+ console.error("[ERROR]", ...args);
4980
+ }
4981
+ };
4982
+
4978
4983
  // src/adapters/api.ts
4979
4984
  function createHeaders2(apiKey, authToken) {
4980
4985
  const headers2 = { "Content-Type": "application/json" };
@@ -5082,10 +5087,17 @@ function buildLegacyVerifierCurrencies(deposit) {
5082
5087
  const currenciesByMethod = /* @__PURE__ */ new Map();
5083
5088
  for (const currency of deposit.currencies ?? []) {
5084
5089
  const methodHash = currency.paymentMethodHash;
5090
+ const resolvedConversionRate = currency.conversionRate ?? currency.minConversionRate;
5091
+ if (resolvedConversionRate === null || resolvedConversionRate === void 0) {
5092
+ logger.warn(
5093
+ `[sdk] Skipping currency with missing conversion rate (deposit ${deposit.depositId}, currency ${currency.currencyCode})`
5094
+ );
5095
+ continue;
5096
+ }
5085
5097
  const bucket = currenciesByMethod.get(methodHash) ?? [];
5086
5098
  bucket.push({
5087
5099
  currencyCode: currency.currencyCode,
5088
- conversionRate: currency.conversionRate ?? currency.minConversionRate,
5100
+ conversionRate: resolvedConversionRate,
5089
5101
  minConversionRate: currency.minConversionRate,
5090
5102
  managerRate: currency.managerRate ?? null,
5091
5103
  rateManagerId: currency.rateManagerId ?? null
@@ -5288,19 +5300,6 @@ async function apiUploadSellerCredential(processorName, payeeDetails, bundle, ba
5288
5300
  timeoutMs
5289
5301
  });
5290
5302
  }
5291
- async function apiConfirmPayPalForwarding(payeeDetails, body, baseApiUrl, opts) {
5292
- const endpoint = `/v2/makers/paypal/${encodeURIComponent(
5293
- payeeDetails
5294
- )}/seller-credential/forwarding-confirmation`;
5295
- return apiFetch({
5296
- url: `${withApiBase(baseApiUrl)}${endpoint}`,
5297
- method: "POST",
5298
- body,
5299
- apiKey: opts?.apiKey,
5300
- authToken: opts?.authToken,
5301
- timeoutMs: opts?.timeoutMs
5302
- });
5303
- }
5304
5303
  async function apiUploadGoogleOAuthSellerCredential(processorName, payeeDetails, body, baseApiUrl, opts) {
5305
5304
  const endpoint = `/v2/makers/${encodeURIComponent(processorName)}/${encodeURIComponent(
5306
5305
  payeeDetails
@@ -6437,7 +6436,7 @@ var Zkp2pClient = class {
6437
6436
  * ```
6438
6437
  *
6439
6438
  * @param params.intentHash - The intent hash to fulfill (0x-prefixed, 32 bytes)
6440
- * @param params.proof - Payment proof from Reclaim (object or JSON string) or buyer TEE proof input
6439
+ * @param params.proof - Buyer TEE payment proof input
6441
6440
  * @param params.timestampBufferMs - Allowed timestamp variance (default: 300000ms)
6442
6441
  * @param params.attestationServiceUrl - Override attestation service URL
6443
6442
  * @param params.postIntentHookData - Data to pass to post-intent hook
@@ -8068,32 +8067,6 @@ var Zkp2pClient = class {
8068
8067
  const timeoutMs = opts?.timeoutMs ?? this.apiTimeoutMs;
8069
8068
  return apiUploadSellerCredentialBundle(params, baseApiUrl, timeoutMs);
8070
8069
  }
8071
- /**
8072
- * Confirms the PayPal Gmail-forwarding setup for an existing maker payee hash.
8073
- *
8074
- * Uses curator's `/forwarding-confirmation` route and forwards both API key and
8075
- * bearer token so either auth strategy can satisfy the hybrid gate. The endpoint
8076
- * is rate-limited server-side; callers should surface retry guidance from APIError.
8077
- */
8078
- async confirmPayPalForwarding(params, opts) {
8079
- const baseApiUrl = this.stripTrailingSlash(
8080
- opts?.baseApiUrl ?? this.baseApiUrl ?? DEFAULT_BASE_API_URL
8081
- );
8082
- const timeoutMs = opts?.timeoutMs ?? this.apiTimeoutMs;
8083
- return apiConfirmPayPalForwarding(
8084
- params.payeeDetails,
8085
- {
8086
- payeeEmail: params.payeeEmail,
8087
- forwardingInitiatorEmail: params.forwardingInitiatorEmail
8088
- },
8089
- baseApiUrl,
8090
- {
8091
- apiKey: this.apiKey,
8092
- authToken: this.authorizationToken,
8093
- timeoutMs
8094
- }
8095
- );
8096
- }
8097
8070
  /**
8098
8071
  * Upload a seller Gmail OAuth authorization code through curator.
8099
8072
  *
@@ -8377,44 +8350,6 @@ var createPeerExtensionSdk = (options = {}) => ({
8377
8350
  });
8378
8351
  var peerExtensionSdk = createPeerExtensionSdk();
8379
8352
 
8380
- // src/utils/logger.ts
8381
- var currentLevel = "info";
8382
- function setLogLevel(level) {
8383
- currentLevel = level;
8384
- }
8385
- function shouldLog(level) {
8386
- switch (currentLevel) {
8387
- case "debug":
8388
- return true;
8389
- case "info":
8390
- return level !== "debug";
8391
- case "error":
8392
- return level === "error";
8393
- default:
8394
- return true;
8395
- }
8396
- }
8397
- var logger = {
8398
- debug: (...args) => {
8399
- if (shouldLog("debug")) {
8400
- console.log("[DEBUG]", ...args);
8401
- }
8402
- },
8403
- info: (...args) => {
8404
- if (shouldLog("info")) {
8405
- console.log("[INFO]", ...args);
8406
- }
8407
- },
8408
- warn: (...args) => {
8409
- if (shouldLog("info")) {
8410
- console.warn("[WARN]", ...args);
8411
- }
8412
- },
8413
- error: (...args) => {
8414
- console.error("[ERROR]", ...args);
8415
- }
8416
- };
8417
-
8418
- export { BASE_BUILDER_CODE, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractRouter, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, IndexerClient, IndexerDepositService, IndexerRateManagerService, Zkp2pClient as OfframpClient, PAYMENT_PLATFORMS, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, TOKEN_METADATA, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, Zkp2pClient, apiConfirmPayPalForwarding, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiRequestIdentityAttestation, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, appendAttributionToCalldata, assertValidReferrerFeeConfig, compareEventCursorIdsByRecency, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, defaultIndexerEndpoint, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, fetchFulfillmentAndPayment as fetchIndexerFulfillmentAndPayment, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
8353
+ export { BASE_BUILDER_CODE, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractRouter, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, IndexerClient, IndexerDepositService, IndexerRateManagerService, Zkp2pClient as OfframpClient, PAYMENT_PLATFORMS, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, TOKEN_METADATA, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, Zkp2pClient, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiRequestIdentityAttestation, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, appendAttributionToCalldata, assertValidReferrerFeeConfig, compareEventCursorIdsByRecency, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, defaultIndexerEndpoint, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, fetchFulfillmentAndPayment as fetchIndexerFulfillmentAndPayment, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
8419
8354
  //# sourceMappingURL=index.mjs.map
8420
8355
  //# sourceMappingURL=index.mjs.map