@typus/typus-sdk 1.4.34 → 1.4.36

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.
@@ -13,14 +13,14 @@
13
13
  },
14
14
  "PACKAGE": {
15
15
  "DOV_SINGLE": "0xde9493877a76b518d770a0cad0eaa53d8237a9c274dc2ca7b964609f8f0dd003",
16
- "DICE": "0x14f1676b7a3b3a6c35eeff747bdb6fcb5bfe920755086c4af1079c23107c22aa",
16
+ "DICE": "0x76f531c4f508731588e69fa0e7cd5d0bd17c3e9b0394ebf8b058deaa69fd4881",
17
17
  "FRAMEWORK": "0x5c6648fb219c046256488486d23d4af7bc562d5ab5c382e1f4b558066a327fe8",
18
18
  "TOKEN": "0xd8f04cd2a16c19c17428c3b4c22b01dd06740423b93fb7ee88fbe2676a82849d",
19
19
  "NFT": "0x153ead7b2ccad1483458d41f0daffa35965d89960d1024a4883ba52fb18332b3",
20
20
  "ORACLE": "0x978f65df8570a075298598a9965c18de9087f9e888eb3430fe20334f5c554cfd",
21
21
  "TYPUS": "0x83a1e6784a74929c8b9ccbca224bc9378fa1ebec04baa552d96025fabc39834c",
22
22
  "PERP": "",
23
- "SAFU": "0x99e220c2ef63f92c789eca1073a0655fe209205d02ae525ca69b5efd85b914af"
23
+ "SAFU": "0x332171ebd301a3e76c5be547046f14bb229f1200aadf5038b5a6ede411cb8a16"
24
24
  },
25
25
  "VERSION": {
26
26
  "TYPUS": "0xd2882b992e986250b3304b59530700bc3850939f9a77e9e9dfa9cf1656f84b3d",
@@ -178,7 +178,7 @@ function parseTxHistory(datas, originPackage, vaults) {
178
178
  functionType = (_d = new RegExp("^([^::]+)::([^::]+)::([^<]+)").exec(event.type)) === null || _d === void 0 ? void 0 : _d.slice(1, 4);
179
179
  action = functionType[2];
180
180
  Tails = undefined;
181
- Index = event.parsedJson.index || event.parsedJson.vaultIndex;
181
+ Index = event.parsedJson.index || event.parsedJson.vault_index;
182
182
  if (Index) {
183
183
  _a = __read(parseVaultInfo(vaults, Index, action, event.parsedJson.log), 6), Period = _a[0], Vault = _a[1], RiskLevel = _a[2], d_token = _a[3], b_token = _a[4], o_token = _a[5];
184
184
  }
@@ -195,6 +195,9 @@ function parseTxHistory(datas, originPackage, vaults) {
195
195
  break;
196
196
  case "DailySignUpEvent":
197
197
  Action = "Check In";
198
+ if (event.parsedJson.log[1]) {
199
+ Amount = "".concat(Number(event.parsedJson.log[1]) / Math.pow(10, 9), " SUI");
200
+ }
198
201
  Tails = event.parsedJson.tails.map(function (num) { return "#".concat(num); }).join(" ");
199
202
  Exp = event.parsedJson.log[0];
200
203
  break;
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.4.34",
5
+ "version": "1.4.36",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.8.10",