@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/README.md +1 -1
- package/dist/{chunk-6WAMIVRB.mjs → chunk-WFDRBAV3.mjs} +2 -2
- package/dist/chunk-WFDRBAV3.mjs.map +1 -0
- package/dist/index.cjs +9 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -13
- package/dist/index.d.ts +11 -13
- package/dist/index.mjs +8 -17
- package/dist/index.mjs.map +1 -1
- package/dist/react.cjs +12 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.mjs +14 -3
- package/dist/react.mjs.map +1 -1
- package/dist/{vaultUtils-BwY9Z0aR.d.mts → vaultUtils-CcJn5Yh6.d.mts} +32 -22
- package/dist/{vaultUtils-BwY9Z0aR.d.ts → vaultUtils-CcJn5Yh6.d.ts} +32 -22
- package/package.json +1 -1
- package/dist/chunk-6WAMIVRB.mjs.map +0 -1
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-
|
|
2
|
-
export { M as ActionCallback, al as ApiDeposit, as as ApiIntentStatus,
|
|
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
|
|
464
|
-
* fulfilled volume
|
|
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 (
|
|
478
|
-
*
|
|
479
|
-
*
|
|
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
|
|
490
|
+
/** Inclusive lower bound of weighted maker volume (USD) that qualifies for this tier. */
|
|
493
491
|
minVolumeUsd: number;
|
|
494
|
-
/** Inclusive upper bound of
|
|
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-
|
|
2
|
-
export { M as ActionCallback, al as ApiDeposit, as as ApiIntentStatus,
|
|
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
|
|
464
|
-
* fulfilled volume
|
|
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 (
|
|
478
|
-
*
|
|
479
|
-
*
|
|
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
|
|
490
|
+
/** Inclusive lower bound of weighted maker volume (USD) that qualifies for this tier. */
|
|
493
491
|
minVolumeUsd: number;
|
|
494
|
-
/** Inclusive upper bound of
|
|
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-
|
|
2
|
-
import { APIError, NetworkError
|
|
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 === "
|
|
8310
|
+
if (params.platform === "venmo") {
|
|
8311
8311
|
return apiUploadGoogleOAuthSellerCredential(
|
|
8312
|
-
"
|
|
8312
|
+
"venmo",
|
|
8313
8313
|
params.payeeDetails,
|
|
8314
8314
|
{
|
|
8315
|
-
|
|
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
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
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
|
/**
|