@typus/typus-sdk 1.2.47 → 1.2.49
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/utils/typus-dov-single-v2/mfud-user-entry.d.ts +0 -2
- package/lib/utils/typus-dov-single-v2/mfud-user-entry.js +0 -2
- package/lib/utils/typus-dov-single-v2/user-entry.d.ts +0 -2
- package/lib/utils/typus-dov-single-v2/user-entry.js +0 -4
- package/lib/utils/typus-nft/fetch.d.ts +5 -1
- package/lib/utils/typus-nft/fetch.js +28 -30
- package/package.json +1 -1
|
@@ -94,8 +94,6 @@ export declare function getRedeemTx(input: {
|
|
|
94
94
|
}): TransactionBlock;
|
|
95
95
|
export declare function getNewBidTx(input: {
|
|
96
96
|
tx: TransactionBlock;
|
|
97
|
-
typusEcosystemVersion: string;
|
|
98
|
-
typusPointRegistry: string;
|
|
99
97
|
typusDovSinglePackageId: string;
|
|
100
98
|
typusDovSingleRegistry: string;
|
|
101
99
|
mfudPackageId: string;
|
|
@@ -311,8 +311,6 @@ function getNewBidTx(input) {
|
|
|
311
311
|
target: "".concat(input.typusDovSinglePackageId, "::tails_staking::new_bid"),
|
|
312
312
|
typeArguments: input.typeArguments,
|
|
313
313
|
arguments: [
|
|
314
|
-
input.tx.object(input.typusEcosystemVersion),
|
|
315
|
-
input.tx.object(input.typusPointRegistry),
|
|
316
314
|
input.tx.object(input.typusDovSingleRegistry),
|
|
317
315
|
input.tx.pure(input.index),
|
|
318
316
|
input.tx.makeMoveVec({ objects: [mfud] }),
|
|
@@ -173,8 +173,6 @@ export declare function getWithdrawHarvestClaimTx(input: {
|
|
|
173
173
|
*/
|
|
174
174
|
export declare function getNewBidTx(input: {
|
|
175
175
|
tx: TransactionBlock;
|
|
176
|
-
typusEcosystemVersion: string;
|
|
177
|
-
typusPointRegistry: string;
|
|
178
176
|
typusFrameworkPackageId: string;
|
|
179
177
|
typusDovSinglePackageId: string;
|
|
180
178
|
typusDovSingleRegistry: string;
|
|
@@ -445,8 +445,6 @@ function getNewBidTx(input) {
|
|
|
445
445
|
target: "".concat(input.typusDovSinglePackageId, "::tails_staking::new_bid"),
|
|
446
446
|
typeArguments: input.typeArguments,
|
|
447
447
|
arguments: [
|
|
448
|
-
input.tx.object(input.typusEcosystemVersion),
|
|
449
|
-
input.tx.object(input.typusPointRegistry),
|
|
450
448
|
input.tx.object(input.typusDovSingleRegistry),
|
|
451
449
|
input.tx.pure(input.index),
|
|
452
450
|
input.tx.makeMoveVec({ objects: [coin] }),
|
|
@@ -474,8 +472,6 @@ function getNewBidTx(input) {
|
|
|
474
472
|
target: "".concat(input.typusDovSinglePackageId, "::tails_staking::new_bid"),
|
|
475
473
|
typeArguments: input.typeArguments,
|
|
476
474
|
arguments: [
|
|
477
|
-
input.tx.object(input.typusEcosystemVersion),
|
|
478
|
-
input.tx.object(input.typusPointRegistry),
|
|
479
475
|
input.tx.object(input.typusDovSingleRegistry),
|
|
480
476
|
input.tx.pure(input.index),
|
|
481
477
|
input.tx.makeMoveVec({ objects: [coin] }),
|
|
@@ -18,7 +18,11 @@ interface TailsId {
|
|
|
18
18
|
kioskCap: string;
|
|
19
19
|
tails: Tails;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export interface kioskOwnerCap {
|
|
22
|
+
objectId: string;
|
|
23
|
+
kioskId: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function getTailsIds(kioskClient: KioskClient, nftConfig: any, address: string, kioskOwnerCaps: kioskOwnerCap[]): Promise<TailsId[]>;
|
|
22
26
|
export declare function getTails(provider: SuiClient, tailsIds: string[]): Promise<Tails[]>;
|
|
23
27
|
export declare function getTailsDynamicField(provider: SuiClient, tailsIds: string[]): Promise<[Tails[], Map<string, string>]>;
|
|
24
28
|
export declare function getTailsKiosk(provider: SuiClient, tailsToDynamicField: Map<string, string>): Promise<Map<string, string>>;
|
|
@@ -146,23 +146,21 @@ function getWhitelistMap(nftConfig, wlTokens) {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
exports.getWhitelistMap = getWhitelistMap;
|
|
149
|
-
function getTailsIds(kioskClient, nftConfig, address) {
|
|
149
|
+
function getTailsIds(kioskClient, nftConfig, address, kioskOwnerCaps) {
|
|
150
150
|
return __awaiter(this, void 0, void 0, function () {
|
|
151
|
-
var
|
|
152
|
-
var e_1,
|
|
153
|
-
return __generator(this, function (
|
|
154
|
-
switch (
|
|
155
|
-
case 0:
|
|
156
|
-
case 1:
|
|
157
|
-
kiosks = _d.sent();
|
|
151
|
+
var Tails, _loop_1, kioskOwnerCaps_1, kioskOwnerCaps_1_1, kioskOwnerCap, e_1_1;
|
|
152
|
+
var e_1, _a;
|
|
153
|
+
return __generator(this, function (_b) {
|
|
154
|
+
switch (_b.label) {
|
|
155
|
+
case 0:
|
|
158
156
|
Tails = [];
|
|
159
157
|
_loop_1 = function (kioskOwnerCap) {
|
|
160
158
|
var res, tails;
|
|
161
|
-
return __generator(this, function (
|
|
162
|
-
switch (
|
|
159
|
+
return __generator(this, function (_c) {
|
|
160
|
+
switch (_c.label) {
|
|
163
161
|
case 0: return [4 /*yield*/, kioskClient.getKiosk({ id: kioskOwnerCap.kioskId })];
|
|
164
162
|
case 1:
|
|
165
|
-
res =
|
|
163
|
+
res = _c.sent();
|
|
166
164
|
tails = res.items
|
|
167
165
|
.filter(function (item) { return item.type == "".concat(nftConfig.NFT_PACKAGE, "::typus_nft::Tails"); })
|
|
168
166
|
.map(function (item) {
|
|
@@ -183,33 +181,33 @@ function getTailsIds(kioskClient, nftConfig, address) {
|
|
|
183
181
|
}
|
|
184
182
|
});
|
|
185
183
|
};
|
|
186
|
-
|
|
184
|
+
_b.label = 1;
|
|
185
|
+
case 1:
|
|
186
|
+
_b.trys.push([1, 6, 7, 8]);
|
|
187
|
+
kioskOwnerCaps_1 = __values(kioskOwnerCaps), kioskOwnerCaps_1_1 = kioskOwnerCaps_1.next();
|
|
188
|
+
_b.label = 2;
|
|
187
189
|
case 2:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
_d.label = 3;
|
|
191
|
-
case 3:
|
|
192
|
-
if (!!_b.done) return [3 /*break*/, 6];
|
|
193
|
-
kioskOwnerCap = _b.value;
|
|
190
|
+
if (!!kioskOwnerCaps_1_1.done) return [3 /*break*/, 5];
|
|
191
|
+
kioskOwnerCap = kioskOwnerCaps_1_1.value;
|
|
194
192
|
return [5 /*yield**/, _loop_1(kioskOwnerCap)];
|
|
193
|
+
case 3:
|
|
194
|
+
_b.sent();
|
|
195
|
+
_b.label = 4;
|
|
195
196
|
case 4:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
case 5:
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
case 6: return [3 /*break*/, 9];
|
|
202
|
-
case 7:
|
|
203
|
-
e_1_1 = _d.sent();
|
|
197
|
+
kioskOwnerCaps_1_1 = kioskOwnerCaps_1.next();
|
|
198
|
+
return [3 /*break*/, 2];
|
|
199
|
+
case 5: return [3 /*break*/, 8];
|
|
200
|
+
case 6:
|
|
201
|
+
e_1_1 = _b.sent();
|
|
204
202
|
e_1 = { error: e_1_1 };
|
|
205
|
-
return [3 /*break*/,
|
|
206
|
-
case
|
|
203
|
+
return [3 /*break*/, 8];
|
|
204
|
+
case 7:
|
|
207
205
|
try {
|
|
208
|
-
if (
|
|
206
|
+
if (kioskOwnerCaps_1_1 && !kioskOwnerCaps_1_1.done && (_a = kioskOwnerCaps_1.return)) _a.call(kioskOwnerCaps_1);
|
|
209
207
|
}
|
|
210
208
|
finally { if (e_1) throw e_1.error; }
|
|
211
209
|
return [7 /*endfinally*/];
|
|
212
|
-
case
|
|
210
|
+
case 8: return [2 /*return*/, Tails];
|
|
213
211
|
}
|
|
214
212
|
});
|
|
215
213
|
});
|