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
@@ -63,27 +63,37 @@ var _185 = _interopRequireWildcard(require("./applications/transfer/v1/tx.amino"
63
63
 
64
64
  var _186 = _interopRequireWildcard(require("./core/channel/v1/tx.amino"));
65
65
 
66
- var _187 = _interopRequireWildcard(require("./applications/transfer/v1/tx.registry"));
66
+ var _187 = _interopRequireWildcard(require("./core/client/v1/tx.amino"));
67
67
 
68
- var _188 = _interopRequireWildcard(require("./core/channel/v1/tx.registry"));
68
+ var _188 = _interopRequireWildcard(require("./applications/transfer/v1/tx.registry"));
69
69
 
70
- var _189 = _interopRequireWildcard(require("./applications/transfer/v1/query.lcd"));
70
+ var _189 = _interopRequireWildcard(require("./core/channel/v1/tx.registry"));
71
71
 
72
- var _190 = _interopRequireWildcard(require("./core/channel/v1/query.lcd"));
72
+ var _190 = _interopRequireWildcard(require("./core/client/v1/tx.registry"));
73
73
 
74
- var _191 = _interopRequireWildcard(require("./applications/transfer/v1/query.rpc.query"));
74
+ var _191 = _interopRequireWildcard(require("./applications/transfer/v1/query.lcd"));
75
75
 
76
- var _192 = _interopRequireWildcard(require("./core/channel/v1/query.rpc.query"));
76
+ var _192 = _interopRequireWildcard(require("./core/channel/v1/query.lcd"));
77
77
 
78
- var _193 = _interopRequireWildcard(require("./applications/transfer/v1/tx.rpc.msg"));
78
+ var _193 = _interopRequireWildcard(require("./core/client/v1/query.lcd"));
79
79
 
80
- var _194 = _interopRequireWildcard(require("./core/channel/v1/tx.rpc.msg"));
80
+ var _194 = _interopRequireWildcard(require("./applications/transfer/v1/query.rpc.query"));
81
81
 
82
- var _203 = _interopRequireWildcard(require("./lcd"));
82
+ var _195 = _interopRequireWildcard(require("./core/channel/v1/query.rpc.query"));
83
83
 
84
- var _204 = _interopRequireWildcard(require("./rpc.query"));
84
+ var _196 = _interopRequireWildcard(require("./core/client/v1/query.rpc.query"));
85
85
 
86
- var _205 = _interopRequireWildcard(require("./rpc.tx"));
86
+ var _197 = _interopRequireWildcard(require("./applications/transfer/v1/tx.rpc.msg"));
87
+
88
+ var _198 = _interopRequireWildcard(require("./core/channel/v1/tx.rpc.msg"));
89
+
90
+ var _199 = _interopRequireWildcard(require("./core/client/v1/tx.rpc.msg"));
91
+
92
+ var _208 = _interopRequireWildcard(require("./lcd"));
93
+
94
+ var _209 = _interopRequireWildcard(require("./rpc.query"));
95
+
96
+ var _210 = _interopRequireWildcard(require("./rpc.tx"));
87
97
 
88
98
  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); }
89
99
 
@@ -103,7 +113,7 @@ exports.ibc = ibc;
103
113
  var transfer;
104
114
 
105
115
  (function (_transfer) {
106
- var v1 = _transfer.v1 = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _111), _112), _113), _114), _185), _187), _189), _191), _193);
116
+ var v1 = _transfer.v1 = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _111), _112), _113), _114), _185), _188), _191), _194), _197);
107
117
 
108
118
  var v2 = _transfer.v2 = _objectSpread({}, _115);
109
119
  })(transfer || (transfer = _applications.transfer || (_applications.transfer = {})));
@@ -115,13 +125,13 @@ exports.ibc = ibc;
115
125
  var channel;
116
126
 
117
127
  (function (_channel) {
118
- var v1 = _channel.v1 = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _116), _117), _118), _119), _186), _188), _190), _192), _194);
128
+ var v1 = _channel.v1 = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _116), _117), _118), _119), _186), _189), _192), _195), _198);
119
129
  })(channel || (channel = _core.channel || (_core.channel = {})));
120
130
 
121
131
  var client;
122
132
 
123
133
  (function (_client) {
124
- var v1 = _client.v1 = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _120), _121), _122), _123);
134
+ var v1 = _client.v1 = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _120), _121), _122), _123), _187), _190), _193), _196), _199);
125
135
  })(client || (client = _core.client || (_core.client = {})));
126
136
 
127
137
  var commitment;
