@zkp2p/sdk 0.5.8 → 0.6.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,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 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, T as TakerTierLevel, v as PaymentMethodCatalog, w as TxOverrides } from './vaultUtils-DOOl9QUP.mjs';
2
- export { K as ActionCallback, aj as ApiDeposit, aq as ApiIntentStatus, b0 as AttestationServiceSellerCredentialProbeResponse, a_ as AttestationServiceSellerVerifyResponse, H as AuthorizationTokenProvider, cE as BatchResult, $ as BestByPlatformResponseObject, b1 as BuyerTeePaymentParams, b2 as BuyerTeePaymentProofInput, b3 as BuyerTeeSessionMaterial, z as CancelIntentMethodParams, _ as CancelIntentParams, aJ as CashAppCredentialUploadInput, aB as CashAppSessionMaterial, M as CreateDepositConversionRate, L as CreateDepositParams, b4 as CuratorSellerCredentialStatusResponse, b5 as CuratorSellerVerifyResponse, c7 as Currency, ce as CurrencyData, cD as DelegationDepositTarget, cB as DelegationRoute, cC as DelegationState, cp as Deposit, cr as DepositCurrency, bp as DepositIntentStatistics, am as DepositStatus, ak as DepositVerifier, al as DepositVerifierCurrency, bm as DepositVerifierData, co as DepositView, af as FiatResponse, a$ 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, ba as GetSellerCredentialStatusParams, bf as IdentityAttestationActionType, bg as IdentityAttestationOutput, bh as IdentityAttestationOutputFor, bi 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, ap as Intent, ct as IntentView, bj as MakerIdentityAttestationRequestBody, bk as MakerIdentityPlatform, ah as NearbyQuote, ai as NearbySuggestions, Z as OfframpClient, bl as OnchainCurrency, cu as OnchainIntent, bo as OrderStats, bu as OrderbookEntry, c5 as PAYMENT_PLATFORMS, aG as PayPalGoogleOAuthSellerCredentialUploadBody, cq as PaymentMethodData, c6 as PaymentPlatformType, bs as PlatformLimit, a3 as PlatformQuote, bt as PlatformRiskLevel, bn as PreparedTransaction, ae as QuoteFeesResponse, ad as QuoteIntentResponse, a4 as QuoteRequest, aa as QuoteResponse, ab as QuoteResponseObject, ac as QuoteSingleResponse, N as Range, cs as ReferralFee, ax as RegisterPayeeDetailsRequest, ay as RegisterPayeeDetailsResponse, b6 as RegisteredSellerCredentialPlatform, b8 as RegisteredUploadSellerCredentialParams, Y as ReleaseFundsToPayerParams, cj as RuntimeEnv, aY as SellerAttestationOutput, aM as SellerCiphertextBundle, aR as SellerCredentialBundleUpload, aZ as SellerCredentialProbeResponse, aT as SellerCredentialStatus, aS as SellerCredentialStatusValue, aL as SellerCredentialUploadInputByPlatform, aX as SellerPaymentTypedDataValue, az as SellerPlatform, aQ as SellerProbeInput, aN as SellerSignedCiphertextBundle, aV as SellerTypedDataField, aW as SellerTypedDataSpec, aP as SellerVerifyInput, aO as SellerVerifyIntentDetails, aU as SellerVerifyProxyBody, cG as SendBatchFn, cF as SendTransactionFn, y as SignalIntentMethodParams, O as SignalIntentParams, x as SignalIntentReferralFee, bq as TakerTier, br as TakerTierStats, J as TimeoutConfig, ag as TokenResponse, bd as UploadGoogleOAuthSellerCredentialParams, bb as UploadPayPalGoogleOAuthSellerCredentialParams, b9 as UploadSellerCredentialOptions, b7 as UploadSellerCredentialParams, bc as UploadVenmoGoogleOAuthSellerCredentialParams, aI as VenmoCredentialUploadInput, aH as VenmoGoogleOAuthSellerCredentialUploadBody, aA as VenmoSessionMaterial, be as VerifySellerPaymentParams, aK as WiseCredentialUploadInput, aD as WiseProfileInfo, aF as WiseProfileNotFound, aE as WiseProfileSelectionRequired, aC as WiseSessionMaterial, W as WithdrawDepositParams, cv as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, E 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-DOOl9QUP.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, G as GoogleOAuthSellerCredentialPlatform, h as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, i as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, j as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, k as PostDepositDetailsResponse, l as GetPayeeDetailsRequest, m as GetPayeeDetailsResponse, n as GetOwnerDepositsRequest, o as GetOwnerDepositsResponse, p as GetTakerTierRequest, q as GetTakerTierResponse, r as GetDepositBundleParams, s as ApiAdapterOptions, t as GetDepositBundleResponse, u as GetOrderbookParams, v as GetOrderbookResponse, w as CurrencyType, T as TakerTierLevel, x as PaymentMethodCatalog, y as TxOverrides } from './vaultUtils-BwY9Z0aR.mjs';
2
+ export { M as ActionCallback, al as ApiDeposit, as as ApiIntentStatus, b2 as AttestationServiceSellerCredentialProbeResponse, K as AuthorizationTokenProvider, cI as BatchResult, a1 as BestByPlatformResponseObject, b3 as BuyerTeePaymentParams, b4 as BuyerTeePaymentProofInput, b5 as BuyerTeeSessionMaterial, H as CancelIntentMethodParams, a0 as CancelIntentParams, aM as CashAppCredentialUploadInput, aD as CashAppSessionMaterial, O as CreateDepositConversionRate, N as CreateDepositParams, b6 as CuratorSellerCredentialStatusResponse, b7 as CuratorSellerVerifyResponse, cb as Currency, ci as CurrencyData, cH as DelegationDepositTarget, cF as DelegationRoute, cG as DelegationState, ct as Deposit, cv as DepositCurrency, bs as DepositIntentStatistics, ao as DepositStatus, am as DepositVerifier, an as DepositVerifierCurrency, bp as DepositVerifierData, cs as DepositView, ah as FiatResponse, b1 as FulfillIntentAttestationResponse, F as FulfillIntentMethodParams, _ as FulfillIntentParams, a2 as GetBestByPlatformResponse, a3 as GetBestByPlatformResponseObject, ap as GetDepositByIdRequest, aq as GetDepositByIdResponse, ax as GetIntentByHashRequest, ay as GetIntentByHashResponse, av as GetIntentsByDepositRequest, aw as GetIntentsByDepositResponse, a7 as GetNearbyQuote, a8 as GetNearbySuggestions, at as GetOwnerIntentsRequest, au as GetOwnerIntentsResponse, a4 as GetPlatformQuote, a9 as GetQuoteResponse, aa as GetQuoteResponseObject, ab as GetQuoteSingleResponse, bc as GetSellerCredentialStatusParams, bi as IdentityAttestationActionType, bj as IdentityAttestationOutput, bk as IdentityAttestationOutputFor, bl as IdentityAttestationParams, bz as IndexerClient, c5 as IndexerDeploymentEnv, bF as IndexerDeposit, bW as IndexerDepositDailySnapshot, bY as IndexerDepositFilter, bV as IndexerDepositFundActivity, bX as IndexerDepositFundActivityType, b$ as IndexerDepositOrderDirection, b_ as IndexerDepositOrderField, bZ as IndexerDepositPagination, bI as IndexerDepositPaymentMethod, bB as IndexerDepositService, c8 as IndexerFulfillmentAndPaymentResponse, c6 as IndexerFulfillmentRecord, bG as IndexerIntentFulfilled, bH as IndexerIntentFulfillmentAmounts, bK as IndexerIntentStatus, bO as IndexerManagerAggregateStats, bQ as IndexerManagerDailySnapshot, bP as IndexerManagerStats, bT as IndexerManualRateUpdate, bJ as IndexerMethodCurrency, bU as IndexerOracleConfigUpdate, c7 as IndexerPaymentVerifiedRecord, bL as IndexerRateManager, bN as IndexerRateManagerDelegation, c2 as IndexerRateManagerDelegationPagination, bS as IndexerRateManagerDetail, c0 as IndexerRateManagerFilter, bR as IndexerRateManagerListItem, c4 as IndexerRateManagerOrderDirection, c3 as IndexerRateManagerOrderField, c1 as IndexerRateManagerPagination, bM as IndexerRateManagerRate, bC as IndexerRateManagerService, ar as Intent, cx as IntentView, bm as MakerIdentityAttestationRequestBody, bn as MakerIdentityPlatform, aj as NearbyQuote, ak as NearbySuggestions, Z as OfframpClient, bo as OnchainCurrency, cy as OnchainIntent, br as OrderStats, by as OrderbookEntry, c9 as PAYMENT_PLATFORMS, aI as PayPalGoogleOAuthSellerCredentialUploadBody, cu as PaymentMethodData, ca as PaymentPlatformType, bw as PlatformLimit, a5 as PlatformQuote, bx as PlatformRiskLevel, bq as PreparedTransaction, ag as QuoteFeesResponse, af as QuoteIntentResponse, a6 as QuoteRequest, ac as QuoteResponse, ad as QuoteResponseObject, ae as QuoteSingleResponse, W as Range, cw as ReferralFee, az as RegisterPayeeDetailsRequest, aA as RegisterPayeeDetailsResponse, b8 as RegisteredSellerCredentialPlatform, ba as RegisteredUploadSellerCredentialParams, $ as ReleaseFundsToPayerParams, cn as RuntimeEnv, a$ as SellerAttestationOutput, aP as SellerCiphertextBundle, aU as SellerCredentialBundleUpload, b0 as SellerCredentialProbeResponse, aW as SellerCredentialStatus, aV as SellerCredentialStatusValue, aO as SellerCredentialUploadInputByPlatform, a_ as SellerPaymentTypedDataValue, aB as SellerPlatform, aT as SellerProbeInput, aQ as SellerSignedCiphertextBundle, aY as SellerTypedDataField, aZ as SellerTypedDataSpec, aS as SellerVerifyInput, aR as SellerVerifyIntentDetails, aX as SellerVerifyProxyBody, cK as SendBatchFn, cJ as SendTransactionFn, E as SignalIntentMethodParams, Y as SignalIntentParams, z as SignalIntentReferralFee, bt as TakerTier, bv as TakerTierSource, bu as TakerTierStats, L as TimeoutConfig, ai as TokenResponse, bg as UploadGoogleOAuthSellerCredentialParams, bd as UploadPayPalGoogleOAuthSellerCredentialParams, bb as UploadSellerCredentialOptions, b9 as UploadSellerCredentialParams, be as UploadVenmoGoogleOAuthSellerCredentialParams, bf as UploadZelleGoogleOAuthSellerCredentialParams, aL as VenmoCredentialUploadInput, aJ as VenmoGoogleOAuthSellerCredentialUploadBody, aC as VenmoSessionMaterial, bh as VerifySellerPaymentParams, aN as WiseCredentialUploadInput, aF as WiseProfileInfo, aH as WiseProfileNotFound, aG as WiseProfileSelectionRequired, aE as WiseSessionMaterial, X as WithdrawDepositParams, cz as ZERO_RATE_MANAGER_ID, aK as ZelleGoogleOAuthSellerCredentialUploadBody, Z as Zkp2pClient, J as Zkp2pClientOptions, cE as classifyDelegationState, bD as compareEventCursorIdsByRecency, cc as currencyInfo, bA as defaultIndexerEndpoint, cq as enrichPvDepositView, cr as enrichPvIntentView, bE as fetchIndexerFulfillmentAndPayment, cj as getContracts, cf as getCurrencyCodeFromHash, ce as getCurrencyInfoFromCountryCode, cd as getCurrencyInfoFromHash, cD as getDelegationRoute, cm as getGatingServiceAddress, cl as getPaymentMethodsCatalog, ck as getRateManagerContracts, cg as isSupportedCurrencyHash, cA as isZeroRateManagerId, ch as mapConversionRatesToOnchainMinRate, cB as normalizeRateManagerId, cC as normalizeRegistry, co as parseDepositView, cp as parseIntentView } from './vaultUtils-BwY9Z0aR.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';
@@ -207,9 +207,13 @@ interface ConvertLiquidityOptions {
207
207
  declare function convertDepositsForLiquidity(deposits: DepositWithRelations[], chainId: number, escrowAddress: string, options?: ConvertLiquidityOptions): EscrowDepositView[];
208
208
  declare function convertIndexerIntentsToEscrowViews(intents: IntentEntity[], depositViewsById: Map<string, EscrowDepositView>): EscrowIntentView[];
209
209
 
210
- declare function apiRequestIdentityAttestation(payload: IdentityAttestationRequestBody, attestationServiceUrl: string, platform: string, actionType: string): Promise<AttestationServiceIdentityResponse>;
211
- declare function createEncryptedBuyerTeeSessionMaterial({ actionType, attestationRuntime, attestationServiceUrl, platform, sessionMaterial, timeoutMs, }: BuyerTeeSessionMaterialEncryptionInput): Promise<string>;
212
- declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerCredentialUploadPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime): Promise<AttestationServiceSellerCredentialUploadResponse>;
210
+ type AttestationRequestOptions = {
211
+ fallbackUrls?: readonly string[] | null;
212
+ };
213
+ declare function apiVerifyBuyerTeePayment(payload: BuyerTeeVerifyPaymentBody, attestationServiceUrl: string, platform: string, actionType: string, options?: AttestationRequestOptions): Promise<AttestationServiceSellerVerifyResponse>;
214
+ declare function apiRequestIdentityAttestation(payload: IdentityAttestationRequestBody, attestationServiceUrl: string, platform: string, actionType: string, options?: AttestationRequestOptions): Promise<AttestationServiceIdentityResponse>;
215
+ declare function createEncryptedBuyerTeeSessionMaterial({ actionType, attestationServiceFallbackUrls, attestationRuntime, attestationServiceUrl, platform, sessionMaterial, timeoutMs, }: BuyerTeeSessionMaterialEncryptionInput): Promise<string>;
216
+ declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerCredentialUploadPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime, options?: AttestationRequestOptions): Promise<AttestationServiceSellerCredentialUploadResponse>;
213
217
 
