@typus/typus-sdk 1.2.37-exp → 1.2.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.
|
@@ -327,15 +327,7 @@ function getExpLeaderBoard(startTimestamp, endTimestamp) {
|
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
exports.getExpLeaderBoard = getExpLeaderBoard;
|
|
330
|
-
(
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
case 0: return [4 /*yield*/, getExpLeaderBoard("1709539200", "1709625600")];
|
|
335
|
-
case 1:
|
|
336
|
-
res = _a.sent();
|
|
337
|
-
console.log(res);
|
|
338
|
-
return [2 /*return*/];
|
|
339
|
-
}
|
|
340
|
-
});
|
|
341
|
-
}); })();
|
|
330
|
+
// (async () => {
|
|
331
|
+
// let res = await getExpLeaderBoard("1709539200", "1709625600");
|
|
332
|
+
// console.log(res);
|
|
333
|
+
// })();
|
|
@@ -145,7 +145,12 @@ function getSwitchNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap, nft
|
|
|
145
145
|
tx.moveCall({
|
|
146
146
|
target: "".concat(nftPackageId, "::tails_staking::claim_profit_sharing"),
|
|
147
147
|
typeArguments: typeArguments,
|
|
148
|
-
arguments: [tx.object(registry)],
|
|
148
|
+
arguments: [tx.object(registry), tx.pure("dice_profit")],
|
|
149
|
+
});
|
|
150
|
+
tx.moveCall({
|
|
151
|
+
target: "".concat(nftPackageId, "::tails_staking::claim_profit_sharing"),
|
|
152
|
+
typeArguments: typeArguments,
|
|
153
|
+
arguments: [tx.object(registry), tx.pure("exp_profit")],
|
|
149
154
|
});
|
|
150
155
|
tx.moveCall({
|
|
151
156
|
target: "".concat(nftPackageId, "::tails_staking::switch_nft"),
|
|
@@ -207,7 +212,12 @@ function getUnstakeNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap, ty
|
|
|
207
212
|
tx.moveCall({
|
|
208
213
|
target: "".concat(nftPackageId, "::tails_staking::claim_profit_sharing"),
|
|
209
214
|
typeArguments: typeArguments,
|
|
210
|
-
arguments: [tx.object(registry)],
|
|
215
|
+
arguments: [tx.object(registry), tx.pure("dice_profit")],
|
|
216
|
+
});
|
|
217
|
+
tx.moveCall({
|
|
218
|
+
target: "".concat(nftPackageId, "::tails_staking::claim_profit_sharing"),
|
|
219
|
+
typeArguments: typeArguments,
|
|
220
|
+
arguments: [tx.object(registry), tx.pure("exp_profit")],
|
|
211
221
|
});
|
|
212
222
|
tx.moveCall({
|
|
213
223
|
target: "".concat(nftPackageId, "::tails_staking::unstake_nft"),
|
|
@@ -160,7 +160,7 @@ function getTailsIds(kioskClient, nftConfig, address) {
|
|
|
160
160
|
var res, tails;
|
|
161
161
|
return __generator(this, function (_e) {
|
|
162
162
|
switch (_e.label) {
|
|
163
|
-
case 0: return [4 /*yield*/, kioskClient.getKiosk({ id: kioskOwnerCap.kioskId
|
|
163
|
+
case 0: return [4 /*yield*/, kioskClient.getKiosk({ id: kioskOwnerCap.kioskId })];
|
|
164
164
|
case 1:
|
|
165
165
|
res = _e.sent();
|
|
166
166
|
tails = res.items
|