juno-network 0.2.5 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/main/codegen/cosmos/auth/v1beta1/query.lcd.js +10 -26
- package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +33 -89
- package/main/codegen/cosmos/evidence/v1beta1/query.lcd.js +5 -13
- package/main/codegen/cosmos/gov/v1/query.lcd.js +31 -79
- package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +31 -79
- package/main/codegen/cosmos/group/v1/query.lcd.js +29 -73
- package/main/codegen/cosmos/nft/v1beta1/query.lcd.js +25 -65
- package/main/codegen/cosmos/slashing/v1beta1/query.lcd.js +5 -13
- package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +38 -106
- package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +5 -13
- package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +18 -46
- package/main/codegen/ibc/core/channel/v1/query.lcd.js +51 -191
- package/main/codegen/ibc/core/client/v1/query.lcd.js +16 -48
- package/main/codegen/ibc/core/connection/v1/query.lcd.js +20 -60
- package/module/codegen/cosmos/auth/v1beta1/query.lcd.js +2 -18
- package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +6 -62
- package/module/codegen/cosmos/evidence/v1beta1/query.lcd.js +1 -9
- package/module/codegen/cosmos/gov/v1/query.lcd.js +5 -53
- package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +5 -53
- package/module/codegen/cosmos/group/v1/query.lcd.js +4 -48
- package/module/codegen/cosmos/nft/v1beta1/query.lcd.js +5 -45
- package/module/codegen/cosmos/slashing/v1beta1/query.lcd.js +1 -9
- package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +4 -72
- package/module/codegen/cosmos/upgrade/v1beta1/query.lcd.js +1 -9
- package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +3 -31
- package/module/codegen/ibc/core/channel/v1/query.lcd.js +9 -149
- package/module/codegen/ibc/core/client/v1/query.lcd.js +2 -34
- package/module/codegen/ibc/core/connection/v1/query.lcd.js +4 -44
- package/module/codegen/index.js +1 -1
- package/package.json +5 -5
@@ -92,27 +92,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
92
92
|
key: "validator",
|
93
93
|
value: function () {
|
94
94
|
var _validator = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(params) {
|
95
|
-
var
|
95
|
+
var endpoint;
|
96
96
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
97
97
|
while (1) {
|
98
98
|
switch (_context2.prev = _context2.next) {
|
99
99
|
case 0:
|
100
|
-
options = {
|
101
|
-
params: {}
|
102
|
-
};
|
103
|
-
|
104
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddr) !== "undefined") {
|
105
|
-
options.params.validator_addr = params.validatorAddr;
|
106
|
-
}
|
107
|
-
|
108
100
|
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr);
|
109
|
-
_context2.next =
|
110
|
-
return this.request(endpoint
|
101
|
+
_context2.next = 3;
|
102
|
+
return this.request(endpoint);
|
111
103
|
|
112
|
-
case
|
104
|
+
case 3:
|
113
105
|
return _context2.abrupt("return", _context2.sent);
|
114
106
|
|
115
|
-
case
|
107
|
+
case 4:
|
116
108
|
case "end":
|
117
109
|
return _context2.stop();
|
118
110
|
}
|
@@ -141,22 +133,18 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
141
133
|
params: {}
|
142
134
|
};
|
143
135
|
|
144
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddr) !== "undefined") {
|
145
|
-
options.params.validator_addr = params.validatorAddr;
|
146
|
-
}
|
147
|
-
|
148
136
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
149
137
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
150
138
|
}
|
151
139
|
|
152
140
|
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "/delegations");
|
153
|
-
_context3.next =
|
141
|
+
_context3.next = 5;
|
154
142
|
return this.request(endpoint, options);
|
155
143
|
|
156
|
-
case
|
144
|
+
case 5:
|
157
145
|
return _context3.abrupt("return", _context3.sent);
|
158
146
|
|
159
|
-
case
|
147
|
+
case 6:
|
160
148
|
case "end":
|
161
149
|
return _context3.stop();
|
162
150
|
}
|
@@ -185,22 +173,18 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
185
173
|
params: {}
|
186
174
|
};
|
187
175
|
|
188
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddr) !== "undefined") {
|
189
|
-
options.params.validator_addr = params.validatorAddr;
|
190
|
-
}
|
191
|
-
|
192
176
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
193
177
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
194
178
|
}
|
195
179
|
|
196
180
|
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "/unbonding_delegations");
|
197
|
-
_context4.next =
|
181
|
+
_context4.next = 5;
|
198
182
|
return this.request(endpoint, options);
|
199
183
|
|
200
|
-
case
|
184
|
+
case 5:
|
201
185
|
return _context4.abrupt("return", _context4.sent);
|
202
186
|
|
203
|
-
case
|
187
|
+
case 6:
|
204
188
|
case "end":
|
205
189
|
return _context4.stop();
|
206
190
|
}
|
@@ -220,31 +204,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
220
204
|
key: "delegation",
|
221
205
|
value: function () {
|
222
206
|
var _delegation = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(params) {
|
223
|
-
var
|
207
|
+
var endpoint;
|
224
208
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
225
209
|
while (1) {
|
226
210
|
switch (_context5.prev = _context5.next) {
|
227
211
|
case 0:
|
228
|
-
options = {
|
229
|
-
params: {}
|
230
|
-
};
|
231
|
-
|
232
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
|
233
|
-
options.params.delegator_addr = params.delegatorAddr;
|
234
|
-
}
|
235
|
-
|
236
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddr) !== "undefined") {
|
237
|
-
options.params.validator_addr = params.validatorAddr;
|
238
|
-
}
|
239
|
-
|
240
212
|
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "delegations/").concat(params.delegatorAddr);
|
241
|
-
_context5.next =
|
242
|
-
return this.request(endpoint
|
213
|
+
_context5.next = 3;
|
214
|
+
return this.request(endpoint);
|
243
215
|
|
244
|
-
case
|
216
|
+
case 3:
|
245
217
|
return _context5.abrupt("return", _context5.sent);
|
246
218
|
|
247
|
-
case
|
219
|
+
case 4:
|
248
220
|
case "end":
|
249
221
|
return _context5.stop();
|
250
222
|
}
|
@@ -265,31 +237,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
265
237
|
key: "unbondingDelegation",
|
266
238
|
value: function () {
|
267
239
|
var _unbondingDelegation = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(params) {
|
268
|
-
var
|
240
|
+
var endpoint;
|
269
241
|
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
270
242
|
while (1) {
|
271
243
|
switch (_context6.prev = _context6.next) {
|
272
244
|
case 0:
|
273
|
-
options = {
|
274
|
-
params: {}
|
275
|
-
};
|
276
|
-
|
277
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
|
278
|
-
options.params.delegator_addr = params.delegatorAddr;
|
279
|
-
}
|
280
|
-
|
281
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddr) !== "undefined") {
|
282
|
-
options.params.validator_addr = params.validatorAddr;
|
283
|
-
}
|
284
|
-
|
285
245
|
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "/delegations/").concat(params.delegatorAddr, "/unbonding_delegation");
|
286
|
-
_context6.next =
|
287
|
-
return this.request(endpoint
|
246
|
+
_context6.next = 3;
|
247
|
+
return this.request(endpoint);
|
288
248
|
|
289
|
-
case
|
249
|
+
case 3:
|
290
250
|
return _context6.abrupt("return", _context6.sent);
|
291
251
|
|
292
|
-
case
|
252
|
+
case 4:
|
293
253
|
case "end":
|
294
254
|
return _context6.stop();
|
295
255
|
}
|
@@ -318,22 +278,18 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
318
278
|
params: {}
|
319
279
|
};
|
320
280
|
|
321
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
|
322
|
-
options.params.delegator_addr = params.delegatorAddr;
|
323
|
-
}
|
324
|
-
|
325
281
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
326
282
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
327
283
|
}
|
328
284
|
|
329
285
|
endpoint = "cosmos/staking/v1beta1/delegations/".concat(params.delegatorAddr);
|
330
|
-
_context7.next =
|
286
|
+
_context7.next = 5;
|
331
287
|
return this.request(endpoint, options);
|
332
288
|
|
333
|
-
case
|
289
|
+
case 5:
|
334
290
|
return _context7.abrupt("return", _context7.sent);
|
335
291
|
|
336
|
-
case
|
292
|
+
case 6:
|
337
293
|
case "end":
|
338
294
|
return _context7.stop();
|
339
295
|
}
|
@@ -363,22 +319,18 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
363
319
|
params: {}
|
364
320
|
};
|
365
321
|
|
366
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
|
367
|
-
options.params.delegator_addr = params.delegatorAddr;
|
368
|
-
}
|
369
|
-
|
370
322
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
371
323
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
372
324
|
}
|
373
325
|
|
374
326
|
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "/unbonding_delegations");
|
375
|
-
_context8.next =
|
327
|
+
_context8.next = 5;
|
376
328
|
return this.request(endpoint, options);
|
377
329
|
|
378
|
-
case
|
330
|
+
case 5:
|
379
331
|
return _context8.abrupt("return", _context8.sent);
|
380
332
|
|
381
|
-
case
|
333
|
+
case 6:
|
382
334
|
case "end":
|
383
335
|
return _context8.stop();
|
384
336
|
}
|
@@ -407,10 +359,6 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
407
359
|
params: {}
|
408
360
|
};
|
409
361
|
|
410
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
|
411
|
-
options.params.delegator_addr = params.delegatorAddr;
|
412
|
-
}
|
413
|
-
|
414
362
|
if (typeof (params === null || params === void 0 ? void 0 : params.srcValidatorAddr) !== "undefined") {
|
415
363
|
options.params.src_validator_addr = params.srcValidatorAddr;
|
416
364
|
}
|
@@ -424,13 +372,13 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
424
372
|
}
|
425
373
|
|
426
374
|
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "/redelegations");
|
427
|
-
_context9.next =
|
375
|
+
_context9.next = 7;
|
428
376
|
return this.request(endpoint, options);
|
429
377
|
|
430
|
-
case
|
378
|
+
case 7:
|
431
379
|
return _context9.abrupt("return", _context9.sent);
|
432
380
|
|
433
|
-
case
|
381
|
+
case 8:
|
434
382
|
case "end":
|
435
383
|
return _context9.stop();
|
436
384
|
}
|
@@ -460,22 +408,18 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
460
408
|
params: {}
|
461
409
|
};
|
462
410
|
|
463
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
|
464
|
-
options.params.delegator_addr = params.delegatorAddr;
|
465
|
-
}
|
466
|
-
|
467
411
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
468
412
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
469
413
|
}
|
470
414
|
|
471
415
|
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "/validators");
|
472
|
-
_context10.next =
|
416
|
+
_context10.next = 5;
|
473
417
|
return this.request(endpoint, options);
|
474
418
|
|
475
|
-
case
|
419
|
+
case 5:
|
476
420
|
return _context10.abrupt("return", _context10.sent);
|
477
421
|
|
478
|
-
case
|
422
|
+
case 6:
|
479
423
|
case "end":
|
480
424
|
return _context10.stop();
|
481
425
|
}
|
@@ -496,31 +440,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
496
440
|
key: "delegatorValidator",
|
497
441
|
value: function () {
|
498
442
|
var _delegatorValidator = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(params) {
|
499
|
-
var
|
443
|
+
var endpoint;
|
500
444
|
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
501
445
|
while (1) {
|
502
446
|
switch (_context11.prev = _context11.next) {
|
503
447
|
case 0:
|
504
|
-
options = {
|
505
|
-
params: {}
|
506
|
-
};
|
507
|
-
|
508
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
|
509
|
-
options.params.delegator_addr = params.delegatorAddr;
|
510
|
-
}
|
511
|
-
|
512
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddr) !== "undefined") {
|
513
|
-
options.params.validator_addr = params.validatorAddr;
|
514
|
-
}
|
515
|
-
|
516
448
|
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "validators/").concat(params.validatorAddr);
|
517
|
-
_context11.next =
|
518
|
-
return this.request(endpoint
|
449
|
+
_context11.next = 3;
|
450
|
+
return this.request(endpoint);
|
519
451
|
|
520
|
-
case
|
452
|
+
case 3:
|
521
453
|
return _context11.abrupt("return", _context11.sent);
|
522
454
|
|
523
|
-
case
|
455
|
+
case 4:
|
524
456
|
case "end":
|
525
457
|
return _context11.stop();
|
526
458
|
}
|
@@ -119,27 +119,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
119
119
|
key: "upgradedConsensusState",
|
120
120
|
value: function () {
|
121
121
|
var _upgradedConsensusState = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(params) {
|
122
|
-
var
|
122
|
+
var endpoint;
|
123
123
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
124
124
|
while (1) {
|
125
125
|
switch (_context3.prev = _context3.next) {
|
126
126
|
case 0:
|
127
|
-
options = {
|
128
|
-
params: {}
|
129
|
-
};
|
130
|
-
|
131
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.lastHeight) !== "undefined") {
|
132
|
-
options.params.last_height = params.lastHeight;
|
133
|
-
}
|
134
|
-
|
135
127
|
endpoint = "cosmos/upgrade/v1beta1/upgraded_consensus_state/".concat(params.lastHeight);
|
136
|
-
_context3.next =
|
137
|
-
return this.request(endpoint
|
128
|
+
_context3.next = 3;
|
129
|
+
return this.request(endpoint);
|
138
130
|
|
139
|
-
case
|
131
|
+
case 3:
|
140
132
|
return _context3.abrupt("return", _context3.sent);
|
141
133
|
|
142
|
-
case
|
134
|
+
case 4:
|
143
135
|
case "end":
|
144
136
|
return _context3.stop();
|
145
137
|
}
|
@@ -129,22 +129,18 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
129
129
|
params: {}
|
130
130
|
};
|
131
131
|
|
132
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.codeId) !== "undefined") {
|
133
|
-
options.params.code_id = params.codeId;
|
134
|
-
}
|
135
|
-
|
136
132
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
137
133
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
138
134
|
}
|
139
135
|
|
140
136
|
endpoint = "cosmwasm/wasm/v1/code/".concat(params.codeId, "/contracts");
|
141
|
-
_context3.next =
|
137
|
+
_context3.next = 5;
|
142
138
|
return this.request(endpoint, options);
|
143
139
|
|
144
|
-
case
|
140
|
+
case 5:
|
145
141
|
return _context3.abrupt("return", _context3.sent);
|
146
142
|
|
147
|
-
case
|
143
|
+
case 6:
|
148
144
|
case "end":
|
149
145
|
return _context3.stop();
|
150
146
|
}
|
@@ -204,27 +200,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
204
200
|
key: "rawContractState",
|
205
201
|
value: function () {
|
206
202
|
var _rawContractState = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(params) {
|
207
|
-
var
|
203
|
+
var endpoint;
|
208
204
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
209
205
|
while (1) {
|
210
206
|
switch (_context5.prev = _context5.next) {
|
211
207
|
case 0:
|
212
|
-
options = {
|
213
|
-
params: {}
|
214
|
-
};
|
215
|
-
|
216
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.queryData) !== "undefined") {
|
217
|
-
options.params.query_data = params.queryData;
|
218
|
-
}
|
219
|
-
|
220
208
|
endpoint = "wasm/v1/contract/".concat(params.address, "raw/").concat(params.queryData);
|
221
|
-
_context5.next =
|
222
|
-
return this.request(endpoint
|
209
|
+
_context5.next = 3;
|
210
|
+
return this.request(endpoint);
|
223
211
|
|
224
|
-
case
|
212
|
+
case 3:
|
225
213
|
return _context5.abrupt("return", _context5.sent);
|
226
214
|
|
227
|
-
case
|
215
|
+
case 4:
|
228
216
|
case "end":
|
229
217
|
return _context5.stop();
|
230
218
|
}
|
@@ -244,27 +232,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
244
232
|
key: "smartContractState",
|
245
233
|
value: function () {
|
246
234
|
var _smartContractState = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(params) {
|
247
|
-
var
|
235
|
+
var endpoint;
|
248
236
|
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
249
237
|
while (1) {
|
250
238
|
switch (_context6.prev = _context6.next) {
|
251
239
|
case 0:
|
252
|
-
options = {
|
253
|
-
params: {}
|
254
|
-
};
|
255
|
-
|
256
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.queryData) !== "undefined") {
|
257
|
-
options.params.query_data = params.queryData;
|
258
|
-
}
|
259
|
-
|
260
240
|
endpoint = "wasm/v1/contract/".concat(params.address, "smart/").concat(params.queryData);
|
261
|
-
_context6.next =
|
262
|
-
return this.request(endpoint
|
241
|
+
_context6.next = 3;
|
242
|
+
return this.request(endpoint);
|
263
243
|
|
264
|
-
case
|
244
|
+
case 3:
|
265
245
|
return _context6.abrupt("return", _context6.sent);
|
266
246
|
|
267
|
-
case
|
247
|
+
case 4:
|
268
248
|
case "end":
|
269
249
|
return _context6.stop();
|
270
250
|
}
|
@@ -284,27 +264,19 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
284
264
|
key: "code",
|
285
265
|
value: function () {
|
286
266
|
var _code = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(params) {
|
287
|
-
var
|
267
|
+
var endpoint;
|
288
268
|
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
289
269
|
while (1) {
|
290
270
|
switch (_context7.prev = _context7.next) {
|
291
271
|
case 0:
|
292
|
-
options = {
|
293
|
-
params: {}
|
294
|
-
};
|
295
|
-
|
296
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.codeId) !== "undefined") {
|
297
|
-
options.params.code_id = params.codeId;
|
298
|
-
}
|
299
|
-
|
300
272
|
endpoint = "cosmwasm/wasm/v1/code/".concat(params.codeId);
|
301
|
-
_context7.next =
|
302
|
-
return this.request(endpoint
|
273
|
+
_context7.next = 3;
|
274
|
+
return this.request(endpoint);
|
303
275
|
|
304
|
-
case
|
276
|
+
case 3:
|
305
277
|
return _context7.abrupt("return", _context7.sent);
|
306
278
|
|
307
|
-
case
|
279
|
+
case 4:
|
308
280
|
case "end":
|
309
281
|
return _context7.stop();
|
310
282
|
}
|