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