juno-network 0.2.5 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/README.md +1 -1
  2. package/main/codegen/cosmos/auth/v1beta1/query.lcd.js +10 -26
  3. package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +33 -89
  4. package/main/codegen/cosmos/evidence/v1beta1/query.lcd.js +5 -13
  5. package/main/codegen/cosmos/gov/v1/query.lcd.js +31 -79
  6. package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +31 -79
  7. package/main/codegen/cosmos/group/v1/query.lcd.js +29 -73
  8. package/main/codegen/cosmos/nft/v1beta1/query.lcd.js +25 -65
  9. package/main/codegen/cosmos/slashing/v1beta1/query.lcd.js +5 -13
  10. package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +38 -106
  11. package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +5 -13
  12. package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +18 -46
  13. package/main/codegen/ibc/core/channel/v1/query.lcd.js +51 -191
  14. package/main/codegen/ibc/core/client/v1/query.lcd.js +16 -48
  15. package/main/codegen/ibc/core/connection/v1/query.lcd.js +20 -60
  16. package/module/codegen/cosmos/auth/v1beta1/query.lcd.js +2 -18
  17. package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +6 -62
  18. package/module/codegen/cosmos/evidence/v1beta1/query.lcd.js +1 -9
  19. package/module/codegen/cosmos/gov/v1/query.lcd.js +5 -53
  20. package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +5 -53
  21. package/module/codegen/cosmos/group/v1/query.lcd.js +4 -48
  22. package/module/codegen/cosmos/nft/v1beta1/query.lcd.js +5 -45
  23. package/module/codegen/cosmos/slashing/v1beta1/query.lcd.js +1 -9
  24. package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +4 -72
  25. package/module/codegen/cosmos/upgrade/v1beta1/query.lcd.js +1 -9
  26. package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +3 -31
  27. package/module/codegen/ibc/core/channel/v1/query.lcd.js +9 -149
  28. package/module/codegen/ibc/core/client/v1/query.lcd.js +2 -34
  29. package/module/codegen/ibc/core/connection/v1/query.lcd.js +4 -44
  30. package/module/codegen/index.js +1 -1
  31. 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 options, endpoint;
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 = 6;
70
- return this.request(endpoint, options);
57
+ _context.next = 3;
58
+ return this.request(endpoint);
71
59
 
72
- case 6:
60
+ case 3:
73
61
  return _context.abrupt("return", _context.sent);
74
62
 
75
- case 7:
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 options, endpoint;
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 = 6;
202
- return this.request(endpoint, options);
177
+ _context4.next = 3;
178
+ return this.request(endpoint);
203
179
 
204
- case 6:
180
+ case 3:
205
181
  return _context4.abrupt("return", _context4.sent);
206
182
 
207
- case 7:
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 options, endpoint;
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 = 8;
255
- return this.request(endpoint, options);
210
+ _context5.next = 3;
211
+ return this.request(endpoint);
256
212
 
257
- case 8:
213
+ case 3:
258
214
  return _context5.abrupt("return", _context5.sent);
259
215
 
260
- case 9:
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 options, endpoint;
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 = 6;
299
- return this.request(endpoint, options);
242
+ _context6.next = 3;
243
+ return this.request(endpoint);
300
244
 
301
- case 6:
245
+ case 3:
302
246
  return _context6.abrupt("return", _context6.sent);
303
247
 
304
- case 7:
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 = 7;
283
+ _context7.next = 5;
348
284
  return this.request(endpoint, options);
349
285
 
350
- case 7:
286
+ case 5:
351
287
  return _context7.abrupt("return", _context7.sent);
352
288
 
353
- case 8:
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 options, endpoint;
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 = 6;
393
- return this.request(endpoint, options);
316
+ _context8.next = 3;
317
+ return this.request(endpoint);
394
318
 
395
- case 6:
319
+ case 3:
396
320
  return _context8.abrupt("return", _context8.sent);
397
321
 
