@typus/typus-sdk 1.0.83 → 1.0.84

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.
@@ -9,5 +9,6 @@ interface TxHistory {
9
9
  Amount: number;
10
10
  Fee: number;
11
11
  BidSize: number;
12
+ BidPaid: number;
12
13
  }
13
14
  export {};
@@ -86,7 +86,7 @@ function parseTxHistory(datas, originPackage) {
86
86
  return type.startsWith(originPackage);
87
87
  })
88
88
  .reduce(function (promise, event) { return __awaiter(_this, void 0, void 0, function () {
89
- var txHistory, functionType, action, matches, typeArgs, assets, asset, parsedJson;
89
+ var txHistory, functionType, action, matches, typeArgs, assets, asset, b_asset, parsedJson;
90
90
  var _a;
91
91
  return __generator(this, function (_b) {
92
92
  switch (_b.label) {
@@ -100,6 +100,7 @@ function parseTxHistory(datas, originPackage) {
100
100
  typeArgs = matches[1].split(", ");
101
101
  assets = (0, token_1.typeArgsToAssets)(typeArgs);
102
102
  asset = action == "NewBid" ? assets[2] : assets[0];
103
+ b_asset = assets[1];
103
104
  parsedJson = event.parsedJson;
104
105
  txHistory.push({
105
106
  Vault: parsedJson.index,
@@ -110,6 +111,7 @@ function parseTxHistory(datas, originPackage) {
110
111
  Amount: Number(parsedJson.amount) / Math.pow(10, (0, token_1.assetToDecimal)(asset)),
111
112
  Fee: Number(parsedJson.fee) / Math.pow(10, (0, token_1.assetToDecimal)(asset)),
112
113
  BidSize: Number(parsedJson.size) / Math.pow(10, (0, token_1.assetToDecimal)(asset)),
114
+ BidPaid: Number(parsedJson.coin_value) / Math.pow(10, (0, token_1.assetToDecimal)(b_asset)),
113
115
  });
114
116
  return [2 /*return*/, txHistory];
115
117
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.0.83",
5
+ "version": "1.0.84",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/sui.js": "^0.37.1",