juno-network 0.3.0 → 0.4.0
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/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
|
@@ -15,31 +15,24 @@ 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"));
|
|
18
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
23
19
|
|
|
24
20
|
var _helpers = require("@osmonauts/helpers");
|
|
25
21
|
|
|
26
|
-
var
|
|
27
|
-
|
|
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); }; }
|
|
29
|
-
|
|
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; } }
|
|
31
|
-
|
|
32
|
-
var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
33
|
-
(0, _inherits2["default"])(LCDQueryClient, _LCDClient);
|
|
34
|
-
|
|
35
|
-
var _super = _createSuper(LCDQueryClient);
|
|
36
|
-
|
|
22
|
+
var LCDQueryClient = /*#__PURE__*/function () {
|
|
37
23
|
function LCDQueryClient(_ref) {
|
|
38
|
-
var
|
|
24
|
+
var requestClient = _ref.requestClient;
|
|
39
25
|
(0, _classCallCheck2["default"])(this, LCDQueryClient);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
26
|
+
(0, _defineProperty2["default"])(this, "req", void 0);
|
|
27
|
+
this.req = requestClient;
|
|
28
|
+
this.clientState = this.clientState.bind(this);
|
|
29
|
+
this.clientStates = this.clientStates.bind(this);
|
|
30
|
+
this.consensusState = this.consensusState.bind(this);
|
|
31
|
+
this.consensusStates = this.consensusStates.bind(this);
|
|
32
|
+
this.clientStatus = this.clientStatus.bind(this);
|
|
33
|
+
this.clientParams = this.clientParams.bind(this);
|
|
34
|
+
this.upgradedClientState = this.upgradedClientState.bind(this);
|
|
35
|
+
this.upgradedConsensusState = this.upgradedConsensusState.bind(this);
|
|
43
36
|
}
|
|
44
37
|
/* ClientState queries an IBC light client. */
|
|
45
38
|
|
|
@@ -53,9 +46,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
|
53
46
|
while (1) {
|
|
54
47
|
switch (_context.prev = _context.next) {
|
|
55
48
|
case 0:
|
|
56
|
-
endpoint = "ibc/core/client/v1/client_states/".concat(params.
|
|
49
|
+
endpoint = "ibc/core/client/v1/client_states/".concat(params.clientId);
|
|
57
50
|
_context.next = 3;
|
|
58
|
-
return this.get(endpoint);
|
|
51
|
+
return this.req.get(endpoint);
|
|
59
52
|
|
|
60
53
|
case 3:
|
|
61
54
|
return _context.abrupt("return", _context.sent);
|
|
@@ -101,7 +94,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
|
101
94
|
|
|
102
95
|
endpoint = "ibc/core/client/v1/client_states";
|
|
103
96
|
_context2.next = 6;
|
|
104
|
-
return this.get(endpoint, options);
|
|
97
|
+
return this.req.get(endpoint, options);
|
|
105
98
|
|
|
106
99
|
case 6:
|
|
107
100
|
return _context2.abrupt("return", _context2.sent);
|
|
@@ -136,13 +129,13 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
|
136
129
|
params: {}
|
|
137
130
|
};
|
|
138
131
|
|
|
139
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.
|
|
140
|
-
options.params.latest_height = params.
|
|
132
|
+
if (typeof (params === null || params === void 0 ? void 0 : params.latestHeight) !== "undefined") {
|
|
133
|
+
options.params.latest_height = params.latestHeight;
|
|
141
134
|
}
|
|
142
135
|
|
|
143
|
-
endpoint = "ibc/core/client/v1/consensus_states/".concat(params.
|
|
136
|
+
endpoint = "ibc/core/client/v1/consensus_states/".concat(params.clientId, "/revision/").concat(params.revisionNumber, "height/").concat(params.revisionHeight);
|
|
144
137
|
_context3.next = 5;
|
|
145
|
-
return this.get(endpoint, options);
|
|
138
|
+
return this.req.get(endpoint, options);
|
|
146
139
|
|
|
147
140
|
case 5:
|
|
148
141
|
return _context3.abrupt("return", _context3.sent);
|
|
@@ -181,9 +174,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
|
181
174
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
|
182
175
|
}
|
|
183
176
|
|
|
184
|
-
endpoint = "ibc/core/client/v1/consensus_states/".concat(params.
|
|
177
|
+
endpoint = "ibc/core/client/v1/consensus_states/".concat(params.clientId);
|
|
185
178
|
_context4.next = 5;
|
|
186
|
-
return this.get(endpoint, options);
|
|
179
|
+
return this.req.get(endpoint, options);
|
|
187
180
|
|
|
188
181
|
case 5:
|
|
189
182
|
return _context4.abrupt("return", _context4.sent);
|
|
@@ -213,9 +206,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
|
213
206
|
while (1) {
|
|
214
207
|
switch (_context5.prev = _context5.next) {
|
|
215
208
|
case 0:
|
|
216
|
-
endpoint = "ibc/core/client/v1/client_status/".concat(params.
|
|
209
|
+
endpoint = "ibc/core/client/v1/client_status/".concat(params.clientId);
|
|
217
210
|
_context5.next = 3;
|
|
218
|
-
return this.get(endpoint);
|
|
211
|
+
return this.req.get(endpoint);
|
|
219
212
|
|
|
220
213
|
case 3:
|
|
221
214
|
return _context5.abrupt("return", _context5.sent);
|
|
@@ -251,7 +244,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
|
251
244
|
_params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
252
245
|
endpoint = "ibc/client/v1/params";
|
|
253
246
|
_context6.next = 4;
|
|
254
|
-
return this.get(endpoint);
|
|
247
|
+
return this.req.get(endpoint);
|
|
255
248
|
|
|
256
249
|
case 4:
|
|
257
250
|
return _context6.abrupt("return", _context6.sent);
|
|
@@ -287,7 +280,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
|
287
280
|
_params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
288
281
|
endpoint = "ibc/core/client/v1/upgraded_client_states";
|
|
289
282
|
_context7.next = 4;
|
|
290
|
-
return this.get(endpoint);
|
|
283
|
+
return this.req.get(endpoint);
|
|
291
284
|
|
|
292
285
|
case 4:
|
|
293
286
|
return _context7.abrupt("return", _context7.sent);
|
|
@@ -323,7 +316,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
|
323
316
|
_params = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
324
317
|
endpoint = "ibc/core/client/v1/upgraded_consensus_states";
|
|
325
318
|
_context8.next = 4;
|
|
326
|
-
return this.get(endpoint);
|
|
319
|
+
return this.req.get(endpoint);
|
|
327
320
|
|
|
328
321
|
case 4:
|
|
329
322
|
return _context8.abrupt("return", _context8.sent);
|
|
@@ -344,6 +337,6 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
|
344
337
|
}()
|
|
345
338
|
}]);
|
|
346
339
|
return LCDQueryClient;
|
|
347
|
-
}(
|
|
340
|
+
}();
|
|
348
341
|
|
|
349
342
|
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); }
|
|
@@ -50,7 +52,11 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
|
50
52
|
}
|
|
51
53
|
}, {
|
|
52
54
|
key: "clientStates",
|
|
53
|
-
value: function clientStates(
|
|
55
|
+
value: function clientStates() {
|
|
56
|
+
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
57
|
+
pagination: undefined
|
|
58
|
+
};
|
|
59
|
+
|
|
54
60
|
var data = _query.QueryClientStatesRequest.encode(request).finish();
|
|
55
61
|
|
|
56
62
|
var promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStates", data);
|
|
@@ -90,7 +96,9 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
|
90
96
|
}
|
|
91
97
|
}, {
|
|
92
98
|
key: "clientParams",
|
|
93
|
-
value: function clientParams(
|
|
99
|
+
value: function clientParams() {
|
|
100
|
+
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
101
|
+
|
|
94
102
|
var data = _query.QueryClientParamsRequest.encode(request).finish();
|
|
95
103
|
|
|
96
104
|
var promise = this.rpc.request("ibc.core.client.v1.Query", "ClientParams", data);
|
|
@@ -100,7 +108,9 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
|
100
108
|
}
|
|
101
109
|
}, {
|
|
102
110
|
key: "upgradedClientState",
|
|
103
|
-
value: function upgradedClientState(
|
|
111
|
+
value: function upgradedClientState() {
|
|
112
|
+
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
113
|
+
|
|
104
114
|
var data = _query.QueryUpgradedClientStateRequest.encode(request).finish();
|
|
105
115
|
|
|
106
116
|
var promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedClientState", data);
|
|
@@ -110,7 +120,9 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
|
110
120
|
}
|
|
111
121
|
}, {
|
|
112
122
|
key: "upgradedConsensusState",
|
|
113
|
-
value: function upgradedConsensusState(
|
|
123
|
+
value: function upgradedConsensusState() {
|
|
124
|
+
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
125
|
+
|
|
114
126
|
var data = _query.QueryUpgradedConsensusStateRequest.encode(request).finish();
|
|
115
127
|
|
|
116
128
|
var promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedConsensusState", data);
|
|
@@ -122,4 +134,37 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
|
122
134
|
return QueryClientImpl;
|
|
123
135
|
}();
|
|
124
136
|
|
|
125
|
-
exports.QueryClientImpl = QueryClientImpl;
|
|
137
|
+
exports.QueryClientImpl = QueryClientImpl;
|
|
138
|
+
|
|
139
|
+
var createRpcQueryExtension = function createRpcQueryExtension(base) {
|
|
140
|
+
var rpc = (0, _stargate.createProtobufRpcClient)(base);
|
|
141
|
+
var queryService = new QueryClientImpl(rpc);
|
|
142
|
+
return {
|
|
143
|
+
clientState: function clientState(request) {
|
|
144
|
+
return queryService.clientState(request);
|
|
145
|
+
},
|
|
146
|
+
clientStates: function clientStates(request) {
|
|
147
|
+
return queryService.clientStates(request);
|
|
148
|
+
},
|
|
149
|
+
consensusState: function consensusState(request) {
|
|
150
|
+
return queryService.consensusState(request);
|
|
151
|
+
},
|
|
152
|
+
consensusStates: function consensusStates(request) {
|
|
153
|
+
return queryService.consensusStates(request);
|
|
154
|
+
},
|
|
155
|
+
clientStatus: function clientStatus(request) {
|
|
156
|
+
return queryService.clientStatus(request);
|
|
157
|
+
},
|
|
158
|
+
clientParams: function clientParams(request) {
|
|
159
|
+
return queryService.clientParams(request);
|
|
160
|
+
},
|
|
161
|
+
upgradedClientState: function upgradedClientState(request) {
|
|
162
|
+
return queryService.upgradedClientState(request);
|
|
163
|
+
},
|
|
164
|
+
upgradedConsensusState: function upgradedConsensusState(request) {
|
|
165
|
+
return queryService.upgradedConsensusState(request);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
exports.createRpcQueryExtension = createRpcQueryExtension;
|
|
@@ -8,17 +8,17 @@ var AminoConverter = {
|
|
|
8
8
|
"/ibc.core.client.v1.MsgCreateClient": {
|
|
9
9
|
aminoType: "cosmos-sdk/MsgCreateClient",
|
|
10
10
|
toAmino: function toAmino(_ref) {
|
|
11
|
-
var
|
|
12
|
-
|
|
11
|
+
var clientState = _ref.clientState,
|
|
12
|
+
consensusState = _ref.consensusState,
|
|
13
13
|
signer = _ref.signer;
|
|
14
14
|
return {
|
|
15
15
|
client_state: {
|
|
16
|
-
type_url:
|
|
17
|
-
value:
|
|
16
|
+
type_url: clientState.typeUrl,
|
|
17
|
+
value: clientState.value
|
|
18
18
|
},
|
|
19
19
|
consensus_state: {
|
|
20
|
-
type_url:
|
|
21
|
-
value:
|
|
20
|
+
type_url: consensusState.typeUrl,
|
|
21
|
+
value: consensusState.value
|
|
22
22
|
},
|
|
23
23
|
signer: signer
|
|
24
24
|
};
|
|
@@ -28,12 +28,12 @@ var AminoConverter = {
|
|
|
28
28
|
consensus_state = _ref2.consensus_state,
|
|
29
29
|
signer = _ref2.signer;
|
|
30
30
|
return {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
clientState: {
|
|
32
|
+
typeUrl: client_state.type_url,
|
|
33
33
|
value: client_state.value
|
|
34
34
|
},
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
consensusState: {
|
|
36
|
+
typeUrl: consensus_state.type_url,
|
|
37
37
|
value: consensus_state.value
|
|
38
38
|
},
|
|
39
39
|
signer: signer
|
|
@@ -43,13 +43,13 @@ var AminoConverter = {
|
|
|
43
43
|
"/ibc.core.client.v1.MsgUpdateClient": {
|
|
44
44
|
aminoType: "cosmos-sdk/MsgUpdateClient",
|
|
45
45
|
toAmino: function toAmino(_ref3) {
|
|
46
|
-
var
|
|
46
|
+
var clientId = _ref3.clientId,
|
|
47
47
|
header = _ref3.header,
|
|
48
48
|
signer = _ref3.signer;
|
|
49
49
|
return {
|
|
50
|
-
client_id:
|
|
50
|
+
client_id: clientId,
|
|
51
51
|
header: {
|
|
52
|
-
type_url: header.
|
|
52
|
+
type_url: header.typeUrl,
|
|
53
53
|
value: header.value
|
|
54
54
|
},
|
|
55
55
|
signer: signer
|
|
@@ -60,9 +60,9 @@ var AminoConverter = {
|
|
|
60
60
|
header = _ref4.header,
|
|
61
61
|
signer = _ref4.signer;
|
|
62
62
|
return {
|
|
63
|
-
|
|
63
|
+
clientId: client_id,
|
|
64
64
|
header: {
|
|
65
|
-
|
|
65
|
+
typeUrl: header.type_url,
|
|
66
66
|
value: header.value
|
|
67
67
|
},
|
|
68
68
|
signer: signer
|
|
@@ -72,24 +72,24 @@ var AminoConverter = {
|
|
|
72
72
|
"/ibc.core.client.v1.MsgUpgradeClient": {
|
|
73
73
|
aminoType: "cosmos-sdk/MsgUpgradeClient",
|
|
74
74
|
toAmino: function toAmino(_ref5) {
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
var clientId = _ref5.clientId,
|
|
76
|
+
clientState = _ref5.clientState,
|
|
77
|
+
consensusState = _ref5.consensusState,
|
|
78
|
+
proofUpgradeClient = _ref5.proofUpgradeClient,
|
|
79
|
+
proofUpgradeConsensusState = _ref5.proofUpgradeConsensusState,
|
|
80
80
|
signer = _ref5.signer;
|
|
81
81
|
return {
|
|
82
|
-
client_id:
|
|
82
|
+
client_id: clientId,
|
|
83
83
|
client_state: {
|
|
84
|
-
type_url:
|
|
85
|
-
value:
|
|
84
|
+
type_url: clientState.typeUrl,
|
|
85
|
+
value: clientState.value
|
|
86
86
|
},
|
|
87
87
|
consensus_state: {
|
|
88
|
-
type_url:
|
|
89
|
-
value:
|
|
88
|
+
type_url: consensusState.typeUrl,
|
|
89
|
+
value: consensusState.value
|
|
90
90
|
},
|
|
91
|
-
proof_upgrade_client:
|
|
92
|
-
proof_upgrade_consensus_state:
|
|
91
|
+
proof_upgrade_client: proofUpgradeClient,
|
|
92
|
+
proof_upgrade_consensus_state: proofUpgradeConsensusState,
|
|
93
93
|
signer: signer
|
|
94
94
|
};
|
|
95
95
|
},
|
|
@@ -101,17 +101,17 @@ var AminoConverter = {
|
|
|
101
101
|
proof_upgrade_consensus_state = _ref6.proof_upgrade_consensus_state,
|
|
102
102
|
signer = _ref6.signer;
|
|
103
103
|
return {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
clientId: client_id,
|
|
105
|
+
clientState: {
|
|
106
|
+
typeUrl: client_state.type_url,
|
|
107
107
|
value: client_state.value
|
|
108
108
|
},
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
consensusState: {
|
|
110
|
+
typeUrl: consensus_state.type_url,
|
|
111
111
|
value: consensus_state.value
|
|
112
112
|
},
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
proofUpgradeClient: proof_upgrade_client,
|
|
114
|
+
proofUpgradeConsensusState: proof_upgrade_consensus_state,
|
|
115
115
|
signer: signer
|
|
116
116
|
};
|
|
117
117
|
}
|
|
@@ -119,13 +119,13 @@ var AminoConverter = {
|
|
|
119
119
|
"/ibc.core.client.v1.MsgSubmitMisbehaviour": {
|
|
120
120
|
aminoType: "cosmos-sdk/MsgSubmitMisbehaviour",
|
|
121
121
|
toAmino: function toAmino(_ref7) {
|
|
122
|
-
var
|
|
122
|
+
var clientId = _ref7.clientId,
|
|
123
123
|
misbehaviour = _ref7.misbehaviour,
|
|
124
124
|
signer = _ref7.signer;
|
|
125
125
|
return {
|
|
126
|
-
client_id:
|
|
126
|
+
client_id: clientId,
|
|
127
127
|
misbehaviour: {
|
|
128
|
-
type_url: misbehaviour.
|
|
128
|
+
type_url: misbehaviour.typeUrl,
|
|
129
129
|
value: misbehaviour.value
|
|
130
130
|
},
|
|
131
131
|
signer: signer
|
|
@@ -136,9 +136,9 @@ var AminoConverter = {
|
|
|
136
136
|
misbehaviour = _ref8.misbehaviour,
|
|
137
137
|
signer = _ref8.signer;
|
|
138
138
|
return {
|
|
139
|
-
|
|
139
|
+
clientId: client_id,
|
|
140
140
|
misbehaviour: {
|
|
141
|
-
|
|
141
|
+
typeUrl: misbehaviour.type_url,
|
|
142
142
|
value: misbehaviour.value
|
|
143
143
|
},
|
|
144
144
|
signer: signer
|