@zkp2p/sdk 0.6.3 → 0.7.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 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';
1
+ import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetTakerTierRequest, F as GetTakerTierResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, M as CurrencyType, T as TakerTierLevel, N as PaymentMethodCatalog, O as TxOverrides } from './vaultUtils-CdYaZr3f.mjs';
2
+ export { a7 as ActionCallback, aC as ApiDeposit, aJ as ApiIntentStatus, bi as AttestationServiceSellerCredentialProbeResponse, a5 as AuthorizationTokenProvider, cY as BatchResult, ai as BestByPlatformResponseObject, bj as BuyerTeePaymentParams, bk as BuyerTeePaymentProofInput, bl as BuyerTeeSessionMaterial, a2 as CancelIntentMethodParams, ah as CancelIntentParams, b0 as CashAppCredentialUploadInput, aU as CashAppSessionMaterial, ab as CreateDepositConversionRate, aa as CreateDepositParams, bm as CuratorSellerCredentialStatusResponse, bn as CuratorSellerVerifyResponse, cr as Currency, cy as CurrencyData, cX as DelegationDepositTarget, cV as DelegationRoute, cW as DelegationState, cJ as Deposit, cL as DepositCurrency, bH as DepositIntentStatistics, aF as DepositStatus, aD as DepositVerifier, aE as DepositVerifierCurrency, bE as DepositVerifierData, cI as DepositView, ay as FiatResponse, bh as FulfillIntentAttestationResponse, a1 as FulfillIntentMethodParams, af as FulfillIntentParams, aj as GetBestByPlatformResponse, ak as GetBestByPlatformResponseObject, aG as GetDepositByIdRequest, aH as GetDepositByIdResponse, aO as GetIntentByHashRequest, aP as GetIntentByHashResponse, aM as GetIntentsByDepositRequest, aN as GetIntentsByDepositResponse, ao as GetNearbyQuote, ap as GetNearbySuggestions, aK as GetOwnerIntentsRequest, aL as GetOwnerIntentsResponse, al as GetPlatformQuote, aq as GetQuoteResponse, ar as GetQuoteResponseObject, as as GetQuoteSingleResponse, bs as GetSellerCredentialStatusParams, bx as IdentityAttestationActionType, by as IdentityAttestationOutput, bz as IdentityAttestationOutputFor, bA as IdentityAttestationParams, bP as IndexerClient, cl as IndexerDeploymentEnv, bV as IndexerDeposit, ca as IndexerDepositDailySnapshot, cc as IndexerDepositFilter, c9 as IndexerDepositFundActivity, cb as IndexerDepositFundActivityType, cf as IndexerDepositOrderDirection, ce as IndexerDepositOrderField, cd as IndexerDepositPagination, bY as IndexerDepositPaymentMethod, bR as IndexerDepositService, co as IndexerFulfillmentAndPaymentResponse, cm as IndexerFulfillmentRecord, bW as IndexerIntentFulfilled, bX as IndexerIntentFulfillmentAmounts, b_ as IndexerIntentStatus, c2 as IndexerManagerAggregateStats, c4 as IndexerManagerDailySnapshot, c3 as IndexerManagerStats, c7 as IndexerManualRateUpdate, bZ as IndexerMethodCurrency, c8 as IndexerOracleConfigUpdate, cn as IndexerPaymentVerifiedRecord, b$ as IndexerRateManager, c1 as IndexerRateManagerDelegation, ci as IndexerRateManagerDelegationPagination, c6 as IndexerRateManagerDetail, cg as IndexerRateManagerFilter, c5 as IndexerRateManagerListItem, ck as IndexerRateManagerOrderDirection, cj as IndexerRateManagerOrderField, ch as IndexerRateManagerPagination, c0 as IndexerRateManagerRate, bS as IndexerRateManagerService, aI as Intent, cN as IntentView, bB as MakerIdentityAttestationRequestBody, bC as MakerIdentityPlatform, aA as NearbyQuote, aB as NearbySuggestions, Z as OfframpClient, bD as OnchainCurrency, cO as OnchainIntent, bG as OrderStats, bO as OrderbookEntry, cp as PAYMENT_PLATFORMS, aZ as PayPalGoogleOAuthSellerCredentialUploadBody, cK as PaymentMethodData, cq as PaymentPlatformType, bM as PlatformLimit, am as PlatformQuote, bN as PlatformRiskLevel, bF as PreparedTransaction, ax as QuoteFeesResponse, aw as QuoteIntentResponse, an as QuoteRequest, at as QuoteResponse, au as QuoteResponseObject, av as QuoteSingleResponse, ac as Range, _ as RedeemReferralCodeSignatureOptions, W as ReferralBearerWriteOptions, cM as ReferralFee, X as ReferralReadOptions, a8 as ReferralRedemption, a9 as ReferralSignatureBody, Y as ReferralSignatureOptions, aQ as RegisterPayeeDetailsRequest, aR as RegisterPayeeDetailsResponse, bo as RegisteredSellerCredentialPlatform, bq as RegisteredUploadSellerCredentialParams, ag as ReleaseFundsToPayerParams, cD as RuntimeEnv, bf as SellerAttestationOutput, b3 as SellerCiphertextBundle, b8 as SellerCredentialBundleUpload, bg as SellerCredentialProbeResponse, ba as SellerCredentialStatus, b9 as SellerCredentialStatusValue, b2 as SellerCredentialUploadInputByPlatform, be as SellerPaymentTypedDataValue, aS as SellerPlatform, b7 as SellerProbeInput, b4 as SellerSignedCiphertextBundle, bc as SellerTypedDataField, bd as SellerTypedDataSpec, b6 as SellerVerifyInput, b5 as SellerVerifyIntentDetails, bb as SellerVerifyProxyBody, c_ as SendBatchFn, cZ as SendTransactionFn, a0 as SignalIntentMethodParams, ae as SignalIntentParams, $ as SignalIntentReferralFee, bI as TakerTier, bL as TakerTierSource, bK as TakerTierStats, bJ as TakerTierVolumeBreakdown, a6 as TimeoutConfig, az as TokenResponse, a3 as UpdateReferralCodeSignatureOptions, bv as UploadGoogleOAuthSellerCredentialParams, bt as UploadPayPalGoogleOAuthSellerCredentialParams, br as UploadSellerCredentialOptions, bp as UploadSellerCredentialParams, bu as UploadVenmoGoogleOAuthSellerCredentialParams, a$ as VenmoCredentialUploadInput, a_ as VenmoGoogleOAuthSellerCredentialUploadBody, aT as VenmoSessionMaterial, bw as VerifySellerPaymentParams, b1 as WiseCredentialUploadInput, aW as WiseProfileInfo, aY as WiseProfileNotFound, aX as WiseProfileSelectionRequired, aV as WiseSessionMaterial, ad as WithdrawDepositParams, cP as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a4 as Zkp2pClientOptions, cU as classifyDelegationState, bT as compareEventCursorIdsByRecency, cs as currencyInfo, bQ as defaultIndexerEndpoint, cG as enrichPvDepositView, cH as enrichPvIntentView, bU as fetchIndexerFulfillmentAndPayment, cz as getContracts, cv as getCurrencyCodeFromHash, cu as getCurrencyInfoFromCountryCode, ct as getCurrencyInfoFromHash, cT as getDelegationRoute, cC as getGatingServiceAddress, cB as getPaymentMethodsCatalog, cA as getRateManagerContracts, cw as isSupportedCurrencyHash, cQ as isZeroRateManagerId, cx as mapConversionRatesToOnchainMinRate, cR as normalizeRateManagerId, cS as normalizeRegistry, cE as parseDepositView, cF as parseIntentView } from './vaultUtils-CdYaZr3f.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';
@@ -70,6 +70,57 @@ declare const assertValidReferrerFeeConfig: (config: ReferrerFeeConfig | undefin
70
70
  declare const parseReferrerFeeConfig: (recipient: string | null | undefined, feeBpsValue: string | number | null | undefined) => ReferrerFeeConfig | null;
71
71
  declare const referrerFeeConfigToPreciseUnits: (config: ReferrerFeeConfig) => bigint;
72
72
 
73
+ declare const normalizeReferralCode: (code: string) => string;
74
+ declare const isValidReferralCode: (code: string) => boolean;
75
+ declare const REFERRAL_SIGNATURE_DOMAIN: {
76
+ readonly name: "ZKP2PReferral";
77
+ readonly version: "1";
78
+ };
79
+ declare const REFERRAL_SIGNATURE_TYPES: {
80
+ readonly CreateCode: readonly [{
81
+ readonly name: "wallet";
82
+ readonly type: "address";
83
+ }, {
84
+ readonly name: "audience";
85
+ readonly type: "string";
86
+ }, {
87
+ readonly name: "issuedAt";
88
+ readonly type: "uint256";
89
+ }];
90
+ readonly RedeemCode: readonly [{
91
+ readonly name: "wallet";
92
+ readonly type: "address";
93
+ }, {
94
+ readonly name: "code";
95
+ readonly type: "string";
96
+ }, {
97
+ readonly name: "referrer";
98
+ readonly type: "address";
99
+ }, {
100
+ readonly name: "audience";
101
+ readonly type: "string";
102
+ }, {
103
+ readonly name: "issuedAt";
104
+ readonly type: "uint256";
105
+ }];
106
+ readonly RenameCode: readonly [{
107
+ readonly name: "wallet";
108
+ readonly type: "address";
109
+ }, {
110
+ readonly name: "oldCode";
111
+ readonly type: "string";
112
+ }, {
113
+ readonly name: "newCode";
114
+ readonly type: "string";
115
+ }, {
116
+ readonly name: "audience";
117
+ readonly type: "string";
118
+ }, {
119
+ readonly name: "issuedAt";
120
+ readonly type: "uint256";
121
+ }];
122
+ };
123
+
73
124
  interface EscrowContractContext {
74
125
  address: Address;
75
126
  abi: Abi;
@@ -229,6 +280,12 @@ declare function apiGetOwnerDeposits(req: GetOwnerDepositsRequest, apiKey: strin
229
280
  * Get taker tier information for a specific address.
230
281
  */
231
282
  declare function apiGetTakerTier(req: GetTakerTierRequest, baseApiUrl: string, timeoutMs?: number): Promise<GetTakerTierResponse>;
283
+ declare function apiGetReferralDashboard(opts: ApiAdapterOptions & ReferralReadRequest): Promise<ReferralDashboardResponse>;
284
+ declare function apiGetReferralEarnings(opts: ApiAdapterOptions & ReferralReadRequest): Promise<ReferralEarningsResponse>;
285
+ declare function apiLookupReferralCode(code: string, opts: ApiAdapterOptions): Promise<ReferralCodeLookupResponse>;
286
+ declare function apiCreateReferralCode(req: CreateReferralCodeRequest, opts: ApiAdapterOptions): Promise<CreateReferralCodeResponse>;
287
+ declare function apiRedeemReferralCode(req: RedeemReferralCodeRequest, opts: ApiAdapterOptions): Promise<RedeemReferralCodeResponse>;
288
+ declare function apiUpdateReferralCode(req: UpdateReferralCodeRequest, opts: ApiAdapterOptions): Promise<UpdateReferralCodeResponse>;
232
289
  declare function apiUploadGoogleOAuthSellerCredential<P extends GoogleOAuthSellerCredentialPlatform>(processorName: P, payeeDetails: Hash, body: GoogleOAuthSellerCredentialUploadBodyByPlatform[P], baseApiUrl: string, opts?: {
233
290
  timeoutMs?: number;
234
291
  }): Promise<CuratorSellerCredentialUploadResponse>;
@@ -460,10 +517,10 @@ declare const TOKEN_METADATA: {
460
517
  * tier engine (curator `src/common/services/tier/tierConstants.ts`), which is
461
518
  * what the backend actually enforces.
462
519
  *
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.
520
+ * The live qualification signal is Peer Pay volume. Historical maker tiers
521
+ * earned before July 1, 2026 UTC are preserved; after that cutoff, only Peer
522
+ * Pay volume moves the tier. Curator keeps the response field name
523
+ * `peerPayVolume` for compatibility.
467
524
  *
468
525
  * A user's *live* tier, cap, and progression always come from the taker-tier
469
526
  * API payload (`TakerTier.perIntentCapBaseUnits`, `minVolumeForTier`,
@@ -474,9 +531,8 @@ declare const TOKEN_METADATA: {
474
531
  * (the Fees & Tiers ladder) when no live payload is available; never gate or
475
532
  * compute a user's real cap from it.
476
533
  *
477
- * Volume bands track the live (pre-prod) tuned qualification thresholds, which
478
- * were re-anchored to the real maker distribution — PEER $1k, PLUS $10k,
479
- * PRO $50k, PLATINUM $100k. Caps ($100/$250/$1k/$2.5k/$5k) are unchanged.
534
+ * Volume bands track the live tuned qualification thresholds — PEER $1k,
535
+ * PLUS $10k, PRO $50k, PLATINUM $100k. Caps ($100/$250/$1k/$2.5k/$5k) are unchanged.
480
536
  * Read the live per-user values from the API: curator can change qualification
481
537
  * inputs behind the compatibility fields without changing this reference table.
482
538
  *
@@ -487,9 +543,9 @@ interface TakerTierScheduleEntry {
487
543
  tier: TakerTierLevel;
488
544
  /** Per-intent order cap in whole USD (base, before platform risk multipliers). */
489
545
  perIntentCapUsd: number;
490
- /** Inclusive lower bound of weighted maker volume (USD) that qualifies for this tier. */
546
+ /** Inclusive lower bound of Peer Pay volume (USD) that qualifies for this tier. */
491
547
  minVolumeUsd: number;
492
- /** Inclusive upper bound of weighted maker volume (USD); `Infinity` for the top tier. */
548
+ /** Inclusive upper bound of Peer Pay volume (USD); `Infinity` for the top tier. */
493
549
  maxVolumeUsd: number;
494
550
  }
495
551
  declare const TAKER_TIER_SCHEDULE: readonly TakerTierScheduleEntry[];
@@ -791,4 +847,4 @@ declare class ContractError extends ZKP2PError {
791
847
  constructor(message: string, details?: unknown);
792
848
  }
793
849
 
794
- 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 };
850
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, 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, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, 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, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetTakerTier, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getNextTakerTier, getPeerExtensionState, getSpreadOracleConfig, getTakerTierFeeDiscountBps, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, 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 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';
1
+ import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetTakerTierRequest, F as GetTakerTierResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, M as CurrencyType, T as TakerTierLevel, N as PaymentMethodCatalog, O as TxOverrides } from './vaultUtils-CdYaZr3f.js';
2
+ export { a7 as ActionCallback, aC as ApiDeposit, aJ as ApiIntentStatus, bi as AttestationServiceSellerCredentialProbeResponse, a5 as AuthorizationTokenProvider, cY as BatchResult, ai as BestByPlatformResponseObject, bj as BuyerTeePaymentParams, bk as BuyerTeePaymentProofInput, bl as BuyerTeeSessionMaterial, a2 as CancelIntentMethodParams, ah as CancelIntentParams, b0 as CashAppCredentialUploadInput, aU as CashAppSessionMaterial, ab as CreateDepositConversionRate, aa as CreateDepositParams, bm as CuratorSellerCredentialStatusResponse, bn as CuratorSellerVerifyResponse, cr as Currency, cy as CurrencyData, cX as DelegationDepositTarget, cV as DelegationRoute, cW as DelegationState, cJ as Deposit, cL as DepositCurrency, bH as DepositIntentStatistics, aF as DepositStatus, aD as DepositVerifier, aE as DepositVerifierCurrency, bE as DepositVerifierData, cI as DepositView, ay as FiatResponse, bh as FulfillIntentAttestationResponse, a1 as FulfillIntentMethodParams, af as FulfillIntentParams, aj as GetBestByPlatformResponse, ak as GetBestByPlatformResponseObject, aG as GetDepositByIdRequest, aH as GetDepositByIdResponse, aO as GetIntentByHashRequest, aP as GetIntentByHashResponse, aM as GetIntentsByDepositRequest, aN as GetIntentsByDepositResponse, ao as GetNearbyQuote, ap as GetNearbySuggestions, aK as GetOwnerIntentsRequest, aL as GetOwnerIntentsResponse, al as GetPlatformQuote, aq as GetQuoteResponse, ar as GetQuoteResponseObject, as as GetQuoteSingleResponse, bs as GetSellerCredentialStatusParams, bx as IdentityAttestationActionType, by as IdentityAttestationOutput, bz as IdentityAttestationOutputFor, bA as IdentityAttestationParams, bP as IndexerClient, cl as IndexerDeploymentEnv, bV as IndexerDeposit, ca as IndexerDepositDailySnapshot, cc as IndexerDepositFilter, c9 as IndexerDepositFundActivity, cb as IndexerDepositFundActivityType, cf as IndexerDepositOrderDirection, ce as IndexerDepositOrderField, cd as IndexerDepositPagination, bY as IndexerDepositPaymentMethod, bR as IndexerDepositService, co as IndexerFulfillmentAndPaymentResponse, cm as IndexerFulfillmentRecord, bW as IndexerIntentFulfilled, bX as IndexerIntentFulfillmentAmounts, b_ as IndexerIntentStatus, c2 as IndexerManagerAggregateStats, c4 as IndexerManagerDailySnapshot, c3 as IndexerManagerStats, c7 as IndexerManualRateUpdate, bZ as IndexerMethodCurrency, c8 as IndexerOracleConfigUpdate, cn as IndexerPaymentVerifiedRecord, b$ as IndexerRateManager, c1 as IndexerRateManagerDelegation, ci as IndexerRateManagerDelegationPagination, c6 as IndexerRateManagerDetail, cg as IndexerRateManagerFilter, c5 as IndexerRateManagerListItem, ck as IndexerRateManagerOrderDirection, cj as IndexerRateManagerOrderField, ch as IndexerRateManagerPagination, c0 as IndexerRateManagerRate, bS as IndexerRateManagerService, aI as Intent, cN as IntentView, bB as MakerIdentityAttestationRequestBody, bC as MakerIdentityPlatform, aA as NearbyQuote, aB as NearbySuggestions, Z as OfframpClient, bD as OnchainCurrency, cO as OnchainIntent, bG as OrderStats, bO as OrderbookEntry, cp as PAYMENT_PLATFORMS, aZ as PayPalGoogleOAuthSellerCredentialUploadBody, cK as PaymentMethodData, cq as PaymentPlatformType, bM as PlatformLimit, am as PlatformQuote, bN as PlatformRiskLevel, bF as PreparedTransaction, ax as QuoteFeesResponse, aw as QuoteIntentResponse, an as QuoteRequest, at as QuoteResponse, au as QuoteResponseObject, av as QuoteSingleResponse, ac as Range, _ as RedeemReferralCodeSignatureOptions, W as ReferralBearerWriteOptions, cM as ReferralFee, X as ReferralReadOptions, a8 as ReferralRedemption, a9 as ReferralSignatureBody, Y as ReferralSignatureOptions, aQ as RegisterPayeeDetailsRequest, aR as RegisterPayeeDetailsResponse, bo as RegisteredSellerCredentialPlatform, bq as RegisteredUploadSellerCredentialParams, ag as ReleaseFundsToPayerParams, cD as RuntimeEnv, bf as SellerAttestationOutput, b3 as SellerCiphertextBundle, b8 as SellerCredentialBundleUpload, bg as SellerCredentialProbeResponse, ba as SellerCredentialStatus, b9 as SellerCredentialStatusValue, b2 as SellerCredentialUploadInputByPlatform, be as SellerPaymentTypedDataValue, aS as SellerPlatform, b7 as SellerProbeInput, b4 as SellerSignedCiphertextBundle, bc as SellerTypedDataField, bd as SellerTypedDataSpec, b6 as SellerVerifyInput, b5 as SellerVerifyIntentDetails, bb as SellerVerifyProxyBody, c_ as SendBatchFn, cZ as SendTransactionFn, a0 as SignalIntentMethodParams, ae as SignalIntentParams, $ as SignalIntentReferralFee, bI as TakerTier, bL as TakerTierSource, bK as TakerTierStats, bJ as TakerTierVolumeBreakdown, a6 as TimeoutConfig, az as TokenResponse, a3 as UpdateReferralCodeSignatureOptions, bv as UploadGoogleOAuthSellerCredentialParams, bt as UploadPayPalGoogleOAuthSellerCredentialParams, br as UploadSellerCredentialOptions, bp as UploadSellerCredentialParams, bu as UploadVenmoGoogleOAuthSellerCredentialParams, a$ as VenmoCredentialUploadInput, a_ as VenmoGoogleOAuthSellerCredentialUploadBody, aT as VenmoSessionMaterial, bw as VerifySellerPaymentParams, b1 as WiseCredentialUploadInput, aW as WiseProfileInfo, aY as WiseProfileNotFound, aX as WiseProfileSelectionRequired, aV as WiseSessionMaterial, ad as WithdrawDepositParams, cP as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a4 as Zkp2pClientOptions, cU as classifyDelegationState, bT as compareEventCursorIdsByRecency, cs as currencyInfo, bQ as defaultIndexerEndpoint, cG as enrichPvDepositView, cH as enrichPvIntentView, bU as fetchIndexerFulfillmentAndPayment, cz as getContracts, cv as getCurrencyCodeFromHash, cu as getCurrencyInfoFromCountryCode, ct as getCurrencyInfoFromHash, cT as getDelegationRoute, cC as getGatingServiceAddress, cB as getPaymentMethodsCatalog, cA as getRateManagerContracts, cw as isSupportedCurrencyHash, cQ as isZeroRateManagerId, cx as mapConversionRatesToOnchainMinRate, cR as normalizeRateManagerId, cS as normalizeRegistry, cE as parseDepositView, cF as parseIntentView } from './vaultUtils-CdYaZr3f.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';
@@ -70,6 +70,57 @@ declare const assertValidReferrerFeeConfig: (config: ReferrerFeeConfig | undefin
70
70
  declare const parseReferrerFeeConfig: (recipient: string | null | undefined, feeBpsValue: string | number | null | undefined) => ReferrerFeeConfig | null;
71
71
  declare const referrerFeeConfigToPreciseUnits: (config: ReferrerFeeConfig) => bigint;
72
72
 
73
+ declare const normalizeReferralCode: (code: string) => string;
74
+ declare const isValidReferralCode: (code: string) => boolean;
75
+ declare const REFERRAL_SIGNATURE_DOMAIN: {
76
+ readonly name: "ZKP2PReferral";
77
+ readonly version: "1";
78
+ };
79
+ declare const REFERRAL_SIGNATURE_TYPES: {
80
+ readonly CreateCode: readonly [{
81
+ readonly name: "wallet";
82
+ readonly type: "address";
83
+ }, {
84
+ readonly name: "audience";
85
+ readonly type: "string";
86
+ }, {
87
+ readonly name: "issuedAt";
88
+ readonly type: "uint256";
89
+ }];
90
+ readonly RedeemCode: readonly [{
91
+ readonly name: "wallet";
92
+ readonly type: "address";
93
+ }, {
94
+ readonly name: "code";
95
+ readonly type: "string";
96
+ }, {
97
+ readonly name: "referrer";
98
+ readonly type: "address";
99
+ }, {
100
+ readonly name: "audience";
101
+ readonly type: "string";
102
+ }, {
103
+ readonly name: "issuedAt";
104
+ readonly type: "uint256";
105
+ }];
106
+ readonly RenameCode: readonly [{
107
+ readonly name: "wallet";
108
+ readonly type: "address";
109
+ }, {
110
+ readonly name: "oldCode";
111
+ readonly type: "string";
112
+ }, {
113
+ readonly name: "newCode";
114
+ readonly type: "string";
115
+ }, {
116
+ readonly name: "audience";
117
+ readonly type: "string";
118
+ }, {
119
+ readonly name: "issuedAt";
120
+ readonly type: "uint256";
121
+ }];
122
+ };
123
+
73
124
  interface EscrowContractContext {
74
125
  address: Address;
75
126
  abi: Abi;
@@ -229,6 +280,12 @@ declare function apiGetOwnerDeposits(req: GetOwnerDepositsRequest, apiKey: strin
229
280
  * Get taker tier information for a specific address.
230
281
  */
231
282
  declare function apiGetTakerTier(req: GetTakerTierRequest, baseApiUrl: string, timeoutMs?: number): Promise<GetTakerTierResponse>;
283
+ declare function apiGetReferralDashboard(opts: ApiAdapterOptions & ReferralReadRequest): Promise<ReferralDashboardResponse>;
284
+ declare function apiGetReferralEarnings(opts: ApiAdapterOptions & ReferralReadRequest): Promise<ReferralEarningsResponse>;
285
+ declare function apiLookupReferralCode(code: string, opts: ApiAdapterOptions): Promise<ReferralCodeLookupResponse>;
286
+ declare function apiCreateReferralCode(req: CreateReferralCodeRequest, opts: ApiAdapterOptions): Promise<CreateReferralCodeResponse>;
287
+ declare function apiRedeemReferralCode(req: RedeemReferralCodeRequest, opts: ApiAdapterOptions): Promise<RedeemReferralCodeResponse>;
288
+ declare function apiUpdateReferralCode(req: UpdateReferralCodeRequest, opts: ApiAdapterOptions): Promise<UpdateReferralCodeResponse>;
232
289
  declare function apiUploadGoogleOAuthSellerCredential<P extends GoogleOAuthSellerCredentialPlatform>(processorName: P, payeeDetails: Hash, body: GoogleOAuthSellerCredentialUploadBodyByPlatform[P], baseApiUrl: string, opts?: {
233
290
  timeoutMs?: number;
234
291
  }): Promise<CuratorSellerCredentialUploadResponse>;
@@ -460,10 +517,10 @@ declare const TOKEN_METADATA: {
460
517
  * tier engine (curator `src/common/services/tier/tierConstants.ts`), which is
461
518
  * what the backend actually enforces.
462
519
  *
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.
520
+ * The live qualification signal is Peer Pay volume. Historical maker tiers
521
+ * earned before July 1, 2026 UTC are preserved; after that cutoff, only Peer
522
+ * Pay volume moves the tier. Curator keeps the response field name
523
+ * `peerPayVolume` for compatibility.
467
524
  *
468
525
  * A user's *live* tier, cap, and progression always come from the taker-tier
469
526
  * API payload (`TakerTier.perIntentCapBaseUnits`, `minVolumeForTier`,
@@ -474,9 +531,8 @@ declare const TOKEN_METADATA: {
474
531
  * (the Fees & Tiers ladder) when no live payload is available; never gate or
475
532
  * compute a user's real cap from it.
476
533
  *
477
- * Volume bands track the live (pre-prod) tuned qualification thresholds, which
478
- * were re-anchored to the real maker distribution — PEER $1k, PLUS $10k,
479
- * PRO $50k, PLATINUM $100k. Caps ($100/$250/$1k/$2.5k/$5k) are unchanged.
534
+ * Volume bands track the live tuned qualification thresholds — PEER $1k,
535
+ * PLUS $10k, PRO $50k, PLATINUM $100k. Caps ($100/$250/$1k/$2.5k/$5k) are unchanged.
480
536
  * Read the live per-user values from the API: curator can change qualification
481
537
  * inputs behind the compatibility fields without changing this reference table.
482
538
  *
@@ -487,9 +543,9 @@ interface TakerTierScheduleEntry {
487
543
  tier: TakerTierLevel;
488
544
  /** Per-intent order cap in whole USD (base, before platform risk multipliers). */
489
545
  perIntentCapUsd: number;
490
- /** Inclusive lower bound of weighted maker volume (USD) that qualifies for this tier. */
546
+ /** Inclusive lower bound of Peer Pay volume (USD) that qualifies for this tier. */
491
547
  minVolumeUsd: number;
492
- /** Inclusive upper bound of weighted maker volume (USD); `Infinity` for the top tier. */
548
+ /** Inclusive upper bound of Peer Pay volume (USD); `Infinity` for the top tier. */
493
549
  maxVolumeUsd: number;
494
550
  }
495
551
  declare const TAKER_TIER_SCHEDULE: readonly TakerTierScheduleEntry[];
@@ -791,4 +847,4 @@ declare class ContractError extends ZKP2PError {
791
847
  constructor(message: string, details?: unknown);
792
848
  }
793
849
 
794
- 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 };
850
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, 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, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, 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, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetTakerTier, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getNextTakerTier, getPeerExtensionState, getSpreadOracleConfig, getTakerTierFeeDiscountBps, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };