juno-network 0.1.11 → 0.2.2

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.
Files changed (101) hide show
  1. package/main/codegen/JunoSwap.client.js +1 -1
  2. package/main/codegen/cosmos/bank/v1beta1/query.lcd.js +44 -26
  3. package/main/codegen/cosmos/base/query/v1beta1/pagination.js +190 -0
  4. package/main/codegen/cosmos/base/v1beta1/coin.js +268 -0
  5. package/main/codegen/cosmos/bundle.js +4 -4
  6. package/main/codegen/cosmos/client.js +20 -9
  7. package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +37 -27
  8. package/main/codegen/cosmos/gov/v1/query.lcd.js +12 -10
  9. package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +12 -10
  10. package/main/codegen/cosmos/group/v1/query.lcd.js +17 -15
  11. package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +39 -29
  12. package/main/codegen/cosmwasm/bundle.js +4 -4
  13. package/main/codegen/cosmwasm/client.js +28 -12
  14. package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +35 -21
  15. package/main/codegen/ibc/applications/transfer/v1/query.lcd.js +25 -13
  16. package/main/codegen/ibc/bundle.js +25 -15
  17. package/main/codegen/ibc/client.js +32 -12
  18. package/main/codegen/ibc/core/channel/v1/query.lcd.js +40 -32
  19. package/main/codegen/ibc/core/client/v1/client.js +585 -0
  20. package/main/codegen/ibc/core/client/v1/genesis.js +367 -0
  21. package/main/codegen/ibc/core/client/v1/query.js +1047 -0
  22. package/main/codegen/ibc/core/client/v1/query.lcd.js +381 -0
  23. package/main/codegen/ibc/core/client/v1/query.rpc.query.js +125 -0
  24. package/main/codegen/ibc/core/client/v1/tx.amino.js +149 -0
  25. package/main/codegen/ibc/core/client/v1/tx.js +538 -0
  26. package/main/codegen/ibc/core/client/v1/tx.registry.js +160 -0
  27. package/main/codegen/ibc/core/client/v1/tx.rpc.msg.js +81 -0
  28. package/main/codegen/ibc/lcd.js +21 -6
  29. package/main/codegen/ibc/rpc.query.js +19 -6
  30. package/main/codegen/ibc/rpc.tx.js +19 -6
  31. package/main/codegen/juno/bundle.js +6 -6
  32. package/main/codegen/juno/mint/query.lcd.js +30 -18
  33. package/module/codegen/JunoSwap.client.js +1 -1
  34. package/module/codegen/JunoSwap.react-query.js +1 -1
  35. package/module/codegen/contracts.js +1 -1
  36. package/module/codegen/cosmos/bank/v1beta1/query.lcd.js +13 -8
  37. package/module/codegen/cosmos/base/query/v1beta1/pagination.js +189 -0
  38. package/module/codegen/cosmos/base/v1beta1/coin.js +268 -0
  39. package/module/codegen/cosmos/bundle.js +4 -4
  40. package/module/codegen/cosmos/client.js +12 -2
  41. package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +11 -10
  42. package/module/codegen/cosmos/gov/v1/query.lcd.js +11 -10
  43. package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +11 -10
  44. package/module/codegen/cosmos/group/v1/query.lcd.js +16 -15
  45. package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +20 -19
  46. package/module/codegen/cosmwasm/bundle.js +4 -4
  47. package/module/codegen/cosmwasm/client.js +16 -2
  48. package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +16 -11
  49. package/module/codegen/ibc/applications/transfer/v1/query.lcd.js +6 -3
  50. package/module/codegen/ibc/bundle.js +20 -15
  51. package/module/codegen/ibc/client.js +18 -2
  52. package/module/codegen/ibc/core/channel/v1/query.lcd.js +19 -16
  53. package/module/codegen/ibc/core/client/v1/client.js +549 -0
  54. package/module/codegen/ibc/core/client/v1/genesis.js +287 -0
  55. package/module/codegen/ibc/core/client/v1/query.js +1029 -0
  56. package/module/codegen/ibc/core/client/v1/query.lcd.js +128 -0
  57. package/module/codegen/ibc/core/client/v1/query.rpc.query.js +69 -0
  58. package/module/codegen/ibc/core/client/v1/tx.amino.js +150 -0
  59. package/module/codegen/ibc/core/client/v1/tx.js +544 -0
  60. package/module/codegen/ibc/core/client/v1/tx.registry.js +159 -0
  61. package/module/codegen/ibc/core/client/v1/tx.rpc.msg.js +41 -0
  62. package/module/codegen/ibc/lcd.js +5 -0
  63. package/module/codegen/ibc/rpc.query.js +3 -0
  64. package/module/codegen/ibc/rpc.tx.js +3 -0
  65. package/module/codegen/index.js +1 -1
  66. package/module/codegen/juno/bundle.js +6 -6
  67. package/module/codegen/juno/mint/query.lcd.js +3 -3
  68. package/package.json +15 -14
  69. package/types/codegen/JunoSwap.client.d.ts +1 -1
  70. package/types/codegen/JunoSwap.react-query.d.ts +11 -11
  71. package/types/codegen/JunoSwap.types.d.ts +1 -1
  72. package/types/codegen/contracts.d.ts +5 -5
  73. package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +3 -3
  74. package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +79 -0
  75. package/types/codegen/cosmos/base/v1beta1/coin.d.ts +58 -0
  76. package/types/codegen/cosmos/bundle.d.ts +758 -153
  77. package/types/codegen/cosmos/client.d.ts +6 -2
  78. package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +2 -2
  79. package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +2 -2
  80. package/types/codegen/cosmwasm/bundle.d.ts +87 -18
  81. package/types/codegen/cosmwasm/client.d.ts +8 -2
  82. package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +2 -2
  83. package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +2 -2
  84. package/types/codegen/ibc/bundle.d.ts +878 -64
  85. package/types/codegen/ibc/client.d.ts +8 -2
  86. package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +1 -1
  87. package/types/codegen/ibc/core/client/v1/client.d.ts +143 -0
  88. package/types/codegen/ibc/core/client/v1/genesis.d.ts +56 -0
  89. package/types/codegen/ibc/core/client/v1/query.d.ts +263 -0
  90. package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +15 -0
  91. package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +25 -0
  92. package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
  93. package/types/codegen/ibc/core/client/v1/tx.d.ts +131 -0
  94. package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +96 -0
  95. package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +17 -0
  96. package/types/codegen/ibc/lcd.d.ts +3 -0
  97. package/types/codegen/ibc/rpc.query.d.ts +3 -0
  98. package/types/codegen/ibc/rpc.tx.d.ts +3 -0
  99. package/types/codegen/index.d.ts +1 -1
  100. package/types/codegen/juno/bundle.d.ts +6 -6
  101. package/types/codegen/juno/mint/query.lcd.d.ts +3 -3
