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,30 @@ 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.validators = this.validators.bind(this);
29
+ this.validator = this.validator.bind(this);
30
+ this.validatorDelegations = this.validatorDelegations.bind(this);
31
+ this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this);
32
+ this.delegation = this.delegation.bind(this);
33
+ this.unbondingDelegation = this.unbondingDelegation.bind(this);
34
+ this.delegatorDelegations = this.delegatorDelegations.bind(this);
35
+ this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this);
36
+ this.redelegations = this.redelegations.bind(this);
37
+ this.delegatorValidators = this.delegatorValidators.bind(this);
38
+ this.delegatorValidator = this.delegatorValidator.bind(this);
39
+ this.historicalInfo = this.historicalInfo.bind(this);
40
+ this.pool = this.pool.bind(this);
41
+ this.params = this.params.bind(this);
43
42
  }
44
43
  /* Validators queries all validators that match the given status. */
45
44
 
@@ -67,7 +66,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
67
66
 
68
67
  endpoint = "cosmos/staking/v1beta1/validators";
69
68
  _context.next = 6;
70
- return this.get(endpoint, options);
69
+ return this.req.get(endpoint, options);
71
70
 
72
71
  case 6:
73
72
  return _context.abrupt("return", _context.sent);
@@ -97,9 +96,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
97
96
  while (1) {
98
97
  switch (_context2.prev = _context2.next) {
99
98
  case 0:
100
- endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validator_addr);
99
+ endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr);
101
100
  _context2.next = 3;
102
- return this.get(endpoint);
101
+ return this.req.get(endpoint);
103
102
 
104
103
  case 3:
105
104
  return _context2.abrupt("return", _context2.sent);
@@ -137,9 +136,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
137
136
  (0, _helpers.setPaginationParams)(options, params.pagination);
138
137
  }
139
138
 
140
- endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validator_addr, "/delegations");
139
+ endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "/delegations");
141
140
  _context3.next = 5;
142
- return this.get(endpoint, options);
141
+ return this.req.get(endpoint, options);
143
142
 
144
143
  case 5:
145
144
  return _context3.abrupt("return", _context3.sent);
@@ -177,9 +176,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
177
176
  (0, _helpers.setPaginationParams)(options, params.pagination);
178
177
  }
179
178
 
180
- endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validator_addr, "/unbonding_delegations");
179
+ endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "/unbonding_delegations");
181
180
  _context4.next = 5;
182
- return this.get(endpoint, options);
181
+ return this.req.get(endpoint, options);
183
182
 
184
183
  case 5:
185
184
  return _context4.abrupt("return", _context4.sent);
@@ -209,9 +208,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
209
208
  while (1) {
210
209
  switch (_context5.prev = _context5.next) {
211
210
  case 0:
212
- endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validator_addr, "delegations/").concat(params.delegator_addr);
211
+ endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "delegations/").concat(params.delegatorAddr);
213
212
  _context5.next = 3;
214
- return this.get(endpoint);
213
+ return this.req.get(endpoint);
215
214
 
216
215
  case 3:
217
216
  return _context5.abrupt("return", _context5.sent);
@@ -242,9 +241,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
242
241
  while (1) {
243
242
  switch (_context6.prev = _context6.next) {
244
243
  case 0:
245
- endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validator_addr, "/delegations/").concat(params.delegator_addr, "/unbonding_delegation");
244
+ endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "/delegations/").concat(params.delegatorAddr, "/unbonding_delegation");
246
245
  _context6.next = 3;
247
- return this.get(endpoint);
246
+ return this.req.get(endpoint);
248
247
 
249
248
  case 3:
250
249
  return _context6.abrupt("return", _context6.sent);
@@ -282,9 +281,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
282
281
  (0, _helpers.setPaginationParams)(options, params.pagination);
283
282
  }
284
283
 
285
- endpoint = "cosmos/staking/v1beta1/delegations/".concat(params.delegator_addr);
284
+ endpoint = "cosmos/staking/v1beta1/delegations/".concat(params.delegatorAddr);
286
285
  _context7.next = 5;
287
- return this.get(endpoint, options);
286
+ return this.req.get(endpoint, options);
288
287
 
289
288
  case 5:
290
289
  return _context7.abrupt("return", _context7.sent);
@@ -323,9 +322,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
323
322
  (0, _helpers.setPaginationParams)(options, params.pagination);
324
323
  }
325
324
 
326
- endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegator_addr, "/unbonding_delegations");
325
+ endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "/unbonding_delegations");
327
326
  _context8.next = 5;
328
- return this.get(endpoint, options);
327
+ return this.req.get(endpoint, options);
329
328
 
330
329
  case 5:
331
330
  return _context8.abrupt("return", _context8.sent);
@@ -359,21 +358,21 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
359
358
  params: {}
360
359
  };
361
360
 
362
- if (typeof (params === null || params === void 0 ? void 0 : params.src_validator_addr) !== "undefined") {
363
- options.params.src_validator_addr = params.src_validator_addr;
361
+ if (typeof (params === null || params === void 0 ? void 0 : params.srcValidatorAddr) !== "undefined") {
362
+ options.params.src_validator_addr = params.srcValidatorAddr;
364
363
  }
365
364
 
366
- if (typeof (params === null || params === void 0 ? void 0 : params.dst_validator_addr) !== "undefined") {
367
- options.params.dst_validator_addr = params.dst_validator_addr;
365
+ if (typeof (params === null || params === void 0 ? void 0 : params.dstValidatorAddr) !== "undefined") {
366
+ options.params.dst_validator_addr = params.dstValidatorAddr;
368
367
  }
369
368
 
370
369
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
371
370
  (0, _helpers.setPaginationParams)(options, params.pagination);
372
371
  }
373
372
 
374
- endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegator_addr, "/redelegations");
373
+ endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "/redelegations");
375
374
  _context9.next = 7;
