@typus/typus-sdk 1.2.39-exp → 1.2.40
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",
|
|
@@ -66,5 +66,6 @@
|
|
|
66
66
|
"mysten_labs": "0x985a37095c597ecfa072b0f389df689ee4d9c99bcf4b175aa53be52e2e5f25b8",
|
|
67
67
|
"none": "0x88dba869e789d0725ae55fbb446f6e38065b67e1f26b10ec57322b18f4de9892",
|
|
68
68
|
"diceProfitSharing": "0x42ba35a057e38baf19e916b0f9ad5d98bb23b7fc246b4d659fc21c608790e872",
|
|
69
|
+
"expProfitSharing": "0x2d1d2d29ab784fae88a4e2f96a97fc9e21723402bf778f733acf1520c4c7e55d",
|
|
69
70
|
"STRATEGY_POOL": "0x2c60ddd50d76beb00faa025962d566359a6ea05b1f7f19ac6bd050f4db8c885c"
|
|
70
71
|
}
|
|
@@ -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
|
+
// })();
|
package/lib/utils/token.js
CHANGED
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getDrawResult = void 0;
|
|
40
|
-
var apiUrl = "https://us-central1-aqueous-freedom-378103.cloudfunctions.net/draw-result-
|
|
40
|
+
var apiUrl = "https://us-central1-aqueous-freedom-378103.cloudfunctions.net/draw-result-2";
|
|
41
41
|
function getDrawResult(network, packageId, registry, index, amount, guess_1, larger_than_1, guess_2, larger_than_2, vrf_input_1, vrf_input_2) {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function () {
|
|
43
43
|
var queryParams, vrf_input_1_string, vrf_input_2_string, apiUrlWithParams, response, data;
|
|
@@ -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
|