@@ -7,16 +7,16 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.getSigningCosmosClient = void 0;
10
+ exports.getSigningCosmosClientOptions = exports.getSigningCosmosClient = void 0;
11
11
 
12
12
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
13
13
 
14
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
15
+
14
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
17
 
16
18
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
17
19
 
18
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
19
-
20
20
  var _protoSigning = require("@cosmjs/proto-signing");
21
21
 
22
22
  var _stargate = require("@cosmjs/stargate");
@@ -53,27 +53,38 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
53
53
 
54
54
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
55
55
 
56
+ var getSigningCosmosClientOptions = function getSigningCosmosClientOptions() {
57
+ var registry = new _protoSigning.Registry([].concat((0, _toConsumableArray2["default"])(cosmosBankV1beta1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosDistributionV1beta1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosGovV1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosGovV1beta1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosGroupV1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosStakingV1beta1TxRegistry.registry)));
58
+ var aminoTypes = new _stargate.AminoTypes(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, cosmosBankV1beta1TxAmino.AminoConverter), cosmosDistributionV1beta1TxAmino.AminoConverter), cosmosGovV1TxAmino.AminoConverter), cosmosGovV1beta1TxAmino.AminoConverter), cosmosGroupV1TxAmino.AminoConverter), cosmosStakingV1beta1TxAmino.AminoConverter));
59
+ return {
60
+ registry: registry,
61
+ aminoTypes: aminoTypes
62
+ };
63
+ };
64
+
65
+ exports.getSigningCosmosClientOptions = getSigningCosmosClientOptions;
66
+
56
67
  var getSigningCosmosClient = /*#__PURE__*/function () {
57
68
  var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref) {
58
- var rpcEndpoint, signer, registry, aminoTypes, client;
69
+ var rpcEndpoint, signer, _getSigningCosmosClie, registry, aminoTypes, client;
70
+
59
71
  return _regenerator["default"].wrap(function _callee$(_context) {
60
72
  while (1) {
61
73
  switch (_context.prev = _context.next) {
62
74
  case 0:
63
75
  rpcEndpoint = _ref.rpcEndpoint, signer = _ref.signer;
64
- registry = new _protoSigning.Registry([].concat((0, _toConsumableArray2["default"])(cosmosBankV1beta1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosDistributionV1beta1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosGovV1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosGovV1beta1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosGroupV1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosStakingV1beta1TxRegistry.registry)));
65
- aminoTypes = new _stargate.AminoTypes(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, cosmosBankV1beta1TxAmino.AminoConverter), cosmosDistributionV1beta1TxAmino.AminoConverter), cosmosGovV1TxAmino.AminoConverter), cosmosGovV1beta1TxAmino.AminoConverter), cosmosGroupV1TxAmino.AminoConverter), cosmosStakingV1beta1TxAmino.AminoConverter));
66
- _context.next = 5;
76
+ _getSigningCosmosClie = getSigningCosmosClientOptions(), registry = _getSigningCosmosClie.registry, aminoTypes = _getSigningCosmosClie.aminoTypes;
77
+ _context.next = 4;
67
78
  return _stargate.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
