juno-network 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/main/codegen/confio/proofs.js +100 -315
- package/main/codegen/cosmos/authz/v1beta1/authz.js +5 -63
- package/main/codegen/cosmos/authz/v1beta1/event.js +12 -42
- package/main/codegen/cosmos/authz/v1beta1/genesis.js +0 -20
- package/main/codegen/cosmos/authz/v1beta1/query.js +6 -114
- package/main/codegen/cosmos/authz/v1beta1/query.lcd.js +14 -26
- package/main/codegen/cosmos/authz/v1beta1/query.rpc.query.js +22 -2
- package/main/codegen/cosmos/authz/v1beta1/tx.js +6 -92
- package/main/codegen/cosmos/bank/v1beta1/authz.js +5 -25
- package/main/codegen/cosmos/bank/v1beta1/bank.js +20 -178
- package/main/codegen/cosmos/bank/v1beta1/genesis.js +5 -73
- package/main/codegen/cosmos/bank/v1beta1/query.js +5 -264
- package/main/codegen/cosmos/bank/v1beta1/query.lcd.js +24 -30
- package/main/codegen/cosmos/bank/v1beta1/query.rpc.query.js +53 -5
- package/main/codegen/cosmos/bank/v1beta1/tx.amino.js +6 -6
- package/main/codegen/cosmos/bank/v1beta1/tx.js +11 -82
- package/main/codegen/cosmos/bank/v1beta1/tx.registry.js +0 -28
- package/main/codegen/cosmos/base/abci/v1beta1/abci.js +68 -312
- package/main/codegen/cosmos/base/query/v1beta1/pagination.js +12 -42
- package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +65 -418
- package/main/codegen/cosmos/base/v1beta1/coin.js +0 -46
- package/main/codegen/cosmos/bundle.js +101 -401
- package/main/codegen/cosmos/client.js +2 -34
- package/main/codegen/cosmos/crypto/ed25519/keys.js +0 -22
- package/main/codegen/cosmos/crypto/hd/v1/hd.js +11 -31
- package/main/codegen/cosmos/crypto/keyring/v1/record.js +16 -74
- package/main/codegen/cosmos/crypto/multisig/keys.js +5 -29
- package/main/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +6 -40
- package/main/codegen/cosmos/crypto/secp256k1/keys.js +0 -22
- package/main/codegen/cosmos/crypto/secp256r1/keys.js +0 -22
- package/main/codegen/cosmos/distribution/v1beta1/distribution.js +57 -289
- package/main/codegen/cosmos/distribution/v1beta1/genesis.js +105 -300
- package/main/codegen/cosmos/distribution/v1beta1/query.js +63 -308
- package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +35 -41
- package/main/codegen/cosmos/distribution/v1beta1/query.rpc.query.js +46 -4
- package/main/codegen/cosmos/distribution/v1beta1/tx.amino.js +15 -15
- package/main/codegen/cosmos/distribution/v1beta1/tx.js +28 -140
- package/main/codegen/cosmos/distribution/v1beta1/tx.registry.js +0 -52
- package/main/codegen/cosmos/gov/v1/genesis.js +20 -70
- package/main/codegen/cosmos/gov/v1/gov.js +113 -256
- package/main/codegen/cosmos/gov/v1/query.js +57 -271
- package/main/codegen/cosmos/gov/v1/query.lcd.js +31 -38
- package/main/codegen/cosmos/gov/v1/query.rpc.query.js +37 -2
- package/main/codegen/cosmos/gov/v1/tx.amino.js +16 -16
- package/main/codegen/cosmos/gov/v1/tx.js +25 -176
- package/main/codegen/cosmos/gov/v1/tx.registry.js +0 -64
- package/main/codegen/cosmos/gov/v1beta1/genesis.js +20 -70
- package/main/codegen/cosmos/gov/v1beta1/gov.js +103 -246
- package/main/codegen/cosmos/gov/v1beta1/query.js +57 -271
- package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +31 -38
- package/main/codegen/cosmos/gov/v1beta1/query.rpc.query.js +37 -2
- package/main/codegen/cosmos/gov/v1beta1/tx.amino.js +14 -14
- package/main/codegen/cosmos/gov/v1beta1/tx.js +25 -142
- package/main/codegen/cosmos/gov/v1beta1/tx.registry.js +0 -52
- package/main/codegen/cosmos/lcd.js +65 -198
- package/main/codegen/cosmos/rpc.query.js +58 -197
- package/main/codegen/cosmos/rpc.tx.js +31 -122
- package/main/codegen/cosmos/staking/v1beta1/authz.js +38 -59
- package/main/codegen/cosmos/staking/v1beta1/genesis.js +14 -96
- package/main/codegen/cosmos/staking/v1beta1/query.js +115 -497
- package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +48 -49
- package/main/codegen/cosmos/staking/v1beta1/query.rpc.query.js +61 -4
- package/main/codegen/cosmos/staking/v1beta1/staking.js +222 -565
- package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +47 -47
- package/main/codegen/cosmos/staking/v1beta1/tx.js +82 -205
- package/main/codegen/cosmos/staking/v1beta1/tx.registry.js +0 -64
- package/main/codegen/cosmos/tx/signing/v1beta1/signing.js +29 -86
- package/main/codegen/cosmos/tx/v1beta1/service.js +69 -207
- package/main/codegen/cosmos/tx/v1beta1/service.lcd.js +14 -26
- package/main/codegen/cosmos/tx/v1beta1/service.rpc.svc.js +33 -7
- package/main/codegen/cosmos/tx/v1beta1/tx.js +102 -381
- package/main/codegen/cosmos/upgrade/v1beta1/query.js +22 -126
- package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +19 -29
- package/main/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +34 -4
- package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +4 -4
- package/main/codegen/cosmos/upgrade/v1beta1/tx.js +0 -38
- package/main/codegen/cosmos/upgrade/v1beta1/tx.registry.js +0 -28
- package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +5 -61
- package/main/codegen/cosmos_proto/cosmos.js +17 -45
- package/main/codegen/cosmwasm/bundle.js +16 -16
- package/main/codegen/cosmwasm/lcd.js +76 -209
- package/main/codegen/cosmwasm/rpc.query.js +66 -207
- package/main/codegen/cosmwasm/rpc.tx.js +41 -132
- package/main/codegen/cosmwasm/wasm/v1/genesis.js +57 -178
- package/main/codegen/cosmwasm/wasm/v1/ibc.js +10 -36
- package/main/codegen/cosmwasm/wasm/v1/proposal.js +56 -250
- package/main/codegen/cosmwasm/wasm/v1/query.js +54 -322
- package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +28 -34
- package/main/codegen/cosmwasm/wasm/v1/query.rpc.query.js +50 -4
- package/main/codegen/cosmwasm/wasm/v1/tx.amino.js +16 -16
- package/main/codegen/cosmwasm/wasm/v1/tx.js +32 -200
- package/main/codegen/cosmwasm/wasm/v1/tx.registry.js +0 -76
- package/main/codegen/cosmwasm/wasm/v1/types.js +80 -166
- package/main/codegen/gogoproto/bundle.js +2 -2
- package/main/codegen/google/bundle.js +9 -15
- package/main/codegen/google/protobuf/any.js +6 -20
- package/main/codegen/google/protobuf/descriptor.js +407 -1134
- package/main/codegen/google/protobuf/duration.js +0 -12
- package/main/codegen/google/protobuf/empty.js +0 -7
- package/main/codegen/google/protobuf/field_mask.js +0 -20
- package/main/codegen/google/protobuf/struct.js +51 -118
- package/main/codegen/google/protobuf/timestamp.js +0 -12
- package/main/codegen/google/protobuf/wrappers.js +0 -90
- package/main/codegen/ibc/applications/transfer/v1/genesis.js +10 -36
- package/main/codegen/ibc/applications/transfer/v1/query.js +10 -81
- package/main/codegen/ibc/applications/transfer/v1/query.lcd.js +12 -24
- package/main/codegen/ibc/applications/transfer/v1/query.rpc.query.js +30 -4
- package/main/codegen/ibc/applications/transfer/v1/transfer.js +17 -43
- package/main/codegen/ibc/applications/transfer/v1/tx.amino.js +14 -14
- package/main/codegen/ibc/applications/transfer/v1/tx.js +21 -50
- package/main/codegen/ibc/applications/transfer/v1/tx.registry.js +0 -16
- package/main/codegen/ibc/applications/transfer/v2/packet.js +0 -18
- package/main/codegen/ibc/bundle.js +56 -74
- package/main/codegen/ibc/core/channel/v1/channel.js +103 -198
- package/main/codegen/ibc/core/channel/v1/genesis.js +29 -131
- package/main/codegen/ibc/core/channel/v1/query.js +202 -646
- package/main/codegen/ibc/core/channel/v1/query.lcd.js +45 -47
- package/main/codegen/ibc/core/channel/v1/query.rpc.query.js +57 -3
- package/main/codegen/ibc/core/channel/v1/tx.amino.js +183 -183
- package/main/codegen/ibc/core/channel/v1/tx.js +175 -425
- package/main/codegen/ibc/core/channel/v1/tx.registry.js +0 -124
- package/main/codegen/ibc/core/client/v1/client.js +57 -167
- package/main/codegen/ibc/core/client/v1/genesis.js +29 -111
- package/main/codegen/ibc/core/client/v1/query.js +79 -270
- package/main/codegen/ibc/core/client/v1/query.lcd.js +28 -35
- package/main/codegen/ibc/core/client/v1/query.rpc.query.js +51 -6
- package/main/codegen/ibc/core/client/v1/tx.amino.js +39 -39
- package/main/codegen/ibc/core/client/v1/tx.js +48 -140
- package/main/codegen/ibc/core/client/v1/tx.registry.js +0 -52
- package/main/codegen/ibc/core/commitment/v1/commitment.js +11 -73
- package/main/codegen/ibc/core/connection/v1/connection.js +61 -191
- package/main/codegen/ibc/core/connection/v1/genesis.js +10 -45
- package/main/codegen/ibc/core/connection/v1/query.js +75 -221
- package/main/codegen/ibc/core/connection/v1/query.lcd.js +20 -30
- package/main/codegen/ibc/core/connection/v1/query.rpc.query.js +33 -3
- package/main/codegen/ibc/core/connection/v1/tx.amino.js +95 -95
- package/main/codegen/ibc/core/connection/v1/tx.js +118 -250
- package/main/codegen/ibc/core/connection/v1/tx.registry.js +0 -52
- package/main/codegen/ibc/lcd.js +107 -240
- package/main/codegen/ibc/lightclients/localhost/v1/localhost.js +6 -20
- package/main/codegen/ibc/lightclients/solomachine/v1/solomachine.js +115 -309
- package/main/codegen/ibc/lightclients/solomachine/v2/solomachine.js +115 -309
- package/main/codegen/ibc/lightclients/tendermint/v1/tendermint.js +86 -191
- package/main/codegen/ibc/rpc.query.js +88 -248
- package/main/codegen/ibc/rpc.tx.js +69 -160
- package/main/codegen/juno/bundle.js +9 -9
- package/main/codegen/juno/lcd.js +74 -207
- package/main/codegen/juno/mint/genesis.js +0 -14
- package/main/codegen/juno/mint/mint.js +22 -50
- package/main/codegen/juno/mint/query.js +6 -59
- package/main/codegen/juno/mint/query.lcd.js +12 -24
- package/main/codegen/juno/mint/query.rpc.query.js +31 -5
- package/main/codegen/juno/rpc.query.js +64 -205
- package/main/codegen/tendermint/abci/types.js +296 -1020
- package/main/codegen/tendermint/bundle.js +17 -17
- package/main/codegen/tendermint/crypto/keys.js +0 -14
- package/main/codegen/tendermint/crypto/proof.js +6 -92
- package/main/codegen/tendermint/libs/bits/types.js +0 -22
- package/main/codegen/tendermint/p2p/types.js +53 -143
- package/main/codegen/tendermint/types/block.js +5 -23
- package/main/codegen/tendermint/types/evidence.js +50 -128
- package/main/codegen/tendermint/types/params.js +51 -137
- package/main/codegen/tendermint/types/types.js +162 -372
- package/main/codegen/tendermint/types/validator.js +30 -82
- package/main/codegen/tendermint/version/types.js +0 -24
- package/main/index.js +1 -5
- package/package.json +5 -5
@@ -11,8 +11,6 @@ var _mint = require("./mint");
|
|
11
11
|
|
12
12
|
var _m0 = _interopRequireWildcard(require("protobufjs/minimal"));
|
13
13
|
|
14
|
-
var _helpers = require("@osmonauts/helpers");
|
15
|
-
|
16
14
|
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); }
|
17
15
|
|
18
16
|
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; }
|
@@ -43,13 +41,6 @@ var QueryParamsRequest = {
|
|
43
41
|
|
44
42
|
return message;
|
45
43
|
},
|
46
|
-
fromJSON: function fromJSON(_) {
|
47
|
-
return {};
|
48
|
-
},
|
49
|
-
toJSON: function toJSON(_) {
|
50
|
-
var obj = {};
|
51
|
-
return obj;
|
52
|
-
},
|
53
44
|
fromPartial: function fromPartial(_) {
|
54
45
|
var message = createBaseQueryParamsRequest();
|
55
46
|
return message;
|
@@ -94,16 +85,6 @@ var QueryParamsResponse = {
|
|
94
85
|
|
95
86
|
return message;
|
96
87
|
},
|
97
|
-
fromJSON: function fromJSON(object) {
|
98
|
-
return {
|
99
|
-
params: (0, _helpers.isSet)(object.params) ? _mint.Params.fromJSON(object.params) : undefined
|
100
|
-
};
|
101
|
-
},
|
102
|
-
toJSON: function toJSON(message) {
|
103
|
-
var obj = {};
|
104
|
-
message.params !== undefined && (obj.params = message.params ? _mint.Params.toJSON(message.params) : undefined);
|
105
|
-
return obj;
|
106
|
-
},
|
107
88
|
fromPartial: function fromPartial(object) {
|
108
89
|
var message = createBaseQueryParamsResponse();
|
109
90
|
message.params = object.params !== undefined && object.params !== null ? _mint.Params.fromPartial(object.params) : undefined;
|
@@ -138,13 +119,6 @@ var QueryInflationRequest = {
|
|
138
119
|
|
139
120
|
return message;
|
140
121
|
},
|
141
|
-
fromJSON: function fromJSON(_) {
|
142
|
-
return {};
|
143
|
-
},
|
144
|
-
toJSON: function toJSON(_) {
|
145
|
-
var obj = {};
|
146
|
-
return obj;
|
147
|
-
},
|
148
122
|
fromPartial: function fromPartial(_) {
|
149
123
|
var message = createBaseQueryInflationRequest();
|
150
124
|
return message;
|
@@ -189,16 +163,6 @@ var QueryInflationResponse = {
|
|
189
163
|
|
190
164
|
return message;
|
191
165
|
},
|
192
|
-
fromJSON: function fromJSON(object) {
|
193
|
-
return {
|
194
|
-
inflation: (0, _helpers.isSet)(object.inflation) ? (0, _helpers.bytesFromBase64)(object.inflation) : new Uint8Array()
|
195
|
-
};
|
196
|
-
},
|
197
|
-
toJSON: function toJSON(message) {
|
198
|
-
var obj = {};
|
199
|
-
message.inflation !== undefined && (obj.inflation = (0, _helpers.base64FromBytes)(message.inflation !== undefined ? message.inflation : new Uint8Array()));
|
200
|
-
return obj;
|
201
|
-
},
|
202
166
|
fromPartial: function fromPartial(object) {
|
203
167
|
var _object$inflation;
|
204
168
|
|
@@ -235,13 +199,6 @@ var QueryAnnualProvisionsRequest = {
|
|
235
199
|
|
236
200
|
return message;
|
237
201
|
},
|
238
|
-
fromJSON: function fromJSON(_) {
|
239
|
-
return {};
|
240
|
-
},
|
241
|
-
toJSON: function toJSON(_) {
|
242
|
-
var obj = {};
|
243
|
-
return obj;
|
244
|
-
},
|
245
202
|
fromPartial: function fromPartial(_) {
|
246
203
|
var message = createBaseQueryAnnualProvisionsRequest();
|
247
204
|
return message;
|
@@ -251,7 +208,7 @@ exports.QueryAnnualProvisionsRequest = QueryAnnualProvisionsRequest;
|
|
251
208
|
|
252
209
|
function createBaseQueryAnnualProvisionsResponse() {
|
253
210
|
return {
|
254
|
-
|
211
|
+
annualProvisions: new Uint8Array()
|
255
212
|
};
|
256
213
|
}
|
257
214
|
|
@@ -259,8 +216,8 @@ var QueryAnnualProvisionsResponse = {
|
|
259
216
|
encode: function encode(message) {
|
260
217
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
261
218
|
|
262
|
-
if (message.
|
263
|
-
writer.uint32(10).bytes(message.
|
219
|
+
if (message.annualProvisions.length !== 0) {
|
220
|
+
writer.uint32(10).bytes(message.annualProvisions);
|
264
221
|
}
|
265
222
|
|
266
223
|
return writer;
|
@@ -275,7 +232,7 @@ var QueryAnnualProvisionsResponse = {
|
|
275
232
|
|
276
233
|
switch (tag >>> 3) {
|
277
234
|
case 1:
|
278
|
-
message.
|
235
|
+
message.annualProvisions = reader.bytes();
|
279
236
|
break;
|
280
237
|
|
281
238
|
default:
|
@@ -286,21 +243,11 @@ var QueryAnnualProvisionsResponse = {
|
|
286
243
|
|
287
244
|
return message;
|
288
245
|
},
|
289
|
-
fromJSON: function fromJSON(object) {
|
290
|
-
return {
|
291
|
-
annual_provisions: (0, _helpers.isSet)(object.annual_provisions) ? (0, _helpers.bytesFromBase64)(object.annual_provisions) : new Uint8Array()
|
292
|
-
};
|
293
|
-
},
|
294
|
-
toJSON: function toJSON(message) {
|
295
|
-
var obj = {};
|
296
|
-
message.annual_provisions !== undefined && (obj.annual_provisions = (0, _helpers.base64FromBytes)(message.annual_provisions !== undefined ? message.annual_provisions : new Uint8Array()));
|
297
|
-
return obj;
|
298
|
-
},
|
299
246
|
fromPartial: function fromPartial(object) {
|
300
|
-
var _object$
|
247
|
+
var _object$annualProvisi;
|
301
248
|
|
302
249
|
var message = createBaseQueryAnnualProvisionsResponse();
|
303
|
-
message.
|
250
|
+
message.annualProvisions = (_object$annualProvisi = object.annualProvisions) !== null && _object$annualProvisi !== void 0 ? _object$annualProvisi : new Uint8Array();
|
304
251
|
return message;
|
305
252
|
}
|
306
253
|
};
|
@@ -15,29 +15,17 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
15
15
|
|
16
16
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
17
17
|
|
18
|
-
var
|
19
|
-
|
20
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
21
|
-
|
22
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
23
|
-
|
24
|
-
var _lcd = require("@osmonauts/lcd");
|
25
|
-
|
26
|
-
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
|
-
|
28
|
-
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; } }
|
29
|
-
|
30
|
-
var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
31
|
-
(0, _inherits2["default"])(LCDQueryClient, _LCDClient);
|
32
|
-
|
33
|
-
var _super = _createSuper(LCDQueryClient);
|
18
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
34
19
|
|
20
|
+
var LCDQueryClient = /*#__PURE__*/function () {
|
35
21
|
function LCDQueryClient(_ref) {
|
36
|
-
var
|
22
|
+
var requestClient = _ref.requestClient;
|
37
23
|
(0, _classCallCheck2["default"])(this, LCDQueryClient);
|
38
|
-
|
39
|
-
|
40
|
-
|
24
|
+
(0, _defineProperty2["default"])(this, "req", void 0);
|
25
|
+
this.req = requestClient;
|
26
|
+
this.params = this.params.bind(this);
|
27
|
+
this.inflation = this.inflation.bind(this);
|
28
|
+
this.annualProvisions = this.annualProvisions.bind(this);
|
41
29
|
}
|
42
30
|
/* Params returns the total set of minting parameters. */
|
43
31
|
|
@@ -57,7 +45,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
57
45
|
_params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
58
46
|
endpoint = "cosmos/mint/v1beta1/params";
|
59
47
|
_context.next = 4;
|
60
|
-
return this.get(endpoint);
|
48
|
+
return this.req.get(endpoint);
|
61
49
|
|
62
50
|
case 4:
|
63
51
|
return _context.abrupt("return", _context.sent);
|
@@ -93,7 +81,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
93
81
|
_params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
94
82
|
endpoint = "cosmos/mint/v1beta1/inflation";
|
95
83
|
_context2.next = 4;
|
96
|
-
return this.get(endpoint);
|
84
|
+
return this.req.get(endpoint);
|
97
85
|
|
98
86
|
case 4:
|
99
87
|
return _context2.abrupt("return", _context2.sent);
|
@@ -129,7 +117,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
129
117
|
_params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
130
118
|
endpoint = "cosmos/mint/v1beta1/annual_provisions";
|
131
119
|
_context3.next = 4;
|
132
|
-
return this.get(endpoint);
|
120
|
+
return this.req.get(endpoint);
|
133
121
|
|
134
122
|
case 4:
|
135
123
|
return _context3.abrupt("return", _context3.sent);
|
@@ -150,6 +138,6 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
150
138
|
}()
|
151
139
|
}]);
|
152
140
|
return LCDQueryClient;
|
153
|
-
}(
|
141
|
+
}();
|
154
142
|
|
155
143
|
exports.LCDQueryClient = LCDQueryClient;
|
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
8
8
|
value: true
|
9
9
|
});
|
10
|
-
exports.QueryClientImpl = void 0;
|
10
|
+
exports.createRpcQueryExtension = exports.QueryClientImpl = void 0;
|
11
11
|
|
12
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
13
13
|
|
@@ -17,6 +17,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
17
17
|
|
18
18
|
var _m0 = _interopRequireWildcard(require("protobufjs/minimal"));
|
19
19
|
|
20
|
+
var _stargate = require("@cosmjs/stargate");
|
21
|
+
|
20
22
|
var _query = require("./query");
|
21
23
|
|
22
24
|
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); }
|
@@ -35,7 +37,9 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
35
37
|
|
36
38
|
(0, _createClass2["default"])(QueryClientImpl, [{
|
37
39
|
key: "params",
|
38
|
-
value: function params(
|
40
|
+
value: function params() {
|
41
|
+
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
42
|
+
|
39
43
|
var data = _query.QueryParamsRequest.encode(request).finish();
|
40
44
|
|
41
45
|
var promise = this.rpc.request("juno.mint.Query", "Params", data);
|
@@ -45,7 +49,9 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
45
49
|
}
|
46
50
|
}, {
|
47
51
|
key: "inflation",
|
48
|
-
value: function inflation(
|
52
|
+
value: function inflation() {
|
53
|
+
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
54
|
+
|
49
55
|
var data = _query.QueryInflationRequest.encode(request).finish();
|
50
56
|
|
51
57
|
var promise = this.rpc.request("juno.mint.Query", "Inflation", data);
|
@@ -55,7 +61,9 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
55
61
|
}
|
56
62
|
}, {
|
57
63
|
key: "annualProvisions",
|
58
|
-
value: function annualProvisions(
|
64
|
+
value: function annualProvisions() {
|
65
|
+
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
66
|
+
|
59
67
|
var data = _query.QueryAnnualProvisionsRequest.encode(request).finish();
|
60
68
|
|
61
69
|
var promise = this.rpc.request("juno.mint.Query", "AnnualProvisions", data);
|
@@ -67,4 +75,22 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
67
75
|
return QueryClientImpl;
|
68
76
|
}();
|
69
77
|
|
70
|
-
exports.QueryClientImpl = QueryClientImpl;
|
78
|
+
exports.QueryClientImpl = QueryClientImpl;
|
79
|
+
|
80
|
+
var createRpcQueryExtension = function createRpcQueryExtension(base) {
|
81
|
+
var rpc = (0, _stargate.createProtobufRpcClient)(base);
|
82
|
+
var queryService = new QueryClientImpl(rpc);
|
83
|
+
return {
|
84
|
+
params: function params(request) {
|
85
|
+
return queryService.params(request);
|
86
|
+
},
|
87
|
+
inflation: function inflation(request) {
|
88
|
+
return queryService.inflation(request);
|
89
|
+
},
|
90
|
+
annualProvisions: function annualProvisions(request) {
|
91
|
+
return queryService.annualProvisions(request);
|
92
|
+
}
|
93
|
+
};
|
94
|
+
};
|
95
|
+
|
96
|
+
exports.createRpcQueryExtension = createRpcQueryExtension;
|
@@ -13,272 +13,131 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
13
13
|
|
14
14
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
15
15
|
|
16
|
+
var _tendermintRpc = require("@cosmjs/tendermint-rpc");
|
17
|
+
|
18
|
+
var _stargate = require("@cosmjs/stargate");
|
19
|
+
|
16
20
|
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); }
|
17
21
|
|
18
22
|
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; }
|
19
23
|
|
20
24
|
var createRPCQueryClient = /*#__PURE__*/function () {
|
21
25
|
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref) {
|
22
|
-
var
|
26
|
+
var rpcEndpoint, tmClient, client;
|
23
27
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
24
28
|
while (1) {
|
25
29
|
switch (_context.prev = _context.next) {
|
26
30
|
case 0:
|
27
|
-
|
31
|
+
rpcEndpoint = _ref.rpcEndpoint;
|
28
32
|
_context.next = 3;
|
29
|
-
return
|
30
|
-
return _interopRequireWildcard(require("../cosmos/app/v1alpha1/query.rpc.query"));
|
31
|
-
});
|
33
|
+
return _tendermintRpc.Tendermint34Client.connect(rpcEndpoint);
|
32
34
|
|
33
35
|
case 3:
|
34
|
-
|
35
|
-
|
36
|
-
_context.
|
37
|
-
_context.t3 = {
|
38
|
-
v1alpha1: _context.t2
|
39
|
-
};
|
40
|
-
_context.next = 9;
|
41
|
-
return Promise.resolve().then(function () {
|
42
|
-
return _interopRequireWildcard(require("../cosmos/auth/v1beta1/query.rpc.query"));
|
43
|
-
});
|
44
|
-
|
45
|
-
case 9:
|
46
|
-
_context.t4 = _context.sent.QueryClientImpl;
|
47
|
-
_context.t5 = rpc;
|
48
|
-
_context.t6 = new _context.t4(_context.t5);
|
49
|
-
_context.t7 = {
|
50
|
-
v1beta1: _context.t6
|
51
|
-
};
|
52
|
-
_context.next = 15;
|
36
|
+
tmClient = _context.sent;
|
37
|
+
client = new _stargate.QueryClient(tmClient);
|
38
|
+
_context.next = 7;
|
53
39
|
return Promise.resolve().then(function () {
|
54
40
|
return _interopRequireWildcard(require("../cosmos/authz/v1beta1/query.rpc.query"));
|
55
41
|
});
|
56
42
|
|
57
|
-
case
|
58
|
-
_context.
|
59
|
-
_context.
|
60
|
-
|
61
|
-
_context.t11 = {
|
62
|
-
v1beta1: _context.t10
|
43
|
+
case 7:
|
44
|
+
_context.t0 = _context.sent.createRpcQueryExtension(client);
|
45
|
+
_context.t1 = {
|
46
|
+
v1beta1: _context.t0
|
63
47
|
};
|
64
|
-
_context.next =
|
48
|
+
_context.next = 11;
|
65
49
|
return Promise.resolve().then(function () {
|
66
50
|
return _interopRequireWildcard(require("../cosmos/bank/v1beta1/query.rpc.query"));
|
67
51
|
});
|
68
52
|
|
69
|
-
case
|
70
|
-
_context.
|
71
|
-
_context.
|
72
|
-
|
73
|
-
_context.t15 = {
|
74
|
-
v1beta1: _context.t14
|
75
|
-
};
|
76
|
-
_context.next = 27;
|
77
|
-
return Promise.resolve().then(function () {
|
78
|
-
return _interopRequireWildcard(require("../cosmos/base/tendermint/v1beta1/query.rpc.svc"));
|
79
|
-
});
|
80
|
-
|
81
|
-
case 27:
|
82
|
-
_context.t16 = _context.sent.QueryClientImpl;
|
83
|
-
_context.t17 = rpc;
|
84
|
-
_context.t18 = new _context.t16(_context.t17);
|
85
|
-
_context.t19 = {
|
86
|
-
v1beta1: _context.t18
|
87
|
-
};
|
88
|
-
_context.t20 = {
|
89
|
-
tendermint: _context.t19
|
53
|
+
case 11:
|
54
|
+
_context.t2 = _context.sent.createRpcQueryExtension(client);
|
55
|
+
_context.t3 = {
|
56
|
+
v1beta1: _context.t2
|
90
57
|
};
|
91
|
-
_context.next =
|
58
|
+
_context.next = 15;
|
92
59
|
return Promise.resolve().then(function () {
|
93
60
|
return _interopRequireWildcard(require("../cosmos/distribution/v1beta1/query.rpc.query"));
|
94
61
|
});
|
95
62
|
|
96
|
-
case
|
97
|
-
_context.
|
98
|
-
_context.
|
99
|
-
|
100
|
-
_context.t24 = {
|
101
|
-
v1beta1: _context.t23
|
102
|
-
};
|
103
|
-
_context.next = 40;
|
104
|
-
return Promise.resolve().then(function () {
|
105
|
-
return _interopRequireWildcard(require("../cosmos/evidence/v1beta1/query.rpc.query"));
|
106
|
-
});
|
107
|
-
|
108
|
-
case 40:
|
109
|
-
_context.t25 = _context.sent.QueryClientImpl;
|
110
|
-
_context.t26 = rpc;
|
111
|
-
_context.t27 = new _context.t25(_context.t26);
|
112
|
-
_context.t28 = {
|
113
|
-
v1beta1: _context.t27
|
114
|
-
};
|
115
|
-
_context.next = 46;
|
116
|
-
return Promise.resolve().then(function () {
|
117
|
-
return _interopRequireWildcard(require("../cosmos/feegrant/v1beta1/query.rpc.query"));
|
118
|
-
});
|
119
|
-
|
120
|
-
case 46:
|
121
|
-
_context.t29 = _context.sent.QueryClientImpl;
|
122
|
-
_context.t30 = rpc;
|
123
|
-
_context.t31 = new _context.t29(_context.t30);
|
124
|
-
_context.t32 = {
|
125
|
-
v1beta1: _context.t31
|
63
|
+
case 15:
|
64
|
+
_context.t4 = _context.sent.createRpcQueryExtension(client);
|
65
|
+
_context.t5 = {
|
66
|
+
v1beta1: _context.t4
|
126
67
|
};
|
127
|
-
_context.next =
|
68
|
+
_context.next = 19;
|
128
69
|
return Promise.resolve().then(function () {
|
129
70
|
return _interopRequireWildcard(require("../cosmos/gov/v1/query.rpc.query"));
|
130
71
|
});
|
131
72
|
|
132
|
-
case
|
133
|
-
_context.
|
134
|
-
_context.
|
135
|
-
_context.t35 = new _context.t33(_context.t34);
|
136
|
-
_context.next = 57;
|
73
|
+
case 19:
|
74
|
+
_context.t6 = _context.sent.createRpcQueryExtension(client);
|
75
|
+
_context.next = 22;
|
137
76
|
return Promise.resolve().then(function () {
|
138
77
|
return _interopRequireWildcard(require("../cosmos/gov/v1beta1/query.rpc.query"));
|
139
78
|
});
|
140
79
|
|
141
|
-
case
|
142
|
-
_context.
|
143
|
-
_context.
|
144
|
-
|
145
|
-
|
146
|
-
v1: _context.t35,
|
147
|
-
v1beta1: _context.t38
|
148
|
-
};
|
149
|
-
_context.next = 63;
|
150
|
-
return Promise.resolve().then(function () {
|
151
|
-
return _interopRequireWildcard(require("../cosmos/group/v1/query.rpc.query"));
|
152
|
-
});
|
153
|
-
|
154
|
-
case 63:
|
155
|
-
_context.t40 = _context.sent.QueryClientImpl;
|
156
|
-
_context.t41 = rpc;
|
157
|
-
_context.t42 = new _context.t40(_context.t41);
|
158
|
-
_context.t43 = {
|
159
|
-
v1: _context.t42
|
80
|
+
case 22:
|
81
|
+
_context.t7 = _context.sent.createRpcQueryExtension(client);
|
82
|
+
_context.t8 = {
|
83
|
+
v1: _context.t6,
|
84
|
+
v1beta1: _context.t7
|
160
85
|
};
|
161
|
-
_context.next =
|
162
|
-
return Promise.resolve().then(function () {
|
163
|
-
return _interopRequireWildcard(require("../cosmos/mint/v1beta1/query.rpc.query"));
|
164
|
-
});
|
165
|
-
|
166
|
-
case 69:
|
167
|
-
_context.t44 = _context.sent.QueryClientImpl;
|
168
|
-
_context.t45 = rpc;
|
169
|
-
_context.t46 = new _context.t44(_context.t45);
|
170
|
-
_context.t47 = {
|
171
|
-
v1beta1: _context.t46
|
172
|
-
};
|
173
|
-
_context.next = 75;
|
174
|
-
return Promise.resolve().then(function () {
|
175
|
-
return _interopRequireWildcard(require("../cosmos/nft/v1beta1/query.rpc.query"));
|
176
|
-
});
|
177
|
-
|
178
|
-
case 75:
|
179
|
-
_context.t48 = _context.sent.QueryClientImpl;
|
180
|
-
_context.t49 = rpc;
|
181
|
-
_context.t50 = new _context.t48(_context.t49);
|
182
|
-
_context.t51 = {
|
183
|
-
v1beta1: _context.t50
|
184
|
-
};
|
185
|
-
_context.next = 81;
|
186
|
-
return Promise.resolve().then(function () {
|
187
|
-
return _interopRequireWildcard(require("../cosmos/params/v1beta1/query.rpc.query"));
|
188
|
-
});
|
189
|
-
|
190
|
-
case 81:
|
191
|
-
_context.t52 = _context.sent.QueryClientImpl;
|
192
|
-
_context.t53 = rpc;
|
193
|
-
_context.t54 = new _context.t52(_context.t53);
|
194
|
-
_context.t55 = {
|
195
|
-
v1beta1: _context.t54
|
196
|
-
};
|
197
|
-
_context.next = 87;
|
198
|
-
return Promise.resolve().then(function () {
|
199
|
-
return _interopRequireWildcard(require("../cosmos/slashing/v1beta1/query.rpc.query"));
|
200
|
-
});
|
201
|
-
|
202
|
-
case 87:
|
203
|
-
_context.t56 = _context.sent.QueryClientImpl;
|
204
|
-
_context.t57 = rpc;
|
205
|
-
_context.t58 = new _context.t56(_context.t57);
|
206
|
-
_context.t59 = {
|
207
|
-
v1beta1: _context.t58
|
208
|
-
};
|
209
|
-
_context.next = 93;
|
86
|
+
_context.next = 26;
|
210
87
|
return Promise.resolve().then(function () {
|
211
88
|
return _interopRequireWildcard(require("../cosmos/staking/v1beta1/query.rpc.query"));
|
212
89
|
});
|
213
90
|
|
214
|
-
case
|
215
|
-
_context.
|
216
|
-
_context.
|
217
|
-
|
218
|
-
_context.t63 = {
|
219
|
-
v1beta1: _context.t62
|
91
|
+
case 26:
|
92
|
+
_context.t9 = _context.sent.createRpcQueryExtension(client);
|
93
|
+
_context.t10 = {
|
94
|
+
v1beta1: _context.t9
|
220
95
|
};
|
221
|
-
_context.next =
|
96
|
+
_context.next = 30;
|
222
97
|
return Promise.resolve().then(function () {
|
223
98
|
return _interopRequireWildcard(require("../cosmos/tx/v1beta1/service.rpc.svc"));
|
224
99
|
});
|
225
100
|
|
226
|
-
case
|
227
|
-
_context.
|
228
|
-
_context.
|
229
|
-
|
230
|
-
_context.t67 = {
|
231
|
-
v1beta1: _context.t66
|
101
|
+
case 30:
|
102
|
+
_context.t11 = _context.sent.createRpcQueryExtension(client);
|
103
|
+
_context.t12 = {
|
104
|
+
v1beta1: _context.t11
|
232
105
|
};
|
233
|
-
_context.next =
|
106
|
+
_context.next = 34;
|
234
107
|
return Promise.resolve().then(function () {
|
235
108
|
return _interopRequireWildcard(require("../cosmos/upgrade/v1beta1/query.rpc.query"));
|
236
109
|
});
|
237
110
|
|
238
|
-
case
|
239
|
-
_context.
|
240
|
-
_context.
|
241
|
-
|
242
|
-
_context.t71 = {
|
243
|
-
v1beta1: _context.t70
|
111
|
+
case 34:
|
112
|
+
_context.t13 = _context.sent.createRpcQueryExtension(client);
|
113
|
+
_context.t14 = {
|
114
|
+
v1beta1: _context.t13
|
244
115
|
};
|
245
|
-
_context.
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
feegrant: _context.t32,
|
254
|
-
gov: _context.t39,
|
255
|
-
group: _context.t43,
|
256
|
-
mint: _context.t47,
|
257
|
-
nft: _context.t51,
|
258
|
-
params: _context.t55,
|
259
|
-
slashing: _context.t59,
|
260
|
-
staking: _context.t63,
|
261
|
-
tx: _context.t67,
|
262
|
-
upgrade: _context.t71
|
116
|
+
_context.t15 = {
|
117
|
+
authz: _context.t1,
|
118
|
+
bank: _context.t3,
|
119
|
+
distribution: _context.t5,
|
120
|
+
gov: _context.t8,
|
121
|
+
staking: _context.t10,
|
122
|
+
tx: _context.t12,
|
123
|
+
upgrade: _context.t14
|
263
124
|
};
|
264
|
-
_context.next =
|
125
|
+
_context.next = 39;
|
265
126
|
return Promise.resolve().then(function () {
|
266
127
|
return _interopRequireWildcard(require("./mint/query.rpc.query"));
|
267
128
|
});
|
268
129
|
|
269
|
-
case
|
270
|
-
_context.
|
271
|
-
_context.
|
272
|
-
|
273
|
-
_context.t76 = {
|
274
|
-
mint: _context.t75
|
130
|
+
case 39:
|
131
|
+
_context.t16 = _context.sent.createRpcQueryExtension(client);
|
132
|
+
_context.t17 = {
|
133
|
+
mint: _context.t16
|
275
134
|
};
|
276
135
|
return _context.abrupt("return", {
|
277
|
-
cosmos: _context.
|
278
|
-
juno: _context.
|
136
|
+
cosmos: _context.t15,
|
137
|
+
juno: _context.t17
|
279
138
|
});
|
280
139
|
|
281
|
-
case
|
140
|
+
case 42:
|
282
141
|
case "end":
|
283
142
|
return _context.stop();
|
284
143
|
}
|