@usdctofiat/offramp 3.0.2 → 3.1.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/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { WalletClient } from 'viem';
2
- import { O as OfframpParams, a as OnProgress, b as OfframpResult, c as OfframpCreateOptions, d as OfframpQuoteInput, e as OfframpQuote, f as OfframpVaultStatus, P as PlatformEntry, C as CurrencyEntry, D as DepositInfo } from './errors-DKQ2N_ih.cjs';
3
- export { g as CURRENCIES, h as DepositStatus, M as MakersCreateError, i as OFFRAMP_ERROR_CODES, j as OfframpError, k as OfframpErrorCode, l as OfframpProgress, m as OfframpState, n as OfframpStep, o as PLATFORMS, p as PayeeDepositData, q as PeerExtensionRegistrationInfo, r as PlatformKey, s as getPeerExtensionRegistrationInfo, t as isPeerExtensionRegistrationError, u as normalizePaypalMeUsername } from './errors-DKQ2N_ih.cjs';
4
- export { PEER_EXTENSION_CHROME_URL, PeerConnectionStatus, PeerExtensionApi, PeerExtensionOnrampParams, PeerExtensionSdk, PeerExtensionSdkOptions, PeerExtensionState, PeerExtensionWindow, PeerOnrampPreparedTransactionCallback, PeerOnrampPreparedTransactionResult, createPeerExtensionSdk, getPeerExtensionState, isPeerExtensionAvailable, openPeerExtensionInstallPage, peerExtensionSdk } from '@zkp2p/sdk';
2
+ import { h as OfframpParams, p as OnProgress, l as OfframpResult, e as OfframpCreateOptions, k as OfframpQuoteInput, j as OfframpQuote, o as OfframpVaultStatus, L as PlatformEntry, c as CurrencyEntry, D as DepositInfo } from './errors-DzTiflBh.cjs';
3
+ export { C as CURRENCIES, a as CompletePeerExtensionRegistrationInput, b as CompletePeerExtensionRegistrationResult, d as DepositStatus, M as MakersCreateError, O as OFFRAMP_ERROR_CODES, f as OfframpError, g as OfframpErrorCode, i as OfframpProgress, m as OfframpState, n as OfframpStep, P as PLATFORMS, q as PLATFORM_LIMITS, r as PayeeDepositData, s as PeerAuthenticateParams, t as PeerBuyerTeePaymentCapture, u as PeerBuyerTeePaymentParams, v as PeerConnectionStatus, w as PeerExtensionApi, x as PeerExtensionRegistrationInfo, y as PeerExtensionSdk, z as PeerExtensionSdkOptions, A as PeerExtensionState, B as PeerExtensionWindow, E as PeerMetadataCaptureMode, F as PeerMetadataMessage, G as PeerMetadataMessageCallback, H as PeerMetadataProviderConfig, I as PeerMetadataRow, J as PeerSarCredentialBundle, K as PeerSarCredentialCapture, N as PlatformKey, Q as PlatformLimits, R as PlatformTier, S as completePeerExtensionRegistration, T as createPeerExtensionSdk, U as getPeerExtensionRegistrationAuthParams, V as getPeerExtensionRegistrationInfo, W as getPeerExtensionState, X as getPlatformLimits, Y as isPeerExtensionAvailable, Z as isPeerExtensionMetadataBridgeAvailable, _ as isPeerExtensionRegistrationError, $ as isValidIBAN, a0 as normalizePaypalMeUsername, a1 as openPeerExtensionInstallPage, a2 as peerExtensionSdk } from './errors-DzTiflBh.cjs';
4
+ export { PEER_EXTENSION_CHROME_URL, PeerExtensionOnrampParams, PeerOnrampPreparedTransactionCallback, PeerOnrampPreparedTransactionResult } from '@zkp2p/sdk';
5
5
 
6
6
  type TelemetryEventName = "sdk.init" | "sdk.createDeposit.start" | "sdk.createDeposit.progress" | "sdk.createDeposit.success" | "sdk.createDeposit.error";
