@carrot-protocol/boost-http-client 0.3.3-feat-historical-bank-balances-dev-df72015 → 0.3.3-feat-historical-bank-balances-dev-df97a5f
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 +3 -1
- package/dist/types.d.ts +0 -1
- package/package.json +1 -1
- package/src/index.ts +4 -2
- package/src/types.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -319,7 +319,9 @@ class Client {
|
|
|
319
319
|
}
|
|
320
320
|
const body = await handleApiCall(() => this.http.get(`/bank/historicalBalances?${queryParams.toString()}`));
|
|
321
321
|
const response = JSON.parse(body);
|
|
322
|
-
return
|
|
322
|
+
return {
|
|
323
|
+
historicalBalances: response,
|
|
324
|
+
};
|
|
323
325
|
}
|
|
324
326
|
async deposit(clendGroup, clendAccount, inputTokenMint, uiAmount) {
|
|
325
327
|
const req = {
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carrot-protocol/boost-http-client",
|
|
3
|
-
"version": "0.3.3-feat-historical-bank-balances-dev-
|
|
3
|
+
"version": "0.3.3-feat-historical-bank-balances-dev-df97a5f",
|
|
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
|
@@ -415,8 +415,10 @@ export class Client {
|
|
|
415
415
|
this.http.get(`/bank/historicalBalances?${queryParams.toString()}`),
|
|
416
416
|
);
|
|
417
417
|
|
|
418
|
-
const response
|
|
419
|
-
return
|
|
418
|
+
const response = JSON.parse(body);
|
|
419
|
+
return {
|
|
420
|
+
historicalBalances: response,
|
|
421
|
+
} as GetHistoricalBankBalancesResponse;
|
|
420
422
|
}
|
|
421
423
|
|
|
422
424
|
async deposit(
|