juno-network 0.2.0 → 0.2.1

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 (32) 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/client.js +20 -9
  4. package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +37 -27
  5. package/main/codegen/cosmos/gov/v1/query.lcd.js +12 -10
  6. package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +12 -10
  7. package/main/codegen/cosmos/group/v1/query.lcd.js +17 -15
  8. package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +39 -29
  9. package/main/codegen/cosmwasm/client.js +28 -12
  10. package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +35 -21
  11. package/main/codegen/ibc/applications/transfer/v1/query.lcd.js +25 -13
  12. package/main/codegen/ibc/client.js +28 -12
  13. package/main/codegen/ibc/core/channel/v1/query.lcd.js +40 -32
  14. package/main/codegen/juno/mint/query.lcd.js +30 -18
  15. package/module/codegen/JunoSwap.client.js +1 -1
  16. package/module/codegen/JunoSwap.react-query.js +1 -1
  17. package/module/codegen/contracts.js +1 -1
  18. package/module/codegen/cosmos/bank/v1beta1/query.lcd.js +13 -8
  19. package/module/codegen/cosmos/client.js +12 -2
  20. package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +11 -10
  21. package/module/codegen/cosmos/gov/v1/query.lcd.js +11 -10
  22. package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +11 -10
  23. package/module/codegen/cosmos/group/v1/query.lcd.js +16 -15
  24. package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +20 -19
  25. package/module/codegen/cosmwasm/client.js +16 -2
  26. package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +16 -11
  27. package/module/codegen/ibc/applications/transfer/v1/query.lcd.js +6 -3
  28. package/module/codegen/ibc/client.js +16 -2
  29. package/module/codegen/ibc/core/channel/v1/query.lcd.js +19 -16
  30. package/module/codegen/index.js +1 -1
  31. package/module/codegen/juno/mint/query.lcd.js +3 -3
  32. package/package.json +14 -14
@@ -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; } }
@@ -88,7 +90,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
88
90
  };
89
91
 
90
92
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
91
- options.params.pagination = params.pagination;
93
+ (0, _helpers.setPaginationParams)(options, params.pagination);
92
94
  }
93
95
 
94
96
  endpoint = "cosmwasm/wasm/v1/contract/".concat(params.address, "/history");
@@ -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 = "cosmwasm/wasm/v1/code/".concat(params.code_id, "/contracts");
140
+ endpoint = "cosmwasm/wasm/v1/code/".concat(params.codeId, "/contracts");
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 = "cosmwasm/wasm/v1/contract/".concat(params.address, "/state");
@@ -215,7 +217,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
215
217
  options.params.query_data = params.queryData;
216
218
  }
217
219
 
218
- endpoint = "wasm/v1/contract/".concat(params.address, "raw/").concat(params.query_data);
220
+ endpoint = "wasm/v1/contract/".concat(params.address, "raw/").concat(params.queryData);
219
221
  _context5.next = 5;
220
222
  return this.request(endpoint, options);
221
223
 
@@ -255,7 +257,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
255
257
  options.params.query_data = params.queryData;
256
258
  }
257
259
 
258
- endpoint = "wasm/v1/contract/".concat(params.address, "smart/").concat(params.query_data);
260
+ endpoint = "wasm/v1/contract/".concat(params.address, "smart/").concat(params.queryData);
259
261
  _context6.next = 5;
260
262
  return this.request(endpoint, options);
261
263
 
@@ -295,7 +297,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
295
297
  options.params.code_id = params.codeId;
296
298
  }
297
299
 
298
- endpoint = "cosmwasm/wasm/v1/code/".concat(params.code_id);
300
+ endpoint = "cosmwasm/wasm/v1/code/".concat(params.codeId);
299
301
  _context7.next = 5;
300
302
  return this.request(endpoint, options);
301
303
 
