juno-network 0.2.7 → 0.2.8
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/main/codegen/cosmos/auth/v1beta1/query.lcd.js +10 -26
- package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +33 -89
- package/main/codegen/cosmos/evidence/v1beta1/query.lcd.js +5 -13
- package/main/codegen/cosmos/gov/v1/query.lcd.js +31 -79
- package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +31 -79
- package/main/codegen/cosmos/group/v1/query.lcd.js +29 -73
- package/main/codegen/cosmos/nft/v1beta1/query.lcd.js +25 -65
- package/main/codegen/cosmos/slashing/v1beta1/query.lcd.js +5 -13
- package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +38 -106
- package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +5 -13
- package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +18 -46
- package/main/codegen/ibc/core/channel/v1/query.lcd.js +51 -191
- package/main/codegen/ibc/core/client/v1/query.lcd.js +16 -48
- package/main/codegen/ibc/core/connection/v1/query.lcd.js +20 -60
- package/module/codegen/cosmos/auth/v1beta1/query.lcd.js +2 -18
- package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +6 -62
- package/module/codegen/cosmos/evidence/v1beta1/query.lcd.js +1 -9
- package/module/codegen/cosmos/gov/v1/query.lcd.js +5 -53
- package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +5 -53
- package/module/codegen/cosmos/group/v1/query.lcd.js +4 -48
- package/module/codegen/cosmos/nft/v1beta1/query.lcd.js +5 -45
- package/module/codegen/cosmos/slashing/v1beta1/query.lcd.js +1 -9
- package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +4 -72
- package/module/codegen/cosmos/upgrade/v1beta1/query.lcd.js +1 -9
- package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +3 -31
- package/module/codegen/ibc/core/channel/v1/query.lcd.js +9 -149
- package/module/codegen/ibc/core/client/v1/query.lcd.js +2 -34
- package/module/codegen/ibc/core/connection/v1/query.lcd.js +4 -44
- package/module/codegen/index.js +1 -1
- package/package.json +3 -3
@@ -236,27 +236,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
236
236
|
key: "addressBytesToString",
|
237
237
|
value: function () {
|
238
238
|
var _addressBytesToString = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(params) {
|
239
|
-
var
|
239
|
+
var endpoint;
|
240
240
|
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
241
241
|
while (1) {
|
242
242
|
switch (_context6.prev = _context6.next) {
|
243
243
|
case 0:
|
244
|
-
options = {
|
245
|
-
params: {}
|
246
|
-
};
|
247
|
-
|
248
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.addressBytes) !== "undefined") {
|
249
|
-
options.params.address_bytes = params.addressBytes;
|
250
|
-
}
|
251
|
-
|
252
244
|
endpoint = "cosmos/auth/v1beta1/bech32/".concat(params.addressBytes);
|
253
|
-
_context6.next =
|
254
|
-
return this.request(endpoint
|
245
|
+
_context6.next = 3;
|
246
|
+
return this.request(endpoint);
|
255
247
|
|
256
|
-
case
|
248
|
+
case 3:
|
257
249
|
return _context6.abrupt("return", _context6.sent);
|
258
250
|
|
259
|
-
case
|
251
|
+
case 4:
|
260
252
|
case "end":
|
261
253
|
return _context6.stop();
|
262
254
|
}
|
@@ -276,27 +268,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
276
268
|
key: "addressStringToBytes",
|
277
269
|
value: function () {
|
278
270
|
var _addressStringToBytes = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(params) {
|
279
|
-
var
|
271
|
+
var endpoint;
|
280
272
|
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
281
273
|
while (1) {
|
282
274
|
switch (_context7.prev = _context7.next) {
|
283
275
|
case 0:
|
284
|
-
options = {
|
285
|
-
params: {}
|
286
|
-
};
|
287
|
-
|
288
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.addressString) !== "undefined") {
|
289
|
-
options.params.address_string = params.addressString;
|
290
|
-
}
|
291
|
-
|
292
276
|
endpoint = "cosmos/auth/v1beta1/bech32/".concat(params.addressString);
|
293
|
-
_context7.next =
|
294
|
-
return this.request(endpoint
|
277
|
+
_context7.next = 3;
|
278
|
+
return this.request(endpoint);
|
295
279
|
|
296
|
-
case
|
280
|
+
case 3:
|
297
281
|
return _context7.abrupt("return", _context7.sent);
|
298
282
|
|
299
|
-
case
|
283
|
+
case 4:
|
300
284
|
case "end":
|
301
285
|
return _context7.stop();
|
302
286
|
}
|
@@ -84,27 +84,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
84
84
|
key: "validatorOutstandingRewards",
|
85
85
|
value: function () {
|
86
86
|
var _validatorOutstandingRewards = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(params) {
|
87
|
-
var
|
87
|
+
var endpoint;
|
88
88
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
89
89
|
while (1) {
|
90
90
|
switch (_context2.prev = _context2.next) {
|
91
91
|
case 0:
|
92
|
-
options = {
|
93
|
-
params: {}
|
94
|
-
};
|
95
|
-
|
96
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddress) !== "undefined") {
|
97
|
-
options.params.validator_address = params.validatorAddress;
|
98
|
-
}
|
99
|
-
|
100
92
|
endpoint = "cosmos/distribution/v1beta1/validators/".concat(params.validatorAddress, "/outstanding_rewards");
|
101
|
-
_context2.next =
|
102
|
-
return this.request(endpoint
|
93
|
+
_context2.next = 3;
|
94
|
+
return this.request(endpoint);
|
103
95
|
|
104
|
-
case
|
96
|
+
case 3:
|
105
97
|
return _context2.abrupt("return", _context2.sent);
|
106
98
|
|
107
|
-
case
|
99
|
+
case 4:
|
108
100
|
case "end":
|
109
101
|
return _context2.stop();
|
110
102
|
}
|
@@ -124,27 +116,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
124
116
|
key: "validatorCommission",
|
125
117
|
value: function () {
|
126
118
|
var _validatorCommission = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(params) {
|
127
|
-
var
|
119
|
+
var endpoint;
|
128
120
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
129
121
|
while (1) {
|
130
122
|
switch (_context3.prev = _context3.next) {
|
131
123
|
case 0:
|
132
|
-
options = {
|
133
|
-
params: {}
|
134
|
-
};
|
135
|
-
|
136
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddress) !== "undefined") {
|
137
|
-
options.params.validator_address = params.validatorAddress;
|
138
|
-
}
|
139
|
-
|
140
124
|
endpoint = "cosmos/distribution/v1beta1/validators/".concat(params.validatorAddress, "/commission");
|
141
|
-
_context3.next =
|
142
|
-
return this.request(endpoint
|
125
|
+
_context3.next = 3;
|
126
|
+
return this.request(endpoint);
|
143
127
|
|
144
|
-
case
|
128
|
+
case 3:
|
145
129
|
return _context3.abrupt("return", _context3.sent);
|
146
130
|
|
147
|
-
case
|
131
|
+
case 4:
|
148
132
|
case "end":
|
149
133
|
return _context3.stop();
|
150
134
|
}
|
@@ -173,10 +157,6 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
173
157
|
params: {}
|
174
158
|
};
|
175
159
|
|
176
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddress) !== "undefined") {
|
177
|
-
options.params.validator_address = params.validatorAddress;
|
178
|
-
}
|
179
|
-
|
180
160
|
if (typeof (params === null || params === void 0 ? void 0 : params.startingHeight) !== "undefined") {
|
181
161
|
options.params.starting_height = params.startingHeight;
|
182
162
|
}
|
@@ -190,13 +170,13 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
190
170
|
}
|
191
171
|
|
192
172
|
endpoint = "cosmos/distribution/v1beta1/validators/".concat(params.validatorAddress, "/slashes");
|
193
|
-
_context4.next =
|
173
|
+
_context4.next = 7;
|
194
174
|
return this.request(endpoint, options);
|
195
175
|
|
196
|
-
case
|
176
|
+
case 7:
|
197
177
|
return _context4.abrupt("return", _context4.sent);
|
198
178
|
|
199
|
-
case
|
179
|
+
case 8:
|
200
180
|
case "end":
|
201
181
|
return _context4.stop();
|
202
182
|
}
|
@@ -216,31 +196,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
216
196
|
key: "delegationRewards",
|
217
197
|
value: function () {
|
218
198
|
var _delegationRewards = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(params) {
|
219
|
-
var
|
199
|
+
var endpoint;
|
220
200
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
221
201
|
while (1) {
|
222
202
|
switch (_context5.prev = _context5.next) {
|
223
203
|
case 0:
|
224
|
-
options = {
|
225
|
-
params: {}
|
226
|
-
};
|
227
|
-
|
228
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddress) !== "undefined") {
|
229
|
-
options.params.delegator_address = params.delegatorAddress;
|
230
|
-
}
|
231
|
-
|
232
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddress) !== "undefined") {
|
233
|
-
options.params.validator_address = params.validatorAddress;
|
234
|
-
}
|
235
|
-
|
236
204
|
endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegatorAddress, "rewards/").concat(params.validatorAddress);
|
237
|
-
_context5.next =
|
238
|
-
return this.request(endpoint
|
205
|
+
_context5.next = 3;
|
206
|
+
return this.request(endpoint);
|
239
207
|
|
240
|
-
case
|
208
|
+
case 3:
|
241
209
|
return _context5.abrupt("return", _context5.sent);
|
242
210
|
|
243
|
-
case
|
211
|
+
case 4:
|
244
212
|
case "end":
|
245
213
|
return _context5.stop();
|
246
214
|
}
|
@@ -261,27 +229,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
261
229
|
key: "delegationTotalRewards",
|
262
230
|
value: function () {
|
263
231
|
var _delegationTotalRewards = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(params) {
|
264
|
-
var
|
232
|
+
var endpoint;
|
265
233
|
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
266
234
|
while (1) {
|
267
235
|
switch (_context6.prev = _context6.next) {
|
268
236
|
case 0:
|
269
|
-
options = {
|
270
|
-
params: {}
|
271
|
-
};
|
272
|
-
|
273
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddress) !== "undefined") {
|
274
|
-
options.params.delegator_address = params.delegatorAddress;
|
275
|
-
}
|
276
|
-
|
277
237
|
endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegatorAddress, "/rewards");
|
278
|
-
_context6.next =
|
279
|
-
return this.request(endpoint
|
238
|
+
_context6.next = 3;
|
239
|
+
return this.request(endpoint);
|
280
240
|
|
281
|
-
case
|
241
|
+
case 3:
|
282
242
|
return _context6.abrupt("return", _context6.sent);
|
283
243
|
|
284
|
-
case
|
244
|
+
case 4:
|
285
245
|
case "end":
|
286
246
|
return _context6.stop();
|
287
247
|
}
|
@@ -301,27 +261,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
301
261
|
key: "delegatorValidators",
|
302
262
|
value: function () {
|
303
263
|
var _delegatorValidators = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(params) {
|
304
|
-
var
|
264
|
+
var endpoint;
|
305
265
|
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
306
266
|
while (1) {
|
307
267
|
switch (_context7.prev = _context7.next) {
|
308
268
|
case 0:
|
309
|
-
options = {
|
310
|
-
params: {}
|
311
|
-
};
|
312
|
-
|
313
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddress) !== "undefined") {
|
314
|
-
options.params.delegator_address = params.delegatorAddress;
|
315
|
-
}
|
316
|
-
|
317
269
|
endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegatorAddress, "/validators");
|
318
|
-
_context7.next =
|
319
|
-
return this.request(endpoint
|
270
|
+
_context7.next = 3;
|
271
|
+
return this.request(endpoint);
|
320
272
|
|
321
|
-
case
|
273
|
+
case 3:
|
322
274
|
return _context7.abrupt("return", _context7.sent);
|
323
275
|
|
324
|
-
case
|
276
|
+
case 4:
|
325
277
|
case "end":
|
326
278
|
return _context7.stop();
|
327
279
|
}
|
@@ -341,27 +293,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
341
293
|
key: "delegatorWithdrawAddress",
|
342
294
|
value: function () {
|
343
295
|
var _delegatorWithdrawAddress = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(params) {
|
344
|
-
var
|
296
|
+
var endpoint;
|
345
297
|
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
346
298
|
while (1) {
|
347
299
|
switch (_context8.prev = _context8.next) {
|
348
300
|
case 0:
|
349
|
-
options = {
|
350
|
-
params: {}
|
351
|
-
};
|
352
|
-
|
353
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddress) !== "undefined") {
|
354
|
-
options.params.delegator_address = params.delegatorAddress;
|
355
|
-
}
|
356
|
-
|
357
301
|
endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegatorAddress, "/withdraw_address");
|
358
|
-
_context8.next =
|
359
|
-
return this.request(endpoint
|
302
|
+
_context8.next = 3;
|
303
|
+
return this.request(endpoint);
|
360
304
|
|
361
|
-
case
|
305
|
+
case 3:
|
362
306
|
return _context8.abrupt("return", _context8.sent);
|
363
307
|
|
364
|
-
case
|
308
|
+
case 4:
|
365
309
|
case "end":
|
366
310
|
return _context8.stop();
|
367
311
|
}
|
@@ -48,27 +48,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
48
48
|
key: "evidence",
|
49
49
|
value: function () {
|
50
50
|
var _evidence = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(params) {
|
51
|
-
var
|
51
|
+
var endpoint;
|
52
52
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
53
53
|
while (1) {
|
54
54
|
switch (_context.prev = _context.next) {
|
55
55
|
case 0:
|
56
|
-
options = {
|
57
|
-
params: {}
|
58
|
-
};
|
59
|
-
|
60
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.evidenceHash) !== "undefined") {
|
61
|
-
options.params.evidence_hash = params.evidenceHash;
|
62
|
-
}
|
63
|
-
|
64
56
|
endpoint = "cosmos/evidence/v1beta1/evidence/".concat(params.evidenceHash);
|
65
|
-
_context.next =
|
66
|
-
return this.request(endpoint
|
57
|
+
_context.next = 3;
|
58
|
+
return this.request(endpoint);
|
67
59
|
|
68
|
-
case
|
60
|
+
case 3:
|
69
61
|
return _context.abrupt("return", _context.sent);
|
70
62
|
|
71
|
-
case
|
63
|
+
case 4:
|
72
64
|
case "end":
|
73
65
|
return _context.stop();
|
74
66
|
}
|
@@ -48,27 +48,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
48
48
|
key: "proposal",
|
49
49
|
value: function () {
|
50
50
|
var _proposal = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(params) {
|
51
|
-
var
|
51
|
+
var endpoint;
|
52
52
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
53
53
|
while (1) {
|
54
54
|
switch (_context.prev = _context.next) {
|
55
55
|
case 0:
|
56
|
-
options = {
|
57
|
-
params: {}
|
58
|
-
};
|
59
|
-
|
60
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.proposalId) !== "undefined") {
|
61
|
-
options.params.proposal_id = params.proposalId;
|
62
|
-
}
|
63
|
-
|
64
56
|
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId);
|
65
|
-
_context.next =
|
66
|
-
return this.request(endpoint
|
57
|
+
_context.next = 3;
|
58
|
+
return this.request(endpoint);
|
67
59
|
|
68
|
-
case
|
60
|
+
case 3:
|
69
61
|
return _context.abrupt("return", _context.sent);
|
70
62
|
|
71
|
-
case
|
63
|
+
case 4:
|
72
64
|
case "end":
|
73
65
|
return _context.stop();
|
74
66
|
}
|
@@ -140,27 +132,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
140
132
|
key: "vote",
|
141
133
|
value: function () {
|
142
134
|
var _vote = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(params) {
|
143
|
-
var
|
135
|
+
var endpoint;
|
144
136
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
145
137
|
while (1) {
|
146
138
|
switch (_context3.prev = _context3.next) {
|
147
139
|
case 0:
|
148
|
-
options = {
|
149
|
-
params: {}
|
150
|
-
};
|
151
|
-
|
152
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.proposalId) !== "undefined") {
|
153
|
-
options.params.proposal_id = params.proposalId;
|
154
|
-
}
|
155
|
-
|
156
140
|
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "votes/").concat(params.voter);
|
157
|
-
_context3.next =
|
158
|
-
return this.request(endpoint
|
141
|
+
_context3.next = 3;
|
142
|
+
return this.request(endpoint);
|
159
143
|
|
160
|
-
case
|
144
|
+
case 3:
|
161
145
|
return _context3.abrupt("return", _context3.sent);
|
162
146
|
|
163
|
-
case
|
147
|
+
case 4:
|
164
148
|
case "end":
|
165
149
|
return _context3.stop();
|
166
150
|
}
|
@@ -189,22 +173,18 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
189
173
|
params: {}
|
190
174
|
};
|
191
175
|
|
192
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.proposalId) !== "undefined") {
|
193
|
-
options.params.proposal_id = params.proposalId;
|
194
|
-
}
|
195
|
-
|
196
176
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
197
177
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
198
178
|
}
|
199
179
|
|
200
180
|
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "/votes");
|
201
|
-
_context4.next =
|
181
|
+
_context4.next = 5;
|
202
182
|
return this.request(endpoint, options);
|
203
183
|
|
204
|
-
case
|
184
|
+
case 5:
|
205
185
|
return _context4.abrupt("return", _context4.sent);
|
206
186
|
|
207
|
-
case
|
187
|
+
case 6:
|
208
188
|
case "end":
|
209
189
|
return _context4.stop();
|
210
190
|
}
|
@@ -224,27 +204,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
224
204
|
key: "params",
|
225
205
|
value: function () {
|
226
206
|
var _params2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(_params) {
|
227
|
-
var
|
207
|
+
var endpoint;
|
228
208
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
229
209
|
while (1) {
|
230
210
|
switch (_context5.prev = _context5.next) {
|
231
211
|
case 0:
|
232
|
-
options = {
|
233
|
-
params: {}
|
234
|
-
};
|
235
|
-
|
236
|
-
if (typeof (_params === null || _params === void 0 ? void 0 : _params.paramsType) !== "undefined") {
|
237
|
-
options.params.params_type = _params.paramsType;
|
238
|
-
}
|
239
|
-
|
240
212
|
endpoint = "cosmos/gov/v1/params/".concat(_params.paramsType);
|
241
|
-
_context5.next =
|
242
|
-
return this.request(endpoint
|
213
|
+
_context5.next = 3;
|
214
|
+
return this.request(endpoint);
|
243
215
|
|
244
|
-
case
|
216
|
+
case 3:
|
245
217
|
return _context5.abrupt("return", _context5.sent);
|
246
218
|
|
247
|
-
case
|
219
|
+
case 4:
|
248
220
|
case "end":
|
249
221
|
return _context5.stop();
|
250
222
|
}
|
@@ -264,27 +236,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
264
236
|
key: "deposit",
|
265
237
|
value: function () {
|
266
238
|
var _deposit = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(params) {
|
267
|
-
var
|
239
|
+
var endpoint;
|
268
240
|
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
269
241
|
while (1) {
|
270
242
|
switch (_context6.prev = _context6.next) {
|
271
243
|
case 0:
|
272
|
-
options = {
|
273
|
-
params: {}
|
274
|
-
};
|
275
|
-
|
276
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.proposalId) !== "undefined") {
|
277
|
-
options.params.proposal_id = params.proposalId;
|
278
|
-
}
|
279
|
-
|
280
244
|
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "deposits/").concat(params.depositor);
|
281
|
-
_context6.next =
|
282
|
-
return this.request(endpoint
|
245
|
+
_context6.next = 3;
|
246
|
+
return this.request(endpoint);
|
283
247
|
|
284
|
-
case
|
248
|
+
case 3:
|
285
249
|
return _context6.abrupt("return", _context6.sent);
|
286
250
|
|
287
|
-
case
|
251
|
+
case 4:
|
288
252
|
case "end":
|
289
253
|
return _context6.stop();
|
290
254
|
}
|
@@ -313,22 +277,18 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
313
277
|
params: {}
|
314
278
|
};
|
315
279
|
|
316
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.proposalId) !== "undefined") {
|
317
|
-
options.params.proposal_id = params.proposalId;
|
318
|
-
}
|
319
|
-
|
320
280
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
321
281
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
322
282
|
}
|
323
283
|
|
324
284
|
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "/deposits");
|
325
|
-
_context7.next =
|
285
|
+
_context7.next = 5;
|
326
286
|
return this.request(endpoint, options);
|
327
287
|
|
328
|
-
case
|
288
|
+
case 5:
|
329
289
|
return _context7.abrupt("return", _context7.sent);
|
330
290
|
|
331
|
-
case
|
291
|
+
case 6:
|
332
292
|
case "end":
|
333
293
|
return _context7.stop();
|
334
294
|
}
|
@@ -348,27 +308,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
348
308
|
key: "tallyResult",
|
349
309
|
value: function () {
|
350
310
|
var _tallyResult = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(params) {
|
351
|
-
var
|
311
|
+
var endpoint;
|
352
312
|
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
353
313
|
while (1) {
|
354
314
|
switch (_context8.prev = _context8.next) {
|
355
315
|
case 0:
|
356
|
-
options = {
|
357
|
-
params: {}
|
358
|
-
};
|
359
|
-
|
360
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.proposalId) !== "undefined") {
|
361
|
-
options.params.proposal_id = params.proposalId;
|
362
|
-
}
|
363
|
-
|
364
316
|
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "/tally");
|
365
|
-
_context8.next =
|
366
|
-
return this.request(endpoint
|
317
|
+
_context8.next = 3;
|
318
|
+
return this.request(endpoint);
|
367
319
|
|
368
|
-
case
|
320
|
+
case 3:
|
369
321
|
return _context8.abrupt("return", _context8.sent);
|
370
322
|
|
371
|
-
case
|
323
|
+
case 4:
|
372
324
|
case "end":
|
373
325
|
return _context8.stop();
|
374
326
|
}
|