@carrot-protocol/boost-http-client 0.4.0-stub-position-endpoints-dev-2ccd3c3 → 0.4.0-stub-position-endpoints-dev-666335f
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
|
@@ -78,6 +78,6 @@ export declare class Client extends ApiClient {
|
|
|
78
78
|
* Withdraw emissions from a bank
|
|
79
79
|
* @returns Withdraw emissions operation result
|
|
80
80
|
*/
|
|
81
|
-
withdrawEmissions(): Promise<string>;
|
|
81
|
+
withdrawEmissions(clendAccount: web3.PublicKey): Promise<string>;
|
|
82
82
|
getExtension(extension: ExtensionKey): Promise<((clendAccount: web3.PublicKey) => PositionChartingExtension) | ((group: web3.PublicKey) => GroupChartingExtension) | ((address?: web3.PublicKey) => WalletChartingExtension) | ((bank: web3.PublicKey) => BankChartingExtension)>;
|
|
83
83
|
}
|
package/dist/index.js
CHANGED
|
@@ -419,9 +419,9 @@ class Client extends api_1.ApiClient {
|
|
|
419
419
|
* Withdraw emissions from a bank
|
|
420
420
|
* @returns Withdraw emissions operation result
|
|
421
421
|
*/
|
|
422
|
-
async withdrawEmissions() {
|
|
422
|
+
async withdrawEmissions(clendAccount) {
|
|
423
423
|
const req = {
|
|
424
|
-
|
|
424
|
+
clendAccount,
|
|
425
425
|
};
|
|
426
426
|
const body = await this.handleApiCall(() => this.http.post("emissions/withdraw", JSON.stringify(req)));
|
|
427
427
|
const withdrawEmissionsResponse = JSON.parse(body);
|
package/dist/types.d.ts
CHANGED
|
@@ -95,7 +95,7 @@ export interface WithdrawLeverageResponse {
|
|
|
95
95
|
* Request to withdraw emissions from a bank
|
|
96
96
|
*/
|
|
97
97
|
export interface WithdrawEmissionsRequest {
|
|
98
|
-
|
|
98
|
+
clendAccount: web3.PublicKey;
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
101
|
* Response for withdraw emissions operation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carrot-protocol/boost-http-client",
|
|
3
|
-
"version": "0.4.0-stub-position-endpoints-dev-
|
|
3
|
+
"version": "0.4.0-stub-position-endpoints-dev-666335f",
|
|
4
4
|
"description": "HTTP client for Carrot Boost",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
package/src/index.ts
CHANGED
|
@@ -586,9 +586,9 @@ export class Client extends ApiClient {
|
|
|
586
586
|
* Withdraw emissions from a bank
|
|
587
587
|
* @returns Withdraw emissions operation result
|
|
588
588
|
*/
|
|
589
|
-
async withdrawEmissions(): Promise<string> {
|
|
589
|
+
async withdrawEmissions(clendAccount: web3.PublicKey): Promise<string> {
|
|
590
590
|
const req: WithdrawEmissionsRequest = {
|
|
591
|
-
|
|
591
|
+
clendAccount,
|
|
592
592
|
};
|
|
593
593
|
|
|
594
594
|
const body = await this.handleApiCall(() =>
|
package/src/types.ts
CHANGED