@carrot-protocol/boost-http-client 0.2.4-fe-math-dev-63c38da → 0.2.4-fe-math-dev-bb3060a

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
@@ -318,10 +318,14 @@ function parseBank(bankJson) {
318
318
  assetAmountUi: Number(bankJson.assetAmountUi),
319
319
  assetInitWeight: Number(bankJson.assetInitWeight),
320
320
  assetMaintWeight: Number(bankJson.assetMaintWeight),
321
+ totalAssetShares: Number(bankJson.totalAssetShares),
322
+ assetShareValue: Number(bankJson.assetShareValue),
321
323
  liabilityAmount: new anchor_1.BN(bankJson.liabilityAmount, "hex"),
322
324
  liabilityAmountUi: Number(bankJson.liabilityAmountUi),
323
325
  liabilityInitWeight: Number(bankJson.liabilityInitWeight),
324
326
  liabilityMaintWeight: Number(bankJson.liabilityMaintWeight),
327
+ totalLiabilityShares: Number(bankJson.totalLiabilityShares),
328
+ liabilityShareValue: Number(bankJson.liabilityShareValue),
325
329
  price: Number(bankJson.price),
326
330
  depositLimit: new anchor_1.BN(bankJson.depositLimit, "hex"),
327
331
  depositLimitUi: Number(bankJson.depositLimitUi),
package/dist/types.d.ts CHANGED
@@ -108,10 +108,14 @@ export interface Bank {
108
108
  assetAmountUi: number;
109
109
  assetInitWeight: number;
110
110
  assetMaintWeight: number;
111
+ totalAssetShares: number;
112
+ assetShareValue: number;
111
113
  liabilityAmount: BN;
112
114
  liabilityAmountUi: number;
113
115
  liabilityInitWeight: number;
114
116
  liabilityMaintWeight: number;
117
+ totalLiabilityShares: number;
118
+ liabilityShareValue: number;
115
119
  price: number;
116
120
  depositLimit: BN;
117
121
  depositLimitUi: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/boost-http-client",
3
- "version": "0.2.4-fe-math-dev-63c38da",
3
+ "version": "0.2.4-fe-math-dev-bb3060a",
4
4
  "description": "HTTP client for Carrot Boost API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,6 +26,6 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@coral-xyz/anchor": "^0.29.0",
29
- "@carrot-protocol/clend-common": "0.1.0-fe-math-dev-62e8e32"
29
+ "@carrot-protocol/clend-common": "^0.1.0"
30
30
  }
31
31
  }
package/src/index.ts CHANGED
@@ -393,10 +393,14 @@ function parseBank(bankJson: any): Bank {
393
393
  assetAmountUi: Number(bankJson.assetAmountUi),
394
394
  assetInitWeight: Number(bankJson.assetInitWeight),
395
395
  assetMaintWeight: Number(bankJson.assetMaintWeight),
396
+ totalAssetShares: Number(bankJson.totalAssetShares),
397
+ assetShareValue: Number(bankJson.assetShareValue),
396
398
  liabilityAmount: new BN(bankJson.liabilityAmount, "hex"),
397
399
  liabilityAmountUi: Number(bankJson.liabilityAmountUi),
398
400
  liabilityInitWeight: Number(bankJson.liabilityInitWeight),
399
401
  liabilityMaintWeight: Number(bankJson.liabilityMaintWeight),
402
+ totalLiabilityShares: Number(bankJson.totalLiabilityShares),
403
+ liabilityShareValue: Number(bankJson.liabilityShareValue),
400
404
  price: Number(bankJson.price),
401
405
  depositLimit: new BN(bankJson.depositLimit, "hex"),
402
406
  depositLimitUi: Number(bankJson.depositLimitUi),
package/src/types.ts CHANGED
@@ -125,10 +125,14 @@ export interface Bank {
125
125
  assetAmountUi: number;
126
126
  assetInitWeight: number;
127
127
  assetMaintWeight: number;
128
+ totalAssetShares: number;
129
+ assetShareValue: number;
128
130
  liabilityAmount: BN;
129
131
  liabilityAmountUi: number;
130
132
  liabilityInitWeight: number;
131
133
  liabilityMaintWeight: number;
134
+ totalLiabilityShares: number;
135
+ liabilityShareValue: number;
132
136
  price: number;
133
137
  depositLimit: BN;
134
138
  depositLimitUi: number;