juno-network 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. package/main/codegen/confio/proofs.js +100 -315
  2. package/main/codegen/cosmos/authz/v1beta1/authz.js +5 -63
  3. package/main/codegen/cosmos/authz/v1beta1/event.js +12 -42
  4. package/main/codegen/cosmos/authz/v1beta1/genesis.js +0 -20
  5. package/main/codegen/cosmos/authz/v1beta1/query.js +6 -114
  6. package/main/codegen/cosmos/authz/v1beta1/query.lcd.js +14 -26
  7. package/main/codegen/cosmos/authz/v1beta1/query.rpc.query.js +22 -2
  8. package/main/codegen/cosmos/authz/v1beta1/tx.js +6 -92
  9. package/main/codegen/cosmos/bank/v1beta1/authz.js +5 -25
  10. package/main/codegen/cosmos/bank/v1beta1/bank.js +20 -178
  11. package/main/codegen/cosmos/bank/v1beta1/genesis.js +5 -73
  12. package/main/codegen/cosmos/bank/v1beta1/query.js +5 -264
  13. package/main/codegen/cosmos/bank/v1beta1/query.lcd.js +24 -30
  14. package/main/codegen/cosmos/bank/v1beta1/query.rpc.query.js +53 -5
  15. package/main/codegen/cosmos/bank/v1beta1/tx.amino.js +6 -6
  16. package/main/codegen/cosmos/bank/v1beta1/tx.js +11 -82
  17. package/main/codegen/cosmos/bank/v1beta1/tx.registry.js +0 -28
  18. package/main/codegen/cosmos/base/abci/v1beta1/abci.js +68 -312
  19. package/main/codegen/cosmos/base/query/v1beta1/pagination.js +12 -42
  20. package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +65 -418
  21. package/main/codegen/cosmos/base/v1beta1/coin.js +0 -46
  22. package/main/codegen/cosmos/bundle.js +101 -401
  23. package/main/codegen/cosmos/client.js +2 -34
  24. package/main/codegen/cosmos/crypto/ed25519/keys.js +0 -22
  25. package/main/codegen/cosmos/crypto/hd/v1/hd.js +11 -31
  26. package/main/codegen/cosmos/crypto/keyring/v1/record.js +16 -74
  27. package/main/codegen/cosmos/crypto/multisig/keys.js +5 -29
  28. package/main/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +6 -40
  29. package/main/codegen/cosmos/crypto/secp256k1/keys.js +0 -22
  30. package/main/codegen/cosmos/crypto/secp256r1/keys.js +0 -22
  31. package/main/codegen/cosmos/distribution/v1beta1/distribution.js +57 -289
  32. package/main/codegen/cosmos/distribution/v1beta1/genesis.js +105 -300
  33. package/main/codegen/cosmos/distribution/v1beta1/query.js +63 -308
  34. package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +35 -41
  35. package/main/codegen/cosmos/distribution/v1beta1/query.rpc.query.js +46 -4
  36. package/main/codegen/cosmos/distribution/v1beta1/tx.amino.js +15 -15
  37. package/main/codegen/cosmos/distribution/v1beta1/tx.js +28 -140
  38. package/main/codegen/cosmos/distribution/v1beta1/tx.registry.js +0 -52
  39. package/main/codegen/cosmos/gov/v1/genesis.js +20 -70
  40. package/main/codegen/cosmos/gov/v1/gov.js +113 -256
  41. package/main/codegen/cosmos/gov/v1/query.js +57 -271
  42. package/main/codegen/cosmos/gov/v1/query.lcd.js +31 -38
  43. package/main/codegen/cosmos/gov/v1/query.rpc.query.js +37 -2
  44. package/main/codegen/cosmos/gov/v1/tx.amino.js +16 -16
  45. package/main/codegen/cosmos/gov/v1/tx.js +25 -176
  46. package/main/codegen/cosmos/gov/v1/tx.registry.js +0 -64
  47. package/main/codegen/cosmos/gov/v1beta1/genesis.js +20 -70
  48. package/main/codegen/cosmos/gov/v1beta1/gov.js +103 -246
  49. package/main/codegen/cosmos/gov/v1beta1/query.js +57 -271
  50. package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +31 -38
  51. package/main/codegen/cosmos/gov/v1beta1/query.rpc.query.js +37 -2
  52. package/main/codegen/cosmos/gov/v1beta1/tx.amino.js +14 -14
  53. package/main/codegen/cosmos/gov/v1beta1/tx.js +25 -142
  54. package/main/codegen/cosmos/gov/v1beta1/tx.registry.js +0 -52
  55. package/main/codegen/cosmos/lcd.js +65 -198
  56. package/main/codegen/cosmos/rpc.query.js +58 -197
  57. package/main/codegen/cosmos/rpc.tx.js +31 -122
  58. package/main/codegen/cosmos/staking/v1beta1/authz.js +38 -59
  59. package/main/codegen/cosmos/staking/v1beta1/genesis.js +14 -96
  60. package/main/codegen/cosmos/staking/v1beta1/query.js +115 -497
  61. package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +48 -49
  62. package/main/codegen/cosmos/staking/v1beta1/query.rpc.query.js +61 -4
  63. package/main/codegen/cosmos/staking/v1beta1/staking.js +222 -565
  64. package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +47 -47
  65. package/main/codegen/cosmos/staking/v1beta1/tx.js +82 -205
  66. package/main/codegen/cosmos/staking/v1beta1/tx.registry.js +0 -64
  67. package/main/codegen/cosmos/tx/signing/v1beta1/signing.js +29 -86
  68. package/main/codegen/cosmos/tx/v1beta1/service.js +69 -207
  69. package/main/codegen/cosmos/tx/v1beta1/service.lcd.js +14 -26
  70. package/main/codegen/cosmos/tx/v1beta1/service.rpc.svc.js +33 -7
  71. package/main/codegen/cosmos/tx/v1beta1/tx.js +102 -381
  72. package/main/codegen/cosmos/upgrade/v1beta1/query.js +22 -126
  73. package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +19 -29
  74. package/main/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +34 -4
  75. package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +4 -4
  76. package/main/codegen/cosmos/upgrade/v1beta1/tx.js +0 -38
  77. package/main/codegen/cosmos/upgrade/v1beta1/tx.registry.js +0 -28
  78. package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +5 -61
  79. package/main/codegen/cosmos_proto/cosmos.js +17 -45
  80. package/main/codegen/cosmwasm/bundle.js +16 -16
  81. package/main/codegen/cosmwasm/lcd.js +76 -209
  82. package/main/codegen/cosmwasm/rpc.query.js +66 -207
  83. package/main/codegen/cosmwasm/rpc.tx.js +41 -132
  84. package/main/codegen/cosmwasm/wasm/v1/genesis.js +57 -178
  85. package/main/codegen/cosmwasm/wasm/v1/ibc.js +10 -36
  86. package/main/codegen/cosmwasm/wasm/v1/proposal.js +56 -250
  87. package/main/codegen/cosmwasm/wasm/v1/query.js +54 -322
  88. package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +28 -34
  89. package/main/codegen/cosmwasm/wasm/v1/query.rpc.query.js +50 -4
  90. package/main/codegen/cosmwasm/wasm/v1/tx.amino.js +16 -16
  91. package/main/codegen/cosmwasm/wasm/v1/tx.js +32 -200
  92. package/main/codegen/cosmwasm/wasm/v1/tx.registry.js +0 -76
  93. package/main/codegen/cosmwasm/wasm/v1/types.js +80 -166
  94. package/main/codegen/gogoproto/bundle.js +2 -2
  95. package/main/codegen/google/bundle.js +9 -15
  96. package/main/codegen/google/protobuf/any.js +6 -20
  97. package/main/codegen/google/protobuf/descriptor.js +407 -1134
  98. package/main/codegen/google/protobuf/duration.js +0 -12
  99. package/main/codegen/google/protobuf/empty.js +0 -7
  100. package/main/codegen/google/protobuf/field_mask.js +0 -20
  101. package/main/codegen/google/protobuf/struct.js +51 -118
  102. package/main/codegen/google/protobuf/timestamp.js +0 -12
  103. package/main/codegen/google/protobuf/wrappers.js +0 -90
  104. package/main/codegen/ibc/applications/transfer/v1/genesis.js +10 -36
  105. package/main/codegen/ibc/applications/transfer/v1/query.js +10 -81
  106. package/main/codegen/ibc/applications/transfer/v1/query.lcd.js +12 -24
  107. package/main/codegen/ibc/applications/transfer/v1/query.rpc.query.js +30 -4
  108. package/main/codegen/ibc/applications/transfer/v1/transfer.js +17 -43
  109. package/main/codegen/ibc/applications/transfer/v1/tx.amino.js +14 -14
  110. package/main/codegen/ibc/applications/transfer/v1/tx.js +21 -50
  111. package/main/codegen/ibc/applications/transfer/v1/tx.registry.js +0 -16
  112. package/main/codegen/ibc/applications/transfer/v2/packet.js +0 -18
  113. package/main/codegen/ibc/bundle.js +56 -74
  114. package/main/codegen/ibc/core/channel/v1/channel.js +103 -198
  115. package/main/codegen/ibc/core/channel/v1/genesis.js +29 -131
  116. package/main/codegen/ibc/core/channel/v1/query.js +202 -646
  117. package/main/codegen/ibc/core/channel/v1/query.lcd.js +45 -47
  118. package/main/codegen/ibc/core/channel/v1/query.rpc.query.js +57 -3
  119. package/main/codegen/ibc/core/channel/v1/tx.amino.js +183 -183
  120. package/main/codegen/ibc/core/channel/v1/tx.js +175 -425
  121. package/main/codegen/ibc/core/channel/v1/tx.registry.js +0 -124
  122. package/main/codegen/ibc/core/client/v1/client.js +57 -167
  123. package/main/codegen/ibc/core/client/v1/genesis.js +29 -111
  124. package/main/codegen/ibc/core/client/v1/query.js +79 -270
  125. package/main/codegen/ibc/core/client/v1/query.lcd.js +28 -35
  126. package/main/codegen/ibc/core/client/v1/query.rpc.query.js +51 -6
  127. package/main/codegen/ibc/core/client/v1/tx.amino.js +39 -39
  128. package/main/codegen/ibc/core/client/v1/tx.js +48 -140
  129. package/main/codegen/ibc/core/client/v1/tx.registry.js +0 -52
  130. package/main/codegen/ibc/core/commitment/v1/commitment.js +11 -73
  131. package/main/codegen/ibc/core/connection/v1/connection.js +61 -191
  132. package/main/codegen/ibc/core/connection/v1/genesis.js +10 -45
  133. package/main/codegen/ibc/core/connection/v1/query.js +75 -221
  134. package/main/codegen/ibc/core/connection/v1/query.lcd.js +20 -30
  135. package/main/codegen/ibc/core/connection/v1/query.rpc.query.js +33 -3
  136. package/main/codegen/ibc/core/connection/v1/tx.amino.js +95 -95
  137. package/main/codegen/ibc/core/connection/v1/tx.js +118 -250
  138. package/main/codegen/ibc/core/connection/v1/tx.registry.js +0 -52
  139. package/main/codegen/ibc/lcd.js +107 -240
  140. package/main/codegen/ibc/lightclients/localhost/v1/localhost.js +6 -20
  141. package/main/codegen/ibc/lightclients/solomachine/v1/solomachine.js +115 -309
  142. package/main/codegen/ibc/lightclients/solomachine/v2/solomachine.js +115 -309
  143. package/main/codegen/ibc/lightclients/tendermint/v1/tendermint.js +86 -191
  144. package/main/codegen/ibc/rpc.query.js +88 -248
  145. package/main/codegen/ibc/rpc.tx.js +69 -160
  146. package/main/codegen/juno/bundle.js +9 -9
  147. package/main/codegen/juno/lcd.js +74 -207
  148. package/main/codegen/juno/mint/genesis.js +0 -14
  149. package/main/codegen/juno/mint/mint.js +22 -50
  150. package/main/codegen/juno/mint/query.js +6 -59
  151. package/main/codegen/juno/mint/query.lcd.js +12 -24
  152. package/main/codegen/juno/mint/query.rpc.query.js +31 -5
  153. package/main/codegen/juno/rpc.query.js +64 -205
  154. package/main/codegen/tendermint/abci/types.js +296 -1020
  155. package/main/codegen/tendermint/bundle.js +17 -17
  156. package/main/codegen/tendermint/crypto/keys.js +0 -14
  157. package/main/codegen/tendermint/crypto/proof.js +6 -92
  158. package/main/codegen/tendermint/libs/bits/types.js +0 -22
  159. package/main/codegen/tendermint/p2p/types.js +53 -143
  160. package/main/codegen/tendermint/types/block.js +5 -23
  161. package/main/codegen/tendermint/types/evidence.js +50 -128
  162. package/main/codegen/tendermint/types/params.js +51 -137
  163. package/main/codegen/tendermint/types/types.js +162 -372
  164. package/main/codegen/tendermint/types/validator.js +30 -82
  165. package/main/codegen/tendermint/version/types.js +0 -24
  166. package/main/index.js +1 -5
  167. package/package.json +5 -5