@@ -321,28 +323,34 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
321
323
  }, {
322
324
  key: "codes",
323
325
  value: function () {
324
- var _codes = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(params) {
325
- var options, endpoint;
326
+ var _codes = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8() {
327
+ var params,
328
+ options,
329
+ endpoint,
330
+ _args8 = arguments;
326
331
  return _regenerator["default"].wrap(function _callee8$(_context8) {
327
332
  while (1) {
328
333
  switch (_context8.prev = _context8.next) {
329
334
  case 0:
335
+ params = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {
336
+ pagination: undefined
337
+ };
330
338
  options = {
331
339
  params: {}
332
340
  };
333
341
 
334
342
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
335
- options.params.pagination = params.pagination;
343
+ (0, _helpers.setPaginationParams)(options, params.pagination);
336
344
  }
337
345
 
338
346
  endpoint = "cosmwasm/wasm/v1/code";
339
- _context8.next = 5;
347
+ _context8.next = 6;
340
348
  return this.request(endpoint, options);
341
349
 
342
- case 5:
350
+ case 6:
343
351
  return _context8.abrupt("return", _context8.sent);
344
352
 
345
- case 6:
353
+ case 7:
346
354
  case "end":
347
355
  return _context8.stop();
348
356
  }
@@ -350,7 +358,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
350
358
  }, _callee8, this);
351
359
  }));
352
360
 
353
- function codes(_x8) {
361
+ function codes() {
354
362
  return _codes.apply(this, arguments);
355
363
  }
356
364
 
@@ -361,28 +369,34 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
361
369
  }, {
362
370
  key: "pinnedCodes",
363
371
  value: function () {
364
- var _pinnedCodes = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(params) {
365
- var options, endpoint;
372
+ var _pinnedCodes = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9() {
373
+ var params,
374
+ options,
375
+ endpoint,
376
+ _args9 = arguments;
366
377
  return _regenerator["default"].wrap(function _callee9$(_context9) {
367
378
  while (1) {
368
379
  switch (_context9.prev = _context9.next) {
369
380
  case 0:
381
+ params = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {
382
+ pagination: undefined
383
+ };
370
384
  options = {
371
385
  params: {}
372
386
  };
373
387
 
374
388
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
375
- options.params.pagination = params.pagination;
389
+ (0, _helpers.setPaginationParams)(options, params.pagination);
376
390
  }
377
391
 
378
392
  endpoint = "cosmwasm/wasm/v1/codes/pinned";
379
- _context9.next = 5;
393
+ _context9.next = 6;
380
394
  return this.request(endpoint, options);
381
395
 
382
- case 5:
396
+ case 6:
383
397
  return _context9.abrupt("return", _context9.sent);
384
398
 
385
- case 6:
399
+ case 7:
386
400
  case "end":
387
401
  return _context9.stop();
388
402
  }
@@ -390,7 +404,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
390
404
  }, _callee9, this);
391
405
  }));
392
406
 
393
- function pinnedCodes(_x9) {
407
+ function pinnedCodes() {
394
408
  return _pinnedCodes.apply(this, arguments);
395
409
  }
396
410
 
@@ -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; } }
@@ -77,28 +79,34 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
77
79
  }, {
78
80
  key: "denomTraces",
79
81
  value: function () {
80
- var _denomTraces = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(params) {
81
- var options, endpoint;
82
+ var _denomTraces = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
83
+ var params,
84
+ options,
85
+ endpoint,
86
+ _args2 = arguments;
82
87
  return _regenerator["default"].wrap(function _callee2$(_context2) {
83
88
  while (1) {
84
89
  switch (_context2.prev = _context2.next) {
85
90
  case 0:
91
+ params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {
92
+ pagination: undefined
93
+ };
86
94
  options = {
87
95
  params: {}
88
96
  };
89
97
 
90
98
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
91
- options.params.pagination = params.pagination;
99
+ (0, _helpers.setPaginationParams)(options, params.pagination);
92
100
  }
93
101
 
94
102
  endpoint = "ibc/apps/transfer/v1/denom_traces";
95
- _context2.next = 5;
103
+ _context2.next = 6;
96
104
  return this.request(endpoint, options);
97
105
 
98
- case 5:
106
+ case 6:
99
107
  return _context2.abrupt("return", _context2.sent);
100
108
 
101
- case 6:
109
+ case 7:
102
110
  case "end":
103
111
  return _context2.stop();
104
112
  }
@@ -106,7 +114,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
106
114
  }, _callee2, this);
107
115
  }));
108
116
 
