@carrot-protocol/boost-http-client 0.2.4-fe-math-dev-ce2629b → 0.2.4-fe-math-dev-b50a86a
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 +8 -0
- package/dist/types.d.ts +8 -0
- package/package.json +1 -1
- package/src/index.ts +8 -0
- package/src/types.ts +8 -0
package/dist/index.js
CHANGED
|
@@ -316,8 +316,16 @@ function parseBank(bankJson) {
|
|
|
316
316
|
utilizationRate: Number(bankJson.utilizationRate),
|
|
317
317
|
assetAmount: new anchor_1.BN(bankJson.assetAmount, "hex"),
|
|
318
318
|
assetAmountUi: Number(bankJson.assetAmountUi),
|
|
319
|
+
assetInitWeight: Number(bankJson.assetInitWeight),
|
|
320
|
+
assetMaintWeight: Number(bankJson.assetMaintWeight),
|
|
321
|
+
totalAssetShares: Number(bankJson.totalAssetShares),
|
|
322
|
+
assetShareValue: Number(bankJson.assetShareValue),
|
|
319
323
|
liabilityAmount: new anchor_1.BN(bankJson.liabilityAmount, "hex"),
|
|
320
324
|
liabilityAmountUi: Number(bankJson.liabilityAmountUi),
|
|
325
|
+
liabilityInitWeight: Number(bankJson.liabilityInitWeight),
|
|
326
|
+
liabilityMaintWeight: Number(bankJson.liabilityMaintWeight),
|
|
327
|
+
totalLiabilityShares: Number(bankJson.totalLiabilityShares),
|
|
328
|
+
liabilityShareValue: Number(bankJson.liabilityShareValue),
|
|
321
329
|
price: Number(bankJson.price),
|
|
322
330
|
depositLimit: new anchor_1.BN(bankJson.depositLimit, "hex"),
|
|
323
331
|
depositLimitUi: Number(bankJson.depositLimitUi),
|
package/dist/types.d.ts
CHANGED
|
@@ -106,8 +106,16 @@ export interface Bank {
|
|
|
106
106
|
utilizationRate: number;
|
|
107
107
|
assetAmount: BN;
|
|
108
108
|
assetAmountUi: number;
|
|
109
|
+
assetInitWeight: number;
|
|
110
|
+
assetMaintWeight: number;
|
|
111
|
+
totalAssetShares: number;
|
|
112
|
+
assetShareValue: number;
|
|
109
113
|
liabilityAmount: BN;
|
|
110
114
|
liabilityAmountUi: number;
|
|
115
|
+
liabilityInitWeight: number;
|
|
116
|
+
liabilityMaintWeight: number;
|
|
117
|
+
totalLiabilityShares: number;
|
|
118
|
+
liabilityShareValue: number;
|
|
111
119
|
price: number;
|
|
112
120
|
depositLimit: BN;
|
|
113
121
|
depositLimitUi: number;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -391,8 +391,16 @@ function parseBank(bankJson: any): Bank {
|
|
|
391
391
|
utilizationRate: Number(bankJson.utilizationRate),
|
|
392
392
|
assetAmount: new BN(bankJson.assetAmount, "hex"),
|
|
393
393
|
assetAmountUi: Number(bankJson.assetAmountUi),
|
|
394
|
+
assetInitWeight: Number(bankJson.assetInitWeight),
|
|
395
|
+
assetMaintWeight: Number(bankJson.assetMaintWeight),
|
|
396
|
+
totalAssetShares: Number(bankJson.totalAssetShares),
|
|
397
|
+
assetShareValue: Number(bankJson.assetShareValue),
|
|
394
398
|
liabilityAmount: new BN(bankJson.liabilityAmount, "hex"),
|
|
395
399
|
liabilityAmountUi: Number(bankJson.liabilityAmountUi),
|
|
400
|
+
liabilityInitWeight: Number(bankJson.liabilityInitWeight),
|
|
401
|
+
liabilityMaintWeight: Number(bankJson.liabilityMaintWeight),
|
|
402
|
+
totalLiabilityShares: Number(bankJson.totalLiabilityShares),
|
|
403
|
+
liabilityShareValue: Number(bankJson.liabilityShareValue),
|
|
396
404
|
price: Number(bankJson.price),
|
|
397
405
|
depositLimit: new BN(bankJson.depositLimit, "hex"),
|
|
398
406
|
depositLimitUi: Number(bankJson.depositLimitUi),
|
package/src/types.ts
CHANGED
|
@@ -123,8 +123,16 @@ export interface Bank {
|
|
|
123
123
|
utilizationRate: number;
|
|
124
124
|
assetAmount: BN;
|
|
125
125
|
assetAmountUi: number;
|
|
126
|
+
assetInitWeight: number;
|
|
127
|
+
assetMaintWeight: number;
|
|
128
|
+
totalAssetShares: number;
|
|
129
|
+
assetShareValue: number;
|
|
126
130
|
liabilityAmount: BN;
|
|
127
131
|
liabilityAmountUi: number;
|
|
132
|
+
liabilityInitWeight: number;
|
|
133
|
+
liabilityMaintWeight: number;
|
|
134
|
+
totalLiabilityShares: number;
|
|
135
|
+
liabilityShareValue: number;
|
|
128
136
|
price: number;
|
|
129
137
|
depositLimit: BN;
|
|
130
138
|
depositLimitUi: number;
|