@zkp2p/sdk 0.3.2 → 0.4.0-rc.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 +58 -1
- package/dist/{chunk-JRDFLSA7.mjs → chunk-L526MKG3.mjs} +641 -149
- package/dist/chunk-L526MKG3.mjs.map +1 -0
- package/dist/index.cjs +858 -295
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -25
- package/dist/index.d.ts +17 -25
- package/dist/index.mjs +89 -32
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-GGSM2243.mjs +5 -0
- package/dist/{protocolViewerParsers-CQSES3QX.mjs.map → protocolViewerParsers-GGSM2243.mjs.map} +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{vaultUtils-C-9Z50Ak.d.mts → vaultUtils-BBdtW9in.d.mts} +25 -13
- package/dist/{vaultUtils-C-9Z50Ak.d.ts → vaultUtils-BBdtW9in.d.ts} +25 -13
- package/package.json +3 -2
- package/dist/chunk-JRDFLSA7.mjs.map +0 -1
- package/dist/protocolViewerParsers-CQSES3QX.mjs +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { enrichPvDepositView, enrichPvIntentView, parseDepositView, parseIntentView } from './chunk-L526MKG3.mjs';
|
|
2
|
+
import './chunk-ZFBH4HD7.mjs';
|
|
3
|
+
import './chunk-J5LGTIGS.mjs';
|
|
4
|
+
//# sourceMappingURL=protocolViewerParsers-GGSM2243.mjs.map
|
|
5
|
+
//# sourceMappingURL=protocolViewerParsers-GGSM2243.mjs.map
|
package/dist/{protocolViewerParsers-CQSES3QX.mjs.map → protocolViewerParsers-GGSM2243.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"protocolViewerParsers-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"protocolViewerParsers-GGSM2243.mjs"}
|
package/dist/react.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, m as SignalIntentMethodParams,
|
|
2
|
-
export {
|
|
1
|
+
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, m as SignalIntentMethodParams, aX as PreparedTransaction, a_ as TakerTier, f as GetTakerTierRequest, g as GetTakerTierResponse, F as FulfillIntentMethodParams, ce as SendTransactionFn, cf as SendBatchFn, cc as DelegationDepositTarget, cd as BatchResult } from './vaultUtils-BBdtW9in.mjs';
|
|
2
|
+
export { ca as DelegationRoute, cb as DelegationState, cg as VAULT_ZERO_ADDRESS, c4 as ZERO_RATE_MANAGER_ID, ch as asErrorMessage, ci as assertDelegationMethodSupport, c9 as classifyDelegationState, c8 as getDelegationRoute, c5 as isZeroRateManagerId, c6 as normalizeRateManagerId, c7 as normalizeRegistry } from './vaultUtils-BBdtW9in.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, m as SignalIntentMethodParams,
|
|
2
|
-
export {
|
|
1
|
+
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, m as SignalIntentMethodParams, aX as PreparedTransaction, a_ as TakerTier, f as GetTakerTierRequest, g as GetTakerTierResponse, F as FulfillIntentMethodParams, ce as SendTransactionFn, cf as SendBatchFn, cc as DelegationDepositTarget, cd as BatchResult } from './vaultUtils-BBdtW9in.js';
|
|
2
|
+
export { ca as DelegationRoute, cb as DelegationState, cg as VAULT_ZERO_ADDRESS, c4 as ZERO_RATE_MANAGER_ID, ch as asErrorMessage, ci as assertDelegationMethodSupport, c9 as classifyDelegationState, c8 as getDelegationRoute, c5 as isZeroRateManagerId, c6 as normalizeRateManagerId, c7 as normalizeRegistry } from './vaultUtils-BBdtW9in.js';
|
|
3
3
|
import { Hash, Address, Hex } from 'viem';
|
|
4
4
|
import '@zkp2p/indexer-schema';
|
|
5
5
|
import 'abitype';
|
|
@@ -1161,12 +1161,16 @@ type SellerCredentialBundle = SellerSignedCiphertextBundle & {
|
|
|
1161
1161
|
type SellerCredentialBundleUpload = SellerCredentialBundle;
|
|
1162
1162
|
type SellerCredentialStatusValue = 'active' | 'inactive' | 'missing';
|
|
1163
1163
|
type SellerCredentialStatus = {
|
|
1164
|
-
makerId: number;
|
|
1165
1164
|
platform: string;
|
|
1166
1165
|
payeeIdHash: Hash;
|
|
1167
1166
|
status: SellerCredentialStatusValue;
|
|
1168
1167
|
credentialType: string | null;
|
|
1169
1168
|
};
|
|
1169
|
+
type SellerCredentialAttestationRuntime = {
|
|
1170
|
+
fetch?: typeof fetch;
|
|
1171
|
+
subtle?: SubtleCrypto;
|
|
1172
|
+
getRandomValues?: (out: Uint8Array) => Uint8Array;
|
|
1173
|
+
};
|
|
1170
1174
|
type SellerVerifyProxyBody = {
|
|
1171
1175
|
txId: string;
|
|
1172
1176
|
chainId: number;
|
|
@@ -1244,8 +1248,15 @@ type UploadSellerCredentialParams = {
|
|
|
1244
1248
|
platform: P;
|
|
1245
1249
|
} & SellerCredentialUploadInputByPlatform[P];
|
|
1246
1250
|
}[SellerPlatform];
|
|
1251
|
+
type UploadSellerCredentialOptions = {
|
|
1252
|
+
baseApiUrl?: string;
|
|
1253
|
+
attestationServiceUrl?: string;
|
|
1254
|
+
timeoutMs?: number;
|
|
1255
|
+
attestationRuntime?: SellerCredentialAttestationRuntime;
|
|
1256
|
+
};
|
|
1247
1257
|
type GetSellerCredentialStatusParams = {
|
|
1248
|
-
|
|
1258
|
+
processorName: SellerPlatform;
|
|
1259
|
+
payeeDetails: Hash;
|
|
1249
1260
|
};
|
|
1250
1261
|
type VerifySellerPaymentParams = {
|
|
1251
1262
|
platform: SellerPlatform;
|
|
@@ -1338,6 +1349,14 @@ type QuoteSingleResponse = {
|
|
|
1338
1349
|
fiatAmountFormatted: string;
|
|
1339
1350
|
tokenAmount: string;
|
|
1340
1351
|
tokenAmountFormatted: string;
|
|
1352
|
+
signalIntentAmount?: string;
|
|
1353
|
+
signalIntentAmountFormatted?: string;
|
|
1354
|
+
zkp2pFeeAmount?: string;
|
|
1355
|
+
zkp2pFeeAmountFormatted?: string;
|
|
1356
|
+
managerFeeAmount?: string;
|
|
1357
|
+
managerFeeAmountFormatted?: string;
|
|
1358
|
+
totalFeeAmount?: string;
|
|
1359
|
+
totalFeeAmountFormatted?: string;
|
|
1341
1360
|
paymentMethod: string;
|
|
1342
1361
|
payeeAddress: string;
|
|
1343
1362
|
conversionRate: string;
|
|
@@ -1349,9 +1368,6 @@ type GetQuoteSingleResponse = QuoteSingleResponse & {
|
|
|
1349
1368
|
referrerFeeAmount?: string;
|
|
1350
1369
|
referrerFeeAmountFormatted?: string;
|
|
1351
1370
|
referrerFeeBps?: number;
|
|
1352
|
-
/** Gross token amount to use when calling signalIntent with the same fee config */
|
|
1353
|
-
signalIntentAmount?: string;
|
|
1354
|
-
signalIntentAmountFormatted?: string;
|
|
1355
1371
|
};
|
|
1356
1372
|
type QuoteFeesResponse = {
|
|
1357
1373
|
zkp2pFee: string;
|
|
@@ -3304,19 +3320,15 @@ declare class Zkp2pClient {
|
|
|
3304
3320
|
*
|
|
3305
3321
|
* Create a signed seller credential bundle with attestation-service and store it on the maker via curator.
|
|
3306
3322
|
*/
|
|
3307
|
-
uploadSellerCredential(params: UploadSellerCredentialParams, opts?:
|
|
3308
|
-
baseApiUrl?: string;
|
|
3309
|
-
attestationServiceUrl?: string;
|
|
3310
|
-
timeoutMs?: number;
|
|
3311
|
-
}): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3323
|
+
uploadSellerCredential(params: UploadSellerCredentialParams, opts?: UploadSellerCredentialOptions): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3312
3324
|
/**
|
|
3313
3325
|
* Status is a coarse curator-owned signal (`active` / `inactive` / `missing`) and intentionally
|
|
3314
3326
|
* omits low-level diagnostics. Curator may still re-probe stale credentials during verify, so callers
|
|
3315
3327
|
* should continue to handle a 410 from `verifySellerPayment`.
|
|
3316
3328
|
*
|
|
3317
|
-
*
|
|
3329
|
+
* The curator status endpoint is public and keyed by platform plus hashed payee details.
|
|
3318
3330
|
*
|
|
3319
|
-
* Fetch seller credential status for a maker from curator.
|
|
3331
|
+
* Fetch seller credential status for a maker identity from curator.
|
|
3320
3332
|
*/
|
|
3321
3333
|
getSellerCredentialStatus(params: GetSellerCredentialStatusParams, opts?: {
|
|
3322
3334
|
baseApiUrl?: string;
|
|
@@ -3495,4 +3507,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
3495
3507
|
value?: bigint;
|
|
3496
3508
|
}>) => Promise<string>;
|
|
3497
3509
|
|
|
3498
|
-
export { type QuoteSingleResponse as $, type ApiAdapterOptions as A, type BestByPlatformResponse as B, type CurrencyType as C, type DepositWithRelations as D, type GetBestByPlatformResponse as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type GetBestByPlatformResponseObject as H, type IntentEntity$1 as I, type GetPlatformQuote as J, type PlatformQuote as K, type QuoteRequest as L, type GetNearbyQuote as M, type GetNearbySuggestions as N, type GetQuoteResponse as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SignalIntentReferralFee as S, type TxOverrides as T, type GetQuoteResponseObject as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetQuoteSingleResponse as X, type QuoteResponse as Y, Zkp2pClient as Z, type QuoteResponseObject as _, type ValidatePayeeDetailsResponse as a, type
|
|
3510
|
+
export { type QuoteSingleResponse as $, type ApiAdapterOptions as A, type BestByPlatformResponse as B, type CurrencyType as C, type DepositWithRelations as D, type GetBestByPlatformResponse as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type GetBestByPlatformResponseObject as H, type IntentEntity$1 as I, type GetPlatformQuote as J, type PlatformQuote as K, type QuoteRequest as L, type GetNearbyQuote as M, type GetNearbySuggestions as N, type GetQuoteResponse as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SignalIntentReferralFee as S, type TxOverrides as T, type GetQuoteResponseObject as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetQuoteSingleResponse as X, type QuoteResponse as Y, Zkp2pClient as Z, type QuoteResponseObject as _, type ValidatePayeeDetailsResponse as a, type TakerTierStats as a$, type QuoteIntentResponse as a0, type QuoteFeesResponse as a1, type FiatResponse as a2, type TokenResponse as a3, type NearbyQuote as a4, type NearbySuggestions as a5, type ApiDeposit as a6, type DepositVerifier as a7, type DepositVerifierCurrency as a8, type DepositStatus as a9, type SellerCredentialBundle as aA, type SellerCredentialBundleUpload as aB, type SellerCredentialStatusValue as aC, type SellerCredentialStatus as aD, type SellerVerifyProxyBody as aE, type SellerTypedDataField as aF, type SellerTypedDataSpec as aG, type SellerPaymentTypedDataValue as aH, type SellerAttestationOutput as aI, type SellerCredentialProbeResponse as aJ, type AttestationServiceSellerCredentialUploadResponse as aK, type AttestationServiceSellerVerifyResponse as aL, type AttestationServiceSellerCredentialProbeResponse as aM, type CuratorSellerCredentialUploadResponse as aN, type CuratorSellerCredentialStatusResponse as aO, type CuratorSellerVerifyResponse as aP, type UploadSellerCredentialParams as aQ, type UploadSellerCredentialOptions as aR, type SellerCredentialAttestationRuntime as aS, type GetSellerCredentialStatusParams as aT, type VerifySellerPaymentParams as aU, type OnchainCurrency as aV, type DepositVerifierData as aW, type PreparedTransaction as aX, type OrderStats as aY, type DepositIntentStatistics as aZ, type TakerTier as a_, type GetDepositByIdRequest as aa, type GetDepositByIdResponse as ab, type Intent as ac, type ApiIntentStatus as ad, type GetOwnerIntentsRequest as ae, type GetOwnerIntentsResponse as af, type GetIntentsByDepositRequest as ag, type GetIntentsByDepositResponse as ah, type GetIntentByHashRequest as ai, type GetIntentByHashResponse as aj, type RegisterPayeeDetailsRequest as ak, type RegisterPayeeDetailsResponse as al, type SellerPlatform as am, type VenmoSessionMaterial as an, type CashAppSessionMaterial as ao, type WiseSessionMaterial as ap, type VenmoCredentialUploadInput as aq, type CashAppCredentialUploadInput as ar, type WiseCredentialUploadInput as as, type SellerCredentialUploadInputByPlatform as at, type SellerCredentialUploadInput as au, type SellerCiphertextBundle as av, type SellerSignedCiphertextBundle as aw, type SellerVerifyIntentDetails as ax, type SellerVerifyInput as ay, type SellerProbeInput as az, type PostDepositDetailsResponse as b, type PV_PaymentMethodData as b$, type TakerTierLevel as b0, type PlatformLimit as b1, type PlatformRiskLevel as b2, type OrderbookEntry as b3, IndexerClient as b4, defaultIndexerEndpoint as b5, IndexerDepositService as b6, IndexerRateManagerService as b7, compareEventCursorIdsByRecency as b8, fetchFulfillmentAndPayment as b9, type RateManagerOrderField as bA, type OrderDirection as bB, type DeploymentEnv as bC, type FulfillmentRecord as bD, type PaymentVerifiedRecord as bE, type FulfillmentAndPaymentResponse as bF, PAYMENT_PLATFORMS as bG, type PaymentPlatformType as bH, Currency as bI, currencyInfo as bJ, getCurrencyInfoFromHash as bK, getCurrencyInfoFromCountryCode as bL, getCurrencyCodeFromHash as bM, isSupportedCurrencyHash as bN, mapConversionRatesToOnchainMinRate as bO, type CurrencyData as bP, getContracts as bQ, getRateManagerContracts as bR, getPaymentMethodsCatalog as bS, getGatingServiceAddress as bT, type RuntimeEnv as bU, parseDepositView as bV, parseIntentView as bW, enrichPvDepositView as bX, enrichPvIntentView as bY, type PV_DepositView as bZ, type PV_Deposit as b_, type DepositEntity$1 as ba, type IntentFulfilledEntity as bb, type IntentFulfillmentAmountsEntity as bc, type DepositPaymentMethodEntity$1 as bd, type MethodCurrencyEntity$1 as be, type IntentStatus as bf, type RateManagerEntity as bg, type RateManagerRateEntity as bh, type RateManagerDelegationEntity as bi, type ManagerAggregateStatsEntity as bj, type ManagerStatsEntity as bk, type ManagerDailySnapshotEntity as bl, type RateManagerListItem as bm, type RateManagerDetail as bn, type ManualRateUpdateEntity as bo, type OracleConfigUpdateEntity as bp, type DepositFundActivityEntity$1 as bq, type DepositDailySnapshotEntity$1 as br, type DepositFundActivityType$1 as bs, type DepositFilter as bt, type PaginationOptions as bu, type DepositOrderField as bv, type OrderDirection$1 as bw, type RateManagerFilter as bx, type RateManagerPaginationOptions as by, type RateManagerDelegationPaginationOptions as bz, type GetPayeeDetailsResponse as c, type PV_Currency as c0, type PV_ReferralFee as c1, type PV_IntentView as c2, type PV_Intent as c3, ZERO_RATE_MANAGER_ID as c4, isZeroRateManagerId as c5, normalizeRateManagerId as c6, normalizeRegistry as c7, getDelegationRoute as c8, classifyDelegationState as c9, type DelegationRoute as ca, type DelegationState as cb, type DelegationDepositTarget as cc, type BatchResult as cd, type SendTransactionFn as ce, type SendBatchFn as cf, ZERO_ADDRESS as cg, asErrorMessage as ch, assertDelegationMethodSupport as ci, type GetOwnerDepositsRequest as d, type GetOwnerDepositsResponse as e, type GetTakerTierRequest as f, type GetTakerTierResponse as g, type GetDepositBundleParams as h, type GetDepositBundleResponse as i, type GetOrderbookParams as j, type GetOrderbookResponse as k, type PaymentMethodCatalog as l, type SignalIntentMethodParams as m, type CancelIntentMethodParams as n, type Zkp2pNextOptions as o, type AuthorizationTokenProvider as p, type TimeoutConfig as q, type ActionCallback as r, type CreateDepositParams as s, type CreateDepositConversionRate as t, type Range as u, type SignalIntentParams as v, type FulfillIntentParams as w, type ReleaseFundsToPayerParams as x, type CancelIntentParams as y, type BestByPlatformResponseObject as z };
|
|
@@ -1161,12 +1161,16 @@ type SellerCredentialBundle = SellerSignedCiphertextBundle & {
|
|
|
1161
1161
|
type SellerCredentialBundleUpload = SellerCredentialBundle;
|
|
1162
1162
|
type SellerCredentialStatusValue = 'active' | 'inactive' | 'missing';
|
|
1163
1163
|
type SellerCredentialStatus = {
|
|
1164
|
-
makerId: number;
|
|
1165
1164
|
platform: string;
|
|
1166
1165
|
payeeIdHash: Hash;
|
|
1167
1166
|
status: SellerCredentialStatusValue;
|
|
1168
1167
|
credentialType: string | null;
|
|
1169
1168
|
};
|
|
1169
|
+
type SellerCredentialAttestationRuntime = {
|
|
1170
|
+
fetch?: typeof fetch;
|
|
1171
|
+
subtle?: SubtleCrypto;
|
|
1172
|
+
getRandomValues?: (out: Uint8Array) => Uint8Array;
|
|
1173
|
+
};
|
|
1170
1174
|
type SellerVerifyProxyBody = {
|
|
1171
1175
|
txId: string;
|
|
1172
1176
|
chainId: number;
|
|
@@ -1244,8 +1248,15 @@ type UploadSellerCredentialParams = {
|
|
|
1244
1248
|
platform: P;
|
|
1245
1249
|
} & SellerCredentialUploadInputByPlatform[P];
|
|
1246
1250
|
}[SellerPlatform];
|
|
1251
|
+
type UploadSellerCredentialOptions = {
|
|
1252
|
+
baseApiUrl?: string;
|
|
1253
|
+
attestationServiceUrl?: string;
|
|
1254
|
+
timeoutMs?: number;
|
|
1255
|
+
attestationRuntime?: SellerCredentialAttestationRuntime;
|
|
1256
|
+
};
|
|
1247
1257
|
type GetSellerCredentialStatusParams = {
|
|
1248
|
-
|
|
1258
|
+
processorName: SellerPlatform;
|
|
1259
|
+
payeeDetails: Hash;
|
|
1249
1260
|
};
|
|
1250
1261
|
type VerifySellerPaymentParams = {
|
|
1251
1262
|
platform: SellerPlatform;
|
|
@@ -1338,6 +1349,14 @@ type QuoteSingleResponse = {
|
|
|
1338
1349
|
fiatAmountFormatted: string;
|
|
1339
1350
|
tokenAmount: string;
|
|
1340
1351
|
tokenAmountFormatted: string;
|
|
1352
|
+
signalIntentAmount?: string;
|
|
1353
|
+
signalIntentAmountFormatted?: string;
|
|
1354
|
+
zkp2pFeeAmount?: string;
|
|
1355
|
+
zkp2pFeeAmountFormatted?: string;
|
|
1356
|
+
managerFeeAmount?: string;
|
|
1357
|
+
managerFeeAmountFormatted?: string;
|
|
1358
|
+
totalFeeAmount?: string;
|
|
1359
|
+
totalFeeAmountFormatted?: string;
|
|
1341
1360
|
paymentMethod: string;
|
|
1342
1361
|
payeeAddress: string;
|
|
1343
1362
|
conversionRate: string;
|
|
@@ -1349,9 +1368,6 @@ type GetQuoteSingleResponse = QuoteSingleResponse & {
|
|
|
1349
1368
|
referrerFeeAmount?: string;
|
|
1350
1369
|
referrerFeeAmountFormatted?: string;
|
|
1351
1370
|
referrerFeeBps?: number;
|
|
1352
|
-
/** Gross token amount to use when calling signalIntent with the same fee config */
|
|
1353
|
-
signalIntentAmount?: string;
|
|
1354
|
-
signalIntentAmountFormatted?: string;
|
|
1355
1371
|
};
|
|
1356
1372
|
type QuoteFeesResponse = {
|
|
1357
1373
|
zkp2pFee: string;
|
|
@@ -3304,19 +3320,15 @@ declare class Zkp2pClient {
|
|
|
3304
3320
|
*
|
|
3305
3321
|
* Create a signed seller credential bundle with attestation-service and store it on the maker via curator.
|
|
3306
3322
|
*/
|
|
3307
|
-
uploadSellerCredential(params: UploadSellerCredentialParams, opts?:
|
|
3308
|
-
baseApiUrl?: string;
|
|
3309
|
-
attestationServiceUrl?: string;
|
|
3310
|
-
timeoutMs?: number;
|
|
3311
|
-
}): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3323
|
+
uploadSellerCredential(params: UploadSellerCredentialParams, opts?: UploadSellerCredentialOptions): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3312
3324
|
/**
|
|
3313
3325
|
* Status is a coarse curator-owned signal (`active` / `inactive` / `missing`) and intentionally
|
|
3314
3326
|
* omits low-level diagnostics. Curator may still re-probe stale credentials during verify, so callers
|
|
3315
3327
|
* should continue to handle a 410 from `verifySellerPayment`.
|
|
3316
3328
|
*
|
|
3317
|
-
*
|
|
3329
|
+
* The curator status endpoint is public and keyed by platform plus hashed payee details.
|
|
3318
3330
|
*
|
|
3319
|
-
* Fetch seller credential status for a maker from curator.
|
|
3331
|
+
* Fetch seller credential status for a maker identity from curator.
|
|
3320
3332
|
*/
|
|
3321
3333
|
getSellerCredentialStatus(params: GetSellerCredentialStatusParams, opts?: {
|
|
3322
3334
|
baseApiUrl?: string;
|
|
@@ -3495,4 +3507,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
3495
3507
|
value?: bigint;
|
|
3496
3508
|
}>) => Promise<string>;
|
|
3497
3509
|
|
|
3498
|
-
export { type QuoteSingleResponse as $, type ApiAdapterOptions as A, type BestByPlatformResponse as B, type CurrencyType as C, type DepositWithRelations as D, type GetBestByPlatformResponse as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type GetBestByPlatformResponseObject as H, type IntentEntity$1 as I, type GetPlatformQuote as J, type PlatformQuote as K, type QuoteRequest as L, type GetNearbyQuote as M, type GetNearbySuggestions as N, type GetQuoteResponse as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SignalIntentReferralFee as S, type TxOverrides as T, type GetQuoteResponseObject as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetQuoteSingleResponse as X, type QuoteResponse as Y, Zkp2pClient as Z, type QuoteResponseObject as _, type ValidatePayeeDetailsResponse as a, type
|
|
3510
|
+
export { type QuoteSingleResponse as $, type ApiAdapterOptions as A, type BestByPlatformResponse as B, type CurrencyType as C, type DepositWithRelations as D, type GetBestByPlatformResponse as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type GetBestByPlatformResponseObject as H, type IntentEntity$1 as I, type GetPlatformQuote as J, type PlatformQuote as K, type QuoteRequest as L, type GetNearbyQuote as M, type GetNearbySuggestions as N, type GetQuoteResponse as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SignalIntentReferralFee as S, type TxOverrides as T, type GetQuoteResponseObject as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetQuoteSingleResponse as X, type QuoteResponse as Y, Zkp2pClient as Z, type QuoteResponseObject as _, type ValidatePayeeDetailsResponse as a, type TakerTierStats as a$, type QuoteIntentResponse as a0, type QuoteFeesResponse as a1, type FiatResponse as a2, type TokenResponse as a3, type NearbyQuote as a4, type NearbySuggestions as a5, type ApiDeposit as a6, type DepositVerifier as a7, type DepositVerifierCurrency as a8, type DepositStatus as a9, type SellerCredentialBundle as aA, type SellerCredentialBundleUpload as aB, type SellerCredentialStatusValue as aC, type SellerCredentialStatus as aD, type SellerVerifyProxyBody as aE, type SellerTypedDataField as aF, type SellerTypedDataSpec as aG, type SellerPaymentTypedDataValue as aH, type SellerAttestationOutput as aI, type SellerCredentialProbeResponse as aJ, type AttestationServiceSellerCredentialUploadResponse as aK, type AttestationServiceSellerVerifyResponse as aL, type AttestationServiceSellerCredentialProbeResponse as aM, type CuratorSellerCredentialUploadResponse as aN, type CuratorSellerCredentialStatusResponse as aO, type CuratorSellerVerifyResponse as aP, type UploadSellerCredentialParams as aQ, type UploadSellerCredentialOptions as aR, type SellerCredentialAttestationRuntime as aS, type GetSellerCredentialStatusParams as aT, type VerifySellerPaymentParams as aU, type OnchainCurrency as aV, type DepositVerifierData as aW, type PreparedTransaction as aX, type OrderStats as aY, type DepositIntentStatistics as aZ, type TakerTier as a_, type GetDepositByIdRequest as aa, type GetDepositByIdResponse as ab, type Intent as ac, type ApiIntentStatus as ad, type GetOwnerIntentsRequest as ae, type GetOwnerIntentsResponse as af, type GetIntentsByDepositRequest as ag, type GetIntentsByDepositResponse as ah, type GetIntentByHashRequest as ai, type GetIntentByHashResponse as aj, type RegisterPayeeDetailsRequest as ak, type RegisterPayeeDetailsResponse as al, type SellerPlatform as am, type VenmoSessionMaterial as an, type CashAppSessionMaterial as ao, type WiseSessionMaterial as ap, type VenmoCredentialUploadInput as aq, type CashAppCredentialUploadInput as ar, type WiseCredentialUploadInput as as, type SellerCredentialUploadInputByPlatform as at, type SellerCredentialUploadInput as au, type SellerCiphertextBundle as av, type SellerSignedCiphertextBundle as aw, type SellerVerifyIntentDetails as ax, type SellerVerifyInput as ay, type SellerProbeInput as az, type PostDepositDetailsResponse as b, type PV_PaymentMethodData as b$, type TakerTierLevel as b0, type PlatformLimit as b1, type PlatformRiskLevel as b2, type OrderbookEntry as b3, IndexerClient as b4, defaultIndexerEndpoint as b5, IndexerDepositService as b6, IndexerRateManagerService as b7, compareEventCursorIdsByRecency as b8, fetchFulfillmentAndPayment as b9, type RateManagerOrderField as bA, type OrderDirection as bB, type DeploymentEnv as bC, type FulfillmentRecord as bD, type PaymentVerifiedRecord as bE, type FulfillmentAndPaymentResponse as bF, PAYMENT_PLATFORMS as bG, type PaymentPlatformType as bH, Currency as bI, currencyInfo as bJ, getCurrencyInfoFromHash as bK, getCurrencyInfoFromCountryCode as bL, getCurrencyCodeFromHash as bM, isSupportedCurrencyHash as bN, mapConversionRatesToOnchainMinRate as bO, type CurrencyData as bP, getContracts as bQ, getRateManagerContracts as bR, getPaymentMethodsCatalog as bS, getGatingServiceAddress as bT, type RuntimeEnv as bU, parseDepositView as bV, parseIntentView as bW, enrichPvDepositView as bX, enrichPvIntentView as bY, type PV_DepositView as bZ, type PV_Deposit as b_, type DepositEntity$1 as ba, type IntentFulfilledEntity as bb, type IntentFulfillmentAmountsEntity as bc, type DepositPaymentMethodEntity$1 as bd, type MethodCurrencyEntity$1 as be, type IntentStatus as bf, type RateManagerEntity as bg, type RateManagerRateEntity as bh, type RateManagerDelegationEntity as bi, type ManagerAggregateStatsEntity as bj, type ManagerStatsEntity as bk, type ManagerDailySnapshotEntity as bl, type RateManagerListItem as bm, type RateManagerDetail as bn, type ManualRateUpdateEntity as bo, type OracleConfigUpdateEntity as bp, type DepositFundActivityEntity$1 as bq, type DepositDailySnapshotEntity$1 as br, type DepositFundActivityType$1 as bs, type DepositFilter as bt, type PaginationOptions as bu, type DepositOrderField as bv, type OrderDirection$1 as bw, type RateManagerFilter as bx, type RateManagerPaginationOptions as by, type RateManagerDelegationPaginationOptions as bz, type GetPayeeDetailsResponse as c, type PV_Currency as c0, type PV_ReferralFee as c1, type PV_IntentView as c2, type PV_Intent as c3, ZERO_RATE_MANAGER_ID as c4, isZeroRateManagerId as c5, normalizeRateManagerId as c6, normalizeRegistry as c7, getDelegationRoute as c8, classifyDelegationState as c9, type DelegationRoute as ca, type DelegationState as cb, type DelegationDepositTarget as cc, type BatchResult as cd, type SendTransactionFn as ce, type SendBatchFn as cf, ZERO_ADDRESS as cg, asErrorMessage as ch, assertDelegationMethodSupport as ci, type GetOwnerDepositsRequest as d, type GetOwnerDepositsResponse as e, type GetTakerTierRequest as f, type GetTakerTierResponse as g, type GetDepositBundleParams as h, type GetDepositBundleResponse as i, type GetOrderbookParams as j, type GetOrderbookResponse as k, type PaymentMethodCatalog as l, type SignalIntentMethodParams as m, type CancelIntentMethodParams as n, type Zkp2pNextOptions as o, type AuthorizationTokenProvider as p, type TimeoutConfig as q, type ActionCallback as r, type CreateDepositParams as s, type CreateDepositConversionRate as t, type Range as u, type SignalIntentParams as v, type FulfillIntentParams as w, type ReleaseFundsToPayerParams as x, type CancelIntentParams as y, type BestByPlatformResponseObject as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkp2p/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-rc.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",
|
|
@@ -88,7 +88,8 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@zkp2p/indexer-schema": "0.2.3",
|
|
91
|
-
"@zkp2p/contracts-v2": "0.2.
|
|
91
|
+
"@zkp2p/contracts-v2": "0.2.2",
|
|
92
|
+
"@zkp2p/zkp2p-attestation": "1.0.0-rc.0",
|
|
92
93
|
"ethers": "^6.0.0",
|
|
93
94
|
"ox": "^0.11.1"
|
|
94
95
|
},
|