@zkp2p/sdk 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, 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';
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-CcJn5Yh6.mjs';
2
+ export { M as ActionCallback, al as ApiDeposit, as as ApiIntentStatus, b1 as AttestationServiceSellerCredentialProbeResponse, K as AuthorizationTokenProvider, cH as BatchResult, a1 as BestByPlatformResponseObject, b2 as BuyerTeePaymentParams, b3 as BuyerTeePaymentProofInput, b4 as BuyerTeeSessionMaterial, H as CancelIntentMethodParams, a0 as CancelIntentParams, aL as CashAppCredentialUploadInput, aD as CashAppSessionMaterial, O as CreateDepositConversionRate, N as CreateDepositParams, b5 as CuratorSellerCredentialStatusResponse, b6 as CuratorSellerVerifyResponse, ca as Currency, ch as CurrencyData, cG as DelegationDepositTarget, cE as DelegationRoute, cF as DelegationState, cs as Deposit, cu as DepositCurrency, bq as DepositIntentStatistics, ao as DepositStatus, am as DepositVerifier, an as DepositVerifierCurrency, bn as DepositVerifierData, cr as DepositView, ah as FiatResponse, b0 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, bb as GetSellerCredentialStatusParams, bg as IdentityAttestationActionType, bh as IdentityAttestationOutput, bi as IdentityAttestationOutputFor, bj as IdentityAttestationParams, by as IndexerClient, c4 as IndexerDeploymentEnv, bE as IndexerDeposit, bV as IndexerDepositDailySnapshot, bX as IndexerDepositFilter, bU as IndexerDepositFundActivity, bW as IndexerDepositFundActivityType, b_ as IndexerDepositOrderDirection, bZ as IndexerDepositOrderField, bY as IndexerDepositPagination, bH as IndexerDepositPaymentMethod, bA as IndexerDepositService, c7 as IndexerFulfillmentAndPaymentResponse, c5 as IndexerFulfillmentRecord, bF as IndexerIntentFulfilled, bG as IndexerIntentFulfillmentAmounts, bJ as IndexerIntentStatus, bN as IndexerManagerAggregateStats, bP as IndexerManagerDailySnapshot, bO as IndexerManagerStats, bS as IndexerManualRateUpdate, bI as IndexerMethodCurrency, bT as IndexerOracleConfigUpdate, c6 as IndexerPaymentVerifiedRecord, bK as IndexerRateManager, bM as IndexerRateManagerDelegation, c1 as IndexerRateManagerDelegationPagination, bR as IndexerRateManagerDetail, b$ as IndexerRateManagerFilter, bQ as IndexerRateManagerListItem, c3 as IndexerRateManagerOrderDirection, c2 as IndexerRateManagerOrderField, c0 as IndexerRateManagerPagination, bL as IndexerRateManagerRate, bB as IndexerRateManagerService, ar as Intent, cw as IntentView, bk as MakerIdentityAttestationRequestBody, bl as MakerIdentityPlatform, aj as NearbyQuote, ak as NearbySuggestions, Z as OfframpClient, bm as OnchainCurrency, cx as OnchainIntent, bp as OrderStats, bx as OrderbookEntry, c8 as PAYMENT_PLATFORMS, aI as PayPalGoogleOAuthSellerCredentialUploadBody, ct as PaymentMethodData, c9 as PaymentPlatformType, bv as PlatformLimit, a5 as PlatformQuote, bw as PlatformRiskLevel, bo as PreparedTransaction, ag as QuoteFeesResponse, af as QuoteIntentResponse, a6 as QuoteRequest, ac as QuoteResponse, ad as QuoteResponseObject, ae as QuoteSingleResponse, W as Range, cv as ReferralFee, az as RegisterPayeeDetailsRequest, aA as RegisterPayeeDetailsResponse, b7 as RegisteredSellerCredentialPlatform, b9 as RegisteredUploadSellerCredentialParams, $ as ReleaseFundsToPayerParams, cm as RuntimeEnv, a_ as SellerAttestationOutput, aO as SellerCiphertextBundle, aT as SellerCredentialBundleUpload, a$ as SellerCredentialProbeResponse, aV as SellerCredentialStatus, aU as SellerCredentialStatusValue, aN as SellerCredentialUploadInputByPlatform, aZ as SellerPaymentTypedDataValue, aB as SellerPlatform, aS as SellerProbeInput, aP as SellerSignedCiphertextBundle, aX as SellerTypedDataField, aY as SellerTypedDataSpec, aR as SellerVerifyInput, aQ as SellerVerifyIntentDetails, aW as SellerVerifyProxyBody, cJ as SendBatchFn, cI as SendTransactionFn, E as SignalIntentMethodParams, Y as SignalIntentParams, z as SignalIntentReferralFee, br as TakerTier, bu as TakerTierSource, bt as TakerTierStats, bs as TakerTierVolumeBreakdown, L as TimeoutConfig, ai as TokenResponse, be as UploadGoogleOAuthSellerCredentialParams, bc as UploadPayPalGoogleOAuthSellerCredentialParams, ba as UploadSellerCredentialOptions, b8 as UploadSellerCredentialParams, bd as UploadVenmoGoogleOAuthSellerCredentialParams, aK as VenmoCredentialUploadInput, aJ as VenmoGoogleOAuthSellerCredentialUploadBody, aC as VenmoSessionMaterial, bf as VerifySellerPaymentParams, aM as WiseCredentialUploadInput, aF as WiseProfileInfo, aH as WiseProfileNotFound, aG as WiseProfileSelectionRequired, aE as WiseSessionMaterial, X as WithdrawDepositParams, cy as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, J as Zkp2pClientOptions, cD as classifyDelegationState, bC as compareEventCursorIdsByRecency, cb as currencyInfo, bz as defaultIndexerEndpoint, cp as enrichPvDepositView, cq as enrichPvIntentView, bD as fetchIndexerFulfillmentAndPayment, ci as getContracts, ce as getCurrencyCodeFromHash, cd as getCurrencyInfoFromCountryCode, cc as getCurrencyInfoFromHash, cC as getDelegationRoute, cl as getGatingServiceAddress, ck as getPaymentMethodsCatalog, cj as getRateManagerContracts, cf as isSupportedCurrencyHash, cz as isZeroRateManagerId, cg as mapConversionRatesToOnchainMinRate, cA as normalizeRateManagerId, cB as normalizeRegistry, cn as parseDepositView, co as parseIntentView } from './vaultUtils-CcJn5Yh6.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';
@@ -460,8 +460,10 @@ declare const TOKEN_METADATA: {
460
460
  * tier engine (curator `src/common/services/tier/tierConstants.ts`), which is
461
461
  * what the backend actually enforces.
462
462
  *
463
- * The signal is now **lifetime Peer-Pay-consumed maker volume**, not raw taker
464
- * fulfilled volume (curator PR #463 removed SAR weighting).
463
+ * The live qualification signal is **weighted all-maker volume**, not raw taker
464
+ * fulfilled volume and no longer Peer-Pay-only. Curator keeps the response
465
+ * field name `peerPayVolume` for compatibility, but PR #478 changed its
466
+ * semantics to weighted maker volume.
465
467
  *
466
468
  * A user's *live* tier, cap, and progression always come from the taker-tier
467
469
  * API payload (`TakerTier.perIntentCapBaseUnits`, `minVolumeForTier`,
@@ -474,13 +476,9 @@ declare const TOKEN_METADATA: {
474
476
  *
475
477
  * Volume bands track the live (pre-prod) tuned qualification thresholds, which
476
478
  * 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.
479
+ * PRO $50k, PLATINUM $100k. Caps ($100/$250/$1k/$2.5k/$5k) are unchanged.
480
+ * Read the live per-user values from the API: curator can change qualification
481
+ * inputs behind the compatibility fields without changing this reference table.
484
482
  *
485
483
  * Ordered highest tier → lowest (PLATINUM first) to match UI display order.
486
484
  * PEER_PRESIDENT is invite-only and excluded from the volume ladder.
@@ -489,9 +487,9 @@ interface TakerTierScheduleEntry {
489
487
  tier: TakerTierLevel;
490
488
  /** Per-intent order cap in whole USD (base, before platform risk multipliers). */
491
489
  perIntentCapUsd: number;
492
- /** Inclusive lower bound of lifetime Peer-Pay volume (USD) that qualifies for this tier. */
490
+ /** Inclusive lower bound of weighted maker volume (USD) that qualifies for this tier. */
493
491
  minVolumeUsd: number;
494
- /** Inclusive upper bound of lifetime Peer-Pay volume (USD); `Infinity` for the top tier. */
492
+ /** Inclusive upper bound of weighted maker volume (USD); `Infinity` for the top tier. */
495
493
  maxVolumeUsd: number;
496
494
  }
497
495
  declare const TAKER_TIER_SCHEDULE: readonly TakerTierScheduleEntry[];
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, 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';
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-CcJn5Yh6.js';
2
+ export { M as ActionCallback, al as ApiDeposit, as as ApiIntentStatus, b1 as AttestationServiceSellerCredentialProbeResponse, K as AuthorizationTokenProvider, cH as BatchResult, a1 as BestByPlatformResponseObject, b2 as BuyerTeePaymentParams, b3 as BuyerTeePaymentProofInput, b4 as BuyerTeeSessionMaterial, H as CancelIntentMethodParams, a0 as CancelIntentParams, aL as CashAppCredentialUploadInput, aD as CashAppSessionMaterial, O as CreateDepositConversionRate, N as CreateDepositParams, b5 as CuratorSellerCredentialStatusResponse, b6 as CuratorSellerVerifyResponse, ca as Currency, ch as CurrencyData, cG as DelegationDepositTarget, cE as DelegationRoute, cF as DelegationState, cs as Deposit, cu as DepositCurrency, bq as DepositIntentStatistics, ao as DepositStatus, am as DepositVerifier, an as DepositVerifierCurrency, bn as DepositVerifierData, cr as DepositView, ah as FiatResponse, b0 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, bb as GetSellerCredentialStatusParams, bg as IdentityAttestationActionType, bh as IdentityAttestationOutput, bi as IdentityAttestationOutputFor, bj as IdentityAttestationParams, by as IndexerClient, c4 as IndexerDeploymentEnv, bE as IndexerDeposit, bV as IndexerDepositDailySnapshot, bX as IndexerDepositFilter, bU as IndexerDepositFundActivity, bW as IndexerDepositFundActivityType, b_ as IndexerDepositOrderDirection, bZ as IndexerDepositOrderField, bY as IndexerDepositPagination, bH as IndexerDepositPaymentMethod, bA as IndexerDepositService, c7 as IndexerFulfillmentAndPaymentResponse, c5 as IndexerFulfillmentRecord, bF as IndexerIntentFulfilled, bG as IndexerIntentFulfillmentAmounts, bJ as IndexerIntentStatus, bN as IndexerManagerAggregateStats, bP as IndexerManagerDailySnapshot, bO as IndexerManagerStats, bS as IndexerManualRateUpdate, bI as IndexerMethodCurrency, bT as IndexerOracleConfigUpdate, c6 as IndexerPaymentVerifiedRecord, bK as IndexerRateManager, bM as IndexerRateManagerDelegation, c1 as IndexerRateManagerDelegationPagination, bR as IndexerRateManagerDetail, b$ as IndexerRateManagerFilter, bQ as IndexerRateManagerListItem, c3 as IndexerRateManagerOrderDirection, c2 as IndexerRateManagerOrderField, c0 as IndexerRateManagerPagination, bL as IndexerRateManagerRate, bB as IndexerRateManagerService, ar as Intent, cw as IntentView, bk as MakerIdentityAttestationRequestBody, bl as MakerIdentityPlatform, aj as NearbyQuote, ak as NearbySuggestions, Z as OfframpClient, bm as OnchainCurrency, cx as OnchainIntent, bp as OrderStats, bx as OrderbookEntry, c8 as PAYMENT_PLATFORMS, aI as PayPalGoogleOAuthSellerCredentialUploadBody, ct as PaymentMethodData, c9 as PaymentPlatformType, bv as PlatformLimit, a5 as PlatformQuote, bw as PlatformRiskLevel, bo as PreparedTransaction, ag as QuoteFeesResponse, af as QuoteIntentResponse, a6 as QuoteRequest, ac as QuoteResponse, ad as QuoteResponseObject, ae as QuoteSingleResponse, W as Range, cv as ReferralFee, az as RegisterPayeeDetailsRequest, aA as RegisterPayeeDetailsResponse, b7 as RegisteredSellerCredentialPlatform, b9 as RegisteredUploadSellerCredentialParams, $ as ReleaseFundsToPayerParams, cm as RuntimeEnv, a_ as SellerAttestationOutput, aO as SellerCiphertextBundle, aT as SellerCredentialBundleUpload, a$ as SellerCredentialProbeResponse, aV as SellerCredentialStatus, aU as SellerCredentialStatusValue, aN as SellerCredentialUploadInputByPlatform, aZ as SellerPaymentTypedDataValue, aB as SellerPlatform, aS as SellerProbeInput, aP as SellerSignedCiphertextBundle, aX as SellerTypedDataField, aY as SellerTypedDataSpec, aR as SellerVerifyInput, aQ as SellerVerifyIntentDetails, aW as SellerVerifyProxyBody, cJ as SendBatchFn, cI as SendTransactionFn, E as SignalIntentMethodParams, Y as SignalIntentParams, z as SignalIntentReferralFee, br as TakerTier, bu as TakerTierSource, bt as TakerTierStats, bs as TakerTierVolumeBreakdown, L as TimeoutConfig, ai as TokenResponse, be as UploadGoogleOAuthSellerCredentialParams, bc as UploadPayPalGoogleOAuthSellerCredentialParams, ba as UploadSellerCredentialOptions, b8 as UploadSellerCredentialParams, bd as UploadVenmoGoogleOAuthSellerCredentialParams, aK as VenmoCredentialUploadInput, aJ as VenmoGoogleOAuthSellerCredentialUploadBody, aC as VenmoSessionMaterial, bf as VerifySellerPaymentParams, aM as WiseCredentialUploadInput, aF as WiseProfileInfo, aH as WiseProfileNotFound, aG as WiseProfileSelectionRequired, aE as WiseSessionMaterial, X as WithdrawDepositParams, cy as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, J as Zkp2pClientOptions, cD as classifyDelegationState, bC as compareEventCursorIdsByRecency, cb as currencyInfo, bz as defaultIndexerEndpoint, cp as enrichPvDepositView, cq as enrichPvIntentView, bD as fetchIndexerFulfillmentAndPayment, ci as getContracts, ce as getCurrencyCodeFromHash, cd as getCurrencyInfoFromCountryCode, cc as getCurrencyInfoFromHash, cC as getDelegationRoute, cl as getGatingServiceAddress, ck as getPaymentMethodsCatalog, cj as getRateManagerContracts, cf as isSupportedCurrencyHash, cz as isZeroRateManagerId, cg as mapConversionRatesToOnchainMinRate, cA as normalizeRateManagerId, cB as normalizeRegistry, cn as parseDepositView, co as parseIntentView } from './vaultUtils-CcJn5Yh6.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';
@@ -460,8 +460,10 @@ declare const TOKEN_METADATA: {
460
460
  * tier engine (curator `src/common/services/tier/tierConstants.ts`), which is
461
461
  * what the backend actually enforces.
462
462
  *
463
- * The signal is now **lifetime Peer-Pay-consumed maker volume**, not raw taker
464
- * fulfilled volume (curator PR #463 removed SAR weighting).
463
+ * The live qualification signal is **weighted all-maker volume**, not raw taker
464
+ * fulfilled volume and no longer Peer-Pay-only. Curator keeps the response
465
+ * field name `peerPayVolume` for compatibility, but PR #478 changed its
466
+ * semantics to weighted maker volume.
465
467
  *
466
468
  * A user's *live* tier, cap, and progression always come from the taker-tier
467
469
  * API payload (`TakerTier.perIntentCapBaseUnits`, `minVolumeForTier`,
@@ -474,13 +476,9 @@ declare const TOKEN_METADATA: {
474
476
  *
475
477
  * Volume bands track the live (pre-prod) tuned qualification thresholds, which
476
478
  * 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.
479
+ * PRO $50k, PLATINUM $100k. Caps ($100/$250/$1k/$2.5k/$5k) are unchanged.
480
+ * Read the live per-user values from the API: curator can change qualification
481
+ * inputs behind the compatibility fields without changing this reference table.
484
482
  *
485
483
  * Ordered highest tier → lowest (PLATINUM first) to match UI display order.
486
484
  * PEER_PRESIDENT is invite-only and excluded from the volume ladder.
@@ -489,9 +487,9 @@ interface TakerTierScheduleEntry {
489
487
  tier: TakerTierLevel;
490
488
  /** Per-intent order cap in whole USD (base, before platform risk multipliers). */
491
489
  perIntentCapUsd: number;
492
- /** Inclusive lower bound of lifetime Peer-Pay volume (USD) that qualifies for this tier. */
490
+ /** Inclusive lower bound of weighted maker volume (USD) that qualifies for this tier. */
493
491
  minVolumeUsd: number;
494
- /** Inclusive upper bound of lifetime Peer-Pay volume (USD); `Infinity` for the top tier. */
492
+ /** Inclusive upper bound of weighted maker volume (USD); `Infinity` for the top tier. */
495
493
  maxVolumeUsd: number;
496
494
  }
497
495
  declare const TAKER_TIER_SCHEDULE: readonly TakerTierScheduleEntry[];
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { TAKER_TIER_CAPS, TAKER_TIER_FEE_DISCOUNT_BPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, ZERO_RATE_MANAGER_ID, classifyDelegationState, getDelegationRoute, getNextTakerTier, getTakerTierFeeDiscountBps, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-6WAMIVRB.mjs';
2
- import { APIError, NetworkError, ValidationError } from './chunk-GHQK65J2.mjs';
1
+ export { TAKER_TIER_CAPS, TAKER_TIER_FEE_DISCOUNT_BPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, ZERO_RATE_MANAGER_ID, classifyDelegationState, getDelegationRoute, getNextTakerTier, getTakerTierFeeDiscountBps, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-WFDRBAV3.mjs';
2
+ import { ValidationError, APIError, NetworkError } from './chunk-GHQK65J2.mjs';
3
3
  export { APIError, ContractError, ErrorCode, NetworkError, ValidationError, ZKP2PError } from './chunk-GHQK65J2.mjs';
4
4
  import { getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash } from './chunk-NMIFJSZ3.mjs';
5
5
  export { asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getGatingServiceAddress, getPaymentMethodsCatalog, getRateManagerContracts, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-NMIFJSZ3.mjs';
@@ -8307,12 +8307,12 @@ var Zkp2pClient = class {
8307
8307
  }
8308
8308
  );
8309
8309
  }
8310
- if (params.platform === "zelle") {
8310
+ if (params.platform === "venmo") {
8311
8311
  return apiUploadGoogleOAuthSellerCredential(
8312
- "zelle",
8312
+ "venmo",
8313
8313
  params.payeeDetails,
8314
8314
  {
8315
- payeeId: params.payeeId,
8315
+ accountId: params.accountId,
8316
8316
  authorizationCode: params.authorizationCode,
8317
8317
  redirectUri: params.redirectUri
8318
8318
  },
@@ -8322,18 +8322,9 @@ var Zkp2pClient = class {
8322
8322
  }
8323
8323
  );
8324
8324
  }
8325
- return apiUploadGoogleOAuthSellerCredential(
8326
- "venmo",
8327
- params.payeeDetails,
8328
- {
8329
- accountId: params.accountId,
8330
- authorizationCode: params.authorizationCode,
8331
- redirectUri: params.redirectUri
8332
- },
8333
- baseApiUrl,
8334
- {
8335
- timeoutMs
8336
- }
8325
+ throw new ValidationError(
8326
+ `Unsupported Google OAuth seller credential platform: ${String(params.platform)}`,
8327
+ "platform"
8337
8328
  );
8338
8329
  }
8339
8330
  /**