@typus/typus-sdk 1.4.35 → 1.4.37
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/config-mainnet.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"ORACLE": "0x978f65df8570a075298598a9965c18de9087f9e888eb3430fe20334f5c554cfd",
|
|
21
21
|
"TYPUS": "0x83a1e6784a74929c8b9ccbca224bc9378fa1ebec04baa552d96025fabc39834c",
|
|
22
22
|
"PERP": "",
|
|
23
|
-
"SAFU": "
|
|
23
|
+
"SAFU": "0x95daa8858d7aeb0d79e312a82b0e5888f90fda6e279c7175d3c6140b4e901326"
|
|
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.
|
|
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
|
}
|
|
@@ -143,7 +143,7 @@ function getClaimRewardTx(config, tx, input) {
|
|
|
143
143
|
function getSnapshotTx(config, tx, input) {
|
|
144
144
|
var result = tx.moveCall({
|
|
145
145
|
target: "".concat(config.package.safu, "::safu::snapshot"),
|
|
146
|
-
typeArguments:
|
|
146
|
+
typeArguments: [],
|
|
147
147
|
arguments: [
|
|
148
148
|
tx.object(config.version.typus),
|
|
149
149
|
tx.object(config.registry.typus.leaderboard),
|