juno-network 0.2.2 → 0.2.3
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 +1471 -0
- package/main/codegen/contracts.js +1 -3
- package/main/codegen/cosmos/app/v1alpha1/config.js +172 -0
- package/main/codegen/cosmos/app/v1alpha1/module.js +272 -0
- package/main/codegen/cosmos/app/v1alpha1/query.js +113 -0
- package/main/codegen/cosmos/app/v1alpha1/query.rpc.query.js +48 -0
- package/main/codegen/cosmos/auth/v1beta1/auth.js +323 -0
- package/main/codegen/cosmos/auth/v1beta1/genesis.js +118 -0
- package/main/codegen/cosmos/auth/v1beta1/query.js +827 -0
- package/main/codegen/cosmos/auth/v1beta1/query.lcd.js +317 -0
- package/main/codegen/cosmos/auth/v1beta1/query.rpc.query.js +114 -0
- package/main/codegen/cosmos/authz/v1beta1/authz.js +324 -0
- package/main/codegen/cosmos/authz/v1beta1/event.js +178 -0
- package/main/codegen/cosmos/authz/v1beta1/genesis.js +102 -0
- package/main/codegen/cosmos/authz/v1beta1/query.js +533 -0
- package/main/codegen/cosmos/authz/v1beta1/query.lcd.js +185 -0
- package/main/codegen/cosmos/authz/v1beta1/query.rpc.query.js +70 -0
- package/main/codegen/cosmos/authz/v1beta1/tx.amino.js +96 -0
- package/main/codegen/cosmos/authz/v1beta1/tx.js +439 -0
- package/main/codegen/cosmos/authz/v1beta1/tx.registry.js +130 -0
- package/main/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +70 -0
- package/main/codegen/cosmos/base/abci/v1beta1/abci.js +1128 -0
- package/main/codegen/cosmos/base/kv/v1beta1/kv.js +170 -0
- package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +277 -0
- package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +745 -0
- package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +251 -0
- package/main/codegen/cosmos/base/store/v1beta1/listening.js +109 -0
- package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +1130 -0
- package/main/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.js +103 -0
- package/main/codegen/cosmos/bundle.js +143 -55
- package/main/codegen/cosmos/client.js +34 -2
- package/main/codegen/cosmos/crisis/v1beta1/genesis.js +73 -0
- package/main/codegen/cosmos/crisis/v1beta1/tx.amino.js +32 -0
- package/main/codegen/cosmos/crisis/v1beta1/tx.js +137 -0
- package/main/codegen/cosmos/crisis/v1beta1/tx.registry.js +70 -0
- package/main/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +48 -0
- package/main/codegen/cosmos/evidence/v1beta1/evidence.js +111 -0
- package/main/codegen/cosmos/evidence/v1beta1/genesis.js +102 -0
- package/main/codegen/cosmos/evidence/v1beta1/query.js +285 -0
- package/main/codegen/cosmos/evidence/v1beta1/query.lcd.js +135 -0
- package/main/codegen/cosmos/evidence/v1beta1/query.rpc.query.js +59 -0
- package/main/codegen/cosmos/evidence/v1beta1/tx.amino.js +34 -0
- package/main/codegen/cosmos/evidence/v1beta1/tx.js +144 -0
- package/main/codegen/cosmos/evidence/v1beta1/tx.registry.js +70 -0
- package/main/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +48 -0
- package/main/codegen/cosmos/feegrant/v1beta1/feegrant.js +444 -0
- package/main/codegen/cosmos/feegrant/v1beta1/genesis.js +102 -0
- package/main/codegen/cosmos/feegrant/v1beta1/query.js +472 -0
- package/main/codegen/cosmos/feegrant/v1beta1/query.lcd.js +162 -0
- package/main/codegen/cosmos/feegrant/v1beta1/query.rpc.query.js +70 -0
- package/main/codegen/cosmos/feegrant/v1beta1/tx.amino.js +57 -0
- package/main/codegen/cosmos/feegrant/v1beta1/tx.js +248 -0
- package/main/codegen/cosmos/feegrant/v1beta1/tx.registry.js +100 -0
- package/main/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +59 -0
- package/main/codegen/cosmos/genutil/v1beta1/genesis.js +101 -0
- package/main/codegen/cosmos/lcd.js +168 -33
- package/main/codegen/cosmos/mint/v1beta1/genesis.js +85 -0
- package/main/codegen/cosmos/mint/v1beta1/mint.js +202 -0
- package/main/codegen/cosmos/mint/v1beta1/query.js +307 -0
- package/main/codegen/cosmos/mint/v1beta1/query.lcd.js +155 -0
- package/main/codegen/cosmos/mint/v1beta1/query.rpc.query.js +70 -0
- package/main/codegen/cosmos/nft/v1beta1/event.js +271 -0
- package/main/codegen/cosmos/nft/v1beta1/genesis.js +229 -0
- package/main/codegen/cosmos/nft/v1beta1/nft.js +252 -0
- package/main/codegen/cosmos/nft/v1beta1/query.js +944 -0
- package/main/codegen/cosmos/nft/v1beta1/query.lcd.js +344 -0
- package/main/codegen/cosmos/nft/v1beta1/query.rpc.query.js +114 -0
- package/main/codegen/cosmos/nft/v1beta1/tx.amino.js +36 -0
- package/main/codegen/cosmos/nft/v1beta1/tx.js +149 -0
- package/main/codegen/cosmos/nft/v1beta1/tx.registry.js +70 -0
- package/main/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +48 -0
- package/main/codegen/cosmos/orm/v1/orm.js +332 -0
- package/main/codegen/cosmos/params/v1beta1/params.js +206 -0
- package/main/codegen/cosmos/params/v1beta1/query.js +358 -0
- package/main/codegen/cosmos/params/v1beta1/query.lcd.js +128 -0
- package/main/codegen/cosmos/params/v1beta1/query.rpc.query.js +59 -0
- package/main/codegen/cosmos/rpc.query.js +164 -34
- package/main/codegen/cosmos/rpc.tx.js +137 -33
- package/main/codegen/cosmos/slashing/v1beta1/genesis.js +377 -0
- package/main/codegen/cosmos/slashing/v1beta1/query.js +380 -0
- package/main/codegen/cosmos/slashing/v1beta1/query.lcd.js +171 -0
- package/main/codegen/cosmos/slashing/v1beta1/query.rpc.query.js +70 -0
- package/main/codegen/cosmos/slashing/v1beta1/slashing.js +242 -0
- package/main/codegen/cosmos/slashing/v1beta1/tx.amino.js +24 -0
- package/main/codegen/cosmos/slashing/v1beta1/tx.js +113 -0
- package/main/codegen/cosmos/slashing/v1beta1/tx.registry.js +70 -0
- package/main/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +48 -0
- package/main/codegen/cosmos/upgrade/v1beta1/query.js +577 -0
- package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +238 -0
- package/main/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +92 -0
- package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +64 -0
- package/main/codegen/cosmos/upgrade/v1beta1/tx.js +224 -0
- package/main/codegen/cosmos/upgrade/v1beta1/tx.registry.js +100 -0
- package/main/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +59 -0
- package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +344 -0
- package/main/codegen/cosmos/vesting/v1beta1/tx.amino.js +133 -0
- package/main/codegen/cosmos/vesting/v1beta1/tx.js +494 -0
- package/main/codegen/cosmos/vesting/v1beta1/tx.registry.js +130 -0
- package/main/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +70 -0
- package/main/codegen/cosmos/vesting/v1beta1/vesting.js +570 -0
- package/main/codegen/cosmwasm/bundle.js +10 -10
- package/main/codegen/cosmwasm/lcd.js +177 -42
- package/main/codegen/cosmwasm/rpc.query.js +172 -42
- package/main/codegen/cosmwasm/rpc.tx.js +146 -42
- package/main/codegen/google/api/annotations.js +5 -0
- package/main/codegen/google/api/http.js +369 -0
- package/main/codegen/ibc/bundle.js +36 -24
- package/main/codegen/ibc/client.js +6 -2
- package/main/codegen/ibc/core/connection/v1/connection.js +755 -0
- package/main/codegen/ibc/core/connection/v1/genesis.js +162 -0
- package/main/codegen/ibc/core/connection/v1/query.js +799 -0
- package/main/codegen/ibc/core/connection/v1/query.lcd.js +266 -0
- package/main/codegen/ibc/core/connection/v1/query.rpc.query.js +92 -0
- package/main/codegen/ibc/core/connection/v1/tx.amino.js +274 -0
- package/main/codegen/ibc/core/connection/v1/tx.js +763 -0
- package/main/codegen/ibc/core/connection/v1/tx.registry.js +160 -0
- package/main/codegen/ibc/core/connection/v1/tx.rpc.msg.js +81 -0
- package/main/codegen/ibc/core/port/v1/query.js +192 -0
- package/main/codegen/ibc/core/port/v1/query.rpc.query.js +48 -0
- package/main/codegen/ibc/core/types/v1/genesis.js +101 -0
- package/main/codegen/ibc/lcd.js +212 -62
- package/main/codegen/ibc/rpc.query.js +218 -62
- package/main/codegen/ibc/rpc.tx.js +179 -62
- package/main/codegen/juno/bundle.js +6 -6
- package/main/codegen/juno/lcd.js +175 -40
- package/main/codegen/juno/rpc.query.js +170 -40
- package/module/codegen/confio/proofs.js +1371 -0
- package/module/codegen/contracts.js +1 -2
- package/module/codegen/cosmos/app/v1alpha1/config.js +148 -0
- package/module/codegen/cosmos/app/v1alpha1/module.js +227 -0
- package/module/codegen/cosmos/app/v1alpha1/query.js +104 -0
- package/module/codegen/cosmos/app/v1alpha1/query.rpc.query.js +20 -0
- package/module/codegen/cosmos/auth/v1beta1/auth.js +297 -0
- package/module/codegen/cosmos/auth/v1beta1/genesis.js +82 -0
- package/module/codegen/cosmos/auth/v1beta1/query.js +806 -0
- package/module/codegen/cosmos/auth/v1beta1/query.lcd.js +89 -0
- package/module/codegen/cosmos/auth/v1beta1/query.rpc.query.js +62 -0
- package/module/codegen/cosmos/authz/v1beta1/authz.js +298 -0
- package/module/codegen/cosmos/authz/v1beta1/event.js +169 -0
- package/module/codegen/cosmos/authz/v1beta1/genesis.js +67 -0
- package/module/codegen/cosmos/authz/v1beta1/query.js +473 -0
- package/module/codegen/cosmos/authz/v1beta1/query.lcd.js +73 -0
- package/module/codegen/cosmos/authz/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.amino.js +91 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.js +402 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.registry.js +124 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +34 -0
- package/module/codegen/cosmos/base/abci/v1beta1/abci.js +982 -0
- package/module/codegen/cosmos/base/kv/v1beta1/kv.js +139 -0
- package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +235 -0
- package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +712 -0
- package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +225 -0
- package/module/codegen/cosmos/base/store/v1beta1/listening.js +104 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +1091 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.js +55 -0
- package/module/codegen/cosmos/bundle.js +99 -55
- package/module/codegen/cosmos/client.js +18 -2
- package/module/codegen/cosmos/crisis/v1beta1/genesis.js +61 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.amino.js +27 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.js +129 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/evidence/v1beta1/evidence.js +102 -0
- package/module/codegen/cosmos/evidence/v1beta1/genesis.js +67 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.js +255 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.lcd.js +44 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.rpc.query.js +27 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.amino.js +29 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.js +137 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/feegrant/v1beta1/feegrant.js +365 -0
- package/module/codegen/cosmos/feegrant/v1beta1/genesis.js +67 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.js +429 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.lcd.js +50 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.amino.js +54 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.js +247 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.registry.js +89 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/genutil/v1beta1/genesis.js +68 -0
- package/module/codegen/cosmos/lcd.js +45 -0
- package/module/codegen/cosmos/mint/v1beta1/genesis.js +73 -0
- package/module/codegen/cosmos/mint/v1beta1/mint.js +193 -0
- package/module/codegen/cosmos/mint/v1beta1/query.js +308 -0
- package/module/codegen/cosmos/mint/v1beta1/query.lcd.js +32 -0
- package/module/codegen/cosmos/mint/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/nft/v1beta1/event.js +264 -0
- package/module/codegen/cosmos/nft/v1beta1/genesis.js +163 -0
- package/module/codegen/cosmos/nft/v1beta1/nft.js +242 -0
- package/module/codegen/cosmos/nft/v1beta1/query.js +917 -0
- package/module/codegen/cosmos/nft/v1beta1/query.lcd.js +128 -0
- package/module/codegen/cosmos/nft/v1beta1/query.rpc.query.js +62 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.amino.js +31 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.js +141 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/orm/v1/orm.js +305 -0
- package/module/codegen/cosmos/params/v1beta1/params.js +175 -0
- package/module/codegen/cosmos/params/v1beta1/query.js +317 -0
- package/module/codegen/cosmos/params/v1beta1/query.lcd.js +38 -0
- package/module/codegen/cosmos/params/v1beta1/query.rpc.query.js +27 -0
- package/module/codegen/cosmos/rpc.query.js +30 -0
- package/module/codegen/cosmos/rpc.tx.js +24 -0
- package/module/codegen/cosmos/slashing/v1beta1/genesis.js +317 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.js +355 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.lcd.js +51 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/slashing/v1beta1/slashing.js +234 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.amino.js +19 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.js +105 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.js +565 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.lcd.js +69 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +48 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.amino.js +59 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.js +224 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.registry.js +89 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/upgrade/v1beta1/upgrade.js +337 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.amino.js +114 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.js +440 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.registry.js +124 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +34 -0
- package/module/codegen/cosmos/vesting/v1beta1/vesting.js +480 -0
- package/module/codegen/cosmwasm/bundle.js +10 -10
- package/module/codegen/cosmwasm/lcd.js +45 -0
- package/module/codegen/cosmwasm/rpc.query.js +30 -0
- package/module/codegen/cosmwasm/rpc.tx.js +24 -0
- package/module/codegen/google/api/annotations.js +1 -0
- package/module/codegen/google/api/http.js +328 -0
- package/module/codegen/ibc/bundle.js +30 -24
- package/module/codegen/ibc/client.js +4 -2
- package/module/codegen/ibc/core/connection/v1/connection.js +663 -0
- package/module/codegen/ibc/core/connection/v1/genesis.js +110 -0
- package/module/codegen/ibc/core/connection/v1/query.js +766 -0
- package/module/codegen/ibc/core/connection/v1/query.lcd.js +100 -0
- package/module/codegen/ibc/core/connection/v1/query.rpc.query.js +48 -0
- package/module/codegen/ibc/core/connection/v1/tx.amino.js +269 -0
- package/module/codegen/ibc/core/connection/v1/tx.js +747 -0
- package/module/codegen/ibc/core/connection/v1/tx.registry.js +159 -0
- package/module/codegen/ibc/core/connection/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/ibc/core/port/v1/query.js +182 -0
- package/module/codegen/ibc/core/port/v1/query.rpc.query.js +20 -0
- package/module/codegen/ibc/core/types/v1/genesis.js +87 -0
- package/module/codegen/ibc/lcd.js +50 -0
- package/module/codegen/ibc/rpc.query.js +36 -0
- package/module/codegen/ibc/rpc.tx.js +27 -0
- package/module/codegen/juno/bundle.js +6 -6
- package/module/codegen/juno/lcd.js +45 -0
- package/module/codegen/juno/rpc.query.js +30 -0
- package/package.json +2 -2
- package/main/codegen/JunoSwap.react-query.js +0 -152
- package/module/codegen/JunoSwap.react-query.js +0 -119
@@ -0,0 +1,565 @@
|
|
1
|
+
import { Plan, ModuleVersion } from "./upgrade";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { isSet, Long, bytesFromBase64, base64FromBytes } from "@osmonauts/helpers";
|
4
|
+
/**
|
5
|
+
* QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
|
6
|
+
* method.
|
7
|
+
*/
|
8
|
+
|
9
|
+
function createBaseQueryCurrentPlanRequest() {
|
10
|
+
return {};
|
11
|
+
}
|
12
|
+
|
13
|
+
export const QueryCurrentPlanRequest = {
|
14
|
+
encode(_, writer = _m0.Writer.create()) {
|
15
|
+
return writer;
|
16
|
+
},
|
17
|
+
|
18
|
+
decode(input, length) {
|
19
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
20
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
21
|
+
const message = createBaseQueryCurrentPlanRequest();
|
22
|
+
|
23
|
+
while (reader.pos < end) {
|
24
|
+
const tag = reader.uint32();
|
25
|
+
|
26
|
+
switch (tag >>> 3) {
|
27
|
+
default:
|
28
|
+
reader.skipType(tag & 7);
|
29
|
+
break;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
return message;
|
34
|
+
},
|
35
|
+
|
36
|
+
fromJSON(_) {
|
37
|
+
return {};
|
38
|
+
},
|
39
|
+
|
40
|
+
toJSON(_) {
|
41
|
+
const obj = {};
|
42
|
+
return obj;
|
43
|
+
},
|
44
|
+
|
45
|
+
fromPartial(_) {
|
46
|
+
const message = createBaseQueryCurrentPlanRequest();
|
47
|
+
return message;
|
48
|
+
}
|
49
|
+
|
50
|
+
};
|
51
|
+
|
52
|
+
function createBaseQueryCurrentPlanResponse() {
|
53
|
+
return {
|
54
|
+
plan: undefined
|
55
|
+
};
|
56
|
+
}
|
57
|
+
|
58
|
+
export const QueryCurrentPlanResponse = {
|
59
|
+
encode(message, writer = _m0.Writer.create()) {
|
60
|
+
if (message.plan !== undefined) {
|
61
|
+
Plan.encode(message.plan, writer.uint32(10).fork()).ldelim();
|
62
|
+
}
|
63
|
+
|
64
|
+
return writer;
|
65
|
+
},
|
66
|
+
|
67
|
+
decode(input, length) {
|
68
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
69
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
70
|
+
const message = createBaseQueryCurrentPlanResponse();
|
71
|
+
|
72
|
+
while (reader.pos < end) {
|
73
|
+
const tag = reader.uint32();
|
74
|
+
|
75
|
+
switch (tag >>> 3) {
|
76
|
+
case 1:
|
77
|
+
message.plan = Plan.decode(reader, reader.uint32());
|
78
|
+
break;
|
79
|
+
|
80
|
+
default:
|
81
|
+
reader.skipType(tag & 7);
|
82
|
+
break;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
return message;
|
87
|
+
},
|
88
|
+
|
89
|
+
fromJSON(object) {
|
90
|
+
return {
|
91
|
+
plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined
|
92
|
+
};
|
93
|
+
},
|
94
|
+
|
95
|
+
toJSON(message) {
|
96
|
+
const obj = {};
|
97
|
+
message.plan !== undefined && (obj.plan = message.plan ? Plan.toJSON(message.plan) : undefined);
|
98
|
+
return obj;
|
99
|
+
},
|
100
|
+
|
101
|
+
fromPartial(object) {
|
102
|
+
const message = createBaseQueryCurrentPlanResponse();
|
103
|
+
message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined;
|
104
|
+
return message;
|
105
|
+
}
|
106
|
+
|
107
|
+
};
|
108
|
+
|
109
|
+
function createBaseQueryAppliedPlanRequest() {
|
110
|
+
return {
|
111
|
+
name: ""
|
112
|
+
};
|
113
|
+
}
|
114
|
+
|
115
|
+
export const QueryAppliedPlanRequest = {
|
116
|
+
encode(message, writer = _m0.Writer.create()) {
|
117
|
+
if (message.name !== "") {
|
118
|
+
writer.uint32(10).string(message.name);
|
119
|
+
}
|
120
|
+
|
121
|
+
return writer;
|
122
|
+
},
|
123
|
+
|
124
|
+
decode(input, length) {
|
125
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
126
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
127
|
+
const message = createBaseQueryAppliedPlanRequest();
|
128
|
+
|
129
|
+
while (reader.pos < end) {
|
130
|
+
const tag = reader.uint32();
|
131
|
+
|
132
|
+
switch (tag >>> 3) {
|
133
|
+
case 1:
|
134
|
+
message.name = reader.string();
|
135
|
+
break;
|
136
|
+
|
137
|
+
default:
|
138
|
+
reader.skipType(tag & 7);
|
139
|
+
break;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
return message;
|
144
|
+
},
|
145
|
+
|
146
|
+
fromJSON(object) {
|
147
|
+
return {
|
148
|
+
name: isSet(object.name) ? String(object.name) : ""
|
149
|
+
};
|
150
|
+
},
|
151
|
+
|
152
|
+
toJSON(message) {
|
153
|
+
const obj = {};
|
154
|
+
message.name !== undefined && (obj.name = message.name);
|
155
|
+
return obj;
|
156
|
+
},
|
157
|
+
|
158
|
+
fromPartial(object) {
|
159
|
+
var _object$name;
|
160
|
+
|
161
|
+
const message = createBaseQueryAppliedPlanRequest();
|
162
|
+
message.name = (_object$name = object.name) !== null && _object$name !== void 0 ? _object$name : "";
|
163
|
+
return message;
|
164
|
+
}
|
165
|
+
|
166
|
+
};
|
167
|
+
|
168
|
+
function createBaseQueryAppliedPlanResponse() {
|
169
|
+
return {
|
170
|
+
height: Long.ZERO
|
171
|
+
};
|
172
|
+
}
|
173
|
+
|
174
|
+
export const QueryAppliedPlanResponse = {
|
175
|
+
encode(message, writer = _m0.Writer.create()) {
|
176
|
+
if (!message.height.isZero()) {
|
177
|
+
writer.uint32(8).int64(message.height);
|
178
|
+
}
|
179
|
+
|
180
|
+
return writer;
|
181
|
+
},
|
182
|
+
|
183
|
+
decode(input, length) {
|
184
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
185
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
186
|
+
const message = createBaseQueryAppliedPlanResponse();
|
187
|
+
|
188
|
+
while (reader.pos < end) {
|
189
|
+
const tag = reader.uint32();
|
190
|
+
|
191
|
+
switch (tag >>> 3) {
|
192
|
+
case 1:
|
193
|
+
message.height = reader.int64();
|
194
|
+
break;
|
195
|
+
|
196
|
+
default:
|
197
|
+
reader.skipType(tag & 7);
|
198
|
+
break;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
return message;
|
203
|
+
},
|
204
|
+
|
205
|
+
fromJSON(object) {
|
206
|
+
return {
|
207
|
+
height: isSet(object.height) ? Long.fromString(object.height) : Long.ZERO
|
208
|
+
};
|
209
|
+
},
|
210
|
+
|
211
|
+
toJSON(message) {
|
212
|
+
const obj = {};
|
213
|
+
message.height !== undefined && (obj.height = (message.height || Long.ZERO).toString());
|
214
|
+
return obj;
|
215
|
+
},
|
216
|
+
|
217
|
+
fromPartial(object) {
|
218
|
+
const message = createBaseQueryAppliedPlanResponse();
|
219
|
+
message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.ZERO;
|
220
|
+
return message;
|
221
|
+
}
|
222
|
+
|
223
|
+
};
|
224
|
+
|
225
|
+
function createBaseQueryUpgradedConsensusStateRequest() {
|
226
|
+
return {
|
227
|
+
lastHeight: Long.ZERO
|
228
|
+
};
|
229
|
+
}
|
230
|
+
|
231
|
+
export const QueryUpgradedConsensusStateRequest = {
|
232
|
+
encode(message, writer = _m0.Writer.create()) {
|
233
|
+
if (!message.lastHeight.isZero()) {
|
234
|
+
writer.uint32(8).int64(message.lastHeight);
|
235
|
+
}
|
236
|
+
|
237
|
+
return writer;
|
238
|
+
},
|
239
|
+
|
240
|
+
decode(input, length) {
|
241
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
242
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
243
|
+
const message = createBaseQueryUpgradedConsensusStateRequest();
|
244
|
+
|
245
|
+
while (reader.pos < end) {
|
246
|
+
const tag = reader.uint32();
|
247
|
+
|
248
|
+
switch (tag >>> 3) {
|
249
|
+
case 1:
|
250
|
+
message.lastHeight = reader.int64();
|
251
|
+
break;
|
252
|
+
|
253
|
+
default:
|
254
|
+
reader.skipType(tag & 7);
|
255
|
+
break;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
return message;
|
260
|
+
},
|
261
|
+
|
262
|
+
fromJSON(object) {
|
263
|
+
return {
|
264
|
+
lastHeight: isSet(object.lastHeight) ? Long.fromString(object.lastHeight) : Long.ZERO
|
265
|
+
};
|
266
|
+
},
|
267
|
+
|
268
|
+
toJSON(message) {
|
269
|
+
const obj = {};
|
270
|
+
message.lastHeight !== undefined && (obj.lastHeight = (message.lastHeight || Long.ZERO).toString());
|
271
|
+
return obj;
|
272
|
+
},
|
273
|
+
|
274
|
+
fromPartial(object) {
|
275
|
+
const message = createBaseQueryUpgradedConsensusStateRequest();
|
276
|
+
message.lastHeight = object.lastHeight !== undefined && object.lastHeight !== null ? Long.fromValue(object.lastHeight) : Long.ZERO;
|
277
|
+
return message;
|
278
|
+
}
|
279
|
+
|
280
|
+
};
|
281
|
+
|
282
|
+
function createBaseQueryUpgradedConsensusStateResponse() {
|
283
|
+
return {
|
284
|
+
upgradedConsensusState: new Uint8Array()
|
285
|
+
};
|
286
|
+
}
|
287
|
+
|
288
|
+
export const QueryUpgradedConsensusStateResponse = {
|
289
|
+
encode(message, writer = _m0.Writer.create()) {
|
290
|
+
if (message.upgradedConsensusState.length !== 0) {
|
291
|
+
writer.uint32(18).bytes(message.upgradedConsensusState);
|
292
|
+
}
|
293
|
+
|
294
|
+
return writer;
|
295
|
+
},
|
296
|
+
|
297
|
+
decode(input, length) {
|
298
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
299
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
300
|
+
const message = createBaseQueryUpgradedConsensusStateResponse();
|
301
|
+
|
302
|
+
while (reader.pos < end) {
|
303
|
+
const tag = reader.uint32();
|
304
|
+
|
305
|
+
switch (tag >>> 3) {
|
306
|
+
case 2:
|
307
|
+
message.upgradedConsensusState = reader.bytes();
|
308
|
+
break;
|
309
|
+
|
310
|
+
default:
|
311
|
+
reader.skipType(tag & 7);
|
312
|
+
break;
|
313
|
+
}
|
314
|
+
}
|
315
|
+
|
316
|
+
return message;
|
317
|
+
},
|
318
|
+
|
319
|
+
fromJSON(object) {
|
320
|
+
return {
|
321
|
+
upgradedConsensusState: isSet(object.upgradedConsensusState) ? bytesFromBase64(object.upgradedConsensusState) : new Uint8Array()
|
322
|
+
};
|
323
|
+
},
|
324
|
+
|
325
|
+
toJSON(message) {
|
326
|
+
const obj = {};
|
327
|
+
message.upgradedConsensusState !== undefined && (obj.upgradedConsensusState = base64FromBytes(message.upgradedConsensusState !== undefined ? message.upgradedConsensusState : new Uint8Array()));
|
328
|
+
return obj;
|
329
|
+
},
|
330
|
+
|
331
|
+
fromPartial(object) {
|
332
|
+
var _object$upgradedConse;
|
333
|
+
|
334
|
+
const message = createBaseQueryUpgradedConsensusStateResponse();
|
335
|
+
message.upgradedConsensusState = (_object$upgradedConse = object.upgradedConsensusState) !== null && _object$upgradedConse !== void 0 ? _object$upgradedConse : new Uint8Array();
|
336
|
+
return message;
|
337
|
+
}
|
338
|
+
|
339
|
+
};
|
340
|
+
|
341
|
+
function createBaseQueryModuleVersionsRequest() {
|
342
|
+
return {
|
343
|
+
moduleName: ""
|
344
|
+
};
|
345
|
+
}
|
346
|
+
|
347
|
+
export const QueryModuleVersionsRequest = {
|
348
|
+
encode(message, writer = _m0.Writer.create()) {
|
349
|
+
if (message.moduleName !== "") {
|
350
|
+
writer.uint32(10).string(message.moduleName);
|
351
|
+
}
|
352
|
+
|
353
|
+
return writer;
|
354
|
+
},
|
355
|
+
|
356
|
+
decode(input, length) {
|
357
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
358
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
359
|
+
const message = createBaseQueryModuleVersionsRequest();
|
360
|
+
|
361
|
+
while (reader.pos < end) {
|
362
|
+
const tag = reader.uint32();
|
363
|
+
|
364
|
+
switch (tag >>> 3) {
|
365
|
+
case 1:
|
366
|
+
message.moduleName = reader.string();
|
367
|
+
break;
|
368
|
+
|
369
|
+
default:
|
370
|
+
reader.skipType(tag & 7);
|
371
|
+
break;
|
372
|
+
}
|
373
|
+
}
|
374
|
+
|
375
|
+
return message;
|
376
|
+
},
|
377
|
+
|
378
|
+
fromJSON(object) {
|
379
|
+
return {
|
380
|
+
moduleName: isSet(object.moduleName) ? String(object.moduleName) : ""
|
381
|
+
};
|
382
|
+
},
|
383
|
+
|
384
|
+
toJSON(message) {
|
385
|
+
const obj = {};
|
386
|
+
message.moduleName !== undefined && (obj.moduleName = message.moduleName);
|
387
|
+
return obj;
|
388
|
+
},
|
389
|
+
|
390
|
+
fromPartial(object) {
|
391
|
+
var _object$moduleName;
|
392
|
+
|
393
|
+
const message = createBaseQueryModuleVersionsRequest();
|
394
|
+
message.moduleName = (_object$moduleName = object.moduleName) !== null && _object$moduleName !== void 0 ? _object$moduleName : "";
|
395
|
+
return message;
|
396
|
+
}
|
397
|
+
|
398
|
+
};
|
399
|
+
|
400
|
+
function createBaseQueryModuleVersionsResponse() {
|
401
|
+
return {
|
402
|
+
moduleVersions: []
|
403
|
+
};
|
404
|
+
}
|
405
|
+
|
406
|
+
export const QueryModuleVersionsResponse = {
|
407
|
+
encode(message, writer = _m0.Writer.create()) {
|
408
|
+
for (const v of message.moduleVersions) {
|
409
|
+
ModuleVersion.encode(v, writer.uint32(10).fork()).ldelim();
|
410
|
+
}
|
411
|
+
|
412
|
+
return writer;
|
413
|
+
},
|
414
|
+
|
415
|
+
decode(input, length) {
|
416
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
417
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
418
|
+
const message = createBaseQueryModuleVersionsResponse();
|
419
|
+
|
420
|
+
while (reader.pos < end) {
|
421
|
+
const tag = reader.uint32();
|
422
|
+
|
423
|
+
switch (tag >>> 3) {
|
424
|
+
case 1:
|
425
|
+
message.moduleVersions.push(ModuleVersion.decode(reader, reader.uint32()));
|
426
|
+
break;
|
427
|
+
|
428
|
+
default:
|
429
|
+
reader.skipType(tag & 7);
|
430
|
+
break;
|
431
|
+
}
|
432
|
+
}
|
433
|
+
|
434
|
+
return message;
|
435
|
+
},
|
436
|
+
|
437
|
+
fromJSON(object) {
|
438
|
+
return {
|
439
|
+
moduleVersions: Array.isArray(object === null || object === void 0 ? void 0 : object.moduleVersions) ? object.moduleVersions.map(e => ModuleVersion.fromJSON(e)) : []
|
440
|
+
};
|
441
|
+
},
|
442
|
+
|
443
|
+
toJSON(message) {
|
444
|
+
const obj = {};
|
445
|
+
|
446
|
+
if (message.moduleVersions) {
|
447
|
+
obj.moduleVersions = message.moduleVersions.map(e => e ? ModuleVersion.toJSON(e) : undefined);
|
448
|
+
} else {
|
449
|
+
obj.moduleVersions = [];
|
450
|
+
}
|
451
|
+
|
452
|
+
return obj;
|
453
|
+
},
|
454
|
+
|
455
|
+
fromPartial(object) {
|
456
|
+
var _object$moduleVersion;
|
457
|
+
|
458
|
+
const message = createBaseQueryModuleVersionsResponse();
|
459
|
+
message.moduleVersions = ((_object$moduleVersion = object.moduleVersions) === null || _object$moduleVersion === void 0 ? void 0 : _object$moduleVersion.map(e => ModuleVersion.fromPartial(e))) || [];
|
460
|
+
return message;
|
461
|
+
}
|
462
|
+
|
463
|
+
};
|
464
|
+
|
465
|
+
function createBaseQueryAuthorityRequest() {
|
466
|
+
return {};
|
467
|
+
}
|
468
|
+
|
469
|
+
export const QueryAuthorityRequest = {
|
470
|
+
encode(_, writer = _m0.Writer.create()) {
|
471
|
+
return writer;
|
472
|
+
},
|
473
|
+
|
474
|
+
decode(input, length) {
|
475
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
476
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
477
|
+
const message = createBaseQueryAuthorityRequest();
|
478
|
+
|
479
|
+
while (reader.pos < end) {
|
480
|
+
const tag = reader.uint32();
|
481
|
+
|
482
|
+
switch (tag >>> 3) {
|
483
|
+
default:
|
484
|
+
reader.skipType(tag & 7);
|
485
|
+
break;
|
486
|
+
}
|
487
|
+
}
|
488
|
+
|
489
|
+
return message;
|
490
|
+
},
|
491
|
+
|
492
|
+
fromJSON(_) {
|
493
|
+
return {};
|
494
|
+
},
|
495
|
+
|
496
|
+
toJSON(_) {
|
497
|
+
const obj = {};
|
498
|
+
return obj;
|
499
|
+
},
|
500
|
+
|
501
|
+
fromPartial(_) {
|
502
|
+
const message = createBaseQueryAuthorityRequest();
|
503
|
+
return message;
|
504
|
+
}
|
505
|
+
|
506
|
+
};
|
507
|
+
|
508
|
+
function createBaseQueryAuthorityResponse() {
|
509
|
+
return {
|
510
|
+
address: ""
|
511
|
+
};
|
512
|
+
}
|
513
|
+
|
514
|
+
export const QueryAuthorityResponse = {
|
515
|
+
encode(message, writer = _m0.Writer.create()) {
|
516
|
+
if (message.address !== "") {
|
517
|
+
writer.uint32(10).string(message.address);
|
518
|
+
}
|
519
|
+
|
520
|
+
return writer;
|
521
|
+
},
|
522
|
+
|
523
|
+
decode(input, length) {
|
524
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
525
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
526
|
+
const message = createBaseQueryAuthorityResponse();
|
527
|
+
|
528
|
+
while (reader.pos < end) {
|
529
|
+
const tag = reader.uint32();
|
530
|
+
|
531
|
+
switch (tag >>> 3) {
|
532
|
+
case 1:
|
533
|
+
message.address = reader.string();
|
534
|
+
break;
|
535
|
+
|
536
|
+
default:
|
537
|
+
reader.skipType(tag & 7);
|
538
|
+
break;
|
539
|
+
}
|
540
|
+
}
|
541
|
+
|
542
|
+
return message;
|
543
|
+
},
|
544
|
+
|
545
|
+
fromJSON(object) {
|
546
|
+
return {
|
547
|
+
address: isSet(object.address) ? String(object.address) : ""
|
548
|
+
};
|
549
|
+
},
|
550
|
+
|
551
|
+
toJSON(message) {
|
552
|
+
const obj = {};
|
553
|
+
message.address !== undefined && (obj.address = message.address);
|
554
|
+
return obj;
|
555
|
+
},
|
556
|
+
|
557
|
+
fromPartial(object) {
|
558
|
+
var _object$address;
|
559
|
+
|
560
|
+
const message = createBaseQueryAuthorityResponse();
|
561
|
+
message.address = (_object$address = object.address) !== null && _object$address !== void 0 ? _object$address : "";
|
562
|
+
return message;
|
563
|
+
}
|
564
|
+
|
565
|
+
};
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { LCDClient } from "@osmonauts/lcd";
|
2
|
+
export class LCDQueryClient extends LCDClient {
|
3
|
+
constructor({
|
4
|
+
restEndpoint
|
5
|
+
}) {
|
6
|
+
super({
|
7
|
+
restEndpoint
|
8
|
+
});
|
9
|
+
}
|
10
|
+
/* CurrentPlan queries the current upgrade plan. */
|
11
|
+
|
12
|
+
|
13
|
+
async currentPlan(_params = {}) {
|
14
|
+
const endpoint = `cosmos/upgrade/v1beta1/current_plan`;
|
15
|
+
return await this.request(endpoint);
|
16
|
+
}
|
17
|
+
/* AppliedPlan queries a previously applied upgrade plan by its name. */
|
18
|
+
|
19
|
+
|
20
|
+
async appliedPlan(params) {
|
21
|
+
const endpoint = `cosmos/upgrade/v1beta1/applied_plan/${params.name}`;
|
22
|
+
return await this.request(endpoint);
|
23
|
+
}
|
24
|
+
/* UpgradedConsensusState queries the consensus state that will serve
|
25
|
+
as a trusted kernel for the next version of this chain. It will only be
|
26
|
+
stored at the last height of this chain.
|
27
|
+
UpgradedConsensusState RPC not supported with legacy querier
|
28
|
+
This rpc is deprecated now that IBC has its own replacement
|
29
|
+
(https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) */
|
30
|
+
|
31
|
+
|
32
|
+
async upgradedConsensusState(params) {
|
33
|
+
const options = {
|
34
|
+
params: {}
|
35
|
+
};
|
36
|
+
|
37
|
+
if (typeof (params === null || params === void 0 ? void 0 : params.lastHeight) !== "undefined") {
|
38
|
+
options.params.last_height = params.lastHeight;
|
39
|
+
}
|
40
|
+
|
41
|
+
const endpoint = `cosmos/upgrade/v1beta1/upgraded_consensus_state/${params.lastHeight}`;
|
42
|
+
return await this.request(endpoint, options);
|
43
|
+
}
|
44
|
+
/* ModuleVersions queries the list of module versions from state.
|
45
|
+
|
46
|
+
Since: cosmos-sdk 0.43 */
|
47
|
+
|
48
|
+
|
49
|
+
async moduleVersions(params) {
|
50
|
+
const options = {
|
51
|
+
params: {}
|
52
|
+
};
|
53
|
+
|
54
|
+
if (typeof (params === null || params === void 0 ? void 0 : params.moduleName) !== "undefined") {
|
55
|
+
options.params.module_name = params.moduleName;
|
56
|
+
}
|
57
|
+
|
58
|
+
const endpoint = `cosmos/upgrade/v1beta1/module_versions`;
|
59
|
+
return await this.request(endpoint, options);
|
60
|
+
}
|
61
|
+
/* Returns the account with authority to conduct upgrades */
|
62
|
+
|
63
|
+
|
64
|
+
async authority(_params = {}) {
|
65
|
+
const endpoint = `cosmos/upgrade/v1beta1/authority`;
|
66
|
+
return await this.request(endpoint);
|
67
|
+
}
|
68
|
+
|
69
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryAuthorityRequest, QueryAuthorityResponse } from "./query";
|
4
|
+
/** Query defines the RPC service */
|
5
|
+
|
6
|
+
export class QueryClientImpl {
|
7
|
+
constructor(rpc) {
|
8
|
+
_defineProperty(this, "rpc", void 0);
|
9
|
+
|
10
|
+
this.rpc = rpc;
|
11
|
+
this.currentPlan = this.currentPlan.bind(this);
|
12
|
+
this.appliedPlan = this.appliedPlan.bind(this);
|
13
|
+
this.upgradedConsensusState = this.upgradedConsensusState.bind(this);
|
14
|
+
this.moduleVersions = this.moduleVersions.bind(this);
|
15
|
+
this.authority = this.authority.bind(this);
|
16
|
+
}
|
17
|
+
|
18
|
+
currentPlan(request) {
|
19
|
+
const data = QueryCurrentPlanRequest.encode(request).finish();
|
20
|
+
const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "CurrentPlan", data);
|
21
|
+
return promise.then(data => QueryCurrentPlanResponse.decode(new _m0.Reader(data)));
|
22
|
+
}
|
23
|
+
|
24
|
+
appliedPlan(request) {
|
25
|
+
const data = QueryAppliedPlanRequest.encode(request).finish();
|
26
|
+
const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "AppliedPlan", data);
|
27
|
+
return promise.then(data => QueryAppliedPlanResponse.decode(new _m0.Reader(data)));
|
28
|
+
}
|
29
|
+
|
30
|
+
upgradedConsensusState(request) {
|
31
|
+
const data = QueryUpgradedConsensusStateRequest.encode(request).finish();
|
32
|
+
const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "UpgradedConsensusState", data);
|
33
|
+
return promise.then(data => QueryUpgradedConsensusStateResponse.decode(new _m0.Reader(data)));
|
34
|
+
}
|
35
|
+
|
36
|
+
moduleVersions(request) {
|
37
|
+
const data = QueryModuleVersionsRequest.encode(request).finish();
|
38
|
+
const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "ModuleVersions", data);
|
39
|
+
return promise.then(data => QueryModuleVersionsResponse.decode(new _m0.Reader(data)));
|
40
|
+
}
|
41
|
+
|
42
|
+
authority(request) {
|
43
|
+
const data = QueryAuthorityRequest.encode(request).finish();
|
44
|
+
const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "Authority", data);
|
45
|
+
return promise.then(data => QueryAuthorityResponse.decode(new _m0.Reader(data)));
|
46
|
+
}
|
47
|
+
|
48
|
+
}
|