214
218
  /**
215
219
  * Store an already-encrypted seller credential bundle with curator.
@@ -456,11 +460,27 @@ declare const TOKEN_METADATA: {
456
460
  * tier engine (curator `src/common/services/tier/tierConstants.ts`), which is
457
461
  * what the backend actually enforces.
458
462
  *
459
- * A user's *live* cap (after lock-score penalties and per-platform risk
460
- * multipliers) always comes from the taker-tier API payload
461
- * (`TakerTier.perIntentCapBaseUnits` / `nextTierMaxOrderSizeDisplay`). This
462
- * static schedule is for reference displays that must show every tier at once —
463
- * the Fees & Tiers ladder — and the forward-looking "next tier cap" hint.
463
+ * The signal is now **lifetime Peer-Pay-consumed maker volume**, not raw taker
464
+ * fulfilled volume (curator PR #463 removed SAR weighting).
465
+ *
466
+ * A user's *live* tier, cap, and progression always come from the taker-tier
467
+ * API payload (`TakerTier.perIntentCapBaseUnits`, `minVolumeForTier`,
468
+ * `volumeToNextTier`, `peerPayVolume`). Those values are DB-backed and
469
+ * server-authoritative — they vary per environment (e.g. preprod runs
470
+ * different thresholds than these). This static schedule is ONLY a
471
+ * documented-default reference for displays that must show every tier at once
472
+ * (the Fees & Tiers ladder) when no live payload is available; never gate or
473
+ * compute a user's real cap from it.
474
+ *
475
+ * Volume bands track the live (pre-prod) tuned qualification thresholds, which
476
+ * were re-anchored to the real maker distribution — PEER $1k, PLUS $10k,
477
+ * PRO $50k, PLATINUM $100k (the earlier $2.5k/$20k/$75k/$300k placeholders left
478
+ * PLATINUM literally unreachable; the top band sits in the $99k–$167k gap so the
479
+ * same 3 whales qualify, on a round number). Caps ($100/$250/$1k/$2.5k/$5k) are
480
+ * unchanged.
481
+ * Production still runs the old placeholder bands until the tuned config is
482
+ * promoted, so even this reference can disagree with a given environment — read
483
+ * the live per-user values from the API.
464
484
  *
465
485
  * Ordered highest tier → lowest (PLATINUM first) to match UI display order.
466
486
  * PEER_PRESIDENT is invite-only and excluded from the volume ladder.
@@ -469,9 +489,9 @@ interface TakerTierScheduleEntry {
469
489
  tier: TakerTierLevel;
470
490
  /** Per-intent order cap in whole USD (base, before platform risk multipliers). */