109
- function denomTraces(_x2) {
117
+ function denomTraces() {
110
118
  return _denomTraces.apply(this, arguments);
111
119
  }
112
120
 
@@ -117,20 +125,24 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
117
125
  }, {
118
126
  key: "params",
119
127
  value: function () {
120
- var _params2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(_params) {
121
- var endpoint;
128
+ var _params2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
129
+ var _params,
130
+ endpoint,
131
+ _args3 = arguments;
132
+
122
133
  return _regenerator["default"].wrap(function _callee3$(_context3) {
123
134
  while (1) {
124
135
  switch (_context3.prev = _context3.next) {
125
136
  case 0:
137
+ _params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
126
138
  endpoint = "ibc/apps/transfer/v1/params";
127
- _context3.next = 3;
139
+ _context3.next = 4;
128
140
  return this.request(endpoint);
129
141
 
130
- case 3:
142
+ case 4:
131
143
  return _context3.abrupt("return", _context3.sent);
132
144
 
133
- case 4:
145
+ case 5:
134
146
  case "end":
135
147
  return _context3.stop();
136
148
  }
@@ -138,7 +150,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
138
150
  }, _callee3, this);
139
151
  }));
140
152
 
141
- function params(_x3) {
153
+ function params() {
142
154
  return _params2.apply(this, arguments);
143
155
  }
144
156
 
@@ -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.getSigningIbcClient = void 0;
10
+ exports.getSigningIbcClientOptions = exports.getSigningIbcClient = 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");
@@ -37,28 +37,44 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
37
37
 
38
38
  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; }
39
39
 
40
+ var getSigningIbcClientOptions = function getSigningIbcClientOptions() {
41
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
42
+ _ref$defaultTypes = _ref.defaultTypes,
43
+ defaultTypes = _ref$defaultTypes === void 0 ? _stargate.defaultRegistryTypes : _ref$defaultTypes;
44
+
45
+ var registry = new _protoSigning.Registry([].concat((0, _toConsumableArray2["default"])(defaultTypes), (0, _toConsumableArray2["default"])(ibcApplicationsTransferV1TxRegistry.registry), (0, _toConsumableArray2["default"])(ibcCoreChannelV1TxRegistry.registry)));
46
+ var aminoTypes = new _stargate.AminoTypes(_objectSpread(_objectSpread({}, ibcApplicationsTransferV1TxAmino.AminoConverter), ibcCoreChannelV1TxAmino.AminoConverter));
47
+ return {
48
+ registry: registry,
49
+ aminoTypes: aminoTypes
50
+ };
51
+ };
52
+
53
+ exports.getSigningIbcClientOptions = getSigningIbcClientOptions;
54
+
40
55
  var getSigningIbcClient = /*#__PURE__*/function () {
41
- var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref) {
42
- var rpcEndpoint, signer, _ref$defaultTypes, defaultTypes, registry, aminoTypes, client;
56
+ var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref2) {
57
+ var rpcEndpoint, signer, _ref2$defaultTypes, defaultTypes, _getSigningIbcClientO, registry, aminoTypes, client;
43
58
 
44
59
  return _regenerator["default"].wrap(function _callee$(_context) {
45
60
  while (1) {
46
61
  switch (_context.prev = _context.next) {
47
62
  case 0:
48
- rpcEndpoint = _ref.rpcEndpoint, signer = _ref.signer, _ref$defaultTypes = _ref.defaultTypes, defaultTypes = _ref$defaultTypes === void 0 ? _stargate.defaultRegistryTypes : _ref$defaultTypes;
49
- registry = new _protoSigning.Registry([].concat((0, _toConsumableArray2["default"])(defaultTypes), (0, _toConsumableArray2["default"])(ibcApplicationsTransferV1TxRegistry.registry), (0, _toConsumableArray2["default"])(ibcCoreChannelV1TxRegistry.registry)));
50
- aminoTypes = new _stargate.AminoTypes(_objectSpread(_objectSpread({}, ibcApplicationsTransferV1TxAmino.AminoConverter), ibcCoreChannelV1TxAmino.AminoConverter));
51
- _context.next = 5;
63
+ rpcEndpoint = _ref2.rpcEndpoint, signer = _ref2.signer, _ref2$defaultTypes = _ref2.defaultTypes, defaultTypes = _ref2$defaultTypes === void 0 ? _stargate.defaultRegistryTypes : _ref2$defaultTypes;
64
+ _getSigningIbcClientO = getSigningIbcClientOptions({
65
+ defaultTypes: defaultTypes
66
+ }), registry = _getSigningIbcClientO.registry, aminoTypes = _getSigningIbcClientO.aminoTypes;
67
+ _context.next = 4;
52
68
  return _stargate.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
53
69
  registry: registry,
54
70
  aminoTypes: aminoTypes
55
71
  });
56
72
 
57
- case 5:
73
+ case 4:
58
74
  client = _context.sent;
59
75
  return _context.abrupt("return", client);
60
76
 
61
- case 7:
77
+ case 6:
62
78
  case "end":
63
79
  return _context.stop();
64
80
  }
@@ -67,7 +83,7 @@ var getSigningIbcClient = /*#__PURE__*/function () {
67
83
  }));
68
84
 
69
85
  return function getSigningIbcClient(_x) {
70
- return _ref2.apply(this, arguments);
86
+ return _ref3.apply(this, arguments);
71
87
  };
72
88
  }();
73
89
 
@@ -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; } }
@@ -63,7 +65,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
63
65
  options.params.channel_id = params.channelId;
