juno-network 0.2.5 → 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/README.md +1 -1
- 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 +5 -5
@@ -48,31 +48,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
48
48
|
key: "channel",
|
49
49
|
value: function () {
|
50
50
|
var _channel = (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.portId) !== "undefined") {
|
61
|
-
options.params.port_id = params.portId;
|
62
|
-
}
|
63
|
-
|
64
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
|
65
|
-
options.params.channel_id = params.channelId;
|
66
|
-
}
|
67
|
-
|
68
56
|
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "ports/").concat(params.portId);
|
69
|
-
_context.next =
|
70
|
-
return this.request(endpoint
|
57
|
+
_context.next = 3;
|
58
|
+
return this.request(endpoint);
|
71
59
|
|
72
|
-
case
|
60
|
+
case 3:
|
73
61
|
return _context.abrupt("return", _context.sent);
|
74
62
|
|
75
|
-
case
|
63
|
+
case 4:
|
76
64
|
case "end":
|
77
65
|
return _context.stop();
|
78
66
|
}
|
@@ -180,31 +168,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
180
168
|
key: "channelClientState",
|
181
169
|
value: function () {
|
182
170
|
var _channelClientState = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(params) {
|
183
|
-
var
|
171
|
+
var endpoint;
|
184
172
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
185
173
|
while (1) {
|
186
174
|
switch (_context4.prev = _context4.next) {
|
187
175
|
case 0:
|
188
|
-
options = {
|
189
|
-
params: {}
|
190
|
-
};
|
191
|
-
|
192
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
|
193
|
-
options.params.port_id = params.portId;
|
194
|
-
}
|
195
|
-
|
196
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
|
197
|
-
options.params.channel_id = params.channelId;
|
198
|
-
}
|
199
|
-
|
200
176
|
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/client_state");
|
201
|
-
_context4.next =
|
202
|
-
return this.request(endpoint
|
177
|
+
_context4.next = 3;
|
178
|
+
return this.request(endpoint);
|
203
179
|
|
204
|
-
case
|
180
|
+
case 3:
|
205
181
|
return _context4.abrupt("return", _context4.sent);
|
206
182
|
|
207
|
-
case
|
183
|
+
case 4:
|
208
184
|
case "end":
|
209
185
|
return _context4.stop();
|
210
186
|
}
|
@@ -225,39 +201,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
225
201
|
key: "channelConsensusState",
|
226
202
|
value: function () {
|
227
203
|
var _channelConsensusState = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(params) {
|
228
|
-
var
|
204
|
+
var endpoint;
|
229
205
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
230
206
|
while (1) {
|
231
207
|
switch (_context5.prev = _context5.next) {
|
232
208
|
case 0:
|
233
|
-
options = {
|
234
|
-
params: {}
|
235
|
-
};
|
236
|
-
|
237
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
|
238
|
-
options.params.port_id = params.portId;
|
239
|
-
}
|
240
|
-
|
241
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
|
242
|
-
options.params.channel_id = params.channelId;
|
243
|
-
}
|
244
|
-
|
245
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.revisionNumber) !== "undefined") {
|
246
|
-
options.params.revision_number = params.revisionNumber;
|
247
|
-
}
|
248
|
-
|
249
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.revisionHeight) !== "undefined") {
|
250
|
-
options.params.revision_height = params.revisionHeight;
|
251
|
-
}
|
252
|
-
|
253
209
|
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/consensus_state/revision/").concat(params.revisionNumber, "height/").concat(params.revisionHeight);
|
254
|
-
_context5.next =
|
255
|
-
return this.request(endpoint
|
210
|
+
_context5.next = 3;
|
211
|
+
return this.request(endpoint);
|
256
212
|
|
257
|
-
case
|
213
|
+
case 3:
|
258
214
|
return _context5.abrupt("return", _context5.sent);
|
259
215
|
|
260
|
-
case
|
216
|
+
case 4:
|
261
217
|
case "end":
|
262
218
|
return _context5.stop();
|
263
219
|
}
|
@@ -277,31 +233,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
277
233
|
key: "packetCommitment",
|
278
234
|
value: function () {
|
279
235
|
var _packetCommitment = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(params) {
|
280
|
-
var
|
236
|
+
var endpoint;
|
281
237
|
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
282
238
|
while (1) {
|
283
239
|
switch (_context6.prev = _context6.next) {
|
284
240
|
case 0:
|
285
|
-
options = {
|
286
|
-
params: {}
|
287
|
-
};
|
288
|
-
|
289
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
|
290
|
-
options.params.port_id = params.portId;
|
291
|
-
}
|
292
|
-
|
293
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
|
294
|
-
options.params.channel_id = params.channelId;
|
295
|
-
}
|
296
|
-
|
297
241
|
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "packet_commitments/").concat(params.sequence);
|
298
|
-
_context6.next =
|
299
|
-
return this.request(endpoint
|
242
|
+
_context6.next = 3;
|
243
|
+
return this.request(endpoint);
|
300
244
|
|
301
|
-
case
|
245
|
+
case 3:
|
302
246
|
return _context6.abrupt("return", _context6.sent);
|
303
247
|
|
304
|
-
case
|
248
|
+
case 4:
|
305
249
|
case "end":
|
306
250
|
return _context6.stop();
|
307
251
|
}
|
@@ -331,26 +275,18 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
331
275
|
params: {}
|
332
276
|
};
|
333
277
|
|
334
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
|
335
|
-
options.params.port_id = params.portId;
|
336
|
-
}
|
337
|
-
|
338
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
|
339
|
-
options.params.channel_id = params.channelId;
|
340
|
-
}
|
341
|
-
|
342
278
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
343
279
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
344
280
|
}
|
345
281
|
|
346
282
|
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_commitments");
|
347
|
-
_context7.next =
|
283
|
+
_context7.next = 5;
|
348
284
|
return this.request(endpoint, options);
|
349
285
|
|
350
|
-
case
|
286
|
+
case 5:
|
351
287
|
return _context7.abrupt("return", _context7.sent);
|
352
288
|
|
353
|
-
case
|
289
|
+
case 6:
|
354
290
|
case "end":
|
355
291
|
return _context7.stop();
|
356
292
|
}
|
@@ -371,31 +307,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
371
307
|
key: "packetReceipt",
|
372
308
|
value: function () {
|
373
309
|
var _packetReceipt = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(params) {
|
374
|
-
var
|
310
|
+
var endpoint;
|
375
311
|
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
376
312
|
while (1) {
|
377
313
|
switch (_context8.prev = _context8.next) {
|
378
314
|
case 0:
|
379
|
-
options = {
|
380
|
-
params: {}
|
381
|
-
};
|
382
|
-
|
383
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
|
384
|
-
options.params.port_id = params.portId;
|
385
|
-
}
|
386
|
-
|
387
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
|
388
|
-
options.params.channel_id = params.channelId;
|
389
|
-
}
|
390
|
-
|
391
315
|
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "packet_receipts/").concat(params.sequence);
|
392
|
-
_context8.next =
|
393
|
-
return this.request(endpoint
|
316
|
+
_context8.next = 3;
|
317
|
+
return this.request(endpoint);
|
394
318
|
|
395
|
-
case
|
319
|
+
case 3:
|
396
320
|
return _context8.abrupt("return", _context8.sent);
|
397
321
|
|
398
|
-
case
|
322
|
+
case 4:
|
399
323
|
case "end":
|
400
324
|
return _context8.stop();
|
401
325
|
}
|
@@ -415,31 +339,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
415
339
|
key: "packetAcknowledgement",
|
416
340
|
value: function () {
|
417
341
|
var _packetAcknowledgement = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(params) {
|
418
|
-
var
|
342
|
+
var endpoint;
|
419
343
|
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
420
344
|
while (1) {
|
421
345
|
switch (_context9.prev = _context9.next) {
|
422
346
|
case 0:
|
423
|
-
options = {
|
424
|
-
params: {}
|
425
|
-
};
|
426
|
-
|
427
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
|
428
|
-
options.params.port_id = params.portId;
|
429
|
-
}
|
430
|
-
|
431
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
|
432
|
-
options.params.channel_id = params.channelId;
|
433
|
-
}
|
434
|
-
|
435
347
|
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "packet_acks/").concat(params.sequence);
|
436
|
-
_context9.next =
|
437
|
-
return this.request(endpoint
|
348
|
+
_context9.next = 3;
|
349
|
+
return this.request(endpoint);
|
438
350
|
|
439
|
-
case
|
351
|
+
case 3:
|
440
352
|
return _context9.abrupt("return", _context9.sent);
|
441
353
|
|
442
|
-
case
|
354
|
+
case 4:
|
443
355
|
case "end":
|
444
356
|
return _context9.stop();
|
445
357
|
}
|
@@ -469,14 +381,6 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
469
381
|
params: {}
|
470
382
|
};
|
471
383
|
|
472
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
|
473
|
-
options.params.port_id = params.portId;
|
474
|
-
}
|
475
|
-
|
476
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
|
477
|
-
options.params.channel_id = params.channelId;
|
478
|
-
}
|
479
|
-
|
480
384
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
481
385
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
482
386
|
}
|
@@ -486,13 +390,13 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
486
390
|
}
|
487
391
|
|
488
392
|
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_acknowledgements");
|
489
|
-
_context10.next =
|
393
|
+
_context10.next = 6;
|
490
394
|
return this.request(endpoint, options);
|
491
395
|
|
492
|
-
case
|
396
|
+
case 6:
|
493
397
|
return _context10.abrupt("return", _context10.sent);
|
494
398
|
|
495
|
-
case
|
399
|
+
case 7:
|
496
400
|
case "end":
|
497
401
|
return _context10.stop();
|
498
402
|
}
|
@@ -513,35 +417,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
513
417
|
key: "unreceivedPackets",
|
514
418
|
value: function () {
|
515
419
|
var _unreceivedPackets = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(params) {
|
516
|
-
var
|
420
|
+
var endpoint;
|
517
421
|
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
518
422
|
while (1) {
|
519
423
|
switch (_context11.prev = _context11.next) {
|
520
424
|
case 0:
|
521
|
-
options = {
|
522
|
-
params: {}
|
523
|
-
};
|
524
|
-
|
525
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
|
526
|
-
options.params.port_id = params.portId;
|
527
|
-
}
|
528
|
-
|
529
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
|
530
|
-
options.params.channel_id = params.channelId;
|
531
|
-
}
|
532
|
-
|
533
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.packetCommitmentSequences) !== "undefined") {
|
534
|
-
options.params.packet_commitment_sequences = params.packetCommitmentSequences;
|
535
|
-
}
|
536
|
-
|
537
425
|
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_commitments/").concat(params.packetCommitmentSequences, "/unreceived_packets");
|
538
|
-
_context11.next =
|
539
|
-
return this.request(endpoint
|
426
|
+
_context11.next = 3;
|
427
|
+
return this.request(endpoint);
|
540
428
|
|
541
|
-
case
|
429
|
+
case 3:
|
542
430
|
return _context11.abrupt("return", _context11.sent);
|
543
431
|
|
544
|
-
case
|
432
|
+
case 4:
|
545
433
|
case "end":
|
546
434
|
return _context11.stop();
|
547
435
|
}
|
@@ -562,35 +450,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
562
450
|
key: "unreceivedAcks",
|
563
451
|
value: function () {
|
564
452
|
var _unreceivedAcks = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12(params) {
|
565
|
-
var
|
453
|
+
var endpoint;
|
566
454
|
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
567
455
|
while (1) {
|
568
456
|
switch (_context12.prev = _context12.next) {
|
569
457
|
case 0:
|
570
|
-
options = {
|
571
|
-
params: {}
|
572
|
-
};
|
573
|
-
|
574
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
|
575
|
-
options.params.port_id = params.portId;
|
576
|
-
}
|
577
|
-
|
578
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
|
579
|
-
options.params.channel_id = params.channelId;
|
580
|
-
}
|
581
|
-
|
582
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.packetAckSequences) !== "undefined") {
|
583
|
-
options.params.packet_ack_sequences = params.packetAckSequences;
|
584
|
-
}
|
585
|
-
|
586
458
|
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_commitments/").concat(params.packetAckSequences, "/unreceived_acks");
|
587
|
-
_context12.next =
|
588
|
-
return this.request(endpoint
|
459
|
+
_context12.next = 3;
|
460
|
+
return this.request(endpoint);
|
589
461
|
|
590
|
-
case
|
462
|
+
case 3:
|
591
463
|
return _context12.abrupt("return", _context12.sent);
|
592
464
|
|
593
|
-
case
|
465
|
+
case 4:
|
594
466
|
case "end":
|
595
467
|
return _context12.stop();
|
596
468
|
}
|
@@ -610,31 +482,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
610
482
|
key: "nextSequenceReceive",
|
611
483
|
value: function () {
|
612
484
|
var _nextSequenceReceive = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(params) {
|
613
|
-
var
|
485
|
+
var endpoint;
|
614
486
|
return _regenerator["default"].wrap(function _callee13$(_context13) {
|
615
487
|
while (1) {
|
616
488
|
switch (_context13.prev = _context13.next) {
|
617
489
|
case 0:
|
618
|
-
options = {
|
619
|
-
params: {}
|
620
|
-
};
|
621
|
-
|
622
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
|
623
|
-
options.params.port_id = params.portId;
|
624
|
-
}
|
625
|
-
|
626
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
|
627
|
-
options.params.channel_id = params.channelId;
|
628
|
-
}
|
629
|
-
|
630
490
|
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/next_sequence");
|
631
|
-
_context13.next =
|
632
|
-
return this.request(endpoint
|
491
|
+
_context13.next = 3;
|
492
|
+
return this.request(endpoint);
|
633
493
|
|
634
|
-
case
|
494
|
+
case 3:
|
635
495
|
return _context13.abrupt("return", _context13.sent);
|
636
496
|
|
637
|
-
case
|
497
|
+
case 4:
|
638
498
|
case "end":
|
639
499
|
return _context13.stop();
|
640
500
|
}
|
@@ -48,27 +48,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
48
48
|
key: "clientState",
|
49
49
|
value: function () {
|
50
50
|
var _clientState = (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.clientId) !== "undefined") {
|
61
|
-
options.params.client_id = params.clientId;
|
62
|
-
}
|
63
|
-
|
64
56
|
endpoint = "ibc/core/client/v1/client_states/".concat(params.clientId);
|
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
|
}
|
@@ -144,30 +136,18 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
144
136
|
params: {}
|
145
137
|
};
|
146
138
|
|
147
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.clientId) !== "undefined") {
|
148
|
-
options.params.client_id = params.clientId;
|
149
|
-
}
|
150
|
-
|
151
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.revisionNumber) !== "undefined") {
|
152
|
-
options.params.revision_number = params.revisionNumber;
|
153
|
-
}
|
154
|
-
|
155
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.revisionHeight) !== "undefined") {
|
156
|
-
options.params.revision_height = params.revisionHeight;
|
157
|
-
}
|
158
|
-
|
159
139
|
if (typeof (params === null || params === void 0 ? void 0 : params.latestHeight) !== "undefined") {
|
160
140
|
options.params.latest_height = params.latestHeight;
|
161
141
|
}
|
162
142
|
|
163
143
|
endpoint = "ibc/core/client/v1/consensus_states/".concat(params.clientId, "/revision/").concat(params.revisionNumber, "height/").concat(params.revisionHeight);
|
164
|
-
_context3.next =
|
144
|
+
_context3.next = 5;
|
165
145
|
return this.request(endpoint, options);
|
166
146
|
|
167
|
-
case
|
147
|
+
case 5:
|
168
148
|
return _context3.abrupt("return", _context3.sent);
|
169
149
|
|
170
|
-
case
|
150
|
+
case 6:
|
171
151
|
case "end":
|
172
152
|
return _context3.stop();
|
173
153
|
}
|
@@ -197,22 +177,18 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
197
177
|
params: {}
|
198
178
|
};
|
199
179
|
|
200
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.clientId) !== "undefined") {
|
201
|
-
options.params.client_id = params.clientId;
|
202
|
-
}
|
203
|
-
|
204
180
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
205
181
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
206
182
|
}
|
207
183
|
|
208
184
|
endpoint = "ibc/core/client/v1/consensus_states/".concat(params.clientId);
|
209
|
-
_context4.next =
|
185
|
+
_context4.next = 5;
|
210
186
|
return this.request(endpoint, options);
|
211
187
|
|
212
|
-
case
|
188
|
+
case 5:
|
213
189
|
return _context4.abrupt("return", _context4.sent);
|
214
190
|
|
215
|
-
case
|
191
|
+
case 6:
|
216
192
|
case "end":
|
217
193
|
return _context4.stop();
|
218
194
|
}
|
@@ -232,27 +208,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
232
208
|
key: "clientStatus",
|
233
209
|
value: function () {
|
234
210
|
var _clientStatus = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(params) {
|
235
|
-
var
|
211
|
+
var endpoint;
|
236
212
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
237
213
|
while (1) {
|
238
214
|
switch (_context5.prev = _context5.next) {
|
239
215
|
case 0:
|
240
|
-
options = {
|
241
|
-
params: {}
|
242
|
-
};
|
243
|
-
|
244
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.clientId) !== "undefined") {
|
245
|
-
options.params.client_id = params.clientId;
|
246
|
-
}
|
247
|
-
|
248
216
|
endpoint = "ibc/core/client/v1/client_status/".concat(params.clientId);
|
249
|
-
_context5.next =
|
250
|
-
return this.request(endpoint
|
217
|
+
_context5.next = 3;
|
218
|
+
return this.request(endpoint);
|
251
219
|
|
252
|
-
case
|
220
|
+
case 3:
|
253
221
|
return _context5.abrupt("return", _context5.sent);
|
254
222
|
|
255
|
-
case
|
223
|
+
case 4:
|
256
224
|
case "end":
|
257
225
|
return _context5.stop();
|
258
226
|
}
|
@@ -48,27 +48,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
48
48
|
key: "connection",
|
49
49
|
value: function () {
|
50
50
|
var _connection = (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.connectionId) !== "undefined") {
|
61
|
-
options.params.connection_id = params.connectionId;
|
62
|
-
}
|
63
|
-
|
64
56
|
endpoint = "ibc/core/connection/v1/connections/".concat(params.connectionId);
|
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
|
}
|
@@ -135,27 +127,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
135
127
|
key: "clientConnections",
|
136
128
|
value: function () {
|
137
129
|
var _clientConnections = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(params) {
|
138
|
-
var
|
130
|
+
var endpoint;
|
139
131
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
140
132
|
while (1) {
|
141
133
|
switch (_context3.prev = _context3.next) {
|
142
134
|
case 0:
|
143
|
-
options = {
|
144
|
-
params: {}
|
145
|
-
};
|
146
|
-
|
147
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.clientId) !== "undefined") {
|
148
|
-
options.params.client_id = params.clientId;
|
149
|
-
}
|
150
|
-
|
151
135
|
endpoint = "ibc/core/connection/v1/client_connections/".concat(params.clientId);
|
152
|
-
_context3.next =
|
153
|
-
return this.request(endpoint
|
136
|
+
_context3.next = 3;
|
137
|
+
return this.request(endpoint);
|
154
138
|
|
155
|
-
case
|
139
|
+
case 3:
|
156
140
|
return _context3.abrupt("return", _context3.sent);
|
157
141
|
|
158
|
-
case
|
142
|
+
case 4:
|
159
143
|
case "end":
|
160
144
|
return _context3.stop();
|
161
145
|
}
|
@@ -176,27 +160,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
176
160
|
key: "connectionClientState",
|
177
161
|
value: function () {
|
178
162
|
var _connectionClientState = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(params) {
|
179
|
-
var
|
163
|
+
var endpoint;
|
180
164
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
181
165
|
while (1) {
|
182
166
|
switch (_context4.prev = _context4.next) {
|
183
167
|
case 0:
|
184
|
-
options = {
|
185
|
-
params: {}
|
186
|
-
};
|
187
|
-
|
188
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.connectionId) !== "undefined") {
|
189
|
-
options.params.connection_id = params.connectionId;
|
190
|
-
}
|
191
|
-
|
192
168
|
endpoint = "ibc/core/connection/v1/connections/".concat(params.connectionId, "/client_state");
|
193
|
-
_context4.next =
|
194
|
-
return this.request(endpoint
|
169
|
+
_context4.next = 3;
|
170
|
+
return this.request(endpoint);
|
195
171
|
|
196
|
-
case
|
172
|
+
case 3:
|
197
173
|
return _context4.abrupt("return", _context4.sent);
|
198
174
|
|
199
|
-
case
|
175
|
+
case 4:
|
200
176
|
case "end":
|
201
177
|
return _context4.stop();
|
202
178
|
}
|
@@ -217,35 +193,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
217
193
|
key: "connectionConsensusState",
|
218
194
|
value: function () {
|
219
195
|
var _connectionConsensusState = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(params) {
|
220
|
-
var
|
196
|
+
var endpoint;
|
221
197
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
222
198
|
while (1) {
|
223
199
|
switch (_context5.prev = _context5.next) {
|
224
200
|
case 0:
|
225
|
-
options = {
|
226
|
-
params: {}
|
227
|
-
};
|
228
|
-
|
229
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.connectionId) !== "undefined") {
|
230
|
-
options.params.connection_id = params.connectionId;
|
231
|
-
}
|
232
|
-
|
233
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.revisionNumber) !== "undefined") {
|
234
|
-
options.params.revision_number = params.revisionNumber;
|
235
|
-
}
|
236
|
-
|
237
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.revisionHeight) !== "undefined") {
|
238
|
-
options.params.revision_height = params.revisionHeight;
|
239
|
-
}
|
240
|
-
|
241
201
|
endpoint = "ibc/core/connection/v1/connections/".concat(params.connectionId, "/consensus_state/revision/").concat(params.revisionNumber, "height/").concat(params.revisionHeight);
|
242
|
-
_context5.next =
|
243
|
-
return this.request(endpoint
|
202
|
+
_context5.next = 3;
|
203
|
+
return this.request(endpoint);
|
244
204
|
|
245
|
-
case
|
205
|
+
case 3:
|
246
206
|
return _context5.abrupt("return", _context5.sent);
|
247
207
|
|
248
|
-
case
|
208
|
+
case 4:
|
249
209
|
case "end":
|
250
210
|
return _context5.stop();
|
251
211
|
}
|