376
- return this.get(endpoint, options);
375
+ return this.req.get(endpoint, options);
377
376
 
378
377
  case 7:
379
378
  return _context9.abrupt("return", _context9.sent);
@@ -412,9 +411,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
412
411
  (0, _helpers.setPaginationParams)(options, params.pagination);
413
412
  }
414
413
 
415
- endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegator_addr, "/validators");
414
+ endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "/validators");
416
415
  _context10.next = 5;
417
- return this.get(endpoint, options);
416
+ return this.req.get(endpoint, options);
418
417
 
419
418
  case 5:
420
419
  return _context10.abrupt("return", _context10.sent);
@@ -445,9 +444,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
445
444
  while (1) {
446
445
  switch (_context11.prev = _context11.next) {
447
446
  case 0:
448
- endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegator_addr, "validators/").concat(params.validator_addr);
447
+ endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "validators/").concat(params.validatorAddr);
449
448
  _context11.next = 3;
450
- return this.get(endpoint);
449
+ return this.req.get(endpoint);
451
450
 
452
451
  case 3:
453
452
  return _context11.abrupt("return", _context11.sent);
@@ -479,7 +478,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
479
478
  case 0:
480
479
  endpoint = "cosmos/staking/v1beta1/historical_info/".concat(params.height);
481
480
  _context12.next = 3;
482
- return this.get(endpoint);
481
+ return this.req.get(endpoint);
483
482
 
484
483
  case 3:
485
484
  return _context12.abrupt("return", _context12.sent);
@@ -515,7 +514,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
515
514
  _params = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
516
515
  endpoint = "cosmos/staking/v1beta1/pool";
517
516
  _context13.next = 4;
518
- return this.get(endpoint);
517
+ return this.req.get(endpoint);
519
518
 
520
519
  case 4:
521
520
  return _context13.abrupt("return", _context13.sent);
@@ -551,7 +550,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
551
550
  _params = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
552
551
  endpoint = "cosmos/staking/v1beta1/params";
553
552
  _context14.next = 4;
554
- return this.get(endpoint);
553
+ return this.req.get(endpoint);
555
554
 
556
555
  case 4:
557
556
  return _context14.abrupt("return", _context14.sent);
@@ -572,6 +571,6 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
572
571
  }()
573
572
  }]);
574
573
  return LCDQueryClient;
575
- }(_lcd.LCDClient);
574
+ }();
576
575
 
577
576
  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); }
@@ -166,7 +168,9 @@ var QueryClientImpl = /*#__PURE__*/function () {
166
168
  }
167
169
  }, {
168
170
  key: "pool",
169
- value: function pool(request) {
171
+ value: function pool() {
172
+ var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
173
+
170
174
  var data = _query.QueryPoolRequest.encode(request).finish();
171
175
 
172
176
  var promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Pool", data);
@@ -176,7 +180,9 @@ var QueryClientImpl = /*#__PURE__*/function () {
176
180
  }
177
181
  }, {
178
182
  key: "params",
179
- value: function params(request) {
183
+ value: function params() {
184
+ var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
185
+
180
186
  var data = _query.QueryParamsRequest.encode(request).finish();
181
187
 
182
188
  var promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Params", data);
@@ -188,4 +194,55 @@ var QueryClientImpl = /*#__PURE__*/function () {
188
194
  return QueryClientImpl;
189
195
  }();
190
196
 
191
- exports.QueryClientImpl = QueryClientImpl;
197
+ exports.QueryClientImpl = QueryClientImpl;
198
+
199
+ var createRpcQueryExtension = function createRpcQueryExtension(base) {
200
+ var rpc = (0, _stargate.createProtobufRpcClient)(base);
201
+ var queryService = new QueryClientImpl(rpc);
202
+ return {
203
+ validators: function validators(request) {
204
+ return queryService.validators(request);
205
+ },
206
+ validator: function validator(request) {
207
+ return queryService.validator(request);
208
+ },
209
+ validatorDelegations: function validatorDelegations(request) {
210
+ return queryService.validatorDelegations(request);
211
+ },
212
+ validatorUnbondingDelegations: function validatorUnbondingDelegations(request) {
213
+ return queryService.validatorUnbondingDelegations(request);
214
+ },
215
+ delegation: function delegation(request) {
216
+ return queryService.delegation(request);
217
+ },
218
+ unbondingDelegation: function unbondingDelegation(request) {
219
+ return queryService.unbondingDelegation(request);
220
+ },
221
+ delegatorDelegations: function delegatorDelegations(request) {
222
+ return queryService.delegatorDelegations(request);
223
+ },
224
+ delegatorUnbondingDelegations: function delegatorUnbondingDelegations(request) {
225
+ return queryService.delegatorUnbondingDelegations(request);
226
+ },
227
+ redelegations: function redelegations(request) {
228
+ return queryService.redelegations(request);
229
+ },
230
+ delegatorValidators: function delegatorValidators(request) {
231
+ return queryService.delegatorValidators(request);
232
+ },
233
+ delegatorValidator: function delegatorValidator(request) {
234
+ return queryService.delegatorValidator(request);
235
+ },
236
+ historicalInfo: function historicalInfo(request) {
237
+ return queryService.historicalInfo(request);
238
+ },
239
+ pool: function pool(request) {
240
+ return queryService.pool(request);
241
+ },
242
+ params: function params(request) {
243
+ return queryService.params(request);
244
+ }
245
+ };
246
+ };
247
+
248
+ exports.createRpcQueryExtension = createRpcQueryExtension;