@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 +3 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/index.ts +3 -1
- package/src/types.ts +1 -0
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
package/package.json
CHANGED
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) {
|