68
79
  registry: registry,
69
80
  aminoTypes: aminoTypes
70
81
  });
71
82
 
72
- case 5:
83
+ case 4:
73
84
  client = _context.sent;
74
85
  return _context.abrupt("return", client);
75
86
 
76
- case 7:
87
+ case 6:
77
88
  case "end":
78
89
  return _context.stop();
79
90
  }
@@ -23,6 +23,8 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
23
23
 
24
24
  var _lcd = require("@osmonauts/lcd");
25
25
 
26
+ var _helpers = require("@osmonauts/helpers");
27
+
26
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); }; }
27
29
 
28
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; } }
@@ -45,20 +47,24 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
45
47
  (0, _createClass2["default"])(LCDQueryClient, [{
46
48
  key: "params",
47
49
  value: function () {
48
- var _params2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_params) {
49
- var endpoint;
50
+ var _params2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
51
+ var _params,
52
+ endpoint,
53
+ _args = arguments;
54
+
50
55
  return _regenerator["default"].wrap(function _callee$(_context) {
51
56
  while (1) {
52
57
  switch (_context.prev = _context.next) {
53
58
  case 0:
59
+ _params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
54
60
  endpoint = "cosmos/distribution/v1beta1/params";
55
- _context.next = 3;
61
+ _context.next = 4;
56
62
  return this.request(endpoint);
57
63
 
58
- case 3:
64
+ case 4:
59
65
  return _context.abrupt("return", _context.sent);
60
66
 
61
- case 4:
67
+ case 5:
62
68
  case "end":
63
69
  return _context.stop();
64
70
  }
@@ -66,7 +72,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
66
72
  }, _callee, this);
67
73
  }));
68
74
 
69
- function params(_x) {
75
+ function params() {
70
76
  return _params2.apply(this, arguments);
71
77
  }
72
78
 
@@ -91,7 +97,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
91
97
  options.params.validator_address = params.validatorAddress;
92
98
  }
93
99
 
94
- endpoint = "cosmos/distribution/v1beta1/validators/".concat(params.validator_address, "/outstanding_rewards");
100
+ endpoint = "cosmos/distribution/v1beta1/validators/".concat(params.validatorAddress, "/outstanding_rewards");
95
101
  _context2.next = 5;
96
102
  return this.request(endpoint, options);
97
103
 
@@ -106,7 +112,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
106
112
  }, _callee2, this);
107
113
  }));
108
114
 
109
- function validatorOutstandingRewards(_x2) {
115
+ function validatorOutstandingRewards(_x) {
110
116
  return _validatorOutstandingRewards.apply(this, arguments);
111
117
  }
112
118
 
@@ -131,7 +137,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
131
137
  options.params.validator_address = params.validatorAddress;
132
138
  }
