@typus/typus-sdk 1.3.22 → 1.3.23
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/config.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"EXP_GUESS": "0x7679ab7157f13ec945579e3098ba589eb8b4eec841c775799d2aa22b565187c7",
|
|
26
26
|
"LEADERBOARD": "0xc515a3e7fd12ba902f7f1ebe52c676136e1b34cb614ae9c79a46b257ca7d5534",
|
|
27
27
|
"MFUD": "0xb8d7e7ab783e56700c0212bd9f0938bba9dd3e7241c149e6c52b21334ec45ece",
|
|
28
|
-
"TAILS_STAKING": "",
|
|
28
|
+
"TAILS_STAKING": "0xeca3e88577dc3f45df8b7bace51f26b126271ce4c5fa33b3739fd7b69fc16559",
|
|
29
29
|
"TGLD": "0x8ee1af362fe9e0a29f6bad48d8ff44249ece5aaa77a4302c2ffcc90950e52ed2",
|
|
30
30
|
"USER": "0xb1b16eb4845b5ee1a29432b1f2bcfe8cbb33c234492baf31a706d82e28e18bce"
|
|
31
31
|
},
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"TGLD_TOKEN_POLICY": "0xd9461bd329f1df24be9698131b6e2c2b9eaac7c9cf6d76689112f2e57be12009",
|
|
54
54
|
"NFT_TRANSFER_POLICY": "0x55475b9e16d9a0176dcef37f83a1921b15f2cbd2711a5f30b9d952c0c8f5f957",
|
|
55
55
|
"STRATEGY_POOL": "0x2c60ddd50d76beb00faa025962d566359a6ea05b1f7f19ac6bd050f4db8c885c",
|
|
56
|
-
"TAILS_IDS": ""
|
|
56
|
+
"TAILS_IDS": "0x3a6a403eb7c123b6f4d25081078b6f07c0ee5987d3ac8ab3e6bcf707c1b0e778"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"TESTNET": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SuiClient, SuiObjectResponse } from "@mysten/sui.js/client";
|
|
2
|
-
import { KioskClient } from "@mysten/kiosk";
|
|
2
|
+
import { KioskClient, KioskListing } from "@mysten/kiosk";
|
|
3
3
|
export declare function getPool(provider: SuiClient, pool: string): Promise<PoolData>;
|
|
4
4
|
export interface PoolData {
|
|
5
5
|
pool_id: string;
|
|
@@ -16,8 +16,9 @@ export interface TailsId {
|
|
|
16
16
|
nftId: string;
|
|
17
17
|
kiosk: string;
|
|
18
18
|
kioskCap: string;
|
|
19
|
-
tails: Tails;
|
|
19
|
+
tails: Tails | undefined;
|
|
20
20
|
isPersonal: boolean;
|
|
21
|
+
listing?: KioskListing;
|
|
21
22
|
}
|
|
22
23
|
export interface kioskOwnerCap {
|
|
23
24
|
kioskId: string;
|
|
@@ -205,7 +205,7 @@ function getTailsIds(kioskClient, NFT_PACKAGE_ORIGIN, kioskOwnerCaps) {
|
|
|
205
205
|
tails = res.items
|
|
206
206
|
.filter(function (item) { return item.type == "".concat(NFT_PACKAGE_ORIGIN, "::typus_nft::Tails"); })
|
|
207
207
|
.map(function (item) {
|
|
208
|
-
// console.log(item
|
|
208
|
+
// console.log(item);
|
|
209
209
|
// @ts-ignore
|
|
210
210
|
var tails = item.data;
|
|
211
211
|
var t = {
|
|
@@ -213,6 +213,7 @@ function getTailsIds(kioskClient, NFT_PACKAGE_ORIGIN, kioskOwnerCaps) {
|
|
|
213
213
|
kioskCap: kioskOwnerCap.objectId,
|
|
214
214
|
isPersonal: kioskOwnerCap.isPersonal,
|
|
215
215
|
nftId: item.objectId,
|
|
216
|
+
listing: item.listing,
|
|
216
217
|
tails: tails,
|
|
217
218
|
};
|
|
218
219
|
return t;
|