@typus/typus-sdk 1.4.67-testing-suilend-a → 1.4.68
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.
|
@@ -39,8 +39,6 @@ function typeArgToAsset(typeArg) {
|
|
|
39
39
|
return "USDY";
|
|
40
40
|
case "0x8993129d72e733985f7f1a00396cbd055bad6f817fee36576ce483c8bbb8b87b":
|
|
41
41
|
return "HIPPO";
|
|
42
|
-
case "0x83556891f4a0f233ce7b05cfe7f957d4020492a34f5405b2cb9377d060bef4bf":
|
|
43
|
-
return "sSUI";
|
|
44
42
|
case "0x949572061c09bbedef3ac4ffc42e58632291616f0605117cec86d840e09bf519":
|
|
45
43
|
if (typeArgs[1] === "usdc") {
|
|
46
44
|
return "wUSDC";
|
|
@@ -137,11 +137,13 @@ function parseTxHistory(datas) {
|
|
|
137
137
|
// console.log(asset, decimal);
|
|
138
138
|
switch (action) {
|
|
139
139
|
case "raise_fund":
|
|
140
|
-
|
|
140
|
+
// balance_value, deactivating_value, inactive_value,
|
|
141
|
+
// Number(log[2]) + Number(log[3]) + Number(log[4])
|
|
142
|
+
if (Number(log[2]) > 0) {
|
|
141
143
|
txHistory.push({
|
|
142
144
|
Action: "Deposit",
|
|
143
145
|
Index: log[0],
|
|
144
|
-
Amount: divByDecimal(Number(log[2])
|
|
146
|
+
Amount: divByDecimal(Number(log[2]), decimal),
|
|
145
147
|
Token: Token,
|
|
146
148
|
Exp: log[6],
|
|
147
149
|
Date: new Date(Number(event.timestampMs)),
|
|
@@ -47,7 +47,7 @@ var TypusConfig = /** @class */ (function () {
|
|
|
47
47
|
TypusConfig.default = function (network_1, customRpcEndpoint_1) {
|
|
48
48
|
return __awaiter(this, arguments, void 0, function (network, customRpcEndpoint, branch) {
|
|
49
49
|
var _a, typusConfig, _b, _c, _d, _e, _f, typusConfig, _g, _h, _j, _k, _l;
|
|
50
|
-
if (branch === void 0) { branch = "
|
|
50
|
+
if (branch === void 0) { branch = "main"; }
|
|
51
51
|
return __generator(this, function (_m) {
|
|
52
52
|
switch (_m.label) {
|
|
53
53
|
case 0:
|