133
139
 
134
- endpoint = "cosmos/distribution/v1beta1/validators/".concat(params.validator_address, "/commission");
140
+ endpoint = "cosmos/distribution/v1beta1/validators/".concat(params.validatorAddress, "/commission");
135
141
  _context3.next = 5;
136
142
  return this.request(endpoint, options);
137
143
 
@@ -146,7 +152,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
146
152
  }, _callee3, this);
147
153
  }));
148
154
 
149
- function validatorCommission(_x3) {
155
+ function validatorCommission(_x2) {
150
156
  return _validatorCommission.apply(this, arguments);
151
157
  }
152
158
 
@@ -180,10 +186,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
180
186
  }
181
187
 
182
188
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
183
- options.params.pagination = params.pagination;
189
+ (0, _helpers.setPaginationParams)(options, params.pagination);
184
190
  }
185
191
 
186
- endpoint = "cosmos/distribution/v1beta1/validators/".concat(params.validator_address, "/slashes");
192
+ endpoint = "cosmos/distribution/v1beta1/validators/".concat(params.validatorAddress, "/slashes");
187
193
  _context4.next = 8;
188
194
  return this.request(endpoint, options);
189
195
 
@@ -198,7 +204,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
198
204
  }, _callee4, this);
199
205
  }));
200
206
 
201
- function validatorSlashes(_x4) {
207
+ function validatorSlashes(_x3) {
202
208
  return _validatorSlashes.apply(this, arguments);
203
209
  }
204
210
 
@@ -227,7 +233,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
227
233
  options.params.validator_address = params.validatorAddress;
228
234
  }
229
235
 
230
- endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegator_address, "rewards/").concat(params.validator_address);
236
+ endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegatorAddress, "rewards/").concat(params.validatorAddress);
231
237
  _context5.next = 6;
232
238
  return this.request(endpoint, options);
233
239
 
@@ -242,7 +248,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
242
248
  }, _callee5, this);
243
249
  }));
244
250
 
245
- function delegationRewards(_x5) {
251
+ function delegationRewards(_x4) {
246
252
  return _delegationRewards.apply(this, arguments);
247
253
  }
248
254
 
@@ -268,7 +274,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
268
274
  options.params.delegator_address = params.delegatorAddress;
269
275
  }
270
276
 
271
- endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegator_address, "/rewards");
277
+ endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegatorAddress, "/rewards");
272
278
  _context6.next = 5;
273
279
  return this.request(endpoint, options);
274
280
 
@@ -283,7 +289,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
283
289
  }, _callee6, this);
284
290
  }));
285
291
 
286
- function delegationTotalRewards(_x6) {
292
+ function delegationTotalRewards(_x5) {
287
293
  return _delegationTotalRewards.apply(this, arguments);
288
294
  }
289
295
 
@@ -308,7 +314,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
308
314
  options.params.delegator_address = params.delegatorAddress;
309
315
  }
310
316
 
311
- endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegator_address, "/validators");
317
+ endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegatorAddress, "/validators");
312
318
  _context7.next = 5;
313
319
  return this.request(endpoint, options);
314
320
 
@@ -323,7 +329,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
323
329
  }, _callee7, this);
324
330
  }));
325
331
 
326
- function delegatorValidators(_x7) {
332
+ function delegatorValidators(_x6) {
327
333
  return _delegatorValidators.apply(this, arguments);
328
334
  }
329
335
 
@@ -348,7 +354,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
348
354
  options.params.delegator_address = params.delegatorAddress;
349
355
  }
350
356
 
351
- endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegator_address, "/withdraw_address");
357
+ endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegatorAddress, "/withdraw_address");
352
358
  _context8.next = 5;
353
359
  return this.request(endpoint, options);
354
360
 
@@ -363,7 +369,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
363
369
  }, _callee8, this);
364
370
  }));
365
371
 
