@zkp2p/sdk 0.3.2 → 0.4.0-rc.1

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.
@@ -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
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"protocolViewerParsers-CQSES3QX.mjs"}
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, aV as PreparedTransaction, aY as TakerTier, f as GetTakerTierRequest, g as GetTakerTierResponse, F as FulfillIntentMethodParams, cc as SendTransactionFn, cd as SendBatchFn, ca as DelegationDepositTarget, cb as BatchResult } from './vaultUtils-C-9Z50Ak.mjs';
2
- export { c8 as DelegationRoute, c9 as DelegationState, ce as VAULT_ZERO_ADDRESS, c2 as ZERO_RATE_MANAGER_ID, cf as asErrorMessage, cg as assertDelegationMethodSupport, c7 as classifyDelegationState, c6 as getDelegationRoute, c3 as isZeroRateManagerId, c4 as normalizeRateManagerId, c5 as normalizeRegistry } from './vaultUtils-C-9Z50Ak.mjs';
1
+ import { Z as Zkp2pClient, P as PostDepositDetailsRequest, q as SignalIntentMethodParams, aX as PreparedTransaction, a_ as TakerTier, h as GetTakerTierRequest, i as GetTakerTierResponse, F as FulfillIntentMethodParams, ce as SendTransactionFn, cf as SendBatchFn, cc as DelegationDepositTarget, cd as BatchResult } from './vaultUtils-CN5fupa7.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-CN5fupa7.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, aV as PreparedTransaction, aY as TakerTier, f as GetTakerTierRequest, g as GetTakerTierResponse, F as FulfillIntentMethodParams, cc as SendTransactionFn, cd as SendBatchFn, ca as DelegationDepositTarget, cb as BatchResult } from './vaultUtils-C-9Z50Ak.js';
2
- export { c8 as DelegationRoute, c9 as DelegationState, ce as VAULT_ZERO_ADDRESS, c2 as ZERO_RATE_MANAGER_ID, cf as asErrorMessage, cg as assertDelegationMethodSupport, c7 as classifyDelegationState, c6 as getDelegationRoute, c3 as isZeroRateManagerId, c4 as normalizeRateManagerId, c5 as normalizeRegistry } from './vaultUtils-C-9Z50Ak.js';
1
+ import { Z as Zkp2pClient, P as PostDepositDetailsRequest, q as SignalIntentMethodParams, aX as PreparedTransaction, a_ as TakerTier, h as GetTakerTierRequest, i as GetTakerTierResponse, F as FulfillIntentMethodParams, ce as SendTransactionFn, cf as SendBatchFn, cc as DelegationDepositTarget, cd as BatchResult } from './vaultUtils-CN5fupa7.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-CN5fupa7.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
- makerId: number;
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
- * Curator accepts either a configured API key or bearer token for this endpoint.
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 PlatformLimit 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 GetSellerCredentialStatusParams as aR, type VerifySellerPaymentParams as aS, type OnchainCurrency as aT, type DepositVerifierData as aU, type PreparedTransaction as aV, type OrderStats as aW, type DepositIntentStatistics as aX, type TakerTier as aY, type TakerTierStats as aZ, type TakerTierLevel 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_ReferralFee as b$, type PlatformRiskLevel as b0, type OrderbookEntry as b1, IndexerClient as b2, defaultIndexerEndpoint as b3, IndexerDepositService as b4, IndexerRateManagerService as b5, compareEventCursorIdsByRecency as b6, fetchFulfillmentAndPayment as b7, type DepositEntity$1 as b8, type IntentFulfilledEntity as b9, type DeploymentEnv as bA, type FulfillmentRecord as bB, type PaymentVerifiedRecord as bC, type FulfillmentAndPaymentResponse as bD, PAYMENT_PLATFORMS as bE, type PaymentPlatformType as bF, Currency as bG, currencyInfo as bH, getCurrencyInfoFromHash as bI, getCurrencyInfoFromCountryCode as bJ, getCurrencyCodeFromHash as bK, isSupportedCurrencyHash as bL, mapConversionRatesToOnchainMinRate as bM, type CurrencyData as bN, getContracts as bO, getRateManagerContracts as bP, getPaymentMethodsCatalog as bQ, getGatingServiceAddress as bR, type RuntimeEnv as bS, parseDepositView as bT, parseIntentView as bU, enrichPvDepositView as bV, enrichPvIntentView as bW, type PV_DepositView as bX, type PV_Deposit as bY, type PV_PaymentMethodData as bZ, type PV_Currency as b_, type IntentFulfillmentAmountsEntity as ba, type DepositPaymentMethodEntity$1 as bb, type MethodCurrencyEntity$1 as bc, type IntentStatus as bd, type RateManagerEntity as be, type RateManagerRateEntity as bf, type RateManagerDelegationEntity as bg, type ManagerAggregateStatsEntity as bh, type ManagerStatsEntity as bi, type ManagerDailySnapshotEntity as bj, type RateManagerListItem as bk, type RateManagerDetail as bl, type ManualRateUpdateEntity as bm, type OracleConfigUpdateEntity as bn, type DepositFundActivityEntity$1 as bo, type DepositDailySnapshotEntity$1 as bp, type DepositFundActivityType$1 as bq, type DepositFilter as br, type PaginationOptions as bs, type DepositOrderField as bt, type OrderDirection$1 as bu, type RateManagerFilter as bv, type RateManagerPaginationOptions as bw, type RateManagerDelegationPaginationOptions as bx, type RateManagerOrderField as by, type OrderDirection as bz, type GetPayeeDetailsResponse as c, type PV_IntentView as c0, type PV_Intent as c1, ZERO_RATE_MANAGER_ID as c2, isZeroRateManagerId as c3, normalizeRateManagerId as c4, normalizeRegistry as c5, getDelegationRoute as c6, classifyDelegationState as c7, type DelegationRoute as c8, type DelegationState as c9, type DelegationDepositTarget as ca, type BatchResult as cb, type SendTransactionFn as cc, type SendBatchFn as cd, ZERO_ADDRESS as ce, asErrorMessage as cf, assertDelegationMethodSupport as cg, 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 };
3510
+ export { type GetQuoteResponseObject as $, type AttestationServiceSellerCredentialUploadResponse as A, type BestByPlatformResponse as B, type CurrencyType as C, type DepositWithRelations as D, type FulfillIntentParams as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type ReleaseFundsToPayerParams as H, type IntentEntity$1 as I, type CancelIntentParams as J, type BestByPlatformResponseObject as K, type GetBestByPlatformResponse as L, type GetBestByPlatformResponseObject as M, type GetPlatformQuote as N, type PlatformQuote as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type QuoteRequest as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetNearbyQuote as X, type GetNearbySuggestions as Y, Zkp2pClient as Z, type GetQuoteResponse as _, type SellerPlatform as a, type TakerTierStats as a$, type GetQuoteSingleResponse as a0, type QuoteResponse as a1, type QuoteResponseObject as a2, type QuoteSingleResponse as a3, type QuoteIntentResponse as a4, type QuoteFeesResponse as a5, type FiatResponse as a6, type TokenResponse as a7, type NearbyQuote as a8, type NearbySuggestions as a9, type SellerVerifyInput as aA, type SellerProbeInput as aB, type SellerCredentialBundle as aC, type SellerCredentialBundleUpload as aD, type SellerCredentialStatusValue as aE, type SellerCredentialStatus as aF, type SellerVerifyProxyBody as aG, type SellerTypedDataField as aH, type SellerTypedDataSpec as aI, type SellerPaymentTypedDataValue as aJ, type SellerAttestationOutput as aK, type SellerCredentialProbeResponse as aL, type AttestationServiceSellerVerifyResponse as aM, type AttestationServiceSellerCredentialProbeResponse as aN, type CuratorSellerCredentialUploadResponse as aO, type CuratorSellerCredentialStatusResponse as aP, type CuratorSellerVerifyResponse as aQ, type UploadSellerCredentialParams as aR, type UploadSellerCredentialOptions 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 ApiDeposit as aa, type DepositVerifier as ab, type DepositVerifierCurrency as ac, type DepositStatus as ad, type GetDepositByIdRequest as ae, type GetDepositByIdResponse as af, type Intent as ag, type ApiIntentStatus as ah, type GetOwnerIntentsRequest as ai, type GetOwnerIntentsResponse as aj, type GetIntentsByDepositRequest as ak, type GetIntentsByDepositResponse as al, type GetIntentByHashRequest as am, type GetIntentByHashResponse as an, type RegisterPayeeDetailsRequest as ao, type RegisterPayeeDetailsResponse as ap, type VenmoSessionMaterial as aq, type CashAppSessionMaterial as ar, type WiseSessionMaterial as as, type VenmoCredentialUploadInput as at, type CashAppCredentialUploadInput as au, type WiseCredentialUploadInput as av, type SellerCredentialUploadInputByPlatform as aw, type SellerCiphertextBundle as ax, type SellerSignedCiphertextBundle as ay, type SellerVerifyIntentDetails as az, type SellerCredentialAttestationRuntime 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 ValidatePayeeDetailsResponse 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 PostDepositDetailsResponse as d, type GetPayeeDetailsResponse as e, type GetOwnerDepositsRequest as f, type GetOwnerDepositsResponse as g, type GetTakerTierRequest as h, type GetTakerTierResponse as i, type GetDepositBundleParams as j, type ApiAdapterOptions as k, type GetDepositBundleResponse as l, type GetOrderbookParams as m, type GetOrderbookResponse as n, type PaymentMethodCatalog as o, type SignalIntentReferralFee as p, type SignalIntentMethodParams as q, type CancelIntentMethodParams as r, type Zkp2pNextOptions as s, type AuthorizationTokenProvider as t, type TimeoutConfig as u, type ActionCallback as v, type CreateDepositParams as w, type CreateDepositConversionRate as x, type Range as y, type SignalIntentParams 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
- makerId: number;
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
- * Curator accepts either a configured API key or bearer token for this endpoint.
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 PlatformLimit 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 GetSellerCredentialStatusParams as aR, type VerifySellerPaymentParams as aS, type OnchainCurrency as aT, type DepositVerifierData as aU, type PreparedTransaction as aV, type OrderStats as aW, type DepositIntentStatistics as aX, type TakerTier as aY, type TakerTierStats as aZ, type TakerTierLevel 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_ReferralFee as b$, type PlatformRiskLevel as b0, type OrderbookEntry as b1, IndexerClient as b2, defaultIndexerEndpoint as b3, IndexerDepositService as b4, IndexerRateManagerService as b5, compareEventCursorIdsByRecency as b6, fetchFulfillmentAndPayment as b7, type DepositEntity$1 as b8, type IntentFulfilledEntity as b9, type DeploymentEnv as bA, type FulfillmentRecord as bB, type PaymentVerifiedRecord as bC, type FulfillmentAndPaymentResponse as bD, PAYMENT_PLATFORMS as bE, type PaymentPlatformType as bF, Currency as bG, currencyInfo as bH, getCurrencyInfoFromHash as bI, getCurrencyInfoFromCountryCode as bJ, getCurrencyCodeFromHash as bK, isSupportedCurrencyHash as bL, mapConversionRatesToOnchainMinRate as bM, type CurrencyData as bN, getContracts as bO, getRateManagerContracts as bP, getPaymentMethodsCatalog as bQ, getGatingServiceAddress as bR, type RuntimeEnv as bS, parseDepositView as bT, parseIntentView as bU, enrichPvDepositView as bV, enrichPvIntentView as bW, type PV_DepositView as bX, type PV_Deposit as bY, type PV_PaymentMethodData as bZ, type PV_Currency as b_, type IntentFulfillmentAmountsEntity as ba, type DepositPaymentMethodEntity$1 as bb, type MethodCurrencyEntity$1 as bc, type IntentStatus as bd, type RateManagerEntity as be, type RateManagerRateEntity as bf, type RateManagerDelegationEntity as bg, type ManagerAggregateStatsEntity as bh, type ManagerStatsEntity as bi, type ManagerDailySnapshotEntity as bj, type RateManagerListItem as bk, type RateManagerDetail as bl, type ManualRateUpdateEntity as bm, type OracleConfigUpdateEntity as bn, type DepositFundActivityEntity$1 as bo, type DepositDailySnapshotEntity$1 as bp, type DepositFundActivityType$1 as bq, type DepositFilter as br, type PaginationOptions as bs, type DepositOrderField as bt, type OrderDirection$1 as bu, type RateManagerFilter as bv, type RateManagerPaginationOptions as bw, type RateManagerDelegationPaginationOptions as bx, type RateManagerOrderField as by, type OrderDirection as bz, type GetPayeeDetailsResponse as c, type PV_IntentView as c0, type PV_Intent as c1, ZERO_RATE_MANAGER_ID as c2, isZeroRateManagerId as c3, normalizeRateManagerId as c4, normalizeRegistry as c5, getDelegationRoute as c6, classifyDelegationState as c7, type DelegationRoute as c8, type DelegationState as c9, type DelegationDepositTarget as ca, type BatchResult as cb, type SendTransactionFn as cc, type SendBatchFn as cd, ZERO_ADDRESS as ce, asErrorMessage as cf, assertDelegationMethodSupport as cg, 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 };
3510
+ export { type GetQuoteResponseObject as $, type AttestationServiceSellerCredentialUploadResponse as A, type BestByPlatformResponse as B, type CurrencyType as C, type DepositWithRelations as D, type FulfillIntentParams as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type ReleaseFundsToPayerParams as H, type IntentEntity$1 as I, type CancelIntentParams as J, type BestByPlatformResponseObject as K, type GetBestByPlatformResponse as L, type GetBestByPlatformResponseObject as M, type GetPlatformQuote as N, type PlatformQuote as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type QuoteRequest as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetNearbyQuote as X, type GetNearbySuggestions as Y, Zkp2pClient as Z, type GetQuoteResponse as _, type SellerPlatform as a, type TakerTierStats as a$, type GetQuoteSingleResponse as a0, type QuoteResponse as a1, type QuoteResponseObject as a2, type QuoteSingleResponse as a3, type QuoteIntentResponse as a4, type QuoteFeesResponse as a5, type FiatResponse as a6, type TokenResponse as a7, type NearbyQuote as a8, type NearbySuggestions as a9, type SellerVerifyInput as aA, type SellerProbeInput as aB, type SellerCredentialBundle as aC, type SellerCredentialBundleUpload as aD, type SellerCredentialStatusValue as aE, type SellerCredentialStatus as aF, type SellerVerifyProxyBody as aG, type SellerTypedDataField as aH, type SellerTypedDataSpec as aI, type SellerPaymentTypedDataValue as aJ, type SellerAttestationOutput as aK, type SellerCredentialProbeResponse as aL, type AttestationServiceSellerVerifyResponse as aM, type AttestationServiceSellerCredentialProbeResponse as aN, type CuratorSellerCredentialUploadResponse as aO, type CuratorSellerCredentialStatusResponse as aP, type CuratorSellerVerifyResponse as aQ, type UploadSellerCredentialParams as aR, type UploadSellerCredentialOptions 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 ApiDeposit as aa, type DepositVerifier as ab, type DepositVerifierCurrency as ac, type DepositStatus as ad, type GetDepositByIdRequest as ae, type GetDepositByIdResponse as af, type Intent as ag, type ApiIntentStatus as ah, type GetOwnerIntentsRequest as ai, type GetOwnerIntentsResponse as aj, type GetIntentsByDepositRequest as ak, type GetIntentsByDepositResponse as al, type GetIntentByHashRequest as am, type GetIntentByHashResponse as an, type RegisterPayeeDetailsRequest as ao, type RegisterPayeeDetailsResponse as ap, type VenmoSessionMaterial as aq, type CashAppSessionMaterial as ar, type WiseSessionMaterial as as, type VenmoCredentialUploadInput as at, type CashAppCredentialUploadInput as au, type WiseCredentialUploadInput as av, type SellerCredentialUploadInputByPlatform as aw, type SellerCiphertextBundle as ax, type SellerSignedCiphertextBundle as ay, type SellerVerifyIntentDetails as az, type SellerCredentialAttestationRuntime 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 ValidatePayeeDetailsResponse 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 PostDepositDetailsResponse as d, type GetPayeeDetailsResponse as e, type GetOwnerDepositsRequest as f, type GetOwnerDepositsResponse as g, type GetTakerTierRequest as h, type GetTakerTierResponse as i, type GetDepositBundleParams as j, type ApiAdapterOptions as k, type GetDepositBundleResponse as l, type GetOrderbookParams as m, type GetOrderbookResponse as n, type PaymentMethodCatalog as o, type SignalIntentReferralFee as p, type SignalIntentMethodParams as q, type CancelIntentMethodParams as r, type Zkp2pNextOptions as s, type AuthorizationTokenProvider as t, type TimeoutConfig as u, type ActionCallback as v, type CreateDepositParams as w, type CreateDepositConversionRate as x, type Range as y, type SignalIntentParams as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/sdk",
3
- "version": "0.3.2",
3
+ "version": "0.4.0-rc.1",
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.1",
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
  },