@carrot-protocol/boost-http-client 0.4.4-handoff-dev-9a1c50a → 0.4.4-handoff-dev-d76eb2d
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.js +5 -5
- package/package.json +1 -1
- package/src/index.ts +5 -5
package/dist/index.js
CHANGED
|
@@ -340,7 +340,7 @@ class Client extends api_1.ApiClient {
|
|
|
340
340
|
};
|
|
341
341
|
const body = await this.handleApiCall(() => this.http.post("deposit", JSON.stringify(req)));
|
|
342
342
|
const depositResponse = JSON.parse(body);
|
|
343
|
-
const txSig = await this.send(depositResponse.unsignedBase64Tx, depositResponse.userRequestId,
|
|
343
|
+
const txSig = await this.send(depositResponse.unsignedBase64Tx, depositResponse.userRequestId, req.useJito);
|
|
344
344
|
return txSig;
|
|
345
345
|
}
|
|
346
346
|
async withdraw(clendAccount, outputTokenMint, uiAmount, withdrawAll, useJito) {
|
|
@@ -353,7 +353,7 @@ class Client extends api_1.ApiClient {
|
|
|
353
353
|
};
|
|
354
354
|
const body = await this.handleApiCall(() => this.http.post("withdraw", JSON.stringify(req)));
|
|
355
355
|
const withdrawResponse = JSON.parse(body);
|
|
356
|
-
const txSig = await this.send(withdrawResponse.unsignedBase64Tx, withdrawResponse.userRequestId,
|
|
356
|
+
const txSig = await this.send(withdrawResponse.unsignedBase64Tx, withdrawResponse.userRequestId, req.useJito);
|
|
357
357
|
return txSig;
|
|
358
358
|
}
|
|
359
359
|
/**
|
|
@@ -402,7 +402,7 @@ class Client extends api_1.ApiClient {
|
|
|
402
402
|
};
|
|
403
403
|
const body = await this.handleApiCall(() => this.http.post("leverage/adjust", JSON.stringify(req)));
|
|
404
404
|
const adjustLeverageResponse = JSON.parse(body);
|
|
405
|
-
const txSig = await this.send(adjustLeverageResponse.unsignedBase64Tx, adjustLeverageResponse.userRequestId,
|
|
405
|
+
const txSig = await this.send(adjustLeverageResponse.unsignedBase64Tx, adjustLeverageResponse.userRequestId, req.useJito);
|
|
406
406
|
return txSig;
|
|
407
407
|
}
|
|
408
408
|
/**
|
|
@@ -423,7 +423,7 @@ class Client extends api_1.ApiClient {
|
|
|
423
423
|
};
|
|
424
424
|
const body = await this.handleApiCall(() => this.http.post("leverage/withdraw", JSON.stringify(req)));
|
|
425
425
|
const withdrawLeverageResponse = JSON.parse(body);
|
|
426
|
-
const txSig = await this.send(withdrawLeverageResponse.unsignedBase64Tx, withdrawLeverageResponse.userRequestId,
|
|
426
|
+
const txSig = await this.send(withdrawLeverageResponse.unsignedBase64Tx, withdrawLeverageResponse.userRequestId, req.useJito);
|
|
427
427
|
return txSig;
|
|
428
428
|
}
|
|
429
429
|
/**
|
|
@@ -437,7 +437,7 @@ class Client extends api_1.ApiClient {
|
|
|
437
437
|
};
|
|
438
438
|
const body = await this.handleApiCall(() => this.http.post("emissions/withdraw", JSON.stringify(req)));
|
|
439
439
|
const withdrawEmissionsResponse = JSON.parse(body);
|
|
440
|
-
const txSig = await this.send(withdrawEmissionsResponse.unsignedBase64Tx, withdrawEmissionsResponse.userRequestId,
|
|
440
|
+
const txSig = await this.send(withdrawEmissionsResponse.unsignedBase64Tx, withdrawEmissionsResponse.userRequestId, req.useJito);
|
|
441
441
|
return txSig;
|
|
442
442
|
}
|
|
443
443
|
async getPerformanceChartingExtension(clendAccount) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -435,7 +435,7 @@ export class Client extends ApiClient {
|
|
|
435
435
|
const txSig = await this.send(
|
|
436
436
|
depositResponse.unsignedBase64Tx,
|
|
437
437
|
depositResponse.userRequestId,
|
|
438
|
-
|
|
438
|
+
req.useJito,
|
|
439
439
|
);
|
|
440
440
|
|
|
441
441
|
return txSig;
|
|
@@ -465,7 +465,7 @@ export class Client extends ApiClient {
|
|
|
465
465
|
const txSig = await this.send(
|
|
466
466
|
withdrawResponse.unsignedBase64Tx,
|
|
467
467
|
withdrawResponse.userRequestId,
|
|
468
|
-
|
|
468
|
+
req.useJito,
|
|
469
469
|
);
|
|
470
470
|
|
|
471
471
|
return txSig;
|
|
@@ -555,7 +555,7 @@ export class Client extends ApiClient {
|
|
|
555
555
|
const txSig = await this.send(
|
|
556
556
|
adjustLeverageResponse.unsignedBase64Tx,
|
|
557
557
|
adjustLeverageResponse.userRequestId,
|
|
558
|
-
|
|
558
|
+
req.useJito,
|
|
559
559
|
);
|
|
560
560
|
|
|
561
561
|
return txSig;
|
|
@@ -595,7 +595,7 @@ export class Client extends ApiClient {
|
|
|
595
595
|
const txSig = await this.send(
|
|
596
596
|
withdrawLeverageResponse.unsignedBase64Tx,
|
|
597
597
|
withdrawLeverageResponse.userRequestId,
|
|
598
|
-
|
|
598
|
+
req.useJito,
|
|
599
599
|
);
|
|
600
600
|
|
|
601
601
|
return txSig;
|
|
@@ -621,7 +621,7 @@ export class Client extends ApiClient {
|
|
|
621
621
|
const txSig = await this.send(
|
|
622
622
|
withdrawEmissionsResponse.unsignedBase64Tx,
|
|
623
623
|
withdrawEmissionsResponse.userRequestId,
|
|
624
|
-
|
|
624
|
+
req.useJito,
|
|
625
625
|
);
|
|
626
626
|
|
|
627
627
|
return txSig;
|