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.
- package/main/codegen/JunoSwap.client.js +1 -1
- package/main/codegen/cosmos/bank/v1beta1/query.lcd.js +44 -26
- package/main/codegen/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/main/codegen/cosmos/base/v1beta1/coin.js +268 -0
- package/main/codegen/cosmos/bundle.js +4 -4
- 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/bundle.js +4 -4
- 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/bundle.js +25 -15
- package/main/codegen/ibc/client.js +32 -12
- package/main/codegen/ibc/core/channel/v1/query.lcd.js +40 -32
- package/main/codegen/ibc/core/client/v1/client.js +585 -0
- package/main/codegen/ibc/core/client/v1/genesis.js +367 -0
- package/main/codegen/ibc/core/client/v1/query.js +1047 -0
- package/main/codegen/ibc/core/client/v1/query.lcd.js +381 -0
- package/main/codegen/ibc/core/client/v1/query.rpc.query.js +125 -0
- package/main/codegen/ibc/core/client/v1/tx.amino.js +149 -0
- package/main/codegen/ibc/core/client/v1/tx.js +538 -0
- package/main/codegen/ibc/core/client/v1/tx.registry.js +160 -0
- package/main/codegen/ibc/core/client/v1/tx.rpc.msg.js +81 -0
- package/main/codegen/ibc/lcd.js +21 -6
- package/main/codegen/ibc/rpc.query.js +19 -6
- package/main/codegen/ibc/rpc.tx.js +19 -6
- package/main/codegen/juno/bundle.js +6 -6
- 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/base/query/v1beta1/pagination.js +189 -0
- package/module/codegen/cosmos/base/v1beta1/coin.js +268 -0
- package/module/codegen/cosmos/bundle.js +4 -4
- 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/bundle.js +4 -4
- 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/bundle.js +20 -15
- package/module/codegen/ibc/client.js +18 -2
- package/module/codegen/ibc/core/channel/v1/query.lcd.js +19 -16
- package/module/codegen/ibc/core/client/v1/client.js +549 -0
- package/module/codegen/ibc/core/client/v1/genesis.js +287 -0
- package/module/codegen/ibc/core/client/v1/query.js +1029 -0
- package/module/codegen/ibc/core/client/v1/query.lcd.js +128 -0
- package/module/codegen/ibc/core/client/v1/query.rpc.query.js +69 -0
- package/module/codegen/ibc/core/client/v1/tx.amino.js +150 -0
- package/module/codegen/ibc/core/client/v1/tx.js +544 -0
- package/module/codegen/ibc/core/client/v1/tx.registry.js +159 -0
- package/module/codegen/ibc/core/client/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/ibc/lcd.js +5 -0
- package/module/codegen/ibc/rpc.query.js +3 -0
- package/module/codegen/ibc/rpc.tx.js +3 -0
- package/module/codegen/index.js +1 -1
- package/module/codegen/juno/bundle.js +6 -6
- package/module/codegen/juno/mint/query.lcd.js +3 -3
- package/package.json +15 -14
- package/types/codegen/JunoSwap.client.d.ts +1 -1
- package/types/codegen/JunoSwap.react-query.d.ts +11 -11
- package/types/codegen/JunoSwap.types.d.ts +1 -1
- package/types/codegen/contracts.d.ts +5 -5
- package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +3 -3
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +79 -0
- package/types/codegen/cosmos/base/v1beta1/coin.d.ts +58 -0
- package/types/codegen/cosmos/bundle.d.ts +758 -153
- package/types/codegen/cosmos/client.d.ts +6 -2
- package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +2 -2
- package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +2 -2
- package/types/codegen/cosmwasm/bundle.d.ts +87 -18
- package/types/codegen/cosmwasm/client.d.ts +8 -2
- package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +2 -2
- package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +2 -2
- package/types/codegen/ibc/bundle.d.ts +878 -64
- package/types/codegen/ibc/client.d.ts +8 -2
- package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +1 -1
- package/types/codegen/ibc/core/client/v1/client.d.ts +143 -0
- package/types/codegen/ibc/core/client/v1/genesis.d.ts +56 -0
- package/types/codegen/ibc/core/client/v1/query.d.ts +263 -0
- package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +15 -0
- package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +25 -0
- package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
- package/types/codegen/ibc/core/client/v1/tx.d.ts +131 -0
- package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +96 -0
- package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +17 -0
- package/types/codegen/ibc/lcd.d.ts +3 -0
- package/types/codegen/ibc/rpc.query.d.ts +3 -0
- package/types/codegen/ibc/rpc.tx.d.ts +3 -0
- package/types/codegen/index.d.ts +1 -1
- package/types/codegen/juno/bundle.d.ts +6 -6
- package/types/codegen/juno/mint/query.lcd.d.ts +3 -3
@@ -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
|
|
@@ -33,11 +33,11 @@ var _183 = _interopRequireWildcard(require("./wasm/v1/query.rpc.query"));
|
|
33
33
|
|
34
34
|
var _184 = _interopRequireWildcard(require("./wasm/v1/tx.rpc.msg"));
|
35
35
|
|
36
|
-
var
|
36
|
+
var _205 = _interopRequireWildcard(require("./lcd"));
|
37
37
|
|
38
|
-
var
|
38
|
+
var _206 = _interopRequireWildcard(require("./rpc.query"));
|
39
39
|
|
40
|
-
var
|
40
|
+
var _207 = _interopRequireWildcard(require("./rpc.tx"));
|
41
41
|
|
42
42
|
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); }
|
43
43
|
|
@@ -57,5 +57,5 @@ exports.cosmwasm = cosmwasm;
|
|
57
57
|
var v1 = _wasm.v1 = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _94), _95), _96), _97), _98), _99), _180), _181), _182), _183), _184);
|
58
58
|
})(wasm || (wasm = _cosmwasm.wasm || (_cosmwasm.wasm = {})));
|
59
59
|
|
60
|
-
var ClientFactory = _cosmwasm.ClientFactory = _objectSpread(_objectSpread(_objectSpread({},
|
60
|
+
var ClientFactory = _cosmwasm.ClientFactory = _objectSpread(_objectSpread(_objectSpread({}, _205), _206), _207);
|
61
61
|
})(cosmwasm || (exports.cosmwasm = cosmwasm = {}));
|
@@ -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
|
|
@@ -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
|
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
|
137
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
136
138
|
}
|
137
139
|
|
138
|
-
endpoint = "cosmwasm/wasm/v1/code/".concat(params.
|
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
|
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.
|
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.
|
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.
|
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(
|
325
|
-
var
|
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
|
343
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
336
344
|
}
|
337
345
|
|
338
346
|
endpoint = "cosmwasm/wasm/v1/code";
|
339
|
-
_context8.next =
|
347
|
+
_context8.next = 6;
|
340
348
|
return this.request(endpoint, options);
|
341
349
|
|
342
|
-
case
|
350
|
+
case 6:
|
343
351
|
return _context8.abrupt("return", _context8.sent);
|
344
352
|
|
345
|
-
case
|
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(
|
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(
|
365
|
-
var
|
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
|
389
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
376
390
|
}
|
377
391
|
|
378
392
|
endpoint = "cosmwasm/wasm/v1/codes/pinned";
|
379
|
-
_context9.next =
|
393
|
+
_context9.next = 6;
|
380
394
|
return this.request(endpoint, options);
|
381
395
|
|
382
|
-
case
|
396
|
+
case 6:
|
383
397
|
return _context9.abrupt("return", _context9.sent);
|
384
398
|
|
385
|
-
case
|
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(
|
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(
|
81
|
-
var
|
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
|
99
|
+
(0, _helpers.setPaginationParams)(options, params.pagination);
|
92
100
|
}
|
93
101
|
|
94
102
|
endpoint = "ibc/apps/transfer/v1/denom_traces";
|
95
|
-
_context2.next =
|
103
|
+
_context2.next = 6;
|
96
104
|
return this.request(endpoint, options);
|
97
105
|
|
98
|
-
case
|
106
|
+
case 6:
|
99
107
|
return _context2.abrupt("return", _context2.sent);
|
100
108
|
|
101
|
-
case
|
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(
|
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(
|
121
|
-
var
|
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 =
|
139
|
+
_context3.next = 4;
|
128
140
|
return this.request(endpoint);
|
129
141
|
|
130
|
-
case
|
142
|
+
case 4:
|
131
143
|
return _context3.abrupt("return", _context3.sent);
|
132
144
|
|
133
|
-
case
|
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(
|
153
|
+
function params() {
|
142
154
|
return _params2.apply(this, arguments);
|
143
155
|
}
|
144
156
|
|