@zkp2p/sdk 0.4.2 → 0.5.0
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 +49 -35
- package/dist/index.cjs +128 -224
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +53 -31
- package/dist/index.d.ts +53 -31
- package/dist/index.mjs +127 -225
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +3 -2
- package/dist/react.d.ts +3 -2
- package/dist/{vaultUtils-Bi2uldoa.d.mts → vaultUtils-BL8tzsmH.d.mts} +59 -13
- package/dist/{vaultUtils-Bi2uldoa.d.ts → vaultUtils-BL8tzsmH.d.ts} +59 -13
- package/package.json +2 -2
package/dist/react.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Z as Zkp2pClient, P as PostDepositDetailsRequest,
|
|
2
|
-
export {
|
|
1
|
+
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, y as SignalIntentMethodParams, bo as PreparedTransaction, br as TakerTier, o as GetTakerTierRequest, p as GetTakerTierResponse, F as FulfillIntentMethodParams, cH as SendTransactionFn, cI as SendBatchFn, cF as DelegationDepositTarget, cG as BatchResult } from './vaultUtils-BL8tzsmH.mjs';
|
|
2
|
+
export { cD as DelegationRoute, cE as DelegationState, cJ as VAULT_ZERO_ADDRESS, cx as ZERO_RATE_MANAGER_ID, cK as asErrorMessage, cL as assertDelegationMethodSupport, cC as classifyDelegationState, cB as getDelegationRoute, cy as isZeroRateManagerId, cz as normalizeRateManagerId, cA as normalizeRegistry } from './vaultUtils-BL8tzsmH.mjs';
|
|
3
3
|
import { Hash, Address, Hex } from 'viem';
|
|
4
4
|
import '@zkp2p/indexer-schema';
|
|
5
5
|
import 'abitype';
|
|
6
|
+
import '@zkp2p/zkp2p-attestation';
|
|
6
7
|
|
|
7
8
|
interface UseCreateDepositOptions {
|
|
8
9
|
client: Zkp2pClient | null;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Z as Zkp2pClient, P as PostDepositDetailsRequest,
|
|
2
|
-
export {
|
|
1
|
+
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, y as SignalIntentMethodParams, bo as PreparedTransaction, br as TakerTier, o as GetTakerTierRequest, p as GetTakerTierResponse, F as FulfillIntentMethodParams, cH as SendTransactionFn, cI as SendBatchFn, cF as DelegationDepositTarget, cG as BatchResult } from './vaultUtils-BL8tzsmH.js';
|
|
2
|
+
export { cD as DelegationRoute, cE as DelegationState, cJ as VAULT_ZERO_ADDRESS, cx as ZERO_RATE_MANAGER_ID, cK as asErrorMessage, cL as assertDelegationMethodSupport, cC as classifyDelegationState, cB as getDelegationRoute, cy as isZeroRateManagerId, cz as normalizeRateManagerId, cA as normalizeRegistry } from './vaultUtils-BL8tzsmH.js';
|
|
3
3
|
import { Hash, Address, Hex } from 'viem';
|
|
4
4
|
import '@zkp2p/indexer-schema';
|
|
5
5
|
import 'abitype';
|
|
6
|
+
import '@zkp2p/zkp2p-attestation';
|
|
6
7
|
|
|
7
8
|
interface UseCreateDepositOptions {
|
|
8
9
|
client: Zkp2pClient | null;
|
|
@@ -2,6 +2,7 @@ import * as _zkp2p_indexer_schema from '@zkp2p/indexer-schema';
|
|
|
2
2
|
import { Deposit, DepositStatus as DepositStatus$2, IntentStatus as IntentStatus$1, DepositPaymentMethod, MethodCurrency, Intent as Intent$1, MakerProfitSnapshot, RateManager, ManagerAggregateStats, RateManagerRate, ManagerStats, DepositFundActivity, DepositDailySnapshot, ManagerDailySnapshot } from '@zkp2p/indexer-schema';
|
|
3
3
|
import { Address, Hex, AccessList, AuthorizationList, Hash, WalletClient, PublicClient } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
|
+
import { IdentityPlatform, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityAttestationOutput } from '@zkp2p/zkp2p-attestation';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Supported fiat currency codes.
|
|
@@ -461,6 +462,7 @@ interface DepositEventsResponse$1 {
|
|
|
461
462
|
}
|
|
462
463
|
interface IntentFulfilledEntity {
|
|
463
464
|
intentHash: string;
|
|
465
|
+
amount: string;
|
|
464
466
|
isManualRelease: boolean;
|
|
465
467
|
fundsTransferredTo?: string | null;
|
|
466
468
|
}
|
|
@@ -985,15 +987,16 @@ type ReferrerFeeConfig = {
|
|
|
985
987
|
recipient: `0x${string}`;
|
|
986
988
|
feeBps: number;
|
|
987
989
|
};
|
|
990
|
+
type CuratorMetadata = Record<string, any>;
|
|
988
991
|
type CuratorPayeeData = {
|
|
989
992
|
offchainId: string;
|
|
990
993
|
telegramUsername: string | null;
|
|
991
|
-
metadata:
|
|
994
|
+
metadata: CuratorMetadata | null;
|
|
992
995
|
};
|
|
993
996
|
type CuratorPayeeDataInput = {
|
|
994
997
|
offchainId: string;
|
|
995
998
|
telegramUsername?: string | null;
|
|
996
|
-
metadata?:
|
|
999
|
+
metadata?: CuratorMetadata | null;
|
|
997
1000
|
};
|
|
998
1001
|
/**
|
|
999
1002
|
* Parameters for fulfilling an intent with payment attestation
|
|
@@ -1014,6 +1017,7 @@ type FulfillIntentParams = {
|
|
|
1014
1017
|
/** Optional lifecycle callbacks */
|
|
1015
1018
|
callbacks?: {
|
|
1016
1019
|
onAttestationStart?: () => void;
|
|
1020
|
+
onAttestationComplete?: (attestation: FulfillIntentAttestationResponse) => void;
|
|
1017
1021
|
onTxSent?: (hash: Hash) => void;
|
|
1018
1022
|
onTxMined?: (hash: Hash) => void;
|
|
1019
1023
|
};
|
|
@@ -1063,7 +1067,7 @@ type PostDepositDetailsRequest = {
|
|
|
1063
1067
|
/** Optional Telegram username associated with the payee */
|
|
1064
1068
|
telegramUsername?: string | null;
|
|
1065
1069
|
/** Optional processor-specific metadata */
|
|
1066
|
-
metadata?:
|
|
1070
|
+
metadata?: CuratorMetadata | null;
|
|
1067
1071
|
/** Payment processor name */
|
|
1068
1072
|
processorName: string;
|
|
1069
1073
|
};
|
|
@@ -1079,7 +1083,7 @@ type PostDepositDetailsResponse = {
|
|
|
1079
1083
|
processorName: string;
|
|
1080
1084
|
offchainId: string;
|
|
1081
1085
|
telegramUsername: string | null;
|
|
1082
|
-
metadata:
|
|
1086
|
+
metadata: CuratorMetadata | null;
|
|
1083
1087
|
hashedOnchainId: string;
|
|
1084
1088
|
createdAt: string;
|
|
1085
1089
|
/** Per-merchant forwarding alias (PayPal multi-merchant flow) */
|
|
@@ -1224,8 +1228,8 @@ type BuyerTeePaymentProofInput = {
|
|
|
1224
1228
|
proofType: 'buyerTee';
|
|
1225
1229
|
encryptedSessionMaterial: string;
|
|
1226
1230
|
params: BuyerTeePaymentParams;
|
|
1227
|
-
actionType?: string;
|
|
1228
1231
|
actionPlatform?: string;
|
|
1232
|
+
actionType?: string;
|
|
1229
1233
|
};
|
|
1230
1234
|
type BuyerTeeSessionMaterial = Record<string, string>;
|
|
1231
1235
|
type BuyerTeeSessionMaterialEncryptionInput = {
|
|
@@ -1236,6 +1240,23 @@ type BuyerTeeSessionMaterialEncryptionInput = {
|
|
|
1236
1240
|
sessionMaterial: BuyerTeeSessionMaterial;
|
|
1237
1241
|
timeoutMs?: number | null;
|
|
1238
1242
|
};
|
|
1243
|
+
type MakerIdentityPlatform = Extract<IdentityPlatform, 'paypal' | 'wise'>;
|
|
1244
|
+
type IdentityAttestationParams = IdentityParamsByPlatform[IdentityPlatform] | Record<string, string | number | boolean>;
|
|
1245
|
+
type IdentityAttestationRequestBody = {
|
|
1246
|
+
encryptedSessionMaterial: string;
|
|
1247
|
+
params: IdentityAttestationParams;
|
|
1248
|
+
};
|
|
1249
|
+
type MakerIdentityAttestationRequestBody<P extends MakerIdentityPlatform> = {
|
|
1250
|
+
encryptedSessionMaterial: string;
|
|
1251
|
+
params: IdentityParamsByPlatform[P];
|
|
1252
|
+
};
|
|
1253
|
+
type IdentityAttestationActionType<P extends IdentityPlatform> = IdentityActionTypeByPlatform[P];
|
|
1254
|
+
type AttestationServiceIdentityResponse = {
|
|
1255
|
+
success: boolean;
|
|
1256
|
+
message: string;
|
|
1257
|
+
responseObject: IdentityAttestationOutput;
|
|
1258
|
+
statusCode: number;
|
|
1259
|
+
};
|
|
1239
1260
|
type SellerTypedDataField = {
|
|
1240
1261
|
name: string;
|
|
1241
1262
|
type: string;
|
|
@@ -1278,6 +1299,7 @@ type AttestationServiceSellerVerifyResponse = {
|
|
|
1278
1299
|
responseObject: SellerAttestationOutput;
|
|
1279
1300
|
statusCode: number;
|
|
1280
1301
|
};
|
|
1302
|
+
type FulfillIntentAttestationResponse = AttestationServiceSellerVerifyResponse;
|
|
1281
1303
|
type AttestationServiceSellerCredentialProbeResponse = {
|
|
1282
1304
|
success: boolean;
|
|
1283
1305
|
message: string;
|
|
@@ -1309,7 +1331,7 @@ type UploadSellerCredentialParams = ({
|
|
|
1309
1331
|
[P in RegisteredSellerCredentialPlatform]: {
|
|
1310
1332
|
offchainId: string;
|
|
1311
1333
|
telegramUsername?: string | null;
|
|
1312
|
-
metadata?:
|
|
1334
|
+
metadata?: CuratorMetadata | null;
|
|
1313
1335
|
platform: P;
|
|
1314
1336
|
} & SellerCredentialUploadInputByPlatform[P];
|
|
1315
1337
|
}[RegisteredSellerCredentialPlatform];
|
|
@@ -1317,10 +1339,22 @@ type RegisteredUploadSellerCredentialParams = {
|
|
|
1317
1339
|
[P in RegisteredSellerCredentialPlatform]: {
|
|
1318
1340
|
offchainId: string;
|
|
1319
1341
|
telegramUsername?: string | null;
|
|
1320
|
-
metadata?:
|
|
1342
|
+
metadata?: CuratorMetadata | null;
|
|
1321
1343
|
platform: P;
|
|
1322
1344
|
} & SellerCredentialUploadInputByPlatform[P];
|
|
1323
1345
|
}[RegisteredSellerCredentialPlatform];
|
|
1346
|
+
type UploadSellerCredentialBundleParams = {
|
|
1347
|
+
bundle: SellerCredentialBundleUpload;
|
|
1348
|
+
platform: 'wise';
|
|
1349
|
+
} | {
|
|
1350
|
+
[P in RegisteredSellerCredentialPlatform]: {
|
|
1351
|
+
bundle: SellerCredentialBundleUpload;
|
|
1352
|
+
offchainId: string;
|
|
1353
|
+
telegramUsername?: string | null;
|
|
1354
|
+
metadata?: CuratorMetadata | null;
|
|
1355
|
+
platform: P;
|
|
1356
|
+
};
|
|
1357
|
+
}[RegisteredSellerCredentialPlatform];
|
|
1324
1358
|
type UploadSellerCredentialOptions = {
|
|
1325
1359
|
baseApiUrl?: string;
|
|
1326
1360
|
attestationServiceUrl?: string;
|
|
@@ -1579,7 +1613,7 @@ type GetPayeeDetailsResponse = {
|
|
|
1579
1613
|
processorName: string;
|
|
1580
1614
|
offchainId: string;
|
|
1581
1615
|
telegramUsername: string | null;
|
|
1582
|
-
metadata:
|
|
1616
|
+
metadata: CuratorMetadata | null;
|
|
1583
1617
|
hashedOnchainId: string;
|
|
1584
1618
|
createdAt: string;
|
|
1585
1619
|
/** Per-merchant forwarding alias surfaced on maker lookup (PayPal multi-merchant flow) */
|
|
@@ -1591,7 +1625,7 @@ type ValidatePayeeDetailsRequest = {
|
|
|
1591
1625
|
processorName: string;
|
|
1592
1626
|
offchainId: string;
|
|
1593
1627
|
telegramUsername?: string | null;
|
|
1594
|
-
metadata?:
|
|
1628
|
+
metadata?: CuratorMetadata | null;
|
|
1595
1629
|
};
|
|
1596
1630
|
type ValidatePayeeDetailsResponse = {
|
|
1597
1631
|
success: boolean;
|
|
@@ -2027,6 +2061,7 @@ type FulfillIntentMethodParams = {
|
|
|
2027
2061
|
/** Lifecycle callbacks for UI updates */
|
|
2028
2062
|
callbacks?: {
|
|
2029
2063
|
onAttestationStart?: () => void;
|
|
2064
|
+
onAttestationComplete?: (attestation: FulfillIntentAttestationResponse) => void;
|
|
2030
2065
|
onTxSent?: (hash: Hash) => void;
|
|
2031
2066
|
onTxMined?: (hash: Hash) => void;
|
|
2032
2067
|
};
|
|
@@ -2370,7 +2405,9 @@ declare class Zkp2pClient {
|
|
|
2370
2405
|
* { limit: 50, orderBy: 'remainingDeposits', orderDirection: 'desc' }
|
|
2371
2406
|
* );
|
|
2372
2407
|
*
|
|
2373
|
-
* // Get historical fulfillment data
|
|
2408
|
+
* // Get historical fulfillment event data. Use `amount` for net USDC
|
|
2409
|
+
* // transferred to the taker; use getIntentFulfillmentAmounts() when you
|
|
2410
|
+
* // also need gross released USDC.
|
|
2374
2411
|
* const fulfillments = await client.indexer.getFulfilledIntentEvents(['0x...']);
|
|
2375
2412
|
* ```
|
|
2376
2413
|
*/
|
|
@@ -2422,11 +2459,13 @@ declare class Zkp2pClient {
|
|
|
2422
2459
|
limit?: number;
|
|
2423
2460
|
}) => Promise<IntentEntity$1[]>;
|
|
2424
2461
|
/**
|
|
2425
|
-
* Fetches fulfillment events for completed intents.
|
|
2462
|
+
* Fetches fulfillment events for completed intents. `amount` is the net
|
|
2463
|
+
* USDC transferred to the taker after protocol/referrer fees.
|
|
2426
2464
|
*/
|
|
2427
2465
|
getFulfilledIntentEvents: (intentHashes: string[]) => Promise<IntentFulfilledEntity[]>;
|
|
2428
2466
|
/**
|
|
2429
|
-
* Fetches gross and net fulfillment amounts for an intent.
|
|
2467
|
+
* Fetches gross and net fulfillment amounts for an intent. Use
|
|
2468
|
+
* `takerAmountNetFees` as the buyer/taker received USDC amount.
|
|
2430
2469
|
*/
|
|
2431
2470
|
getIntentFulfillmentAmounts: (intentHash: string) => Promise<IntentFulfillmentAmountsEntity | null>;
|
|
2432
2471
|
/**
|
|
@@ -3429,6 +3468,13 @@ declare class Zkp2pClient {
|
|
|
3429
3468
|
* from the submitted Personal API Token.
|
|
3430
3469
|
*/
|
|
3431
3470
|
uploadSellerCredential(params: UploadSellerCredentialParams, opts?: UploadSellerCredentialOptions): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3471
|
+
/**
|
|
3472
|
+
* Store an already-encrypted seller credential bundle with curator.
|
|
3473
|
+
*/
|
|
3474
|
+
uploadSellerCredentialBundle(params: UploadSellerCredentialBundleParams, opts?: {
|
|
3475
|
+
baseApiUrl?: string;
|
|
3476
|
+
timeoutMs?: number;
|
|
3477
|
+
}): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3432
3478
|
/**
|
|
3433
3479
|
* Confirms the PayPal Gmail-forwarding setup for an existing maker payee hash.
|
|
3434
3480
|
*
|
|
@@ -3636,4 +3682,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
3636
3682
|
value?: bigint;
|
|
3637
3683
|
}>) => Promise<string>;
|
|
3638
3684
|
|
|
3639
|
-
export { type
|
|
3685
|
+
export { type BestByPlatformResponseObject as $, type AttestationServiceIdentityResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type Zkp2pNextOptions as E, type FulfillIntentMethodParams as F, type GoogleOAuthSellerCredentialPlatform as G, type AuthorizationTokenProvider as H, type IntentEntity$1 as I, type TimeoutConfig as J, type ActionCallback as K, type CreateDepositParams as L, type CreateDepositConversionRate as M, type Range as N, type SignalIntentParams as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type TxOverrides as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type FulfillIntentParams as X, type ReleaseFundsToPayerParams as Y, Zkp2pClient as Z, type CancelIntentParams as _, type IdentityAttestationRequestBody as a, type AttestationServiceSellerVerifyResponse as a$, type GetBestByPlatformResponse as a0, type GetBestByPlatformResponseObject as a1, type GetPlatformQuote as a2, type PlatformQuote as a3, type QuoteRequest as a4, type GetNearbyQuote as a5, type GetNearbySuggestions as a6, type GetQuoteResponse as a7, type GetQuoteResponseObject as a8, type GetQuoteSingleResponse as a9, type CashAppSessionMaterial as aA, type WiseSessionMaterial as aB, type WiseProfileInfo as aC, type WiseProfileSelectionRequired as aD, type WiseProfileNotFound as aE, type PayPalSessionMaterial as aF, type PayPalGoogleOAuthSellerCredentialUploadBody as aG, type VenmoGoogleOAuthSellerCredentialUploadBody as aH, type VenmoCredentialUploadInput as aI, type CashAppCredentialUploadInput as aJ, type WiseCredentialUploadInput as aK, type PayPalCredentialUploadInput as aL, type SellerCredentialUploadInputByPlatform as aM, type SellerCiphertextBundle as aN, type SellerSignedCiphertextBundle as aO, type SellerVerifyIntentDetails as aP, type SellerVerifyInput as aQ, type SellerProbeInput as aR, type SellerCredentialBundleUpload as aS, type SellerCredentialStatusValue as aT, type SellerCredentialStatus as aU, type SellerVerifyProxyBody as aV, type SellerTypedDataField as aW, type SellerTypedDataSpec as aX, type SellerPaymentTypedDataValue as aY, type SellerAttestationOutput as aZ, type SellerCredentialProbeResponse as a_, type QuoteResponse as aa, type QuoteResponseObject as ab, type QuoteSingleResponse as ac, type QuoteIntentResponse as ad, type QuoteFeesResponse as ae, type FiatResponse as af, type TokenResponse as ag, type NearbyQuote as ah, type NearbySuggestions as ai, type ApiDeposit as aj, type DepositVerifier as ak, type DepositVerifierCurrency as al, type DepositStatus as am, type GetDepositByIdRequest as an, type GetDepositByIdResponse as ao, type Intent as ap, type ApiIntentStatus as aq, type GetOwnerIntentsRequest as ar, type GetOwnerIntentsResponse as as, type GetIntentsByDepositRequest as at, type GetIntentsByDepositResponse as au, type GetIntentByHashRequest as av, type GetIntentByHashResponse as aw, type RegisterPayeeDetailsRequest as ax, type RegisterPayeeDetailsResponse as ay, type VenmoSessionMaterial as az, type SellerCredentialUploadInput as b, type RateManagerPaginationOptions as b$, type FulfillIntentAttestationResponse as b0, type AttestationServiceSellerCredentialProbeResponse as b1, type BuyerTeePaymentParams as b2, type BuyerTeePaymentProofInput as b3, type BuyerTeeSessionMaterial as b4, type CuratorSellerCredentialStatusResponse as b5, type CuratorSellerVerifyResponse as b6, type RegisteredSellerCredentialPlatform as b7, type UploadSellerCredentialParams as b8, type RegisteredUploadSellerCredentialParams as b9, IndexerRateManagerService as bA, compareEventCursorIdsByRecency as bB, fetchFulfillmentAndPayment as bC, type DepositEntity$1 as bD, type IntentFulfilledEntity as bE, type IntentFulfillmentAmountsEntity as bF, type DepositPaymentMethodEntity$1 as bG, type MethodCurrencyEntity$1 as bH, type IntentStatus as bI, type RateManagerEntity as bJ, type RateManagerRateEntity as bK, type RateManagerDelegationEntity as bL, type ManagerAggregateStatsEntity as bM, type ManagerStatsEntity as bN, type ManagerDailySnapshotEntity as bO, type RateManagerListItem as bP, type RateManagerDetail as bQ, type ManualRateUpdateEntity as bR, type OracleConfigUpdateEntity as bS, type DepositFundActivityEntity$1 as bT, type DepositDailySnapshotEntity$1 as bU, type DepositFundActivityType$1 as bV, type DepositFilter as bW, type PaginationOptions as bX, type DepositOrderField as bY, type OrderDirection$1 as bZ, type RateManagerFilter as b_, type UploadSellerCredentialOptions as ba, type GetSellerCredentialStatusParams as bb, type ConfirmPayPalForwardingRequest as bc, type PayPalForwardingConfirmationErrorCode as bd, type UploadPayPalGoogleOAuthSellerCredentialParams as be, type UploadVenmoGoogleOAuthSellerCredentialParams as bf, type UploadGoogleOAuthSellerCredentialParams as bg, type VerifySellerPaymentParams as bh, type IdentityAttestationActionType as bi, type IdentityAttestationParams as bj, type MakerIdentityAttestationRequestBody as bk, type MakerIdentityPlatform as bl, type OnchainCurrency as bm, type DepositVerifierData as bn, type PreparedTransaction as bo, type OrderStats as bp, type DepositIntentStatistics as bq, type TakerTier as br, type TakerTierStats as bs, type TakerTierLevel as bt, type PlatformLimit as bu, type PlatformRiskLevel as bv, type OrderbookEntry as bw, IndexerClient as bx, defaultIndexerEndpoint as by, IndexerDepositService as bz, type SellerPlatform as c, type RateManagerDelegationPaginationOptions as c0, type RateManagerOrderField as c1, type OrderDirection as c2, type DeploymentEnv as c3, type FulfillmentRecord as c4, type PaymentVerifiedRecord as c5, type FulfillmentAndPaymentResponse as c6, PAYMENT_PLATFORMS as c7, type PaymentPlatformType as c8, Currency as c9, normalizeRegistry as cA, getDelegationRoute as cB, classifyDelegationState as cC, type DelegationRoute as cD, type DelegationState as cE, type DelegationDepositTarget as cF, type BatchResult as cG, type SendTransactionFn as cH, type SendBatchFn as cI, ZERO_ADDRESS as cJ, asErrorMessage as cK, assertDelegationMethodSupport as cL, currencyInfo as ca, getCurrencyInfoFromHash as cb, getCurrencyInfoFromCountryCode as cc, getCurrencyCodeFromHash as cd, isSupportedCurrencyHash as ce, mapConversionRatesToOnchainMinRate as cf, type CurrencyData as cg, getContracts as ch, getRateManagerContracts as ci, getPaymentMethodsCatalog as cj, getGatingServiceAddress as ck, type RuntimeEnv as cl, parseDepositView as cm, parseIntentView as cn, enrichPvDepositView as co, enrichPvIntentView as cp, type PV_DepositView as cq, type PV_Deposit as cr, type PV_PaymentMethodData as cs, type PV_Currency as ct, type PV_ReferralFee as cu, type PV_IntentView as cv, type PV_Intent as cw, ZERO_RATE_MANAGER_ID as cx, isZeroRateManagerId as cy, normalizeRateManagerId as cz, type SellerCredentialAttestationRuntime as d, type AttestationServiceSellerCredentialUploadResponse as e, type ConfirmPayPalForwardingResponse as f, type GoogleOAuthSellerCredentialUploadBodyByPlatform as g, type BestByPlatformResponse as h, type ValidatePayeeDetailsResponse as i, type PostDepositDetailsResponse as j, type GetPayeeDetailsRequest as k, type GetPayeeDetailsResponse as l, type GetOwnerDepositsRequest as m, type GetOwnerDepositsResponse as n, type GetTakerTierRequest as o, type GetTakerTierResponse as p, type GetDepositBundleParams as q, type ApiAdapterOptions as r, type GetDepositBundleResponse as s, type GetOrderbookParams as t, type GetOrderbookResponse as u, type CurrencyType as v, type PaymentMethodCatalog as w, type SignalIntentReferralFee as x, type SignalIntentMethodParams as y, type CancelIntentMethodParams as z };
|
|
@@ -2,6 +2,7 @@ import * as _zkp2p_indexer_schema from '@zkp2p/indexer-schema';
|
|
|
2
2
|
import { Deposit, DepositStatus as DepositStatus$2, IntentStatus as IntentStatus$1, DepositPaymentMethod, MethodCurrency, Intent as Intent$1, MakerProfitSnapshot, RateManager, ManagerAggregateStats, RateManagerRate, ManagerStats, DepositFundActivity, DepositDailySnapshot, ManagerDailySnapshot } from '@zkp2p/indexer-schema';
|
|
3
3
|
import { Address, Hex, AccessList, AuthorizationList, Hash, WalletClient, PublicClient } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
|
+
import { IdentityPlatform, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityAttestationOutput } from '@zkp2p/zkp2p-attestation';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Supported fiat currency codes.
|
|
@@ -461,6 +462,7 @@ interface DepositEventsResponse$1 {
|
|
|
461
462
|
}
|
|
462
463
|
interface IntentFulfilledEntity {
|
|
463
464
|
intentHash: string;
|
|
465
|
+
amount: string;
|
|
464
466
|
isManualRelease: boolean;
|
|
465
467
|
fundsTransferredTo?: string | null;
|
|
466
468
|
}
|
|
@@ -985,15 +987,16 @@ type ReferrerFeeConfig = {
|
|
|
985
987
|
recipient: `0x${string}`;
|
|
986
988
|
feeBps: number;
|
|
987
989
|
};
|
|
990
|
+
type CuratorMetadata = Record<string, any>;
|
|
988
991
|
type CuratorPayeeData = {
|
|
989
992
|
offchainId: string;
|
|
990
993
|
telegramUsername: string | null;
|
|
991
|
-
metadata:
|
|
994
|
+
metadata: CuratorMetadata | null;
|
|
992
995
|
};
|
|
993
996
|
type CuratorPayeeDataInput = {
|
|
994
997
|
offchainId: string;
|
|
995
998
|
telegramUsername?: string | null;
|
|
996
|
-
metadata?:
|
|
999
|
+
metadata?: CuratorMetadata | null;
|
|
997
1000
|
};
|
|
998
1001
|
/**
|
|
999
1002
|
* Parameters for fulfilling an intent with payment attestation
|
|
@@ -1014,6 +1017,7 @@ type FulfillIntentParams = {
|
|
|
1014
1017
|
/** Optional lifecycle callbacks */
|
|
1015
1018
|
callbacks?: {
|
|
1016
1019
|
onAttestationStart?: () => void;
|
|
1020
|
+
onAttestationComplete?: (attestation: FulfillIntentAttestationResponse) => void;
|
|
1017
1021
|
onTxSent?: (hash: Hash) => void;
|
|
1018
1022
|
onTxMined?: (hash: Hash) => void;
|
|
1019
1023
|
};
|
|
@@ -1063,7 +1067,7 @@ type PostDepositDetailsRequest = {
|
|
|
1063
1067
|
/** Optional Telegram username associated with the payee */
|
|
1064
1068
|
telegramUsername?: string | null;
|
|
1065
1069
|
/** Optional processor-specific metadata */
|
|
1066
|
-
metadata?:
|
|
1070
|
+
metadata?: CuratorMetadata | null;
|
|
1067
1071
|
/** Payment processor name */
|
|
1068
1072
|
processorName: string;
|
|
1069
1073
|
};
|
|
@@ -1079,7 +1083,7 @@ type PostDepositDetailsResponse = {
|
|
|
1079
1083
|
processorName: string;
|
|
1080
1084
|
offchainId: string;
|
|
1081
1085
|
telegramUsername: string | null;
|
|
1082
|
-
metadata:
|
|
1086
|
+
metadata: CuratorMetadata | null;
|
|
1083
1087
|
hashedOnchainId: string;
|
|
1084
1088
|
createdAt: string;
|
|
1085
1089
|
/** Per-merchant forwarding alias (PayPal multi-merchant flow) */
|
|
@@ -1224,8 +1228,8 @@ type BuyerTeePaymentProofInput = {
|
|
|
1224
1228
|
proofType: 'buyerTee';
|
|
1225
1229
|
encryptedSessionMaterial: string;
|
|
1226
1230
|
params: BuyerTeePaymentParams;
|
|
1227
|
-
actionType?: string;
|
|
1228
1231
|
actionPlatform?: string;
|
|
1232
|
+
actionType?: string;
|
|
1229
1233
|
};
|
|
1230
1234
|
type BuyerTeeSessionMaterial = Record<string, string>;
|
|
1231
1235
|
type BuyerTeeSessionMaterialEncryptionInput = {
|
|
@@ -1236,6 +1240,23 @@ type BuyerTeeSessionMaterialEncryptionInput = {
|
|
|
1236
1240
|
sessionMaterial: BuyerTeeSessionMaterial;
|
|
1237
1241
|
timeoutMs?: number | null;
|
|
1238
1242
|
};
|
|
1243
|
+
type MakerIdentityPlatform = Extract<IdentityPlatform, 'paypal' | 'wise'>;
|
|
1244
|
+
type IdentityAttestationParams = IdentityParamsByPlatform[IdentityPlatform] | Record<string, string | number | boolean>;
|
|
1245
|
+
type IdentityAttestationRequestBody = {
|
|
1246
|
+
encryptedSessionMaterial: string;
|
|
1247
|
+
params: IdentityAttestationParams;
|
|
1248
|
+
};
|
|
1249
|
+
type MakerIdentityAttestationRequestBody<P extends MakerIdentityPlatform> = {
|
|
1250
|
+
encryptedSessionMaterial: string;
|
|
1251
|
+
params: IdentityParamsByPlatform[P];
|
|
1252
|
+
};
|
|
1253
|
+
type IdentityAttestationActionType<P extends IdentityPlatform> = IdentityActionTypeByPlatform[P];
|
|
1254
|
+
type AttestationServiceIdentityResponse = {
|
|
1255
|
+
success: boolean;
|
|
1256
|
+
message: string;
|
|
1257
|
+
responseObject: IdentityAttestationOutput;
|
|
1258
|
+
statusCode: number;
|
|
1259
|
+
};
|
|
1239
1260
|
type SellerTypedDataField = {
|
|
1240
1261
|
name: string;
|
|
1241
1262
|
type: string;
|
|
@@ -1278,6 +1299,7 @@ type AttestationServiceSellerVerifyResponse = {
|
|
|
1278
1299
|
responseObject: SellerAttestationOutput;
|
|
1279
1300
|
statusCode: number;
|
|
1280
1301
|
};
|
|
1302
|
+
type FulfillIntentAttestationResponse = AttestationServiceSellerVerifyResponse;
|
|
1281
1303
|
type AttestationServiceSellerCredentialProbeResponse = {
|
|
1282
1304
|
success: boolean;
|
|
1283
1305
|
message: string;
|
|
@@ -1309,7 +1331,7 @@ type UploadSellerCredentialParams = ({
|
|
|
1309
1331
|
[P in RegisteredSellerCredentialPlatform]: {
|
|
1310
1332
|
offchainId: string;
|
|
1311
1333
|
telegramUsername?: string | null;
|
|
1312
|
-
metadata?:
|
|
1334
|
+
metadata?: CuratorMetadata | null;
|
|
1313
1335
|
platform: P;
|
|
1314
1336
|
} & SellerCredentialUploadInputByPlatform[P];
|
|
1315
1337
|
}[RegisteredSellerCredentialPlatform];
|
|
@@ -1317,10 +1339,22 @@ type RegisteredUploadSellerCredentialParams = {
|
|
|
1317
1339
|
[P in RegisteredSellerCredentialPlatform]: {
|
|
1318
1340
|
offchainId: string;
|
|
1319
1341
|
telegramUsername?: string | null;
|
|
1320
|
-
metadata?:
|
|
1342
|
+
metadata?: CuratorMetadata | null;
|
|
1321
1343
|
platform: P;
|
|
1322
1344
|
} & SellerCredentialUploadInputByPlatform[P];
|
|
1323
1345
|
}[RegisteredSellerCredentialPlatform];
|
|
1346
|
+
type UploadSellerCredentialBundleParams = {
|
|
1347
|
+
bundle: SellerCredentialBundleUpload;
|
|
1348
|
+
platform: 'wise';
|
|
1349
|
+
} | {
|
|
1350
|
+
[P in RegisteredSellerCredentialPlatform]: {
|
|
1351
|
+
bundle: SellerCredentialBundleUpload;
|
|
1352
|
+
offchainId: string;
|
|
1353
|
+
telegramUsername?: string | null;
|
|
1354
|
+
metadata?: CuratorMetadata | null;
|
|
1355
|
+
platform: P;
|
|
1356
|
+
};
|
|
1357
|
+
}[RegisteredSellerCredentialPlatform];
|
|
1324
1358
|
type UploadSellerCredentialOptions = {
|
|
1325
1359
|
baseApiUrl?: string;
|
|
1326
1360
|
attestationServiceUrl?: string;
|
|
@@ -1579,7 +1613,7 @@ type GetPayeeDetailsResponse = {
|
|
|
1579
1613
|
processorName: string;
|
|
1580
1614
|
offchainId: string;
|
|
1581
1615
|
telegramUsername: string | null;
|
|
1582
|
-
metadata:
|
|
1616
|
+
metadata: CuratorMetadata | null;
|
|
1583
1617
|
hashedOnchainId: string;
|
|
1584
1618
|
createdAt: string;
|
|
1585
1619
|
/** Per-merchant forwarding alias surfaced on maker lookup (PayPal multi-merchant flow) */
|
|
@@ -1591,7 +1625,7 @@ type ValidatePayeeDetailsRequest = {
|
|
|
1591
1625
|
processorName: string;
|
|
1592
1626
|
offchainId: string;
|
|
1593
1627
|
telegramUsername?: string | null;
|
|
1594
|
-
metadata?:
|
|
1628
|
+
metadata?: CuratorMetadata | null;
|
|
1595
1629
|
};
|
|
1596
1630
|
type ValidatePayeeDetailsResponse = {
|
|
1597
1631
|
success: boolean;
|
|
@@ -2027,6 +2061,7 @@ type FulfillIntentMethodParams = {
|
|
|
2027
2061
|
/** Lifecycle callbacks for UI updates */
|
|
2028
2062
|
callbacks?: {
|
|
2029
2063
|
onAttestationStart?: () => void;
|
|
2064
|
+
onAttestationComplete?: (attestation: FulfillIntentAttestationResponse) => void;
|
|
2030
2065
|
onTxSent?: (hash: Hash) => void;
|
|
2031
2066
|
onTxMined?: (hash: Hash) => void;
|
|
2032
2067
|
};
|
|
@@ -2370,7 +2405,9 @@ declare class Zkp2pClient {
|
|
|
2370
2405
|
* { limit: 50, orderBy: 'remainingDeposits', orderDirection: 'desc' }
|
|
2371
2406
|
* );
|
|
2372
2407
|
*
|
|
2373
|
-
* // Get historical fulfillment data
|
|
2408
|
+
* // Get historical fulfillment event data. Use `amount` for net USDC
|
|
2409
|
+
* // transferred to the taker; use getIntentFulfillmentAmounts() when you
|
|
2410
|
+
* // also need gross released USDC.
|
|
2374
2411
|
* const fulfillments = await client.indexer.getFulfilledIntentEvents(['0x...']);
|
|
2375
2412
|
* ```
|
|
2376
2413
|
*/
|
|
@@ -2422,11 +2459,13 @@ declare class Zkp2pClient {
|
|
|
2422
2459
|
limit?: number;
|
|
2423
2460
|
}) => Promise<IntentEntity$1[]>;
|
|
2424
2461
|
/**
|
|
2425
|
-
* Fetches fulfillment events for completed intents.
|
|
2462
|
+
* Fetches fulfillment events for completed intents. `amount` is the net
|
|
2463
|
+
* USDC transferred to the taker after protocol/referrer fees.
|
|
2426
2464
|
*/
|
|
2427
2465
|
getFulfilledIntentEvents: (intentHashes: string[]) => Promise<IntentFulfilledEntity[]>;
|
|
2428
2466
|
/**
|
|
2429
|
-
* Fetches gross and net fulfillment amounts for an intent.
|
|
2467
|
+
* Fetches gross and net fulfillment amounts for an intent. Use
|
|
2468
|
+
* `takerAmountNetFees` as the buyer/taker received USDC amount.
|
|
2430
2469
|
*/
|
|
2431
2470
|
getIntentFulfillmentAmounts: (intentHash: string) => Promise<IntentFulfillmentAmountsEntity | null>;
|
|
2432
2471
|
/**
|
|
@@ -3429,6 +3468,13 @@ declare class Zkp2pClient {
|
|
|
3429
3468
|
* from the submitted Personal API Token.
|
|
3430
3469
|
*/
|
|
3431
3470
|
uploadSellerCredential(params: UploadSellerCredentialParams, opts?: UploadSellerCredentialOptions): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3471
|
+
/**
|
|
3472
|
+
* Store an already-encrypted seller credential bundle with curator.
|
|
3473
|
+
*/
|
|
3474
|
+
uploadSellerCredentialBundle(params: UploadSellerCredentialBundleParams, opts?: {
|
|
3475
|
+
baseApiUrl?: string;
|
|
3476
|
+
timeoutMs?: number;
|
|
3477
|
+
}): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3432
3478
|
/**
|
|
3433
3479
|
* Confirms the PayPal Gmail-forwarding setup for an existing maker payee hash.
|
|
3434
3480
|
*
|
|
@@ -3636,4 +3682,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
3636
3682
|
value?: bigint;
|
|
3637
3683
|
}>) => Promise<string>;
|
|
3638
3684
|
|
|
3639
|
-
export { type
|
|
3685
|
+
export { type BestByPlatformResponseObject as $, type AttestationServiceIdentityResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type Zkp2pNextOptions as E, type FulfillIntentMethodParams as F, type GoogleOAuthSellerCredentialPlatform as G, type AuthorizationTokenProvider as H, type IntentEntity$1 as I, type TimeoutConfig as J, type ActionCallback as K, type CreateDepositParams as L, type CreateDepositConversionRate as M, type Range as N, type SignalIntentParams as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type TxOverrides as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type FulfillIntentParams as X, type ReleaseFundsToPayerParams as Y, Zkp2pClient as Z, type CancelIntentParams as _, type IdentityAttestationRequestBody as a, type AttestationServiceSellerVerifyResponse as a$, type GetBestByPlatformResponse as a0, type GetBestByPlatformResponseObject as a1, type GetPlatformQuote as a2, type PlatformQuote as a3, type QuoteRequest as a4, type GetNearbyQuote as a5, type GetNearbySuggestions as a6, type GetQuoteResponse as a7, type GetQuoteResponseObject as a8, type GetQuoteSingleResponse as a9, type CashAppSessionMaterial as aA, type WiseSessionMaterial as aB, type WiseProfileInfo as aC, type WiseProfileSelectionRequired as aD, type WiseProfileNotFound as aE, type PayPalSessionMaterial as aF, type PayPalGoogleOAuthSellerCredentialUploadBody as aG, type VenmoGoogleOAuthSellerCredentialUploadBody as aH, type VenmoCredentialUploadInput as aI, type CashAppCredentialUploadInput as aJ, type WiseCredentialUploadInput as aK, type PayPalCredentialUploadInput as aL, type SellerCredentialUploadInputByPlatform as aM, type SellerCiphertextBundle as aN, type SellerSignedCiphertextBundle as aO, type SellerVerifyIntentDetails as aP, type SellerVerifyInput as aQ, type SellerProbeInput as aR, type SellerCredentialBundleUpload as aS, type SellerCredentialStatusValue as aT, type SellerCredentialStatus as aU, type SellerVerifyProxyBody as aV, type SellerTypedDataField as aW, type SellerTypedDataSpec as aX, type SellerPaymentTypedDataValue as aY, type SellerAttestationOutput as aZ, type SellerCredentialProbeResponse as a_, type QuoteResponse as aa, type QuoteResponseObject as ab, type QuoteSingleResponse as ac, type QuoteIntentResponse as ad, type QuoteFeesResponse as ae, type FiatResponse as af, type TokenResponse as ag, type NearbyQuote as ah, type NearbySuggestions as ai, type ApiDeposit as aj, type DepositVerifier as ak, type DepositVerifierCurrency as al, type DepositStatus as am, type GetDepositByIdRequest as an, type GetDepositByIdResponse as ao, type Intent as ap, type ApiIntentStatus as aq, type GetOwnerIntentsRequest as ar, type GetOwnerIntentsResponse as as, type GetIntentsByDepositRequest as at, type GetIntentsByDepositResponse as au, type GetIntentByHashRequest as av, type GetIntentByHashResponse as aw, type RegisterPayeeDetailsRequest as ax, type RegisterPayeeDetailsResponse as ay, type VenmoSessionMaterial as az, type SellerCredentialUploadInput as b, type RateManagerPaginationOptions as b$, type FulfillIntentAttestationResponse as b0, type AttestationServiceSellerCredentialProbeResponse as b1, type BuyerTeePaymentParams as b2, type BuyerTeePaymentProofInput as b3, type BuyerTeeSessionMaterial as b4, type CuratorSellerCredentialStatusResponse as b5, type CuratorSellerVerifyResponse as b6, type RegisteredSellerCredentialPlatform as b7, type UploadSellerCredentialParams as b8, type RegisteredUploadSellerCredentialParams as b9, IndexerRateManagerService as bA, compareEventCursorIdsByRecency as bB, fetchFulfillmentAndPayment as bC, type DepositEntity$1 as bD, type IntentFulfilledEntity as bE, type IntentFulfillmentAmountsEntity as bF, type DepositPaymentMethodEntity$1 as bG, type MethodCurrencyEntity$1 as bH, type IntentStatus as bI, type RateManagerEntity as bJ, type RateManagerRateEntity as bK, type RateManagerDelegationEntity as bL, type ManagerAggregateStatsEntity as bM, type ManagerStatsEntity as bN, type ManagerDailySnapshotEntity as bO, type RateManagerListItem as bP, type RateManagerDetail as bQ, type ManualRateUpdateEntity as bR, type OracleConfigUpdateEntity as bS, type DepositFundActivityEntity$1 as bT, type DepositDailySnapshotEntity$1 as bU, type DepositFundActivityType$1 as bV, type DepositFilter as bW, type PaginationOptions as bX, type DepositOrderField as bY, type OrderDirection$1 as bZ, type RateManagerFilter as b_, type UploadSellerCredentialOptions as ba, type GetSellerCredentialStatusParams as bb, type ConfirmPayPalForwardingRequest as bc, type PayPalForwardingConfirmationErrorCode as bd, type UploadPayPalGoogleOAuthSellerCredentialParams as be, type UploadVenmoGoogleOAuthSellerCredentialParams as bf, type UploadGoogleOAuthSellerCredentialParams as bg, type VerifySellerPaymentParams as bh, type IdentityAttestationActionType as bi, type IdentityAttestationParams as bj, type MakerIdentityAttestationRequestBody as bk, type MakerIdentityPlatform as bl, type OnchainCurrency as bm, type DepositVerifierData as bn, type PreparedTransaction as bo, type OrderStats as bp, type DepositIntentStatistics as bq, type TakerTier as br, type TakerTierStats as bs, type TakerTierLevel as bt, type PlatformLimit as bu, type PlatformRiskLevel as bv, type OrderbookEntry as bw, IndexerClient as bx, defaultIndexerEndpoint as by, IndexerDepositService as bz, type SellerPlatform as c, type RateManagerDelegationPaginationOptions as c0, type RateManagerOrderField as c1, type OrderDirection as c2, type DeploymentEnv as c3, type FulfillmentRecord as c4, type PaymentVerifiedRecord as c5, type FulfillmentAndPaymentResponse as c6, PAYMENT_PLATFORMS as c7, type PaymentPlatformType as c8, Currency as c9, normalizeRegistry as cA, getDelegationRoute as cB, classifyDelegationState as cC, type DelegationRoute as cD, type DelegationState as cE, type DelegationDepositTarget as cF, type BatchResult as cG, type SendTransactionFn as cH, type SendBatchFn as cI, ZERO_ADDRESS as cJ, asErrorMessage as cK, assertDelegationMethodSupport as cL, currencyInfo as ca, getCurrencyInfoFromHash as cb, getCurrencyInfoFromCountryCode as cc, getCurrencyCodeFromHash as cd, isSupportedCurrencyHash as ce, mapConversionRatesToOnchainMinRate as cf, type CurrencyData as cg, getContracts as ch, getRateManagerContracts as ci, getPaymentMethodsCatalog as cj, getGatingServiceAddress as ck, type RuntimeEnv as cl, parseDepositView as cm, parseIntentView as cn, enrichPvDepositView as co, enrichPvIntentView as cp, type PV_DepositView as cq, type PV_Deposit as cr, type PV_PaymentMethodData as cs, type PV_Currency as ct, type PV_ReferralFee as cu, type PV_IntentView as cv, type PV_Intent as cw, ZERO_RATE_MANAGER_ID as cx, isZeroRateManagerId as cy, normalizeRateManagerId as cz, type SellerCredentialAttestationRuntime as d, type AttestationServiceSellerCredentialUploadResponse as e, type ConfirmPayPalForwardingResponse as f, type GoogleOAuthSellerCredentialUploadBodyByPlatform as g, type BestByPlatformResponse as h, type ValidatePayeeDetailsResponse as i, type PostDepositDetailsResponse as j, type GetPayeeDetailsRequest as k, type GetPayeeDetailsResponse as l, type GetOwnerDepositsRequest as m, type GetOwnerDepositsResponse as n, type GetTakerTierRequest as o, type GetTakerTierResponse as p, type GetDepositBundleParams as q, type ApiAdapterOptions as r, type GetDepositBundleResponse as s, type GetOrderbookParams as t, type GetOrderbookResponse as u, type CurrencyType as v, type PaymentMethodCatalog as w, type SignalIntentReferralFee as x, type SignalIntentMethodParams as y, type CancelIntentMethodParams as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkp2p/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
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",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@zkp2p/indexer-schema": "0.2.3",
|
|
91
91
|
"@zkp2p/contracts-v2": "0.2.2",
|
|
92
|
-
"@zkp2p/zkp2p-attestation": "1.
|
|
92
|
+
"@zkp2p/zkp2p-attestation": "1.4.0",
|
|
93
93
|
"ethers": "^6.0.0",
|
|
94
94
|
"ox": "^0.11.1"
|
|
95
95
|
},
|