471
491
  perIntentCapUsd: number;
472
- /** Inclusive lower bound of lifetime volume (USD) that qualifies for this tier. */
492
+ /** Inclusive lower bound of lifetime Peer-Pay volume (USD) that qualifies for this tier. */
473
493
  minVolumeUsd: number;
474
- /** Inclusive upper bound of lifetime volume (USD); `Infinity` for the top tier. */
494
+ /** Inclusive upper bound of lifetime Peer-Pay volume (USD); `Infinity` for the top tier. */
475
495
  maxVolumeUsd: number;
476
496
  }
477
497
  declare const TAKER_TIER_SCHEDULE: readonly TakerTierScheduleEntry[];
@@ -479,6 +499,17 @@ declare const TAKER_TIER_SCHEDULE: readonly TakerTierScheduleEntry[];
479
499
  declare const TAKER_TIER_ORDER: readonly TakerTierLevel[];
480
500
  /** Per-intent caps (whole USD) keyed by tier, derived from the schedule. */
481
501
  declare const TAKER_TIER_CAPS: Readonly<Record<string, number>>;
502
+ /**
503
+ * Default take-fee discount (in basis points) applied per tier, mirroring
504
+ * curator `TIER_FEE_DISCOUNT_BPS`. The discount is subtracted from the base
505
+ * service fee server-side at quote and sign time — it is NOT returned by the
506
+ * tier endpoint. These are documented defaults for reference fee displays only;
507
+ * the curator DB control-plane can override them, so prefer the fee shown on a
508
+ * live quote when one is available.
509
+ */
510
+ declare const TAKER_TIER_FEE_DISCOUNT_BPS: Readonly<Record<TakerTierLevel, number>>;
511
+ /** The default fee-discount (bps) for a tier, or 0 for unknown tiers. */
512
+ declare function getTakerTierFeeDiscountBps(tier: string | undefined): number;
482
513
  /** The next tier up from `currentTier`, or `null` at the top / for unknown tiers. */