366
- function delegatorWithdrawAddress(_x8) {
372
+ function delegatorWithdrawAddress(_x7) {
367
373
  return _delegatorWithdrawAddress.apply(this, arguments);
368
374
  }
369
375
 
@@ -374,20 +380,24 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
374
380
  }, {
375
381
  key: "communityPool",
376
382
  value: function () {
377
- var _communityPool = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(params) {
378
- var endpoint;
383
+ var _communityPool = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9() {
384
+ var _params,
385
+ endpoint,
386
+ _args9 = arguments;
387
+
379
388
  return _regenerator["default"].wrap(function _callee9$(_context9) {
380
389
  while (1) {
381
390
  switch (_context9.prev = _context9.next) {
382
391
  case 0:
392
+ _params = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
383
393
  endpoint = "cosmos/distribution/v1beta1/community_pool";
384
- _context9.next = 3;
394
+ _context9.next = 4;
385
395
  return this.request(endpoint);
386
396
 
387
- case 3:
397
+ case 4:
388
398
  return _context9.abrupt("return", _context9.sent);
389
399
 
390
- case 4:
400
+ case 5:
391
401
  case "end":
392
402
  return _context9.stop();
393
403
  }
@@ -395,7 +405,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
395
405
  }, _callee9, this);
396
406
  }));
397
407
 
398
- function communityPool(_x9) {
408
+ function communityPool() {
399
409
  return _communityPool.apply(this, arguments);
400
410
  }
401
411
 
@@ -23,6 +23,8 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
23
23
 
24
24
  var _lcd = require("@osmonauts/lcd");
25
25
 
26
+ var _helpers = require("@osmonauts/helpers");
27
+
26
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); }; }
27
29
 
28
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; } }
@@ -59,7 +61,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
59
61
  options.params.proposal_id = params.proposalId;
60
62
  }
61
63
 
62
- endpoint = "cosmos/gov/v1/proposals/".concat(params.proposal_id);
64
+ endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId);
63
65
  _context.next = 5;
64
66
  return this.request(endpoint, options);
65
67
 
@@ -108,7 +110,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
108
110
  }
109
111
 
110
112
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
111
- options.params.pagination = params.pagination;
113
+ (0, _helpers.setPaginationParams)(options, params.pagination);
112
114
  }
113
115
 
114
116
  endpoint = "cosmos/gov/v1/proposals";
@@ -151,7 +153,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
151
153
  options.params.proposal_id = params.proposalId;
152
154
  }
153
155
 
154
- endpoint = "cosmos/gov/v1/proposals/".concat(params.proposal_id, "votes/").concat(params.voter);
156
+ endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "votes/").concat(params.voter);
155
157
  _context3.next = 5;
156
158
  return this.request(endpoint, options);
157
159
 
@@ -192,10 +194,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
192
194
  }
193
195
 
194
196
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
195
- options.params.pagination = params.pagination;
197
+ (0, _helpers.setPaginationParams)(options, params.pagination);
196
198
  }
197
199
 
198
- endpoint = "cosmos/gov/v1/proposals/".concat(params.proposal_id, "/votes");
200
+ endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "/votes");
199
201
  _context4.next = 6;
200
202
  return this.request(endpoint, options);
201
203
 
@@ -235,7 +237,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
235
237
  options.params.params_type = _params.paramsType;
236
238
  }
237
239
 
238
- endpoint = "cosmos/gov/v1/params/".concat(_params.params_type);
240
+ endpoint = "cosmos/gov/v1/params/".concat(_params.paramsType);
239
241
  _context5.next = 5;
240
242
  return this.request(endpoint, options);
241
243
 
@@ -275,7 +277,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
275
277
  options.params.proposal_id = params.proposalId;
276
278
  }
277
279
 
278
- endpoint = "cosmos/gov/v1/proposals/".concat(params.proposal_id, "deposits/").concat(params.depositor);
280
+ endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "deposits/").concat(params.depositor);
279
281
  _context6.next = 5;
280
282
  return this.request(endpoint, options);
281
283
 
@@ -316,10 +318,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
316
318
  }
317
319
 
318
320
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
319
- options.params.pagination = params.pagination;
321
+ (0, _helpers.setPaginationParams)(options, params.pagination);
320
322
  }
321
323
 
322
- endpoint = "cosmos/gov/v1/proposals/".concat(params.proposal_id, "/deposits");
324
+ endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "/deposits");
323
325
  _context7.next = 6;
324
326
  return this.request(endpoint, options);
325
327
 
@@ -359,7 +361,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
359
361
  options.params.proposal_id = params.proposalId;
360
362
  }
361
363
 
