@zkp2p/sdk 0.14.5-rc.2 → 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 +26 -13
- 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-FJZ4TRAF.mjs → chunk-QGFAF5VH.mjs} +93 -93
- package/dist/{chunk-FJZ4TRAF.mjs.map → chunk-QGFAF5VH.mjs.map} +1 -1
- package/dist/{currency-LC4OCQQU.mjs → currency-HGHBHKCR.mjs} +3 -3
- package/dist/{currency-LC4OCQQU.mjs.map → currency-HGHBHKCR.mjs.map} +1 -1
- package/dist/index.cjs +269 -193
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +99 -23
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-EKSTC7KZ.mjs +5 -0
- package/dist/{protocolViewerParsers-PNZVGROS.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-RJ66S57R.mjs → timeout-XMVMQWWA.mjs} +3 -3
- package/dist/{timeout-RJ66S57R.mjs.map → timeout-XMVMQWWA.mjs.map} +1 -1
- package/dist/{vaultUtils-DWShBZsH.d.mts → vaultUtils-CGxOY369.d.mts} +20 -4
- package/dist/{vaultUtils-DWShBZsH.d.ts → vaultUtils-CGxOY369.d.ts} +20 -4
- package/package.json +2 -2
- package/dist/chunk-755TILW4.mjs +0 -12
- package/dist/chunk-755TILW4.mjs.map +0 -1
- package/dist/protocolViewerParsers-PNZVGROS.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-PNZVGROS.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 { _ as Zkp2pClient, P as PostDepositDetailsRequest, a4 as SignalIntentMethodParams, bY as PreparedTransaction, a5 as FulfillIntentMethodParams,
|
|
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 { _ as Zkp2pClient, P as PostDepositDetailsRequest, a4 as SignalIntentMethodParams, bY as PreparedTransaction, a5 as FulfillIntentMethodParams,
|
|
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;"]}
|
|
@@ -2470,8 +2470,8 @@ type TakerStakeAuthorizationPageParams = PageParams & {
|
|
|
2470
2470
|
});
|
|
2471
2471
|
type StakeActivityPageParams = PageParams & {
|
|
2472
2472
|
vaultAddress: Address;
|
|
2473
|
-
/**
|
|
2474
|
-
merchant
|
|
2473
|
+
/** When provided, match either the immutable owner or taker side. */
|
|
2474
|
+
merchant?: Address;
|
|
2475
2475
|
kind?: StakeActivityKind;
|
|
2476
2476
|
/** Chronological direction; defaults to oldest first for ingestion callers. */
|
|
2477
2477
|
orderDirection?: 'asc' | 'desc';
|
|
@@ -2520,6 +2520,11 @@ type IndexedStakeActivity = {
|
|
|
2520
2520
|
logIndex: string;
|
|
2521
2521
|
timestamp: string;
|
|
2522
2522
|
};
|
|
2523
|
+
type IndexedStakeTotals = {
|
|
2524
|
+
totalStaked: string;
|
|
2525
|
+
totalLocked: string;
|
|
2526
|
+
stakerCount: number;
|
|
2527
|
+
};
|
|
2523
2528
|
type IndexedDisputeProtectionIntent = {
|
|
2524
2529
|
policyAddress: Address;
|
|
2525
2530
|
intentHash: string;
|
|
@@ -2638,6 +2643,11 @@ declare function buildStakingEntityIds(params: IndexedStakingStateParams): Staki
|
|
|
2638
2643
|
declare class IndexerStakingService {
|
|
2639
2644
|
private readonly client;
|
|
2640
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>;
|
|
2641
2651
|
fetchStakeLocks(params: StakeLockPageParams, init?: RequestInit): Promise<IndexedPage<IndexedStakeLock>>;
|
|
2642
2652
|
/**
|
|
2643
2653
|
* Pages one side of the vault's authorization graph: takers a stake owner
|
|
@@ -3405,10 +3415,16 @@ declare class Zkp2pClient {
|
|
|
3405
3415
|
getTakerStakeAuthorizations: (params: TakerStakeAuthorizationPageParams, options?: {
|
|
3406
3416
|
signal?: AbortSignal;
|
|
3407
3417
|
}) => Promise<IndexedPage<IndexedTakerStakeAuthorization>>;
|
|
3408
|
-
/** Pages
|
|
3418
|
+
/** Pages vault activity, optionally scoped to either side of a merchant's stake delegation. */
|
|
3409
3419
|
getStakeActivity: (params: StakeActivityPageParams, options?: {
|
|
3410
3420
|
signal?: AbortSignal;
|
|
3411
3421
|
}) => Promise<IndexedPage<IndexedStakeActivity>>;
|
|
3422
|
+
getStakeTotals: (params: {
|
|
3423
|
+
chainId: number;
|
|
3424
|
+
vaultAddress: Address;
|
|
3425
|
+
}, options?: {
|
|
3426
|
+
signal?: AbortSignal;
|
|
3427
|
+
}) => Promise<IndexedStakeTotals>;
|
|
3412
3428
|
/** Pages the exact active policy's finalized dispute stream. */
|
|
3413
3429
|
getDisputeProtectionIntents: (params: DisputeProtectionIntentPageParams, options?: {
|
|
3414
3430
|
signal?: AbortSignal;
|
|
@@ -4755,4 +4771,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
4755
4771
|
value?: bigint;
|
|
4756
4772
|
}>) => Promise<string>;
|
|
4757
4773
|
|
|
4758
|
-
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, Currency 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 IndexedStakeLock as cC, type IndexedStakingRowFreshness as cD, type IndexedStakingState as cE, type IndexedStakingStateParams as cF, type IndexedTakerAuthorization as cG, type IndexedTakerStakeAuthorization as cH, type StakeActivityPageParams as cI, type StakeLockPageParams as cJ, type StakingEntityIds as cK, type TakerStakeAuthorizationPageParams as cL, type DepositFilter as cM, type PaginationOptions as cN, type DepositOrderField as cO, type OrderDirection$1 as cP, type RateManagerFilter as cQ, type RateManagerPaginationOptions as cR, type RateManagerDelegationPaginationOptions as cS, type RateManagerOrderField as cT, type OrderDirection as cU, type DeploymentEnv as cV, type FulfillmentRecord as cW, type PaymentVerifiedRecord as cX, type FulfillmentAndPaymentResponse as cY, PAYMENT_PLATFORMS as cZ, type PaymentPlatformType 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, currencyInfo as d0, getCurrencyInfoFromHash as d1, getCurrencyInfoFromCountryCode as d2, getCurrencyCodeFromHash as d3, isSupportedCurrencyHash as d4, mapConversionRatesToOnchainMinRate as d5, type CurrencyData as d6, getContracts as d7, getIntentGuardianContract as d8, hasIntentGuardian as d9, normalizeRateManagerId as dA, normalizeRegistry as dB, getDelegationRoute as dC, classifyDelegationState as dD, type DelegationRoute as dE, type DelegationState as dF, type DelegationDepositTarget as dG, type BatchResult as dH, type SendTransactionFn as dI, type SendBatchFn as dJ, AccessPolicyOperations as dK, AccessPolicyUnsupportedError as dL, ZERO_ADDRESS as dM, asErrorMessage as dN, assertDelegationMethodSupport as dO, getRateManagerContracts as da, getStakeVaultContract as db, getOrchestratorV3Contract as dc, getDisputeProtectionPolicyContract as dd, getPaymentMethodsCatalog as de, getGatingServiceAddress as df, ORCHESTRATOR_V3_ABI as dg, DISPUTE_PROTECTION_POLICY_ABI as dh, STAKE_VAULT_ABI as di, type RuntimeEnv as dj, type V2ContractAddresses as dk, type V2ContractAbis as dl, parseDepositView as dm, parseIntentView as dn, enrichPvDepositView as dp, enrichPvIntentView as dq, type PV_DepositView as dr, type PV_Deposit as ds, type PV_PaymentMethodData as dt, type PV_Currency as du, type PV_ReferralFee as dv, type PV_IntentView as dw, type PV_Intent as dx, ZERO_RATE_MANAGER_ID as dy, isZeroRateManagerId 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 };
|
|
@@ -2470,8 +2470,8 @@ type TakerStakeAuthorizationPageParams = PageParams & {
|
|
|
2470
2470
|
});
|
|
2471
2471
|
type StakeActivityPageParams = PageParams & {
|
|
2472
2472
|
vaultAddress: Address;
|
|
2473
|
-
/**
|
|
2474
|
-
merchant
|
|
2473
|
+
/** When provided, match either the immutable owner or taker side. */
|
|
2474
|
+
merchant?: Address;
|
|
2475
2475
|
kind?: StakeActivityKind;
|
|
2476
2476
|
/** Chronological direction; defaults to oldest first for ingestion callers. */
|
|
2477
2477
|
orderDirection?: 'asc' | 'desc';
|
|
@@ -2520,6 +2520,11 @@ type IndexedStakeActivity = {
|
|
|
2520
2520
|
logIndex: string;
|
|
2521
2521
|
timestamp: string;
|
|
2522
2522
|
};
|
|
2523
|
+
type IndexedStakeTotals = {
|
|
2524
|
+
totalStaked: string;
|
|
2525
|
+
totalLocked: string;
|
|
2526
|
+
stakerCount: number;
|
|
2527
|
+
};
|
|
2523
2528
|
type IndexedDisputeProtectionIntent = {
|
|
2524
2529
|
policyAddress: Address;
|
|
2525
2530
|
intentHash: string;
|
|
@@ -2638,6 +2643,11 @@ declare function buildStakingEntityIds(params: IndexedStakingStateParams): Staki
|
|
|
2638
2643
|
declare class IndexerStakingService {
|
|
2639
2644
|
private readonly client;
|
|
2640
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>;
|
|
2641
2651
|
fetchStakeLocks(params: StakeLockPageParams, init?: RequestInit): Promise<IndexedPage<IndexedStakeLock>>;
|
|
2642
2652
|
/**
|
|
2643
2653
|
* Pages one side of the vault's authorization graph: takers a stake owner
|
|
@@ -3405,10 +3415,16 @@ declare class Zkp2pClient {
|
|
|
3405
3415
|
getTakerStakeAuthorizations: (params: TakerStakeAuthorizationPageParams, options?: {
|
|
3406
3416
|
signal?: AbortSignal;
|
|
3407
3417
|
}) => Promise<IndexedPage<IndexedTakerStakeAuthorization>>;
|
|
3408
|
-
/** Pages
|
|
3418
|
+
/** Pages vault activity, optionally scoped to either side of a merchant's stake delegation. */
|
|
3409
3419
|
getStakeActivity: (params: StakeActivityPageParams, options?: {
|
|
3410
3420
|
signal?: AbortSignal;
|
|
3411
3421
|
}) => Promise<IndexedPage<IndexedStakeActivity>>;
|
|
3422
|
+
getStakeTotals: (params: {
|
|
3423
|
+
chainId: number;
|
|
3424
|
+
vaultAddress: Address;
|
|
3425
|
+
}, options?: {
|
|
3426
|
+
signal?: AbortSignal;
|
|
3427
|
+
}) => Promise<IndexedStakeTotals>;
|
|
3412
3428
|
/** Pages the exact active policy's finalized dispute stream. */
|
|
3413
3429
|
getDisputeProtectionIntents: (params: DisputeProtectionIntentPageParams, options?: {
|
|
3414
3430
|
signal?: AbortSignal;
|
|
@@ -4755,4 +4771,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
4755
4771
|
value?: bigint;
|
|
4756
4772
|
}>) => Promise<string>;
|
|
4757
4773
|
|
|
4758
|
-
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, Currency 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 IndexedStakeLock as cC, type IndexedStakingRowFreshness as cD, type IndexedStakingState as cE, type IndexedStakingStateParams as cF, type IndexedTakerAuthorization as cG, type IndexedTakerStakeAuthorization as cH, type StakeActivityPageParams as cI, type StakeLockPageParams as cJ, type StakingEntityIds as cK, type TakerStakeAuthorizationPageParams as cL, type DepositFilter as cM, type PaginationOptions as cN, type DepositOrderField as cO, type OrderDirection$1 as cP, type RateManagerFilter as cQ, type RateManagerPaginationOptions as cR, type RateManagerDelegationPaginationOptions as cS, type RateManagerOrderField as cT, type OrderDirection as cU, type DeploymentEnv as cV, type FulfillmentRecord as cW, type PaymentVerifiedRecord as cX, type FulfillmentAndPaymentResponse as cY, PAYMENT_PLATFORMS as cZ, type PaymentPlatformType 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, currencyInfo as d0, getCurrencyInfoFromHash as d1, getCurrencyInfoFromCountryCode as d2, getCurrencyCodeFromHash as d3, isSupportedCurrencyHash as d4, mapConversionRatesToOnchainMinRate as d5, type CurrencyData as d6, getContracts as d7, getIntentGuardianContract as d8, hasIntentGuardian as d9, normalizeRateManagerId as dA, normalizeRegistry as dB, getDelegationRoute as dC, classifyDelegationState as dD, type DelegationRoute as dE, type DelegationState as dF, type DelegationDepositTarget as dG, type BatchResult as dH, type SendTransactionFn as dI, type SendBatchFn as dJ, AccessPolicyOperations as dK, AccessPolicyUnsupportedError as dL, ZERO_ADDRESS as dM, asErrorMessage as dN, assertDelegationMethodSupport as dO, getRateManagerContracts as da, getStakeVaultContract as db, getOrchestratorV3Contract as dc, getDisputeProtectionPolicyContract as dd, getPaymentMethodsCatalog as de, getGatingServiceAddress as df, ORCHESTRATOR_V3_ABI as dg, DISPUTE_PROTECTION_POLICY_ABI as dh, STAKE_VAULT_ABI as di, type RuntimeEnv as dj, type V2ContractAddresses as dk, type V2ContractAbis as dl, parseDepositView as dm, parseIntentView as dn, enrichPvDepositView as dp, enrichPvIntentView as dq, type PV_DepositView as dr, type PV_Deposit as ds, type PV_PaymentMethodData as dt, type PV_Currency as du, type PV_ReferralFee as dv, type PV_IntentView as dw, type PV_Intent as dx, ZERO_RATE_MANAGER_ID as dy, isZeroRateManagerId 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.3
|
|
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"
|
package/dist/chunk-755TILW4.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __export = (target, all) => {
|
|
3
|
-
for (var name in all)
|
|
4
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
// <define:__ZKP2P_SDK_BUILD_METADATA__>
|
|
8
|
-
var define_ZKP2P_SDK_BUILD_METADATA_default = { schemaVersion: 2, source: { repository: "zkp2p/zkp2p-clients", commitSha: "9c0f1d988bd4b6009eb3de5737e79233835425e1", kind: "github", distributable: true }, sdkPackageVersion: "0.14.5-rc.2", contractsPackageVersion: "0.4.3-rc.1", indexerSchemaPackageVersion: "0.22.0", activeDisputeStack: { base: { version: 2, selectionHash: "ba40c2954b408d0c658881a8d28e5bfcc9bade5cc3d953fd17eae1eca69d841c" }, baseStaging: { version: 2, selectionHash: "6c49c1ce51eec594a22385c4efcab08aa9926b6b63a725e14a0027ec5d2f4fc9" } } };
|
|
9
|
-
|
|
10
|
-
export { __export, define_ZKP2P_SDK_BUILD_METADATA_default };
|
|
11
|
-
//# sourceMappingURL=chunk-755TILW4.mjs.map
|
|
12
|
-
//# sourceMappingURL=chunk-755TILW4.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["%3Cdefine:__ZKP2P_SDK_BUILD_METADATA__%3E"],"names":[],"mappings":";;;;;;;AAAA,IAAA,uCAAA,GAAA,EAAC,aAAA,EAAgB,CAAA,EAAE,MAAA,EAAS,EAAC,YAAa,qBAAA,EAAsB,SAAA,EAAY,0CAAA,EAA2C,IAAA,EAAO,UAAS,aAAA,EAAgB,IAAA,EAAI,EAAE,iBAAA,EAAoB,eAAc,uBAAA,EAA0B,YAAA,EAAa,2BAAA,EAA8B,QAAA,EAAS,oBAAqB,EAAC,IAAA,EAAO,EAAC,OAAA,EAAU,GAAE,aAAA,EAAgB,kEAAA,EAAkE,EAAE,WAAA,EAAc,EAAC,OAAA,EAAU,CAAA,EAAE,aAAA,EAAgB,kEAAA,IAAmE","file":"chunk-755TILW4.mjs","sourcesContent":["{\"schemaVersion\":2,\"source\":{\"repository\":\"zkp2p/zkp2p-clients\",\"commitSha\":\"9c0f1d988bd4b6009eb3de5737e79233835425e1\",\"kind\":\"github\",\"distributable\":true},\"sdkPackageVersion\":\"0.14.5-rc.2\",\"contractsPackageVersion\":\"0.4.3-rc.1\",\"indexerSchemaPackageVersion\":\"0.22.0\",\"activeDisputeStack\":{\"base\":{\"version\":2,\"selectionHash\":\"ba40c2954b408d0c658881a8d28e5bfcc9bade5cc3d953fd17eae1eca69d841c\"},\"baseStaging\":{\"version\":2,\"selectionHash\":\"6c49c1ce51eec594a22385c4efcab08aa9926b6b63a725e14a0027ec5d2f4fc9\"}}}"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { enrichPvDepositView, enrichPvIntentView, parseDepositView, parseIntentView } from './chunk-FJZ4TRAF.mjs';
|
|
2
|
-
import './chunk-ZB22BZLZ.mjs';
|
|
3
|
-
import './chunk-755TILW4.mjs';
|
|
4
|
-
//# sourceMappingURL=protocolViewerParsers-PNZVGROS.mjs.map
|
|
5
|
-
//# sourceMappingURL=protocolViewerParsers-PNZVGROS.mjs.map
|