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
@@ -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.proposal = this.proposal.bind(this);
|
29
|
+
this.proposals = this.proposals.bind(this);
|
30
|
+
this.vote = this.vote.bind(this);
|
31
|
+
this.votes = this.votes.bind(this);
|
32
|
+
this.params = this.params.bind(this);
|
33
|
+
this.deposit = this.deposit.bind(this);
|
34
|
+
this.deposits = this.deposits.bind(this);
|
35
|
+
this.tallyResult = this.tallyResult.bind(this);
|
43
36
|
}
|
44
37
|
/* Proposal queries proposal details based on ProposalID. */
|
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 = "cosmos/gov/v1/proposals/".concat(params.
|
49
|
+
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId);
|
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);
|
@@ -89,8 +82,8 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
89
82
|
params: {}
|
90
83
|
};
|
91
84
|
|
92
|
-
if (typeof (params === null || params === void 0 ? void 0 : params.
|
93
|
-
options.params.proposal_status = params.
|
85
|
+
if (typeof (params === null || params === void 0 ? void 0 : params.proposalStatus) !== "undefined") {
|
86
|
+
options.params.proposal_status = params.proposalStatus;
|
94
87
|
}
|
95
88
|
|
96
89
|
if (typeof (params === null || params === void 0 ? void 0 : params.voter) !== "undefined") {
|
@@ -107,7 +100,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
107
100
|
|
108
101
|
endpoint = "cosmos/gov/v1/proposals";
|
109
102
|
_context2.next = 8;
|
110
|
-
return this.get(endpoint, options);
|
103
|
+
return this.req.get(endpoint, options);
|
111
104
|
|
112
105
|
case 8:
|
113
106
|
return _context2.abrupt("return", _context2.sent);
|
@@ -137,9 +130,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
137
130
|
while (1) {
|
138
131
|
switch (_context3.prev = _context3.next) {
|
139
132
|
case 0:
|
140
|
-
endpoint = "cosmos/gov/v1/proposals/".concat(params.
|
133
|
+
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "votes/").concat(params.voter);
|
141
134
|
_context3.next = 3;
|
142
|
-
return this.get(endpoint);
|
135
|
+
return this.req.get(endpoint);
|
143
136
|
|
144
137
|
case 3:
|
145
138
|
return _context3.abrupt("return", _context3.sent);
|
@@ -177,9 +170,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
177
170
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
178
171
|
}
|
179
172
|
|
180
|
-
endpoint = "cosmos/gov/v1/proposals/".concat(params.
|
173
|
+
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "/votes");
|
181
174
|
_context4.next = 5;
|
182
|
-
return this.get(endpoint, options);
|
175
|
+
return this.req.get(endpoint, options);
|
183
176
|
|
184
177
|
case 5:
|
185
178
|
return _context4.abrupt("return", _context4.sent);
|
@@ -209,9 +202,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
209
202
|
while (1) {
|
210
203
|
switch (_context5.prev = _context5.next) {
|
211
204
|
case 0:
|
212
|
-
endpoint = "cosmos/gov/v1/params/".concat(_params.
|
205
|
+
endpoint = "cosmos/gov/v1/params/".concat(_params.paramsType);
|
213
206
|
_context5.next = 3;
|
214
|
-
return this.get(endpoint);
|
207
|
+
return this.req.get(endpoint);
|
215
208
|
|
216
209
|
case 3:
|
217
210
|
return _context5.abrupt("return", _context5.sent);
|
@@ -241,9 +234,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
241
234
|
while (1) {
|
242
235
|
switch (_context6.prev = _context6.next) {
|
243
236
|
case 0:
|
244
|
-
endpoint = "cosmos/gov/v1/proposals/".concat(params.
|
237
|
+
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "deposits/").concat(params.depositor);
|
245
238
|
_context6.next = 3;
|
246
|
-
return this.get(endpoint);
|
239
|
+
return this.req.get(endpoint);
|
247
240
|
|
248
241
|
case 3:
|
249
242
|
return _context6.abrupt("return", _context6.sent);
|
@@ -281,9 +274,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
281
274
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
282
275
|
}
|
283
276
|
|
284
|
-
endpoint = "cosmos/gov/v1/proposals/".concat(params.
|
277
|
+
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "/deposits");
|
285
278
|
_context7.next = 5;
|
286
|
-
return this.get(endpoint, options);
|
279
|
+
return this.req.get(endpoint, options);
|
287
280
|
|
288
281
|
case 5:
|
289
282
|
return _context7.abrupt("return", _context7.sent);
|
@@ -313,9 +306,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
313
306
|
while (1) {
|
314
307
|
switch (_context8.prev = _context8.next) {
|
315
308
|
case 0:
|
316
|
-
endpoint = "cosmos/gov/v1/proposals/".concat(params.
|
309
|
+
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "/tally");
|
317
310
|
_context8.next = 3;
|
318
|
-
return this.get(endpoint);
|
311
|
+
return this.req.get(endpoint);
|
319
312
|
|
320
313
|
case 3:
|
321
314
|
return _context8.abrupt("return", _context8.sent);
|
@@ -336,6 +329,6 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
336
329
|
}()
|
337
330
|
}]);
|
338
331
|
return LCDQueryClient;
|
339
|
-
}(
|
332
|
+
}();
|
340
333
|
|
341
334
|
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); }
|
@@ -122,4 +124,37 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
122
124
|
return QueryClientImpl;
|
123
125
|
}();
|
124
126
|
|
125
|
-
exports.QueryClientImpl = QueryClientImpl;
|
127
|
+
exports.QueryClientImpl = QueryClientImpl;
|
128
|
+
|
129
|
+
var createRpcQueryExtension = function createRpcQueryExtension(base) {
|
130
|
+
var rpc = (0, _stargate.createProtobufRpcClient)(base);
|
131
|
+
var queryService = new QueryClientImpl(rpc);
|
132
|
+
return {
|
133
|
+
proposal: function proposal(request) {
|
134
|
+
return queryService.proposal(request);
|
135
|
+
},
|
136
|
+
proposals: function proposals(request) {
|
137
|
+
return queryService.proposals(request);
|
138
|
+
},
|
139
|
+
vote: function vote(request) {
|
140
|
+
return queryService.vote(request);
|
141
|
+
},
|
142
|
+
votes: function votes(request) {
|
143
|
+
return queryService.votes(request);
|
144
|
+
},
|
145
|
+
params: function params(request) {
|
146
|
+
return queryService.params(request);
|
147
|
+
},
|
148
|
+
deposit: function deposit(request) {
|
149
|
+
return queryService.deposit(request);
|
150
|
+
},
|
151
|
+
deposits: function deposits(request) {
|
152
|
+
return queryService.deposits(request);
|
153
|
+
},
|
154
|
+
tallyResult: function tallyResult(request) {
|
155
|
+
return queryService.tallyResult(request);
|
156
|
+
}
|
157
|
+
};
|
158
|
+
};
|
159
|
+
|
160
|
+
exports.createRpcQueryExtension = createRpcQueryExtension;
|
@@ -14,17 +14,17 @@ var AminoConverter = {
|
|
14
14
|
aminoType: "cosmos-sdk/v1/MsgSubmitProposal",
|
15
15
|
toAmino: function toAmino(_ref) {
|
16
16
|
var messages = _ref.messages,
|
17
|
-
|
17
|
+
initialDeposit = _ref.initialDeposit,
|
18
18
|
proposer = _ref.proposer,
|
19
19
|
metadata = _ref.metadata;
|
20
20
|
return {
|
21
21
|
messages: messages.map(function (el0) {
|
22
22
|
return {
|
23
|
-
type_url: el0.
|
23
|
+
type_url: el0.typeUrl,
|
24
24
|
value: el0.value
|
25
25
|
};
|
26
26
|
}),
|
27
|
-
initial_deposit:
|
27
|
+
initial_deposit: initialDeposit.map(function (el0) {
|
28
28
|
return {
|
29
29
|
denom: el0.denom,
|
30
30
|
amount: el0.amount
|
@@ -42,11 +42,11 @@ var AminoConverter = {
|
|
42
42
|
return {
|
43
43
|
messages: messages.map(function (el0) {
|
44
44
|
return {
|
45
|
-
|
45
|
+
typeUrl: el0.type_url,
|
46
46
|
value: el0.value
|
47
47
|
};
|
48
48
|
}),
|
49
|
-
|
49
|
+
initialDeposit: initial_deposit.map(function (el0) {
|
50
50
|
return {
|
51
51
|
denom: el0.denom,
|
52
52
|
amount: el0.amount
|
@@ -64,7 +64,7 @@ var AminoConverter = {
|
|
64
64
|
authority = _ref3.authority;
|
65
65
|
return {
|
66
66
|
content: {
|
67
|
-
type_url: content.
|
67
|
+
type_url: content.typeUrl,
|
68
68
|
value: content.value
|
69
69
|
},
|
70
70
|
authority: authority
|
@@ -75,7 +75,7 @@ var AminoConverter = {
|
|
75
75
|
authority = _ref4.authority;
|
76
76
|
return {
|
77
77
|
content: {
|
78
|
-
|
78
|
+
typeUrl: content.type_url,
|
79
79
|
value: content.value
|
80
80
|
},
|
81
81
|
authority: authority
|
@@ -85,12 +85,12 @@ var AminoConverter = {
|
|
85
85
|
"/cosmos.gov.v1.MsgVote": {
|
86
86
|
aminoType: "cosmos-sdk/v1/MsgVote",
|
87
87
|
toAmino: function toAmino(_ref5) {
|
88
|
-
var
|
88
|
+
var proposalId = _ref5.proposalId,
|
89
89
|
voter = _ref5.voter,
|
90
90
|
option = _ref5.option,
|
91
91
|
metadata = _ref5.metadata;
|
92
92
|
return {
|
93
|
-
proposal_id:
|
93
|
+
proposal_id: proposalId.toString(),
|
94
94
|
voter: voter,
|
95
95
|
option: option,
|
96
96
|
metadata: metadata
|
@@ -102,7 +102,7 @@ var AminoConverter = {
|
|
102
102
|
option = _ref6.option,
|
103
103
|
metadata = _ref6.metadata;
|
104
104
|
return {
|
105
|
-
|
105
|
+
proposalId: _helpers.Long.fromString(proposal_id),
|
106
106
|
voter: voter,
|
107
107
|
option: (0, _gov.voteOptionFromJSON)(option),
|
108
108
|
metadata: metadata
|
@@ -112,12 +112,12 @@ var AminoConverter = {
|
|
112
112
|
"/cosmos.gov.v1.MsgVoteWeighted": {
|
113
113
|
aminoType: "cosmos-sdk/v1/MsgVoteWeighted",
|
114
114
|
toAmino: function toAmino(_ref7) {
|
115
|
-
var
|
115
|
+
var proposalId = _ref7.proposalId,
|
116
116
|
voter = _ref7.voter,
|
117
117
|
options = _ref7.options,
|
118
118
|
metadata = _ref7.metadata;
|
119
119
|
return {
|
120
|
-
proposal_id:
|
120
|
+
proposal_id: proposalId.toString(),
|
121
121
|
voter: voter,
|
122
122
|
options: options.map(function (el0) {
|
123
123
|
return {
|
@@ -134,7 +134,7 @@ var AminoConverter = {
|
|
134
134
|
options = _ref8.options,
|
135
135
|
metadata = _ref8.metadata;
|
136
136
|
return {
|
137
|
-
|
137
|
+
proposalId: _helpers.Long.fromString(proposal_id),
|
138
138
|
voter: voter,
|
139
139
|
options: options.map(function (el0) {
|
140
140
|
return {
|
@@ -149,11 +149,11 @@ var AminoConverter = {
|
|
149
149
|
"/cosmos.gov.v1.MsgDeposit": {
|
150
150
|
aminoType: "cosmos-sdk/v1/MsgDeposit",
|
151
151
|
toAmino: function toAmino(_ref9) {
|
152
|
-
var
|
152
|
+
var proposalId = _ref9.proposalId,
|
153
153
|
depositor = _ref9.depositor,
|
154
154
|
amount = _ref9.amount;
|
155
155
|
return {
|
156
|
-
proposal_id:
|
156
|
+
proposal_id: proposalId.toString(),
|
157
157
|
depositor: depositor,
|
158
158
|
amount: amount.map(function (el0) {
|
159
159
|
return {
|
@@ -168,7 +168,7 @@ var AminoConverter = {
|
|
168
168
|
depositor = _ref10.depositor,
|
169
169
|
amount = _ref10.amount;
|
170
170
|
return {
|
171
|
-
|
171
|
+
proposalId: _helpers.Long.fromString(proposal_id),
|
172
172
|
depositor: depositor,
|
173
173
|
amount: amount.map(function (el0) {
|
174
174
|
return {
|