64
66
  }
65
67
 
66
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "ports/").concat(params.port_id);
68
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "ports/").concat(params.portId);
67
69
  _context.next = 6;
68
70
  return this.request(endpoint, options);
69
71
 
@@ -89,28 +91,34 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
89
91
  }, {
90
92
  key: "channels",
91
93
  value: function () {
92
- var _channels = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(params) {
93
- var options, endpoint;
94
+ var _channels = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
95
+ var params,
96
+ options,
97
+ endpoint,
98
+ _args2 = arguments;
94
99
  return _regenerator["default"].wrap(function _callee2$(_context2) {
95
100
  while (1) {
96
101
  switch (_context2.prev = _context2.next) {
97
102
  case 0:
103
+ params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {
104
+ pagination: undefined
105
+ };
98
106
  options = {
99
107
  params: {}
100
108
  };
101
109
 
102
110
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
103
- options.params.pagination = params.pagination;
111
+ (0, _helpers.setPaginationParams)(options, params.pagination);
104
112
  }
105
113
 
106
114
  endpoint = "ibc/core/channel/v1/channels";
107
- _context2.next = 5;
115
+ _context2.next = 6;
108
116
  return this.request(endpoint, options);
109
117
 
110
- case 5:
118
+ case 6:
111
119
  return _context2.abrupt("return", _context2.sent);
112
120
 
113
- case 6:
121
+ case 7:
114
122
  case "end":
115
123
  return _context2.stop();
116
124
  }
@@ -118,7 +126,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
118
126
  }, _callee2, this);
119
127
  }));
120
128
 
121
- function channels(_x2) {
129
+ function channels() {
122
130
  return _channels.apply(this, arguments);
123
131
  }
124
132
 
@@ -141,7 +149,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
141
149
  };
142
150
 
143
151
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
144
- options.params.pagination = params.pagination;
152
+ (0, _helpers.setPaginationParams)(options, params.pagination);
145
153
  }
146
154
 
147
155
  endpoint = "ibc/core/channel/v1/connections/".concat(params.connection, "/channels");
@@ -159,7 +167,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
159
167
  }, _callee3, this);
160
168
  }));
161
169
 
162
- function connectionChannels(_x3) {
170
+ function connectionChannels(_x2) {
163
171
  return _connectionChannels.apply(this, arguments);
164
172
  }
165
173
 
@@ -189,7 +197,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
189
197
  options.params.channel_id = params.channelId;
190
198
  }
191
199
 
192
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/client_state");
200
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/client_state");
193
201
  _context4.next = 6;
194
202
  return this.request(endpoint, options);
195
203
 
@@ -204,7 +212,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
204
212
  }, _callee4, this);
205
213
  }));
206
214
 
207
- function channelClientState(_x4) {
215
+ function channelClientState(_x3) {
208
216
  return _channelClientState.apply(this, arguments);
209
217
  }
210
218
 
@@ -242,7 +250,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
242
250
  options.params.revision_height = params.revisionHeight;
243
251
  }
244
252
 
245
- 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);
253
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/consensus_state/revision/").concat(params.revisionNumber, "height/").concat(params.revisionHeight);
246
254
  _context5.next = 8;
247
255
  return this.request(endpoint, options);
248
256
 
@@ -257,7 +265,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
257
265
  }, _callee5, this);
258
266
  }));
259
267
 
260
- function channelConsensusState(_x5) {
268
+ function channelConsensusState(_x4) {
261
269
  return _channelConsensusState.apply(this, arguments);
262
270
  }
263
271
 
@@ -286,7 +294,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
286
294
  options.params.channel_id = params.channelId;
287
295
  }
288
296
 
289
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "packet_commitments/").concat(params.sequence);
297
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "packet_commitments/").concat(params.sequence);
290
298
  _context6.next = 6;
291
299
  return this.request(endpoint, options);
292
300
 
@@ -301,7 +309,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
301
309
  }, _callee6, this);
302
310
  }));
303
311
 
304
- function packetCommitment(_x6) {
312
+ function packetCommitment(_x5) {
305
313
  return _packetCommitment.apply(this, arguments);
306
314
  }
307
315
 
@@ -332,10 +340,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
332
340
  }
333
341
 
334
342
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
335
- options.params.pagination = params.pagination;
343
+ (0, _helpers.setPaginationParams)(options, params.pagination);
336
344
  }
337
345
 
338
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/packet_commitments");
346
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_commitments");
339
347
  _context7.next = 7;
340
348
  return this.request(endpoint, options);
341
349
 
@@ -350,7 +358,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
350
358
  }, _callee7, this);
