@typus/typus-sdk 1.9.0 → 1.9.1
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/dist/src/typus/airdrop/view-function.js +2 -0
- package/dist/src/typus/leaderboard/view-function.js +2 -0
- package/dist/src/typus/tails-staking/view-function.js +4 -0
- package/dist/src/typus-dov-single-v2/view-function.js +2 -0
- package/dist/src/typus-launch/airdrop/view-function.js +5 -1
- package/dist/src/typus-launch/improvement-proposal/view-function.js +20 -4
- package/dist/src/typus-launch/ve-typus/view-function.js +5 -1
- package/package.json +1 -1
|
@@ -60,6 +60,8 @@ function getStakingInfo(config, input) {
|
|
|
60
60
|
});
|
|
61
61
|
return [4 /*yield*/, provider.simulateTransaction({
|
|
62
62
|
transaction: transaction,
|
|
63
|
+
checksEnabled: false,
|
|
64
|
+
include: { commandResults: true },
|
|
63
65
|
})];
|
|
64
66
|
case 1:
|
|
65
67
|
results = (_a.sent()).commandResults;
|
|
@@ -108,6 +110,8 @@ function getLevelCounts(config) {
|
|
|
108
110
|
});
|
|
109
111
|
return [4 /*yield*/, provider.simulateTransaction({
|
|
110
112
|
transaction: transaction,
|
|
113
|
+
checksEnabled: false,
|
|
114
|
+
include: { commandResults: true },
|
|
111
115
|
})];
|
|
112
116
|
case 1:
|
|
113
117
|
results = (_a.sent()).commandResults;
|
|
@@ -571,6 +571,8 @@ function getRefundShares(config, input) {
|
|
|
571
571
|
});
|
|
572
572
|
return [4 /*yield*/, provider.simulateTransaction({
|
|
573
573
|
transaction: transaction,
|
|
574
|
+
checksEnabled: false,
|
|
575
|
+
include: { commandResults: true },
|
|
574
576
|
})];
|
|
575
577
|
case 1:
|
|
576
578
|
results = (_a.sent()).commandResults;
|
|
@@ -57,7 +57,11 @@ function getAirdrop(config, input) {
|
|
|
57
57
|
target: "".concat(config.package.launch.airdrop, "::airdrop::get_airdrop_bcs"),
|
|
58
58
|
arguments: [transaction.object(config.registry.launch.airdrop), transaction.pure.address(input.user)],
|
|
59
59
|
});
|
|
60
|
-
return [4 /*yield*/, provider.simulateTransaction({
|
|
60
|
+
return [4 /*yield*/, provider.simulateTransaction({
|
|
61
|
+
transaction: transaction,
|
|
62
|
+
checksEnabled: false,
|
|
63
|
+
include: { commandResults: true },
|
|
64
|
+
})];
|
|
61
65
|
case 1:
|
|
62
66
|
devInspectTransactionBlockResult = _a.sent();
|
|
63
67
|
bytes = devInspectTransactionBlockResult.commandResults[0].returnValues[0].bcs;
|
|
@@ -133,7 +133,11 @@ function getEndedTips(config) {
|
|
|
133
133
|
target: "".concat(config.package.launch.improvementProposal, "::improvement_proposal::get_ended_tips_bcs"),
|
|
134
134
|
arguments: [transaction.object(config.registry.launch.improvementProposal)],
|
|
135
135
|
});
|
|
136
|
-
return [4 /*yield*/, provider.simulateTransaction({
|
|
136
|
+
return [4 /*yield*/, provider.simulateTransaction({
|
|
137
|
+
transaction: transaction,
|
|
138
|
+
checksEnabled: false,
|
|
139
|
+
include: { commandResults: true },
|
|
140
|
+
})];
|
|
137
141
|
case 1:
|
|
138
142
|
devInspectTransactionBlockResult = _a.sent();
|
|
139
143
|
bytes = devInspectTransactionBlockResult.commandResults[0].returnValues[0].bcs;
|
|
@@ -198,7 +202,11 @@ function getOngoingTipVotes(config, input) {
|
|
|
198
202
|
target: "".concat(config.package.launch.improvementProposal, "::improvement_proposal::get_ongoing_tip_votes_bcs"),
|
|
199
203
|
arguments: [transaction.object(config.registry.launch.improvementProposal), transaction.pure.address(input.user)],
|
|
200
204
|
});
|
|
201
|
-
return [4 /*yield*/, provider.simulateTransaction({
|
|
205
|
+
return [4 /*yield*/, provider.simulateTransaction({
|
|
206
|
+
transaction: transaction,
|
|
207
|
+
checksEnabled: false,
|
|
208
|
+
include: { commandResults: true },
|
|
209
|
+
})];
|
|
202
210
|
case 1:
|
|
203
211
|
devInspectTransactionBlockResult = _a.sent();
|
|
204
212
|
bytes = devInspectTransactionBlockResult.commandResults[0].returnValues[0].bcs;
|
|
@@ -235,7 +243,11 @@ function getEndedTipVotes(config, input) {
|
|
|
235
243
|
target: "".concat(config.package.launch.improvementProposal, "::improvement_proposal::get_ended_tip_votes_bcs"),
|
|
236
244
|
arguments: [transaction.object(config.registry.launch.improvementProposal), transaction.pure.address(input.user)],
|
|
237
245
|
});
|
|
238
|
-
return [4 /*yield*/, provider.simulateTransaction({
|
|
246
|
+
return [4 /*yield*/, provider.simulateTransaction({
|
|
247
|
+
transaction: transaction,
|
|
248
|
+
checksEnabled: false,
|
|
249
|
+
include: { commandResults: true },
|
|
250
|
+
})];
|
|
239
251
|
case 1:
|
|
240
252
|
devInspectTransactionBlockResult = _a.sent();
|
|
241
253
|
bytes = devInspectTransactionBlockResult.commandResults[0].returnValues[0].bcs;
|
|
@@ -272,7 +284,11 @@ function getTipVotes(config, input) {
|
|
|
272
284
|
target: "".concat(config.package.launch.improvementProposal, "::improvement_proposal::get_tip_votes_bcs"),
|
|
273
285
|
arguments: [transaction.object(config.registry.launch.improvementProposal), transaction.pure.u64(input.index)],
|
|
274
286
|
});
|
|
275
|
-
return [4 /*yield*/, provider.simulateTransaction({
|
|
287
|
+
return [4 /*yield*/, provider.simulateTransaction({
|
|
288
|
+
transaction: transaction,
|
|
289
|
+
checksEnabled: false,
|
|
290
|
+
include: { commandResults: true },
|
|
291
|
+
})];
|
|
276
292
|
case 1:
|
|
277
293
|
devInspectTransactionBlockResult = _a.sent();
|
|
278
294
|
bytes = devInspectTransactionBlockResult.commandResults[0].returnValues[0].bcs;
|
|
@@ -54,7 +54,11 @@ function getVeTypus(config, input) {
|
|
|
54
54
|
target: "".concat(config.package.launch.veTypus, "::ve_typus::get_ve_typus_bcs"),
|
|
55
55
|
arguments: [transaction.object(config.registry.launch.veTypus), transaction.pure.address(input.user)],
|
|
56
56
|
});
|
|
57
|
-
return [4 /*yield*/, provider.simulateTransaction({
|
|
57
|
+
return [4 /*yield*/, provider.simulateTransaction({
|
|
58
|
+
transaction: transaction,
|
|
59
|
+
checksEnabled: false,
|
|
60
|
+
include: { commandResults: true },
|
|
61
|
+
})];
|
|
58
62
|
case 1:
|
|
59
63
|
devInspectTransactionBlockResult = _a.sent();
|
|
60
64
|
bytes = devInspectTransactionBlockResult.commandResults[0].returnValues[0].bcs;
|