@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
|
@@ -5,9 +5,10 @@ import { Duration, DurationAmino } from "../../../google/protobuf/duration";
|
|
|
5
5
|
import { Coin, CoinAmino } from "../../base/v1beta1/coin";
|
|
6
6
|
import { ValidatorUpdate, ValidatorUpdateAmino } from "../../../tendermint/abci/types";
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
8
|
-
import { DeepPartial, toTimestamp, fromTimestamp, isSet } from "../../../helpers";
|
|
9
8
|
import { GlobalDecoderRegistry } from "../../../registry";
|
|
10
|
-
import {
|
|
9
|
+
import { DeepPartial, toTimestamp, fromTimestamp, isSet } from "../../../helpers";
|
|
10
|
+
import { Decimal } from "@interchainjs/math";
|
|
11
|
+
import { encodePubkey, decodePubkey } from "@interchainjs/pubkey";
|
|
11
12
|
/** BondStatus is the status of a validator. */
|
|
12
13
|
export enum BondStatus {
|
|
13
14
|
/** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */
|
|
@@ -838,10 +839,12 @@ export const HistoricalInfo = {
|
|
|
838
839
|
typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo",
|
|
839
840
|
value: HistoricalInfo.encode(message).finish()
|
|
840
841
|
};
|
|
842
|
+
},
|
|
843
|
+
registerTypeUrl() {
|
|
844
|
+
Header.registerTypeUrl();
|
|
845
|
+
Validator.registerTypeUrl();
|
|
841
846
|
}
|
|
842
847
|
};
|
|
843
|
-
GlobalDecoderRegistry.register(HistoricalInfo.typeUrl, HistoricalInfo);
|
|
844
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(HistoricalInfo.aminoType, HistoricalInfo.typeUrl);
|
|
845
848
|
function createBaseCommissionRates(): CommissionRates {
|
|
846
849
|
return {
|
|
847
850
|
rate: "",
|
|
@@ -860,13 +863,13 @@ export const CommissionRates = {
|
|
|
860
863
|
},
|
|
861
864
|
encode(message: CommissionRates, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
862
865
|
if (message.rate !== "") {
|
|
863
|
-
writer.uint32(10).string(message.rate);
|
|
866
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.rate, 18).atomics);
|
|
864
867
|
}
|
|
865
868
|
if (message.maxRate !== "") {
|
|
866
|
-
writer.uint32(18).string(message.maxRate);
|
|
869
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.maxRate, 18).atomics);
|
|
867
870
|
}
|
|
868
871
|
if (message.maxChangeRate !== "") {
|
|
869
|
-
writer.uint32(26).string(message.maxChangeRate);
|
|
872
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.maxChangeRate, 18).atomics);
|
|
870
873
|
}
|
|
871
874
|
return writer;
|
|
872
875
|
},
|
|
@@ -878,13 +881,13 @@ export const CommissionRates = {
|
|
|
878
881
|
const tag = reader.uint32();
|
|
879
882
|
switch (tag >>> 3) {
|
|
880
883
|
case 1:
|
|
881
|
-
message.rate = reader.string();
|
|
884
|
+
message.rate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
882
885
|
break;
|
|
883
886
|
case 2:
|
|
884
|
-
message.maxRate = reader.string();
|
|
887
|
+
message.maxRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
885
888
|
break;
|
|
886
889
|
case 3:
|
|
887
|
-
message.maxChangeRate = reader.string();
|
|
890
|
+
message.maxChangeRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
888
891
|
break;
|
|
889
892
|
default:
|
|
890
893
|
reader.skipType(tag & 7);
|
|
@@ -915,9 +918,9 @@ export const CommissionRates = {
|
|
|
915
918
|
},
|
|
916
919
|
toAmino(message: CommissionRates): CommissionRatesAmino {
|
|
917
920
|
const obj: any = {};
|
|
918
|
-
obj.rate = message.rate ?? "";
|
|
919
|
-
obj.max_rate = message.maxRate ?? "";
|
|
920
|
-
obj.max_change_rate = message.maxChangeRate ?? "";
|
|
921
|
+
obj.rate = Decimal.fromUserInput(message.rate, 18).atomics ?? "";
|
|
922
|
+
obj.max_rate = Decimal.fromUserInput(message.maxRate, 18).atomics ?? "";
|
|
923
|
+
obj.max_change_rate = Decimal.fromUserInput(message.maxChangeRate, 18).atomics ?? "";
|
|
921
924
|
return obj;
|
|
922
925
|
},
|
|
923
926
|
fromAminoMsg(object: CommissionRatesAminoMsg): CommissionRates {
|
|
@@ -940,10 +943,9 @@ export const CommissionRates = {
|
|
|
940
943
|
typeUrl: "/cosmos.staking.v1beta1.CommissionRates",
|
|
941
944
|
value: CommissionRates.encode(message).finish()
|
|
942
945
|
};
|
|
943
|
-
}
|
|
946
|
+
},
|
|
947
|
+
registerTypeUrl() {}
|
|
944
948
|
};
|
|
945
|
-
GlobalDecoderRegistry.register(CommissionRates.typeUrl, CommissionRates);
|
|
946
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(CommissionRates.aminoType, CommissionRates.typeUrl);
|
|
947
949
|
function createBaseCommission(): Commission {
|
|
948
950
|
return {
|
|
949
951
|
commissionRates: CommissionRates.fromPartial({}),
|
|
@@ -1030,10 +1032,11 @@ export const Commission = {
|
|
|
1030
1032
|
typeUrl: "/cosmos.staking.v1beta1.Commission",
|
|
1031
1033
|
value: Commission.encode(message).finish()
|
|
1032
1034
|
};
|
|
1035
|
+
},
|
|
1036
|
+
registerTypeUrl() {
|
|
1037
|
+
CommissionRates.registerTypeUrl();
|
|
1033
1038
|
}
|
|
1034
1039
|
};
|
|
1035
|
-
GlobalDecoderRegistry.register(Commission.typeUrl, Commission);
|
|
1036
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Commission.aminoType, Commission.typeUrl);
|
|
1037
1040
|
function createBaseDescription(): Description {
|
|
1038
1041
|
return {
|
|
1039
1042
|
moniker: "",
|
|
@@ -1156,10 +1159,9 @@ export const Description = {
|
|
|
1156
1159
|
typeUrl: "/cosmos.staking.v1beta1.Description",
|
|
1157
1160
|
value: Description.encode(message).finish()
|
|
1158
1161
|
};
|
|
1159
|
-
}
|
|
1162
|
+
},
|
|
1163
|
+
registerTypeUrl() {}
|
|
1160
1164
|
};
|
|
1161
|
-
GlobalDecoderRegistry.register(Description.typeUrl, Description);
|
|
1162
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Description.aminoType, Description.typeUrl);
|
|
1163
1165
|
function createBaseValidator(): Validator {
|
|
1164
1166
|
return {
|
|
1165
1167
|
operatorAddress: "",
|
|
@@ -1203,7 +1205,7 @@ export const Validator = {
|
|
|
1203
1205
|
writer.uint32(42).string(message.tokens);
|
|
1204
1206
|
}
|
|
1205
1207
|
if (message.delegatorShares !== "") {
|
|
1206
|
-
writer.uint32(50).string(message.delegatorShares);
|
|
1208
|
+
writer.uint32(50).string(Decimal.fromUserInput(message.delegatorShares, 18).atomics);
|
|
1207
1209
|
}
|
|
1208
1210
|
if (message.description !== undefined) {
|
|
1209
1211
|
Description.encode(message.description, writer.uint32(58).fork()).ldelim();
|
|
@@ -1253,7 +1255,7 @@ export const Validator = {
|
|
|
1253
1255
|
message.tokens = reader.string();
|
|
1254
1256
|
break;
|
|
1255
1257
|
case 6:
|
|
1256
|
-
message.delegatorShares = reader.string();
|
|
1258
|
+
message.delegatorShares = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1257
1259
|
break;
|
|
1258
1260
|
case 7:
|
|
1259
1261
|
message.description = Description.decode(reader, reader.uint32());
|
|
@@ -1355,7 +1357,7 @@ export const Validator = {
|
|
|
1355
1357
|
obj.jailed = message.jailed === false ? undefined : message.jailed;
|
|
1356
1358
|
obj.status = message.status === 0 ? undefined : message.status;
|
|
1357
1359
|
obj.tokens = message.tokens === "" ? undefined : message.tokens;
|
|
1358
|
-
obj.delegator_shares = message.delegatorShares === "" ? undefined : message.delegatorShares;
|
|
1360
|
+
obj.delegator_shares = message.delegatorShares === "" ? undefined : Decimal.fromUserInput(message.delegatorShares, 18).atomics;
|
|
1359
1361
|
obj.description = message.description ? Description.toAmino(message.description) : Description.toAmino(Description.fromPartial({}));
|
|
1360
1362
|
obj.unbonding_height = message.unbondingHeight !== BigInt(0) ? message.unbondingHeight?.toString() : undefined;
|
|
1361
1363
|
obj.unbonding_time = message.unbondingTime ? Timestamp.toAmino(toTimestamp(message.unbondingTime)) : new Date();
|
|
@@ -1389,10 +1391,12 @@ export const Validator = {
|
|
|
1389
1391
|
typeUrl: "/cosmos.staking.v1beta1.Validator",
|
|
1390
1392
|
value: Validator.encode(message).finish()
|
|
1391
1393
|
};
|
|
1394
|
+
},
|
|
1395
|
+
registerTypeUrl() {
|
|
1396
|
+
Description.registerTypeUrl();
|
|
1397
|
+
Commission.registerTypeUrl();
|
|
1392
1398
|
}
|
|
1393
1399
|
};
|
|
1394
|
-
GlobalDecoderRegistry.register(Validator.typeUrl, Validator);
|
|
1395
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Validator.aminoType, Validator.typeUrl);
|
|
1396
1400
|
function createBaseValAddresses(): ValAddresses {
|
|
1397
1401
|
return {
|
|
1398
1402
|
addresses: []
|
|
@@ -1469,10 +1473,9 @@ export const ValAddresses = {
|
|
|
1469
1473
|
typeUrl: "/cosmos.staking.v1beta1.ValAddresses",
|
|
1470
1474
|
value: ValAddresses.encode(message).finish()
|
|
1471
1475
|
};
|
|
1472
|
-
}
|
|
1476
|
+
},
|
|
1477
|
+
registerTypeUrl() {}
|
|
1473
1478
|
};
|
|
1474
|
-
GlobalDecoderRegistry.register(ValAddresses.typeUrl, ValAddresses);
|
|
1475
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ValAddresses.aminoType, ValAddresses.typeUrl);
|
|
1476
1479
|
function createBaseDVPair(): DVPair {
|
|
1477
1480
|
return {
|
|
1478
1481
|
delegatorAddress: "",
|
|
@@ -1559,10 +1562,9 @@ export const DVPair = {
|
|
|
1559
1562
|
typeUrl: "/cosmos.staking.v1beta1.DVPair",
|
|
1560
1563
|
value: DVPair.encode(message).finish()
|
|
1561
1564
|
};
|
|
1562
|
-
}
|
|
1565
|
+
},
|
|
1566
|
+
registerTypeUrl() {}
|
|
1563
1567
|
};
|
|
1564
|
-
GlobalDecoderRegistry.register(DVPair.typeUrl, DVPair);
|
|
1565
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(DVPair.aminoType, DVPair.typeUrl);
|
|
1566
1568
|
function createBaseDVPairs(): DVPairs {
|
|
1567
1569
|
return {
|
|
1568
1570
|
pairs: []
|
|
@@ -1639,10 +1641,11 @@ export const DVPairs = {
|
|
|
1639
1641
|
typeUrl: "/cosmos.staking.v1beta1.DVPairs",
|
|
1640
1642
|
value: DVPairs.encode(message).finish()
|
|
1641
1643
|
};
|
|
1644
|
+
},
|
|
1645
|
+
registerTypeUrl() {
|
|
1646
|
+
DVPair.registerTypeUrl();
|
|
1642
1647
|
}
|
|
1643
1648
|
};
|
|
1644
|
-
GlobalDecoderRegistry.register(DVPairs.typeUrl, DVPairs);
|
|
1645
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(DVPairs.aminoType, DVPairs.typeUrl);
|
|
1646
1649
|
function createBaseDVVTriplet(): DVVTriplet {
|
|
1647
1650
|
return {
|
|
1648
1651
|
delegatorAddress: "",
|
|
@@ -1741,10 +1744,9 @@ export const DVVTriplet = {
|
|
|
1741
1744
|
typeUrl: "/cosmos.staking.v1beta1.DVVTriplet",
|
|
1742
1745
|
value: DVVTriplet.encode(message).finish()
|
|
1743
1746
|
};
|
|
1744
|
-
}
|
|
1747
|
+
},
|
|
1748
|
+
registerTypeUrl() {}
|
|
1745
1749
|
};
|
|
1746
|
-
GlobalDecoderRegistry.register(DVVTriplet.typeUrl, DVVTriplet);
|
|
1747
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(DVVTriplet.aminoType, DVVTriplet.typeUrl);
|
|
1748
1750
|
function createBaseDVVTriplets(): DVVTriplets {
|
|
1749
1751
|
return {
|
|
1750
1752
|
triplets: []
|
|
@@ -1821,10 +1823,11 @@ export const DVVTriplets = {
|
|
|
1821
1823
|
typeUrl: "/cosmos.staking.v1beta1.DVVTriplets",
|
|
1822
1824
|
value: DVVTriplets.encode(message).finish()
|
|
1823
1825
|
};
|
|
1826
|
+
},
|
|
1827
|
+
registerTypeUrl() {
|
|
1828
|
+
DVVTriplet.registerTypeUrl();
|
|
1824
1829
|
}
|
|
1825
1830
|
};
|
|
1826
|
-
GlobalDecoderRegistry.register(DVVTriplets.typeUrl, DVVTriplets);
|
|
1827
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(DVVTriplets.aminoType, DVVTriplets.typeUrl);
|
|
1828
1831
|
function createBaseDelegation(): Delegation {
|
|
1829
1832
|
return {
|
|
1830
1833
|
delegatorAddress: "",
|
|
@@ -1849,7 +1852,7 @@ export const Delegation = {
|
|
|
1849
1852
|
writer.uint32(18).string(message.validatorAddress);
|
|
1850
1853
|
}
|
|
1851
1854
|
if (message.shares !== "") {
|
|
1852
|
-
writer.uint32(26).string(message.shares);
|
|
1855
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.shares, 18).atomics);
|
|
1853
1856
|
}
|
|
1854
1857
|
return writer;
|
|
1855
1858
|
},
|
|
@@ -1867,7 +1870,7 @@ export const Delegation = {
|
|
|
1867
1870
|
message.validatorAddress = reader.string();
|
|
1868
1871
|
break;
|
|
1869
1872
|
case 3:
|
|
1870
|
-
message.shares = reader.string();
|
|
1873
|
+
message.shares = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1871
1874
|
break;
|
|
1872
1875
|
default:
|
|
1873
1876
|
reader.skipType(tag & 7);
|
|
@@ -1900,7 +1903,7 @@ export const Delegation = {
|
|
|
1900
1903
|
const obj: any = {};
|
|
1901
1904
|
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
1902
1905
|
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
1903
|
-
obj.shares = message.shares === "" ? undefined : message.shares;
|
|
1906
|
+
obj.shares = message.shares === "" ? undefined : Decimal.fromUserInput(message.shares, 18).atomics;
|
|
1904
1907
|
return obj;
|
|
1905
1908
|
},
|
|
1906
1909
|
fromAminoMsg(object: DelegationAminoMsg): Delegation {
|
|
@@ -1923,10 +1926,9 @@ export const Delegation = {
|
|
|
1923
1926
|
typeUrl: "/cosmos.staking.v1beta1.Delegation",
|
|
1924
1927
|
value: Delegation.encode(message).finish()
|
|
1925
1928
|
};
|
|
1926
|
-
}
|
|
1929
|
+
},
|
|
1930
|
+
registerTypeUrl() {}
|
|
1927
1931
|
};
|
|
1928
|
-
GlobalDecoderRegistry.register(Delegation.typeUrl, Delegation);
|
|
1929
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Delegation.aminoType, Delegation.typeUrl);
|
|
1930
1932
|
function createBaseUnbondingDelegation(): UnbondingDelegation {
|
|
1931
1933
|
return {
|
|
1932
1934
|
delegatorAddress: "",
|
|
@@ -2027,10 +2029,11 @@ export const UnbondingDelegation = {
|
|
|
2027
2029
|
typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation",
|
|
2028
2030
|
value: UnbondingDelegation.encode(message).finish()
|
|
2029
2031
|
};
|
|
2032
|
+
},
|
|
2033
|
+
registerTypeUrl() {
|
|
2034
|
+
UnbondingDelegationEntry.registerTypeUrl();
|
|
2030
2035
|
}
|
|
2031
2036
|
};
|
|
2032
|
-
GlobalDecoderRegistry.register(UnbondingDelegation.typeUrl, UnbondingDelegation);
|
|
2033
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(UnbondingDelegation.aminoType, UnbondingDelegation.typeUrl);
|
|
2034
2037
|
function createBaseUnbondingDelegationEntry(): UnbondingDelegationEntry {
|
|
2035
2038
|
return {
|
|
2036
2039
|
creationHeight: BigInt(0),
|
|
@@ -2165,10 +2168,9 @@ export const UnbondingDelegationEntry = {
|
|
|
2165
2168
|
typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry",
|
|
2166
2169
|
value: UnbondingDelegationEntry.encode(message).finish()
|
|
2167
2170
|
};
|
|
2168
|
-
}
|
|
2171
|
+
},
|
|
2172
|
+
registerTypeUrl() {}
|
|
2169
2173
|
};
|
|
2170
|
-
GlobalDecoderRegistry.register(UnbondingDelegationEntry.typeUrl, UnbondingDelegationEntry);
|
|
2171
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(UnbondingDelegationEntry.aminoType, UnbondingDelegationEntry.typeUrl);
|
|
2172
2174
|
function createBaseRedelegationEntry(): RedelegationEntry {
|
|
2173
2175
|
return {
|
|
2174
2176
|
creationHeight: BigInt(0),
|
|
@@ -2199,7 +2201,7 @@ export const RedelegationEntry = {
|
|
|
2199
2201
|
writer.uint32(26).string(message.initialBalance);
|
|
2200
2202
|
}
|
|
2201
2203
|
if (message.sharesDst !== "") {
|
|
2202
|
-
writer.uint32(34).string(message.sharesDst);
|
|
2204
|
+
writer.uint32(34).string(Decimal.fromUserInput(message.sharesDst, 18).atomics);
|
|
2203
2205
|
}
|
|
2204
2206
|
if (message.unbondingId !== BigInt(0)) {
|
|
2205
2207
|
writer.uint32(40).uint64(message.unbondingId);
|
|
@@ -2226,7 +2228,7 @@ export const RedelegationEntry = {
|
|
|
2226
2228
|
message.initialBalance = reader.string();
|
|
2227
2229
|
break;
|
|
2228
2230
|
case 4:
|
|
2229
|
-
message.sharesDst = reader.string();
|
|
2231
|
+
message.sharesDst = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2230
2232
|
break;
|
|
2231
2233
|
case 5:
|
|
2232
2234
|
message.unbondingId = reader.uint64();
|
|
@@ -2278,7 +2280,7 @@ export const RedelegationEntry = {
|
|
|
2278
2280
|
obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight?.toString() : undefined;
|
|
2279
2281
|
obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : new Date();
|
|
2280
2282
|
obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance;
|
|
2281
|
-
obj.shares_dst = message.sharesDst === "" ? undefined : message.sharesDst;
|
|
2283
|
+
obj.shares_dst = message.sharesDst === "" ? undefined : Decimal.fromUserInput(message.sharesDst, 18).atomics;
|
|
2282
2284
|
obj.unbonding_id = message.unbondingId !== BigInt(0) ? message.unbondingId?.toString() : undefined;
|
|
2283
2285
|
obj.unbonding_on_hold_ref_count = message.unbondingOnHoldRefCount !== BigInt(0) ? message.unbondingOnHoldRefCount?.toString() : undefined;
|
|
2284
2286
|
return obj;
|
|
@@ -2303,10 +2305,9 @@ export const RedelegationEntry = {
|
|
|
2303
2305
|
typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry",
|
|
2304
2306
|
value: RedelegationEntry.encode(message).finish()
|
|
2305
2307
|
};
|
|
2306
|
-
}
|
|
2308
|
+
},
|
|
2309
|
+
registerTypeUrl() {}
|
|
2307
2310
|
};
|
|
2308
|
-
GlobalDecoderRegistry.register(RedelegationEntry.typeUrl, RedelegationEntry);
|
|
2309
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(RedelegationEntry.aminoType, RedelegationEntry.typeUrl);
|
|
2310
2311
|
function createBaseRedelegation(): Redelegation {
|
|
2311
2312
|
return {
|
|
2312
2313
|
delegatorAddress: "",
|
|
@@ -2419,10 +2420,11 @@ export const Redelegation = {
|
|
|
2419
2420
|
typeUrl: "/cosmos.staking.v1beta1.Redelegation",
|
|
2420
2421
|
value: Redelegation.encode(message).finish()
|
|
2421
2422
|
};
|
|
2423
|
+
},
|
|
2424
|
+
registerTypeUrl() {
|
|
2425
|
+
RedelegationEntry.registerTypeUrl();
|
|
2422
2426
|
}
|
|
2423
2427
|
};
|
|
2424
|
-
GlobalDecoderRegistry.register(Redelegation.typeUrl, Redelegation);
|
|
2425
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Redelegation.aminoType, Redelegation.typeUrl);
|
|
2426
2428
|
function createBaseParams(): Params {
|
|
2427
2429
|
return {
|
|
2428
2430
|
unbondingTime: Duration.fromPartial({}),
|
|
@@ -2459,7 +2461,7 @@ export const Params = {
|
|
|
2459
2461
|
writer.uint32(42).string(message.bondDenom);
|
|
2460
2462
|
}
|
|
2461
2463
|
if (message.minCommissionRate !== "") {
|
|
2462
|
-
writer.uint32(50).string(message.minCommissionRate);
|
|
2464
|
+
writer.uint32(50).string(Decimal.fromUserInput(message.minCommissionRate, 18).atomics);
|
|
2463
2465
|
}
|
|
2464
2466
|
return writer;
|
|
2465
2467
|
},
|
|
@@ -2486,7 +2488,7 @@ export const Params = {
|
|
|
2486
2488
|
message.bondDenom = reader.string();
|
|
2487
2489
|
break;
|
|
2488
2490
|
case 6:
|
|
2489
|
-
message.minCommissionRate = reader.string();
|
|
2491
|
+
message.minCommissionRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2490
2492
|
break;
|
|
2491
2493
|
default:
|
|
2492
2494
|
reader.skipType(tag & 7);
|
|
@@ -2534,7 +2536,7 @@ export const Params = {
|
|
|
2534
2536
|
obj.max_entries = message.maxEntries === 0 ? undefined : message.maxEntries;
|
|
2535
2537
|
obj.historical_entries = message.historicalEntries === 0 ? undefined : message.historicalEntries;
|
|
2536
2538
|
obj.bond_denom = message.bondDenom === "" ? undefined : message.bondDenom;
|
|
2537
|
-
obj.min_commission_rate = message.minCommissionRate ?? "";
|
|
2539
|
+
obj.min_commission_rate = Decimal.fromUserInput(message.minCommissionRate, 18).atomics ?? "";
|
|
2538
2540
|
return obj;
|
|
2539
2541
|
},
|
|
2540
2542
|
fromAminoMsg(object: ParamsAminoMsg): Params {
|
|
@@ -2557,10 +2559,9 @@ export const Params = {
|
|
|
2557
2559
|
typeUrl: "/cosmos.staking.v1beta1.Params",
|
|
2558
2560
|
value: Params.encode(message).finish()
|
|
2559
2561
|
};
|
|
2560
|
-
}
|
|
2562
|
+
},
|
|
2563
|
+
registerTypeUrl() {}
|
|
2561
2564
|
};
|
|
2562
|
-
GlobalDecoderRegistry.register(Params.typeUrl, Params);
|
|
2563
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
|
|
2564
2565
|
function createBaseDelegationResponse(): DelegationResponse {
|
|
2565
2566
|
return {
|
|
2566
2567
|
delegation: Delegation.fromPartial({}),
|
|
@@ -2647,10 +2648,12 @@ export const DelegationResponse = {
|
|
|
2647
2648
|
typeUrl: "/cosmos.staking.v1beta1.DelegationResponse",
|
|
2648
2649
|
value: DelegationResponse.encode(message).finish()
|
|
2649
2650
|
};
|
|
2651
|
+
},
|
|
2652
|
+
registerTypeUrl() {
|
|
2653
|
+
Delegation.registerTypeUrl();
|
|
2654
|
+
Coin.registerTypeUrl();
|
|
2650
2655
|
}
|
|
2651
2656
|
};
|
|
2652
|
-
GlobalDecoderRegistry.register(DelegationResponse.typeUrl, DelegationResponse);
|
|
2653
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(DelegationResponse.aminoType, DelegationResponse.typeUrl);
|
|
2654
2657
|
function createBaseRedelegationEntryResponse(): RedelegationEntryResponse {
|
|
2655
2658
|
return {
|
|
2656
2659
|
redelegationEntry: RedelegationEntry.fromPartial({}),
|
|
@@ -2737,10 +2740,11 @@ export const RedelegationEntryResponse = {
|
|
|
2737
2740
|
typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse",
|
|
2738
2741
|
value: RedelegationEntryResponse.encode(message).finish()
|
|
2739
2742
|
};
|
|
2743
|
+
},
|
|
2744
|
+
registerTypeUrl() {
|
|
2745
|
+
RedelegationEntry.registerTypeUrl();
|
|
2740
2746
|
}
|
|
2741
2747
|
};
|
|
2742
|
-
GlobalDecoderRegistry.register(RedelegationEntryResponse.typeUrl, RedelegationEntryResponse);
|
|
2743
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(RedelegationEntryResponse.aminoType, RedelegationEntryResponse.typeUrl);
|
|
2744
2748
|
function createBaseRedelegationResponse(): RedelegationResponse {
|
|
2745
2749
|
return {
|
|
2746
2750
|
redelegation: Redelegation.fromPartial({}),
|
|
@@ -2829,10 +2833,12 @@ export const RedelegationResponse = {
|
|
|
2829
2833
|
typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse",
|
|
2830
2834
|
value: RedelegationResponse.encode(message).finish()
|
|
2831
2835
|
};
|
|
2836
|
+
},
|
|
2837
|
+
registerTypeUrl() {
|
|
2838
|
+
Redelegation.registerTypeUrl();
|
|
2839
|
+
RedelegationEntryResponse.registerTypeUrl();
|
|
2832
2840
|
}
|
|
2833
2841
|
};
|
|
2834
|
-
GlobalDecoderRegistry.register(RedelegationResponse.typeUrl, RedelegationResponse);
|
|
2835
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(RedelegationResponse.aminoType, RedelegationResponse.typeUrl);
|
|
2836
2842
|
function createBasePool(): Pool {
|
|
2837
2843
|
return {
|
|
2838
2844
|
notBondedTokens: "",
|
|
@@ -2919,10 +2925,9 @@ export const Pool = {
|
|
|
2919
2925
|
typeUrl: "/cosmos.staking.v1beta1.Pool",
|
|
2920
2926
|
value: Pool.encode(message).finish()
|
|
2921
2927
|
};
|
|
2922
|
-
}
|
|
2928
|
+
},
|
|
2929
|
+
registerTypeUrl() {}
|
|
2923
2930
|
};
|
|
2924
|
-
GlobalDecoderRegistry.register(Pool.typeUrl, Pool);
|
|
2925
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Pool.aminoType, Pool.typeUrl);
|
|
2926
2931
|
function createBaseValidatorUpdates(): ValidatorUpdates {
|
|
2927
2932
|
return {
|
|
2928
2933
|
updates: []
|
|
@@ -2999,7 +3004,8 @@ export const ValidatorUpdates = {
|
|
|
2999
3004
|
typeUrl: "/cosmos.staking.v1beta1.ValidatorUpdates",
|
|
3000
3005
|
value: ValidatorUpdates.encode(message).finish()
|
|
3001
3006
|
};
|
|
3007
|
+
},
|
|
3008
|
+
registerTypeUrl() {
|
|
3009
|
+
ValidatorUpdate.registerTypeUrl();
|
|
3002
3010
|
}
|
|
3003
|
-
};
|
|
3004
|
-
GlobalDecoderRegistry.register(ValidatorUpdates.typeUrl, ValidatorUpdates);
|
|
3005
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorUpdates.aminoType, ValidatorUpdates.typeUrl);
|
|
3011
|
+
};
|
|
@@ -1,3 +1,137 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation, MsgUpdateParams } from "./tx";
|
|
3
|
-
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation], ["/cosmos.staking.v1beta1.MsgUpdateParams", MsgUpdateParams]];
|
|
3
|
+
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation], ["/cosmos.staking.v1beta1.MsgUpdateParams", MsgUpdateParams]];
|
|
4
|
+
export const MessageComposer = {
|
|
5
|
+
encoded: {
|
|
6
|
+
createValidator(value: MsgCreateValidator) {
|
|
7
|
+
return {
|
|
8
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
|
|
9
|
+
value: MsgCreateValidator.encode(value).finish()
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
editValidator(value: MsgEditValidator) {
|
|
13
|
+
return {
|
|
14
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
|
|
15
|
+
value: MsgEditValidator.encode(value).finish()
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
delegate(value: MsgDelegate) {
|
|
19
|
+
return {
|
|
20
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
|
|
21
|
+
value: MsgDelegate.encode(value).finish()
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
beginRedelegate(value: MsgBeginRedelegate) {
|
|
25
|
+
return {
|
|
26
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
|
|
27
|
+
value: MsgBeginRedelegate.encode(value).finish()
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
undelegate(value: MsgUndelegate) {
|
|
31
|
+
return {
|
|
32
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
|
|
33
|
+
value: MsgUndelegate.encode(value).finish()
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation) {
|
|
37
|
+
return {
|
|
38
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
|
|
39
|
+
value: MsgCancelUnbondingDelegation.encode(value).finish()
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
updateParams(value: MsgUpdateParams) {
|
|
43
|
+
return {
|
|
44
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
|
|
45
|
+
value: MsgUpdateParams.encode(value).finish()
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
withTypeUrl: {
|
|
50
|
+
createValidator(value: MsgCreateValidator) {
|
|
51
|
+
return {
|
|
52
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
|
|
53
|
+
value
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
editValidator(value: MsgEditValidator) {
|
|
57
|
+
return {
|
|
58
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
|
|
59
|
+
value
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
delegate(value: MsgDelegate) {
|
|
63
|
+
return {
|
|
64
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
|
|
65
|
+
value
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
beginRedelegate(value: MsgBeginRedelegate) {
|
|
69
|
+
return {
|
|
70
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
|
|
71
|
+
value
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
undelegate(value: MsgUndelegate) {
|
|
75
|
+
return {
|
|
76
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
|
|
77
|
+
value
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation) {
|
|
81
|
+
return {
|
|
82
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
|
|
83
|
+
value
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
updateParams(value: MsgUpdateParams) {
|
|
87
|
+
return {
|
|
88
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
|
|
89
|
+
value
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
fromPartial: {
|
|
94
|
+
createValidator(value: MsgCreateValidator) {
|
|
95
|
+
return {
|
|
96
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
|
|
97
|
+
value: MsgCreateValidator.fromPartial(value)
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
editValidator(value: MsgEditValidator) {
|
|
101
|
+
return {
|
|
102
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
|
|
103
|
+
value: MsgEditValidator.fromPartial(value)
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
delegate(value: MsgDelegate) {
|
|
107
|
+
return {
|
|
108
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
|
|
109
|
+
value: MsgDelegate.fromPartial(value)
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
beginRedelegate(value: MsgBeginRedelegate) {
|
|
113
|
+
return {
|
|
114
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
|
|
115
|
+
value: MsgBeginRedelegate.fromPartial(value)
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
undelegate(value: MsgUndelegate) {
|
|
119
|
+
return {
|
|
120
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
|
|
121
|
+
value: MsgUndelegate.fromPartial(value)
|
|
122
|
+
};
|
|
123
|
+
},
|
|
124
|
+
cancelUnbondingDelegation(value: MsgCancelUnbondingDelegation) {
|
|
125
|
+
return {
|
|
126
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
|
|
127
|
+
value: MsgCancelUnbondingDelegation.fromPartial(value)
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
updateParams(value: MsgUpdateParams) {
|
|
131
|
+
return {
|
|
132
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
|
|
133
|
+
value: MsgUpdateParams.fromPartial(value)
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
@@ -5,41 +5,48 @@ export const createCreateValidator = (clientResolver?: SigningClientResolver) =>
|
|
|
5
5
|
clientResolver,
|
|
6
6
|
typeUrl: MsgCreateValidator.typeUrl,
|
|
7
7
|
encoders: toEncoders(MsgCreateValidator),
|
|
8
|
-
converters: toConverters(MsgCreateValidator)
|
|
8
|
+
converters: toConverters(MsgCreateValidator),
|
|
9
|
+
deps: [MsgCreateValidator]
|
|
9
10
|
});
|
|
10
11
|
export const createEditValidator = (clientResolver?: SigningClientResolver) => buildTx<MsgEditValidator>({
|
|
11
12
|
clientResolver,
|
|
12
13
|
typeUrl: MsgEditValidator.typeUrl,
|
|
13
14
|
encoders: toEncoders(MsgEditValidator),
|
|
14
|
-
converters: toConverters(MsgEditValidator)
|
|
15
|
+
converters: toConverters(MsgEditValidator),
|
|
16
|
+
deps: [MsgEditValidator]
|
|
15
17
|
});
|
|
16
18
|
export const createDelegate = (clientResolver?: SigningClientResolver) => buildTx<MsgDelegate>({
|
|
17
19
|
clientResolver,
|
|
18
20
|
typeUrl: MsgDelegate.typeUrl,
|
|
19
21
|
encoders: toEncoders(MsgDelegate),
|
|
20
|
-
converters: toConverters(MsgDelegate)
|
|
22
|
+
converters: toConverters(MsgDelegate),
|
|
23
|
+
deps: [MsgDelegate]
|
|
21
24
|
});
|
|
22
25
|
export const createBeginRedelegate = (clientResolver?: SigningClientResolver) => buildTx<MsgBeginRedelegate>({
|
|
23
26
|
clientResolver,
|
|
24
27
|
typeUrl: MsgBeginRedelegate.typeUrl,
|
|
25
28
|
encoders: toEncoders(MsgBeginRedelegate),
|
|
26
|
-
converters: toConverters(MsgBeginRedelegate)
|
|
29
|
+
converters: toConverters(MsgBeginRedelegate),
|
|
30
|
+
deps: [MsgBeginRedelegate]
|
|
27
31
|
});
|
|
28
32
|
export const createUndelegate = (clientResolver?: SigningClientResolver) => buildTx<MsgUndelegate>({
|
|
29
33
|
clientResolver,
|
|
30
34
|
typeUrl: MsgUndelegate.typeUrl,
|
|
31
35
|
encoders: toEncoders(MsgUndelegate),
|
|
32
|
-
converters: toConverters(MsgUndelegate)
|
|
36
|
+
converters: toConverters(MsgUndelegate),
|
|
37
|
+
deps: [MsgUndelegate]
|
|
33
38
|
});
|
|
34
39
|
export const createCancelUnbondingDelegation = (clientResolver?: SigningClientResolver) => buildTx<MsgCancelUnbondingDelegation>({
|
|
35
40
|
clientResolver,
|
|
36
41
|
typeUrl: MsgCancelUnbondingDelegation.typeUrl,
|
|
37
42
|
encoders: toEncoders(MsgCancelUnbondingDelegation),
|
|
38
|
-
converters: toConverters(MsgCancelUnbondingDelegation)
|
|
43
|
+
converters: toConverters(MsgCancelUnbondingDelegation),
|
|
44
|
+
deps: [MsgCancelUnbondingDelegation]
|
|
39
45
|
});
|
|
40
46
|
export const createUpdateParams = (clientResolver?: SigningClientResolver) => buildTx<MsgUpdateParams>({
|
|
41
47
|
clientResolver,
|
|
42
48
|
typeUrl: MsgUpdateParams.typeUrl,
|
|
43
49
|
encoders: toEncoders(MsgUpdateParams),
|
|
44
|
-
converters: toConverters(MsgUpdateParams)
|
|
50
|
+
converters: toConverters(MsgUpdateParams),
|
|
51
|
+
deps: [MsgUpdateParams]
|
|
45
52
|
});
|