351
359
  }));
352
360
 
353
- function packetCommitments(_x7) {
361
+ function packetCommitments(_x6) {
354
362
  return _packetCommitments.apply(this, arguments);
355
363
  }
356
364
 
@@ -380,7 +388,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
380
388
  options.params.channel_id = params.channelId;
381
389
  }
382
390
 
383
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "packet_receipts/").concat(params.sequence);
391
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "packet_receipts/").concat(params.sequence);
384
392
  _context8.next = 6;
385
393
  return this.request(endpoint, options);
386
394
 
@@ -395,7 +403,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
395
403
  }, _callee8, this);
396
404
  }));
397
405
 
398
- function packetReceipt(_x8) {
406
+ function packetReceipt(_x7) {
399
407
  return _packetReceipt.apply(this, arguments);
400
408
  }
401
409
 
@@ -424,7 +432,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
424
432
  options.params.channel_id = params.channelId;
425
433
  }
426
434
 
427
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "packet_acks/").concat(params.sequence);
435
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "packet_acks/").concat(params.sequence);
428
436
  _context9.next = 6;
429
437
  return this.request(endpoint, options);
430
438
 
@@ -439,7 +447,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
439
447
  }, _callee9, this);
440
448
  }));
441
449
 
442
- function packetAcknowledgement(_x9) {
450
+ function packetAcknowledgement(_x8) {
443
451
  return _packetAcknowledgement.apply(this, arguments);
444
452
  }
445
453
 
@@ -470,14 +478,14 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
470
478
  }
471
479
 
472
480
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
473
- options.params.pagination = params.pagination;
481
+ (0, _helpers.setPaginationParams)(options, params.pagination);
474
482
  }
475
483
 
476
484
  if (typeof (params === null || params === void 0 ? void 0 : params.packetCommitmentSequences) !== "undefined") {
477
485
  options.params.packet_commitment_sequences = params.packetCommitmentSequences;
478
486
  }
479
487
 
480
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/packet_acknowledgements");
488
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_acknowledgements");
481
489
  _context10.next = 8;
482
490
  return this.request(endpoint, options);
483
491
 
@@ -492,7 +500,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
492
500
  }, _callee10, this);
493
501
  }));
494
502
 
495
- function packetAcknowledgements(_x10) {
503
+ function packetAcknowledgements(_x9) {
496
504
  return _packetAcknowledgements.apply(this, arguments);
497
505
  }
498
506
 
@@ -526,7 +534,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
526
534
  options.params.packet_commitment_sequences = params.packetCommitmentSequences;
527
535
  }
528
536
 
529
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/packet_commitments/").concat(params.packet_commitment_sequences, "/unreceived_packets");
537
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_commitments/").concat(params.packetCommitmentSequences, "/unreceived_packets");
530
538
  _context11.next = 7;
531
539
  return this.request(endpoint, options);
532
540
 
@@ -541,7 +549,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
541
549
  }, _callee11, this);
542
550
  }));
543
551
 
544
- function unreceivedPackets(_x11) {
552
+ function unreceivedPackets(_x10) {
545
553
  return _unreceivedPackets.apply(this, arguments);
546
554
  }
547
555
 
@@ -575,7 +583,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
575
583
  options.params.packet_ack_sequences = params.packetAckSequences;
576
584
  }
577
585
 
578
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/packet_commitments/").concat(params.packet_ack_sequences, "/unreceived_acks");
586
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_commitments/").concat(params.packetAckSequences, "/unreceived_acks");
579
587
  _context12.next = 7;
580
588
  return this.request(endpoint, options);
581
589
 
@@ -590,7 +598,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
590
598
  }, _callee12, this);
591
599
  }));
592
600
 
593
- function unreceivedAcks(_x12) {
601
+ function unreceivedAcks(_x11) {
594
602
  return _unreceivedAcks.apply(this, arguments);
595
603
  }
596
604
 
@@ -619,7 +627,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
619
627
  options.params.channel_id = params.channelId;
620
628
  }
621
629
 
622
- endpoint = "ibc/core/channel/v1/channels/".concat(params.channel_id, "/ports/").concat(params.port_id, "/next_sequence");
630
+ endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/next_sequence");
623
631
  _context13.next = 6;
624
632
  return this.request(endpoint, options);
625
633
 
@@ -634,7 +642,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
634
642
  }, _callee13, this);
635
643
  }));
636
644
 
637
- function nextSequenceReceive(_x13) {
645
+ function nextSequenceReceive(_x12) {
638
646
  return _nextSequenceReceive.apply(this, arguments);
639
647
  }
640
648