398
- case 7:
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 options, endpoint;
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 = 6;
437
- return this.request(endpoint, options);
348
+ _context9.next = 3;
349
+ return this.request(endpoint);
438
350
 
439
- case 6:
351
+ case 3:
440
352
  return _context9.abrupt("return", _context9.sent);
441
353
 
442
- case 7:
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 = 8;
393
+ _context10.next = 6;
490
394
  return this.request(endpoint, options);
491
395
 
492
- case 8:
396
+ case 6:
493
397
  return _context10.abrupt("return", _context10.sent);
494
398
 
495
- case 9:
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 options, endpoint;
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 = 7;
539
- return this.request(endpoint, options);
426
+ _context11.next = 3;
427
+ return this.request(endpoint);
540
428
 
541
- case 7:
429
+ case 3:
542
430
  return _context11.abrupt("return", _context11.sent);
543
431
 
544
- case 8:
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 options, endpoint;
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 = 7;
588
- return this.request(endpoint, options);
459
+ _context12.next = 3;
460
+ return this.request(endpoint);
589
461
 
590
- case 7:
462
+ case 3:
591
463
  return _context12.abrupt("return", _context12.sent);
592
464
 
593
- case 8:
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 options, endpoint;
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 = 6;
632
- return this.request(endpoint, options);
491
+ _context13.next = 3;
492
+ return this.request(endpoint);
633
493
 
634
- case 6:
494
+ case 3:
635
495
  return _context13.abrupt("return", _context13.sent);
636
496
 
637
- case 7:
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 options, endpoint;
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 = 5;
66
- return this.request(endpoint, options);
57
+ _context.next = 3;
58
+ return this.request(endpoint);
67
59
 
68
- case 5:
60
+ case 3:
69
61
  return _context.abrupt("return", _context.sent);
70
62
 
71
- case 6:
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 = 8;
144
+ _context3.next = 5;
165
145
  return this.request(endpoint, options);
166
146
 
167
- case 8:
147
+ case 5:
168
148
  return _context3.abrupt("return", _context3.sent);
169
149
 
170
- case 9:
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 = 6;
185
+ _context4.next = 5;
210
186
  return this.request(endpoint, options);
211
187
 
212
- case 6:
188
+ case 5:
213
189
  return _context4.abrupt("return", _context4.sent);
214
190
 
215
- case 7:
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 options, endpoint;
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 = 5;
250
- return this.request(endpoint, options);
217
+ _context5.next = 3;
218
+ return this.request(endpoint);
251
219
 
252
- case 5:
220
+ case 3:
253
221
  return _context5.abrupt("return", _context5.sent);
254
222
 
255
- case 6:
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 options, endpoint;
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 = 5;
66
- return this.request(endpoint, options);
57
+ _context.next = 3;
58
+ return this.request(endpoint);
67
59
 
68
- case 5:
60
+ case 3:
69
61
  return _context.abrupt("return", _context.sent);
70
62
 
71
- case 6:
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 options, endpoint;
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 = 5;
153
- return this.request(endpoint, options);
136
+ _context3.next = 3;
137
+ return this.request(endpoint);
154
138
 
155
- case 5:
139
+ case 3:
156
140
  return _context3.abrupt("return", _context3.sent);
157
141
 
158
- case 6:
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 options, endpoint;
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 = 5;
194
- return this.request(endpoint, options);
169
+ _context4.next = 3;
170
+ return this.request(endpoint);
195
171
 
196
- case 5:
172
+ case 3:
197
173
  return _context4.abrupt("return", _context4.sent);
198
174
 
199
- case 6:
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 options, endpoint;
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 = 7;
243
- return this.request(endpoint, options);
202
+ _context5.next = 3;
203
+ return this.request(endpoint);
244
204
 
245
- case 7:
205
+ case 3:
246
206
  return _context5.abrupt("return", _context5.sent);
247
207
 
248
- case 8:
208
+ case 4:
249
209
  case "end":
250
210
  return _context5.stop();
251
211
  }