@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 +2 -0
- package/dist/types/prepared.d.ts +1 -0
- package/dist/types/requests.d.ts +4 -8
- package/dist/withdraw-core.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/types/prepared.d.ts
CHANGED
package/dist/types/requests.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
12
|
-
|
|
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
|
|
20
|
-
|
|
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`.
|
package/dist/withdraw-core.js
CHANGED
|
@@ -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(
|
|
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);
|