@carrot-protocol/boost-http-client 0.2.15-group-refactor1-dev-6ecf454 → 0.2.15-group-refactor1-dev-72c1344

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
@@ -247,12 +247,13 @@ class Client {
247
247
  const groups = [];
248
248
  for (const groupJson of marketJson.groups) {
249
249
  const group = new anchor_1.web3.PublicKey(groupJson.group);
250
+ const groupName = groupJson.groupName;
250
251
  const banks = [];
251
252
  for (const bankJson of groupJson.banks) {
252
253
  const bank = parseBank(bankJson);
253
254
  banks.push(bank);
254
255
  }
255
- groups.push({ group, banks });
256
+ groups.push({ group, groupName, banks });
256
257
  }
257
258
  const response = {
258
259
  groups,
@@ -269,6 +270,7 @@ class Client {
269
270
  const marketJson = JSON.parse(body);
270
271
  const group = {
271
272
  group: new anchor_1.web3.PublicKey(marketJson.group),
273
+ groupName: marketJson.groupName,
272
274
  banks: [],
273
275
  };
274
276
  for (const bankJson of marketJson.banks) {
package/dist/types.d.ts CHANGED
@@ -72,6 +72,7 @@ export interface GetGroupResponse {
72
72
  }
73
73
  export interface GroupAndBanks {
74
74
  group: web3.PublicKey;
75
+ groupName: string;
75
76
  banks: Bank[];
76
77
  }
77
78
  export interface GetUserRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/boost-http-client",
3
- "version": "0.2.15-group-refactor1-dev-6ecf454",
3
+ "version": "0.2.15-group-refactor1-dev-72c1344",
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
@@ -282,12 +282,13 @@ export class Client {
282
282
  const groups: GroupAndBanks[] = [];
283
283
  for (const groupJson of marketJson.groups) {
284
284
  const group: web3.PublicKey = new web3.PublicKey(groupJson.group);
285
+ const groupName = groupJson.groupName;
285
286
  const banks: Bank[] = [];
286
287
  for (const bankJson of groupJson.banks) {
287
288
  const bank = parseBank(bankJson);
288
289
  banks.push(bank);
289
290
  }
290
- groups.push({ group, banks });
291
+ groups.push({ group, groupName, banks });
291
292
  }
292
293
 
293
294
  const response: GetGroupsResponse = {
@@ -310,6 +311,7 @@ export class Client {
310
311
  const marketJson: any = JSON.parse(body);
311
312
  const group: GroupAndBanks = {
312
313
  group: new web3.PublicKey(marketJson.group),
314
+ groupName: marketJson.groupName,
313
315
  banks: [],
314
316
  };
315
317
  for (const bankJson of marketJson.banks) {
package/src/types.ts CHANGED
@@ -83,6 +83,7 @@ export interface GetGroupResponse {
83
83
 
84
84
  export interface GroupAndBanks {
85
85
  group: web3.PublicKey;
86
+ groupName: string;
86
87
  banks: Bank[];
87
88
  }
88
89