@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 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 response;
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
@@ -254,7 +254,6 @@ export interface GetHistoricalBankBalancesRequest {
254
254
  endDate?: Date;
255
255
  }
256
256
  export interface GetHistoricalBankBalancesResponse {
257
- bank: Bank;
258
257
  historicalBalances: HistoricalBankBalance[];
259
258
  }
260
259
  export interface HistoricalBankBalance {
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-df72015",
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: GetHistoricalBankBalancesResponse = JSON.parse(body);
419
- return response;
418
+ const response = JSON.parse(body);
419
+ return {
420
+ historicalBalances: response,
421
+ } as GetHistoricalBankBalancesResponse;
420
422
  }
421
423
 
422
424
  async deposit(
package/src/types.ts CHANGED
@@ -292,7 +292,6 @@ export interface GetHistoricalBankBalancesRequest {
292
292
  }
293
293
 
294
294
  export interface GetHistoricalBankBalancesResponse {
295
- bank: Bank;
296
295
  historicalBalances: HistoricalBankBalance[];
297
296
  }
298
297