@typus/typus-sdk 1.5.0 → 1.5.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-dov-single-v2/function/index.d.ts +1 -0
- package/dist/src/typus-dov-single-v2/function/index.js +1 -1
- package/dist/src/typus-launch/airdrop/view-function.js +3 -2
- package/dist/src/typus-launch/improvement-proposal/view-function.js +13 -9
- package/dist/src/typus-launch/ve-typus/view-function.js +3 -2
- package/package.json +1 -1
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
17
|
+
__exportStar(require("./bidding"), exports);
|
|
18
18
|
__exportStar(require("./token"), exports);
|
|
19
19
|
__exportStar(require("./vault"), exports);
|
|
@@ -59,9 +59,10 @@ function getAirdrop(config, input) {
|
|
|
59
59
|
target: "".concat(config.package.launch.airdrop, "::airdrop::get_airdrop_bcs"),
|
|
60
60
|
arguments: [transaction.object(config.registry.launch.airdrop), transaction.pure.address(input.user)],
|
|
61
61
|
});
|
|
62
|
-
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER,
|
|
62
|
+
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER, transactionBlock: transaction })];
|
|
63
63
|
case 1:
|
|
64
|
-
bytes = (_a.sent()).results[0]
|
|
64
|
+
bytes = (_a.sent()).results[0]
|
|
65
|
+
.returnValues[0][0];
|
|
65
66
|
reader = new bcs_1.BcsReader(new Uint8Array(bytes));
|
|
66
67
|
reader.readULEB();
|
|
67
68
|
return [2 /*return*/, reader.readVec(function (reader) {
|
|
@@ -54,7 +54,7 @@ var constants_1 = require("../../../src/constants");
|
|
|
54
54
|
*/
|
|
55
55
|
function getOngoingTips(config, input) {
|
|
56
56
|
return __awaiter(this, void 0, void 0, function () {
|
|
57
|
-
var provider, transaction, bytes, reader;
|
|
57
|
+
var provider, transaction, results, bytes, reader;
|
|
58
58
|
return __generator(this, function (_a) {
|
|
59
59
|
switch (_a.label) {
|
|
60
60
|
case 0:
|
|
@@ -68,9 +68,10 @@ function getOngoingTips(config, input) {
|
|
|
68
68
|
transaction.pure.option("address", input.user),
|
|
69
69
|
],
|
|
70
70
|
});
|
|
71
|
-
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER,
|
|
71
|
+
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER, transactionBlock: transaction })];
|
|
72
72
|
case 1:
|
|
73
|
-
|
|
73
|
+
results = (_a.sent()).results;
|
|
74
|
+
bytes = results[0].returnValues[0][0];
|
|
74
75
|
reader = new bcs_1.BcsReader(new Uint8Array(bytes));
|
|
75
76
|
reader.readULEB();
|
|
76
77
|
return [2 /*return*/, reader.readVec(function (reader) {
|
|
@@ -132,9 +133,10 @@ function getEndedTips(config) {
|
|
|
132
133
|
target: "".concat(config.package.launch.improvementProposal, "::improvement_proposal::get_ended_tips_bcs"),
|
|
133
134
|
arguments: [transaction.object(config.registry.launch.improvementProposal)],
|
|
134
135
|
});
|
|
135
|
-
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER,
|
|
136
|
+
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER, transactionBlock: transaction })];
|
|
136
137
|
case 1:
|
|
137
|
-
bytes = (_a.sent()).results[0]
|
|
138
|
+
bytes = (_a.sent()).results[0]
|
|
139
|
+
.returnValues[0][0];
|
|
138
140
|
reader = new bcs_1.BcsReader(new Uint8Array(bytes));
|
|
139
141
|
reader.readULEB();
|
|
140
142
|
return [2 /*return*/, reader.readVec(function (reader) {
|
|
@@ -195,9 +197,10 @@ function getOngoingTipVotes(config, input) {
|
|
|
195
197
|
target: "".concat(config.package.launch.improvementProposal, "::improvement_proposal::get_ongoing_tip_votes_bcs"),
|
|
196
198
|
arguments: [transaction.object(config.registry.launch.improvementProposal), transaction.pure.address(input.user)],
|
|
197
199
|
});
|
|
198
|
-
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER,
|
|
200
|
+
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER, transactionBlock: transaction })];
|
|
199
201
|
case 1:
|
|
200
|
-
bytes = (_a.sent()).results[0]
|
|
202
|
+
bytes = (_a.sent()).results[0]
|
|
203
|
+
.returnValues[0][0];
|
|
201
204
|
reader = new bcs_1.BcsReader(new Uint8Array(bytes));
|
|
202
205
|
reader.readULEB();
|
|
203
206
|
return [2 /*return*/, reader.readVec(function (reader) {
|
|
@@ -230,9 +233,10 @@ function getEndedTipVotes(config, input) {
|
|
|
230
233
|
target: "".concat(config.package.launch.improvementProposal, "::improvement_proposal::get_ended_tip_votes_bcs"),
|
|
231
234
|
arguments: [transaction.object(config.registry.launch.improvementProposal), transaction.pure.address(input.user)],
|
|
232
235
|
});
|
|
233
|
-
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER,
|
|
236
|
+
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER, transactionBlock: transaction })];
|
|
234
237
|
case 1:
|
|
235
|
-
bytes = (_a.sent()).results[0]
|
|
238
|
+
bytes = (_a.sent()).results[0]
|
|
239
|
+
.returnValues[0][0];
|
|
236
240
|
reader = new bcs_1.BcsReader(new Uint8Array(bytes));
|
|
237
241
|
reader.readULEB();
|
|
238
242
|
return [2 /*return*/, reader.readVec(function (reader) {
|
|
@@ -55,9 +55,10 @@ function getVeTypus(config, input) {
|
|
|
55
55
|
target: "".concat(config.package.launch.veTypus, "::ve_typus::get_ve_typus_bcs"),
|
|
56
56
|
arguments: [transaction.object(config.registry.launch.veTypus), transaction.pure.address(input.user)],
|
|
57
57
|
});
|
|
58
|
-
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER,
|
|
58
|
+
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER, transactionBlock: transaction })];
|
|
59
59
|
case 1:
|
|
60
|
-
bytes = (_a.sent()).results[0]
|
|
60
|
+
bytes = (_a.sent()).results[0]
|
|
61
|
+
.returnValues[0][0];
|
|
61
62
|
reader = new bcs_1.BcsReader(new Uint8Array(bytes));
|
|
62
63
|
reader.readULEB();
|
|
63
64
|
return [2 /*return*/, reader.readVec(function (reader) {
|