@typus/typus-sdk 1.2.38-exp → 1.2.38
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/lib/mainnet.json
CHANGED
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"SCALLOP_MARKET": "0xa757975255146dc9686aa823b7838b507f315d704f428cbadad2f4ea061939d9",
|
|
31
31
|
"SCALLOP_REWARD_POOL_FOR_SUI": "0x162250ef72393a4ad3d46294c4e1bdfcb03f04c869d390e7efbfc995353a7ee9",
|
|
32
32
|
"SCALLOP_REWARD_POOL_FOR_USDC": "0xf4268cc9b9413b9bfe09e8966b8de650494c9e5784bf0930759cfef4904daff8",
|
|
33
|
-
"VERSION": "2.18.
|
|
33
|
+
"VERSION": "2.18.13",
|
|
34
34
|
"EXP_GUESS_PACKAGE": "0x32d670520a10a87b8c042d2259c2d1f7c319329bafcf6f893ad9aaf01a43db8b",
|
|
35
35
|
"EXP_GUESS_PACKAGE_ORIGIN": "0x32d670520a10a87b8c042d2259c2d1f7c319329bafcf6f893ad9aaf01a43db8b",
|
|
36
36
|
"EXP_GUESS_REGISTRY": "0x70c6cbe6764b315cee1b24f483a0fc8307f047f1fab2a0d4438624845e6ba3f2",
|
|
37
37
|
"FRAMEWORK_PACKAGE": "0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274",
|
|
38
|
-
"SINGLE_COLLATERAL_PACKAGE": "
|
|
38
|
+
"SINGLE_COLLATERAL_PACKAGE": "0xb12e58dee672ad3161e023ac2315e2d39866fbf0960abcb1ce755f24f5578b59",
|
|
39
39
|
"SINGLE_COLLATERAL_PACKAGE_ORIGIN": "0x321848bf1ae327a9e022ccb3701940191e02fa193ab160d9c0e49cd3c003de3a",
|
|
40
40
|
"SINGLE_COLLATERAL_REGISTRY": "0x3d70b09359e3ca8301ae0abeda4f2fdf72ce313ba58c919ce568e5f535fd2ea8",
|
|
41
41
|
"SINGLE_COLLATERAL_PORTFOLIO_VAULT_REGISTRY": "0xa1a186d050e3172ef4701c16048c99b11f785969874fa2642b9cbcf59cde7fc0",
|
|
@@ -9,6 +9,6 @@ export interface ExpLeaderBoard {
|
|
|
9
9
|
total_exp_earn: number;
|
|
10
10
|
owner: string | undefined;
|
|
11
11
|
}
|
|
12
|
-
export declare function getExpLeaderBoardWithOwner(expLeaderBoard: ExpLeaderBoard[], ownerMap: Map<string, string>): ExpLeaderBoard[]
|
|
12
|
+
export declare function getExpLeaderBoardWithOwner(expLeaderBoard: ExpLeaderBoard[], ownerMap: Map<string, string>): Promise<ExpLeaderBoard[]>;
|
|
13
13
|
export declare function getExpLeaderBoard(startTimestamp: string, endTimestamp?: string): Promise<ExpLeaderBoard[]>;
|
|
14
14
|
export {};
|
|
@@ -268,9 +268,13 @@ function getBidderLeaderBoard(startTimestamp, end) {
|
|
|
268
268
|
}
|
|
269
269
|
exports.getBidderLeaderBoard = getBidderLeaderBoard;
|
|
270
270
|
function getExpLeaderBoardWithOwner(expLeaderBoard, ownerMap) {
|
|
271
|
-
return
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
272
|
+
return __generator(this, function (_a) {
|
|
273
|
+
return [2 /*return*/, expLeaderBoard.map(function (l) {
|
|
274
|
+
l.owner = ownerMap.get(l.nft_id);
|
|
275
|
+
return l;
|
|
276
|
+
})];
|
|
277
|
+
});
|
|
274
278
|
});
|
|
275
279
|
}
|
|
276
280
|
exports.getExpLeaderBoardWithOwner = getExpLeaderBoardWithOwner;
|
|
@@ -323,3 +327,7 @@ function getExpLeaderBoard(startTimestamp, endTimestamp) {
|
|
|
323
327
|
});
|
|
324
328
|
}
|
|
325
329
|
exports.getExpLeaderBoard = getExpLeaderBoard;
|
|
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
|