362
- endpoint = "cosmos/gov/v1/proposals/".concat(params.proposal_id, "/tally");
364
+ endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "/tally");
363
365
  _context8.next = 5;
364
366
  return this.request(endpoint, options);
365
367
 
@@ -23,6 +23,8 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
23
23
 
24
24
  var _lcd = require("@osmonauts/lcd");
25
25
 
26
+ var _helpers = require("@osmonauts/helpers");
27
+
26
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); }; }
27
29
 
28
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; } }
@@ -59,7 +61,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
59
61
  options.params.proposal_id = params.proposalId;
60
62
  }
61
63
 
62
- endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposal_id);
64
+ endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposalId);
63
65
  _context.next = 5;
64
66
  return this.request(endpoint, options);
65
67
 
@@ -108,7 +110,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
108
110
  }
109
111
 
110
112
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
111
- options.params.pagination = params.pagination;
113
+ (0, _helpers.setPaginationParams)(options, params.pagination);
112
114
  }
113
115
 
114
116
  endpoint = "cosmos/gov/v1beta1/proposals";
@@ -151,7 +153,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
151
153
  options.params.proposal_id = params.proposalId;
152
154
  }
153
155
 
154
- endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposal_id, "votes/").concat(params.voter);
156
+ endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposalId, "votes/").concat(params.voter);
155
157
  _context3.next = 5;
156
158
  return this.request(endpoint, options);
157
159
 
@@ -192,10 +194,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
192
194
  }
193
195
 
194
196
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
195
- options.params.pagination = params.pagination;
197
+ (0, _helpers.setPaginationParams)(options, params.pagination);
196
198
  }
197
199
 
198
- endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposal_id, "/votes");
200
+ endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposalId, "/votes");
199
201
  _context4.next = 6;
200
202
  return this.request(endpoint, options);
201
203
 
@@ -235,7 +237,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
235
237
  options.params.params_type = _params.paramsType;
236
238
  }
237
239
 
238
- endpoint = "cosmos/gov/v1beta1/params/".concat(_params.params_type);
240
+ endpoint = "cosmos/gov/v1beta1/params/".concat(_params.paramsType);
239
241
  _context5.next = 5;
240
242
  return this.request(endpoint, options);
241
243
 
@@ -275,7 +277,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
275
277
  options.params.proposal_id = params.proposalId;
276
278
  }
277
279
 
278
- endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposal_id, "deposits/").concat(params.depositor);
280
+ endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposalId, "deposits/").concat(params.depositor);
279
281
  _context6.next = 5;
280
282
  return this.request(endpoint, options);
281
283
 
@@ -316,10 +318,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
316
318
  }
317
319
 
318
320
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
319
- options.params.pagination = params.pagination;
321
+ (0, _helpers.setPaginationParams)(options, params.pagination);
320
322
  }
321
323
 
322
- endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposal_id, "/deposits");
324
+ endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposalId, "/deposits");
323
325
  _context7.next = 6;
324
326
  return this.request(endpoint, options);
325
327
 
@@ -359,7 +361,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
359
361
  options.params.proposal_id = params.proposalId;
360
362
  }
361
363
 
362
- endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposal_id, "/tally");
364
+ endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposalId, "/tally");
363
365
  _context8.next = 5;
364
366
  return this.request(endpoint, options);
365
367
 
@@ -23,6 +23,8 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
23
23
 
24
24
  var _lcd = require("@osmonauts/lcd");
25
25
 
26
+ var _helpers = require("@osmonauts/helpers");
27
+
26
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); }; }
27
29
 
28
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; } }
@@ -59,7 +61,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
59
61
  options.params.group_id = params.groupId;
60
62
  }
61
63
 
62
- endpoint = "cosmos/group/v1/group_info/".concat(params.group_id);
64
+ endpoint = "cosmos/group/v1/group_info/".concat(params.groupId);
63
65
  _context.next = 5;
64
66
  return this.request(endpoint, options);
65
67
 
@@ -132,10 +134,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
132
134
  }
133
135
 
134
136
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
135
- options.params.pagination = params.pagination;
137
+ (0, _helpers.setPaginationParams)(options, params.pagination);
136
138
  }
137
139
 