483
514
  declare function getNextTakerTier(currentTier: string | undefined): TakerTierLevel | null;
484
515
 
@@ -762,4 +793,4 @@ declare class ContractError extends ZKP2PError {
762
793
  constructor(message: string, details?: unknown);
763
794
  }
764
795
 
765
- 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, TAKER_TIER_CAPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, TOKEN_METADATA, TakerTierLevel, type TakerTierScheduleEntry, 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, getNextTakerTier, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
796
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, 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, TAKER_TIER_CAPS, TAKER_TIER_FEE_DISCOUNT_BPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, TOKEN_METADATA, TakerTierLevel, type TakerTierScheduleEntry, TxOverrides, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiRequestIdentityAttestation, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getNextTakerTier, getPeerExtensionState, getSpreadOracleConfig, getTakerTierFeeDiscountBps, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
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 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, T as TakerTierLevel, v as PaymentMethodCatalog, w as TxOverrides } from './vaultUtils-DOOl9QUP.js';
2
- export { K as ActionCallback, aj as ApiDeposit, aq as ApiIntentStatus, b0 as AttestationServiceSellerCredentialProbeResponse, a_ as AttestationServiceSellerVerifyResponse, H as AuthorizationTokenProvider, cE as BatchResult, $ as BestByPlatformResponseObject, b1 as BuyerTeePaymentParams, b2 as BuyerTeePaymentProofInput, b3 as BuyerTeeSessionMaterial, z as CancelIntentMethodParams, _ as CancelIntentParams, aJ as CashAppCredentialUploadInput, aB as CashAppSessionMaterial, M as CreateDepositConversionRate, L as CreateDepositParams, b4 as CuratorSellerCredentialStatusResponse, b5 as CuratorSellerVerifyResponse, c7 as Currency, ce as CurrencyData, cD as DelegationDepositTarget, cB as DelegationRoute, cC as DelegationState, cp as Deposit, cr as DepositCurrency, bp as DepositIntentStatistics, am as DepositStatus, ak as DepositVerifier, al as DepositVerifierCurrency, bm as DepositVerifierData, co as DepositView, af as FiatResponse, a$ 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, ba as GetSellerCredentialStatusParams, bf as IdentityAttestationActionType, bg as IdentityAttestationOutput, bh as IdentityAttestationOutputFor, bi 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, ap as Intent, ct as IntentView, bj as MakerIdentityAttestationRequestBody, bk as MakerIdentityPlatform, ah as NearbyQuote, ai as NearbySuggestions, Z as OfframpClient, bl as OnchainCurrency, cu as OnchainIntent, bo as OrderStats, bu as OrderbookEntry, c5 as PAYMENT_PLATFORMS, aG as PayPalGoogleOAuthSellerCredentialUploadBody, cq as PaymentMethodData, c6 as PaymentPlatformType, bs as PlatformLimit, a3 as PlatformQuote, bt as PlatformRiskLevel, bn as PreparedTransaction, ae as QuoteFeesResponse, ad as QuoteIntentResponse, a4 as QuoteRequest, aa as QuoteResponse, ab as QuoteResponseObject, ac as QuoteSingleResponse, N as Range, cs as ReferralFee, ax as RegisterPayeeDetailsRequest, ay as RegisterPayeeDetailsResponse, b6 as RegisteredSellerCredentialPlatform, b8 as RegisteredUploadSellerCredentialParams, Y as ReleaseFundsToPayerParams, cj as RuntimeEnv, aY as SellerAttestationOutput, aM as SellerCiphertextBundle, aR as SellerCredentialBundleUpload, aZ as SellerCredentialProbeResponse, aT as SellerCredentialStatus, aS as SellerCredentialStatusValue, aL as SellerCredentialUploadInputByPlatform, aX as SellerPaymentTypedDataValue, az as SellerPlatform, aQ as SellerProbeInput, aN as SellerSignedCiphertextBundle, aV as SellerTypedDataField, aW as SellerTypedDataSpec, aP as SellerVerifyInput, aO as SellerVerifyIntentDetails, aU as SellerVerifyProxyBody, cG as SendBatchFn, cF as SendTransactionFn, y as SignalIntentMethodParams, O as SignalIntentParams, x as SignalIntentReferralFee, bq as TakerTier, br as TakerTierStats, J as TimeoutConfig, ag as TokenResponse, bd as UploadGoogleOAuthSellerCredentialParams, bb as UploadPayPalGoogleOAuthSellerCredentialParams, b9 as UploadSellerCredentialOptions, b7 as UploadSellerCredentialParams, bc as UploadVenmoGoogleOAuthSellerCredentialParams, aI as VenmoCredentialUploadInput, aH as VenmoGoogleOAuthSellerCredentialUploadBody, aA as VenmoSessionMaterial, be as VerifySellerPaymentParams, aK as WiseCredentialUploadInput, aD as WiseProfileInfo, aF as WiseProfileNotFound, aE as WiseProfileSelectionRequired, aC as WiseSessionMaterial, W as WithdrawDepositParams, cv as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, E 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-DOOl9QUP.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, G as GoogleOAuthSellerCredentialPlatform, h as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, i as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, j as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, k as PostDepositDetailsResponse, l as GetPayeeDetailsRequest, m as GetPayeeDetailsResponse, n as GetOwnerDepositsRequest, o as GetOwnerDepositsResponse, p as GetTakerTierRequest, q as GetTakerTierResponse, r as GetDepositBundleParams, s as ApiAdapterOptions, t as GetDepositBundleResponse, u as GetOrderbookParams, v as GetOrderbookResponse, w as CurrencyType, T as TakerTierLevel, x as PaymentMethodCatalog, y as TxOverrides } from './vaultUtils-BwY9Z0aR.js';
2
+ export { M as ActionCallback, al as ApiDeposit, as as ApiIntentStatus, b2 as AttestationServiceSellerCredentialProbeResponse, K as AuthorizationTokenProvider, cI as BatchResult, a1 as BestByPlatformResponseObject, b3 as BuyerTeePaymentParams, b4 as BuyerTeePaymentProofInput, b5 as BuyerTeeSessionMaterial, H as CancelIntentMethodParams, a0 as CancelIntentParams, aM as CashAppCredentialUploadInput, aD as CashAppSessionMaterial, O as CreateDepositConversionRate, N as CreateDepositParams, b6 as CuratorSellerCredentialStatusResponse, b7 as CuratorSellerVerifyResponse, cb as Currency, ci as CurrencyData, cH as DelegationDepositTarget, cF as DelegationRoute, cG as DelegationState, ct as Deposit, cv as DepositCurrency, bs as DepositIntentStatistics, ao as DepositStatus, am as DepositVerifier, an as DepositVerifierCurrency, bp as DepositVerifierData, cs as DepositView, ah as FiatResponse, b1 as FulfillIntentAttestationResponse, F as FulfillIntentMethodParams, _ as FulfillIntentParams, a2 as GetBestByPlatformResponse, a3 as GetBestByPlatformResponseObject, ap as GetDepositByIdRequest, aq as GetDepositByIdResponse, ax as GetIntentByHashRequest, ay as GetIntentByHashResponse, av as GetIntentsByDepositRequest, aw as GetIntentsByDepositResponse, a7 as GetNearbyQuote, a8 as GetNearbySuggestions, at as GetOwnerIntentsRequest, au as GetOwnerIntentsResponse, a4 as GetPlatformQuote, a9 as GetQuoteResponse, aa as GetQuoteResponseObject, ab as GetQuoteSingleResponse, bc as GetSellerCredentialStatusParams, bi as IdentityAttestationActionType, bj as IdentityAttestationOutput, bk as IdentityAttestationOutputFor, bl as IdentityAttestationParams, bz as IndexerClient, c5 as IndexerDeploymentEnv, bF as IndexerDeposit, bW as IndexerDepositDailySnapshot, bY as IndexerDepositFilter, bV as IndexerDepositFundActivity, bX as IndexerDepositFundActivityType, b$ as IndexerDepositOrderDirection, b_ as IndexerDepositOrderField, bZ as IndexerDepositPagination, bI as IndexerDepositPaymentMethod, bB as IndexerDepositService, c8 as IndexerFulfillmentAndPaymentResponse, c6 as IndexerFulfillmentRecord, bG as IndexerIntentFulfilled, bH as IndexerIntentFulfillmentAmounts, bK as IndexerIntentStatus, bO as IndexerManagerAggregateStats, bQ as IndexerManagerDailySnapshot, bP as IndexerManagerStats, bT as IndexerManualRateUpdate, bJ as IndexerMethodCurrency, bU as IndexerOracleConfigUpdate, c7 as IndexerPaymentVerifiedRecord, bL as IndexerRateManager, bN as IndexerRateManagerDelegation, c2 as IndexerRateManagerDelegationPagination, bS as IndexerRateManagerDetail, c0 as IndexerRateManagerFilter, bR as IndexerRateManagerListItem, c4 as IndexerRateManagerOrderDirection, c3 as IndexerRateManagerOrderField, c1 as IndexerRateManagerPagination, bM as IndexerRateManagerRate, bC as IndexerRateManagerService, ar as Intent, cx as IntentView, bm as MakerIdentityAttestationRequestBody, bn as MakerIdentityPlatform, aj as NearbyQuote, ak as NearbySuggestions, Z as OfframpClient, bo as OnchainCurrency, cy as OnchainIntent, br as OrderStats, by as OrderbookEntry, c9 as PAYMENT_PLATFORMS, aI as PayPalGoogleOAuthSellerCredentialUploadBody, cu as PaymentMethodData, ca as PaymentPlatformType, bw as PlatformLimit, a5 as PlatformQuote, bx as PlatformRiskLevel, bq as PreparedTransaction, ag as QuoteFeesResponse, af as QuoteIntentResponse, a6 as QuoteRequest, ac as QuoteResponse, ad as QuoteResponseObject, ae as QuoteSingleResponse, W as Range, cw as ReferralFee, az as RegisterPayeeDetailsRequest, aA as RegisterPayeeDetailsResponse, b8 as RegisteredSellerCredentialPlatform, ba as RegisteredUploadSellerCredentialParams, $ as ReleaseFundsToPayerParams, cn as RuntimeEnv, a$ as SellerAttestationOutput, aP as SellerCiphertextBundle, aU as SellerCredentialBundleUpload, b0 as SellerCredentialProbeResponse, aW as SellerCredentialStatus, aV as SellerCredentialStatusValue, aO as SellerCredentialUploadInputByPlatform, a_ as SellerPaymentTypedDataValue, aB as SellerPlatform, aT as SellerProbeInput, aQ as SellerSignedCiphertextBundle, aY as SellerTypedDataField, aZ as SellerTypedDataSpec, aS as SellerVerifyInput, aR as SellerVerifyIntentDetails, aX as SellerVerifyProxyBody, cK as SendBatchFn, cJ as SendTransactionFn, E as SignalIntentMethodParams, Y as SignalIntentParams, z as SignalIntentReferralFee, bt as TakerTier, bv as TakerTierSource, bu as TakerTierStats, L as TimeoutConfig, ai as TokenResponse, bg as UploadGoogleOAuthSellerCredentialParams, bd as UploadPayPalGoogleOAuthSellerCredentialParams, bb as UploadSellerCredentialOptions, b9 as UploadSellerCredentialParams, be as UploadVenmoGoogleOAuthSellerCredentialParams, bf as UploadZelleGoogleOAuthSellerCredentialParams, aL as VenmoCredentialUploadInput, aJ as VenmoGoogleOAuthSellerCredentialUploadBody, aC as VenmoSessionMaterial, bh as VerifySellerPaymentParams, aN as WiseCredentialUploadInput, aF as WiseProfileInfo, aH as WiseProfileNotFound, aG as WiseProfileSelectionRequired, aE as WiseSessionMaterial, X as WithdrawDepositParams, cz as ZERO_RATE_MANAGER_ID, aK as ZelleGoogleOAuthSellerCredentialUploadBody, Z as Zkp2pClient, J as Zkp2pClientOptions, cE as classifyDelegationState, bD as compareEventCursorIdsByRecency, cc as currencyInfo, bA as defaultIndexerEndpoint, cq as enrichPvDepositView, cr as enrichPvIntentView, bE as fetchIndexerFulfillmentAndPayment, cj as getContracts, cf as getCurrencyCodeFromHash, ce as getCurrencyInfoFromCountryCode, cd as getCurrencyInfoFromHash, cD as getDelegationRoute, cm as getGatingServiceAddress, cl as getPaymentMethodsCatalog, ck as getRateManagerContracts, cg as isSupportedCurrencyHash, cA as isZeroRateManagerId, ch as mapConversionRatesToOnchainMinRate, cB as normalizeRateManagerId, cC as normalizeRegistry, co as parseDepositView, cp as parseIntentView } from './vaultUtils-BwY9Z0aR.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';
@@ -207,9 +207,13 @@ interface ConvertLiquidityOptions {
207
207
  declare function convertDepositsForLiquidity(deposits: DepositWithRelations[], chainId: number, escrowAddress: string, options?: ConvertLiquidityOptions): EscrowDepositView[];
208
208
  declare function convertIndexerIntentsToEscrowViews(intents: IntentEntity[], depositViewsById: Map<string, EscrowDepositView>): EscrowIntentView[];
209
209
 
210
- declare function apiRequestIdentityAttestation(payload: IdentityAttestationRequestBody, attestationServiceUrl: string, platform: string, actionType: string): Promise<AttestationServiceIdentityResponse>;
211
- declare function createEncryptedBuyerTeeSessionMaterial({ actionType, attestationRuntime, attestationServiceUrl, platform, sessionMaterial, timeoutMs, }: BuyerTeeSessionMaterialEncryptionInput): Promise<string>;
212
- declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerCredentialUploadPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime): Promise<AttestationServiceSellerCredentialUploadResponse>;
210
+ type AttestationRequestOptions = {
211
+ fallbackUrls?: readonly string[] | null;
212
+ };
213
+ declare function apiVerifyBuyerTeePayment(payload: BuyerTeeVerifyPaymentBody, attestationServiceUrl: string, platform: string, actionType: string, options?: AttestationRequestOptions): Promise<AttestationServiceSellerVerifyResponse>;
214
+ declare function apiRequestIdentityAttestation(payload: IdentityAttestationRequestBody, attestationServiceUrl: string, platform: string, actionType: string, options?: AttestationRequestOptions): Promise<AttestationServiceIdentityResponse>;
215
+ declare function createEncryptedBuyerTeeSessionMaterial({ actionType, attestationServiceFallbackUrls, attestationRuntime, attestationServiceUrl, platform, sessionMaterial, timeoutMs, }: BuyerTeeSessionMaterialEncryptionInput): Promise<string>;
216
+ declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerCredentialUploadPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime, options?: AttestationRequestOptions): Promise<AttestationServiceSellerCredentialUploadResponse>;
213
217
 
