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,25 @@ 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.contractInfo = this.contractInfo.bind(this);
|
29
|
+
this.contractHistory = this.contractHistory.bind(this);
|
30
|
+
this.contractsByCode = this.contractsByCode.bind(this);
|
31
|
+
this.allContractState = this.allContractState.bind(this);
|
32
|
+
this.rawContractState = this.rawContractState.bind(this);
|
33
|
+
this.smartContractState = this.smartContractState.bind(this);
|
34
|
+
this.code = this.code.bind(this);
|
35
|
+
this.codes = this.codes.bind(this);
|
36
|
+
this.pinnedCodes = this.pinnedCodes.bind(this);
|
43
37
|
}
|
44
38
|
/* ContractInfo gets the contract meta data */
|
45
39
|
|
@@ -55,7 +49,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
55
49
|
case 0:
|
56
50
|
endpoint = "cosmwasm/wasm/v1/contract/".concat(params.address);
|
57
51
|
_context.next = 3;
|
58
|
-
return this.get(endpoint);
|
52
|
+
return this.req.get(endpoint);
|
59
53
|
|
60
54
|
case 3:
|
61
55
|
return _context.abrupt("return", _context.sent);
|
@@ -95,7 +89,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
95
89
|
|
96
90
|
endpoint = "cosmwasm/wasm/v1/contract/".concat(params.address, "/history");
|
97
91
|
_context2.next = 5;
|
98
|
-
return this.get(endpoint, options);
|
92
|
+
return this.req.get(endpoint, options);
|
99
93
|
|
100
94
|
case 5:
|
101
95
|
return _context2.abrupt("return", _context2.sent);
|
@@ -133,9 +127,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
133
127
|
(0, _helpers.setPaginationParams)(options, params.pagination);
|
134
128
|
}
|
135
129
|
|
136
|
-
endpoint = "cosmwasm/wasm/v1/code/".concat(params.
|
130
|
+
endpoint = "cosmwasm/wasm/v1/code/".concat(params.codeId, "/contracts");
|
137
131
|
_context3.next = 5;
|
138
|
-
return this.get(endpoint, options);
|
132
|
+
return this.req.get(endpoint, options);
|
139
133
|
|
140
134
|
case 5:
|
141
135
|
return _context3.abrupt("return", _context3.sent);
|
@@ -175,7 +169,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
175
169
|
|
176
170
|
endpoint = "cosmwasm/wasm/v1/contract/".concat(params.address, "/state");
|
177
171
|
_context4.next = 5;
|
178
|
-
return this.get(endpoint, options);
|
172
|
+
return this.req.get(endpoint, options);
|
179
173
|
|
180
174
|
case 5:
|
181
175
|
return _context4.abrupt("return", _context4.sent);
|
@@ -205,9 +199,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
205
199
|
while (1) {
|
206
200
|
switch (_context5.prev = _context5.next) {
|
207
201
|
case 0:
|
208
|
-
endpoint = "wasm/v1/contract/".concat(params.address, "raw/").concat(params.
|
202
|
+
endpoint = "wasm/v1/contract/".concat(params.address, "raw/").concat(params.queryData);
|
209
203
|
_context5.next = 3;
|
210
|
-
return this.get(endpoint);
|
204
|
+
return this.req.get(endpoint);
|
211
205
|
|
212
206
|
case 3:
|
213
207
|
return _context5.abrupt("return", _context5.sent);
|
@@ -237,9 +231,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
237
231
|
while (1) {
|
238
232
|
switch (_context6.prev = _context6.next) {
|
239
233
|
case 0:
|
240
|
-
endpoint = "wasm/v1/contract/".concat(params.address, "smart/").concat(params.
|
234
|
+
endpoint = "wasm/v1/contract/".concat(params.address, "smart/").concat(params.queryData);
|
241
235
|
_context6.next = 3;
|
242
|
-
return this.get(endpoint);
|
236
|
+
return this.req.get(endpoint);
|
243
237
|
|
244
238
|
case 3:
|
245
239
|
return _context6.abrupt("return", _context6.sent);
|
@@ -269,9 +263,9 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
269
263
|
while (1) {
|
270
264
|
switch (_context7.prev = _context7.next) {
|
271
265
|
case 0:
|
272
|
-
endpoint = "cosmwasm/wasm/v1/code/".concat(params.
|
266
|
+
endpoint = "cosmwasm/wasm/v1/code/".concat(params.codeId);
|
273
267
|
_context7.next = 3;
|
274
|
-
return this.get(endpoint);
|
268
|
+
return this.req.get(endpoint);
|
275
269
|
|
276
270
|
case 3:
|
277
271
|
return _context7.abrupt("return", _context7.sent);
|
@@ -317,7 +311,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
317
311
|
|
318
312
|
endpoint = "cosmwasm/wasm/v1/code";
|
319
313
|
_context8.next = 6;
|
320
|
-
return this.get(endpoint, options);
|
314
|
+
return this.req.get(endpoint, options);
|
321
315
|
|
322
316
|
case 6:
|
323
317
|
return _context8.abrupt("return", _context8.sent);
|
@@ -363,7 +357,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
363
357
|
|
364
358
|
endpoint = "cosmwasm/wasm/v1/codes/pinned";
|
365
359
|
_context9.next = 6;
|
366
|
-
return this.get(endpoint, options);
|
360
|
+
return this.req.get(endpoint, options);
|
367
361
|
|
368
362
|
case 6:
|
369
363
|
return _context9.abrupt("return", _context9.sent);
|
@@ -384,6 +378,6 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
384
378
|
}()
|
385
379
|
}]);
|
386
380
|
return LCDQueryClient;
|
387
|
-
}(
|
381
|
+
}();
|
388
382
|
|
389
383
|
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); }
|
@@ -111,7 +113,11 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
111
113
|
}
|
112
114
|
}, {
|
113
115
|
key: "codes",
|
114
|
-
value: function codes(
|
116
|
+
value: function codes() {
|
117
|
+
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
118
|
+
pagination: undefined
|
119
|
+
};
|
120
|
+
|
115
121
|
var data = _query.QueryCodesRequest.encode(request).finish();
|
116
122
|
|
117
123
|
var promise = this.rpc.request("cosmwasm.wasm.v1.Query", "Codes", data);
|
@@ -121,7 +127,11 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
121
127
|
}
|
122
128
|
}, {
|
123
129
|
key: "pinnedCodes",
|
124
|
-
value: function pinnedCodes(
|
130
|
+
value: function pinnedCodes() {
|
131
|
+
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
132
|
+
pagination: undefined
|
133
|
+
};
|
134
|
+
|
125
135
|
var data = _query.QueryPinnedCodesRequest.encode(request).finish();
|
126
136
|
|
127
137
|
var promise = this.rpc.request("cosmwasm.wasm.v1.Query", "PinnedCodes", data);
|
@@ -133,4 +143,40 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
133
143
|
return QueryClientImpl;
|
134
144
|
}();
|
135
145
|
|
136
|
-
exports.QueryClientImpl = QueryClientImpl;
|
146
|
+
exports.QueryClientImpl = QueryClientImpl;
|
147
|
+
|
148
|
+
var createRpcQueryExtension = function createRpcQueryExtension(base) {
|
149
|
+
var rpc = (0, _stargate.createProtobufRpcClient)(base);
|
150
|
+
var queryService = new QueryClientImpl(rpc);
|
151
|
+
return {
|
152
|
+
contractInfo: function contractInfo(request) {
|
153
|
+
return queryService.contractInfo(request);
|
154
|
+
},
|
155
|
+
contractHistory: function contractHistory(request) {
|
156
|
+
return queryService.contractHistory(request);
|
157
|
+
},
|
158
|
+
contractsByCode: function contractsByCode(request) {
|
159
|
+
return queryService.contractsByCode(request);
|
160
|
+
},
|
161
|
+
allContractState: function allContractState(request) {
|
162
|
+
return queryService.allContractState(request);
|
163
|
+
},
|
164
|
+
rawContractState: function rawContractState(request) {
|
165
|
+
return queryService.rawContractState(request);
|
166
|
+
},
|
167
|
+
smartContractState: function smartContractState(request) {
|
168
|
+
return queryService.smartContractState(request);
|
169
|
+
},
|
170
|
+
code: function code(request) {
|
171
|
+
return queryService.code(request);
|
172
|
+
},
|
173
|
+
codes: function codes(request) {
|
174
|
+
return queryService.codes(request);
|
175
|
+
},
|
176
|
+
pinnedCodes: function pinnedCodes(request) {
|
177
|
+
return queryService.pinnedCodes(request);
|
178
|
+
}
|
179
|
+
};
|
180
|
+
};
|
181
|
+
|
182
|
+
exports.createRpcQueryExtension = createRpcQueryExtension;
|
@@ -16,14 +16,14 @@ var AminoConverter = {
|
|
16
16
|
aminoType: "wasm/MsgStoreCode",
|
17
17
|
toAmino: function toAmino(_ref) {
|
18
18
|
var sender = _ref.sender,
|
19
|
-
|
20
|
-
|
19
|
+
wasmByteCode = _ref.wasmByteCode,
|
20
|
+
instantiatePermission = _ref.instantiatePermission;
|
21
21
|
return {
|
22
22
|
sender: sender,
|
23
|
-
wasm_byte_code: (0, _encoding.toBase64)(
|
23
|
+
wasm_byte_code: (0, _encoding.toBase64)(wasmByteCode),
|
24
24
|
instantiate_permission: {
|
25
|
-
permission:
|
26
|
-
address:
|
25
|
+
permission: instantiatePermission.permission,
|
26
|
+
address: instantiatePermission.address
|
27
27
|
}
|
28
28
|
};
|
29
29
|
},
|
@@ -33,8 +33,8 @@ var AminoConverter = {
|
|
33
33
|
instantiate_permission = _ref2.instantiate_permission;
|
34
34
|
return {
|
35
35
|
sender: sender,
|
36
|
-
|
37
|
-
|
36
|
+
wasmByteCode: (0, _encoding.fromBase64)(wasm_byte_code),
|
37
|
+
instantiatePermission: {
|
38
38
|
permission: (0, _types.accessTypeFromJSON)(instantiate_permission.permission),
|
39
39
|
address: instantiate_permission.address
|
40
40
|
}
|
@@ -46,14 +46,14 @@ var AminoConverter = {
|
|
46
46
|
toAmino: function toAmino(_ref3) {
|
47
47
|
var sender = _ref3.sender,
|
48
48
|
admin = _ref3.admin,
|
49
|
-
|
49
|
+
codeId = _ref3.codeId,
|
50
50
|
label = _ref3.label,
|
51
51
|
msg = _ref3.msg,
|
52
52
|
funds = _ref3.funds;
|
53
53
|
return {
|
54
54
|
sender: sender,
|
55
55
|
admin: admin,
|
56
|
-
code_id:
|
56
|
+
code_id: codeId.toString(),
|
57
57
|
label: label,
|
58
58
|
msg: JSON.parse((0, _encoding.fromUtf8)(msg)),
|
59
59
|
funds: funds.map(function (el0) {
|
@@ -74,7 +74,7 @@ var AminoConverter = {
|
|
74
74
|
return {
|
75
75
|
sender: sender,
|
76
76
|
admin: admin,
|
77
|
-
|
77
|
+
codeId: _helpers.Long.fromString(code_id),
|
78
78
|
label: label,
|
79
79
|
msg: (0, _encoding.toUtf8)(JSON.stringify(msg)),
|
80
80
|
funds: funds.map(function (el0) {
|
@@ -128,12 +128,12 @@ var AminoConverter = {
|
|
128
128
|
toAmino: function toAmino(_ref7) {
|
129
129
|
var sender = _ref7.sender,
|
130
130
|
contract = _ref7.contract,
|
131
|
-
|
131
|
+
codeId = _ref7.codeId,
|
132
132
|
msg = _ref7.msg;
|
133
133
|
return {
|
134
134
|
sender: sender,
|
135
135
|
contract: contract,
|
136
|
-
code_id:
|
136
|
+
code_id: codeId.toString(),
|
137
137
|
msg: JSON.parse((0, _encoding.fromUtf8)(msg))
|
138
138
|
};
|
139
139
|
},
|
@@ -145,7 +145,7 @@ var AminoConverter = {
|
|
145
145
|
return {
|
146
146
|
sender: sender,
|
147
147
|
contract: contract,
|
148
|
-
|
148
|
+
codeId: _helpers.Long.fromString(code_id),
|
149
149
|
msg: (0, _encoding.toUtf8)(JSON.stringify(msg))
|
150
150
|
};
|
151
151
|
}
|
@@ -154,11 +154,11 @@ var AminoConverter = {
|
|
154
154
|
aminoType: "wasm/MsgUpdateAdmin",
|
155
155
|
toAmino: function toAmino(_ref9) {
|
156
156
|
var sender = _ref9.sender,
|
157
|
-
|
157
|
+
newAdmin = _ref9.newAdmin,
|
158
158
|
contract = _ref9.contract;
|
159
159
|
return {
|
160
160
|
sender: sender,
|
161
|
-
new_admin:
|
161
|
+
new_admin: newAdmin,
|
162
162
|
contract: contract
|
163
163
|
};
|
164
164
|
},
|
@@ -168,7 +168,7 @@ var AminoConverter = {
|
|
168
168
|
contract = _ref10.contract;
|
169
169
|
return {
|
170
170
|
sender: sender,
|
171
|
-
|
171
|
+
newAdmin: new_admin,
|
172
172
|
contract: contract
|
173
173
|
};
|
174
174
|
}
|