@carrot-protocol/boost-http-client 0.2.15-group-refactor1-dev-2702e47 → 0.2.15-group-refactor1-dev-e792f4d
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.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/types.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -57,5 +57,5 @@ export declare class Client {
|
|
|
57
57
|
* @param request Withdraw leverage request parameters
|
|
58
58
|
* @returns Withdraw leverage operation result
|
|
59
59
|
*/
|
|
60
|
-
withdrawLeverage(clendGroup: web3.PublicKey,
|
|
60
|
+
withdrawLeverage(clendGroup: web3.PublicKey, outputTokenMint: web3.PublicKey, assetTokenMint: web3.PublicKey, liabilityTokenMint: web3.PublicKey, uiAmount: number, slippageBps: number, withdrawAll: boolean): Promise<any>;
|
|
61
61
|
}
|
package/dist/index.js
CHANGED
|
@@ -302,11 +302,11 @@ class Client {
|
|
|
302
302
|
* @param request Withdraw leverage request parameters
|
|
303
303
|
* @returns Withdraw leverage operation result
|
|
304
304
|
*/
|
|
305
|
-
async withdrawLeverage(clendGroup,
|
|
305
|
+
async withdrawLeverage(clendGroup, outputTokenMint, assetTokenMint, liabilityTokenMint, uiAmount, slippageBps, withdrawAll) {
|
|
306
306
|
const req = {
|
|
307
307
|
owner: this.address(),
|
|
308
308
|
clendGroup,
|
|
309
|
-
|
|
309
|
+
outputTokenMint,
|
|
310
310
|
assetTokenMint,
|
|
311
311
|
liabilityTokenMint,
|
|
312
312
|
withdrawAmountUi: uiAmount,
|
package/dist/types.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export interface AdjustLeverageResponse {
|
|
|
47
47
|
export interface WithdrawLeverageRequest {
|
|
48
48
|
owner: web3.PublicKey;
|
|
49
49
|
clendGroup: web3.PublicKey;
|
|
50
|
-
|
|
50
|
+
outputTokenMint: web3.PublicKey;
|
|
51
51
|
assetTokenMint: web3.PublicKey;
|
|
52
52
|
liabilityTokenMint: web3.PublicKey;
|
|
53
53
|
withdrawAmountUi: number;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -378,7 +378,7 @@ export class Client {
|
|
|
378
378
|
*/
|
|
379
379
|
async withdrawLeverage(
|
|
380
380
|
clendGroup: web3.PublicKey,
|
|
381
|
-
|
|
381
|
+
outputTokenMint: web3.PublicKey,
|
|
382
382
|
assetTokenMint: web3.PublicKey,
|
|
383
383
|
liabilityTokenMint: web3.PublicKey,
|
|
384
384
|
uiAmount: number,
|
|
@@ -388,7 +388,7 @@ export class Client {
|
|
|
388
388
|
const req: WithdrawLeverageRequest = {
|
|
389
389
|
owner: this.address(),
|
|
390
390
|
clendGroup,
|
|
391
|
-
|
|
391
|
+
outputTokenMint,
|
|
392
392
|
assetTokenMint,
|
|
393
393
|
liabilityTokenMint,
|
|
394
394
|
withdrawAmountUi: uiAmount,
|
package/src/types.ts
CHANGED
|
@@ -54,7 +54,7 @@ export interface AdjustLeverageResponse {
|
|
|
54
54
|
export interface WithdrawLeverageRequest {
|
|
55
55
|
owner: web3.PublicKey;
|
|
56
56
|
clendGroup: web3.PublicKey;
|
|
57
|
-
|
|
57
|
+
outputTokenMint: web3.PublicKey;
|
|
58
58
|
assetTokenMint: web3.PublicKey;
|
|
59
59
|
liabilityTokenMint: web3.PublicKey;
|
|
60
60
|
withdrawAmountUi: number;
|