@zkp2p/sdk 0.14.5-rc.1 → 0.14.5
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 +42 -14
- package/dist/build-metadata.json +3 -3
- package/dist/chunk-2K2ATNTY.mjs +12 -0
- package/dist/chunk-2K2ATNTY.mjs.map +1 -0
- package/dist/{chunk-5YLUC57N.mjs → chunk-QGFAF5VH.mjs} +9178 -6666
- package/dist/chunk-QGFAF5VH.mjs.map +1 -0
- package/dist/{currency-ROSO5JUH.mjs → currency-HGHBHKCR.mjs} +3 -3
- package/dist/{currency-ROSO5JUH.mjs.map → currency-HGHBHKCR.mjs.map} +1 -1
- package/dist/index.cjs +9789 -7117
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.mjs +190 -52
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-EKSTC7KZ.mjs +5 -0
- package/dist/{protocolViewerParsers-64F4BSMS.mjs.map → protocolViewerParsers-EKSTC7KZ.mjs.map} +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.mjs +1 -1
- package/dist/{timeout-Z2D444ZE.mjs → timeout-XMVMQWWA.mjs} +3 -3
- package/dist/{timeout-Z2D444ZE.mjs.map → timeout-XMVMQWWA.mjs.map} +1 -1
- package/dist/{vaultUtils-BadWrrW3.d.mts → vaultUtils-CGxOY369.d.mts} +34 -4
- package/dist/{vaultUtils-BadWrrW3.d.ts → vaultUtils-CGxOY369.d.ts} +34 -4
- package/package.json +2 -2
- package/dist/chunk-5YLUC57N.mjs.map +0 -1
- package/dist/chunk-XFXOKA35.mjs +0 -12
- package/dist/chunk-XFXOKA35.mjs.map +0 -1
- package/dist/protocolViewerParsers-64F4BSMS.mjs +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { enrichPvDepositView, enrichPvIntentView, parseDepositView, parseIntentView } from './chunk-QGFAF5VH.mjs';
|
|
2
|
+
import './chunk-ZB22BZLZ.mjs';
|
|
3
|
+
import './chunk-2K2ATNTY.mjs';
|
|
4
|
+
//# sourceMappingURL=protocolViewerParsers-EKSTC7KZ.mjs.map
|
|
5
|
+
//# sourceMappingURL=protocolViewerParsers-EKSTC7KZ.mjs.map
|
package/dist/{protocolViewerParsers-64F4BSMS.mjs.map → protocolViewerParsers-EKSTC7KZ.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"protocolViewerParsers-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"protocolViewerParsers-EKSTC7KZ.mjs"}
|
package/dist/react.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { _ as Zkp2pClient, P as PostDepositDetailsRequest, a4 as SignalIntentMethodParams, bY as PreparedTransaction, a5 as FulfillIntentMethodParams, dJ as SendTransactionFn, dK as SendBatchFn, dH as DelegationDepositTarget, dI as BatchResult, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote } from './vaultUtils-CGxOY369.mjs';
|
|
2
|
+
export { dF as DelegationRoute, dG as DelegationState, dN as VAULT_ZERO_ADDRESS, dz as ZERO_RATE_MANAGER_ID, dO as asErrorMessage, dP as assertDelegationMethodSupport, dE as classifyDelegationState, dD as getDelegationRoute, dA as isZeroRateManagerId, dB as normalizeRateManagerId, dC as normalizeRegistry } from './vaultUtils-CGxOY369.mjs';
|
|
3
3
|
import { Hash, Address, Hex } from 'viem';
|
|
4
4
|
import '@zkp2p/indexer-schema';
|
|
5
5
|
import 'abitype';
|
package/dist/react.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { _ as Zkp2pClient, P as PostDepositDetailsRequest, a4 as SignalIntentMethodParams, bY as PreparedTransaction, a5 as FulfillIntentMethodParams, dJ as SendTransactionFn, dK as SendBatchFn, dH as DelegationDepositTarget, dI as BatchResult, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote } from './vaultUtils-CGxOY369.js';
|
|
2
|
+
export { dF as DelegationRoute, dG as DelegationState, dN as VAULT_ZERO_ADDRESS, dz as ZERO_RATE_MANAGER_ID, dO as asErrorMessage, dP as assertDelegationMethodSupport, dE as classifyDelegationState, dD as getDelegationRoute, dA as isZeroRateManagerId, dB as normalizeRateManagerId, dC as normalizeRegistry } from './vaultUtils-CGxOY369.js';
|
|
3
3
|
import { Hash, Address, Hex } from 'viem';
|
|
4
4
|
import '@zkp2p/indexer-schema';
|
|
5
5
|
import 'abitype';
|
package/dist/react.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { asErrorMessage, ZERO_ADDRESS, getDelegationRoute, assertDelegationMethodSupport, prepareClearDelegationTx, normalizeRateManagerId, normalizeRegistry, isZeroRateManagerId, assertAtomicDelegationSwitchSupport, prepareSetDelegationTx, classifyIntentGuardianError } from './chunk-YA67SM3A.mjs';
|
|
2
2
|
export { ZERO_ADDRESS as VAULT_ZERO_ADDRESS, ZERO_RATE_MANAGER_ID, asErrorMessage, assertDelegationMethodSupport, classifyDelegationState, getDelegationRoute, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-YA67SM3A.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-2K2ATNTY.mjs';
|
|
4
4
|
import { useState, useCallback, useMemo } from 'react';
|
|
5
5
|
|
|
6
6
|
function useCreateDeposit({ client, onSuccess, onError }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NetworkError } from './chunk-3J4FPMPW.mjs';
|
|
2
|
-
import './chunk-
|
|
2
|
+
import './chunk-2K2ATNTY.mjs';
|
|
3
3
|
|
|
4
4
|
// src/utils/timeout.ts
|
|
5
5
|
async function withTimeout(promise, timeoutMs, timeoutMessage) {
|
|
@@ -30,5 +30,5 @@ var DEFAULT_TIMEOUTS = {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export { DEFAULT_TIMEOUTS, withTimeout };
|
|
33
|
-
//# sourceMappingURL=timeout-
|
|
34
|
-
//# sourceMappingURL=timeout-
|
|
33
|
+
//# sourceMappingURL=timeout-XMVMQWWA.mjs.map
|
|
34
|
+
//# sourceMappingURL=timeout-XMVMQWWA.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/timeout.ts"],"names":[],"mappings":";;;;AASA,eAAsB,WAAA,CACpB,OAAA,EACA,SAAA,EACA,cAAA,EACY;AACZ,EAAA,IAAI,SAAA;AAEJ,EAAA,MAAM,cAAA,GAAiB,IAAI,OAAA,CAAe,CAAC,GAAG,MAAA,KAAW;AACvD,IAAA,SAAA,GAAY,WAAW,MAAM;AAC3B,MAAA,MAAA,CAAO,IAAI,YAAA,CAAa,cAAA,EAAgB,EAAE,OAAA,EAAS,SAAA,EAAW,CAAC,CAAA;AAAA,IACjE,GAAG,SAAS,CAAA;AAAA,EACd,CAAC,CAAA;AAED,EAAA,IAAI;AACF,IAAA,MAAM,SAAS,MAAM,OAAA,CAAQ,KAAK,CAAC,OAAA,EAAS,cAAc,CAAC,CAAA;AAC3D,IAAA,IAAI,SAAA,eAAwB,SAAS,CAAA;AACrC,IAAA,OAAO,MAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,IAAI,SAAA,eAAwB,SAAS,CAAA;AACrC,IAAA,MAAM,KAAA;AAAA,EACR;AACF;AAKO,IAAM,gBAAA,GAAmB;AAAA;AAAA,EAE9B,GAAA,EAAK,GAAA;AAAA;AAAA,EAEL,WAAA,EAAa,GAAA;AAAA;AAAA,EAEb,gBAAA,EAAkB,IAAA;AAAA;AAAA,EAElB,SAAA,EAAW;AACb","file":"timeout-
|
|
1
|
+
{"version":3,"sources":["../src/utils/timeout.ts"],"names":[],"mappings":";;;;AASA,eAAsB,WAAA,CACpB,OAAA,EACA,SAAA,EACA,cAAA,EACY;AACZ,EAAA,IAAI,SAAA;AAEJ,EAAA,MAAM,cAAA,GAAiB,IAAI,OAAA,CAAe,CAAC,GAAG,MAAA,KAAW;AACvD,IAAA,SAAA,GAAY,WAAW,MAAM;AAC3B,MAAA,MAAA,CAAO,IAAI,YAAA,CAAa,cAAA,EAAgB,EAAE,OAAA,EAAS,SAAA,EAAW,CAAC,CAAA;AAAA,IACjE,GAAG,SAAS,CAAA;AAAA,EACd,CAAC,CAAA;AAED,EAAA,IAAI;AACF,IAAA,MAAM,SAAS,MAAM,OAAA,CAAQ,KAAK,CAAC,OAAA,EAAS,cAAc,CAAC,CAAA;AAC3D,IAAA,IAAI,SAAA,eAAwB,SAAS,CAAA;AACrC,IAAA,OAAO,MAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,IAAI,SAAA,eAAwB,SAAS,CAAA;AACrC,IAAA,MAAM,KAAA;AAAA,EACR;AACF;AAKO,IAAM,gBAAA,GAAmB;AAAA;AAAA,EAE9B,GAAA,EAAK,GAAA;AAAA;AAAA,EAEL,WAAA,EAAa,GAAA;AAAA;AAAA,EAEb,gBAAA,EAAkB,IAAA;AAAA;AAAA,EAElB,SAAA,EAAW;AACb","file":"timeout-XMVMQWWA.mjs","sourcesContent":["import { NetworkError } from '../errors';\n\n/**\n * Wraps a promise with a timeout\n * @param promise - The promise to wrap\n * @param timeoutMs - Timeout in milliseconds\n * @param timeoutMessage - Error message when timeout occurs\n * @returns Promise that rejects if timeout occurs\n */\nexport async function withTimeout<T>(\n promise: Promise<T>,\n timeoutMs: number,\n timeoutMessage: string\n): Promise<T> {\n let timeoutId: NodeJS.Timeout | undefined;\n\n const timeoutPromise = new Promise<never>((_, reject) => {\n timeoutId = setTimeout(() => {\n reject(new NetworkError(timeoutMessage, { timeout: timeoutMs }));\n }, timeoutMs);\n });\n\n try {\n const result = await Promise.race([promise, timeoutPromise]);\n if (timeoutId) clearTimeout(timeoutId);\n return result;\n } catch (error) {\n if (timeoutId) clearTimeout(timeoutId);\n throw error;\n }\n}\n\n/**\n * Default timeout values for different operation types\n */\nexport const DEFAULT_TIMEOUTS = {\n /** API call timeout (30 seconds) */\n API: 30000,\n /** Blockchain transaction timeout (60 seconds) */\n TRANSACTION: 60000,\n /** Proof generation timeout (120 seconds) */\n PROOF_GENERATION: 120000,\n /** Extension communication timeout (60 seconds) */\n EXTENSION: 60000,\n} as const;"]}
|
|
@@ -965,6 +965,11 @@ type GoogleOAuthSellerCredentialUploadBodyByPlatform = {
|
|
|
965
965
|
paypal: PayPalGoogleOAuthSellerCredentialUploadBody;
|
|
966
966
|
venmo: VenmoGoogleOAuthSellerCredentialUploadBody;
|
|
967
967
|
};
|
|
968
|
+
type MicrosoftOAuthSellerCredentialUploadBodyByPlatform = {
|
|
969
|
+
[P in GoogleOAuthSellerCredentialPlatform]: GoogleOAuthSellerCredentialUploadBodyByPlatform[P] & {
|
|
970
|
+
codeVerifier: string;
|
|
971
|
+
};
|
|
972
|
+
};
|
|
968
973
|
type VenmoCredentialUploadInput = {
|
|
969
974
|
callerAddress?: string;
|
|
970
975
|
payeeId: string;
|
|
@@ -1213,6 +1218,9 @@ type UploadVenmoGoogleOAuthSellerCredentialParams = GoogleOAuthSellerCredentialB
|
|
|
1213
1218
|
platform: 'venmo';
|
|
1214
1219
|
};
|
|
1215
1220
|
type UploadGoogleOAuthSellerCredentialParams = UploadPayPalGoogleOAuthSellerCredentialParams | UploadVenmoGoogleOAuthSellerCredentialParams;
|
|
1221
|
+
type UploadMicrosoftOAuthSellerCredentialParams = UploadGoogleOAuthSellerCredentialParams & {
|
|
1222
|
+
codeVerifier: string;
|
|
1223
|
+
};
|
|
1216
1224
|
type VerifySellerPaymentParams = {
|
|
1217
1225
|
platform: SellerPlatform;
|
|
1218
1226
|
} & SellerVerifyProxyBody;
|
|
@@ -2462,8 +2470,8 @@ type TakerStakeAuthorizationPageParams = PageParams & {
|
|
|
2462
2470
|
});
|
|
2463
2471
|
type StakeActivityPageParams = PageParams & {
|
|
2464
2472
|
vaultAddress: Address;
|
|
2465
|
-
/**
|
|
2466
|
-
merchant
|
|
2473
|
+
/** When provided, match either the immutable owner or taker side. */
|
|
2474
|
+
merchant?: Address;
|
|
2467
2475
|
kind?: StakeActivityKind;
|
|
2468
2476
|
/** Chronological direction; defaults to oldest first for ingestion callers. */
|
|
2469
2477
|
orderDirection?: 'asc' | 'desc';
|
|
@@ -2512,6 +2520,11 @@ type IndexedStakeActivity = {
|
|
|
2512
2520
|
logIndex: string;
|
|
2513
2521
|
timestamp: string;
|
|
2514
2522
|
};
|
|
2523
|
+
type IndexedStakeTotals = {
|
|
2524
|
+
totalStaked: string;
|
|
2525
|
+
totalLocked: string;
|
|
2526
|
+
stakerCount: number;
|
|
2527
|
+
};
|
|
2515
2528
|
type IndexedDisputeProtectionIntent = {
|
|
2516
2529
|
policyAddress: Address;
|
|
2517
2530
|
intentHash: string;
|
|
@@ -2630,6 +2643,11 @@ declare function buildStakingEntityIds(params: IndexedStakingStateParams): Staki
|
|
|
2630
2643
|
declare class IndexerStakingService {
|
|
2631
2644
|
private readonly client;
|
|
2632
2645
|
constructor(client: IndexerClient);
|
|
2646
|
+
/** Sum current positive stake accounts for one vault. */
|
|
2647
|
+
fetchStakeTotals(params: {
|
|
2648
|
+
chainId: number;
|
|
2649
|
+
vaultAddress: Address;
|
|
2650
|
+
}, init?: RequestInit): Promise<IndexedStakeTotals>;
|
|
2633
2651
|
fetchStakeLocks(params: StakeLockPageParams, init?: RequestInit): Promise<IndexedPage<IndexedStakeLock>>;
|
|
2634
2652
|
/**
|
|
2635
2653
|
* Pages one side of the vault's authorization graph: takers a stake owner
|
|
@@ -3397,10 +3415,16 @@ declare class Zkp2pClient {
|
|
|
3397
3415
|
getTakerStakeAuthorizations: (params: TakerStakeAuthorizationPageParams, options?: {
|
|
3398
3416
|
signal?: AbortSignal;
|
|
3399
3417
|
}) => Promise<IndexedPage<IndexedTakerStakeAuthorization>>;
|
|
3400
|
-
/** Pages
|
|
3418
|
+
/** Pages vault activity, optionally scoped to either side of a merchant's stake delegation. */
|
|
3401
3419
|
getStakeActivity: (params: StakeActivityPageParams, options?: {
|
|
3402
3420
|
signal?: AbortSignal;
|
|
3403
3421
|
}) => Promise<IndexedPage<IndexedStakeActivity>>;
|
|
3422
|
+
getStakeTotals: (params: {
|
|
3423
|
+
chainId: number;
|
|
3424
|
+
vaultAddress: Address;
|
|
3425
|
+
}, options?: {
|
|
3426
|
+
signal?: AbortSignal;
|
|
3427
|
+
}) => Promise<IndexedStakeTotals>;
|
|
3404
3428
|
/** Pages the exact active policy's finalized dispute stream. */
|
|
3405
3429
|
getDisputeProtectionIntents: (params: DisputeProtectionIntentPageParams, options?: {
|
|
3406
3430
|
signal?: AbortSignal;
|
|
@@ -4560,6 +4584,12 @@ declare class Zkp2pClient {
|
|
|
4560
4584
|
timeoutMs?: number;
|
|
4561
4585
|
signal?: AbortSignal;
|
|
4562
4586
|
}): Promise<CuratorSellerCredentialUploadResponse>;
|
|
4587
|
+
uploadMicrosoftOAuthSellerCredential(params: UploadMicrosoftOAuthSellerCredentialParams, opts?: {
|
|
4588
|
+
baseApiUrl?: string;
|
|
4589
|
+
timeoutMs?: number;
|
|
4590
|
+
signal?: AbortSignal;
|
|
4591
|
+
}): Promise<CuratorSellerCredentialUploadResponse>;
|
|
4592
|
+
private uploadEmailOAuthSellerCredential;
|
|
4563
4593
|
/**
|
|
4564
4594
|
* Status is a coarse curator-owned signal (`active` / `inactive` / `missing`) and intentionally
|
|
4565
4595
|
* omits low-level diagnostics. Curator may still re-probe stale credentials during verify, so callers
|
|
@@ -4741,4 +4771,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
4741
4771
|
value?: bigint;
|
|
4742
4772
|
}>) => Promise<string>;
|
|
4743
4773
|
|
|
4744
|
-
export { type ReferralReadOptions as $, type AttestationServiceIdentityResponse as A, type BuyerTeeVerifyPaymentBody as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type GetOwnerDepositsRequest as E, type GetOwnerDepositsResponse as F, type GoogleOAuthSellerCredentialPlatform as G, type GetDepositBundleParams as H, type IntentEntity as I, type GetDepositBundleResponse as J, type GetOrderbookParams as K, type GetOrderbookResponse as L, type GetOrderbookTableResponse as M, type QuoteRequest as N, type QuoteResponse as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type CuratorMetadata as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type CurrencyType as W, type PaymentMethodCatalog as X, type TxOverrides as Y, Zkp2pClient as Z, type ReferralBearerWriteOptions as _, type IdentityAttestationRequestBody as a, type GetOwnerIntentsRequest as a$, type ReferralSignatureOptions as a0, type RedeemReferralCodeSignatureOptions as a1, type SignalIntentReferralFee as a2, type SignalIntentMethodParams as a3, type FulfillIntentMethodParams as a4, type CancelIntentMethodParams as a5, type UpdateReferralCodeSignatureOptions as a6, type Zkp2pNextOptions as a7, type StakeVaultState as a8, type StakeVaultWriteFunction as a9, type GetBestByPlatformResponse as aA, type GetBestByPlatformResponseObject as aB, type GetPlatformQuote as aC, type PlatformQuote as aD, type QuotePreference as aE, type GetNearbyQuote as aF, type GetNearbySuggestions as aG, type GetQuoteResponse as aH, type GetQuoteResponseObject as aI, type GetQuoteSingleResponse as aJ, type QuoteResponseObject as aK, type QuoteMakerIdentity as aL, type QuoteSingleResponse as aM, type QuoteIntentResponse as aN, type QuoteFeesResponse as aO, type FiatResponse as aP, type TokenResponse as aQ, type NearbyQuote as aR, type NearbySuggestions as aS, type ApiDeposit as aT, type DepositVerifier as aU, type DepositVerifierCurrency as aV, type DepositStatus$1 as aW, type GetDepositByIdRequest as aX, type GetDepositByIdResponse as aY, type Intent as aZ, type ApiIntentStatus as a_, type StakeVaultWriteParams as aa, readDisputeAttestationConfig as ab, type DisputeAttestationConfig as ac, type DisputeProtectionReadinessOptions as ad, type DisputeProtectionReadinessResult as ae, type ReadDisputeAttestationConfigParams as af, type IntentGuardianPolicy as ag, type IntentGuardianQuote as ah, type IntentGuardianWriteFunction as ai, type IntentGuardianWriteParams as aj, type IntentGuardianErrorCode as ak, classifyIntentGuardianError as al, type AuthorizationTokenProvider as am, type TimeoutConfig as an, type ActionCallback as ao, type ReferralRedemption as ap, type ReferralSignatureBody as aq, type CreateDepositParams as ar, type CreateDepositConversionRate as as, type Range as at, type WithdrawDepositParams as au, type SignalIntentParams as av, type FulfillIntentParams as aw, type ReleaseFundsToPayerParams as ax, type CancelIntentParams as ay, type BestByPlatformResponseObject as az, type AttestationServiceSellerVerifyResponse as b, type TakerStakeBalances as b$, type GetOwnerIntentsResponse as b0, type GetIntentsByDepositRequest as b1, type GetIntentsByDepositResponse as b2, type GetIntentByHashRequest as b3, type GetIntentByHashResponse as b4, type RegisterPayeeDetailsRequest as b5, type RegisterPayeeDetailsResponse as b6, type AmazonPayCredentialUploadInput as b7, type AmazonPayIdentityAttestationOutput as b8, type VenmoSessionMaterial as b9, type AttestationServiceSellerCredentialProbeResponse as bA, type BuyerTeePaymentParams as bB, type BuyerTeePaymentProofInput as bC, type BuyerTeeSessionMaterial as bD, type CuratorSellerVerifyResponse as bE, type RegisteredSellerCredentialPlatform as bF, type UploadSellerCredentialParams as bG, type RegisteredUploadSellerCredentialParams as bH, type UploadSellerCredentialOptions as bI, type GetSellerCredentialStatusParams as bJ, type UploadPayPalGoogleOAuthSellerCredentialParams as bK, type UploadVenmoGoogleOAuthSellerCredentialParams as bL, type UploadGoogleOAuthSellerCredentialParams as bM, type VerifySellerPaymentParams as bN, type IdentityAttestationActionType as bO, type IdentityAttestationOutput as bP, type IdentityAttestationOutputFor as bQ, type IdentityAttestationParams as bR, type MakerIdentityAttestationRequestBody as bS, type MakerIdentityPlatform as bT, type OnchainCurrency as bU, type DepositVerifierData as bV, type PreparedTransaction as bW, type OrderStats as bX, type DepositIntentStatistics as bY, type UsdcAmount as bZ, type StakeEnvironment as b_, type CashAppSessionMaterial as ba, type WiseSessionMaterial as bb, type WiseProfileInfo as bc, type WiseProfileSelectionRequired as bd, type WiseProfileNotFound as be, type PayPalGoogleOAuthSellerCredentialUploadBody as bf, type VenmoGoogleOAuthSellerCredentialUploadBody as bg, type VenmoCredentialUploadInput as bh, type CashAppCredentialUploadInput as bi, type WiseCredentialUploadInput as bj, type SellerCredentialUploadInputByPlatform as bk, type SellerCiphertextBundle as bl, type SellerSignedCiphertextBundle as bm, type SellerVerifyIntentDetails as bn, type SellerVerifyInput as bo, type SellerProbeInput as bp, type SellerCredentialBundleUpload as bq, type SellerCredentialStatusValue as br, type SellerCredentialStatus as bs, type SellerVerifyProxyBody as bt, type SellerTypedDataField as bu, type SellerTypedDataSpec as bv, type SellerPaymentTypedDataValue as bw, type SellerAttestationOutput as bx, type SellerCredentialProbeResponse as by, type FulfillIntentAttestationResponse as bz, type SellerCredentialUploadInput as c, getCurrencyInfoFromHash as c$, type OrderbookEntry as c0, type OrderbookTableRow as c1, IndexerClient as c2, defaultIndexerEndpoint as c3, IndexerDepositService as c4, IndexerRateManagerService as c5, compareEventCursorIdsByRecency as c6, buildStakingEntityIds as c7, IndexerStakingService as c8, fetchFulfillmentAndPayment as c9, type IndexedStakeLock as cA, type IndexedStakingRowFreshness as cB, type IndexedStakingState as cC, type IndexedStakingStateParams as cD, type IndexedTakerAuthorization as cE, type IndexedTakerStakeAuthorization as cF, type StakeActivityPageParams as cG, type StakeLockPageParams as cH, type StakingEntityIds as cI, type TakerStakeAuthorizationPageParams as cJ, type DepositFilter as cK, type PaginationOptions as cL, type DepositOrderField as cM, type OrderDirection$1 as cN, type RateManagerFilter as cO, type RateManagerPaginationOptions as cP, type RateManagerDelegationPaginationOptions as cQ, type RateManagerOrderField as cR, type OrderDirection as cS, type DeploymentEnv as cT, type FulfillmentRecord as cU, type PaymentVerifiedRecord as cV, type FulfillmentAndPaymentResponse as cW, PAYMENT_PLATFORMS as cX, type PaymentPlatformType as cY, Currency as cZ, currencyInfo as c_, type DepositEntity as ca, type IntentFulfilledEntity as cb, type IntentFulfillmentAmountsEntity as cc, type DepositPaymentMethodEntity as cd, type MethodCurrencyEntity as ce, type IntentStatus as cf, type RateManagerEntity as cg, type RateManagerRateEntity as ch, type RateManagerDelegationEntity as ci, type ManagerAggregateStatsEntity as cj, type ManagerStatsEntity as ck, type ManagerDailySnapshotEntity as cl, type RateManagerListItem as cm, type RateManagerDetail as cn, type ManualRateUpdateEntity as co, type OracleConfigUpdateEntity as cp, type DepositFundActivityEntity as cq, type DepositDailySnapshotEntity as cr, type DepositFundActivityType as cs, type DisputeProtectionIntentPage as ct, type DisputeProtectionIntentPageParams as cu, type IndexedDisputeProtectionIntent as cv, type IndexedPage as cw, type IndexedPageAsOf as cx, type IndexedRiskWindow as cy, type IndexedStakeActivity as cz, type SellerCredentialUploadPlatform as d, getCurrencyInfoFromCountryCode as d0, getCurrencyCodeFromHash as d1, isSupportedCurrencyHash as d2, mapConversionRatesToOnchainMinRate as d3, type CurrencyData as d4, getContracts as d5, getIntentGuardianContract as d6, hasIntentGuardian as d7, getRateManagerContracts as d8, getStakeVaultContract as d9, getDelegationRoute as dA, classifyDelegationState as dB, type DelegationRoute as dC, type DelegationState as dD, type DelegationDepositTarget as dE, type BatchResult as dF, type SendTransactionFn as dG, type SendBatchFn as dH, AccessPolicyOperations as dI, AccessPolicyUnsupportedError as dJ, ZERO_ADDRESS as dK, asErrorMessage as dL, assertDelegationMethodSupport as dM, getOrchestratorV3Contract as da, getDisputeProtectionPolicyContract as db, getPaymentMethodsCatalog as dc, getGatingServiceAddress as dd, ORCHESTRATOR_V3_ABI as de, DISPUTE_PROTECTION_POLICY_ABI as df, STAKE_VAULT_ABI as dg, type RuntimeEnv as dh, type V2ContractAddresses as di, type V2ContractAbis as dj, parseDepositView as dk, parseIntentView as dl, enrichPvDepositView as dm, enrichPvIntentView as dn, type PV_DepositView as dp, type PV_Deposit as dq, type PV_PaymentMethodData as dr, type PV_Currency as ds, type PV_ReferralFee as dt, type PV_IntentView as du, type PV_Intent as dv, ZERO_RATE_MANAGER_ID as dw, isZeroRateManagerId as dx, normalizeRateManagerId as dy, normalizeRegistry as dz, type SellerCredentialAttestationRuntime as e, type AttestationServiceSellerCredentialUploadResponse as f, type BuyerTeeSessionMaterialEncryptionInput as g, type CreateReferralCodeRequest as h, type ApiAdapterOptions as i, type CreateReferralCodeResponse as j, type ReferralReadRequest as k, type ReferralDashboardResponse as l, type ReferralEarningsResponse as m, type ReferralCodeLookupResponse as n, type RedeemReferralCodeRequest as o, type RedeemReferralCodeResponse as p, type UpdateReferralCodeRequest as q, type UpdateReferralCodeResponse as r, type GoogleOAuthSellerCredentialUploadBodyByPlatform as s, type SellerPlatform as t, type CuratorSellerCredentialStatusResponse as u, type BestByPlatformResponse as v, type ValidatePayeeDetailsResponse as w, type PostDepositDetailsResponse as x, type GetPayeeDetailsRequest as y, type GetPayeeDetailsResponse as z };
|
|
4774
|
+
export { type ReferralBearerWriteOptions as $, type AttestationServiceIdentityResponse as A, type BuyerTeeVerifyPaymentBody as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type GetOwnerDepositsRequest as E, type GetOwnerDepositsResponse as F, type GoogleOAuthSellerCredentialPlatform as G, type GetDepositBundleParams as H, type IntentEntity as I, type GetDepositBundleResponse as J, type GetOrderbookParams as K, type GetOrderbookResponse as L, type MicrosoftOAuthSellerCredentialUploadBodyByPlatform as M, type GetOrderbookTableResponse as N, type QuoteRequest as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type QuoteResponse as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type CuratorMetadata as W, type CurrencyType as X, type PaymentMethodCatalog as Y, type TxOverrides as Z, Zkp2pClient as _, type IdentityAttestationRequestBody as a, type ApiIntentStatus as a$, type ReferralReadOptions as a0, type ReferralSignatureOptions as a1, type RedeemReferralCodeSignatureOptions as a2, type SignalIntentReferralFee as a3, type SignalIntentMethodParams as a4, type FulfillIntentMethodParams as a5, type CancelIntentMethodParams as a6, type UpdateReferralCodeSignatureOptions as a7, type Zkp2pNextOptions as a8, type StakeVaultState as a9, type BestByPlatformResponseObject as aA, type GetBestByPlatformResponse as aB, type GetBestByPlatformResponseObject as aC, type GetPlatformQuote as aD, type PlatformQuote as aE, type QuotePreference as aF, type GetNearbyQuote as aG, type GetNearbySuggestions as aH, type GetQuoteResponse as aI, type GetQuoteResponseObject as aJ, type GetQuoteSingleResponse as aK, type QuoteResponseObject as aL, type QuoteMakerIdentity as aM, type QuoteSingleResponse as aN, type QuoteIntentResponse as aO, type QuoteFeesResponse as aP, type FiatResponse as aQ, type TokenResponse as aR, type NearbyQuote as aS, type NearbySuggestions as aT, type ApiDeposit as aU, type DepositVerifier as aV, type DepositVerifierCurrency as aW, type DepositStatus$1 as aX, type GetDepositByIdRequest as aY, type GetDepositByIdResponse as aZ, type Intent as a_, type StakeVaultWriteFunction as aa, type StakeVaultWriteParams as ab, readDisputeAttestationConfig as ac, type DisputeAttestationConfig as ad, type DisputeProtectionReadinessOptions as ae, type DisputeProtectionReadinessResult as af, type ReadDisputeAttestationConfigParams as ag, type IntentGuardianPolicy as ah, type IntentGuardianQuote as ai, type IntentGuardianWriteFunction as aj, type IntentGuardianWriteParams as ak, type IntentGuardianErrorCode as al, classifyIntentGuardianError as am, type AuthorizationTokenProvider as an, type TimeoutConfig as ao, type ActionCallback as ap, type ReferralRedemption as aq, type ReferralSignatureBody as ar, type CreateDepositParams as as, type CreateDepositConversionRate as at, type Range as au, type WithdrawDepositParams as av, type SignalIntentParams as aw, type FulfillIntentParams as ax, type ReleaseFundsToPayerParams as ay, type CancelIntentParams as az, type AttestationServiceSellerVerifyResponse as b, type UsdcAmount as b$, type GetOwnerIntentsRequest as b0, type GetOwnerIntentsResponse as b1, type GetIntentsByDepositRequest as b2, type GetIntentsByDepositResponse as b3, type GetIntentByHashRequest as b4, type GetIntentByHashResponse as b5, type RegisterPayeeDetailsRequest as b6, type RegisterPayeeDetailsResponse as b7, type AmazonPayCredentialUploadInput as b8, type AmazonPayIdentityAttestationOutput as b9, type FulfillIntentAttestationResponse as bA, type AttestationServiceSellerCredentialProbeResponse as bB, type BuyerTeePaymentParams as bC, type BuyerTeePaymentProofInput as bD, type BuyerTeeSessionMaterial as bE, type CuratorSellerVerifyResponse as bF, type RegisteredSellerCredentialPlatform as bG, type UploadSellerCredentialParams as bH, type RegisteredUploadSellerCredentialParams as bI, type UploadSellerCredentialOptions as bJ, type GetSellerCredentialStatusParams as bK, type UploadPayPalGoogleOAuthSellerCredentialParams as bL, type UploadVenmoGoogleOAuthSellerCredentialParams as bM, type UploadGoogleOAuthSellerCredentialParams as bN, type UploadMicrosoftOAuthSellerCredentialParams as bO, type VerifySellerPaymentParams as bP, type IdentityAttestationActionType as bQ, type IdentityAttestationOutput as bR, type IdentityAttestationOutputFor as bS, type IdentityAttestationParams as bT, type MakerIdentityAttestationRequestBody as bU, type MakerIdentityPlatform as bV, type OnchainCurrency as bW, type DepositVerifierData as bX, type PreparedTransaction as bY, type OrderStats as bZ, type DepositIntentStatistics as b_, type VenmoSessionMaterial as ba, type CashAppSessionMaterial as bb, type WiseSessionMaterial as bc, type WiseProfileInfo as bd, type WiseProfileSelectionRequired as be, type WiseProfileNotFound as bf, type PayPalGoogleOAuthSellerCredentialUploadBody as bg, type VenmoGoogleOAuthSellerCredentialUploadBody as bh, type VenmoCredentialUploadInput as bi, type CashAppCredentialUploadInput as bj, type WiseCredentialUploadInput as bk, type SellerCredentialUploadInputByPlatform as bl, type SellerCiphertextBundle as bm, type SellerSignedCiphertextBundle as bn, type SellerVerifyIntentDetails as bo, type SellerVerifyInput as bp, type SellerProbeInput as bq, type SellerCredentialBundleUpload as br, type SellerCredentialStatusValue as bs, type SellerCredentialStatus as bt, type SellerVerifyProxyBody as bu, type SellerTypedDataField as bv, type SellerTypedDataSpec as bw, type SellerPaymentTypedDataValue as bx, type SellerAttestationOutput as by, type SellerCredentialProbeResponse as bz, type SellerCredentialUploadInput as c, type PaymentPlatformType as c$, type StakeEnvironment as c0, type TakerStakeBalances as c1, type OrderbookEntry as c2, type OrderbookTableRow as c3, IndexerClient as c4, defaultIndexerEndpoint as c5, IndexerDepositService as c6, IndexerRateManagerService as c7, compareEventCursorIdsByRecency as c8, buildStakingEntityIds as c9, type IndexedRiskWindow as cA, type IndexedStakeActivity as cB, type IndexedStakeTotals as cC, type IndexedStakeLock as cD, type IndexedStakingRowFreshness as cE, type IndexedStakingState as cF, type IndexedStakingStateParams as cG, type IndexedTakerAuthorization as cH, type IndexedTakerStakeAuthorization as cI, type StakeActivityPageParams as cJ, type StakeLockPageParams as cK, type StakingEntityIds as cL, type TakerStakeAuthorizationPageParams as cM, type DepositFilter as cN, type PaginationOptions as cO, type DepositOrderField as cP, type OrderDirection$1 as cQ, type RateManagerFilter as cR, type RateManagerPaginationOptions as cS, type RateManagerDelegationPaginationOptions as cT, type RateManagerOrderField as cU, type OrderDirection as cV, type DeploymentEnv as cW, type FulfillmentRecord as cX, type PaymentVerifiedRecord as cY, type FulfillmentAndPaymentResponse as cZ, PAYMENT_PLATFORMS as c_, IndexerStakingService as ca, fetchFulfillmentAndPayment as cb, type DepositEntity as cc, type IntentFulfilledEntity as cd, type IntentFulfillmentAmountsEntity as ce, type DepositPaymentMethodEntity as cf, type MethodCurrencyEntity as cg, type IntentStatus as ch, type RateManagerEntity as ci, type RateManagerRateEntity as cj, type RateManagerDelegationEntity as ck, type ManagerAggregateStatsEntity as cl, type ManagerStatsEntity as cm, type ManagerDailySnapshotEntity as cn, type RateManagerListItem as co, type RateManagerDetail as cp, type ManualRateUpdateEntity as cq, type OracleConfigUpdateEntity as cr, type DepositFundActivityEntity as cs, type DepositDailySnapshotEntity as ct, type DepositFundActivityType as cu, type DisputeProtectionIntentPage as cv, type DisputeProtectionIntentPageParams as cw, type IndexedDisputeProtectionIntent as cx, type IndexedPage as cy, type IndexedPageAsOf as cz, type SellerCredentialUploadPlatform as d, Currency as d0, currencyInfo as d1, getCurrencyInfoFromHash as d2, getCurrencyInfoFromCountryCode as d3, getCurrencyCodeFromHash as d4, isSupportedCurrencyHash as d5, mapConversionRatesToOnchainMinRate as d6, type CurrencyData as d7, getContracts as d8, getIntentGuardianContract as d9, isZeroRateManagerId as dA, normalizeRateManagerId as dB, normalizeRegistry as dC, getDelegationRoute as dD, classifyDelegationState as dE, type DelegationRoute as dF, type DelegationState as dG, type DelegationDepositTarget as dH, type BatchResult as dI, type SendTransactionFn as dJ, type SendBatchFn as dK, AccessPolicyOperations as dL, AccessPolicyUnsupportedError as dM, ZERO_ADDRESS as dN, asErrorMessage as dO, assertDelegationMethodSupport as dP, hasIntentGuardian as da, getRateManagerContracts as db, getStakeVaultContract as dc, getOrchestratorV3Contract as dd, getDisputeProtectionPolicyContract as de, getPaymentMethodsCatalog as df, getGatingServiceAddress as dg, ORCHESTRATOR_V3_ABI as dh, DISPUTE_PROTECTION_POLICY_ABI as di, STAKE_VAULT_ABI as dj, type RuntimeEnv as dk, type V2ContractAddresses as dl, type V2ContractAbis as dm, parseDepositView as dn, parseIntentView as dp, enrichPvDepositView as dq, enrichPvIntentView as dr, type PV_DepositView as ds, type PV_Deposit as dt, type PV_PaymentMethodData as du, type PV_Currency as dv, type PV_ReferralFee as dw, type PV_IntentView as dx, type PV_Intent as dy, ZERO_RATE_MANAGER_ID as dz, type SellerCredentialAttestationRuntime as e, type AttestationServiceSellerCredentialUploadResponse as f, type BuyerTeeSessionMaterialEncryptionInput as g, type CreateReferralCodeRequest as h, type ApiAdapterOptions as i, type CreateReferralCodeResponse as j, type ReferralReadRequest as k, type ReferralDashboardResponse as l, type ReferralEarningsResponse as m, type ReferralCodeLookupResponse as n, type RedeemReferralCodeRequest as o, type RedeemReferralCodeResponse as p, type UpdateReferralCodeRequest as q, type UpdateReferralCodeResponse as r, type GoogleOAuthSellerCredentialUploadBodyByPlatform as s, type SellerPlatform as t, type CuratorSellerCredentialStatusResponse as u, type BestByPlatformResponse as v, type ValidatePayeeDetailsResponse as w, type PostDepositDetailsResponse as x, type GetPayeeDetailsRequest as y, type GetPayeeDetailsResponse as z };
|
|
@@ -965,6 +965,11 @@ type GoogleOAuthSellerCredentialUploadBodyByPlatform = {
|
|
|
965
965
|
paypal: PayPalGoogleOAuthSellerCredentialUploadBody;
|
|
966
966
|
venmo: VenmoGoogleOAuthSellerCredentialUploadBody;
|
|
967
967
|
};
|
|
968
|
+
type MicrosoftOAuthSellerCredentialUploadBodyByPlatform = {
|
|
969
|
+
[P in GoogleOAuthSellerCredentialPlatform]: GoogleOAuthSellerCredentialUploadBodyByPlatform[P] & {
|
|
970
|
+
codeVerifier: string;
|
|
971
|
+
};
|
|
972
|
+
};
|
|
968
973
|
type VenmoCredentialUploadInput = {
|
|
969
974
|
callerAddress?: string;
|
|
970
975
|
payeeId: string;
|
|
@@ -1213,6 +1218,9 @@ type UploadVenmoGoogleOAuthSellerCredentialParams = GoogleOAuthSellerCredentialB
|
|
|
1213
1218
|
platform: 'venmo';
|
|
1214
1219
|
};
|
|
1215
1220
|
type UploadGoogleOAuthSellerCredentialParams = UploadPayPalGoogleOAuthSellerCredentialParams | UploadVenmoGoogleOAuthSellerCredentialParams;
|
|
1221
|
+
type UploadMicrosoftOAuthSellerCredentialParams = UploadGoogleOAuthSellerCredentialParams & {
|
|
1222
|
+
codeVerifier: string;
|
|
1223
|
+
};
|
|
1216
1224
|
type VerifySellerPaymentParams = {
|
|
1217
1225
|
platform: SellerPlatform;
|
|
1218
1226
|
} & SellerVerifyProxyBody;
|
|
@@ -2462,8 +2470,8 @@ type TakerStakeAuthorizationPageParams = PageParams & {
|
|
|
2462
2470
|
});
|
|
2463
2471
|
type StakeActivityPageParams = PageParams & {
|
|
2464
2472
|
vaultAddress: Address;
|
|
2465
|
-
/**
|
|
2466
|
-
merchant
|
|
2473
|
+
/** When provided, match either the immutable owner or taker side. */
|
|
2474
|
+
merchant?: Address;
|
|
2467
2475
|
kind?: StakeActivityKind;
|
|
2468
2476
|
/** Chronological direction; defaults to oldest first for ingestion callers. */
|
|
2469
2477
|
orderDirection?: 'asc' | 'desc';
|
|
@@ -2512,6 +2520,11 @@ type IndexedStakeActivity = {
|
|
|
2512
2520
|
logIndex: string;
|
|
2513
2521
|
timestamp: string;
|
|
2514
2522
|
};
|
|
2523
|
+
type IndexedStakeTotals = {
|
|
2524
|
+
totalStaked: string;
|
|
2525
|
+
totalLocked: string;
|
|
2526
|
+
stakerCount: number;
|
|
2527
|
+
};
|
|
2515
2528
|
type IndexedDisputeProtectionIntent = {
|
|
2516
2529
|
policyAddress: Address;
|
|
2517
2530
|
intentHash: string;
|
|
@@ -2630,6 +2643,11 @@ declare function buildStakingEntityIds(params: IndexedStakingStateParams): Staki
|
|
|
2630
2643
|
declare class IndexerStakingService {
|
|
2631
2644
|
private readonly client;
|
|
2632
2645
|
constructor(client: IndexerClient);
|
|
2646
|
+
/** Sum current positive stake accounts for one vault. */
|
|
2647
|
+
fetchStakeTotals(params: {
|
|
2648
|
+
chainId: number;
|
|
2649
|
+
vaultAddress: Address;
|
|
2650
|
+
}, init?: RequestInit): Promise<IndexedStakeTotals>;
|
|
2633
2651
|
fetchStakeLocks(params: StakeLockPageParams, init?: RequestInit): Promise<IndexedPage<IndexedStakeLock>>;
|
|
2634
2652
|
/**
|
|
2635
2653
|
* Pages one side of the vault's authorization graph: takers a stake owner
|
|
@@ -3397,10 +3415,16 @@ declare class Zkp2pClient {
|
|
|
3397
3415
|
getTakerStakeAuthorizations: (params: TakerStakeAuthorizationPageParams, options?: {
|
|
3398
3416
|
signal?: AbortSignal;
|
|
3399
3417
|
}) => Promise<IndexedPage<IndexedTakerStakeAuthorization>>;
|
|
3400
|
-
/** Pages
|
|
3418
|
+
/** Pages vault activity, optionally scoped to either side of a merchant's stake delegation. */
|
|
3401
3419
|
getStakeActivity: (params: StakeActivityPageParams, options?: {
|
|
3402
3420
|
signal?: AbortSignal;
|
|
3403
3421
|
}) => Promise<IndexedPage<IndexedStakeActivity>>;
|
|
3422
|
+
getStakeTotals: (params: {
|
|
3423
|
+
chainId: number;
|
|
3424
|
+
vaultAddress: Address;
|
|
3425
|
+
}, options?: {
|
|
3426
|
+
signal?: AbortSignal;
|
|
3427
|
+
}) => Promise<IndexedStakeTotals>;
|
|
3404
3428
|
/** Pages the exact active policy's finalized dispute stream. */
|
|
3405
3429
|
getDisputeProtectionIntents: (params: DisputeProtectionIntentPageParams, options?: {
|
|
3406
3430
|
signal?: AbortSignal;
|
|
@@ -4560,6 +4584,12 @@ declare class Zkp2pClient {
|
|
|
4560
4584
|
timeoutMs?: number;
|
|
4561
4585
|
signal?: AbortSignal;
|
|
4562
4586
|
}): Promise<CuratorSellerCredentialUploadResponse>;
|
|
4587
|
+
uploadMicrosoftOAuthSellerCredential(params: UploadMicrosoftOAuthSellerCredentialParams, opts?: {
|
|
4588
|
+
baseApiUrl?: string;
|
|
4589
|
+
timeoutMs?: number;
|
|
4590
|
+
signal?: AbortSignal;
|
|
4591
|
+
}): Promise<CuratorSellerCredentialUploadResponse>;
|
|
4592
|
+
private uploadEmailOAuthSellerCredential;
|
|
4563
4593
|
/**
|
|
4564
4594
|
* Status is a coarse curator-owned signal (`active` / `inactive` / `missing`) and intentionally
|
|
4565
4595
|
* omits low-level diagnostics. Curator may still re-probe stale credentials during verify, so callers
|
|
@@ -4741,4 +4771,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
4741
4771
|
value?: bigint;
|
|
4742
4772
|
}>) => Promise<string>;
|
|
4743
4773
|
|
|
4744
|
-
export { type ReferralReadOptions as $, type AttestationServiceIdentityResponse as A, type BuyerTeeVerifyPaymentBody as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type GetOwnerDepositsRequest as E, type GetOwnerDepositsResponse as F, type GoogleOAuthSellerCredentialPlatform as G, type GetDepositBundleParams as H, type IntentEntity as I, type GetDepositBundleResponse as J, type GetOrderbookParams as K, type GetOrderbookResponse as L, type GetOrderbookTableResponse as M, type QuoteRequest as N, type QuoteResponse as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type CuratorMetadata as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type CurrencyType as W, type PaymentMethodCatalog as X, type TxOverrides as Y, Zkp2pClient as Z, type ReferralBearerWriteOptions as _, type IdentityAttestationRequestBody as a, type GetOwnerIntentsRequest as a$, type ReferralSignatureOptions as a0, type RedeemReferralCodeSignatureOptions as a1, type SignalIntentReferralFee as a2, type SignalIntentMethodParams as a3, type FulfillIntentMethodParams as a4, type CancelIntentMethodParams as a5, type UpdateReferralCodeSignatureOptions as a6, type Zkp2pNextOptions as a7, type StakeVaultState as a8, type StakeVaultWriteFunction as a9, type GetBestByPlatformResponse as aA, type GetBestByPlatformResponseObject as aB, type GetPlatformQuote as aC, type PlatformQuote as aD, type QuotePreference as aE, type GetNearbyQuote as aF, type GetNearbySuggestions as aG, type GetQuoteResponse as aH, type GetQuoteResponseObject as aI, type GetQuoteSingleResponse as aJ, type QuoteResponseObject as aK, type QuoteMakerIdentity as aL, type QuoteSingleResponse as aM, type QuoteIntentResponse as aN, type QuoteFeesResponse as aO, type FiatResponse as aP, type TokenResponse as aQ, type NearbyQuote as aR, type NearbySuggestions as aS, type ApiDeposit as aT, type DepositVerifier as aU, type DepositVerifierCurrency as aV, type DepositStatus$1 as aW, type GetDepositByIdRequest as aX, type GetDepositByIdResponse as aY, type Intent as aZ, type ApiIntentStatus as a_, type StakeVaultWriteParams as aa, readDisputeAttestationConfig as ab, type DisputeAttestationConfig as ac, type DisputeProtectionReadinessOptions as ad, type DisputeProtectionReadinessResult as ae, type ReadDisputeAttestationConfigParams as af, type IntentGuardianPolicy as ag, type IntentGuardianQuote as ah, type IntentGuardianWriteFunction as ai, type IntentGuardianWriteParams as aj, type IntentGuardianErrorCode as ak, classifyIntentGuardianError as al, type AuthorizationTokenProvider as am, type TimeoutConfig as an, type ActionCallback as ao, type ReferralRedemption as ap, type ReferralSignatureBody as aq, type CreateDepositParams as ar, type CreateDepositConversionRate as as, type Range as at, type WithdrawDepositParams as au, type SignalIntentParams as av, type FulfillIntentParams as aw, type ReleaseFundsToPayerParams as ax, type CancelIntentParams as ay, type BestByPlatformResponseObject as az, type AttestationServiceSellerVerifyResponse as b, type TakerStakeBalances as b$, type GetOwnerIntentsResponse as b0, type GetIntentsByDepositRequest as b1, type GetIntentsByDepositResponse as b2, type GetIntentByHashRequest as b3, type GetIntentByHashResponse as b4, type RegisterPayeeDetailsRequest as b5, type RegisterPayeeDetailsResponse as b6, type AmazonPayCredentialUploadInput as b7, type AmazonPayIdentityAttestationOutput as b8, type VenmoSessionMaterial as b9, type AttestationServiceSellerCredentialProbeResponse as bA, type BuyerTeePaymentParams as bB, type BuyerTeePaymentProofInput as bC, type BuyerTeeSessionMaterial as bD, type CuratorSellerVerifyResponse as bE, type RegisteredSellerCredentialPlatform as bF, type UploadSellerCredentialParams as bG, type RegisteredUploadSellerCredentialParams as bH, type UploadSellerCredentialOptions as bI, type GetSellerCredentialStatusParams as bJ, type UploadPayPalGoogleOAuthSellerCredentialParams as bK, type UploadVenmoGoogleOAuthSellerCredentialParams as bL, type UploadGoogleOAuthSellerCredentialParams as bM, type VerifySellerPaymentParams as bN, type IdentityAttestationActionType as bO, type IdentityAttestationOutput as bP, type IdentityAttestationOutputFor as bQ, type IdentityAttestationParams as bR, type MakerIdentityAttestationRequestBody as bS, type MakerIdentityPlatform as bT, type OnchainCurrency as bU, type DepositVerifierData as bV, type PreparedTransaction as bW, type OrderStats as bX, type DepositIntentStatistics as bY, type UsdcAmount as bZ, type StakeEnvironment as b_, type CashAppSessionMaterial as ba, type WiseSessionMaterial as bb, type WiseProfileInfo as bc, type WiseProfileSelectionRequired as bd, type WiseProfileNotFound as be, type PayPalGoogleOAuthSellerCredentialUploadBody as bf, type VenmoGoogleOAuthSellerCredentialUploadBody as bg, type VenmoCredentialUploadInput as bh, type CashAppCredentialUploadInput as bi, type WiseCredentialUploadInput as bj, type SellerCredentialUploadInputByPlatform as bk, type SellerCiphertextBundle as bl, type SellerSignedCiphertextBundle as bm, type SellerVerifyIntentDetails as bn, type SellerVerifyInput as bo, type SellerProbeInput as bp, type SellerCredentialBundleUpload as bq, type SellerCredentialStatusValue as br, type SellerCredentialStatus as bs, type SellerVerifyProxyBody as bt, type SellerTypedDataField as bu, type SellerTypedDataSpec as bv, type SellerPaymentTypedDataValue as bw, type SellerAttestationOutput as bx, type SellerCredentialProbeResponse as by, type FulfillIntentAttestationResponse as bz, type SellerCredentialUploadInput as c, getCurrencyInfoFromHash as c$, type OrderbookEntry as c0, type OrderbookTableRow as c1, IndexerClient as c2, defaultIndexerEndpoint as c3, IndexerDepositService as c4, IndexerRateManagerService as c5, compareEventCursorIdsByRecency as c6, buildStakingEntityIds as c7, IndexerStakingService as c8, fetchFulfillmentAndPayment as c9, type IndexedStakeLock as cA, type IndexedStakingRowFreshness as cB, type IndexedStakingState as cC, type IndexedStakingStateParams as cD, type IndexedTakerAuthorization as cE, type IndexedTakerStakeAuthorization as cF, type StakeActivityPageParams as cG, type StakeLockPageParams as cH, type StakingEntityIds as cI, type TakerStakeAuthorizationPageParams as cJ, type DepositFilter as cK, type PaginationOptions as cL, type DepositOrderField as cM, type OrderDirection$1 as cN, type RateManagerFilter as cO, type RateManagerPaginationOptions as cP, type RateManagerDelegationPaginationOptions as cQ, type RateManagerOrderField as cR, type OrderDirection as cS, type DeploymentEnv as cT, type FulfillmentRecord as cU, type PaymentVerifiedRecord as cV, type FulfillmentAndPaymentResponse as cW, PAYMENT_PLATFORMS as cX, type PaymentPlatformType as cY, Currency as cZ, currencyInfo as c_, type DepositEntity as ca, type IntentFulfilledEntity as cb, type IntentFulfillmentAmountsEntity as cc, type DepositPaymentMethodEntity as cd, type MethodCurrencyEntity as ce, type IntentStatus as cf, type RateManagerEntity as cg, type RateManagerRateEntity as ch, type RateManagerDelegationEntity as ci, type ManagerAggregateStatsEntity as cj, type ManagerStatsEntity as ck, type ManagerDailySnapshotEntity as cl, type RateManagerListItem as cm, type RateManagerDetail as cn, type ManualRateUpdateEntity as co, type OracleConfigUpdateEntity as cp, type DepositFundActivityEntity as cq, type DepositDailySnapshotEntity as cr, type DepositFundActivityType as cs, type DisputeProtectionIntentPage as ct, type DisputeProtectionIntentPageParams as cu, type IndexedDisputeProtectionIntent as cv, type IndexedPage as cw, type IndexedPageAsOf as cx, type IndexedRiskWindow as cy, type IndexedStakeActivity as cz, type SellerCredentialUploadPlatform as d, getCurrencyInfoFromCountryCode as d0, getCurrencyCodeFromHash as d1, isSupportedCurrencyHash as d2, mapConversionRatesToOnchainMinRate as d3, type CurrencyData as d4, getContracts as d5, getIntentGuardianContract as d6, hasIntentGuardian as d7, getRateManagerContracts as d8, getStakeVaultContract as d9, getDelegationRoute as dA, classifyDelegationState as dB, type DelegationRoute as dC, type DelegationState as dD, type DelegationDepositTarget as dE, type BatchResult as dF, type SendTransactionFn as dG, type SendBatchFn as dH, AccessPolicyOperations as dI, AccessPolicyUnsupportedError as dJ, ZERO_ADDRESS as dK, asErrorMessage as dL, assertDelegationMethodSupport as dM, getOrchestratorV3Contract as da, getDisputeProtectionPolicyContract as db, getPaymentMethodsCatalog as dc, getGatingServiceAddress as dd, ORCHESTRATOR_V3_ABI as de, DISPUTE_PROTECTION_POLICY_ABI as df, STAKE_VAULT_ABI as dg, type RuntimeEnv as dh, type V2ContractAddresses as di, type V2ContractAbis as dj, parseDepositView as dk, parseIntentView as dl, enrichPvDepositView as dm, enrichPvIntentView as dn, type PV_DepositView as dp, type PV_Deposit as dq, type PV_PaymentMethodData as dr, type PV_Currency as ds, type PV_ReferralFee as dt, type PV_IntentView as du, type PV_Intent as dv, ZERO_RATE_MANAGER_ID as dw, isZeroRateManagerId as dx, normalizeRateManagerId as dy, normalizeRegistry as dz, type SellerCredentialAttestationRuntime as e, type AttestationServiceSellerCredentialUploadResponse as f, type BuyerTeeSessionMaterialEncryptionInput as g, type CreateReferralCodeRequest as h, type ApiAdapterOptions as i, type CreateReferralCodeResponse as j, type ReferralReadRequest as k, type ReferralDashboardResponse as l, type ReferralEarningsResponse as m, type ReferralCodeLookupResponse as n, type RedeemReferralCodeRequest as o, type RedeemReferralCodeResponse as p, type UpdateReferralCodeRequest as q, type UpdateReferralCodeResponse as r, type GoogleOAuthSellerCredentialUploadBodyByPlatform as s, type SellerPlatform as t, type CuratorSellerCredentialStatusResponse as u, type BestByPlatformResponse as v, type ValidatePayeeDetailsResponse as w, type PostDepositDetailsResponse as x, type GetPayeeDetailsRequest as y, type GetPayeeDetailsResponse as z };
|
|
4774
|
+
export { type ReferralBearerWriteOptions as $, type AttestationServiceIdentityResponse as A, type BuyerTeeVerifyPaymentBody as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type GetOwnerDepositsRequest as E, type GetOwnerDepositsResponse as F, type GoogleOAuthSellerCredentialPlatform as G, type GetDepositBundleParams as H, type IntentEntity as I, type GetDepositBundleResponse as J, type GetOrderbookParams as K, type GetOrderbookResponse as L, type MicrosoftOAuthSellerCredentialUploadBodyByPlatform as M, type GetOrderbookTableResponse as N, type QuoteRequest as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type QuoteResponse as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type CuratorMetadata as W, type CurrencyType as X, type PaymentMethodCatalog as Y, type TxOverrides as Z, Zkp2pClient as _, type IdentityAttestationRequestBody as a, type ApiIntentStatus as a$, type ReferralReadOptions as a0, type ReferralSignatureOptions as a1, type RedeemReferralCodeSignatureOptions as a2, type SignalIntentReferralFee as a3, type SignalIntentMethodParams as a4, type FulfillIntentMethodParams as a5, type CancelIntentMethodParams as a6, type UpdateReferralCodeSignatureOptions as a7, type Zkp2pNextOptions as a8, type StakeVaultState as a9, type BestByPlatformResponseObject as aA, type GetBestByPlatformResponse as aB, type GetBestByPlatformResponseObject as aC, type GetPlatformQuote as aD, type PlatformQuote as aE, type QuotePreference as aF, type GetNearbyQuote as aG, type GetNearbySuggestions as aH, type GetQuoteResponse as aI, type GetQuoteResponseObject as aJ, type GetQuoteSingleResponse as aK, type QuoteResponseObject as aL, type QuoteMakerIdentity as aM, type QuoteSingleResponse as aN, type QuoteIntentResponse as aO, type QuoteFeesResponse as aP, type FiatResponse as aQ, type TokenResponse as aR, type NearbyQuote as aS, type NearbySuggestions as aT, type ApiDeposit as aU, type DepositVerifier as aV, type DepositVerifierCurrency as aW, type DepositStatus$1 as aX, type GetDepositByIdRequest as aY, type GetDepositByIdResponse as aZ, type Intent as a_, type StakeVaultWriteFunction as aa, type StakeVaultWriteParams as ab, readDisputeAttestationConfig as ac, type DisputeAttestationConfig as ad, type DisputeProtectionReadinessOptions as ae, type DisputeProtectionReadinessResult as af, type ReadDisputeAttestationConfigParams as ag, type IntentGuardianPolicy as ah, type IntentGuardianQuote as ai, type IntentGuardianWriteFunction as aj, type IntentGuardianWriteParams as ak, type IntentGuardianErrorCode as al, classifyIntentGuardianError as am, type AuthorizationTokenProvider as an, type TimeoutConfig as ao, type ActionCallback as ap, type ReferralRedemption as aq, type ReferralSignatureBody as ar, type CreateDepositParams as as, type CreateDepositConversionRate as at, type Range as au, type WithdrawDepositParams as av, type SignalIntentParams as aw, type FulfillIntentParams as ax, type ReleaseFundsToPayerParams as ay, type CancelIntentParams as az, type AttestationServiceSellerVerifyResponse as b, type UsdcAmount as b$, type GetOwnerIntentsRequest as b0, type GetOwnerIntentsResponse as b1, type GetIntentsByDepositRequest as b2, type GetIntentsByDepositResponse as b3, type GetIntentByHashRequest as b4, type GetIntentByHashResponse as b5, type RegisterPayeeDetailsRequest as b6, type RegisterPayeeDetailsResponse as b7, type AmazonPayCredentialUploadInput as b8, type AmazonPayIdentityAttestationOutput as b9, type FulfillIntentAttestationResponse as bA, type AttestationServiceSellerCredentialProbeResponse as bB, type BuyerTeePaymentParams as bC, type BuyerTeePaymentProofInput as bD, type BuyerTeeSessionMaterial as bE, type CuratorSellerVerifyResponse as bF, type RegisteredSellerCredentialPlatform as bG, type UploadSellerCredentialParams as bH, type RegisteredUploadSellerCredentialParams as bI, type UploadSellerCredentialOptions as bJ, type GetSellerCredentialStatusParams as bK, type UploadPayPalGoogleOAuthSellerCredentialParams as bL, type UploadVenmoGoogleOAuthSellerCredentialParams as bM, type UploadGoogleOAuthSellerCredentialParams as bN, type UploadMicrosoftOAuthSellerCredentialParams as bO, type VerifySellerPaymentParams as bP, type IdentityAttestationActionType as bQ, type IdentityAttestationOutput as bR, type IdentityAttestationOutputFor as bS, type IdentityAttestationParams as bT, type MakerIdentityAttestationRequestBody as bU, type MakerIdentityPlatform as bV, type OnchainCurrency as bW, type DepositVerifierData as bX, type PreparedTransaction as bY, type OrderStats as bZ, type DepositIntentStatistics as b_, type VenmoSessionMaterial as ba, type CashAppSessionMaterial as bb, type WiseSessionMaterial as bc, type WiseProfileInfo as bd, type WiseProfileSelectionRequired as be, type WiseProfileNotFound as bf, type PayPalGoogleOAuthSellerCredentialUploadBody as bg, type VenmoGoogleOAuthSellerCredentialUploadBody as bh, type VenmoCredentialUploadInput as bi, type CashAppCredentialUploadInput as bj, type WiseCredentialUploadInput as bk, type SellerCredentialUploadInputByPlatform as bl, type SellerCiphertextBundle as bm, type SellerSignedCiphertextBundle as bn, type SellerVerifyIntentDetails as bo, type SellerVerifyInput as bp, type SellerProbeInput as bq, type SellerCredentialBundleUpload as br, type SellerCredentialStatusValue as bs, type SellerCredentialStatus as bt, type SellerVerifyProxyBody as bu, type SellerTypedDataField as bv, type SellerTypedDataSpec as bw, type SellerPaymentTypedDataValue as bx, type SellerAttestationOutput as by, type SellerCredentialProbeResponse as bz, type SellerCredentialUploadInput as c, type PaymentPlatformType as c$, type StakeEnvironment as c0, type TakerStakeBalances as c1, type OrderbookEntry as c2, type OrderbookTableRow as c3, IndexerClient as c4, defaultIndexerEndpoint as c5, IndexerDepositService as c6, IndexerRateManagerService as c7, compareEventCursorIdsByRecency as c8, buildStakingEntityIds as c9, type IndexedRiskWindow as cA, type IndexedStakeActivity as cB, type IndexedStakeTotals as cC, type IndexedStakeLock as cD, type IndexedStakingRowFreshness as cE, type IndexedStakingState as cF, type IndexedStakingStateParams as cG, type IndexedTakerAuthorization as cH, type IndexedTakerStakeAuthorization as cI, type StakeActivityPageParams as cJ, type StakeLockPageParams as cK, type StakingEntityIds as cL, type TakerStakeAuthorizationPageParams as cM, type DepositFilter as cN, type PaginationOptions as cO, type DepositOrderField as cP, type OrderDirection$1 as cQ, type RateManagerFilter as cR, type RateManagerPaginationOptions as cS, type RateManagerDelegationPaginationOptions as cT, type RateManagerOrderField as cU, type OrderDirection as cV, type DeploymentEnv as cW, type FulfillmentRecord as cX, type PaymentVerifiedRecord as cY, type FulfillmentAndPaymentResponse as cZ, PAYMENT_PLATFORMS as c_, IndexerStakingService as ca, fetchFulfillmentAndPayment as cb, type DepositEntity as cc, type IntentFulfilledEntity as cd, type IntentFulfillmentAmountsEntity as ce, type DepositPaymentMethodEntity as cf, type MethodCurrencyEntity as cg, type IntentStatus as ch, type RateManagerEntity as ci, type RateManagerRateEntity as cj, type RateManagerDelegationEntity as ck, type ManagerAggregateStatsEntity as cl, type ManagerStatsEntity as cm, type ManagerDailySnapshotEntity as cn, type RateManagerListItem as co, type RateManagerDetail as cp, type ManualRateUpdateEntity as cq, type OracleConfigUpdateEntity as cr, type DepositFundActivityEntity as cs, type DepositDailySnapshotEntity as ct, type DepositFundActivityType as cu, type DisputeProtectionIntentPage as cv, type DisputeProtectionIntentPageParams as cw, type IndexedDisputeProtectionIntent as cx, type IndexedPage as cy, type IndexedPageAsOf as cz, type SellerCredentialUploadPlatform as d, Currency as d0, currencyInfo as d1, getCurrencyInfoFromHash as d2, getCurrencyInfoFromCountryCode as d3, getCurrencyCodeFromHash as d4, isSupportedCurrencyHash as d5, mapConversionRatesToOnchainMinRate as d6, type CurrencyData as d7, getContracts as d8, getIntentGuardianContract as d9, isZeroRateManagerId as dA, normalizeRateManagerId as dB, normalizeRegistry as dC, getDelegationRoute as dD, classifyDelegationState as dE, type DelegationRoute as dF, type DelegationState as dG, type DelegationDepositTarget as dH, type BatchResult as dI, type SendTransactionFn as dJ, type SendBatchFn as dK, AccessPolicyOperations as dL, AccessPolicyUnsupportedError as dM, ZERO_ADDRESS as dN, asErrorMessage as dO, assertDelegationMethodSupport as dP, hasIntentGuardian as da, getRateManagerContracts as db, getStakeVaultContract as dc, getOrchestratorV3Contract as dd, getDisputeProtectionPolicyContract as de, getPaymentMethodsCatalog as df, getGatingServiceAddress as dg, ORCHESTRATOR_V3_ABI as dh, DISPUTE_PROTECTION_POLICY_ABI as di, STAKE_VAULT_ABI as dj, type RuntimeEnv as dk, type V2ContractAddresses as dl, type V2ContractAbis as dm, parseDepositView as dn, parseIntentView as dp, enrichPvDepositView as dq, enrichPvIntentView as dr, type PV_DepositView as ds, type PV_Deposit as dt, type PV_PaymentMethodData as du, type PV_Currency as dv, type PV_ReferralFee as dw, type PV_IntentView as dx, type PV_Intent as dy, ZERO_RATE_MANAGER_ID as dz, type SellerCredentialAttestationRuntime as e, type AttestationServiceSellerCredentialUploadResponse as f, type BuyerTeeSessionMaterialEncryptionInput as g, type CreateReferralCodeRequest as h, type ApiAdapterOptions as i, type CreateReferralCodeResponse as j, type ReferralReadRequest as k, type ReferralDashboardResponse as l, type ReferralEarningsResponse as m, type ReferralCodeLookupResponse as n, type RedeemReferralCodeRequest as o, type RedeemReferralCodeResponse as p, type UpdateReferralCodeRequest as q, type UpdateReferralCodeResponse as r, type GoogleOAuthSellerCredentialUploadBodyByPlatform as s, type SellerPlatform as t, type CuratorSellerCredentialStatusResponse as u, type BestByPlatformResponse as v, type ValidatePayeeDetailsResponse as w, type PostDepositDetailsResponse as x, type GetPayeeDetailsRequest as y, type GetPayeeDetailsResponse as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkp2p/sdk",
|
|
3
|
-
"version": "0.14.5
|
|
3
|
+
"version": "0.14.5",
|
|
4
4
|
"description": "ZKP2P Client SDK - TypeScript SDK for deposit management, liquidity provision, and onramping",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@zkp2p/indexer-schema": "0.22.0",
|
|
78
|
-
"@zkp2p/contracts-v2": "0.4.
|
|
78
|
+
"@zkp2p/contracts-v2": "0.4.3",
|
|
79
79
|
"@zkp2p/zkp2p-attestation": "3.1.0",
|
|
80
80
|
"ethers": "^6.0.0",
|
|
81
81
|
"ox": "^0.11.1"
|