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.
- package/main/codegen/JunoSwap.client.js +1 -1
- package/main/codegen/cosmos/bank/v1beta1/query.lcd.js +44 -26
- package/main/codegen/cosmos/client.js +20 -9
- package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +37 -27
- package/main/codegen/cosmos/gov/v1/query.lcd.js +12 -10
- package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +12 -10
- package/main/codegen/cosmos/group/v1/query.lcd.js +17 -15
- package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +39 -29
- package/main/codegen/cosmwasm/client.js +28 -12
- package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +35 -21
- package/main/codegen/ibc/applications/transfer/v1/query.lcd.js +25 -13
- package/main/codegen/ibc/client.js +28 -12
- package/main/codegen/ibc/core/channel/v1/query.lcd.js +40 -32
- package/main/codegen/juno/mint/query.lcd.js +30 -18
- package/module/codegen/JunoSwap.client.js +1 -1
- package/module/codegen/JunoSwap.react-query.js +1 -1
- package/module/codegen/contracts.js +1 -1
- package/module/codegen/cosmos/bank/v1beta1/query.lcd.js +13 -8
- package/module/codegen/cosmos/client.js +12 -2
- package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +11 -10
- package/module/codegen/cosmos/gov/v1/query.lcd.js +11 -10
- package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +11 -10
- package/module/codegen/cosmos/group/v1/query.lcd.js +16 -15
- package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +20 -19
- package/module/codegen/cosmwasm/client.js +16 -2
- package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +16 -11
- package/module/codegen/ibc/applications/transfer/v1/query.lcd.js +6 -3
- package/module/codegen/ibc/client.js +16 -2
- package/module/codegen/ibc/core/channel/v1/query.lcd.js +19 -16
- package/module/codegen/index.js +1 -1
- package/module/codegen/juno/mint/query.lcd.js +3 -3
- 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; } }
|
@@ -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.
|
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
|
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.
|
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
|
197
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
196
198
|
}
|
197
199
|
|
198
|
-
endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.
|
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.
|
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.
|
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
|
321
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
320
322
|
}
|
321
323
|
|
322
|
-
endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.
|
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.
|
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.
|
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
|
137
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
136
138
|
}
|
137
139
|
|
138
|
-
endpoint = "cosmos/group/v1/group_members/".concat(params.
|
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
|
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
|
221
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
220
222
|
}
|
221
223
|
|
222
|
-
endpoint = "cosmos/group/v1/group_policies_by_group/".concat(params.
|
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
|
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.
|
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
|
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.
|
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
|
425
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
424
426
|
}
|
425
427
|
|
426
|
-
endpoint = "cosmos/group/v1/votes_by_proposal/".concat(params.
|
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
|
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
|
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.
|
548
|
+
endpoint = "cosmos/group/v1/proposals/".concat(params.proposalId, "/tally");
|
547
549
|
_context13.next = 5;
|
548
550
|
return this.request(endpoint, options);
|
549
551
|
|
@@ -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; } }
|
@@ -60,7 +62,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
60
62
|
}
|
61
63
|
|
62
64
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
63
|
-
options
|
65
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
64
66
|
}
|
65
67
|
|
66
68
|
endpoint = "cosmos/staking/v1beta1/validators";
|
@@ -103,7 +105,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
103
105
|
options.params.validator_addr = params.validatorAddr;
|
104
106
|
}
|
105
107
|
|
106
|
-
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.
|
108
|
+
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr);
|
107
109
|
_context2.next = 5;
|
108
110
|
return this.request(endpoint, options);
|
109
111
|
|
@@ -144,10 +146,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
144
146
|
}
|
145
147
|
|
146
148
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
147
|
-
options
|
149
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
148
150
|
}
|
149
151
|
|
150
|
-
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.
|
152
|
+
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "/delegations");
|
151
153
|
_context3.next = 6;
|
152
154
|
return this.request(endpoint, options);
|
153
155
|
|
@@ -188,10 +190,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
188
190
|
}
|
189
191
|
|
190
192
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
191
|
-
options
|
193
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
192
194
|
}
|
193
195
|
|
194
|
-
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.
|
196
|
+
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "/unbonding_delegations");
|
195
197
|
_context4.next = 6;
|
196
198
|
return this.request(endpoint, options);
|
197
199
|
|
@@ -235,7 +237,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
235
237
|
options.params.validator_addr = params.validatorAddr;
|
236
238
|
}
|
237
239
|
|
238
|
-
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.
|
240
|
+
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "delegations/").concat(params.delegatorAddr);
|
239
241
|
_context5.next = 6;
|
240
242
|
return this.request(endpoint, options);
|
241
243
|
|
@@ -280,7 +282,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
280
282
|
options.params.validator_addr = params.validatorAddr;
|
281
283
|
}
|
282
284
|
|
283
|
-
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.
|
285
|
+
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "/delegations/").concat(params.delegatorAddr, "/unbonding_delegation");
|
284
286
|
_context6.next = 6;
|
285
287
|
return this.request(endpoint, options);
|
286
288
|
|
@@ -321,10 +323,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
321
323
|
}
|
322
324
|
|
323
325
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
324
|
-
options
|
326
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
325
327
|
}
|
326
328
|
|
327
|
-
endpoint = "cosmos/staking/v1beta1/delegations/".concat(params.
|
329
|
+
endpoint = "cosmos/staking/v1beta1/delegations/".concat(params.delegatorAddr);
|
328
330
|
_context7.next = 6;
|
329
331
|
return this.request(endpoint, options);
|
330
332
|
|
@@ -366,10 +368,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
366
368
|
}
|
367
369
|
|
368
370
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
369
|
-
options
|
371
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
370
372
|
}
|
371
373
|
|
372
|
-
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.
|
374
|
+
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "/unbonding_delegations");
|
373
375
|
_context8.next = 6;
|
374
376
|
return this.request(endpoint, options);
|
375
377
|
|
@@ -418,10 +420,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
418
420
|
}
|
419
421
|
|
420
422
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
421
|
-
options
|
423
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
422
424
|
}
|
423
425
|
|
424
|
-
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.
|
426
|
+
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "/redelegations");
|
425
427
|
_context9.next = 8;
|
426
428
|
return this.request(endpoint, options);
|
427
429
|
|
@@ -463,10 +465,10 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
463
465
|
}
|
464
466
|
|
465
467
|
if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
|
466
|
-
options
|
468
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
467
469
|
}
|
468
470
|
|
469
|
-
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.
|
471
|
+
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "/validators");
|
470
472
|
_context10.next = 6;
|
471
473
|
return this.request(endpoint, options);
|
472
474
|
|
@@ -511,7 +513,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
511
513
|
options.params.validator_addr = params.validatorAddr;
|
512
514
|
}
|
513
515
|
|
514
|
-
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.
|
516
|
+
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "validators/").concat(params.validatorAddr);
|
515
517
|
_context11.next = 6;
|
516
518
|
return this.request(endpoint, options);
|
517
519
|
|
@@ -569,20 +571,24 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
569
571
|
}, {
|
570
572
|
key: "pool",
|
571
573
|
value: function () {
|
572
|
-
var _pool = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(
|
573
|
-
var
|
574
|
+
var _pool = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13() {
|
575
|
+
var _params,
|
576
|
+
endpoint,
|
577
|
+
_args13 = arguments;
|
578
|
+
|
574
579
|
return _regenerator["default"].wrap(function _callee13$(_context13) {
|
575
580
|
while (1) {
|
576
581
|
switch (_context13.prev = _context13.next) {
|
577
582
|
case 0:
|
583
|
+
_params = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
|
578
584
|
endpoint = "cosmos/staking/v1beta1/pool";
|
579
|
-
_context13.next =
|
585
|
+
_context13.next = 4;
|
580
586
|
return this.request(endpoint);
|
581
587
|
|
582
|
-
case
|
588
|
+
case 4:
|
583
589
|
return _context13.abrupt("return", _context13.sent);
|
584
590
|
|
585
|
-
case
|
591
|
+
case 5:
|
586
592
|
case "end":
|
587
593
|
return _context13.stop();
|
588
594
|
}
|
@@ -590,7 +596,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
590
596
|
}, _callee13, this);
|
591
597
|
}));
|
592
598
|
|
593
|
-
function pool(
|
599
|
+
function pool() {
|
594
600
|
return _pool.apply(this, arguments);
|
595
601
|
}
|
596
602
|
|
@@ -601,20 +607,24 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
601
607
|
}, {
|
602
608
|
key: "params",
|
603
609
|
value: function () {
|
604
|
-
var _params2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee14(
|
605
|
-
var
|
610
|
+
var _params2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee14() {
|
611
|
+
var _params,
|
612
|
+
endpoint,
|
613
|
+
_args14 = arguments;
|
614
|
+
|
606
615
|
return _regenerator["default"].wrap(function _callee14$(_context14) {
|
607
616
|
while (1) {
|
608
617
|
switch (_context14.prev = _context14.next) {
|
609
618
|
case 0:
|
619
|
+
_params = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
|
610
620
|
endpoint = "cosmos/staking/v1beta1/params";
|
611
|
-
_context14.next =
|
621
|
+
_context14.next = 4;
|
612
622
|
return this.request(endpoint);
|
613
623
|
|
614
|
-
case
|
624
|
+
case 4:
|
615
625
|
return _context14.abrupt("return", _context14.sent);
|
616
626
|
|
617
|
-
case
|
627
|
+
case 5:
|
618
628
|
case "end":
|
619
629
|
return _context14.stop();
|
620
630
|
}
|
@@ -622,7 +632,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
622
632
|
}, _callee14, this);
|
623
633
|
}));
|
624
634
|
|
625
|
-
function params(
|
635
|
+
function params() {
|
626
636
|
return _params2.apply(this, arguments);
|
627
637
|
}
|
628
638
|
|
@@ -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.getSigningCosmwasmClient = void 0;
|
10
|
+
exports.getSigningCosmwasmClientOptions = exports.getSigningCosmwasmClient = 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");
|
@@ -33,28 +33,44 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
33
33
|
|
34
34
|
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; }
|
35
35
|
|
36
|
+
var getSigningCosmwasmClientOptions = function getSigningCosmwasmClientOptions() {
|
37
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
38
|
+
_ref$defaultTypes = _ref.defaultTypes,
|
39
|
+
defaultTypes = _ref$defaultTypes === void 0 ? _stargate.defaultRegistryTypes : _ref$defaultTypes;
|
40
|
+
|
41
|
+
var registry = new _protoSigning.Registry([].concat((0, _toConsumableArray2["default"])(defaultTypes), (0, _toConsumableArray2["default"])(cosmwasmWasmV1TxRegistry.registry)));
|
42
|
+
var aminoTypes = new _stargate.AminoTypes(_objectSpread({}, cosmwasmWasmV1TxAmino.AminoConverter));
|
43
|
+
return {
|
44
|
+
registry: registry,
|
45
|
+
aminoTypes: aminoTypes
|
46
|
+
};
|
47
|
+
};
|
48
|
+
|
49
|
+
exports.getSigningCosmwasmClientOptions = getSigningCosmwasmClientOptions;
|
50
|
+
|
36
51
|
var getSigningCosmwasmClient = /*#__PURE__*/function () {
|
37
|
-
var
|
38
|
-
var rpcEndpoint, signer,
|
52
|
+
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref2) {
|
53
|
+
var rpcEndpoint, signer, _ref2$defaultTypes, defaultTypes, _getSigningCosmwasmCl, registry, aminoTypes, client;
|
39
54
|
|
40
55
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
41
56
|
while (1) {
|
42
57
|
switch (_context.prev = _context.next) {
|
43
58
|
case 0:
|
44
|
-
rpcEndpoint =
|
45
|
-
|
46
|
-
|
47
|
-
|
59
|
+
rpcEndpoint = _ref2.rpcEndpoint, signer = _ref2.signer, _ref2$defaultTypes = _ref2.defaultTypes, defaultTypes = _ref2$defaultTypes === void 0 ? _stargate.defaultRegistryTypes : _ref2$defaultTypes;
|
60
|
+
_getSigningCosmwasmCl = getSigningCosmwasmClientOptions({
|
61
|
+
defaultTypes: defaultTypes
|
62
|
+
}), registry = _getSigningCosmwasmCl.registry, aminoTypes = _getSigningCosmwasmCl.aminoTypes;
|
63
|
+
_context.next = 4;
|
48
64
|
return _stargate.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
49
65
|
registry: registry,
|
50
66
|
aminoTypes: aminoTypes
|
51
67
|
});
|
52
68
|
|
53
|
-
case
|
69
|
+
case 4:
|
54
70
|
client = _context.sent;
|
55
71
|
return _context.abrupt("return", client);
|
56
72
|
|
57
|
-
case
|
73
|
+
case 6:
|
58
74
|
case "end":
|
59
75
|
return _context.stop();
|
60
76
|
}
|
@@ -63,7 +79,7 @@ var getSigningCosmwasmClient = /*#__PURE__*/function () {
|
|
63
79
|
}));
|
64
80
|
|
65
81
|
return function getSigningCosmwasmClient(_x) {
|
66
|
-
return
|
82
|
+
return _ref3.apply(this, arguments);
|
67
83
|
};
|
68
84
|
}();
|
69
85
|
|