@typus/typus-sdk 1.0.76 → 1.0.78
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.
|
@@ -59,6 +59,8 @@ function getPortfolioVaults(provider, registry, deposit_vault_registry, bid_vaul
|
|
|
59
59
|
})];
|
|
60
60
|
case 2: return [4 /*yield*/, (_a.sent())
|
|
61
61
|
.filter(function (portfolioVault) { return portfolioVault.error == undefined; })
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
.filter(function (portfolioVault) { return !portfolioVault.data.content.type.includes("0x2::balance::Balance"); })
|
|
62
64
|
.reduce(function (promise, portfolioVault) { return __awaiter(_this, void 0, void 0, function () {
|
|
63
65
|
var map, vaultId, auctionDelayTsMs, typeArgs, assets, deliveryInfo, info, config, auction, authority;
|
|
64
66
|
return __generator(this, function (_a) {
|
|
@@ -66,6 +68,7 @@ function getPortfolioVaults(provider, registry, deposit_vault_registry, bid_vaul
|
|
|
66
68
|
case 0: return [4 /*yield*/, promise];
|
|
67
69
|
case 1:
|
|
68
70
|
map = _a.sent();
|
|
71
|
+
console.log(JSON.stringify(portfolioVault, null, 4));
|
|
69
72
|
vaultId = portfolioVault.data.content.fields.id.id;
|
|
70
73
|
auctionDelayTsMs = "0";
|
|
71
74
|
typeArgs = new RegExp(".*<(.*), (.*), (.*)>").exec(portfolioVault.data.content.type).slice(1, 4);
|
|
@@ -261,7 +264,9 @@ function getPortfolioVaultAuctionDelayTsMs(provider, portfolio_vault) {
|
|
|
261
264
|
parentId: portfolio_vault.vaultId,
|
|
262
265
|
name: {
|
|
263
266
|
type: "vector<u8>",
|
|
264
|
-
value: [
|
|
267
|
+
value: [
|
|
268
|
+
97, 117, 99, 116, 105, 111, 110, 95, 115, 116, 97, 114, 116, 95, 100, 101, 108, 97, 121, 95, 116, 115, 95, 109, 115,
|
|
269
|
+
],
|
|
265
270
|
},
|
|
266
271
|
})
|
|
267
272
|
.then(function (result) {
|