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,8 +15,6 @@ var _bank = require("./bank");
|
|
15
15
|
|
16
16
|
var _m0 = _interopRequireWildcard(require("protobufjs/minimal"));
|
17
17
|
|
18
|
-
var _helpers = require("@osmonauts/helpers");
|
19
|
-
|
20
18
|
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); }
|
21
19
|
|
22
20
|
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; }
|
@@ -73,18 +71,6 @@ var QueryBalanceRequest = {
|
|
73
71
|
|
74
72
|
return message;
|
75
73
|
},
|
76
|
-
fromJSON: function fromJSON(object) {
|
77
|
-
return {
|
78
|
-
address: (0, _helpers.isSet)(object.address) ? String(object.address) : "",
|
79
|
-
denom: (0, _helpers.isSet)(object.denom) ? String(object.denom) : ""
|
80
|
-
};
|
81
|
-
},
|
82
|
-
toJSON: function toJSON(message) {
|
83
|
-
var obj = {};
|
84
|
-
message.address !== undefined && (obj.address = message.address);
|
85
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
86
|
-
return obj;
|
87
|
-
},
|
88
74
|
fromPartial: function fromPartial(object) {
|
89
75
|
var _object$address, _object$denom;
|
90
76
|
|
@@ -133,16 +119,6 @@ var QueryBalanceResponse = {
|
|
133
119
|
|
134
120
|
return message;
|
135
121
|
},
|
136
|
-
fromJSON: function fromJSON(object) {
|
137
|
-
return {
|
138
|
-
balance: (0, _helpers.isSet)(object.balance) ? _coin.Coin.fromJSON(object.balance) : undefined
|
139
|
-
};
|
140
|
-
},
|
141
|
-
toJSON: function toJSON(message) {
|
142
|
-
var obj = {};
|
143
|
-
message.balance !== undefined && (obj.balance = message.balance ? _coin.Coin.toJSON(message.balance) : undefined);
|
144
|
-
return obj;
|
145
|
-
},
|
146
122
|
fromPartial: function fromPartial(object) {
|
147
123
|
var message = createBaseQueryBalanceResponse();
|
148
124
|
message.balance = object.balance !== undefined && object.balance !== null ? _coin.Coin.fromPartial(object.balance) : undefined;
|
@@ -197,18 +173,6 @@ var QueryAllBalancesRequest = {
|
|
197
173
|
|
198
174
|
return message;
|
199
175
|
},
|
200
|
-
fromJSON: function fromJSON(object) {
|
201
|
-
return {
|
202
|
-
address: (0, _helpers.isSet)(object.address) ? String(object.address) : "",
|
203
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageRequest.fromJSON(object.pagination) : undefined
|
204
|
-
};
|
205
|
-
},
|
206
|
-
toJSON: function toJSON(message) {
|
207
|
-
var obj = {};
|
208
|
-
message.address !== undefined && (obj.address = message.address);
|
209
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageRequest.toJSON(message.pagination) : undefined);
|
210
|
-
return obj;
|
211
|
-
},
|
212
176
|
fromPartial: function fromPartial(object) {
|
213
177
|
var _object$address2;
|
214
178
|
|
@@ -277,28 +241,6 @@ var QueryAllBalancesResponse = {
|
|
277
241
|
|
278
242
|
return message;
|
279
243
|
},
|
280
|
-
fromJSON: function fromJSON(object) {
|
281
|
-
return {
|
282
|
-
balances: Array.isArray(object === null || object === void 0 ? void 0 : object.balances) ? object.balances.map(function (e) {
|
283
|
-
return _coin.Coin.fromJSON(e);
|
284
|
-
}) : [],
|
285
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageResponse.fromJSON(object.pagination) : undefined
|
286
|
-
};
|
287
|
-
},
|
288
|
-
toJSON: function toJSON(message) {
|
289
|
-
var obj = {};
|
290
|
-
|
291
|
-
if (message.balances) {
|
292
|
-
obj.balances = message.balances.map(function (e) {
|
293
|
-
return e ? _coin.Coin.toJSON(e) : undefined;
|
294
|
-
});
|
295
|
-
} else {
|
296
|
-
obj.balances = [];
|
297
|
-
}
|
298
|
-
|
299
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageResponse.toJSON(message.pagination) : undefined);
|
300
|
-
return obj;
|
301
|
-
},
|
302
244
|
fromPartial: function fromPartial(object) {
|
303
245
|
var _object$balances;
|
304
246
|
|
@@ -358,18 +300,6 @@ var QuerySpendableBalancesRequest = {
|
|
358
300
|
|
359
301
|
return message;
|
360
302
|
},
|
361
|
-
fromJSON: function fromJSON(object) {
|
362
|
-
return {
|
363
|
-
address: (0, _helpers.isSet)(object.address) ? String(object.address) : "",
|
364
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageRequest.fromJSON(object.pagination) : undefined
|
365
|
-
};
|
366
|
-
},
|
367
|
-
toJSON: function toJSON(message) {
|
368
|
-
var obj = {};
|
369
|
-
message.address !== undefined && (obj.address = message.address);
|
370
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageRequest.toJSON(message.pagination) : undefined);
|
371
|
-
return obj;
|
372
|
-
},
|
373
303
|
fromPartial: function fromPartial(object) {
|
374
304
|
var _object$address3;
|
375
305
|
|
@@ -438,28 +368,6 @@ var QuerySpendableBalancesResponse = {
|
|
438
368
|
|
439
369
|
return message;
|
440
370
|
},
|
441
|
-
fromJSON: function fromJSON(object) {
|
442
|
-
return {
|
443
|
-
balances: Array.isArray(object === null || object === void 0 ? void 0 : object.balances) ? object.balances.map(function (e) {
|
444
|
-
return _coin.Coin.fromJSON(e);
|
445
|
-
}) : [],
|
446
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageResponse.fromJSON(object.pagination) : undefined
|
447
|
-
};
|
448
|
-
},
|
449
|
-
toJSON: function toJSON(message) {
|
450
|
-
var obj = {};
|
451
|
-
|
452
|
-
if (message.balances) {
|
453
|
-
obj.balances = message.balances.map(function (e) {
|
454
|
-
return e ? _coin.Coin.toJSON(e) : undefined;
|
455
|
-
});
|
456
|
-
} else {
|
457
|
-
obj.balances = [];
|
458
|
-
}
|
459
|
-
|
460
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageResponse.toJSON(message.pagination) : undefined);
|
461
|
-
return obj;
|
462
|
-
},
|
463
371
|
fromPartial: function fromPartial(object) {
|
464
372
|
var _object$balances2;
|
465
373
|
|
@@ -510,16 +418,6 @@ var QueryTotalSupplyRequest = {
|
|
510
418
|
|
511
419
|
return message;
|
512
420
|
},
|
513
|
-
fromJSON: function fromJSON(object) {
|
514
|
-
return {
|
515
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageRequest.fromJSON(object.pagination) : undefined
|
516
|
-
};
|
517
|
-
},
|
518
|
-
toJSON: function toJSON(message) {
|
519
|
-
var obj = {};
|
520
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageRequest.toJSON(message.pagination) : undefined);
|
521
|
-
return obj;
|
522
|
-
},
|
523
421
|
fromPartial: function fromPartial(object) {
|
524
422
|
var message = createBaseQueryTotalSupplyRequest();
|
525
423
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? _pagination.PageRequest.fromPartial(object.pagination) : undefined;
|
@@ -585,28 +483,6 @@ var QueryTotalSupplyResponse = {
|
|
585
483
|
|
586
484
|
return message;
|
587
485
|
},
|
588
|
-
fromJSON: function fromJSON(object) {
|
589
|
-
return {
|
590
|
-
supply: Array.isArray(object === null || object === void 0 ? void 0 : object.supply) ? object.supply.map(function (e) {
|
591
|
-
return _coin.Coin.fromJSON(e);
|
592
|
-
}) : [],
|
593
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageResponse.fromJSON(object.pagination) : undefined
|
594
|
-
};
|
595
|
-
},
|
596
|
-
toJSON: function toJSON(message) {
|
597
|
-
var obj = {};
|
598
|
-
|
599
|
-
if (message.supply) {
|
600
|
-
obj.supply = message.supply.map(function (e) {
|
601
|
-
return e ? _coin.Coin.toJSON(e) : undefined;
|
602
|
-
});
|
603
|
-
} else {
|
604
|
-
obj.supply = [];
|
605
|
-
}
|
606
|
-
|
607
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageResponse.toJSON(message.pagination) : undefined);
|
608
|
-
return obj;
|
609
|
-
},
|
610
486
|
fromPartial: function fromPartial(object) {
|
611
487
|
var _object$supply;
|
612
488
|
|
@@ -657,16 +533,6 @@ var QuerySupplyOfRequest = {
|
|
657
533
|
|
658
534
|
return message;
|
659
535
|
},
|
660
|
-
fromJSON: function fromJSON(object) {
|
661
|
-
return {
|
662
|
-
denom: (0, _helpers.isSet)(object.denom) ? String(object.denom) : ""
|
663
|
-
};
|
664
|
-
},
|
665
|
-
toJSON: function toJSON(message) {
|
666
|
-
var obj = {};
|
667
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
668
|
-
return obj;
|
669
|
-
},
|
670
536
|
fromPartial: function fromPartial(object) {
|
671
537
|
var _object$denom2;
|
672
538
|
|
@@ -714,16 +580,6 @@ var QuerySupplyOfResponse = {
|
|
714
580
|
|
715
581
|
return message;
|
716
582
|
},
|
717
|
-
fromJSON: function fromJSON(object) {
|
718
|
-
return {
|
719
|
-
amount: (0, _helpers.isSet)(object.amount) ? _coin.Coin.fromJSON(object.amount) : undefined
|
720
|
-
};
|
721
|
-
},
|
722
|
-
toJSON: function toJSON(message) {
|
723
|
-
var obj = {};
|
724
|
-
message.amount !== undefined && (obj.amount = message.amount ? _coin.Coin.toJSON(message.amount) : undefined);
|
725
|
-
return obj;
|
726
|
-
},
|
727
583
|
fromPartial: function fromPartial(object) {
|
728
584
|
var message = createBaseQuerySupplyOfResponse();
|
729
585
|
message.amount = object.amount !== undefined && object.amount !== null ? _coin.Coin.fromPartial(object.amount) : undefined;
|
@@ -758,13 +614,6 @@ var QueryParamsRequest = {
|
|
758
614
|
|
759
615
|
return message;
|
760
616
|
},
|
761
|
-
fromJSON: function fromJSON(_) {
|
762
|
-
return {};
|
763
|
-
},
|
764
|
-
toJSON: function toJSON(_) {
|
765
|
-
var obj = {};
|
766
|
-
return obj;
|
767
|
-
},
|
768
617
|
fromPartial: function fromPartial(_) {
|
769
618
|
var message = createBaseQueryParamsRequest();
|
770
619
|
return message;
|
@@ -809,16 +658,6 @@ var QueryParamsResponse = {
|
|
809
658
|
|
810
659
|
return message;
|
811
660
|
},
|
812
|
-
fromJSON: function fromJSON(object) {
|
813
|
-
return {
|
814
|
-
params: (0, _helpers.isSet)(object.params) ? _bank.Params.fromJSON(object.params) : undefined
|
815
|
-
};
|
816
|
-
},
|
817
|
-
toJSON: function toJSON(message) {
|
818
|
-
var obj = {};
|
819
|
-
message.params !== undefined && (obj.params = message.params ? _bank.Params.toJSON(message.params) : undefined);
|
820
|
-
return obj;
|
821
|
-
},
|
822
661
|
fromPartial: function fromPartial(object) {
|
823
662
|
var message = createBaseQueryParamsResponse();
|
824
663
|
message.params = object.params !== undefined && object.params !== null ? _bank.Params.fromPartial(object.params) : undefined;
|
@@ -864,16 +703,6 @@ var QueryDenomsMetadataRequest = {
|
|
864
703
|
|
865
704
|
return message;
|
866
705
|
},
|
867
|
-
fromJSON: function fromJSON(object) {
|
868
|
-
return {
|
869
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageRequest.fromJSON(object.pagination) : undefined
|
870
|
-
};
|
871
|
-
},
|
872
|
-
toJSON: function toJSON(message) {
|
873
|
-
var obj = {};
|
874
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageRequest.toJSON(message.pagination) : undefined);
|
875
|
-
return obj;
|
876
|
-
},
|
877
706
|
fromPartial: function fromPartial(object) {
|
878
707
|
var message = createBaseQueryDenomsMetadataRequest();
|
879
708
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? _pagination.PageRequest.fromPartial(object.pagination) : undefined;
|
@@ -939,28 +768,6 @@ var QueryDenomsMetadataResponse = {
|
|
939
768
|
|
940
769
|
return message;
|
941
770
|
},
|
942
|
-
fromJSON: function fromJSON(object) {
|
943
|
-
return {
|
944
|
-
metadatas: Array.isArray(object === null || object === void 0 ? void 0 : object.metadatas) ? object.metadatas.map(function (e) {
|
945
|
-
return _bank.Metadata.fromJSON(e);
|
946
|
-
}) : [],
|
947
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageResponse.fromJSON(object.pagination) : undefined
|
948
|
-
};
|
949
|
-
},
|
950
|
-
toJSON: function toJSON(message) {
|
951
|
-
var obj = {};
|
952
|
-
|
953
|
-
if (message.metadatas) {
|
954
|
-
obj.metadatas = message.metadatas.map(function (e) {
|
955
|
-
return e ? _bank.Metadata.toJSON(e) : undefined;
|
956
|
-
});
|
957
|
-
} else {
|
958
|
-
obj.metadatas = [];
|
959
|
-
}
|
960
|
-
|
961
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageResponse.toJSON(message.pagination) : undefined);
|
962
|
-
return obj;
|
963
|
-
},
|
964
771
|
fromPartial: function fromPartial(object) {
|
965
772
|
var _object$metadatas;
|
966
773
|
|
@@ -1011,16 +818,6 @@ var QueryDenomMetadataRequest = {
|
|
1011
818
|
|
1012
819
|
return message;
|
1013
820
|
},
|
1014
|
-
fromJSON: function fromJSON(object) {
|
1015
|
-
return {
|
1016
|
-
denom: (0, _helpers.isSet)(object.denom) ? String(object.denom) : ""
|
1017
|
-
};
|
1018
|
-
},
|
1019
|
-
toJSON: function toJSON(message) {
|
1020
|
-
var obj = {};
|
1021
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
1022
|
-
return obj;
|
1023
|
-
},
|
1024
821
|
fromPartial: function fromPartial(object) {
|
1025
822
|
var _object$denom3;
|
1026
823
|
|
@@ -1068,16 +865,6 @@ var QueryDenomMetadataResponse = {
|
|
1068
865
|
|
1069
866
|
return message;
|
1070
867
|
},
|
1071
|
-
fromJSON: function fromJSON(object) {
|
1072
|
-
return {
|
1073
|
-
metadata: (0, _helpers.isSet)(object.metadata) ? _bank.Metadata.fromJSON(object.metadata) : undefined
|
1074
|
-
};
|
1075
|
-
},
|
1076
|
-
toJSON: function toJSON(message) {
|
1077
|
-
var obj = {};
|
1078
|
-
message.metadata !== undefined && (obj.metadata = message.metadata ? _bank.Metadata.toJSON(message.metadata) : undefined);
|
1079
|
-
return obj;
|
1080
|
-
},
|
1081
868
|
fromPartial: function fromPartial(object) {
|
1082
869
|
var message = createBaseQueryDenomMetadataResponse();
|
1083
870
|
message.metadata = object.metadata !== undefined && object.metadata !== null ? _bank.Metadata.fromPartial(object.metadata) : undefined;
|
@@ -1132,18 +919,6 @@ var QueryDenomOwnersRequest = {
|
|
1132
919
|
|
1133
920
|
return message;
|
1134
921
|
},
|
1135
|
-
fromJSON: function fromJSON(object) {
|
1136
|
-
return {
|
1137
|
-
denom: (0, _helpers.isSet)(object.denom) ? String(object.denom) : "",
|
1138
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageRequest.fromJSON(object.pagination) : undefined
|
1139
|
-
};
|
1140
|
-
},
|
1141
|
-
toJSON: function toJSON(message) {
|
1142
|
-
var obj = {};
|
1143
|
-
message.denom !== undefined && (obj.denom = message.denom);
|
1144
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageRequest.toJSON(message.pagination) : undefined);
|
1145
|
-
return obj;
|
1146
|
-
},
|
1147
922
|
fromPartial: function fromPartial(object) {
|
1148
923
|
var _object$denom4;
|
1149
924
|
|
@@ -1201,18 +976,6 @@ var DenomOwner = {
|
|
1201
976
|
|
1202
977
|
return message;
|
1203
978
|
},
|
1204
|
-
fromJSON: function fromJSON(object) {
|
1205
|
-
return {
|
1206
|
-
address: (0, _helpers.isSet)(object.address) ? String(object.address) : "",
|
1207
|
-
balance: (0, _helpers.isSet)(object.balance) ? _coin.Coin.fromJSON(object.balance) : undefined
|
1208
|
-
};
|
1209
|
-
},
|
1210
|
-
toJSON: function toJSON(message) {
|
1211
|
-
var obj = {};
|
1212
|
-
message.address !== undefined && (obj.address = message.address);
|
1213
|
-
message.balance !== undefined && (obj.balance = message.balance ? _coin.Coin.toJSON(message.balance) : undefined);
|
1214
|
-
return obj;
|
1215
|
-
},
|
1216
979
|
fromPartial: function fromPartial(object) {
|
1217
980
|
var _object$address4;
|
1218
981
|
|
@@ -1226,7 +989,7 @@ exports.DenomOwner = DenomOwner;
|
|
1226
989
|
|
1227
990
|
function createBaseQueryDenomOwnersResponse() {
|
1228
991
|
return {
|
1229
|
-
|
992
|
+
denomOwners: [],
|
1230
993
|
pagination: undefined
|
1231
994
|
};
|
1232
995
|
}
|
@@ -1235,7 +998,7 @@ var QueryDenomOwnersResponse = {
|
|
1235
998
|
encode: function encode(message) {
|
1236
999
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
1237
1000
|
|
1238
|
-
var _iterator5 = _createForOfIteratorHelper(message.
|
1001
|
+
var _iterator5 = _createForOfIteratorHelper(message.denomOwners),
|
1239
1002
|
_step5;
|
1240
1003
|
|
1241
1004
|
try {
|
@@ -1265,7 +1028,7 @@ var QueryDenomOwnersResponse = {
|
|
1265
1028
|
|
1266
1029
|
switch (tag >>> 3) {
|
1267
1030
|
case 1:
|
1268
|
-
message.
|
1031
|
+
message.denomOwners.push(DenomOwner.decode(reader, reader.uint32()));
|
1269
1032
|
break;
|
1270
1033
|
|
1271
1034
|
case 2:
|
@@ -1280,33 +1043,11 @@ var QueryDenomOwnersResponse = {
|
|
1280
1043
|
|
1281
1044
|
return message;
|
1282
1045
|
},
|
1283
|
-
fromJSON: function fromJSON(object) {
|
1284
|
-
return {
|
1285
|
-
denom_owners: Array.isArray(object === null || object === void 0 ? void 0 : object.denom_owners) ? object.denom_owners.map(function (e) {
|
1286
|
-
return DenomOwner.fromJSON(e);
|
1287
|
-
}) : [],
|
1288
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageResponse.fromJSON(object.pagination) : undefined
|
1289
|
-
};
|
1290
|
-
},
|
1291
|
-
toJSON: function toJSON(message) {
|
1292
|
-
var obj = {};
|
1293
|
-
|
1294
|
-
if (message.denom_owners) {
|
1295
|
-
obj.denom_owners = message.denom_owners.map(function (e) {
|
1296
|
-
return e ? DenomOwner.toJSON(e) : undefined;
|
1297
|
-
});
|
1298
|
-
} else {
|
1299
|
-
obj.denom_owners = [];
|
1300
|
-
}
|
1301
|
-
|
1302
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageResponse.toJSON(message.pagination) : undefined);
|
1303
|
-
return obj;
|
1304
|
-
},
|
1305
1046
|
fromPartial: function fromPartial(object) {
|
1306
|
-
var _object$
|
1047
|
+
var _object$denomOwners;
|
1307
1048
|
|
1308
1049
|
var message = createBaseQueryDenomOwnersResponse();
|
1309
|
-
message.
|
1050
|
+
message.denomOwners = ((_object$denomOwners = object.denomOwners) === null || _object$denomOwners === void 0 ? void 0 : _object$denomOwners.map(function (e) {
|
1310
1051
|
return DenomOwner.fromPartial(e);
|
1311
1052
|
})) || [];
|
1312
1053
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? _pagination.PageResponse.fromPartial(object.pagination) : undefined;
|
@@ -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.balance = this.balance.bind(this);
|
29
|
+
this.allBalances = this.allBalances.bind(this);
|
30
|
+
this.spendableBalances = this.spendableBalances.bind(this);
|
31
|
+
this.totalSupply = this.totalSupply.bind(this);
|
32
|
+
this.supplyOf = this.supplyOf.bind(this);
|
33
|
+
this.params = this.params.bind(this);
|
34
|
+
this.denomMetadata = this.denomMetadata.bind(this);
|
35
|
+
this.denomsMetadata = this.denomsMetadata.bind(this);
|
36
|
+
this.denomOwners = this.denomOwners.bind(this);
|
43
37
|
}
|
44
38
|
/* Balance queries the balance of a single coin for a single account. */
|
45
39
|
|
@@ -63,7 +57,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
63
57
|
|
64
58
|
endpoint = "cosmos/bank/v1beta1/balances/".concat(params.address, "/by_denom");
|
65
59
|
_context.next = 5;
|
66
|
-
return this.get(endpoint, options);
|
60
|
+
return this.req.get(endpoint, options);
|
67
61
|
|
68
62
|
case 5:
|
69
63
|
return _context.abrupt("return", _context.sent);
|
@@ -103,7 +97,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
103
97
|
|
104
98
|
endpoint = "cosmos/bank/v1beta1/balances/".concat(params.address);
|
105
99
|
_context2.next = 5;
|
106
|
-
return this.get(endpoint, options);
|
100
|
+
return this.req.get(endpoint, options);
|
107
101
|
|
108
102
|
case 5:
|
109
103
|
return _context2.abrupt("return", _context2.sent);
|
@@ -144,7 +138,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
144
138
|
|
145
139
|
endpoint = "cosmos/bank/v1beta1/spendable_balances/".concat(params.address);
|
146
140
|
_context3.next = 5;
|
147
|
-
return this.get(endpoint, options);
|
141
|
+
return this.req.get(endpoint, options);
|
148
142
|
|
149
143
|
case 5:
|
150
144
|
return _context3.abrupt("return", _context3.sent);
|
@@ -190,7 +184,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
190
184
|
|
191
185
|
endpoint = "cosmos/bank/v1beta1/supply";
|
192
186
|
_context4.next = 6;
|
193
|
-
return this.get(endpoint, options);
|
187
|
+
return this.req.get(endpoint, options);
|
194
188
|
|
195
189
|
case 6:
|
196
190
|
return _context4.abrupt("return", _context4.sent);
|
@@ -230,7 +224,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
230
224
|
|
231
225
|
endpoint = "cosmos/bank/v1beta1/supply/by_denom";
|
232
226
|
_context5.next = 5;
|
233
|
-
return this.get(endpoint, options);
|
227
|
+
return this.req.get(endpoint, options);
|
234
228
|
|
235
229
|
case 5:
|
236
230
|
return _context5.abrupt("return", _context5.sent);
|
@@ -266,7 +260,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
266
260
|
_params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
267
261
|
endpoint = "cosmos/bank/v1beta1/params";
|
268
262
|
_context6.next = 4;
|
269
|
-
return this.get(endpoint);
|
263
|
+
return this.req.get(endpoint);
|
270
264
|
|
271
265
|
case 4:
|
272
266
|
return _context6.abrupt("return", _context6.sent);
|
@@ -298,7 +292,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
298
292
|
case 0:
|
299
293
|
endpoint = "cosmos/bank/v1beta1/denoms_metadata/".concat(params.denom);
|
300
294
|
_context7.next = 3;
|
301
|
-
return this.get(endpoint);
|
295
|
+
return this.req.get(endpoint);
|
302
296
|
|
303
297
|
case 3:
|
304
298
|
return _context7.abrupt("return", _context7.sent);
|
@@ -345,7 +339,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
345
339
|
|
346
340
|
endpoint = "cosmos/bank/v1beta1/denoms_metadata";
|
347
341
|
_context8.next = 6;
|
348
|
-
return this.get(endpoint, options);
|
342
|
+
return this.req.get(endpoint, options);
|
349
343
|
|
350
344
|
case 6:
|
351
345
|
return _context8.abrupt("return", _context8.sent);
|
@@ -386,7 +380,7 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
386
380
|
|
387
381
|
endpoint = "cosmos/bank/v1beta1/denom_owners/".concat(params.denom);
|
388
382
|
_context9.next = 5;
|
389
|
-
return this.get(endpoint, options);
|
383
|
+
return this.req.get(endpoint, options);
|
390
384
|
|
391
385
|
case 5:
|
392
386
|
return _context9.abrupt("return", _context9.sent);
|
@@ -407,6 +401,6 @@ var LCDQueryClient = /*#__PURE__*/function (_LCDClient) {
|
|
407
401
|
}()
|
408
402
|
}]);
|
409
403
|
return LCDQueryClient;
|
410
|
-
}(
|
404
|
+
}();
|
411
405
|
|
412
406
|
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); }
|
@@ -71,7 +73,11 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
71
73
|
}
|
72
74
|
}, {
|
73
75
|
key: "totalSupply",
|
74
|
-
value: function totalSupply(
|
76
|
+
value: function totalSupply() {
|
77
|
+
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
78
|
+
pagination: undefined
|
79
|
+
};
|
80
|
+
|
75
81
|
var data = _query.QueryTotalSupplyRequest.encode(request).finish();
|
76
82
|
|
77
83
|
var promise = this.rpc.request("cosmos.bank.v1beta1.Query", "TotalSupply", data);
|
@@ -91,7 +97,9 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
91
97
|
}
|
92
98
|
}, {
|
93
99
|
key: "params",
|
94
|
-
value: function params(
|
100
|
+
value: function params() {
|
101
|
+
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
102
|
+
|
95
103
|
var data = _query.QueryParamsRequest.encode(request).finish();
|
96
104
|
|
97
105
|
var promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Params", data);
|
@@ -111,7 +119,11 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
111
119
|
}
|
112
120
|
}, {
|
113
121
|
key: "denomsMetadata",
|
114
|
-
value: function denomsMetadata(
|
122
|
+
value: function denomsMetadata() {
|
123
|
+
var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
124
|
+
pagination: undefined
|
125
|
+
};
|
126
|
+
|
115
127
|
var data = _query.QueryDenomsMetadataRequest.encode(request).finish();
|
116
128
|
|
117
129
|
var promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomsMetadata", data);
|
@@ -133,4 +145,40 @@ var QueryClientImpl = /*#__PURE__*/function () {
|
|
133
145
|
return QueryClientImpl;
|
134
146
|
}();
|
135
147
|
|
136
|
-
exports.QueryClientImpl = QueryClientImpl;
|
148
|
+
exports.QueryClientImpl = QueryClientImpl;
|
149
|
+
|
150
|
+
var createRpcQueryExtension = function createRpcQueryExtension(base) {
|
151
|
+
var rpc = (0, _stargate.createProtobufRpcClient)(base);
|
152
|
+
var queryService = new QueryClientImpl(rpc);
|
153
|
+
return {
|
154
|
+
balance: function balance(request) {
|
155
|
+
return queryService.balance(request);
|
156
|
+
},
|
157
|
+
allBalances: function allBalances(request) {
|
158
|
+
return queryService.allBalances(request);
|
159
|
+
},
|
160
|
+
spendableBalances: function spendableBalances(request) {
|
161
|
+
return queryService.spendableBalances(request);
|
162
|
+
},
|
163
|
+
totalSupply: function totalSupply(request) {
|
164
|
+
return queryService.totalSupply(request);
|
165
|
+
},
|
166
|
+
supplyOf: function supplyOf(request) {
|
167
|
+
return queryService.supplyOf(request);
|
168
|
+
},
|
169
|
+
params: function params(request) {
|
170
|
+
return queryService.params(request);
|
171
|
+
},
|
172
|
+
denomMetadata: function denomMetadata(request) {
|
173
|
+
return queryService.denomMetadata(request);
|
174
|
+
},
|
175
|
+
denomsMetadata: function denomsMetadata(request) {
|
176
|
+
return queryService.denomsMetadata(request);
|
177
|
+
},
|
178
|
+
denomOwners: function denomOwners(request) {
|
179
|
+
return queryService.denomOwners(request);
|
180
|
+
}
|
181
|
+
};
|
182
|
+
};
|
183
|
+
|
184
|
+
exports.createRpcQueryExtension = createRpcQueryExtension;
|
@@ -8,12 +8,12 @@ var AminoConverter = {
|
|
8
8
|
"/cosmos.bank.v1beta1.MsgSend": {
|
9
9
|
aminoType: "cosmos-sdk/MsgSend",
|
10
10
|
toAmino: function toAmino(_ref) {
|
11
|
-
var
|
12
|
-
|
11
|
+
var fromAddress = _ref.fromAddress,
|
12
|
+
toAddress = _ref.toAddress,
|
13
13
|
amount = _ref.amount;
|
14
14
|
return {
|
15
|
-
from_address:
|
16
|
-
to_address:
|
15
|
+
from_address: fromAddress,
|
16
|
+
to_address: toAddress,
|
17
17
|
amount: amount.map(function (el0) {
|
18
18
|
return {
|
19
19
|
denom: el0.denom,
|
@@ -27,8 +27,8 @@ var AminoConverter = {
|
|
27
27
|
to_address = _ref2.to_address,
|
28
28
|
amount = _ref2.amount;
|
29
29
|
return {
|
30
|
-
|
31
|
-
|
30
|
+
fromAddress: from_address,
|
31
|
+
toAddress: to_address,
|
32
32
|
amount: amount.map(function (el0) {
|
33
33
|
return {
|
34
34
|
denom: el0.denom,
|