@xpla/xplajs 1.7.0-beta.1 → 1.7.0-beta.11
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/CHANGELOG.md +21 -0
- package/README.md +3 -3
- package/package.json +14 -12
- package/src/binary.ts +1 -1
- package/src/cosmos/app/runtime/v1alpha1/module.ts +6 -7
- package/src/cosmos/app/runtime/v2/module.ts +9 -10
- package/src/cosmos/app/v1alpha1/config.ts +10 -9
- package/src/cosmos/app/v1alpha1/module.ts +9 -10
- package/src/cosmos/app/v1alpha1/query.rpc.func.ts +2 -1
- package/src/cosmos/app/v1alpha1/query.ts +6 -7
- package/src/cosmos/auth/module/v1/module.ts +6 -7
- package/src/cosmos/auth/v1beta1/accounts.ts +6 -7
- package/src/cosmos/auth/v1beta1/auth.ts +15 -12
- package/src/cosmos/auth/v1beta1/genesis.ts +3 -5
- package/src/cosmos/auth/v1beta1/query.rpc.func.ts +20 -10
- package/src/cosmos/auth/v1beta1/query.ts +52 -55
- package/src/cosmos/auth/v1beta1/tx.registry.ts +27 -1
- package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +2 -1
- package/src/cosmos/auth/v1beta1/tx.ts +6 -7
- package/src/cosmos/authz/module/v1/module.ts +3 -5
- package/src/cosmos/authz/v1beta1/authz.ts +32 -17
- package/src/cosmos/authz/v1beta1/event.ts +5 -8
- package/src/cosmos/authz/v1beta1/genesis.ts +4 -4
- package/src/cosmos/authz/v1beta1/query.rpc.func.ts +6 -3
- package/src/cosmos/authz/v1beta1/query.ts +22 -14
- package/src/cosmos/authz/v1beta1/tx.registry.ts +63 -1
- package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +6 -3
- package/src/cosmos/authz/v1beta1/tx.ts +15 -19
- package/src/cosmos/autocli/v1/options.ts +22 -14
- package/src/cosmos/autocli/v1/query.rpc.func.ts +2 -1
- package/src/cosmos/autocli/v1/query.ts +9 -7
- package/src/cosmos/bank/module/v1/module.ts +3 -5
- package/src/cosmos/bank/v1beta1/authz.ts +6 -3
- package/src/cosmos/bank/v1beta1/bank.ts +22 -17
- package/src/cosmos/bank/v1beta1/genesis.ts +11 -6
- package/src/cosmos/bank/v1beta1/query.rpc.func.ts +26 -13
- package/src/cosmos/bank/v1beta1/query.ts +83 -62
- package/src/cosmos/bank/v1beta1/tx.registry.ts +81 -1
- package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +8 -4
- package/src/cosmos/bank/v1beta1/tx.ts +22 -22
- package/src/cosmos/base/abci/v1beta1/abci.ts +30 -29
- package/src/cosmos/base/grpc/v2/service.rpc.func.ts +4 -2
- package/src/cosmos/base/grpc/v2/service.ts +12 -16
- package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +4 -2
- package/src/cosmos/base/node/v1beta1/query.ts +9 -14
- package/src/cosmos/base/query/v1beta1/pagination.ts +5 -8
- package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +4 -2
- package/src/cosmos/base/reflection/v1beta1/reflection.ts +9 -14
- package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +12 -6
- package/src/cosmos/base/reflection/v2alpha1/reflection.ts +72 -67
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +14 -7
- package/src/cosmos/base/tendermint/v1beta1/query.ts +56 -49
- package/src/cosmos/base/tendermint/v1beta1/types.ts +11 -6
- package/src/cosmos/base/v1beta1/coin.ts +16 -20
- package/src/cosmos/consensus/module/v1/module.ts +3 -5
- package/src/cosmos/consensus/v1/query.rpc.func.ts +2 -1
- package/src/cosmos/consensus/v1/query.ts +6 -7
- package/src/cosmos/consensus/v1/tx.registry.ts +27 -1
- package/src/cosmos/consensus/v1/tx.rpc.func.ts +2 -1
- package/src/cosmos/consensus/v1/tx.ts +9 -7
- package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +5 -8
- package/src/cosmos/distribution/module/v1/module.ts +3 -5
- package/src/cosmos/distribution/v1beta1/distribution.ts +53 -43
- package/src/cosmos/distribution/v1beta1/genesis.ts +32 -19
- package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +20 -10
- package/src/cosmos/distribution/v1beta1/query.ts +52 -53
- package/src/cosmos/distribution/v1beta1/tx.registry.ts +135 -1
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +14 -7
- package/src/cosmos/distribution/v1beta1/tx.ts +35 -38
- package/src/cosmos/evidence/module/v1/module.ts +3 -5
- package/src/cosmos/evidence/v1beta1/evidence.ts +3 -5
- package/src/cosmos/evidence/v1beta1/genesis.ts +3 -5
- package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +4 -2
- package/src/cosmos/evidence/v1beta1/query.ts +11 -12
- package/src/cosmos/evidence/v1beta1/tx.registry.ts +27 -1
- package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +2 -1
- package/src/cosmos/evidence/v1beta1/tx.ts +6 -8
- package/src/cosmos/feegrant/module/v1/module.ts +3 -5
- package/src/cosmos/feegrant/v1beta1/feegrant.ts +24 -9
- package/src/cosmos/feegrant/v1beta1/genesis.ts +4 -4
- package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +6 -3
- package/src/cosmos/feegrant/v1beta1/query.ts +20 -15
- package/src/cosmos/feegrant/v1beta1/tx.registry.ts +63 -1
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +6 -3
- package/src/cosmos/feegrant/v1beta1/tx.ts +17 -19
- package/src/cosmos/gov/module/v1/module.ts +3 -5
- package/src/cosmos/gov/v1/genesis.ts +10 -4
- package/src/cosmos/gov/v1/gov.ts +25 -24
- package/src/cosmos/gov/v1/query.rpc.func.ts +18 -9
- package/src/cosmos/gov/v1/query.ts +54 -45
- package/src/cosmos/gov/v1/tx.registry.ts +135 -1
- package/src/cosmos/gov/v1/tx.rpc.func.ts +14 -7
- package/src/cosmos/gov/v1/tx.ts +60 -45
- package/src/cosmos/gov/v1beta1/genesis.ts +9 -4
- package/src/cosmos/gov/v1beta1/gov.ts +56 -32
- package/src/cosmos/gov/v1beta1/query.rpc.func.ts +16 -8
- package/src/cosmos/gov/v1beta1/query.ts +49 -39
- package/src/cosmos/gov/v1beta1/tx.registry.ts +81 -1
- package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +8 -4
- package/src/cosmos/gov/v1beta1/tx.ts +47 -29
- package/src/cosmos/ics23/v1/proofs.ts +45 -31
- package/src/cosmos/mint/module/v1/module.ts +3 -5
- package/src/cosmos/mint/v1beta1/genesis.ts +5 -4
- package/src/cosmos/mint/v1beta1/mint.ts +24 -26
- package/src/cosmos/mint/v1beta1/query.rpc.func.ts +6 -3
- package/src/cosmos/mint/v1beta1/query.ts +14 -19
- package/src/cosmos/mint/v1beta1/tx.registry.ts +27 -1
- package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +2 -1
- package/src/cosmos/mint/v1beta1/tx.ts +6 -7
- package/src/cosmos/params/module/v1/module.ts +3 -5
- package/src/cosmos/params/v1beta1/params.ts +8 -6
- package/src/cosmos/params/v1beta1/query.rpc.func.ts +4 -2
- package/src/cosmos/params/v1beta1/query.ts +13 -15
- package/src/cosmos/slashing/module/v1/module.ts +3 -5
- package/src/cosmos/slashing/v1beta1/genesis.ts +14 -11
- package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +6 -3
- package/src/cosmos/slashing/v1beta1/query.ts +18 -16
- package/src/cosmos/slashing/v1beta1/slashing.ts +5 -8
- package/src/cosmos/slashing/v1beta1/tx.registry.ts +45 -1
- package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +4 -2
- package/src/cosmos/slashing/v1beta1/tx.ts +10 -13
- package/src/cosmos/staking/module/v1/module.ts +3 -5
- package/src/cosmos/staking/v1beta1/authz.ts +9 -6
- package/src/cosmos/staking/v1beta1/genesis.ts +11 -7
- package/src/cosmos/staking/v1beta1/query.rpc.func.ts +28 -14
- package/src/cosmos/staking/v1beta1/query.ts +85 -65
- package/src/cosmos/staking/v1beta1/staking.ts +82 -76
- package/src/cosmos/staking/v1beta1/tx.registry.ts +135 -1
- package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +14 -7
- package/src/cosmos/staking/v1beta1/tx.ts +43 -40
- package/src/cosmos/tx/config/v1/config.ts +3 -5
- package/src/cosmos/tx/signing/v1beta1/signing.ts +17 -13
- package/src/cosmos/tx/v1beta1/service.rpc.func.ts +18 -9
- package/src/cosmos/tx/v1beta1/service.ts +54 -46
- package/src/cosmos/tx/v1beta1/tx.ts +41 -32
- package/src/cosmos/upgrade/module/v1/module.ts +3 -5
- package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +10 -5
- package/src/cosmos/upgrade/v1beta1/query.ts +23 -30
- package/src/cosmos/upgrade/v1beta1/tx.registry.ts +45 -1
- package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +4 -2
- package/src/cosmos/upgrade/v1beta1/tx.ts +10 -13
- package/src/cosmos/upgrade/v1beta1/upgrade.ts +14 -11
- package/src/cosmos_proto/cosmos.ts +5 -6
- package/src/cosmwasm/wasm/v1/authz.ts +51 -24
- package/src/cosmwasm/wasm/v1/genesis.ts +17 -11
- package/src/cosmwasm/wasm/v1/ibc.ts +83 -11
- package/src/cosmwasm/wasm/v1/proposal_legacy.ts +61 -29
- package/src/cosmwasm/wasm/v1/query.lcd.ts +21 -1
- package/src/cosmwasm/wasm/v1/query.rpc.Query.ts +12 -1
- package/src/cosmwasm/wasm/v1/query.rpc.func.ts +31 -12
- package/src/cosmwasm/wasm/v1/query.ts +322 -55
- package/src/cosmwasm/wasm/v1/tx.registry.ts +315 -1
- package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +34 -17
- package/src/cosmwasm/wasm/v1/tx.ts +81 -99
- package/src/cosmwasm/wasm/v1/types.ts +21 -23
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +5 -6
- package/src/ethermint/evm/v1/events.ts +9 -10
- package/src/ethermint/evm/v1/evm.ts +21 -15
- package/src/ethermint/evm/v1/genesis.ts +8 -4
- package/src/ethermint/evm/v1/query.rpc.func.ts +24 -12
- package/src/ethermint/evm/v1/query.ts +57 -45
- package/src/ethermint/evm/v1/tx.registry.ts +45 -1
- package/src/ethermint/evm/v1/tx.rpc.func.ts +4 -2
- package/src/ethermint/evm/v1/tx.ts +25 -15
- package/src/ethermint/feemarket/v1/events.ts +5 -6
- package/src/ethermint/feemarket/v1/feemarket.ts +10 -11
- package/src/ethermint/feemarket/v1/genesis.ts +4 -3
- package/src/ethermint/feemarket/v1/query.rpc.func.ts +6 -3
- package/src/ethermint/feemarket/v1/query.ts +14 -13
- package/src/ethermint/feemarket/v1/tx.registry.ts +27 -1
- package/src/ethermint/feemarket/v1/tx.rpc.func.ts +2 -1
- package/src/ethermint/feemarket/v1/tx.ts +6 -6
- package/src/ethermint/types/v1/account.ts +6 -3
- package/src/ethermint/types/v1/dynamic_fee.ts +3 -4
- package/src/ethermint/types/v1/indexer.ts +3 -4
- package/src/ethermint/types/v1/web3.ts +3 -4
- package/src/extern.ts +2 -2
- package/src/google/api/http.ts +10 -6
- package/src/google/protobuf/any.ts +2 -1
- package/src/google/protobuf/descriptor.ts +118 -44
- package/src/google/protobuf/duration.ts +3 -4
- package/src/google/protobuf/timestamp.ts +3 -4
- package/src/helper-func-types.ts +26 -10
- package/src/helpers.ts +1 -2
- package/src/ibc/applications/fee/v1/ack.ts +3 -5
- package/src/ibc/applications/fee/v1/fee.ts +14 -10
- package/src/ibc/applications/fee/v1/genesis.ts +17 -15
- package/src/ibc/applications/fee/v1/metadata.ts +3 -5
- package/src/ibc/applications/fee/v1/query.rpc.func.ts +20 -10
- package/src/ibc/applications/fee/v1/query.ts +58 -48
- package/src/ibc/applications/fee/v1/tx.registry.ts +81 -1
- package/src/ibc/applications/fee/v1/tx.rpc.func.ts +8 -4
- package/src/ibc/applications/fee/v1/tx.ts +20 -24
- package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +3 -5
- package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +4 -2
- package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +10 -13
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +63 -1
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +6 -3
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +15 -18
- package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +19 -14
- package/src/ibc/applications/interchain_accounts/host/v1/host.ts +5 -8
- package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +2 -1
- package/src/ibc/applications/interchain_accounts/host/v1/query.ts +6 -7
- package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +45 -1
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +4 -2
- package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +11 -12
- package/src/ibc/applications/interchain_accounts/v1/account.ts +7 -4
- package/src/ibc/applications/interchain_accounts/v1/metadata.ts +3 -5
- package/src/ibc/applications/interchain_accounts/v1/packet.ts +5 -8
- package/src/ibc/applications/transfer/v1/authz.ts +9 -5
- package/src/ibc/applications/transfer/v1/genesis.ts +6 -4
- package/src/ibc/applications/transfer/v1/query.rpc.func.ts +12 -6
- package/src/ibc/applications/transfer/v1/query.ts +31 -33
- package/src/ibc/applications/transfer/v1/transfer.ts +5 -8
- package/src/ibc/applications/transfer/v1/tx.registry.ts +45 -1
- package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +4 -2
- package/src/ibc/applications/transfer/v1/tx.ts +12 -12
- package/src/ibc/applications/transfer/v2/packet.ts +3 -5
- package/src/ibc/core/channel/v1/channel.ts +24 -24
- package/src/ibc/core/channel/v1/genesis.ts +9 -7
- package/src/ibc/core/channel/v1/query.rpc.func.ts +34 -17
- package/src/ibc/core/channel/v1/query.ts +102 -83
- package/src/ibc/core/channel/v1/tx.registry.ts +351 -1
- package/src/ibc/core/channel/v1/tx.rpc.func.ts +38 -19
- package/src/ibc/core/channel/v1/tx.ts +106 -97
- package/src/ibc/core/channel/v1/upgrade.ts +9 -10
- package/src/ibc/core/client/v1/client.ts +21 -20
- package/src/ibc/core/client/v1/genesis.ts +12 -9
- package/src/ibc/core/client/v1/query.rpc.func.ts +20 -10
- package/src/ibc/core/client/v1/query.ts +55 -52
- package/src/ibc/core/client/v1/tx.registry.ts +135 -1
- package/src/ibc/core/client/v1/tx.rpc.func.ts +14 -7
- package/src/ibc/core/client/v1/tx.ts +30 -43
- package/src/ibc/core/commitment/v1/commitment.ts +10 -13
- package/src/ibc/core/connection/v1/connection.ts +20 -20
- package/src/ibc/core/connection/v1/genesis.ts +6 -4
- package/src/ibc/core/connection/v1/query.rpc.func.ts +12 -6
- package/src/ibc/core/connection/v1/query.ts +36 -31
- package/src/ibc/core/connection/v1/tx.registry.ts +99 -1
- package/src/ibc/core/connection/v1/tx.rpc.func.ts +10 -5
- package/src/ibc/core/connection/v1/tx.ts +29 -27
- package/src/ibc/core/types/v1/genesis.ts +6 -4
- package/src/ibc/lightclients/localhost/v2/localhost.ts +4 -4
- package/src/ibc/lightclients/solomachine/v2/solomachine.ts +37 -46
- package/src/ibc/lightclients/solomachine/v3/solomachine.ts +19 -24
- package/src/ibc/lightclients/tendermint/v1/tendermint.ts +19 -13
- package/src/ibc/lightclients/wasm/v1/genesis.ts +6 -7
- package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +4 -2
- package/src/ibc/lightclients/wasm/v1/query.ts +11 -12
- package/src/ibc/lightclients/wasm/v1/tx.registry.ts +63 -1
- package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +6 -3
- package/src/ibc/lightclients/wasm/v1/tx.ts +13 -20
- package/src/ibc/lightclients/wasm/v1/wasm.ts +10 -13
- package/src/registry.ts +1 -1
- package/src/tendermint/abci/types.ts +157 -74
- package/src/tendermint/crypto/keys.ts +3 -4
- package/src/tendermint/crypto/proof.ts +13 -10
- package/src/tendermint/p2p/types.ts +11 -9
- package/src/tendermint/types/block.ts +7 -3
- package/src/tendermint/types/evidence.ts +15 -6
- package/src/tendermint/types/params.ts +20 -15
- package/src/tendermint/types/types.ts +48 -21
- package/src/tendermint/types/validator.ts +10 -5
- package/src/tendermint/version/types.ts +5 -6
- package/src/test.ts +11 -0
- package/src/types.ts +3 -6
- package/src/utf8.ts +1 -1
- package/src/varint.ts +1 -1
- package/src/xpla/lcd.ts +102 -102
- package/src/xpla/reward/v1beta1/genesis.ts +4 -3
- package/src/xpla/reward/v1beta1/query.rpc.func.ts +4 -2
- package/src/xpla/reward/v1beta1/query.ts +11 -8
- package/src/xpla/reward/v1beta1/reward.ts +13 -14
- package/src/xpla/reward/v1beta1/tx.registry.ts +45 -1
- package/src/xpla/reward/v1beta1/tx.rpc.func.ts +4 -2
- package/src/xpla/reward/v1beta1/tx.ts +11 -10
- package/src/xpla/rpc.query.ts +89 -89
- package/src/xpla/volunteer/v1beta1/genesis.ts +4 -3
- package/src/xpla/volunteer/v1beta1/proposal.ts +13 -13
- package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +2 -1
- package/src/xpla/volunteer/v1beta1/query.ts +5 -6
- package/src/xpla/volunteer/v1beta1/tx.registry.ts +45 -1
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +4 -2
- package/src/xpla/volunteer/v1beta1/tx.ts +12 -12
- package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +3 -4
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Params, ParamsAmino } from "./mint";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { DeepPartial } from "../../../helpers";
|
|
4
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
4
|
/**
|
|
6
5
|
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
7
6
|
*
|
|
@@ -148,10 +147,11 @@ export const MsgUpdateParams = {
|
|
|
148
147
|
typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParams",
|
|
149
148
|
value: MsgUpdateParams.encode(message).finish()
|
|
150
149
|
};
|
|
150
|
+
},
|
|
151
|
+
registerTypeUrl() {
|
|
152
|
+
Params.registerTypeUrl();
|
|
151
153
|
}
|
|
152
154
|
};
|
|
153
|
-
GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
|
|
154
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
|
|
155
155
|
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
156
156
|
return {};
|
|
157
157
|
}
|
|
@@ -213,7 +213,6 @@ export const MsgUpdateParamsResponse = {
|
|
|
213
213
|
typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParamsResponse",
|
|
214
214
|
value: MsgUpdateParamsResponse.encode(message).finish()
|
|
215
215
|
};
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParamsResponse.aminoType, MsgUpdateParamsResponse.typeUrl);
|
|
216
|
+
},
|
|
217
|
+
registerTypeUrl() {}
|
|
218
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
2
|
import { DeepPartial } from "../../../../helpers";
|
|
3
|
-
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
3
|
/** Module is the config object of the params module. */
|
|
5
4
|
export interface Module {}
|
|
6
5
|
export interface ModuleProtoMsg {
|
|
@@ -74,7 +73,6 @@ export const Module = {
|
|
|
74
73
|
typeUrl: "/cosmos.params.module.v1.Module",
|
|
75
74
|
value: Module.encode(message).finish()
|
|
76
75
|
};
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Module.aminoType, Module.typeUrl);
|
|
76
|
+
},
|
|
77
|
+
registerTypeUrl() {}
|
|
78
|
+
};
|
|
@@ -147,10 +147,13 @@ export const ParameterChangeProposal = {
|
|
|
147
147
|
typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal",
|
|
148
148
|
value: ParameterChangeProposal.encode(message).finish()
|
|
149
149
|
};
|
|
150
|
+
},
|
|
151
|
+
registerTypeUrl() {
|
|
152
|
+
GlobalDecoderRegistry.register(ParameterChangeProposal.typeUrl, ParameterChangeProposal);
|
|
153
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ParameterChangeProposal.aminoType, ParameterChangeProposal.typeUrl);
|
|
154
|
+
ParamChange.registerTypeUrl();
|
|
150
155
|
}
|
|
151
156
|
};
|
|
152
|
-
GlobalDecoderRegistry.register(ParameterChangeProposal.typeUrl, ParameterChangeProposal);
|
|
153
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ParameterChangeProposal.aminoType, ParameterChangeProposal.typeUrl);
|
|
154
157
|
function createBaseParamChange(): ParamChange {
|
|
155
158
|
return {
|
|
156
159
|
subspace: "",
|
|
@@ -249,7 +252,6 @@ export const ParamChange = {
|
|
|
249
252
|
typeUrl: "/cosmos.params.v1beta1.ParamChange",
|
|
250
253
|
value: ParamChange.encode(message).finish()
|
|
251
254
|
};
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ParamChange.aminoType, ParamChange.typeUrl);
|
|
255
|
+
},
|
|
256
|
+
registerTypeUrl() {}
|
|
257
|
+
};
|
|
@@ -5,12 +5,14 @@ export const createGetParams = (clientResolver?: RpcResolver) => buildQuery<Quer
|
|
|
5
5
|
decode: QueryParamsResponse.decode,
|
|
6
6
|
service: "cosmos.params.v1beta1.Query",
|
|
7
7
|
method: "Params",
|
|
8
|
-
clientResolver
|
|
8
|
+
clientResolver,
|
|
9
|
+
deps: [QueryParamsRequest, QueryParamsResponse]
|
|
9
10
|
});
|
|
10
11
|
export const createGetSubspaces = (clientResolver?: RpcResolver) => buildQuery<QuerySubspacesRequest, QuerySubspacesResponse>({
|
|
11
12
|
encode: QuerySubspacesRequest.encode,
|
|
12
13
|
decode: QuerySubspacesResponse.decode,
|
|
13
14
|
service: "cosmos.params.v1beta1.Query",
|
|
14
15
|
method: "Subspaces",
|
|
15
|
-
clientResolver
|
|
16
|
+
clientResolver,
|
|
17
|
+
deps: [QuerySubspacesRequest, QuerySubspacesResponse]
|
|
16
18
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ParamChange, ParamChangeAmino } from "./params";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { DeepPartial } from "../../../helpers";
|
|
4
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
4
|
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
6
5
|
export interface QueryParamsRequest {
|
|
7
6
|
/** subspace defines the module to query the parameter for. */
|
|
@@ -204,10 +203,9 @@ export const QueryParamsRequest = {
|
|
|
204
203
|
typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest",
|
|
205
204
|
value: QueryParamsRequest.encode(message).finish()
|
|
206
205
|
};
|
|
207
|
-
}
|
|
206
|
+
},
|
|
207
|
+
registerTypeUrl() {}
|
|
208
208
|
};
|
|
209
|
-
GlobalDecoderRegistry.register(QueryParamsRequest.typeUrl, QueryParamsRequest);
|
|
210
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsRequest.aminoType, QueryParamsRequest.typeUrl);
|
|
211
209
|
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
212
210
|
return {
|
|
213
211
|
param: ParamChange.fromPartial({})
|
|
@@ -282,10 +280,11 @@ export const QueryParamsResponse = {
|
|
|
282
280
|
typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse",
|
|
283
281
|
value: QueryParamsResponse.encode(message).finish()
|
|
284
282
|
};
|
|
283
|
+
},
|
|
284
|
+
registerTypeUrl() {
|
|
285
|
+
ParamChange.registerTypeUrl();
|
|
285
286
|
}
|
|
286
287
|
};
|
|
287
|
-
GlobalDecoderRegistry.register(QueryParamsResponse.typeUrl, QueryParamsResponse);
|
|
288
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsResponse.aminoType, QueryParamsResponse.typeUrl);
|
|
289
288
|
function createBaseQuerySubspacesRequest(): QuerySubspacesRequest {
|
|
290
289
|
return {};
|
|
291
290
|
}
|
|
@@ -347,10 +346,9 @@ export const QuerySubspacesRequest = {
|
|
|
347
346
|
typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest",
|
|
348
347
|
value: QuerySubspacesRequest.encode(message).finish()
|
|
349
348
|
};
|
|
350
|
-
}
|
|
349
|
+
},
|
|
350
|
+
registerTypeUrl() {}
|
|
351
351
|
};
|
|
352
|
-
GlobalDecoderRegistry.register(QuerySubspacesRequest.typeUrl, QuerySubspacesRequest);
|
|
353
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QuerySubspacesRequest.aminoType, QuerySubspacesRequest.typeUrl);
|
|
354
352
|
function createBaseQuerySubspacesResponse(): QuerySubspacesResponse {
|
|
355
353
|
return {
|
|
356
354
|
subspaces: []
|
|
@@ -427,10 +425,11 @@ export const QuerySubspacesResponse = {
|
|
|
427
425
|
typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse",
|
|
428
426
|
value: QuerySubspacesResponse.encode(message).finish()
|
|
429
427
|
};
|
|
428
|
+
},
|
|
429
|
+
registerTypeUrl() {
|
|
430
|
+
Subspace.registerTypeUrl();
|
|
430
431
|
}
|
|
431
432
|
};
|
|
432
|
-
GlobalDecoderRegistry.register(QuerySubspacesResponse.typeUrl, QuerySubspacesResponse);
|
|
433
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QuerySubspacesResponse.aminoType, QuerySubspacesResponse.typeUrl);
|
|
434
433
|
function createBaseSubspace(): Subspace {
|
|
435
434
|
return {
|
|
436
435
|
subspace: "",
|
|
@@ -519,7 +518,6 @@ export const Subspace = {
|
|
|
519
518
|
typeUrl: "/cosmos.params.v1beta1.Subspace",
|
|
520
519
|
value: Subspace.encode(message).finish()
|
|
521
520
|
};
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Subspace.aminoType, Subspace.typeUrl);
|
|
521
|
+
},
|
|
522
|
+
registerTypeUrl() {}
|
|
523
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
2
|
import { DeepPartial } from "../../../../helpers";
|
|
3
|
-
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
3
|
/** Module is the config object of the slashing module. */
|
|
5
4
|
export interface Module {
|
|
6
5
|
/** authority defines the custom module authority. If not set, defaults to the governance module. */
|
|
@@ -93,7 +92,6 @@ export const Module = {
|
|
|
93
92
|
typeUrl: "/cosmos.slashing.module.v1.Module",
|
|
94
93
|
value: Module.encode(message).finish()
|
|
95
94
|
};
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Module.aminoType, Module.typeUrl);
|
|
95
|
+
},
|
|
96
|
+
registerTypeUrl() {}
|
|
97
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Params, ParamsAmino, ValidatorSigningInfo, ValidatorSigningInfoAmino } from "./slashing";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { DeepPartial } from "../../../helpers";
|
|
4
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
4
|
/** GenesisState defines the slashing module's genesis state. */
|
|
6
5
|
export interface GenesisState {
|
|
7
6
|
/** params defines all the parameters of the module. */
|
|
@@ -214,10 +213,13 @@ export const GenesisState = {
|
|
|
214
213
|
typeUrl: "/cosmos.slashing.v1beta1.GenesisState",
|
|
215
214
|
value: GenesisState.encode(message).finish()
|
|
216
215
|
};
|
|
216
|
+
},
|
|
217
|
+
registerTypeUrl() {
|
|
218
|
+
Params.registerTypeUrl();
|
|
219
|
+
SigningInfo.registerTypeUrl();
|
|
220
|
+
ValidatorMissedBlocks.registerTypeUrl();
|
|
217
221
|
}
|
|
218
222
|
};
|
|
219
|
-
GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
|
|
220
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(GenesisState.aminoType, GenesisState.typeUrl);
|
|
221
223
|
function createBaseSigningInfo(): SigningInfo {
|
|
222
224
|
return {
|
|
223
225
|
address: "",
|
|
@@ -304,10 +306,11 @@ export const SigningInfo = {
|
|
|
304
306
|
typeUrl: "/cosmos.slashing.v1beta1.SigningInfo",
|
|
305
307
|
value: SigningInfo.encode(message).finish()
|
|
306
308
|
};
|
|
309
|
+
},
|
|
310
|
+
registerTypeUrl() {
|
|
311
|
+
ValidatorSigningInfo.registerTypeUrl();
|
|
307
312
|
}
|
|
308
313
|
};
|
|
309
|
-
GlobalDecoderRegistry.register(SigningInfo.typeUrl, SigningInfo);
|
|
310
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(SigningInfo.aminoType, SigningInfo.typeUrl);
|
|
311
314
|
function createBaseValidatorMissedBlocks(): ValidatorMissedBlocks {
|
|
312
315
|
return {
|
|
313
316
|
address: "",
|
|
@@ -396,10 +399,11 @@ export const ValidatorMissedBlocks = {
|
|
|
396
399
|
typeUrl: "/cosmos.slashing.v1beta1.ValidatorMissedBlocks",
|
|
397
400
|
value: ValidatorMissedBlocks.encode(message).finish()
|
|
398
401
|
};
|
|
402
|
+
},
|
|
403
|
+
registerTypeUrl() {
|
|
404
|
+
MissedBlock.registerTypeUrl();
|
|
399
405
|
}
|
|
400
406
|
};
|
|
401
|
-
GlobalDecoderRegistry.register(ValidatorMissedBlocks.typeUrl, ValidatorMissedBlocks);
|
|
402
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorMissedBlocks.aminoType, ValidatorMissedBlocks.typeUrl);
|
|
403
407
|
function createBaseMissedBlock(): MissedBlock {
|
|
404
408
|
return {
|
|
405
409
|
index: BigInt(0),
|
|
@@ -486,7 +490,6 @@ export const MissedBlock = {
|
|
|
486
490
|
typeUrl: "/cosmos.slashing.v1beta1.MissedBlock",
|
|
487
491
|
value: MissedBlock.encode(message).finish()
|
|
488
492
|
};
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MissedBlock.aminoType, MissedBlock.typeUrl);
|
|
493
|
+
},
|
|
494
|
+
registerTypeUrl() {}
|
|
495
|
+
};
|
|
@@ -5,19 +5,22 @@ export const createGetParams = (clientResolver?: RpcResolver) => buildQuery<Quer
|
|
|
5
5
|
decode: QueryParamsResponse.decode,
|
|
6
6
|
service: "cosmos.slashing.v1beta1.Query",
|
|
7
7
|
method: "Params",
|
|
8
|
-
clientResolver
|
|
8
|
+
clientResolver,
|
|
9
|
+
deps: [QueryParamsRequest, QueryParamsResponse]
|
|
9
10
|
});
|
|
10
11
|
export const createGetSigningInfo = (clientResolver?: RpcResolver) => buildQuery<QuerySigningInfoRequest, QuerySigningInfoResponse>({
|
|
11
12
|
encode: QuerySigningInfoRequest.encode,
|
|
12
13
|
decode: QuerySigningInfoResponse.decode,
|
|
13
14
|
service: "cosmos.slashing.v1beta1.Query",
|
|
14
15
|
method: "SigningInfo",
|
|
15
|
-
clientResolver
|
|
16
|
+
clientResolver,
|
|
17
|
+
deps: [QuerySigningInfoRequest, QuerySigningInfoResponse]
|
|
16
18
|
});
|
|
17
19
|
export const createGetSigningInfos = (clientResolver?: RpcResolver) => buildQuery<QuerySigningInfosRequest, QuerySigningInfosResponse>({
|
|
18
20
|
encode: QuerySigningInfosRequest.encode,
|
|
19
21
|
decode: QuerySigningInfosResponse.decode,
|
|
20
22
|
service: "cosmos.slashing.v1beta1.Query",
|
|
21
23
|
method: "SigningInfos",
|
|
22
|
-
clientResolver
|
|
24
|
+
clientResolver,
|
|
25
|
+
deps: [QuerySigningInfosRequest, QuerySigningInfosResponse]
|
|
23
26
|
});
|
|
@@ -2,7 +2,6 @@ import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "
|
|
|
2
2
|
import { Params, ParamsAmino, ValidatorSigningInfo, ValidatorSigningInfoAmino } from "./slashing";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
4
|
import { DeepPartial } from "../../../helpers";
|
|
5
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
5
|
/** QueryParamsRequest is the request type for the Query/Params RPC method */
|
|
7
6
|
export interface QueryParamsRequest {}
|
|
8
7
|
export interface QueryParamsRequestProtoMsg {
|
|
@@ -188,10 +187,9 @@ export const QueryParamsRequest = {
|
|
|
188
187
|
typeUrl: "/cosmos.slashing.v1beta1.QueryParamsRequest",
|
|
189
188
|
value: QueryParamsRequest.encode(message).finish()
|
|
190
189
|
};
|
|
191
|
-
}
|
|
190
|
+
},
|
|
191
|
+
registerTypeUrl() {}
|
|
192
192
|
};
|
|
193
|
-
GlobalDecoderRegistry.register(QueryParamsRequest.typeUrl, QueryParamsRequest);
|
|
194
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsRequest.aminoType, QueryParamsRequest.typeUrl);
|
|
195
193
|
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
196
194
|
return {
|
|
197
195
|
params: Params.fromPartial({})
|
|
@@ -266,10 +264,11 @@ export const QueryParamsResponse = {
|
|
|
266
264
|
typeUrl: "/cosmos.slashing.v1beta1.QueryParamsResponse",
|
|
267
265
|
value: QueryParamsResponse.encode(message).finish()
|
|
268
266
|
};
|
|
267
|
+
},
|
|
268
|
+
registerTypeUrl() {
|
|
269
|
+
Params.registerTypeUrl();
|
|
269
270
|
}
|
|
270
271
|
};
|
|
271
|
-
GlobalDecoderRegistry.register(QueryParamsResponse.typeUrl, QueryParamsResponse);
|
|
272
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsResponse.aminoType, QueryParamsResponse.typeUrl);
|
|
273
272
|
function createBaseQuerySigningInfoRequest(): QuerySigningInfoRequest {
|
|
274
273
|
return {
|
|
275
274
|
consAddress: ""
|
|
@@ -344,10 +343,9 @@ export const QuerySigningInfoRequest = {
|
|
|
344
343
|
typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoRequest",
|
|
345
344
|
value: QuerySigningInfoRequest.encode(message).finish()
|
|
346
345
|
};
|
|
347
|
-
}
|
|
346
|
+
},
|
|
347
|
+
registerTypeUrl() {}
|
|
348
348
|
};
|
|
349
|
-
GlobalDecoderRegistry.register(QuerySigningInfoRequest.typeUrl, QuerySigningInfoRequest);
|
|
350
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QuerySigningInfoRequest.aminoType, QuerySigningInfoRequest.typeUrl);
|
|
351
349
|
function createBaseQuerySigningInfoResponse(): QuerySigningInfoResponse {
|
|
352
350
|
return {
|
|
353
351
|
valSigningInfo: ValidatorSigningInfo.fromPartial({})
|
|
@@ -422,10 +420,11 @@ export const QuerySigningInfoResponse = {
|
|
|
422
420
|
typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoResponse",
|
|
423
421
|
value: QuerySigningInfoResponse.encode(message).finish()
|
|
424
422
|
};
|
|
423
|
+
},
|
|
424
|
+
registerTypeUrl() {
|
|
425
|
+
ValidatorSigningInfo.registerTypeUrl();
|
|
425
426
|
}
|
|
426
427
|
};
|
|
427
|
-
GlobalDecoderRegistry.register(QuerySigningInfoResponse.typeUrl, QuerySigningInfoResponse);
|
|
428
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QuerySigningInfoResponse.aminoType, QuerySigningInfoResponse.typeUrl);
|
|
429
428
|
function createBaseQuerySigningInfosRequest(): QuerySigningInfosRequest {
|
|
430
429
|
return {
|
|
431
430
|
pagination: undefined
|
|
@@ -500,10 +499,11 @@ export const QuerySigningInfosRequest = {
|
|
|
500
499
|
typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosRequest",
|
|
501
500
|
value: QuerySigningInfosRequest.encode(message).finish()
|
|
502
501
|
};
|
|
502
|
+
},
|
|
503
|
+
registerTypeUrl() {
|
|
504
|
+
PageRequest.registerTypeUrl();
|
|
503
505
|
}
|
|
504
506
|
};
|
|
505
|
-
GlobalDecoderRegistry.register(QuerySigningInfosRequest.typeUrl, QuerySigningInfosRequest);
|
|
506
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QuerySigningInfosRequest.aminoType, QuerySigningInfosRequest.typeUrl);
|
|
507
507
|
function createBaseQuerySigningInfosResponse(): QuerySigningInfosResponse {
|
|
508
508
|
return {
|
|
509
509
|
info: [],
|
|
@@ -592,7 +592,9 @@ export const QuerySigningInfosResponse = {
|
|
|
592
592
|
typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse",
|
|
593
593
|
value: QuerySigningInfosResponse.encode(message).finish()
|
|
594
594
|
};
|
|
595
|
+
},
|
|
596
|
+
registerTypeUrl() {
|
|
597
|
+
ValidatorSigningInfo.registerTypeUrl();
|
|
598
|
+
PageResponse.registerTypeUrl();
|
|
595
599
|
}
|
|
596
|
-
};
|
|
597
|
-
GlobalDecoderRegistry.register(QuerySigningInfosResponse.typeUrl, QuerySigningInfosResponse);
|
|
598
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QuerySigningInfosResponse.aminoType, QuerySigningInfosResponse.typeUrl);
|
|
600
|
+
};
|
|
@@ -2,7 +2,6 @@ import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
|
2
2
|
import { Duration, DurationAmino } from "../../../google/protobuf/duration";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
4
|
import { toTimestamp, fromTimestamp, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
5
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
5
|
/**
|
|
7
6
|
* ValidatorSigningInfo defines a validator's signing info for monitoring their
|
|
8
7
|
* liveness activity.
|
|
@@ -225,10 +224,9 @@ export const ValidatorSigningInfo = {
|
|
|
225
224
|
typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo",
|
|
226
225
|
value: ValidatorSigningInfo.encode(message).finish()
|
|
227
226
|
};
|
|
228
|
-
}
|
|
227
|
+
},
|
|
228
|
+
registerTypeUrl() {}
|
|
229
229
|
};
|
|
230
|
-
GlobalDecoderRegistry.register(ValidatorSigningInfo.typeUrl, ValidatorSigningInfo);
|
|
231
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorSigningInfo.aminoType, ValidatorSigningInfo.typeUrl);
|
|
232
230
|
function createBaseParams(): Params {
|
|
233
231
|
return {
|
|
234
232
|
signedBlocksWindow: BigInt(0),
|
|
@@ -351,7 +349,6 @@ export const Params = {
|
|
|
351
349
|
typeUrl: "/cosmos.slashing.v1beta1.Params",
|
|
352
350
|
value: Params.encode(message).finish()
|
|
353
351
|
};
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
|
|
352
|
+
},
|
|
353
|
+
registerTypeUrl() {}
|
|
354
|
+
};
|
|
@@ -1,3 +1,47 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { MsgUnjail, MsgUpdateParams } from "./tx";
|
|
3
|
-
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail], ["/cosmos.slashing.v1beta1.MsgUpdateParams", MsgUpdateParams]];
|
|
3
|
+
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail], ["/cosmos.slashing.v1beta1.MsgUpdateParams", MsgUpdateParams]];
|
|
4
|
+
export const MessageComposer = {
|
|
5
|
+
encoded: {
|
|
6
|
+
unjail(value: MsgUnjail) {
|
|
7
|
+
return {
|
|
8
|
+
typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail",
|
|
9
|
+
value: MsgUnjail.encode(value).finish()
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
updateParams(value: MsgUpdateParams) {
|
|
13
|
+
return {
|
|
14
|
+
typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParams",
|
|
15
|
+
value: MsgUpdateParams.encode(value).finish()
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
withTypeUrl: {
|
|
20
|
+
unjail(value: MsgUnjail) {
|
|
21
|
+
return {
|
|
22
|
+
typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail",
|
|
23
|
+
value
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
updateParams(value: MsgUpdateParams) {
|
|
27
|
+
return {
|
|
28
|
+
typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParams",
|
|
29
|
+
value
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
fromPartial: {
|
|
34
|
+
unjail(value: MsgUnjail) {
|
|
35
|
+
return {
|
|
36
|
+
typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail",
|
|
37
|
+
value: MsgUnjail.fromPartial(value)
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
updateParams(value: MsgUpdateParams) {
|
|
41
|
+
return {
|
|
42
|
+
typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParams",
|
|
43
|
+
value: MsgUpdateParams.fromPartial(value)
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
@@ -5,11 +5,13 @@ export const createUnjail = (clientResolver?: SigningClientResolver) => buildTx<
|
|
|
5
5
|
clientResolver,
|
|
6
6
|
typeUrl: MsgUnjail.typeUrl,
|
|
7
7
|
encoders: toEncoders(MsgUnjail),
|
|
8
|
-
converters: toConverters(MsgUnjail)
|
|
8
|
+
converters: toConverters(MsgUnjail),
|
|
9
|
+
deps: [MsgUnjail]
|
|
9
10
|
});
|
|
10
11
|
export const createUpdateParams = (clientResolver?: SigningClientResolver) => buildTx<MsgUpdateParams>({
|
|
11
12
|
clientResolver,
|
|
12
13
|
typeUrl: MsgUpdateParams.typeUrl,
|
|
13
14
|
encoders: toEncoders(MsgUpdateParams),
|
|
14
|
-
converters: toConverters(MsgUpdateParams)
|
|
15
|
+
converters: toConverters(MsgUpdateParams),
|
|
16
|
+
deps: [MsgUpdateParams]
|
|
15
17
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Params, ParamsAmino } from "./slashing";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { DeepPartial } from "../../../helpers";
|
|
4
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
4
|
/** MsgUnjail defines the Msg/Unjail request type */
|
|
6
5
|
export interface MsgUnjail {
|
|
7
6
|
validatorAddr: string;
|
|
@@ -164,10 +163,9 @@ export const MsgUnjail = {
|
|
|
164
163
|
typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail",
|
|
165
164
|
value: MsgUnjail.encode(message).finish()
|
|
166
165
|
};
|
|
167
|
-
}
|
|
166
|
+
},
|
|
167
|
+
registerTypeUrl() {}
|
|
168
168
|
};
|
|
169
|
-
GlobalDecoderRegistry.register(MsgUnjail.typeUrl, MsgUnjail);
|
|
170
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUnjail.aminoType, MsgUnjail.typeUrl);
|
|
171
169
|
function createBaseMsgUnjailResponse(): MsgUnjailResponse {
|
|
172
170
|
return {};
|
|
173
171
|
}
|
|
@@ -229,10 +227,9 @@ export const MsgUnjailResponse = {
|
|
|
229
227
|
typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse",
|
|
230
228
|
value: MsgUnjailResponse.encode(message).finish()
|
|
231
229
|
};
|
|
232
|
-
}
|
|
230
|
+
},
|
|
231
|
+
registerTypeUrl() {}
|
|
233
232
|
};
|
|
234
|
-
GlobalDecoderRegistry.register(MsgUnjailResponse.typeUrl, MsgUnjailResponse);
|
|
235
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUnjailResponse.aminoType, MsgUnjailResponse.typeUrl);
|
|
236
233
|
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
237
234
|
return {
|
|
238
235
|
authority: "",
|
|
@@ -319,10 +316,11 @@ export const MsgUpdateParams = {
|
|
|
319
316
|
typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParams",
|
|
320
317
|
value: MsgUpdateParams.encode(message).finish()
|
|
321
318
|
};
|
|
319
|
+
},
|
|
320
|
+
registerTypeUrl() {
|
|
321
|
+
Params.registerTypeUrl();
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
|
-
GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
|
|
325
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
|
|
326
324
|
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
327
325
|
return {};
|
|
328
326
|
}
|
|
@@ -384,7 +382,6 @@ export const MsgUpdateParamsResponse = {
|
|
|
384
382
|
typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParamsResponse",
|
|
385
383
|
value: MsgUpdateParamsResponse.encode(message).finish()
|
|
386
384
|
};
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParamsResponse.aminoType, MsgUpdateParamsResponse.typeUrl);
|
|
385
|
+
},
|
|
386
|
+
registerTypeUrl() {}
|
|
387
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
2
|
import { DeepPartial } from "../../../../helpers";
|
|
3
|
-
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
3
|
/** Module is the config object of the staking module. */
|
|
5
4
|
export interface Module {
|
|
6
5
|
/**
|
|
@@ -151,7 +150,6 @@ export const Module = {
|
|
|
151
150
|
typeUrl: "/cosmos.staking.module.v1.Module",
|
|
152
151
|
value: Module.encode(message).finish()
|
|
153
152
|
};
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Module.aminoType, Module.typeUrl);
|
|
153
|
+
},
|
|
154
|
+
registerTypeUrl() {}
|
|
155
|
+
};
|
|
@@ -237,10 +237,14 @@ export const StakeAuthorization = {
|
|
|
237
237
|
typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization",
|
|
238
238
|
value: StakeAuthorization.encode(message).finish()
|
|
239
239
|
};
|
|
240
|
+
},
|
|
241
|
+
registerTypeUrl() {
|
|
242
|
+
GlobalDecoderRegistry.register(StakeAuthorization.typeUrl, StakeAuthorization);
|
|
243
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(StakeAuthorization.aminoType, StakeAuthorization.typeUrl);
|
|
244
|
+
Coin.registerTypeUrl();
|
|
245
|
+
StakeAuthorization_Validators.registerTypeUrl();
|
|
240
246
|
}
|
|
241
247
|
};
|
|
242
|
-
GlobalDecoderRegistry.register(StakeAuthorization.typeUrl, StakeAuthorization);
|
|
243
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(StakeAuthorization.aminoType, StakeAuthorization.typeUrl);
|
|
244
248
|
function createBaseStakeAuthorization_Validators(): StakeAuthorization_Validators {
|
|
245
249
|
return {
|
|
246
250
|
address: []
|
|
@@ -317,7 +321,6 @@ export const StakeAuthorization_Validators = {
|
|
|
317
321
|
typeUrl: "/cosmos.staking.v1beta1.Validators",
|
|
318
322
|
value: StakeAuthorization_Validators.encode(message).finish()
|
|
319
323
|
};
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(StakeAuthorization_Validators.aminoType, StakeAuthorization_Validators.typeUrl);
|
|
324
|
+
},
|
|
325
|
+
registerTypeUrl() {}
|
|
326
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Params, ParamsAmino, Validator, ValidatorAmino, Delegation, DelegationAmino, UnbondingDelegation, UnbondingDelegationAmino, Redelegation, RedelegationAmino } from "./staking";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
4
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
4
|
/** GenesisState defines the staking module's genesis state. */
|
|
6
5
|
export interface GenesisState {
|
|
7
6
|
/** params defines all the parameters of related to deposit. */
|
|
@@ -250,10 +249,16 @@ export const GenesisState = {
|
|
|
250
249
|
typeUrl: "/cosmos.staking.v1beta1.GenesisState",
|
|
251
250
|
value: GenesisState.encode(message).finish()
|
|
252
251
|
};
|
|
252
|
+
},
|
|
253
|
+
registerTypeUrl() {
|
|
254
|
+
Params.registerTypeUrl();
|
|
255
|
+
LastValidatorPower.registerTypeUrl();
|
|
256
|
+
Validator.registerTypeUrl();
|
|
257
|
+
Delegation.registerTypeUrl();
|
|
258
|
+
UnbondingDelegation.registerTypeUrl();
|
|
259
|
+
Redelegation.registerTypeUrl();
|
|
253
260
|
}
|
|
254
261
|
};
|
|
255
|
-
GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
|
|
256
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(GenesisState.aminoType, GenesisState.typeUrl);
|
|
257
262
|
function createBaseLastValidatorPower(): LastValidatorPower {
|
|
258
263
|
return {
|
|
259
264
|
address: "",
|
|
@@ -340,7 +345,6 @@ export const LastValidatorPower = {
|
|
|
340
345
|
typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower",
|
|
341
346
|
value: LastValidatorPower.encode(message).finish()
|
|
342
347
|
};
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(LastValidatorPower.aminoType, LastValidatorPower.typeUrl);
|
|
348
|
+
},
|
|
349
|
+
registerTypeUrl() {}
|
|
350
|
+
};
|