7
7
  interface TelemetryContext {
@@ -28,7 +28,7 @@ declare function createTelemetryContext(options: CreateTelemetryContextOptions):
28
28
  * **Resumable**: if an existing undelegated deposit is found for this wallet,
29
29
  * the flow skips directly to delegation instead of creating a new deposit.
30
30
  */
31
- declare function offramp(walletClient: WalletClient, params: OfframpParams, onProgress?: OnProgress, telemetryContext?: TelemetryContext): Promise<OfframpResult>;
31
+ declare function offramp(walletClient: WalletClient, params: OfframpParams, onProgress?: OnProgress, telemetryContext?: TelemetryContext, apiBaseUrl?: string): Promise<OfframpResult>;
32
32
 
33
33
  interface OfframpConstructorOptions extends OfframpCreateOptions {
34
34
  walletClient: WalletClient;
@@ -36,6 +36,7 @@ interface OfframpConstructorOptions extends OfframpCreateOptions {
36
36
  declare class Offramp {
37
37
  private readonly walletClient;
38
38
  private readonly telemetry;
39
+ private readonly apiBaseUrl?;
39
40
  constructor(options: OfframpConstructorOptions);
40
41
  createDeposit(params: OfframpParams, onProgress?: OnProgress): Promise<OfframpResult>;
41
42
  getQuote(input: OfframpQuoteInput): OfframpQuote;
@@ -82,7 +83,10 @@ interface EnableOtcResult {
82
83
  * Make a deposit private so only one taker wallet can trade against it.
83
84
  *
84
85
  * Sets the WhitelistPreIntentHook on the deposit and whitelists the taker.
85
- * If the deposit already has a different taker whitelisted, replaces it.
86
+ * The hook stores its whitelist as a membership-only mapping with no
87
+ * enumeration, so a taker that was previously whitelisted is NOT removed when
88
+ * a new one is added — both stay whitelisted. To switch to a single new taker,
89
+ * remove the prior one explicitly (or `disableOtc` first) before calling this.
86
90
  *
87
91
  * @param walletClient - viem WalletClient with the deposit owner's account
88
92
  * @param depositId - The numeric deposit ID (from `OfframpResult.depositId`)
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { WalletClient } from 'viem';
2
- import { O as OfframpParams, a as OnProgress, b as OfframpResult, c as OfframpCreateOptions, d as OfframpQuoteInput, e as OfframpQuote, f as OfframpVaultStatus, P as PlatformEntry, C as CurrencyEntry, D as DepositInfo } from './errors-DKQ2N_ih.js';
3
- export { g as CURRENCIES, h as DepositStatus, M as MakersCreateError, i as OFFRAMP_ERROR_CODES, j as OfframpError, k as OfframpErrorCode, l as OfframpProgress, m as OfframpState, n as OfframpStep, o as PLATFORMS, p as PayeeDepositData, q as PeerExtensionRegistrationInfo, r as PlatformKey, s as getPeerExtensionRegistrationInfo, t as isPeerExtensionRegistrationError, u as normalizePaypalMeUsername } from './errors-DKQ2N_ih.js';
4
- export { PEER_EXTENSION_CHROME_URL, PeerConnectionStatus, PeerExtensionApi, PeerExtensionOnrampParams, PeerExtensionSdk, PeerExtensionSdkOptions, PeerExtensionState, PeerExtensionWindow, PeerOnrampPreparedTransactionCallback, PeerOnrampPreparedTransactionResult, createPeerExtensionSdk, getPeerExtensionState, isPeerExtensionAvailable, openPeerExtensionInstallPage, peerExtensionSdk } from '@zkp2p/sdk';
2
+ import { h as OfframpParams, p as OnProgress, l as OfframpResult, e as OfframpCreateOptions, k as OfframpQuoteInput, j as OfframpQuote, o as OfframpVaultStatus, L as PlatformEntry, c as CurrencyEntry, D as DepositInfo } from './errors-DzTiflBh.js';
3
+ export { C as CURRENCIES, a as CompletePeerExtensionRegistrationInput, b as CompletePeerExtensionRegistrationResult, d as DepositStatus, M as MakersCreateError, O as OFFRAMP_ERROR_CODES, f as OfframpError, g as OfframpErrorCode, i as OfframpProgress, m as OfframpState, n as OfframpStep, P as PLATFORMS, q as PLATFORM_LIMITS, r as PayeeDepositData, s as PeerAuthenticateParams, t as PeerBuyerTeePaymentCapture, u as PeerBuyerTeePaymentParams, v as PeerConnectionStatus, w as PeerExtensionApi, x as PeerExtensionRegistrationInfo, y as PeerExtensionSdk, z as PeerExtensionSdkOptions, A as PeerExtensionState, B as PeerExtensionWindow, E as PeerMetadataCaptureMode, F as PeerMetadataMessage, G as PeerMetadataMessageCallback, H as PeerMetadataProviderConfig, I as PeerMetadataRow, J as PeerSarCredentialBundle, K as PeerSarCredentialCapture, N as PlatformKey, Q as PlatformLimits, R as PlatformTier, S as completePeerExtensionRegistration, T as createPeerExtensionSdk, U as getPeerExtensionRegistrationAuthParams, V as getPeerExtensionRegistrationInfo, W as getPeerExtensionState, X as getPlatformLimits, Y as isPeerExtensionAvailable, Z as isPeerExtensionMetadataBridgeAvailable, _ as isPeerExtensionRegistrationError, $ as isValidIBAN, a0 as normalizePaypalMeUsername, a1 as openPeerExtensionInstallPage, a2 as peerExtensionSdk } from './errors-DzTiflBh.js';
4
+ export { PEER_EXTENSION_CHROME_URL, PeerExtensionOnrampParams, PeerOnrampPreparedTransactionCallback, PeerOnrampPreparedTransactionResult } from '@zkp2p/sdk';
5
5
 
6
6
  type TelemetryEventName = "sdk.init" | "sdk.createDeposit.start" | "sdk.createDeposit.progress" | "sdk.createDeposit.success" | "sdk.createDeposit.error";
7
7
  interface TelemetryContext {
@@ -28,7 +28,7 @@ declare function createTelemetryContext(options: CreateTelemetryContextOptions):
28
28
  * **Resumable**: if an existing undelegated deposit is found for this wallet,
29
29
  * the flow skips directly to delegation instead of creating a new deposit.
30
30
  */
31
- declare function offramp(walletClient: WalletClient, params: OfframpParams, onProgress?: OnProgress, telemetryContext?: TelemetryContext): Promise<OfframpResult>;
31
+ declare function offramp(walletClient: WalletClient, params: OfframpParams, onProgress?: OnProgress, telemetryContext?: TelemetryContext, apiBaseUrl?: string): Promise<OfframpResult>;
32
32
 
33
33
  interface OfframpConstructorOptions extends OfframpCreateOptions {
34
34
  walletClient: WalletClient;
@@ -36,6 +36,7 @@ interface OfframpConstructorOptions extends OfframpCreateOptions {
36
36
  declare class Offramp {
37
37
  private readonly walletClient;
38
38
  private readonly telemetry;
39
+ private readonly apiBaseUrl?;
39
40
  constructor(options: OfframpConstructorOptions);
40
41
  createDeposit(params: OfframpParams, onProgress?: OnProgress): Promise<OfframpResult>;
41
42
  getQuote(input: OfframpQuoteInput): OfframpQuote;
@@ -82,7 +83,10 @@ interface EnableOtcResult {
82
83
  * Make a deposit private so only one taker wallet can trade against it.
83
84
  *
84
85
  * Sets the WhitelistPreIntentHook on the deposit and whitelists the taker.
85
- * If the deposit already has a different taker whitelisted, replaces it.
86
+ * The hook stores its whitelist as a membership-only mapping with no
87
+ * enumeration, so a taker that was previously whitelisted is NOT removed when
88
+ * a new one is added — both stay whitelisted. To switch to a single new taker,
89
+ * remove the prior one explicitly (or `disableOtc` first) before calling this.
86
90
  *
87
91
  * @param walletClient - viem WalletClient with the deposit owner's account
88
92
  * @param depositId - The numeric deposit ID (from `OfframpResult.depositId`)
package/dist/index.js CHANGED
@@ -6,7 +6,9 @@ import {
6
6
  OfframpError,
7
7
  PEER_EXTENSION_CHROME_URL,
8
8
  PLATFORMS,
9
+ PLATFORM_LIMITS,
9
10
  close,
11
+ completePeerExtensionRegistration,
10
12
  createOfframp,
11
13
  createPeerExtensionSdk,
12
14
  createTelemetryContext,
@@ -16,10 +18,14 @@ import {
16
18
  emitEvent,
17
19
  enableOtc,
18
20
  getOtcLink,
21
+ getPeerExtensionRegistrationAuthParams,
19
22
  getPeerExtensionRegistrationInfo,
20
23
  getPeerExtensionState,
24
+ getPlatformLimits,
21
25
  isPeerExtensionAvailable,
26
+ isPeerExtensionMetadataBridgeAvailable,
22
27
  isPeerExtensionRegistrationError,
28
+ isValidIBAN,
23
29
  normalizePaypalMeUsername,
24
30
  offramp,
25
31
  openPeerExtensionInstallPage,
@@ -27,7 +33,7 @@ import {
27
33
  sanitizeAttributionId,
28
34
  sendTelemetryEvent,
29
35
  undelegate
30
- } from "./chunk-F7DVUBMT.js";
36
+ } from "./chunk-XQ7HOLLB.js";
31
37
 
32
38
  // src/types.ts
33
39
  var OFFRAMP_ERROR_CODES = {
@@ -39,8 +45,8 @@ var OFFRAMP_ERROR_CODES = {
39
45
  * handle in the Peer extension yet. Thrown from `offramp()` for PayPal
40
46
  * and Wise when `/v2/makers/create` returns 400 or a "creating the maker"
41
47
  * message. Recover by prompting the user through the Peer extension via
42
- * `usePeerExtensionRegistration(platform)` (React) or `peerExtensionSdk`
43
- * directly, then call `offramp()` again.
48
+ * `usePeerExtensionRegistration(platform)` (React) or
49
+ * `completePeerExtensionRegistration(...)`, then retrying `offramp()`.
44
50
  */
45
51
  EXTENSION_REGISTRATION_REQUIRED: "EXTENSION_REGISTRATION_REQUIRED",
46
52
  DEPOSIT_FAILED: "DEPOSIT_FAILED",
@@ -58,7 +64,9 @@ export {
58
64
  OfframpError,
59
65
  PEER_EXTENSION_CHROME_URL,
60
66
  PLATFORMS,
67
+ PLATFORM_LIMITS,
61
68
  close,
69
+ completePeerExtensionRegistration,
62
70
  createOfframp,
63
71
  createPeerExtensionSdk,
64
72
  createTelemetryContext,
@@ -68,10 +76,14 @@ export {
68
76
  emitEvent,
69
77
  enableOtc,
70
78
  getOtcLink,
79
+ getPeerExtensionRegistrationAuthParams,
71
80
  getPeerExtensionRegistrationInfo,
72
81
  getPeerExtensionState,
82
+ getPlatformLimits,
73
83
  isPeerExtensionAvailable,
84
+ isPeerExtensionMetadataBridgeAvailable,
74
85
  isPeerExtensionRegistrationError,
86
+ isValidIBAN,
75
87
  normalizePaypalMeUsername,
76
88
  offramp,
77
89
  openPeerExtensionInstallPage,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/types.ts"],"sourcesContent":["import type { PlatformEntry } from \"./platforms\";\nimport type { CurrencyEntry } from \"./currencies\";\n\nexport const OFFRAMP_ERROR_CODES = {\n VALIDATION: \"VALIDATION\",\n APPROVAL_FAILED: \"APPROVAL_FAILED\",\n REGISTRATION_FAILED: \"REGISTRATION_FAILED\",\n /**\n * Curator rejected the maker because the user has not registered this\n * handle in the Peer extension yet. Thrown from `offramp()` for PayPal\n * and Wise when `/v2/makers/create` returns 400 or a \"creating the maker\"\n * message. Recover by prompting the user through the Peer extension via\n * `usePeerExtensionRegistration(platform)` (React) or `peerExtensionSdk`\n * directly, then call `offramp()` again.\n */\n EXTENSION_REGISTRATION_REQUIRED: \"EXTENSION_REGISTRATION_REQUIRED\",\n DEPOSIT_FAILED: \"DEPOSIT_FAILED\",\n CONFIRMATION_FAILED: \"CONFIRMATION_FAILED\",\n DELEGATION_FAILED: \"DELEGATION_FAILED\",\n USER_CANCELLED: \"USER_CANCELLED\",\n UNSUPPORTED: \"UNSUPPORTED\",\n} as const;\n\nexport type OfframpErrorCode = (typeof OFFRAMP_ERROR_CODES)[keyof typeof OFFRAMP_ERROR_CODES];\n\nexport interface OfframpParams {\n /** USDC amount as decimal string, min 1. */\n amount: string;\n /** Payment platform — use `PLATFORMS.REVOLUT` etc. */\n platform: PlatformEntry;\n /** Fiat currency — use `CURRENCIES.EUR` etc. */\n currency: CurrencyEntry;\n /** Platform-specific identifier (username, email, IBAN). */\n identifier: string;\n /** Optional: restrict the deposit to this taker wallet (OTC private order). */\n otcTaker?: string;\n /** Optional SDK-only referral metadata for telemetry attribution. */\n referralId?: string;\n /** Optional SDK-only integrator metadata for telemetry attribution. */\n integratorId?: string;\n /** Optional per-wallet key to replay the first successful result for 10 minutes. */\n idempotencyKey?: string;\n}\n\nexport interface OfframpResult {\n depositId: string;\n txHash: string;\n /** Whether an existing undelegated deposit was resumed. */\n resumed: boolean;\n /** OTC link for the taker, present when `otcTaker` was provided. */\n otcLink?: string;\n}\n\nexport type OfframpStep =\n | \"approving\"\n | \"registering\"\n | \"depositing\"\n | \"confirming\"\n | \"delegating\"\n | \"restricting\"\n | \"resuming\"\n | \"done\";\n\nexport type OfframpState =\n | \"idle\"\n | \"approving\"\n | \"registering\"\n | \"depositing\"\n | \"confirming\"\n | \"delegating\"\n | \"done\"\n | \"error\";\n\nexport interface OfframpProgress {\n step: OfframpStep;\n txHash?: string;\n depositId?: string;\n}\n\nexport type OnProgress = (progress: OfframpProgress) => void;\n\nexport type DepositStatus = \"active\" | \"empty\" | \"closed\";\n\nexport interface OfframpQuoteInput {\n amount: string;\n currency: CurrencyEntry;\n platform: PlatformEntry;\n}\n\nexport interface OfframpQuote {\n amountUsdc: number;\n expectedFiat: number;\n effectiveRate: number;\n vaultSpreadBps: number;\n}\n\nexport interface OfframpVaultStatus {\n rateManagerId: string;\n rateManagerAddress: string;\n feeRateBps: number;\n escrow: string;\n isActive: boolean;\n}\n\nexport interface OfframpCreateOptions {\n integratorId?: string;\n referralId?: string;\n telemetry?: boolean;\n}\n\nexport interface DepositInfo {\n /** Numeric deposit ID. Pass this to `close()`. */\n depositId: string;\n /** Composite ID (escrowAddress_depositId). */\n compositeId: string;\n /** Creation transaction hash. */\n txHash?: string;\n status: DepositStatus;\n remainingUsdc: number;\n outstandingUsdc: number;\n totalTakenUsdc: number;\n fulfilledIntents: number;\n paymentMethods: string[];\n currencies: string[];\n rateSource: string;\n delegated: boolean;\n escrowAddress: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,IAAM,sBAAsB;AAAA,EACjC,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASrB,iCAAiC;AAAA,EACjC,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,mBAAmB;AAAA,EACnB,gBAAgB;AAAA,EAChB,aAAa;AACf;","names":[]}
1
+ {"version":3,"sources":["../src/types.ts"],"sourcesContent":["import type { PlatformEntry } from \"./platforms\";\nimport type { CurrencyEntry } from \"./currencies\";\n\nexport const OFFRAMP_ERROR_CODES = {\n VALIDATION: \"VALIDATION\",\n APPROVAL_FAILED: \"APPROVAL_FAILED\",\n REGISTRATION_FAILED: \"REGISTRATION_FAILED\",\n /**\n * Curator rejected the maker because the user has not registered this\n * handle in the Peer extension yet. Thrown from `offramp()` for PayPal\n * and Wise when `/v2/makers/create` returns 400 or a \"creating the maker\"\n * message. Recover by prompting the user through the Peer extension via\n * `usePeerExtensionRegistration(platform)` (React) or\n * `completePeerExtensionRegistration(...)`, then retrying `offramp()`.\n */\n EXTENSION_REGISTRATION_REQUIRED: \"EXTENSION_REGISTRATION_REQUIRED\",\n DEPOSIT_FAILED: \"DEPOSIT_FAILED\",\n CONFIRMATION_FAILED: \"CONFIRMATION_FAILED\",\n DELEGATION_FAILED: \"DELEGATION_FAILED\",\n USER_CANCELLED: \"USER_CANCELLED\",\n UNSUPPORTED: \"UNSUPPORTED\",\n} as const;\n\nexport type OfframpErrorCode = (typeof OFFRAMP_ERROR_CODES)[keyof typeof OFFRAMP_ERROR_CODES];\n\nexport interface OfframpParams {\n /** USDC amount as decimal string, min 1. */\n amount: string;\n /** Payment platform — use `PLATFORMS.REVOLUT` etc. */\n platform: PlatformEntry;\n /** Fiat currency — use `CURRENCIES.EUR` etc. */\n currency: CurrencyEntry;\n /** Platform-specific identifier (username, email, IBAN). */\n identifier: string;\n /** Optional: restrict the deposit to this taker wallet (OTC private order). */\n otcTaker?: string;\n /** Optional SDK-only referral metadata for telemetry attribution. */\n referralId?: string;\n /** Optional SDK-only integrator metadata for telemetry attribution. */\n integratorId?: string;\n /**\n * Optional per-wallet key to replay the first successful result for 10 minutes.\n *\n * Browser-only: the replay cache is backed by `sessionStorage` and is a no-op\n * in Node/worker runtimes (no duplicate protection there). It is honored only\n * by the `Offramp` class (`createDeposit`) / the `useOfframp` hook — the\n * standalone `offramp()` function ignores it. For server-side dedup, call\n * `deposits(walletAddress)` and reuse an existing open deposit before creating\n * a new one (the SDK's own resume behavior does this for the delegation step).\n */\n idempotencyKey?: string;\n}\n\nexport interface OfframpResult {\n depositId: string;\n txHash: string;\n /** Whether an existing undelegated deposit was resumed. */\n resumed: boolean;\n /** OTC link for the taker, present when `otcTaker` was provided. */\n otcLink?: string;\n}\n\nexport type OfframpStep =\n | \"approving\"\n | \"registering\"\n | \"depositing\"\n | \"confirming\"\n | \"delegating\"\n | \"restricting\"\n | \"resuming\"\n | \"done\";\n\nexport type OfframpState =\n | \"idle\"\n | \"approving\"\n | \"registering\"\n | \"depositing\"\n | \"confirming\"\n | \"delegating\"\n | \"done\"\n | \"error\";\n\nexport interface OfframpProgress {\n step: OfframpStep;\n txHash?: string;\n depositId?: string;\n}\n\nexport type OnProgress = (progress: OfframpProgress) => void;\n\nexport type DepositStatus = \"active\" | \"empty\" | \"closed\";\n\nexport interface OfframpQuoteInput {\n amount: string;\n currency: CurrencyEntry;\n platform: PlatformEntry;\n}\n\nexport interface OfframpQuote {\n amountUsdc: number;\n expectedFiat: number;\n effectiveRate: number;\n vaultSpreadBps: number;\n}\n\nexport interface OfframpVaultStatus {\n rateManagerId: string;\n rateManagerAddress: string;\n /**\n * Delegate vault manager fee in basis points (currently 10 = 0.10%). Charged\n * by the vault's rate manager on each fill and deducted from the USDC released\n * to the buyer; not added to the maker's deposit cost. See the README \"Fees\".\n */\n feeRateBps: number;\n escrow: string;\n isActive: boolean;\n}\n\nexport interface OfframpCreateOptions {\n integratorId?: string;\n referralId?: string;\n telemetry?: boolean;\n /**\n * Override the curator REST base URL (default `https://api.zkp2p.xyz`) used\n * for maker registration/validation and the SDK's REST calls. For\n * testing/proxying/mocking only — the indexer and Base RPC always target\n * mainnet. Honored by the `Offramp` class (`createDeposit`); absent ⇒ default\n * behavior is unchanged.\n */\n apiBaseUrl?: string;\n}\n\nexport interface DepositInfo {\n /** Numeric deposit ID. Pass this to `close()`. */\n depositId: string;\n /** Composite ID (escrowAddress_depositId). */\n compositeId: string;\n /** Creation transaction hash. */\n txHash?: string;\n status: DepositStatus;\n remainingUsdc: number;\n outstandingUsdc: number;\n totalTakenUsdc: number;\n fulfilledIntents: number;\n paymentMethods: string[];\n currencies: string[];\n rateSource: string;\n delegated: boolean;\n escrowAddress: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,IAAM,sBAAsB;AAAA,EACjC,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASrB,iCAAiC;AAAA,EACjC,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,mBAAmB;AAAA,EACnB,gBAAgB;AAAA,EAChB,aAAa;AACf;","names":[]}