@@ -173,5 +183,5 @@ exports.ibc = ibc;
173
183
  })(tendermint || (tendermint = _lightclients.tendermint || (_lightclients.tendermint = {})));
174
184
  })(lightclients || (lightclients = _ibc.lightclients || (_ibc.lightclients = {})));
175
185
 
176
- var ClientFactory = _ibc.ClientFactory = _objectSpread(_objectSpread(_objectSpread({}, _203), _204), _205);
186
+ var ClientFactory = _ibc.ClientFactory = _objectSpread(_objectSpread(_objectSpread({}, _208), _209), _210);
177
187
  })(ibc || (exports.ibc = ibc = {}));
@@ -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");
@@ -25,10 +25,14 @@ var ibcApplicationsTransferV1TxRegistry = _interopRequireWildcard(require("./app
25
25
 
26
26
  var ibcCoreChannelV1TxRegistry = _interopRequireWildcard(require("./core/channel/v1/tx.registry"));
27
27
 
28
+ var ibcCoreClientV1TxRegistry = _interopRequireWildcard(require("./core/client/v1/tx.registry"));
29
+
28
30
  var ibcApplicationsTransferV1TxAmino = _interopRequireWildcard(require("./applications/transfer/v1/tx.amino"));
29
31
 
30
32
  var ibcCoreChannelV1TxAmino = _interopRequireWildcard(require("./core/channel/v1/tx.amino"));
31
33
 
34
+ var ibcCoreClientV1TxAmino = _interopRequireWildcard(require("./core/client/v1/tx.amino"));
35
+
32
36
  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); }
33
37
 
34
38
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -37,28 +41,44 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
37
41
 
38
42
  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
43
 
44
+ var getSigningIbcClientOptions = function getSigningIbcClientOptions() {
45
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
46
+ _ref$defaultTypes = _ref.defaultTypes,
47
+ defaultTypes = _ref$defaultTypes === void 0 ? _stargate.defaultRegistryTypes : _ref$defaultTypes;
48
+
49
+ var registry = new _protoSigning.Registry([].concat((0, _toConsumableArray2["default"])(defaultTypes), (0, _toConsumableArray2["default"])(ibcApplicationsTransferV1TxRegistry.registry), (0, _toConsumableArray2["default"])(ibcCoreChannelV1TxRegistry.registry), (0, _toConsumableArray2["default"])(ibcCoreClientV1TxRegistry.registry)));
50
+ var aminoTypes = new _stargate.AminoTypes(_objectSpread(_objectSpread(_objectSpread({}, ibcApplicationsTransferV1TxAmino.AminoConverter), ibcCoreChannelV1TxAmino.AminoConverter), ibcCoreClientV1TxAmino.AminoConverter));
51
+ return {
52
+ registry: registry,
53
+ aminoTypes: aminoTypes
54
+ };
55
+ };
56
+
57
+ exports.getSigningIbcClientOptions = getSigningIbcClientOptions;
58
+
40
59
  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;
60
+ var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref2) {
61
+ var rpcEndpoint, signer, _ref2$defaultTypes, defaultTypes, _getSigningIbcClientO, registry, aminoTypes, client;
43
62
 
44
63
  return _regenerator["default"].wrap(function _callee$(_context) {
45
64
  while (1) {
46
65
  switch (_context.prev = _context.next) {
47
66
  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;
67
+ rpcEndpoint = _ref2.rpcEndpoint, signer = _ref2.signer, _ref2$defaultTypes = _ref2.defaultTypes, defaultTypes = _ref2$defaultTypes === void 0 ? _stargate.defaultRegistryTypes : _ref2$defaultTypes;
68
+ _getSigningIbcClientO = getSigningIbcClientOptions({
69
+ defaultTypes: defaultTypes
70
+ }), registry = _getSigningIbcClientO.registry, aminoTypes = _getSigningIbcClientO.aminoTypes;
71
+ _context.next = 4;
52
72
  return _stargate.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
53
73
  registry: registry,
54
74
  aminoTypes: aminoTypes
55
75
  });
56
76
 
57
- case 5:
77
+ case 4:
58
78
  client = _context.sent;
59
79
  return _context.abrupt("return", client);
60
80
 
61
- case 7:
81
+ case 6:
62
82
  case "end":
63
83
  return _context.stop();
64
84
  }
@@ -67,7 +87,7 @@ var getSigningIbcClient = /*#__PURE__*/function () {
67
87
  }));
68
88
 
69
89
  return function getSigningIbcClient(_x) {
70
- return _ref2.apply(this, arguments);
90
+ return _ref3.apply(this, arguments);
71
91
  };
72
92
  }();
73
93
 
@@ -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