@zkp2p/sdk 0.4.3 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -37
- package/dist/index.cjs +150 -339
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +53 -41
- package/dist/index.d.ts +53 -41
- package/dist/index.mjs +145 -337
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{vaultUtils-BZU2bc0T.d.mts → vaultUtils-CtNcKlpg.d.mts} +47 -50
- package/dist/{vaultUtils-BZU2bc0T.d.ts → vaultUtils-CtNcKlpg.d.ts} +47 -50
- package/package.json +2 -2
package/dist/react.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, x as SignalIntentMethodParams,
|
|
2
|
-
export {
|
|
1
|
+
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, x as SignalIntentMethodParams, bm as PreparedTransaction, bp as TakerTier, n as GetTakerTierRequest, o as GetTakerTierResponse, F as FulfillIntentMethodParams, cF as SendTransactionFn, cG as SendBatchFn, cD as DelegationDepositTarget, cE as BatchResult } from './vaultUtils-CtNcKlpg.mjs';
|
|
2
|
+
export { cB as DelegationRoute, cC as DelegationState, cH as VAULT_ZERO_ADDRESS, cv as ZERO_RATE_MANAGER_ID, cI as asErrorMessage, cJ as assertDelegationMethodSupport, cA as classifyDelegationState, cz as getDelegationRoute, cw as isZeroRateManagerId, cx as normalizeRateManagerId, cy as normalizeRegistry } from './vaultUtils-CtNcKlpg.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 { Z as Zkp2pClient, P as PostDepositDetailsRequest, x as SignalIntentMethodParams,
|
|
2
|
-
export {
|
|
1
|
+
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, x as SignalIntentMethodParams, bm as PreparedTransaction, bp as TakerTier, n as GetTakerTierRequest, o as GetTakerTierResponse, F as FulfillIntentMethodParams, cF as SendTransactionFn, cG as SendBatchFn, cD as DelegationDepositTarget, cE as BatchResult } from './vaultUtils-CtNcKlpg.js';
|
|
2
|
+
export { cB as DelegationRoute, cC as DelegationState, cH as VAULT_ZERO_ADDRESS, cv as ZERO_RATE_MANAGER_ID, cI as asErrorMessage, cJ as assertDelegationMethodSupport, cA as classifyDelegationState, cz as getDelegationRoute, cw as isZeroRateManagerId, cx as normalizeRateManagerId, cy as normalizeRegistry } from './vaultUtils-CtNcKlpg.js';
|
|
3
3
|
import { Hash, Address, Hex } from 'viem';
|
|
4
4
|
import '@zkp2p/indexer-schema';
|
|
5
5
|
import 'abitype';
|
|
@@ -2,7 +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,
|
|
5
|
+
import { IdentityPlatform, IdentityActionTypeByPlatform, IdentityAttestationOutputFor as IdentityAttestationOutputFor$1, IdentityParamsByPlatform } from '@zkp2p/zkp2p-attestation';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Supported fiat currency codes.
|
|
@@ -462,6 +462,7 @@ interface DepositEventsResponse$1 {
|
|
|
462
462
|
}
|
|
463
463
|
interface IntentFulfilledEntity {
|
|
464
464
|
intentHash: string;
|
|
465
|
+
amount: string;
|
|
465
466
|
isManualRelease: boolean;
|
|
466
467
|
fundsTransferredTo?: string | null;
|
|
467
468
|
}
|
|
@@ -937,6 +938,15 @@ type PrepareableMethod<TParams, TResult> = {
|
|
|
937
938
|
prepare(params: TParams): Promise<PreparedTransaction>;
|
|
938
939
|
};
|
|
939
940
|
|
|
941
|
+
type IdentityTypedDataValueFor<P extends IdentityPlatform> = IdentityAttestationOutputFor$1<P>['typedDataValue'] & {
|
|
942
|
+
callerAddress: string;
|
|
943
|
+
};
|
|
944
|
+
type IdentityAttestationOutputFor<P extends IdentityPlatform> = Omit<IdentityAttestationOutputFor$1<P>, 'typedDataValue'> & {
|
|
945
|
+
typedDataValue: IdentityTypedDataValueFor<P>;
|
|
946
|
+
};
|
|
947
|
+
type IdentityAttestationOutput = {
|
|
948
|
+
[P in IdentityPlatform]: IdentityAttestationOutputFor<P>;
|
|
949
|
+
}[IdentityPlatform];
|
|
940
950
|
/**
|
|
941
951
|
* Timeout configuration for different operation types
|
|
942
952
|
*/
|
|
@@ -1003,8 +1013,8 @@ type CuratorPayeeDataInput = {
|
|
|
1003
1013
|
type FulfillIntentParams = {
|
|
1004
1014
|
/** Hash of the intent to fulfill */
|
|
1005
1015
|
intentHash: Hash;
|
|
1006
|
-
/**
|
|
1007
|
-
proof:
|
|
1016
|
+
/** Buyer TEE payment proof input */
|
|
1017
|
+
proof: BuyerTeePaymentProofInput;
|
|
1008
1018
|
/** Optional attestation timestamp buffer override in milliseconds */
|
|
1009
1019
|
timestampBufferMs?: number | string;
|
|
1010
1020
|
/** Override the attestation service base URL */
|
|
@@ -1016,6 +1026,7 @@ type FulfillIntentParams = {
|
|
|
1016
1026
|
/** Optional lifecycle callbacks */
|
|
1017
1027
|
callbacks?: {
|
|
1018
1028
|
onAttestationStart?: () => void;
|
|
1029
|
+
onAttestationComplete?: (attestation: FulfillIntentAttestationResponse) => void;
|
|
1019
1030
|
onTxSent?: (hash: Hash) => void;
|
|
1020
1031
|
onTxMined?: (hash: Hash) => void;
|
|
1021
1032
|
};
|
|
@@ -1084,10 +1095,6 @@ type PostDepositDetailsResponse = {
|
|
|
1084
1095
|
metadata: CuratorMetadata | null;
|
|
1085
1096
|
hashedOnchainId: string;
|
|
1086
1097
|
createdAt: string;
|
|
1087
|
-
/** Per-merchant forwarding alias (PayPal multi-merchant flow) */
|
|
1088
|
-
forwardingMailboxAlias?: string | null;
|
|
1089
|
-
/** Alias surfaced by curator maker lookup (alternative field name from GET /v1/makers/paypal/<hash>) */
|
|
1090
|
-
paypalForwardingAlias?: string | null;
|
|
1091
1098
|
};
|
|
1092
1099
|
statusCode: number;
|
|
1093
1100
|
};
|
|
@@ -1129,11 +1136,6 @@ type WiseProfileNotFound = {
|
|
|
1129
1136
|
profileId: string;
|
|
1130
1137
|
profiles: WiseProfileInfo[];
|
|
1131
1138
|
};
|
|
1132
|
-
type PayPalSessionMaterial = {
|
|
1133
|
-
payeeEmail: string;
|
|
1134
|
-
forwardingBaseMailbox: string;
|
|
1135
|
-
forwardingMailboxAlias: string;
|
|
1136
|
-
};
|
|
1137
1139
|
type GoogleOAuthSellerCredentialPlatform = Extract<SellerPlatform, 'paypal' | 'venmo'>;
|
|
1138
1140
|
type PayPalGoogleOAuthSellerCredentialUploadBody = {
|
|
1139
1141
|
payeeEmail: string;
|
|
@@ -1160,17 +1162,13 @@ type CashAppCredentialUploadInput = {
|
|
|
1160
1162
|
type WiseCredentialUploadInput = {
|
|
1161
1163
|
sessionMaterial: WiseSessionMaterial;
|
|
1162
1164
|
};
|
|
1163
|
-
type PayPalCredentialUploadInput = {
|
|
1164
|
-
payeeId: string;
|
|
1165
|
-
sessionMaterial: PayPalSessionMaterial;
|
|
1166
|
-
};
|
|
1167
1165
|
type SellerCredentialUploadInputByPlatform = {
|
|
1168
1166
|
venmo: VenmoCredentialUploadInput;
|
|
1169
1167
|
cashapp: CashAppCredentialUploadInput;
|
|
1170
1168
|
wise: WiseCredentialUploadInput;
|
|
1171
|
-
paypal: PayPalCredentialUploadInput;
|
|
1172
1169
|
};
|
|
1173
|
-
type
|
|
1170
|
+
type SellerCredentialUploadPlatform = keyof SellerCredentialUploadInputByPlatform;
|
|
1171
|
+
type SellerCredentialUploadInput = SellerCredentialUploadInputByPlatform[keyof SellerCredentialUploadInputByPlatform];
|
|
1174
1172
|
type SellerCiphertextBundle = {
|
|
1175
1173
|
encryptedBlob: string;
|
|
1176
1174
|
encryptedDataKey: string;
|
|
@@ -1241,10 +1239,12 @@ type BuyerTeeSessionMaterialEncryptionInput = {
|
|
|
1241
1239
|
type MakerIdentityPlatform = Extract<IdentityPlatform, 'paypal' | 'wise'>;
|
|
1242
1240
|
type IdentityAttestationParams = IdentityParamsByPlatform[IdentityPlatform] | Record<string, string | number | boolean>;
|
|
1243
1241
|
type IdentityAttestationRequestBody = {
|
|
1242
|
+
callerAddress: string;
|
|
1244
1243
|
encryptedSessionMaterial: string;
|
|
1245
1244
|
params: IdentityAttestationParams;
|
|
1246
1245
|
};
|
|
1247
1246
|
type MakerIdentityAttestationRequestBody<P extends MakerIdentityPlatform> = {
|
|
1247
|
+
callerAddress: string;
|
|
1248
1248
|
encryptedSessionMaterial: string;
|
|
1249
1249
|
params: IdentityParamsByPlatform[P];
|
|
1250
1250
|
};
|
|
@@ -1297,6 +1297,7 @@ type AttestationServiceSellerVerifyResponse = {
|
|
|
1297
1297
|
responseObject: SellerAttestationOutput;
|
|
1298
1298
|
statusCode: number;
|
|
1299
1299
|
};
|
|
1300
|
+
type FulfillIntentAttestationResponse = AttestationServiceSellerVerifyResponse;
|
|
1300
1301
|
type AttestationServiceSellerCredentialProbeResponse = {
|
|
1301
1302
|
success: boolean;
|
|
1302
1303
|
message: string;
|
|
@@ -1321,7 +1322,7 @@ type CuratorSellerVerifyResponse = {
|
|
|
1321
1322
|
responseObject: SellerAttestationOutput;
|
|
1322
1323
|
statusCode: number;
|
|
1323
1324
|
};
|
|
1324
|
-
type RegisteredSellerCredentialPlatform = Exclude<
|
|
1325
|
+
type RegisteredSellerCredentialPlatform = Exclude<SellerCredentialUploadPlatform, 'wise'>;
|
|
1325
1326
|
type UploadSellerCredentialParams = ({
|
|
1326
1327
|
platform: 'wise';
|
|
1327
1328
|
} & WiseCredentialUploadInput) | {
|
|
@@ -1340,6 +1341,18 @@ type RegisteredUploadSellerCredentialParams = {
|
|
|
1340
1341
|
platform: P;
|
|
1341
1342
|
} & SellerCredentialUploadInputByPlatform[P];
|
|
1342
1343
|
}[RegisteredSellerCredentialPlatform];
|
|
1344
|
+
type UploadSellerCredentialBundleParams = {
|
|
1345
|
+
bundle: SellerCredentialBundleUpload;
|
|
1346
|
+
platform: 'wise';
|
|
1347
|
+
} | {
|
|
1348
|
+
[P in RegisteredSellerCredentialPlatform]: {
|
|
1349
|
+
bundle: SellerCredentialBundleUpload;
|
|
1350
|
+
offchainId: string;
|
|
1351
|
+
telegramUsername?: string | null;
|
|
1352
|
+
metadata?: CuratorMetadata | null;
|
|
1353
|
+
platform: P;
|
|
1354
|
+
};
|
|
1355
|
+
}[RegisteredSellerCredentialPlatform];
|
|
1343
1356
|
type UploadSellerCredentialOptions = {
|
|
1344
1357
|
baseApiUrl?: string;
|
|
1345
1358
|
attestationServiceUrl?: string;
|
|
@@ -1350,21 +1363,6 @@ type GetSellerCredentialStatusParams = {
|
|
|
1350
1363
|
processorName: SellerPlatform;
|
|
1351
1364
|
payeeDetails: Hash;
|
|
1352
1365
|
};
|
|
1353
|
-
type PayPalForwardingConfirmationErrorCode = 'paypal_forwarding_confirmation_not_found' | 'paypal_forwarding_initiator_email_mismatch' | 'paypal_forwarding_confirmation_expired' | 'paypal_forwarding_confirmation_rejected';
|
|
1354
|
-
type ConfirmPayPalForwardingRequest = {
|
|
1355
|
-
payeeDetails: Hash;
|
|
1356
|
-
payeeEmail: string;
|
|
1357
|
-
forwardingInitiatorEmail: string;
|
|
1358
|
-
};
|
|
1359
|
-
type ConfirmPayPalForwardingStatus = Omit<SellerCredentialStatus, 'payeeIdHash'> & {
|
|
1360
|
-
payeeIdHash?: Hash;
|
|
1361
|
-
};
|
|
1362
|
-
type ConfirmPayPalForwardingResponse = {
|
|
1363
|
-
success: boolean;
|
|
1364
|
-
message: string;
|
|
1365
|
-
responseObject: ConfirmPayPalForwardingStatus;
|
|
1366
|
-
statusCode: number;
|
|
1367
|
-
};
|
|
1368
1366
|
type GoogleOAuthSellerCredentialBaseParams = {
|
|
1369
1367
|
authorizationCode: string;
|
|
1370
1368
|
payeeDetails: Hash;
|
|
@@ -1601,8 +1599,6 @@ type GetPayeeDetailsResponse = {
|
|
|
1601
1599
|
metadata: CuratorMetadata | null;
|
|
1602
1600
|
hashedOnchainId: string;
|
|
1603
1601
|
createdAt: string;
|
|
1604
|
-
/** Per-merchant forwarding alias surfaced on maker lookup (PayPal multi-merchant flow) */
|
|
1605
|
-
paypalForwardingAlias?: string | null;
|
|
1606
1602
|
};
|
|
1607
1603
|
statusCode: number;
|
|
1608
1604
|
};
|
|
@@ -2031,8 +2027,8 @@ type CancelIntentMethodParams = {
|
|
|
2031
2027
|
type FulfillIntentMethodParams = {
|
|
2032
2028
|
/** The intent hash to fulfill (0x-prefixed, 32 bytes) */
|
|
2033
2029
|
intentHash: `0x${string}`;
|
|
2034
|
-
/**
|
|
2035
|
-
proof:
|
|
2030
|
+
/** Buyer TEE payment proof input */
|
|
2031
|
+
proof: BuyerTeePaymentProofInput;
|
|
2036
2032
|
/** Allowed timestamp variance in ms (default: 300000ms) */
|
|
2037
2033
|
timestampBufferMs?: string;
|
|
2038
2034
|
/** Override attestation service URL */
|
|
@@ -2046,6 +2042,7 @@ type FulfillIntentMethodParams = {
|
|
|
2046
2042
|
/** Lifecycle callbacks for UI updates */
|
|
2047
2043
|
callbacks?: {
|
|
2048
2044
|
onAttestationStart?: () => void;
|
|
2045
|
+
onAttestationComplete?: (attestation: FulfillIntentAttestationResponse) => void;
|
|
2049
2046
|
onTxSent?: (hash: Hash) => void;
|
|
2050
2047
|
onTxMined?: (hash: Hash) => void;
|
|
2051
2048
|
};
|
|
@@ -2389,7 +2386,9 @@ declare class Zkp2pClient {
|
|
|
2389
2386
|
* { limit: 50, orderBy: 'remainingDeposits', orderDirection: 'desc' }
|
|
2390
2387
|
* );
|
|
2391
2388
|
*
|
|
2392
|
-
* // Get historical fulfillment data
|
|
2389
|
+
* // Get historical fulfillment event data. Use `amount` for net USDC
|
|
2390
|
+
* // transferred to the taker; use getIntentFulfillmentAmounts() when you
|
|
2391
|
+
* // also need gross released USDC.
|
|
2393
2392
|
* const fulfillments = await client.indexer.getFulfilledIntentEvents(['0x...']);
|
|
2394
2393
|
* ```
|
|
2395
2394
|
*/
|
|
@@ -2441,11 +2440,13 @@ declare class Zkp2pClient {
|
|
|
2441
2440
|
limit?: number;
|
|
2442
2441
|
}) => Promise<IntentEntity$1[]>;
|
|
2443
2442
|
/**
|
|
2444
|
-
* Fetches fulfillment events for completed intents.
|
|
2443
|
+
* Fetches fulfillment events for completed intents. `amount` is the net
|
|
2444
|
+
* USDC transferred to the taker after protocol/referrer fees.
|
|
2445
2445
|
*/
|
|
2446
2446
|
getFulfilledIntentEvents: (intentHashes: string[]) => Promise<IntentFulfilledEntity[]>;
|
|
2447
2447
|
/**
|
|
2448
|
-
* Fetches gross and net fulfillment amounts for an intent.
|
|
2448
|
+
* Fetches gross and net fulfillment amounts for an intent. Use
|
|
2449
|
+
* `takerAmountNetFees` as the buyer/taker received USDC amount.
|
|
2449
2450
|
*/
|
|
2450
2451
|
getIntentFulfillmentAmounts: (intentHash: string) => Promise<IntentFulfillmentAmountsEntity | null>;
|
|
2451
2452
|
/**
|
|
@@ -3332,7 +3333,7 @@ declare class Zkp2pClient {
|
|
|
3332
3333
|
* ```
|
|
3333
3334
|
*
|
|
3334
3335
|
* @param params.intentHash - The intent hash to fulfill (0x-prefixed, 32 bytes)
|
|
3335
|
-
* @param params.proof -
|
|
3336
|
+
* @param params.proof - Buyer TEE payment proof input
|
|
3336
3337
|
* @param params.timestampBufferMs - Allowed timestamp variance (default: 300000ms)
|
|
3337
3338
|
* @param params.attestationServiceUrl - Override attestation service URL
|
|
3338
3339
|
* @param params.postIntentHookData - Data to pass to post-intent hook
|
|
@@ -3449,16 +3450,12 @@ declare class Zkp2pClient {
|
|
|
3449
3450
|
*/
|
|
3450
3451
|
uploadSellerCredential(params: UploadSellerCredentialParams, opts?: UploadSellerCredentialOptions): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3451
3452
|
/**
|
|
3452
|
-
*
|
|
3453
|
-
*
|
|
3454
|
-
* Uses curator's `/forwarding-confirmation` route and forwards both API key and
|
|
3455
|
-
* bearer token so either auth strategy can satisfy the hybrid gate. The endpoint
|
|
3456
|
-
* is rate-limited server-side; callers should surface retry guidance from APIError.
|
|
3453
|
+
* Store an already-encrypted seller credential bundle with curator.
|
|
3457
3454
|
*/
|
|
3458
|
-
|
|
3455
|
+
uploadSellerCredentialBundle(params: UploadSellerCredentialBundleParams, opts?: {
|
|
3459
3456
|
baseApiUrl?: string;
|
|
3460
3457
|
timeoutMs?: number;
|
|
3461
|
-
}): Promise<
|
|
3458
|
+
}): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3462
3459
|
/**
|
|
3463
3460
|
* Upload a seller Gmail OAuth authorization code through curator.
|
|
3464
3461
|
*
|
|
@@ -3655,4 +3652,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
3655
3652
|
value?: bigint;
|
|
3656
3653
|
}>) => Promise<string>;
|
|
3657
3654
|
|
|
3658
|
-
export { type
|
|
3655
|
+
export { type GetBestByPlatformResponse as $, type AttestationServiceIdentityResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type AuthorizationTokenProvider as E, type FulfillIntentMethodParams as F, type GoogleOAuthSellerCredentialPlatform as G, type TimeoutConfig as H, type IntentEntity$1 as I, type ActionCallback as J, type CreateDepositParams as K, type CreateDepositConversionRate as L, type Range as M, type SignalIntentParams as N, type FulfillIntentParams 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 ReleaseFundsToPayerParams as X, type CancelIntentParams as Y, Zkp2pClient as Z, type BestByPlatformResponseObject as _, type IdentityAttestationRequestBody as a, type AttestationServiceSellerCredentialProbeResponse as a$, type GetBestByPlatformResponseObject as a0, type GetPlatformQuote as a1, type PlatformQuote as a2, type QuoteRequest as a3, type GetNearbyQuote as a4, type GetNearbySuggestions as a5, type GetQuoteResponse as a6, type GetQuoteResponseObject as a7, type GetQuoteSingleResponse as a8, type QuoteResponse as a9, type CashAppSessionMaterial as aA, type WiseSessionMaterial as aB, type WiseProfileInfo as aC, type WiseProfileSelectionRequired as aD, type WiseProfileNotFound as aE, type PayPalGoogleOAuthSellerCredentialUploadBody as aF, type VenmoGoogleOAuthSellerCredentialUploadBody as aG, type VenmoCredentialUploadInput as aH, type CashAppCredentialUploadInput as aI, type WiseCredentialUploadInput as aJ, type SellerCredentialUploadInputByPlatform as aK, type SellerCiphertextBundle as aL, type SellerSignedCiphertextBundle as aM, type SellerVerifyIntentDetails as aN, type SellerVerifyInput as aO, type SellerProbeInput as aP, type SellerCredentialBundleUpload as aQ, type SellerCredentialStatusValue as aR, type SellerCredentialStatus as aS, type SellerVerifyProxyBody as aT, type SellerTypedDataField as aU, type SellerTypedDataSpec as aV, type SellerPaymentTypedDataValue as aW, type SellerAttestationOutput as aX, type SellerCredentialProbeResponse as aY, type AttestationServiceSellerVerifyResponse as aZ, type FulfillIntentAttestationResponse as a_, type QuoteResponseObject as aa, type QuoteSingleResponse as ab, type QuoteIntentResponse as ac, type QuoteFeesResponse as ad, type FiatResponse as ae, type TokenResponse as af, type NearbyQuote as ag, type NearbySuggestions as ah, type ApiDeposit as ai, type DepositVerifier as aj, type DepositVerifierCurrency as ak, type DepositStatus as al, type GetDepositByIdRequest as am, type GetDepositByIdResponse as an, type Intent as ao, type ApiIntentStatus as ap, type GetOwnerIntentsRequest as aq, type GetOwnerIntentsResponse as ar, type GetIntentsByDepositRequest as as, type GetIntentsByDepositResponse as at, type GetIntentByHashRequest as au, type GetIntentByHashResponse as av, type RegisterPayeeDetailsRequest as aw, type RegisterPayeeDetailsResponse as ax, type SellerPlatform as ay, type VenmoSessionMaterial as az, type SellerCredentialUploadInput as b, type RateManagerOrderField as b$, type BuyerTeePaymentParams as b0, type BuyerTeePaymentProofInput as b1, type BuyerTeeSessionMaterial as b2, type CuratorSellerCredentialStatusResponse as b3, type CuratorSellerVerifyResponse as b4, type RegisteredSellerCredentialPlatform as b5, type UploadSellerCredentialParams as b6, type RegisteredUploadSellerCredentialParams as b7, type UploadSellerCredentialOptions as b8, type GetSellerCredentialStatusParams as b9, fetchFulfillmentAndPayment as bA, type DepositEntity$1 as bB, type IntentFulfilledEntity as bC, type IntentFulfillmentAmountsEntity as bD, type DepositPaymentMethodEntity$1 as bE, type MethodCurrencyEntity$1 as bF, type IntentStatus as bG, type RateManagerEntity as bH, type RateManagerRateEntity as bI, type RateManagerDelegationEntity as bJ, type ManagerAggregateStatsEntity as bK, type ManagerStatsEntity as bL, type ManagerDailySnapshotEntity as bM, type RateManagerListItem as bN, type RateManagerDetail as bO, type ManualRateUpdateEntity as bP, type OracleConfigUpdateEntity as bQ, type DepositFundActivityEntity$1 as bR, type DepositDailySnapshotEntity$1 as bS, type DepositFundActivityType$1 as bT, type DepositFilter as bU, type PaginationOptions as bV, type DepositOrderField as bW, type OrderDirection$1 as bX, type RateManagerFilter as bY, type RateManagerPaginationOptions as bZ, type RateManagerDelegationPaginationOptions as b_, type UploadPayPalGoogleOAuthSellerCredentialParams as ba, type UploadVenmoGoogleOAuthSellerCredentialParams as bb, type UploadGoogleOAuthSellerCredentialParams as bc, type VerifySellerPaymentParams as bd, type IdentityAttestationActionType as be, type IdentityAttestationOutput as bf, type IdentityAttestationOutputFor as bg, type IdentityAttestationParams as bh, type MakerIdentityAttestationRequestBody as bi, type MakerIdentityPlatform as bj, type OnchainCurrency as bk, type DepositVerifierData as bl, type PreparedTransaction as bm, type OrderStats as bn, type DepositIntentStatistics as bo, type TakerTier as bp, type TakerTierStats as bq, type TakerTierLevel as br, type PlatformLimit as bs, type PlatformRiskLevel as bt, type OrderbookEntry as bu, IndexerClient as bv, defaultIndexerEndpoint as bw, IndexerDepositService as bx, IndexerRateManagerService as by, compareEventCursorIdsByRecency as bz, type SellerCredentialUploadPlatform as c, type OrderDirection as c0, type DeploymentEnv as c1, type FulfillmentRecord as c2, type PaymentVerifiedRecord as c3, type FulfillmentAndPaymentResponse as c4, PAYMENT_PLATFORMS as c5, type PaymentPlatformType as c6, Currency as c7, currencyInfo as c8, getCurrencyInfoFromHash as c9, classifyDelegationState as cA, type DelegationRoute as cB, type DelegationState as cC, type DelegationDepositTarget as cD, type BatchResult as cE, type SendTransactionFn as cF, type SendBatchFn as cG, ZERO_ADDRESS as cH, asErrorMessage as cI, assertDelegationMethodSupport as cJ, getCurrencyInfoFromCountryCode as ca, getCurrencyCodeFromHash as cb, isSupportedCurrencyHash as cc, mapConversionRatesToOnchainMinRate as cd, type CurrencyData as ce, getContracts as cf, getRateManagerContracts as cg, getPaymentMethodsCatalog as ch, getGatingServiceAddress as ci, type RuntimeEnv as cj, parseDepositView as ck, parseIntentView as cl, enrichPvDepositView as cm, enrichPvIntentView as cn, type PV_DepositView as co, type PV_Deposit as cp, type PV_PaymentMethodData as cq, type PV_Currency as cr, type PV_ReferralFee as cs, type PV_IntentView as ct, type PV_Intent as cu, ZERO_RATE_MANAGER_ID as cv, isZeroRateManagerId as cw, normalizeRateManagerId as cx, normalizeRegistry as cy, getDelegationRoute as cz, type SellerCredentialAttestationRuntime as d, type AttestationServiceSellerCredentialUploadResponse as e, type GoogleOAuthSellerCredentialUploadBodyByPlatform as f, type BestByPlatformResponse as g, type ValidatePayeeDetailsResponse as h, type PostDepositDetailsResponse as i, type GetPayeeDetailsRequest as j, type GetPayeeDetailsResponse as k, type GetOwnerDepositsRequest as l, type GetOwnerDepositsResponse as m, type GetTakerTierRequest as n, type GetTakerTierResponse as o, type GetDepositBundleParams as p, type ApiAdapterOptions as q, type GetDepositBundleResponse as r, type GetOrderbookParams as s, type GetOrderbookResponse as t, type CurrencyType as u, type PaymentMethodCatalog as v, type SignalIntentReferralFee as w, type SignalIntentMethodParams as x, type CancelIntentMethodParams as y, type Zkp2pNextOptions as z };
|
|
@@ -2,7 +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,
|
|
5
|
+
import { IdentityPlatform, IdentityActionTypeByPlatform, IdentityAttestationOutputFor as IdentityAttestationOutputFor$1, IdentityParamsByPlatform } from '@zkp2p/zkp2p-attestation';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Supported fiat currency codes.
|
|
@@ -462,6 +462,7 @@ interface DepositEventsResponse$1 {
|
|
|
462
462
|
}
|
|
463
463
|
interface IntentFulfilledEntity {
|
|
464
464
|
intentHash: string;
|
|
465
|
+
amount: string;
|
|
465
466
|
isManualRelease: boolean;
|
|
466
467
|
fundsTransferredTo?: string | null;
|
|
467
468
|
}
|
|
@@ -937,6 +938,15 @@ type PrepareableMethod<TParams, TResult> = {
|
|
|
937
938
|
prepare(params: TParams): Promise<PreparedTransaction>;
|
|
938
939
|
};
|
|
939
940
|
|
|
941
|
+
type IdentityTypedDataValueFor<P extends IdentityPlatform> = IdentityAttestationOutputFor$1<P>['typedDataValue'] & {
|
|
942
|
+
callerAddress: string;
|
|
943
|
+
};
|
|
944
|
+
type IdentityAttestationOutputFor<P extends IdentityPlatform> = Omit<IdentityAttestationOutputFor$1<P>, 'typedDataValue'> & {
|
|
945
|
+
typedDataValue: IdentityTypedDataValueFor<P>;
|
|
946
|
+
};
|
|
947
|
+
type IdentityAttestationOutput = {
|
|
948
|
+
[P in IdentityPlatform]: IdentityAttestationOutputFor<P>;
|
|
949
|
+
}[IdentityPlatform];
|
|
940
950
|
/**
|
|
941
951
|
* Timeout configuration for different operation types
|
|
942
952
|
*/
|
|
@@ -1003,8 +1013,8 @@ type CuratorPayeeDataInput = {
|
|
|
1003
1013
|
type FulfillIntentParams = {
|
|
1004
1014
|
/** Hash of the intent to fulfill */
|
|
1005
1015
|
intentHash: Hash;
|
|
1006
|
-
/**
|
|
1007
|
-
proof:
|
|
1016
|
+
/** Buyer TEE payment proof input */
|
|
1017
|
+
proof: BuyerTeePaymentProofInput;
|
|
1008
1018
|
/** Optional attestation timestamp buffer override in milliseconds */
|
|
1009
1019
|
timestampBufferMs?: number | string;
|
|
1010
1020
|
/** Override the attestation service base URL */
|
|
@@ -1016,6 +1026,7 @@ type FulfillIntentParams = {
|
|
|
1016
1026
|
/** Optional lifecycle callbacks */
|
|
1017
1027
|
callbacks?: {
|
|
1018
1028
|
onAttestationStart?: () => void;
|
|
1029
|
+
onAttestationComplete?: (attestation: FulfillIntentAttestationResponse) => void;
|
|
1019
1030
|
onTxSent?: (hash: Hash) => void;
|
|
1020
1031
|
onTxMined?: (hash: Hash) => void;
|
|
1021
1032
|
};
|
|
@@ -1084,10 +1095,6 @@ type PostDepositDetailsResponse = {
|
|
|
1084
1095
|
metadata: CuratorMetadata | null;
|
|
1085
1096
|
hashedOnchainId: string;
|
|
1086
1097
|
createdAt: string;
|
|
1087
|
-
/** Per-merchant forwarding alias (PayPal multi-merchant flow) */
|
|
1088
|
-
forwardingMailboxAlias?: string | null;
|
|
1089
|
-
/** Alias surfaced by curator maker lookup (alternative field name from GET /v1/makers/paypal/<hash>) */
|
|
1090
|
-
paypalForwardingAlias?: string | null;
|
|
1091
1098
|
};
|
|
1092
1099
|
statusCode: number;
|
|
1093
1100
|
};
|
|
@@ -1129,11 +1136,6 @@ type WiseProfileNotFound = {
|
|
|
1129
1136
|
profileId: string;
|
|
1130
1137
|
profiles: WiseProfileInfo[];
|
|
1131
1138
|
};
|
|
1132
|
-
type PayPalSessionMaterial = {
|
|
1133
|
-
payeeEmail: string;
|
|
1134
|
-
forwardingBaseMailbox: string;
|
|
1135
|
-
forwardingMailboxAlias: string;
|
|
1136
|
-
};
|
|
1137
1139
|
type GoogleOAuthSellerCredentialPlatform = Extract<SellerPlatform, 'paypal' | 'venmo'>;
|
|
1138
1140
|
type PayPalGoogleOAuthSellerCredentialUploadBody = {
|
|
1139
1141
|
payeeEmail: string;
|
|
@@ -1160,17 +1162,13 @@ type CashAppCredentialUploadInput = {
|
|
|
1160
1162
|
type WiseCredentialUploadInput = {
|
|
1161
1163
|
sessionMaterial: WiseSessionMaterial;
|
|
1162
1164
|
};
|
|
1163
|
-
type PayPalCredentialUploadInput = {
|
|
1164
|
-
payeeId: string;
|
|
1165
|
-
sessionMaterial: PayPalSessionMaterial;
|
|
1166
|
-
};
|
|
1167
1165
|
type SellerCredentialUploadInputByPlatform = {
|
|
1168
1166
|
venmo: VenmoCredentialUploadInput;
|
|
1169
1167
|
cashapp: CashAppCredentialUploadInput;
|
|
1170
1168
|
wise: WiseCredentialUploadInput;
|
|
1171
|
-
paypal: PayPalCredentialUploadInput;
|
|
1172
1169
|
};
|
|
1173
|
-
type
|
|
1170
|
+
type SellerCredentialUploadPlatform = keyof SellerCredentialUploadInputByPlatform;
|
|
1171
|
+
type SellerCredentialUploadInput = SellerCredentialUploadInputByPlatform[keyof SellerCredentialUploadInputByPlatform];
|
|
1174
1172
|
type SellerCiphertextBundle = {
|
|
1175
1173
|
encryptedBlob: string;
|
|
1176
1174
|
encryptedDataKey: string;
|
|
@@ -1241,10 +1239,12 @@ type BuyerTeeSessionMaterialEncryptionInput = {
|
|
|
1241
1239
|
type MakerIdentityPlatform = Extract<IdentityPlatform, 'paypal' | 'wise'>;
|
|
1242
1240
|
type IdentityAttestationParams = IdentityParamsByPlatform[IdentityPlatform] | Record<string, string | number | boolean>;
|
|
1243
1241
|
type IdentityAttestationRequestBody = {
|
|
1242
|
+
callerAddress: string;
|
|
1244
1243
|
encryptedSessionMaterial: string;
|
|
1245
1244
|
params: IdentityAttestationParams;
|
|
1246
1245
|
};
|
|
1247
1246
|
type MakerIdentityAttestationRequestBody<P extends MakerIdentityPlatform> = {
|
|
1247
|
+
callerAddress: string;
|
|
1248
1248
|
encryptedSessionMaterial: string;
|
|
1249
1249
|
params: IdentityParamsByPlatform[P];
|
|
1250
1250
|
};
|
|
@@ -1297,6 +1297,7 @@ type AttestationServiceSellerVerifyResponse = {
|
|
|
1297
1297
|
responseObject: SellerAttestationOutput;
|
|
1298
1298
|
statusCode: number;
|
|
1299
1299
|
};
|
|
1300
|
+
type FulfillIntentAttestationResponse = AttestationServiceSellerVerifyResponse;
|
|
1300
1301
|
type AttestationServiceSellerCredentialProbeResponse = {
|
|
1301
1302
|
success: boolean;
|
|
1302
1303
|
message: string;
|
|
@@ -1321,7 +1322,7 @@ type CuratorSellerVerifyResponse = {
|
|
|
1321
1322
|
responseObject: SellerAttestationOutput;
|
|
1322
1323
|
statusCode: number;
|
|
1323
1324
|
};
|
|
1324
|
-
type RegisteredSellerCredentialPlatform = Exclude<
|
|
1325
|
+
type RegisteredSellerCredentialPlatform = Exclude<SellerCredentialUploadPlatform, 'wise'>;
|
|
1325
1326
|
type UploadSellerCredentialParams = ({
|
|
1326
1327
|
platform: 'wise';
|
|
1327
1328
|
} & WiseCredentialUploadInput) | {
|
|
@@ -1340,6 +1341,18 @@ type RegisteredUploadSellerCredentialParams = {
|
|
|
1340
1341
|
platform: P;
|
|
1341
1342
|
} & SellerCredentialUploadInputByPlatform[P];
|
|
1342
1343
|
}[RegisteredSellerCredentialPlatform];
|
|
1344
|
+
type UploadSellerCredentialBundleParams = {
|
|
1345
|
+
bundle: SellerCredentialBundleUpload;
|
|
1346
|
+
platform: 'wise';
|
|
1347
|
+
} | {
|
|
1348
|
+
[P in RegisteredSellerCredentialPlatform]: {
|
|
1349
|
+
bundle: SellerCredentialBundleUpload;
|
|
1350
|
+
offchainId: string;
|
|
1351
|
+
telegramUsername?: string | null;
|
|
1352
|
+
metadata?: CuratorMetadata | null;
|
|
1353
|
+
platform: P;
|
|
1354
|
+
};
|
|
1355
|
+
}[RegisteredSellerCredentialPlatform];
|
|
1343
1356
|
type UploadSellerCredentialOptions = {
|
|
1344
1357
|
baseApiUrl?: string;
|
|
1345
1358
|
attestationServiceUrl?: string;
|
|
@@ -1350,21 +1363,6 @@ type GetSellerCredentialStatusParams = {
|
|
|
1350
1363
|
processorName: SellerPlatform;
|
|
1351
1364
|
payeeDetails: Hash;
|
|
1352
1365
|
};
|
|
1353
|
-
type PayPalForwardingConfirmationErrorCode = 'paypal_forwarding_confirmation_not_found' | 'paypal_forwarding_initiator_email_mismatch' | 'paypal_forwarding_confirmation_expired' | 'paypal_forwarding_confirmation_rejected';
|
|
1354
|
-
type ConfirmPayPalForwardingRequest = {
|
|
1355
|
-
payeeDetails: Hash;
|
|
1356
|
-
payeeEmail: string;
|
|
1357
|
-
forwardingInitiatorEmail: string;
|
|
1358
|
-
};
|
|
1359
|
-
type ConfirmPayPalForwardingStatus = Omit<SellerCredentialStatus, 'payeeIdHash'> & {
|
|
1360
|
-
payeeIdHash?: Hash;
|
|
1361
|
-
};
|
|
1362
|
-
type ConfirmPayPalForwardingResponse = {
|
|
1363
|
-
success: boolean;
|
|
1364
|
-
message: string;
|
|
1365
|
-
responseObject: ConfirmPayPalForwardingStatus;
|
|
1366
|
-
statusCode: number;
|
|
1367
|
-
};
|
|
1368
1366
|
type GoogleOAuthSellerCredentialBaseParams = {
|
|
1369
1367
|
authorizationCode: string;
|
|
1370
1368
|
payeeDetails: Hash;
|
|
@@ -1601,8 +1599,6 @@ type GetPayeeDetailsResponse = {
|
|
|
1601
1599
|
metadata: CuratorMetadata | null;
|
|
1602
1600
|
hashedOnchainId: string;
|
|
1603
1601
|
createdAt: string;
|
|
1604
|
-
/** Per-merchant forwarding alias surfaced on maker lookup (PayPal multi-merchant flow) */
|
|
1605
|
-
paypalForwardingAlias?: string | null;
|
|
1606
1602
|
};
|
|
1607
1603
|
statusCode: number;
|
|
1608
1604
|
};
|
|
@@ -2031,8 +2027,8 @@ type CancelIntentMethodParams = {
|
|
|
2031
2027
|
type FulfillIntentMethodParams = {
|
|
2032
2028
|
/** The intent hash to fulfill (0x-prefixed, 32 bytes) */
|
|
2033
2029
|
intentHash: `0x${string}`;
|
|
2034
|
-
/**
|
|
2035
|
-
proof:
|
|
2030
|
+
/** Buyer TEE payment proof input */
|
|
2031
|
+
proof: BuyerTeePaymentProofInput;
|
|
2036
2032
|
/** Allowed timestamp variance in ms (default: 300000ms) */
|
|
2037
2033
|
timestampBufferMs?: string;
|
|
2038
2034
|
/** Override attestation service URL */
|
|
@@ -2046,6 +2042,7 @@ type FulfillIntentMethodParams = {
|
|
|
2046
2042
|
/** Lifecycle callbacks for UI updates */
|
|
2047
2043
|
callbacks?: {
|
|
2048
2044
|
onAttestationStart?: () => void;
|
|
2045
|
+
onAttestationComplete?: (attestation: FulfillIntentAttestationResponse) => void;
|
|
2049
2046
|
onTxSent?: (hash: Hash) => void;
|
|
2050
2047
|
onTxMined?: (hash: Hash) => void;
|
|
2051
2048
|
};
|
|
@@ -2389,7 +2386,9 @@ declare class Zkp2pClient {
|
|
|
2389
2386
|
* { limit: 50, orderBy: 'remainingDeposits', orderDirection: 'desc' }
|
|
2390
2387
|
* );
|
|
2391
2388
|
*
|
|
2392
|
-
* // Get historical fulfillment data
|
|
2389
|
+
* // Get historical fulfillment event data. Use `amount` for net USDC
|
|
2390
|
+
* // transferred to the taker; use getIntentFulfillmentAmounts() when you
|
|
2391
|
+
* // also need gross released USDC.
|
|
2393
2392
|
* const fulfillments = await client.indexer.getFulfilledIntentEvents(['0x...']);
|
|
2394
2393
|
* ```
|
|
2395
2394
|
*/
|
|
@@ -2441,11 +2440,13 @@ declare class Zkp2pClient {
|
|
|
2441
2440
|
limit?: number;
|
|
2442
2441
|
}) => Promise<IntentEntity$1[]>;
|
|
2443
2442
|
/**
|
|
2444
|
-
* Fetches fulfillment events for completed intents.
|
|
2443
|
+
* Fetches fulfillment events for completed intents. `amount` is the net
|
|
2444
|
+
* USDC transferred to the taker after protocol/referrer fees.
|
|
2445
2445
|
*/
|
|
2446
2446
|
getFulfilledIntentEvents: (intentHashes: string[]) => Promise<IntentFulfilledEntity[]>;
|
|
2447
2447
|
/**
|
|
2448
|
-
* Fetches gross and net fulfillment amounts for an intent.
|
|
2448
|
+
* Fetches gross and net fulfillment amounts for an intent. Use
|
|
2449
|
+
* `takerAmountNetFees` as the buyer/taker received USDC amount.
|
|
2449
2450
|
*/
|
|
2450
2451
|
getIntentFulfillmentAmounts: (intentHash: string) => Promise<IntentFulfillmentAmountsEntity | null>;
|
|
2451
2452
|
/**
|
|
@@ -3332,7 +3333,7 @@ declare class Zkp2pClient {
|
|
|
3332
3333
|
* ```
|
|
3333
3334
|
*
|
|
3334
3335
|
* @param params.intentHash - The intent hash to fulfill (0x-prefixed, 32 bytes)
|
|
3335
|
-
* @param params.proof -
|
|
3336
|
+
* @param params.proof - Buyer TEE payment proof input
|
|
3336
3337
|
* @param params.timestampBufferMs - Allowed timestamp variance (default: 300000ms)
|
|
3337
3338
|
* @param params.attestationServiceUrl - Override attestation service URL
|
|
3338
3339
|
* @param params.postIntentHookData - Data to pass to post-intent hook
|
|
@@ -3449,16 +3450,12 @@ declare class Zkp2pClient {
|
|
|
3449
3450
|
*/
|
|
3450
3451
|
uploadSellerCredential(params: UploadSellerCredentialParams, opts?: UploadSellerCredentialOptions): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3451
3452
|
/**
|
|
3452
|
-
*
|
|
3453
|
-
*
|
|
3454
|
-
* Uses curator's `/forwarding-confirmation` route and forwards both API key and
|
|
3455
|
-
* bearer token so either auth strategy can satisfy the hybrid gate. The endpoint
|
|
3456
|
-
* is rate-limited server-side; callers should surface retry guidance from APIError.
|
|
3453
|
+
* Store an already-encrypted seller credential bundle with curator.
|
|
3457
3454
|
*/
|
|
3458
|
-
|
|
3455
|
+
uploadSellerCredentialBundle(params: UploadSellerCredentialBundleParams, opts?: {
|
|
3459
3456
|
baseApiUrl?: string;
|
|
3460
3457
|
timeoutMs?: number;
|
|
3461
|
-
}): Promise<
|
|
3458
|
+
}): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3462
3459
|
/**
|
|
3463
3460
|
* Upload a seller Gmail OAuth authorization code through curator.
|
|
3464
3461
|
*
|
|
@@ -3655,4 +3652,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
3655
3652
|
value?: bigint;
|
|
3656
3653
|
}>) => Promise<string>;
|
|
3657
3654
|
|
|
3658
|
-
export { type
|
|
3655
|
+
export { type GetBestByPlatformResponse as $, type AttestationServiceIdentityResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type AuthorizationTokenProvider as E, type FulfillIntentMethodParams as F, type GoogleOAuthSellerCredentialPlatform as G, type TimeoutConfig as H, type IntentEntity$1 as I, type ActionCallback as J, type CreateDepositParams as K, type CreateDepositConversionRate as L, type Range as M, type SignalIntentParams as N, type FulfillIntentParams 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 ReleaseFundsToPayerParams as X, type CancelIntentParams as Y, Zkp2pClient as Z, type BestByPlatformResponseObject as _, type IdentityAttestationRequestBody as a, type AttestationServiceSellerCredentialProbeResponse as a$, type GetBestByPlatformResponseObject as a0, type GetPlatformQuote as a1, type PlatformQuote as a2, type QuoteRequest as a3, type GetNearbyQuote as a4, type GetNearbySuggestions as a5, type GetQuoteResponse as a6, type GetQuoteResponseObject as a7, type GetQuoteSingleResponse as a8, type QuoteResponse as a9, type CashAppSessionMaterial as aA, type WiseSessionMaterial as aB, type WiseProfileInfo as aC, type WiseProfileSelectionRequired as aD, type WiseProfileNotFound as aE, type PayPalGoogleOAuthSellerCredentialUploadBody as aF, type VenmoGoogleOAuthSellerCredentialUploadBody as aG, type VenmoCredentialUploadInput as aH, type CashAppCredentialUploadInput as aI, type WiseCredentialUploadInput as aJ, type SellerCredentialUploadInputByPlatform as aK, type SellerCiphertextBundle as aL, type SellerSignedCiphertextBundle as aM, type SellerVerifyIntentDetails as aN, type SellerVerifyInput as aO, type SellerProbeInput as aP, type SellerCredentialBundleUpload as aQ, type SellerCredentialStatusValue as aR, type SellerCredentialStatus as aS, type SellerVerifyProxyBody as aT, type SellerTypedDataField as aU, type SellerTypedDataSpec as aV, type SellerPaymentTypedDataValue as aW, type SellerAttestationOutput as aX, type SellerCredentialProbeResponse as aY, type AttestationServiceSellerVerifyResponse as aZ, type FulfillIntentAttestationResponse as a_, type QuoteResponseObject as aa, type QuoteSingleResponse as ab, type QuoteIntentResponse as ac, type QuoteFeesResponse as ad, type FiatResponse as ae, type TokenResponse as af, type NearbyQuote as ag, type NearbySuggestions as ah, type ApiDeposit as ai, type DepositVerifier as aj, type DepositVerifierCurrency as ak, type DepositStatus as al, type GetDepositByIdRequest as am, type GetDepositByIdResponse as an, type Intent as ao, type ApiIntentStatus as ap, type GetOwnerIntentsRequest as aq, type GetOwnerIntentsResponse as ar, type GetIntentsByDepositRequest as as, type GetIntentsByDepositResponse as at, type GetIntentByHashRequest as au, type GetIntentByHashResponse as av, type RegisterPayeeDetailsRequest as aw, type RegisterPayeeDetailsResponse as ax, type SellerPlatform as ay, type VenmoSessionMaterial as az, type SellerCredentialUploadInput as b, type RateManagerOrderField as b$, type BuyerTeePaymentParams as b0, type BuyerTeePaymentProofInput as b1, type BuyerTeeSessionMaterial as b2, type CuratorSellerCredentialStatusResponse as b3, type CuratorSellerVerifyResponse as b4, type RegisteredSellerCredentialPlatform as b5, type UploadSellerCredentialParams as b6, type RegisteredUploadSellerCredentialParams as b7, type UploadSellerCredentialOptions as b8, type GetSellerCredentialStatusParams as b9, fetchFulfillmentAndPayment as bA, type DepositEntity$1 as bB, type IntentFulfilledEntity as bC, type IntentFulfillmentAmountsEntity as bD, type DepositPaymentMethodEntity$1 as bE, type MethodCurrencyEntity$1 as bF, type IntentStatus as bG, type RateManagerEntity as bH, type RateManagerRateEntity as bI, type RateManagerDelegationEntity as bJ, type ManagerAggregateStatsEntity as bK, type ManagerStatsEntity as bL, type ManagerDailySnapshotEntity as bM, type RateManagerListItem as bN, type RateManagerDetail as bO, type ManualRateUpdateEntity as bP, type OracleConfigUpdateEntity as bQ, type DepositFundActivityEntity$1 as bR, type DepositDailySnapshotEntity$1 as bS, type DepositFundActivityType$1 as bT, type DepositFilter as bU, type PaginationOptions as bV, type DepositOrderField as bW, type OrderDirection$1 as bX, type RateManagerFilter as bY, type RateManagerPaginationOptions as bZ, type RateManagerDelegationPaginationOptions as b_, type UploadPayPalGoogleOAuthSellerCredentialParams as ba, type UploadVenmoGoogleOAuthSellerCredentialParams as bb, type UploadGoogleOAuthSellerCredentialParams as bc, type VerifySellerPaymentParams as bd, type IdentityAttestationActionType as be, type IdentityAttestationOutput as bf, type IdentityAttestationOutputFor as bg, type IdentityAttestationParams as bh, type MakerIdentityAttestationRequestBody as bi, type MakerIdentityPlatform as bj, type OnchainCurrency as bk, type DepositVerifierData as bl, type PreparedTransaction as bm, type OrderStats as bn, type DepositIntentStatistics as bo, type TakerTier as bp, type TakerTierStats as bq, type TakerTierLevel as br, type PlatformLimit as bs, type PlatformRiskLevel as bt, type OrderbookEntry as bu, IndexerClient as bv, defaultIndexerEndpoint as bw, IndexerDepositService as bx, IndexerRateManagerService as by, compareEventCursorIdsByRecency as bz, type SellerCredentialUploadPlatform as c, type OrderDirection as c0, type DeploymentEnv as c1, type FulfillmentRecord as c2, type PaymentVerifiedRecord as c3, type FulfillmentAndPaymentResponse as c4, PAYMENT_PLATFORMS as c5, type PaymentPlatformType as c6, Currency as c7, currencyInfo as c8, getCurrencyInfoFromHash as c9, classifyDelegationState as cA, type DelegationRoute as cB, type DelegationState as cC, type DelegationDepositTarget as cD, type BatchResult as cE, type SendTransactionFn as cF, type SendBatchFn as cG, ZERO_ADDRESS as cH, asErrorMessage as cI, assertDelegationMethodSupport as cJ, getCurrencyInfoFromCountryCode as ca, getCurrencyCodeFromHash as cb, isSupportedCurrencyHash as cc, mapConversionRatesToOnchainMinRate as cd, type CurrencyData as ce, getContracts as cf, getRateManagerContracts as cg, getPaymentMethodsCatalog as ch, getGatingServiceAddress as ci, type RuntimeEnv as cj, parseDepositView as ck, parseIntentView as cl, enrichPvDepositView as cm, enrichPvIntentView as cn, type PV_DepositView as co, type PV_Deposit as cp, type PV_PaymentMethodData as cq, type PV_Currency as cr, type PV_ReferralFee as cs, type PV_IntentView as ct, type PV_Intent as cu, ZERO_RATE_MANAGER_ID as cv, isZeroRateManagerId as cw, normalizeRateManagerId as cx, normalizeRegistry as cy, getDelegationRoute as cz, type SellerCredentialAttestationRuntime as d, type AttestationServiceSellerCredentialUploadResponse as e, type GoogleOAuthSellerCredentialUploadBodyByPlatform as f, type BestByPlatformResponse as g, type ValidatePayeeDetailsResponse as h, type PostDepositDetailsResponse as i, type GetPayeeDetailsRequest as j, type GetPayeeDetailsResponse as k, type GetOwnerDepositsRequest as l, type GetOwnerDepositsResponse as m, type GetTakerTierRequest as n, type GetTakerTierResponse as o, type GetDepositBundleParams as p, type ApiAdapterOptions as q, type GetDepositBundleResponse as r, type GetOrderbookParams as s, type GetOrderbookResponse as t, type CurrencyType as u, type PaymentMethodCatalog as v, type SignalIntentReferralFee as w, type SignalIntentMethodParams as x, type CancelIntentMethodParams as y, type Zkp2pNextOptions as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkp2p/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.2",
|
|
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.5.1",
|
|
93
93
|
"ethers": "^6.0.0",
|
|
94
94
|
"ox": "^0.11.1"
|
|
95
95
|
},
|