214
218
  /**
215
219
  * Store an already-encrypted seller credential bundle with curator.
@@ -456,11 +460,27 @@ declare const TOKEN_METADATA: {
456
460
  * tier engine (curator `src/common/services/tier/tierConstants.ts`), which is
457
461
  * what the backend actually enforces.
458
462
  *
459
- * A user's *live* cap (after lock-score penalties and per-platform risk
460
- * multipliers) always comes from the taker-tier API payload
461
- * (`TakerTier.perIntentCapBaseUnits` / `nextTierMaxOrderSizeDisplay`). This
462
- * static schedule is for reference displays that must show every tier at once —
463
- * the Fees & Tiers ladder — and the forward-looking "next tier cap" hint.
463
+ * The signal is now **lifetime Peer-Pay-consumed maker volume**, not raw taker
464
+ * fulfilled volume (curator PR #463 removed SAR weighting).
465
+ *
466
+ * A user's *live* tier, cap, and progression always come from the taker-tier
467
+ * API payload (`TakerTier.perIntentCapBaseUnits`, `minVolumeForTier`,
468
+ * `volumeToNextTier`, `peerPayVolume`). Those values are DB-backed and
469
+ * server-authoritative — they vary per environment (e.g. preprod runs
470
+ * different thresholds than these). This static schedule is ONLY a
471
+ * documented-default reference for displays that must show every tier at once
472
+ * (the Fees & Tiers ladder) when no live payload is available; never gate or
473
+ * compute a user's real cap from it.
474
+ *
475
+ * Volume bands track the live (pre-prod) tuned qualification thresholds, which
476
+ * were re-anchored to the real maker distribution — PEER $1k, PLUS $10k,
477
+ * PRO $50k, PLATINUM $100k (the earlier $2.5k/$20k/$75k/$300k placeholders left
478
+ * PLATINUM literally unreachable; the top band sits in the $99k–$167k gap so the
479
+ * same 3 whales qualify, on a round number). Caps ($100/$250/$1k/$2.5k/$5k) are
480
+ * unchanged.
481
+ * Production still runs the old placeholder bands until the tuned config is
482
+ * promoted, so even this reference can disagree with a given environment — read
483
+ * the live per-user values from the API.
464
484
  *
465
485
  * Ordered highest tier → lowest (PLATINUM first) to match UI display order.
466
486
  * PEER_PRESIDENT is invite-only and excluded from the volume ladder.
@@ -469,9 +489,9 @@ interface TakerTierScheduleEntry {
469
489
  tier: TakerTierLevel;
470
490
  /** Per-intent order cap in whole USD (base, before platform risk multipliers). */
