@heliofi/withdraw-core 0.0.6-alpha.1780933463 → 0.0.7-alpha.1781007397

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 CHANGED
@@ -6,5 +6,7 @@ Core JS/TS SDK for MoonPay Commerce withdrawals — routes, quotes, balance chec
6
6
 
7
7
  ```bash
8
8
  npm install @heliofi/withdraw-core
9
+ yarn add @heliofi/withdraw-core
10
+ pnpm add @heliofi/withdraw-core
9
11
  ```
10
12
 
@@ -24,6 +24,7 @@ export interface QuoteSummary {
24
24
  expiresAt: string;
25
25
  }
26
26
  export interface QuoteResponse {
27
+ withdrawalDetailId: string;
27
28
  token: string;
28
29
  prepared: PreparedTransaction;
29
30
  summary: QuoteSummary;
@@ -8,18 +8,14 @@ import type { SignedTransactionKind } from './enums';
8
8
  export interface PrepareWithdrawalParams {
9
9
  /** Merchant withdrawal config ID — used in the URL path. */
10
10
  withdrawalConfigId: string;
11
- /** EOA address that will sign the transaction. */
12
- eoa: string;
13
- /** Deposit wallet holding the source funds. */
14
- depositWallet: string;
11
+ /** Owner address of the source wallet (lane-specific format). */
12
+ ownerAddress: string;
15
13
  /** Destination address to receive the withdrawn funds. */
16
14
  recipient: string;
17
15
  /** Amount in atomic units (no decimals), serialised as a string. */
18
16
  amount: string;
19
- /** Destination chain ID (e.g. 137 for Polygon, 8453 for Base). */
20
- dstChainId: number;
21
- /** Destination token symbol or contract address. */
22
- dstToken: string;
17
+ /** Destination currency ID (MongoDB ObjectId). */
18
+ toCurrencyId: string;
23
19
  }
24
20
  /**
25
21
  * Parameters for `PATCH /withdraw/:withdrawalDetailId/prepare`.
@@ -83,7 +83,10 @@ class h {
83
83
  this.api = new O(e);
84
84
  }
85
85
  async getWithdrawalConfig(e, s) {
86
- return this.api.get(`/withdrawal-configs/${e}/public`, s);
86
+ return this.api.get(
87
+ `/withdrawal-configs/${e}/public`,
88
+ s
89
+ );
87
90
  }
88
91
  async getRoutes(e, s) {
89
92
  return this.api.get(`/withdraw/${e}/routes`, s);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@heliofi/withdraw-core",
3
3
  "private": false,
4
- "version": "0.0.6-alpha.1780933463",
4
+ "version": "0.0.7-alpha.1781007397",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",