138
- endpoint = "cosmos/group/v1/group_members/".concat(params.group_id);
140
+ endpoint = "cosmos/group/v1/group_members/".concat(params.groupId);
139
141
  _context3.next = 6;
140
142
  return this.request(endpoint, options);
141
143
 
@@ -172,7 +174,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
172
174
  };
173
175
 
174
176
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
175
- options.params.pagination = params.pagination;
177
+ (0, _helpers.setPaginationParams)(options, params.pagination);
176
178
  }
177
179
 
178
180
  endpoint = "cosmos/group/v1/groups_by_admin/".concat(params.admin);
@@ -216,10 +218,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
216
218
  }
217
219
 
218
220
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
219
- options.params.pagination = params.pagination;
221
+ (0, _helpers.setPaginationParams)(options, params.pagination);
220
222
  }
221
223
 
222
- endpoint = "cosmos/group/v1/group_policies_by_group/".concat(params.group_id);
224
+ endpoint = "cosmos/group/v1/group_policies_by_group/".concat(params.groupId);
223
225
  _context5.next = 6;
224
226
  return this.request(endpoint, options);
225
227
 
@@ -256,7 +258,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
256
258
  };
257
259
 
258
260
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
259
- options.params.pagination = params.pagination;
261
+ (0, _helpers.setPaginationParams)(options, params.pagination);
260
262
  }
261
263
 
262
264
  endpoint = "cosmos/group/v1/group_policies_by_admin/".concat(params.admin);
@@ -299,7 +301,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
299
301
  options.params.proposal_id = params.proposalId;
300
302
  }
301
303
 
302
- endpoint = "cosmos/group/v1/proposal/".concat(params.proposal_id);
304
+ endpoint = "cosmos/group/v1/proposal/".concat(params.proposalId);
303
305
  _context7.next = 5;
304
306
  return this.request(endpoint, options);
305
307
 
@@ -336,7 +338,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
336
338
  };
337
339
 
338
340
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
339
- options.params.pagination = params.pagination;
341
+ (0, _helpers.setPaginationParams)(options, params.pagination);
340
342
  }
341
343
 
342
344
  endpoint = "cosmos/group/v1/proposals_by_group_policy/".concat(params.address);
@@ -379,7 +381,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
379
381
  options.params.proposal_id = params.proposalId;
380
382
  }
381
383
 
382
- endpoint = "cosmos/group/v1/vote_by_proposal_voter/".concat(params.proposal_id, "/").concat(params.voter);
384
+ endpoint = "cosmos/group/v1/vote_by_proposal_voter/".concat(params.proposalId, "/").concat(params.voter);
383
385
  _context9.next = 5;
384
386
  return this.request(endpoint, options);
385
387
 
@@ -420,10 +422,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
420
422
  }
421
423
 
422
424
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
423
- options.params.pagination = params.pagination;
425
+ (0, _helpers.setPaginationParams)(options, params.pagination);
424
426
  }
425
427
 
426
- endpoint = "cosmos/group/v1/votes_by_proposal/".concat(params.proposal_id);
428
+ endpoint = "cosmos/group/v1/votes_by_proposal/".concat(params.proposalId);
427
429
  _context10.next = 6;
428
430
  return this.request(endpoint, options);
429
431
 
@@ -460,7 +462,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
460
462
  };
461
463
 
462
464
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
463
- options.params.pagination = params.pagination;
465
+ (0, _helpers.setPaginationParams)(options, params.pagination);
464
466
  }
465
467
 
466
468
  endpoint = "cosmos/group/v1/votes_by_voter/".concat(params.voter);
@@ -500,7 +502,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
500
502
  };
501
503
 
502
504
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
503
- options.params.pagination = params.pagination;
505
+ (0, _helpers.setPaginationParams)(options, params.pagination);
504
506
  }
505
507
 
506
508
  endpoint = "cosmos/group/v1/groups_by_member/".concat(params.address);
@@ -543,7 +545,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
543
545
  options.params.proposal_id = params.proposalId;
544
546
  }
545
547
 
546
- endpoint = "cosmos/group/v1/proposals/".concat(params.proposal_id, "/tally");
548
+ endpoint = "cosmos/group/v1/proposals/".concat(params.proposalId, "/tally");
547
549
  _context13.next = 5;
548
550
  return this.request(endpoint, options);
549
551