@@ -15,31 +15,29 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
15
15
 
16
16
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
17
 
18
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
19
-
20
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
21
-
22
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
18
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
19
 
24
20
  var _helpers = require("@osmonauts/helpers");
25
21
 
26
- var _lcd = require("@osmonauts/lcd");
27
-
28
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
29
-
30
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
-
32
- var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
33
- (0, _inherits2["default"])(LCDQueryClient, _LCDClient);
34
-
35
- var _super = _createSuper(LCDQueryClient);
36
-
22
+ var LCDQueryClient = /*#__PURE__*/function () {
37
23
  function LCDQueryClient(_ref) {
38
- var restEndpoint = _ref.restEndpoint;
24
+ var requestClient = _ref.requestClient;
39
25
  (0, _classCallCheck2["default"])(this, LCDQueryClient);
40
- return _super.call(this, {
41
- restEndpoint: restEndpoint
42
- });
26
+ (0, _defineProperty2["default"])(this, "req", void 0);
27
+ this.req = requestClient;
28
+ this.channel = this.channel.bind(this);
29
+ this.channels = this.channels.bind(this);
30
+ this.connectionChannels = this.connectionChannels.bind(this);
31
+ this.channelClientState = this.channelClientState.bind(this);
32
+ this.channelConsensusState = this.channelConsensusState.bind(this);
33
+ this.packetCommitment = this.packetCommitment.bind(this);
34
+ this.packetCommitments = this.packetCommitments.bind(this);
35
+ this.packetReceipt = this.packetReceipt.bind(this);
36
+ this.packetAcknowledgement = this.packetAcknowledgement.bind(this);
37
+ this.packetAcknowledgements = this.packetAcknowledgements.bind(this);
38
+ this.unreceivedPackets = this.unreceivedPackets.bind(this);
39
+ this.unreceivedAcks = this.unreceivedAcks.bind(this);
40
+ this.nextSequenceReceive = this.nextSequenceReceive.bind(this);
43
41
  }
44
42
  /* Channel queries an IBC Channel. */
45
43
 
@@ -53,9 +51,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
53
51
  while (1) {
54
52
  switch (_context.prev = _context.next) {
55
53
  case 0:
56
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "ports/").concat(params.port_id);
54
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "ports/").concat(params.portId);
57
55
  _context.next = 3;
58
- return this.get(endpoint);
56
+ return this.req.get(endpoint);
59
57
 
60
58
  case 3:
61
59
  return _context.abrupt("return", _context.sent);
@@ -101,7 +99,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
101
99
 
102
100
  endpoint = "ibc/core/channel/v1/channels";
103
101
  _context2.next = 6;
104
- return this.get(endpoint, options);
102
+ return this.req.get(endpoint, options);
105
103
 
106
104
  case 6:
107
105
  return _context2.abrupt("return", _context2.sent);
@@ -142,7 +140,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
142
140
 
143
141
  endpoint = "ibc/core/channel/v1/connections/".concat(params.connection, "/channels");
144
142
  _context3.next = 5;
145
- return this.get(endpoint, options);
143
+ return this.req.get(endpoint, options);
146
144
 
147
145
  case 5:
148
146
  return _context3.abrupt("return", _context3.sent);
@@ -173,9 +171,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
173
171
  while (1) {
174
172
  switch (_context4.prev = _context4.next) {
175
173
  case 0:
176
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/client_state");
174
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/client_state");
177
175
  _context4.next = 3;
178
- return this.get(endpoint);
176
+ return this.req.get(endpoint);
179
177
 
180
178
  case 3:
181
179
  return _context4.abrupt("return", _context4.sent);
@@ -206,9 +204,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
206
204
  while (1) {
207
205
  switch (_context5.prev = _context5.next) {
208
206
  case 0:
209
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/consensus_state/revision/").concat(params.revision_number, "height/").concat(params.revision_height);
207
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/consensus_state/revision/").concat(params.revisionNumber, "height/").concat(params.revisionHeight);
210
208
  _context5.next = 3;
211
- return this.get(endpoint);
209
+ return this.req.get(endpoint);
212
210
 
213
211
  case 3:
214
212
  return _context5.abrupt("return", _context5.sent);
@@ -238,9 +236,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
238
236
  while (1) {
239
237
  switch (_context6.prev = _context6.next) {
240
238
  case 0:
241
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "packet_commitments/").concat(params.sequence);
239
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "packet_commitments/").concat(params.sequence);
242
240
  _context6.next = 3;
243
- return this.get(endpoint);
241
+ return this.req.get(endpoint);
244
242
 
245
243
  case 3:
246
244
  return _context6.abrupt("return", _context6.sent);
@@ -279,9 +277,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
279
277
  (0, _helpers.setPaginationParams)(options, params.pagination);
280
278
  }
281
279
 
282
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/packet_commitments");
280
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_commitments");
283
281
  _context7.next = 5;
284
- return this.get(endpoint, options);
282
+ return this.req.get(endpoint, options);
285
283
 
286
284
  case 5:
287
285
  return _context7.abrupt("return", _context7.sent);
@@ -312,9 +310,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
312
310
  while (1) {
313
311
  switch (_context8.prev = _context8.next) {
314
312
  case 0:
315
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "packet_receipts/").concat(params.sequence);
313
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "packet_receipts/").concat(params.sequence);
316
314
  _context8.next = 3;
317
- return this.get(endpoint);
315
+ return this.req.get(endpoint);
318
316
 
319
317
  case 3:
320
318
  return _context8.abrupt("return", _context8.sent);
@@ -344,9 +342,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
344
342
  while (1) {
345
343
  switch (_context9.prev = _context9.next) {
346
344
  case 0:
347
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "packet_acks/").concat(params.sequence);
345
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "packet_acks/").concat(params.sequence);
348
346
  _context9.next = 3;
349
- return this.get(endpoint);
347
+ return this.req.get(endpoint);
350
348
 
351
349
  case 3:
352
350
  return _context9.abrupt("return", _context9.sent);
@@ -385,13 +383,13 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
385
383
  (0, _helpers.setPaginationParams)(options, params.pagination);
386
384
  }
387
385
 
388
- if (typeof (params === null || params === void 0 ? void 0 : params.packet_commitment_sequences) !== "undefined") {
389
- options.params.packet_commitment_sequences = params.packet_commitment_sequences;
386
+ if (typeof (params === null || params === void 0 ? void 0 : params.packetCommitmentSequences) !== "undefined") {
387
+ options.params.packet_commitment_sequences = params.packetCommitmentSequences;
390
388
  }
391
389
 
392
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/packet_acknowledgements");
390
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_acknowledgements");
393
391
  _context10.next = 6;
394
- return this.get(endpoint, options);
392
+ return this.req.get(endpoint, options);
395
393
 
396
394
  case 6:
397
395
  return _context10.abrupt("return", _context10.sent);
@@ -422,9 +420,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
422
420
  while (1) {
423
421
  switch (_context11.prev = _context11.next) {
424
422
  case 0:
425
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/packet_commitments/").concat(params.packet_commitment_sequences, "/unreceived_packets");
423
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_commitments/").concat(params.packetCommitmentSequences, "/unreceived_packets");
426
424
  _context11.next = 3;
427
- return this.get(endpoint);
425
+ return this.req.get(endpoint);
428
426
 
429
427
  case 3:
430
428
  return _context11.abrupt("return", _context11.sent);
@@ -455,9 +453,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
455
453
  while (1) {
456
454
  switch (_context12.prev = _context12.next) {
457
455
  case 0:
458
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/packet_commitments/").concat(params.packet_ack_sequences, "/unreceived_acks");
456
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_commitments/").concat(params.packetAckSequences, "/unreceived_acks");
459
457
  _context12.next = 3;
460
- return this.get(endpoint);
458
+ return this.req.get(endpoint);
461
459
 
462
460
  case 3:
463
461
  return _context12.abrupt("return", _context12.sent);
@@ -487,9 +485,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
487
485
  while (1) {
488
486
  switch (_context13.prev = _context13.next) {
489
487
  case 0:
490
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/next_sequence");
488
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/next_sequence");
491
489
  _context13.next = 3;
492
- return this.get(endpoint);
490
+ return this.req.get(endpoint);
493
491
 
494
492
  case 3:
495
493
  return _context13.abrupt("return", _context13.sent);
@@ -510,6 +508,6 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
510
508
  }()
511
509
  }]);
512
510
  return LCDQueryClient;
513
- }(_lcd.LCDClient);
511
+ }();
514
512
 
515
513
  exports.LCDQueryClient = LCDQueryClient;
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.QueryClientImpl = void 0;
10
+ exports.createRpcQueryExtension = exports.QueryClientImpl = void 0;
11
11
 
12
12
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
13
 
@@ -17,6 +17,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
17
17
 
18
18
  var _m0 = _interopRequireWildcard(require("protobufjs/minimal"));
19
19
 
20
+ var _stargate = require("@cosmjs/stargate");
21
+
20
22
  var _query = require("./query");
21
23
 
22
24
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -55,7 +57,11 @@ var QueryClientImpl = /*#__PURE__*/function () {
55
57
  }
56
58
  }, {
57
59
  key: "channels",
58
- value: function channels(request) {
60
+ value: function channels() {
61
+ var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
62
+ pagination: undefined
63
+ };
64
+
59
65
  var data = _query.QueryChannelsRequest.encode(request).finish();
60
66
 
61
67
  var promise = this.rpc.request("ibc.core.channel.v1.Query", "Channels", data);
@@ -177,4 +183,52 @@ var QueryClientImpl = /*#__PURE__*/function () {
177
183
  return QueryClientImpl;
178
184
  }();
179
185
 
180
- exports.QueryClientImpl = QueryClientImpl;
186
+ exports.QueryClientImpl = QueryClientImpl;
187
+
188
+ var createRpcQueryExtension = function createRpcQueryExtension(base) {
189
+ var rpc = (0, _stargate.createProtobufRpcClient)(base);
190
+ var queryService = new QueryClientImpl(rpc);
191
+ return {
192
+ channel: function channel(request) {
193
+ return queryService.channel(request);
194
+ },
195
+ channels: function channels(request) {
196
+ return queryService.channels(request);
197
+ },
198
+ connectionChannels: function connectionChannels(request) {
199
+ return queryService.connectionChannels(request);
200
+ },
201
+ channelClientState: function channelClientState(request) {
202
+ return queryService.channelClientState(request);
203
+ },
204
+ channelConsensusState: function channelConsensusState(request) {
205
+ return queryService.channelConsensusState(request);
206
+ },
207
+ packetCommitment: function packetCommitment(request) {
208
+ return queryService.packetCommitment(request);
209
+ },
210
+ packetCommitments: function packetCommitments(request) {
211
+ return queryService.packetCommitments(request);
212
+ },
213
+ packetReceipt: function packetReceipt(request) {
214
+ return queryService.packetReceipt(request);
215
+ },
216
+ packetAcknowledgement: function packetAcknowledgement(request) {
217
+ return queryService.packetAcknowledgement(request);
218
+ },
219
+ packetAcknowledgements: function packetAcknowledgements(request) {
220
+ return queryService.packetAcknowledgements(request);
221
+ },
222
+ unreceivedPackets: function unreceivedPackets(request) {
223
+ return queryService.unreceivedPackets(request);
224
+ },
225
+ unreceivedAcks: function unreceivedAcks(request) {
226
+ return queryService.unreceivedAcks(request);
227
+ },
228
+ nextSequenceReceive: function nextSequenceReceive(request) {
229
+ return queryService.nextSequenceReceive(request);
230
+ }
231
+ };
232
+ };
233
+
234
+ exports.createRpcQueryExtension = createRpcQueryExtension;