471
491
  perIntentCapUsd: number;
472
- /** Inclusive lower bound of lifetime volume (USD) that qualifies for this tier. */
492
+ /** Inclusive lower bound of lifetime Peer-Pay volume (USD) that qualifies for this tier. */
473
493
  minVolumeUsd: number;
474
- /** Inclusive upper bound of lifetime volume (USD); `Infinity` for the top tier. */
494
+ /** Inclusive upper bound of lifetime Peer-Pay volume (USD); `Infinity` for the top tier. */
475
495
  maxVolumeUsd: number;
476
496
  }
477
497
  declare const TAKER_TIER_SCHEDULE: readonly TakerTierScheduleEntry[];
@@ -479,6 +499,17 @@ declare const TAKER_TIER_SCHEDULE: readonly TakerTierScheduleEntry[];
479
499
  declare const TAKER_TIER_ORDER: readonly TakerTierLevel[];
480
500
  /** Per-intent caps (whole USD) keyed by tier, derived from the schedule. */
481
501
  declare const TAKER_TIER_CAPS: Readonly<Record<string, number>>;
502
+ /**
503
+ * Default take-fee discount (in basis points) applied per tier, mirroring
504
+ * curator `TIER_FEE_DISCOUNT_BPS`. The discount is subtracted from the base
505
+ * service fee server-side at quote and sign time — it is NOT returned by the
506
+ * tier endpoint. These are documented defaults for reference fee displays only;
507
+ * the curator DB control-plane can override them, so prefer the fee shown on a
508
+ * live quote when one is available.
509
+ */
510
+ declare const TAKER_TIER_FEE_DISCOUNT_BPS: Readonly<Record<TakerTierLevel, number>>;
511
+ /** The default fee-discount (bps) for a tier, or 0 for unknown tiers. */
512
+ declare function getTakerTierFeeDiscountBps(tier: string | undefined): number;
482
513
  /** The next tier up from `currentTier`, or `null` at the top / for unknown tiers. */
483
514
  declare function getNextTakerTier(currentTier: string | undefined): TakerTierLevel | null;
484
515
 
@@ -762,4 +793,4 @@ declare class ContractError extends ZKP2PError {
762
793
  constructor(message: string, details?: unknown);
763
794
  }
764
795
 
765
- 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, TAKER_TIER_CAPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, TOKEN_METADATA, TakerTierLevel, type TakerTierScheduleEntry, 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, getNextTakerTier, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
796
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, 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, TAKER_TIER_CAPS, TAKER_TIER_FEE_DISCOUNT_BPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, TOKEN_METADATA, TakerTierLevel, type TakerTierScheduleEntry, TxOverrides, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiRequestIdentityAttestation, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getNextTakerTier, getPeerExtensionState, getSpreadOracleConfig, getTakerTierFeeDiscountBps, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };