@zkp2p/sdk 0.2.4 → 0.3.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.
@@ -423,6 +423,7 @@ type IntentStatus = `${IntentStatus$1}`;
423
423
  type DepositEntity = WithOverrides<Deposit, {
424
424
  status: DepositStatus$1;
425
425
  retainOnEmpty?: boolean;
426
+ whitelistHookAddress?: string | null;
426
427
  }>;
427
428
  type DepositPaymentMethodEntity = DepositPaymentMethod;
428
429
  type MethodCurrencyEntity = MethodCurrency;
@@ -773,6 +774,16 @@ type ReferrerFeeConfig = {
773
774
  recipient: `0x${string}`;
774
775
  feeBps: number;
775
776
  };
777
+ type CuratorPayeeData = {
778
+ offchainId: string;
779
+ telegramUsername: string | null;
780
+ metadata: Record<string, string> | null;
781
+ };
782
+ type CuratorPayeeDataInput = {
783
+ offchainId: string;
784
+ telegramUsername?: string | null;
785
+ metadata?: Record<string, string> | null;
786
+ };
776
787
  /**
777
788
  * Parameters for fulfilling an intent with payment attestation
778
789
  */
@@ -836,10 +847,12 @@ type SignalIntentParams = {
836
847
  * Request structure for posting deposit details
837
848
  */
838
849
  type PostDepositDetailsRequest = {
839
- /** Deposit data key-value pairs */
840
- depositData: {
841
- [key: string]: string;
842
- };
850
+ /** Primary offchain payment identifier for the processor */
851
+ offchainId: string;
852
+ /** Optional Telegram username associated with the payee */
853
+ telegramUsername?: string | null;
854
+ /** Optional processor-specific metadata */
855
+ metadata?: Record<string, string> | null;
843
856
  /** Payment processor name */
844
857
  processorName: string;
845
858
  };
@@ -853,9 +866,9 @@ type PostDepositDetailsResponse = {
853
866
  responseObject: {
854
867
  id: number;
855
868
  processorName: string;
856
- depositData: {
857
- [key: string]: string;
858
- };
869
+ offchainId: string;
870
+ telegramUsername: string | null;
871
+ metadata: Record<string, string> | null;
859
872
  hashedOnchainId: string;
860
873
  createdAt: string;
861
874
  };
@@ -887,6 +900,29 @@ type QuoteRequest = {
887
900
  nearbySearchRange?: number;
888
901
  /** Max suggestions per direction (1-10, default: 3) */
889
902
  nearbyQuotesCount?: number;
903
+ /** Include whitelist-gated private orderbook deposits scoped to the requesting user */
904
+ includePrivateOrderbooks?: boolean;
905
+ };
906
+ type QuotesBestByPlatformRequest = {
907
+ fiatCurrency: string;
908
+ user: string;
909
+ recipient: string;
910
+ destinationChainId: number;
911
+ destinationToken: string;
912
+ referrer?: string;
913
+ referrerFeeConfig?: ReferrerFeeConfig;
914
+ amount: string;
915
+ isExactFiat?: boolean;
916
+ /** Optional filter: limit quotes to these escrow contracts */
917
+ escrowAddresses?: string[];
918
+ /** Minimum maker success rate in basis points (0-10000) */
919
+ minDepositSuccessRateBps?: number;
920
+ /** Whether quotes may include business accounts */
921
+ supportBusinessAccounts?: boolean;
922
+ /** Optional intent gating service address to filter by */
923
+ intentGatingService?: string;
924
+ /** Include whitelist-gated private orderbook deposits */
925
+ includePrivateOrderbooks?: boolean;
890
926
  };
891
927
  type FiatResponse = {
892
928
  currencyCode: string;
@@ -936,7 +972,7 @@ type QuoteSingleResponse = {
936
972
  conversionRate: string;
937
973
  takerConversionRate?: string;
938
974
  intent: QuoteIntentResponse;
939
- payeeData?: Record<string, string>;
975
+ payeeData?: CuratorPayeeData;
940
976
  };
941
977
  type GetQuoteSingleResponse = QuoteSingleResponse & {
942
978
  referrerFeeAmount?: string;
@@ -1010,6 +1046,34 @@ type QuoteResponse = {
1010
1046
  type GetQuoteResponse = Omit<QuoteResponse, 'responseObject'> & {
1011
1047
  responseObject: GetQuoteResponseObject;
1012
1048
  };
1049
+ type PlatformQuote = {
1050
+ platform: string;
1051
+ supported: boolean;
1052
+ available: boolean;
1053
+ bestQuote?: QuoteSingleResponse;
1054
+ };
1055
+ type GetPlatformQuote = Omit<PlatformQuote, 'bestQuote'> & {
1056
+ bestQuote?: GetQuoteSingleResponse;
1057
+ };
1058
+ type BestByPlatformResponseObject = {
1059
+ fiat: FiatResponse;
1060
+ token: TokenResponse;
1061
+ fees: QuoteFeesResponse;
1062
+ platformQuotes: PlatformQuote[];
1063
+ quoteExpiresAt: string;
1064
+ };
1065
+ type GetBestByPlatformResponseObject = Omit<BestByPlatformResponseObject, 'platformQuotes'> & {
1066
+ platformQuotes: GetPlatformQuote[];
1067
+ };
1068
+ type BestByPlatformResponse = {
1069
+ message: string;
1070
+ success: boolean;
1071
+ responseObject: BestByPlatformResponseObject;
1072
+ statusCode: number;
1073
+ };
1074
+ type GetBestByPlatformResponse = Omit<BestByPlatformResponse, 'responseObject'> & {
1075
+ responseObject: GetBestByPlatformResponseObject;
1076
+ };
1013
1077
  /**
1014
1078
  * Request to fetch payee details
1015
1079
  * Prefer `processorName`; `platform` kept for backward compatibility.
@@ -1024,9 +1088,9 @@ type GetPayeeDetailsResponse = {
1024
1088
  responseObject: {
1025
1089
  id: number;
1026
1090
  processorName: string;
1027
- depositData: {
1028
- [key: string]: string;
1029
- };
1091
+ offchainId: string;
1092
+ telegramUsername: string | null;
1093
+ metadata: Record<string, string> | null;
1030
1094
  hashedOnchainId: string;
1031
1095
  createdAt: string;
1032
1096
  };
@@ -1034,9 +1098,9 @@ type GetPayeeDetailsResponse = {
1034
1098
  };
1035
1099
  type ValidatePayeeDetailsRequest = {
1036
1100
  processorName: string;
1037
- depositData: {
1038
- [key: string]: string;
1039
- };
1101
+ offchainId: string;
1102
+ telegramUsername?: string | null;
1103
+ metadata?: Record<string, string> | null;
1040
1104
  };
1041
1105
  type ValidatePayeeDetailsResponse = {
1042
1106
  success: boolean;
@@ -1076,9 +1140,13 @@ type CreateDepositParams = {
1076
1140
  intentAmountRange: Range;
1077
1141
  conversionRates: CreateDepositConversionRate[][];
1078
1142
  processorNames: string[];
1079
- depositData: {
1080
- [key: string]: string;
1081
- }[];
1143
+ /**
1144
+ * Required when the SDK needs to register payee details with the curator.
1145
+ * Optional when reusing `payeeDetailsHashes` or supplying the full override arrays.
1146
+ */
1147
+ payeeData?: CuratorPayeeDataInput[];
1148
+ /** @deprecated Use `payeeData` instead. */
1149
+ depositData?: CuratorPayeeDataInput[];
1082
1150
  payeeDetailsHashes?: string[];
1083
1151
  paymentMethodsOverride?: `0x${string}`[];
1084
1152
  paymentMethodDataOverride?: DepositVerifierData[];
@@ -1308,7 +1376,7 @@ type PaymentPlatformType = (typeof PAYMENT_PLATFORMS)[number];
1308
1376
  * walletClient,
1309
1377
  * chainId: 8453, // Base mainnet
1310
1378
  * runtimeEnv: 'production',
1311
- * apiKey: 'your-curator-api-key',
1379
+ * // apiKey: 'your-curator-api-key', // Optional: auto gating-signature fetches and quote enrichment
1312
1380
  * indexerApiKey: 'your-indexer-key',
1313
1381
  * };
1314
1382
  * ```
@@ -1326,7 +1394,11 @@ type Zkp2pNextOptions = {
1326
1394
  indexerUrl?: string;
1327
1395
  /** Base API URL for ZKP2P services (defaults to https://api.zkp2p.xyz) */
1328
1396
  baseApiUrl?: string;
1329
- /** Curator API key for authenticated endpoints like registerPayeeDetails, signalIntent (sent as x-api-key to curator) */
1397
+ /**
1398
+ * Optional curator API key (sent as `x-api-key`) for auto-fetching
1399
+ * `signalIntent` gating signatures and authenticated quote enrichment.
1400
+ * Not used by `registerPayeeDetails` or `getTakerTier`.
1401
+ */
1330
1402
  apiKey?: string;
1331
1403
  /** Optional bearer token for hybrid authentication */
1332
1404
  authorizationToken?: string;
@@ -1495,13 +1567,12 @@ type OnchainCurrencyEntry = {
1495
1567
  * const client = new OfframpClient({
1496
1568
  * walletClient,
1497
1569
  * chainId: base.id,
1498
- * apiKey: 'your-api-key',
1499
1570
  * });
1500
1571
  *
1501
1572
  * // Step 1: Register payee details (separate from deposit creation)
1502
1573
  * const { hashedOnchainIds } = await client.registerPayeeDetails({
1503
1574
  * processorNames: ['wise'],
1504
- * depositData: [{ email: 'you@example.com' }],
1575
+ * payeeData: [{ offchainId: 'you@example.com' }],
1505
1576
  * });
1506
1577
  *
1507
1578
  * // Step 2: Create a 1000 USDC deposit accepting Wise payments
@@ -1510,7 +1581,7 @@ type OnchainCurrencyEntry = {
1510
1581
  * amount: 1000_000000n,
1511
1582
  * intentAmountRange: { min: 10_000000n, max: 500_000000n },
1512
1583
  * processorNames: ['wise'],
1513
- * depositData: [{ email: 'you@example.com' }],
1584
+ * payeeData: [{ offchainId: 'you@example.com' }],
1514
1585
  * conversionRates: [[
1515
1586
  * { currency: 'USD', conversionRate: '1020000000000000000' },
1516
1587
  * { currency: 'EUR', conversionRate: '1100000000000000000' },
@@ -1577,7 +1648,7 @@ declare class Zkp2pClient {
1577
1648
  readonly orchestratorRegistryAbi?: Abi;
1578
1649
  /** Base API URL for ZKP2P services */
1579
1650
  readonly baseApiUrl?: string;
1580
- /** API key for authenticated endpoints */
1651
+ /** Optional curator API key (`x-api-key`) for auto gating-signature fetches and quote enrichment */
1581
1652
  readonly apiKey?: string;
1582
1653
  /** Bearer token for hybrid authentication */
1583
1654
  readonly authorizationToken?: string;
@@ -1959,23 +2030,22 @@ declare class Zkp2pClient {
1959
2030
  * register maker payment details with the curator service.
1960
2031
  *
1961
2032
  * @param params.processorNames - Payment platforms (e.g., ['wise', 'revolut'])
1962
- * @param params.depositData - Payee details per processor (e.g., [{ email: '...' }])
2033
+ * @param params.payeeData - Payee details per processor (e.g., [{ offchainId: 'you@example.com' }]). Required when the SDK needs to register payee details with the curator.
1963
2034
  * @returns The posted deposit details and their corresponding hashed on-chain IDs
1964
2035
  *
1965
2036
  * @example
1966
2037
  * ```typescript
1967
2038
  * const { hashedOnchainIds } = await client.registerPayeeDetails({
1968
2039
  * processorNames: ['wise'],
1969
- * depositData: [{ email: 'you@example.com' }],
2040
+ * payeeData: [{ offchainId: 'you@example.com' }],
1970
2041
  * });
1971
2042
  * // Then pass hashedOnchainIds to createDeposit
1972
2043
  * ```
1973
2044
  */
1974
2045
  registerPayeeDetails(params: {
1975
2046
  processorNames: string[];
1976
- depositData: {
1977
- [key: string]: string;
1978
- }[];
2047
+ payeeData?: CuratorPayeeDataInput[];
2048
+ depositData?: CuratorPayeeDataInput[];
1979
2049
  }): Promise<{
1980
2050
  depositDetails: PostDepositDetailsRequest[];
1981
2051
  hashedOnchainIds: string[];
@@ -1993,16 +2063,17 @@ declare class Zkp2pClient {
1993
2063
  * @param params.amount - Total deposit amount in token units (6 decimals for USDC)
1994
2064
  * @param params.intentAmountRange - Min/max amount per intent
1995
2065
  * @param params.processorNames - Payment platforms to accept (e.g., ['wise', 'revolut'])
1996
- * @param params.depositData - Payee details per processor (e.g., [{ email: '...' }])
2066
+ * @param params.payeeData - Payee details per processor (e.g., [{ offchainId: 'you@example.com' }])
1997
2067
  * @param params.conversionRates - Conversion rates per processor, grouped by currency
1998
2068
  * @param params.payeeDetailsHashes - Pre-computed hashed on-chain IDs (from registerPayeeDetails). When provided, skips the curator API call entirely.
1999
2069
  * @param params.delegate - Optional delegate address that can manage the deposit
2000
2070
  * @param params.intentGuardian - Optional guardian for intent approval
2001
2071
  * @param params.retainOnEmpty - Keep deposit active when balance reaches zero
2002
2072
  * @param params.txOverrides - Optional viem transaction overrides
2003
- * @returns The deposit details posted to API and the transaction hash
2073
+ * @returns The deposit details posted to API (empty when payee registration is skipped) and the transaction hash
2004
2074
  *
2005
- * @throws Error if processorNames, depositData, and conversionRates lengths don't match
2075
+ * @throws Error if processorNames, payeeData, and conversionRates lengths don't match
2076
+ * @throws Error if payeeData is missing and neither payeeDetailsHashes nor full payment method overrides are provided
2006
2077
  * @throws Error if a currency is not supported by the specified processor
2007
2078
  *
2008
2079
  * @example
@@ -2013,7 +2084,7 @@ declare class Zkp2pClient {
2013
2084
  * amount: 1000_000000n,
2014
2085
  * intentAmountRange: { min: 10_000000n, max: 500_000000n },
2015
2086
  * processorNames: ['wise'],
2016
- * depositData: [{ email: 'you@example.com' }],
2087
+ * payeeData: [{ offchainId: 'you@example.com' }],
2017
2088
  * conversionRates: [[
2018
2089
  * { currency: 'USD', conversionRate: '1020000000000000000' }, // 1.02
2019
2090
  * { currency: 'EUR', conversionRate: '1100000000000000000' }, // 1.10
@@ -2030,9 +2101,8 @@ declare class Zkp2pClient {
2030
2101
  max: bigint;
2031
2102
  };
2032
2103
  processorNames: string[];
2033
- depositData: {
2034
- [key: string]: string;
2035
- }[];
2104
+ payeeData?: CuratorPayeeDataInput[];
2105
+ depositData?: CuratorPayeeDataInput[];
2036
2106
  conversionRates: {
2037
2107
  currency: string;
2038
2108
  conversionRate: string;
@@ -2068,9 +2138,8 @@ declare class Zkp2pClient {
2068
2138
  max: bigint;
2069
2139
  };
2070
2140
  processorNames: string[];
2071
- depositData: {
2072
- [key: string]: string;
2073
- }[];
2141
+ payeeData?: CuratorPayeeDataInput[];
2142
+ depositData?: CuratorPayeeDataInput[];
2074
2143
  conversionRates: {
2075
2144
  currency: string;
2076
2145
  conversionRate: string;
@@ -2536,7 +2605,9 @@ declare class Zkp2pClient {
2536
2605
  * sending fiat payment to the deposit's payee.
2537
2606
  *
2538
2607
  * If `gatingServiceSignature` is not provided, the SDK will automatically
2539
- * fetch one from the API (requires `apiKey` or `authorizationToken`).
2608
+ * fetch one from curator `/v3/intent/sign` when `apiKey` or `authorizationToken`
2609
+ * is available. Otherwise you must provide `gatingServiceSignature` and
2610
+ * `signatureExpiration` yourself.
2540
2611
  *
2541
2612
  * **Prepare Mode**: Use `.prepare()` to get the transaction calldata without sending:
2542
2613
  * ```typescript
@@ -2785,6 +2856,20 @@ declare class Zkp2pClient {
2785
2856
  baseApiUrl?: string;
2786
2857
  timeoutMs?: number;
2787
2858
  }): Promise<GetQuoteResponse>;
2859
+ /**
2860
+ * **Supporting Method** - Fetches the best available quote per supported payment platform.
2861
+ *
2862
+ * Returns one quote per platform when available. When authenticated, the API
2863
+ * returns payee details in each platform's best quote.
2864
+ *
2865
+ * @param req - Best-by-platform quote request parameters
2866
+ * @param opts - Optional overrides for API URL and timeout
2867
+ * @returns Best-by-platform quote response
2868
+ */
2869
+ getQuotesBestByPlatform(req: QuotesBestByPlatformRequest, opts?: {
2870
+ baseApiUrl?: string;
2871
+ timeoutMs?: number;
2872
+ }): Promise<GetBestByPlatformResponse>;
2788
2873
  /**
2789
2874
  * **Supporting Method** - Fetches taker tier information for an address.
2790
2875
  *
@@ -2960,4 +3045,4 @@ type SendBatchFn = (txs: Array<{
2960
3045
  value?: bigint;
2961
3046
  }>) => Promise<string>;
2962
3047
 
2963
- export { type GetDepositByIdResponse as $, type AuthorizationTokenProvider as A, type QuoteResponseObject as B, type CurrencyType as C, type DepositWithRelations as D, type QuoteSingleResponse as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type QuoteIntentResponse as H, type IntentEntity as I, type QuoteFeesResponse as J, type FiatResponse as K, type TokenResponse as L, type NearbySuggestions as M, type NearbyQuote as N, type ApiDeposit as O, type PostDepositDetailsRequest as P, type QuoteRequest as Q, type ReferrerFeeConfig as R, type SignalIntentReferralFee as S, type TxOverrides as T, type DepositVerifier as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type DepositVerifierCurrency as X, type DepositStatus as Y, Zkp2pClient as Z, type GetDepositByIdRequest as _, type ValidatePayeeDetailsResponse as a, getCurrencyInfoFromCountryCode as a$, type Intent as a0, type ApiIntentStatus as a1, type GetOwnerIntentsRequest as a2, type GetOwnerIntentsResponse as a3, type GetIntentsByDepositRequest as a4, type GetIntentsByDepositResponse as a5, type GetIntentByHashRequest as a6, type GetIntentByHashResponse as a7, type RegisterPayeeDetailsRequest as a8, type RegisterPayeeDetailsResponse as a9, type ManagerStatsEntity as aA, type ManagerDailySnapshotEntity as aB, type RateManagerListItem as aC, type RateManagerDetail as aD, type ManualRateUpdateEntity as aE, type OracleConfigUpdateEntity as aF, type DepositFundActivityEntity as aG, type DepositDailySnapshotEntity as aH, type DepositFundActivityType as aI, type DepositFilter as aJ, type PaginationOptions as aK, type DepositOrderField as aL, type OrderDirection$1 as aM, type RateManagerFilter as aN, type RateManagerPaginationOptions as aO, type RateManagerDelegationPaginationOptions as aP, type RateManagerOrderField as aQ, type OrderDirection as aR, type DeploymentEnv as aS, type FulfillmentRecord as aT, type PaymentVerifiedRecord as aU, type FulfillmentAndPaymentResponse as aV, PAYMENT_PLATFORMS as aW, type PaymentPlatformType as aX, Currency as aY, currencyInfo as aZ, getCurrencyInfoFromHash as a_, type OnchainCurrency as aa, type DepositVerifierData as ab, type PreparedTransaction as ac, type OrderStats as ad, type DepositIntentStatistics as ae, type TakerTier as af, type TakerTierStats as ag, type TakerTierLevel as ah, type PlatformLimit as ai, type PlatformRiskLevel as aj, IndexerClient as ak, defaultIndexerEndpoint as al, IndexerDepositService as am, IndexerRateManagerService as an, compareEventCursorIdsByRecency as ao, fetchFulfillmentAndPayment as ap, type DepositEntity as aq, type IntentFulfilledEntity as ar, type IntentFulfillmentAmountsEntity as as, type DepositPaymentMethodEntity as at, type MethodCurrencyEntity as au, type IntentStatus as av, type RateManagerEntity as aw, type RateManagerRateEntity as ax, type RateManagerDelegationEntity as ay, type ManagerAggregateStatsEntity as az, type PostDepositDetailsResponse as b, getCurrencyCodeFromHash as b0, isSupportedCurrencyHash as b1, mapConversionRatesToOnchainMinRate as b2, type CurrencyData as b3, getContracts as b4, getRateManagerContracts as b5, getPaymentMethodsCatalog as b6, getGatingServiceAddress as b7, type RuntimeEnv as b8, parseDepositView as b9, parseIntentView as ba, enrichPvDepositView as bb, enrichPvIntentView as bc, type PV_DepositView as bd, type PV_Deposit as be, type PV_PaymentMethodData as bf, type PV_Currency as bg, type PV_ReferralFee as bh, type PV_IntentView as bi, type PV_Intent as bj, ZERO_RATE_MANAGER_ID as bk, isZeroRateManagerId as bl, normalizeRateManagerId as bm, normalizeRegistry as bn, getDelegationRoute as bo, classifyDelegationState as bp, type DelegationRoute as bq, type DelegationState as br, type DelegationDepositTarget as bs, type BatchResult as bt, type SendTransactionFn as bu, type SendBatchFn as bv, ZERO_ADDRESS as bw, asErrorMessage as bx, assertDelegationMethodSupport as by, type GetPayeeDetailsResponse as c, type GetOwnerDepositsRequest as d, type GetOwnerDepositsResponse as e, type GetTakerTierRequest as f, type GetTakerTierResponse as g, type PaymentMethodCatalog as h, type SignalIntentMethodParams as i, type CancelIntentMethodParams as j, type Zkp2pNextOptions as k, type TimeoutConfig as l, type ActionCallback as m, type CreateDepositParams as n, type CreateDepositConversionRate as o, type Range as p, type SignalIntentParams as q, type FulfillIntentParams as r, type ReleaseFundsToPayerParams as s, type CancelIntentParams as t, type GetNearbyQuote as u, type GetNearbySuggestions as v, type GetQuoteResponse as w, type GetQuoteResponseObject as x, type GetQuoteSingleResponse as y, type QuoteResponse as z };
3048
+ export { type NearbyQuote as $, type AuthorizationTokenProvider as A, type BestByPlatformResponse as B, type CurrencyType as C, type DepositWithRelations as D, type GetNearbyQuote as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type GetNearbySuggestions as H, type IntentEntity as I, type GetQuoteResponse as J, type GetQuoteResponseObject as K, type GetQuoteSingleResponse as L, type QuoteResponse as M, type QuoteResponseObject as N, type QuoteSingleResponse as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SignalIntentReferralFee as S, type TxOverrides as T, type QuoteIntentResponse as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type QuoteFeesResponse as X, type FiatResponse as Y, Zkp2pClient as Z, type TokenResponse as _, type ValidatePayeeDetailsResponse as a, type PaymentVerifiedRecord as a$, type NearbySuggestions as a0, type ApiDeposit as a1, type DepositVerifier as a2, type DepositVerifierCurrency as a3, type DepositStatus as a4, type GetDepositByIdRequest as a5, type GetDepositByIdResponse as a6, type Intent as a7, type ApiIntentStatus as a8, type GetOwnerIntentsRequest as a9, type DepositPaymentMethodEntity as aA, type MethodCurrencyEntity as aB, type IntentStatus as aC, type RateManagerEntity as aD, type RateManagerRateEntity as aE, type RateManagerDelegationEntity as aF, type ManagerAggregateStatsEntity as aG, type ManagerStatsEntity as aH, type ManagerDailySnapshotEntity as aI, type RateManagerListItem as aJ, type RateManagerDetail as aK, type ManualRateUpdateEntity as aL, type OracleConfigUpdateEntity as aM, type DepositFundActivityEntity as aN, type DepositDailySnapshotEntity as aO, type DepositFundActivityType as aP, type DepositFilter as aQ, type PaginationOptions as aR, type DepositOrderField as aS, type OrderDirection$1 as aT, type RateManagerFilter as aU, type RateManagerPaginationOptions as aV, type RateManagerDelegationPaginationOptions as aW, type RateManagerOrderField as aX, type OrderDirection as aY, type DeploymentEnv as aZ, type FulfillmentRecord as a_, type GetOwnerIntentsResponse as aa, type GetIntentsByDepositRequest as ab, type GetIntentsByDepositResponse as ac, type GetIntentByHashRequest as ad, type GetIntentByHashResponse as ae, type RegisterPayeeDetailsRequest as af, type RegisterPayeeDetailsResponse as ag, type OnchainCurrency as ah, type DepositVerifierData as ai, type PreparedTransaction as aj, type OrderStats as ak, type DepositIntentStatistics as al, type TakerTier as am, type TakerTierStats as an, type TakerTierLevel as ao, type PlatformLimit as ap, type PlatformRiskLevel as aq, IndexerClient as ar, defaultIndexerEndpoint as as, IndexerDepositService as at, IndexerRateManagerService as au, compareEventCursorIdsByRecency as av, fetchFulfillmentAndPayment as aw, type DepositEntity as ax, type IntentFulfilledEntity as ay, type IntentFulfillmentAmountsEntity as az, type PostDepositDetailsResponse as b, type FulfillmentAndPaymentResponse as b0, PAYMENT_PLATFORMS as b1, type PaymentPlatformType as b2, Currency as b3, currencyInfo as b4, getCurrencyInfoFromHash as b5, getCurrencyInfoFromCountryCode as b6, getCurrencyCodeFromHash as b7, isSupportedCurrencyHash as b8, mapConversionRatesToOnchainMinRate as b9, type BatchResult as bA, type SendTransactionFn as bB, type SendBatchFn as bC, ZERO_ADDRESS as bD, asErrorMessage as bE, assertDelegationMethodSupport as bF, type CurrencyData as ba, getContracts as bb, getRateManagerContracts as bc, getPaymentMethodsCatalog as bd, getGatingServiceAddress as be, type RuntimeEnv as bf, parseDepositView as bg, parseIntentView as bh, enrichPvDepositView as bi, enrichPvIntentView as bj, type PV_DepositView as bk, type PV_Deposit as bl, type PV_PaymentMethodData as bm, type PV_Currency as bn, type PV_ReferralFee as bo, type PV_IntentView as bp, type PV_Intent as bq, ZERO_RATE_MANAGER_ID as br, isZeroRateManagerId as bs, normalizeRateManagerId as bt, normalizeRegistry as bu, getDelegationRoute as bv, classifyDelegationState as bw, type DelegationRoute as bx, type DelegationState as by, type DelegationDepositTarget as bz, type GetPayeeDetailsResponse as c, type GetOwnerDepositsRequest as d, type GetOwnerDepositsResponse as e, type GetTakerTierRequest as f, type GetTakerTierResponse as g, type PaymentMethodCatalog as h, type SignalIntentMethodParams as i, type CancelIntentMethodParams as j, type Zkp2pNextOptions as k, type TimeoutConfig as l, type ActionCallback as m, type CreateDepositParams as n, type CreateDepositConversionRate as o, type Range as p, type SignalIntentParams as q, type FulfillIntentParams as r, type ReleaseFundsToPayerParams as s, type CancelIntentParams as t, type BestByPlatformResponseObject as u, type GetBestByPlatformResponse as v, type GetBestByPlatformResponseObject as w, type GetPlatformQuote as x, type PlatformQuote as y, type QuoteRequest as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/sdk",
3
- "version": "0.2.4",
3
+ "version": "0.3.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,7 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@zkp2p/indexer-schema": "0.2.3",
91
- "@zkp2p/contracts-v2": "0.2.0",
91
+ "@zkp2p/contracts-v2": "0.2.1",
92
92
  "ethers": "^6.0.0",
93
93
  "ox": "^0.11.1"
94
94
  },