@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
|
@@ -4,7 +4,6 @@ import { Consensus, ConsensusAmino } from "../../../../tendermint/version/types"
|
|
|
4
4
|
import { Timestamp } from "../../../../google/protobuf/timestamp";
|
|
5
5
|
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
6
6
|
import { DeepPartial, toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../../helpers";
|
|
7
|
-
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
8
7
|
/**
|
|
9
8
|
* Block is tendermint type Block, with the Header proposer address
|
|
10
9
|
* field converted to bech32 string.
|
|
@@ -215,10 +214,14 @@ export const Block = {
|
|
|
215
214
|
typeUrl: "/cosmos.base.tendermint.v1beta1.Block",
|
|
216
215
|
value: Block.encode(message).finish()
|
|
217
216
|
};
|
|
217
|
+
},
|
|
218
|
+
registerTypeUrl() {
|
|
219
|
+
Header.registerTypeUrl();
|
|
220
|
+
Data.registerTypeUrl();
|
|
221
|
+
EvidenceList.registerTypeUrl();
|
|
222
|
+
Commit.registerTypeUrl();
|
|
218
223
|
}
|
|
219
224
|
};
|
|
220
|
-
GlobalDecoderRegistry.register(Block.typeUrl, Block);
|
|
221
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Block.aminoType, Block.typeUrl);
|
|
222
225
|
function createBaseHeader(): Header {
|
|
223
226
|
return {
|
|
224
227
|
version: Consensus.fromPartial({}),
|
|
@@ -449,7 +452,9 @@ export const Header = {
|
|
|
449
452
|
typeUrl: "/cosmos.base.tendermint.v1beta1.Header",
|
|
450
453
|
value: Header.encode(message).finish()
|
|
451
454
|
};
|
|
455
|
+
},
|
|
456
|
+
registerTypeUrl() {
|
|
457
|
+
Consensus.registerTypeUrl();
|
|
458
|
+
BlockID.registerTypeUrl();
|
|
452
459
|
}
|
|
453
|
-
};
|
|
454
|
-
GlobalDecoderRegistry.register(Header.typeUrl, Header);
|
|
455
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Header.aminoType, Header.typeUrl);
|
|
460
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
2
|
import { DeepPartial } from "../../../helpers";
|
|
3
|
-
import {
|
|
3
|
+
import { Decimal } from "@interchainjs/math";
|
|
4
4
|
/**
|
|
5
5
|
* Coin defines a token with a denomination and an amount.
|
|
6
6
|
*
|
|
@@ -187,10 +187,9 @@ export const Coin = {
|
|
|
187
187
|
typeUrl: "/cosmos.base.v1beta1.Coin",
|
|
188
188
|
value: Coin.encode(message).finish()
|
|
189
189
|
};
|
|
190
|
-
}
|
|
190
|
+
},
|
|
191
|
+
registerTypeUrl() {}
|
|
191
192
|
};
|
|
192
|
-
GlobalDecoderRegistry.register(Coin.typeUrl, Coin);
|
|
193
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Coin.aminoType, Coin.typeUrl);
|
|
194
193
|
function createBaseDecCoin(): DecCoin {
|
|
195
194
|
return {
|
|
196
195
|
denom: "",
|
|
@@ -211,7 +210,7 @@ export const DecCoin = {
|
|
|
211
210
|
writer.uint32(10).string(message.denom);
|
|
212
211
|
}
|
|
213
212
|
if (message.amount !== "") {
|
|
214
|
-
writer.uint32(18).string(message.amount);
|
|
213
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.amount, 18).atomics);
|
|
215
214
|
}
|
|
216
215
|
return writer;
|
|
217
216
|
},
|
|
@@ -226,7 +225,7 @@ export const DecCoin = {
|
|
|
226
225
|
message.denom = reader.string();
|
|
227
226
|
break;
|
|
228
227
|
case 2:
|
|
229
|
-
message.amount = reader.string();
|
|
228
|
+
message.amount = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
230
229
|
break;
|
|
231
230
|
default:
|
|
232
231
|
reader.skipType(tag & 7);
|
|
@@ -254,7 +253,7 @@ export const DecCoin = {
|
|
|
254
253
|
toAmino(message: DecCoin): DecCoinAmino {
|
|
255
254
|
const obj: any = {};
|
|
256
255
|
obj.denom = message.denom === "" ? undefined : message.denom;
|
|
257
|
-
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
256
|
+
obj.amount = message.amount === "" ? undefined : Decimal.fromUserInput(message.amount, 18).atomics;
|
|
258
257
|
return obj;
|
|
259
258
|
},
|
|
260
259
|
fromAminoMsg(object: DecCoinAminoMsg): DecCoin {
|
|
@@ -277,10 +276,9 @@ export const DecCoin = {
|
|
|
277
276
|
typeUrl: "/cosmos.base.v1beta1.DecCoin",
|
|
278
277
|
value: DecCoin.encode(message).finish()
|
|
279
278
|
};
|
|
280
|
-
}
|
|
279
|
+
},
|
|
280
|
+
registerTypeUrl() {}
|
|
281
281
|
};
|
|
282
|
-
GlobalDecoderRegistry.register(DecCoin.typeUrl, DecCoin);
|
|
283
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(DecCoin.aminoType, DecCoin.typeUrl);
|
|
284
282
|
function createBaseIntProto(): IntProto {
|
|
285
283
|
return {
|
|
286
284
|
int: ""
|
|
@@ -355,10 +353,9 @@ export const IntProto = {
|
|
|
355
353
|
typeUrl: "/cosmos.base.v1beta1.IntProto",
|
|
356
354
|
value: IntProto.encode(message).finish()
|
|
357
355
|
};
|
|
358
|
-
}
|
|
356
|
+
},
|
|
357
|
+
registerTypeUrl() {}
|
|
359
358
|
};
|
|
360
|
-
GlobalDecoderRegistry.register(IntProto.typeUrl, IntProto);
|
|
361
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(IntProto.aminoType, IntProto.typeUrl);
|
|
362
359
|
function createBaseDecProto(): DecProto {
|
|
363
360
|
return {
|
|
364
361
|
dec: ""
|
|
@@ -375,7 +372,7 @@ export const DecProto = {
|
|
|
375
372
|
},
|
|
376
373
|
encode(message: DecProto, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
377
374
|
if (message.dec !== "") {
|
|
378
|
-
writer.uint32(10).string(message.dec);
|
|
375
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.dec, 18).atomics);
|
|
379
376
|
}
|
|
380
377
|
return writer;
|
|
381
378
|
},
|
|
@@ -387,7 +384,7 @@ export const DecProto = {
|
|
|
387
384
|
const tag = reader.uint32();
|
|
388
385
|
switch (tag >>> 3) {
|
|
389
386
|
case 1:
|
|
390
|
-
message.dec = reader.string();
|
|
387
|
+
message.dec = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
391
388
|
break;
|
|
392
389
|
default:
|
|
393
390
|
reader.skipType(tag & 7);
|
|
@@ -410,7 +407,7 @@ export const DecProto = {
|
|
|
410
407
|
},
|
|
411
408
|
toAmino(message: DecProto): DecProtoAmino {
|
|
412
409
|
const obj: any = {};
|
|
413
|
-
obj.dec = message.dec === "" ? undefined : message.dec;
|
|
410
|
+
obj.dec = message.dec === "" ? undefined : Decimal.fromUserInput(message.dec, 18).atomics;
|
|
414
411
|
return obj;
|
|
415
412
|
},
|
|
416
413
|
fromAminoMsg(object: DecProtoAminoMsg): DecProto {
|
|
@@ -433,7 +430,6 @@ export const DecProto = {
|
|
|
433
430
|
typeUrl: "/cosmos.base.v1beta1.DecProto",
|
|
434
431
|
value: DecProto.encode(message).finish()
|
|
435
432
|
};
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(DecProto.aminoType, DecProto.typeUrl);
|
|
433
|
+
},
|
|
434
|
+
registerTypeUrl() {}
|
|
435
|
+
};
|
|
@@ -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 consensus 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.consensus.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
|
+
};
|
|
@@ -5,5 +5,6 @@ export const createGetParams = (clientResolver?: RpcResolver) => buildQuery<Quer
|
|
|
5
5
|
decode: QueryParamsResponse.decode,
|
|
6
6
|
service: "cosmos.consensus.v1.Query",
|
|
7
7
|
method: "Params",
|
|
8
|
-
clientResolver
|
|
8
|
+
clientResolver,
|
|
9
|
+
deps: [QueryParamsRequest, QueryParamsResponse]
|
|
9
10
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ConsensusParams, ConsensusParamsAmino } from "../../../tendermint/types/params";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { DeepPartial } from "../../../helpers";
|
|
4
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
4
|
/** QueryParamsRequest defines the request type for querying x/consensus parameters. */
|
|
6
5
|
export interface QueryParamsRequest {}
|
|
7
6
|
export interface QueryParamsRequestProtoMsg {
|
|
@@ -101,10 +100,9 @@ export const QueryParamsRequest = {
|
|
|
101
100
|
typeUrl: "/cosmos.consensus.v1.QueryParamsRequest",
|
|
102
101
|
value: QueryParamsRequest.encode(message).finish()
|
|
103
102
|
};
|
|
104
|
-
}
|
|
103
|
+
},
|
|
104
|
+
registerTypeUrl() {}
|
|
105
105
|
};
|
|
106
|
-
GlobalDecoderRegistry.register(QueryParamsRequest.typeUrl, QueryParamsRequest);
|
|
107
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsRequest.aminoType, QueryParamsRequest.typeUrl);
|
|
108
106
|
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
109
107
|
return {
|
|
110
108
|
params: undefined
|
|
@@ -179,7 +177,8 @@ export const QueryParamsResponse = {
|
|
|
179
177
|
typeUrl: "/cosmos.consensus.v1.QueryParamsResponse",
|
|
180
178
|
value: QueryParamsResponse.encode(message).finish()
|
|
181
179
|
};
|
|
180
|
+
},
|
|
181
|
+
registerTypeUrl() {
|
|
182
|
+
ConsensusParams.registerTypeUrl();
|
|
182
183
|
}
|
|
183
|
-
};
|
|
184
|
-
GlobalDecoderRegistry.register(QueryParamsResponse.typeUrl, QueryParamsResponse);
|
|
185
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsResponse.aminoType, QueryParamsResponse.typeUrl);
|
|
184
|
+
};
|
|
@@ -1,3 +1,29 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { MsgUpdateParams } from "./tx";
|
|
3
|
-
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/cosmos.consensus.v1.MsgUpdateParams", MsgUpdateParams]];
|
|
3
|
+
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/cosmos.consensus.v1.MsgUpdateParams", MsgUpdateParams]];
|
|
4
|
+
export const MessageComposer = {
|
|
5
|
+
encoded: {
|
|
6
|
+
updateParams(value: MsgUpdateParams) {
|
|
7
|
+
return {
|
|
8
|
+
typeUrl: "/cosmos.consensus.v1.MsgUpdateParams",
|
|
9
|
+
value: MsgUpdateParams.encode(value).finish()
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
withTypeUrl: {
|
|
14
|
+
updateParams(value: MsgUpdateParams) {
|
|
15
|
+
return {
|
|
16
|
+
typeUrl: "/cosmos.consensus.v1.MsgUpdateParams",
|
|
17
|
+
value
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
fromPartial: {
|
|
22
|
+
updateParams(value: MsgUpdateParams) {
|
|
23
|
+
return {
|
|
24
|
+
typeUrl: "/cosmos.consensus.v1.MsgUpdateParams",
|
|
25
|
+
value: MsgUpdateParams.fromPartial(value)
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
@@ -5,5 +5,6 @@ export const createUpdateParams = (clientResolver?: SigningClientResolver) => bu
|
|
|
5
5
|
clientResolver,
|
|
6
6
|
typeUrl: MsgUpdateParams.typeUrl,
|
|
7
7
|
encoders: toEncoders(MsgUpdateParams),
|
|
8
|
-
converters: toConverters(MsgUpdateParams)
|
|
8
|
+
converters: toConverters(MsgUpdateParams),
|
|
9
|
+
deps: [MsgUpdateParams]
|
|
9
10
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BlockParams, BlockParamsAmino, EvidenceParams, EvidenceParamsAmino, ValidatorParams, ValidatorParamsAmino, ABCIParams, ABCIParamsAmino } from "../../../tendermint/types/params";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { DeepPartial } from "../../../helpers";
|
|
4
|
-
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
4
|
/** MsgUpdateParams is the Msg/UpdateParams request type. */
|
|
6
5
|
export interface MsgUpdateParams {
|
|
7
6
|
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
@@ -184,10 +183,14 @@ export const MsgUpdateParams = {
|
|
|
184
183
|
typeUrl: "/cosmos.consensus.v1.MsgUpdateParams",
|
|
185
184
|
value: MsgUpdateParams.encode(message).finish()
|
|
186
185
|
};
|
|
186
|
+
},
|
|
187
|
+
registerTypeUrl() {
|
|
188
|
+
BlockParams.registerTypeUrl();
|
|
189
|
+
EvidenceParams.registerTypeUrl();
|
|
190
|
+
ValidatorParams.registerTypeUrl();
|
|
191
|
+
ABCIParams.registerTypeUrl();
|
|
187
192
|
}
|
|
188
193
|
};
|
|
189
|
-
GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
|
|
190
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
|
|
191
194
|
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
192
195
|
return {};
|
|
193
196
|
}
|
|
@@ -249,7 +252,6 @@ export const MsgUpdateParamsResponse = {
|
|
|
249
252
|
typeUrl: "/cosmos.consensus.v1.MsgUpdateParamsResponse",
|
|
250
253
|
value: MsgUpdateParamsResponse.encode(message).finish()
|
|
251
254
|
};
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParamsResponse.aminoType, MsgUpdateParamsResponse.typeUrl);
|
|
255
|
+
},
|
|
256
|
+
registerTypeUrl() {}
|
|
257
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
2
|
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers";
|
|
3
|
-
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
3
|
/**
|
|
5
4
|
* MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey.
|
|
6
5
|
* See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers
|
|
@@ -129,10 +128,9 @@ export const MultiSignature = {
|
|
|
129
128
|
typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature",
|
|
130
129
|
value: MultiSignature.encode(message).finish()
|
|
131
130
|
};
|
|
132
|
-
}
|
|
131
|
+
},
|
|
132
|
+
registerTypeUrl() {}
|
|
133
133
|
};
|
|
134
|
-
GlobalDecoderRegistry.register(MultiSignature.typeUrl, MultiSignature);
|
|
135
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(MultiSignature.aminoType, MultiSignature.typeUrl);
|
|
136
134
|
function createBaseCompactBitArray(): CompactBitArray {
|
|
137
135
|
return {
|
|
138
136
|
extraBitsStored: 0,
|
|
@@ -219,7 +217,6 @@ export const CompactBitArray = {
|
|
|
219
217
|
typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray",
|
|
220
218
|
value: CompactBitArray.encode(message).finish()
|
|
221
219
|
};
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(CompactBitArray.aminoType, CompactBitArray.typeUrl);
|
|
220
|
+
},
|
|
221
|
+
registerTypeUrl() {}
|
|
222
|
+
};
|
|
@@ -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 distribution module. */
|
|
5
4
|
export interface Module {
|
|
6
5
|
feeCollectorName: string;
|
|
@@ -107,7 +106,6 @@ export const Module = {
|
|
|
107
106
|
typeUrl: "/cosmos.distribution.module.v1.Module",
|
|
108
107
|
value: Module.encode(message).finish()
|
|
109
108
|
};
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Module.aminoType, Module.typeUrl);
|
|
109
|
+
},
|
|
110
|
+
registerTypeUrl() {}
|
|
111
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DecCoin, DecCoinAmino, Coin, CoinAmino } from "../../base/v1beta1/coin";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { Decimal } from "@interchainjs/math";
|
|
3
4
|
import { DeepPartial } from "../../../helpers";
|
|
4
5
|
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
6
|
/** Params defines the set of params for the distribution module. */
|
|
@@ -367,13 +368,13 @@ export const Params = {
|
|
|
367
368
|
},
|
|
368
369
|
encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
369
370
|
if (message.communityTax !== "") {
|
|
370
|
-
writer.uint32(10).string(message.communityTax);
|
|
371
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.communityTax, 18).atomics);
|
|
371
372
|
}
|
|
372
373
|
if (message.baseProposerReward !== "") {
|
|
373
|
-
writer.uint32(18).string(message.baseProposerReward);
|
|
374
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.baseProposerReward, 18).atomics);
|
|
374
375
|
}
|
|
375
376
|
if (message.bonusProposerReward !== "") {
|
|
376
|
-
writer.uint32(26).string(message.bonusProposerReward);
|
|
377
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.bonusProposerReward, 18).atomics);
|
|
377
378
|
}
|
|
378
379
|
if (message.withdrawAddrEnabled === true) {
|
|
379
380
|
writer.uint32(32).bool(message.withdrawAddrEnabled);
|
|
@@ -388,13 +389,13 @@ export const Params = {
|
|
|
388
389
|
const tag = reader.uint32();
|
|
389
390
|
switch (tag >>> 3) {
|
|
390
391
|
case 1:
|
|
391
|
-
message.communityTax = reader.string();
|
|
392
|
+
message.communityTax = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
392
393
|
break;
|
|
393
394
|
case 2:
|
|
394
|
-
message.baseProposerReward = reader.string();
|
|
395
|
+
message.baseProposerReward = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
395
396
|
break;
|
|
396
397
|
case 3:
|
|
397
|
-
message.bonusProposerReward = reader.string();
|
|
398
|
+
message.bonusProposerReward = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
398
399
|
break;
|
|
399
400
|
case 4:
|
|
400
401
|
message.withdrawAddrEnabled = reader.bool();
|
|
@@ -432,9 +433,9 @@ export const Params = {
|
|
|
432
433
|
},
|
|
433
434
|
toAmino(message: Params): ParamsAmino {
|
|
434
435
|
const obj: any = {};
|
|
435
|
-
obj.community_tax = message.communityTax ?? "";
|
|
436
|
-
obj.base_proposer_reward = message.baseProposerReward ?? "";
|
|
437
|
-
obj.bonus_proposer_reward = message.bonusProposerReward ?? "";
|
|
436
|
+
obj.community_tax = Decimal.fromUserInput(message.communityTax, 18).atomics ?? "";
|
|
437
|
+
obj.base_proposer_reward = Decimal.fromUserInput(message.baseProposerReward, 18).atomics ?? "";
|
|
438
|
+
obj.bonus_proposer_reward = Decimal.fromUserInput(message.bonusProposerReward, 18).atomics ?? "";
|
|
438
439
|
obj.withdraw_addr_enabled = message.withdrawAddrEnabled === false ? undefined : message.withdrawAddrEnabled;
|
|
439
440
|
return obj;
|
|
440
441
|
},
|
|
@@ -458,10 +459,9 @@ export const Params = {
|
|
|
458
459
|
typeUrl: "/cosmos.distribution.v1beta1.Params",
|
|
459
460
|
value: Params.encode(message).finish()
|
|
460
461
|
};
|
|
461
|
-
}
|
|
462
|
+
},
|
|
463
|
+
registerTypeUrl() {}
|
|
462
464
|
};
|
|
463
|
-
GlobalDecoderRegistry.register(Params.typeUrl, Params);
|
|
464
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
|
|
465
465
|
function createBaseValidatorHistoricalRewards(): ValidatorHistoricalRewards {
|
|
466
466
|
return {
|
|
467
467
|
cumulativeRewardRatio: [],
|
|
@@ -550,10 +550,11 @@ export const ValidatorHistoricalRewards = {
|
|
|
550
550
|
typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards",
|
|
551
551
|
value: ValidatorHistoricalRewards.encode(message).finish()
|
|
552
552
|
};
|
|
553
|
+
},
|
|
554
|
+
registerTypeUrl() {
|
|
555
|
+
DecCoin.registerTypeUrl();
|
|
553
556
|
}
|
|
554
557
|
};
|
|
555
|
-
GlobalDecoderRegistry.register(ValidatorHistoricalRewards.typeUrl, ValidatorHistoricalRewards);
|
|
556
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorHistoricalRewards.aminoType, ValidatorHistoricalRewards.typeUrl);
|
|
557
558
|
function createBaseValidatorCurrentRewards(): ValidatorCurrentRewards {
|
|
558
559
|
return {
|
|
559
560
|
rewards: [],
|
|
@@ -642,10 +643,11 @@ export const ValidatorCurrentRewards = {
|
|
|
642
643
|
typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards",
|
|
643
644
|
value: ValidatorCurrentRewards.encode(message).finish()
|
|
644
645
|
};
|
|
646
|
+
},
|
|
647
|
+
registerTypeUrl() {
|
|
648
|
+
DecCoin.registerTypeUrl();
|
|
645
649
|
}
|
|
646
650
|
};
|
|
647
|
-
GlobalDecoderRegistry.register(ValidatorCurrentRewards.typeUrl, ValidatorCurrentRewards);
|
|
648
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorCurrentRewards.aminoType, ValidatorCurrentRewards.typeUrl);
|
|
649
651
|
function createBaseValidatorAccumulatedCommission(): ValidatorAccumulatedCommission {
|
|
650
652
|
return {
|
|
651
653
|
commission: []
|
|
@@ -722,10 +724,11 @@ export const ValidatorAccumulatedCommission = {
|
|
|
722
724
|
typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission",
|
|
723
725
|
value: ValidatorAccumulatedCommission.encode(message).finish()
|
|
724
726
|
};
|
|
727
|
+
},
|
|
728
|
+
registerTypeUrl() {
|
|
729
|
+
DecCoin.registerTypeUrl();
|
|
725
730
|
}
|
|
726
731
|
};
|
|
727
|
-
GlobalDecoderRegistry.register(ValidatorAccumulatedCommission.typeUrl, ValidatorAccumulatedCommission);
|
|
728
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorAccumulatedCommission.aminoType, ValidatorAccumulatedCommission.typeUrl);
|
|
729
732
|
function createBaseValidatorOutstandingRewards(): ValidatorOutstandingRewards {
|
|
730
733
|
return {
|
|
731
734
|
rewards: []
|
|
@@ -802,10 +805,11 @@ export const ValidatorOutstandingRewards = {
|
|
|
802
805
|
typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards",
|
|
803
806
|
value: ValidatorOutstandingRewards.encode(message).finish()
|
|
804
807
|
};
|
|
808
|
+
},
|
|
809
|
+
registerTypeUrl() {
|
|
810
|
+
DecCoin.registerTypeUrl();
|
|
805
811
|
}
|
|
806
812
|
};
|
|
807
|
-
GlobalDecoderRegistry.register(ValidatorOutstandingRewards.typeUrl, ValidatorOutstandingRewards);
|
|
808
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorOutstandingRewards.aminoType, ValidatorOutstandingRewards.typeUrl);
|
|
809
813
|
function createBaseValidatorSlashEvent(): ValidatorSlashEvent {
|
|
810
814
|
return {
|
|
811
815
|
validatorPeriod: BigInt(0),
|
|
@@ -826,7 +830,7 @@ export const ValidatorSlashEvent = {
|
|
|
826
830
|
writer.uint32(8).uint64(message.validatorPeriod);
|
|
827
831
|
}
|
|
828
832
|
if (message.fraction !== "") {
|
|
829
|
-
writer.uint32(18).string(message.fraction);
|
|
833
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.fraction, 18).atomics);
|
|
830
834
|
}
|
|
831
835
|
return writer;
|
|
832
836
|
},
|
|
@@ -841,7 +845,7 @@ export const ValidatorSlashEvent = {
|
|
|
841
845
|
message.validatorPeriod = reader.uint64();
|
|
842
846
|
break;
|
|
843
847
|
case 2:
|
|
844
|
-
message.fraction = reader.string();
|
|
848
|
+
message.fraction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
845
849
|
break;
|
|
846
850
|
default:
|
|
847
851
|
reader.skipType(tag & 7);
|
|
@@ -869,7 +873,7 @@ export const ValidatorSlashEvent = {
|
|
|
869
873
|
toAmino(message: ValidatorSlashEvent): ValidatorSlashEventAmino {
|
|
870
874
|
const obj: any = {};
|
|
871
875
|
obj.validator_period = message.validatorPeriod !== BigInt(0) ? message.validatorPeriod?.toString() : undefined;
|
|
872
|
-
obj.fraction = message.fraction === "" ? undefined : message.fraction;
|
|
876
|
+
obj.fraction = message.fraction === "" ? undefined : Decimal.fromUserInput(message.fraction, 18).atomics;
|
|
873
877
|
return obj;
|
|
874
878
|
},
|
|
875
879
|
fromAminoMsg(object: ValidatorSlashEventAminoMsg): ValidatorSlashEvent {
|
|
@@ -892,10 +896,9 @@ export const ValidatorSlashEvent = {
|
|
|
892
896
|
typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent",
|
|
893
897
|
value: ValidatorSlashEvent.encode(message).finish()
|
|
894
898
|
};
|
|
895
|
-
}
|
|
899
|
+
},
|
|
900
|
+
registerTypeUrl() {}
|
|
896
901
|
};
|
|
897
|
-
GlobalDecoderRegistry.register(ValidatorSlashEvent.typeUrl, ValidatorSlashEvent);
|
|
898
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorSlashEvent.aminoType, ValidatorSlashEvent.typeUrl);
|
|
899
902
|
function createBaseValidatorSlashEvents(): ValidatorSlashEvents {
|
|
900
903
|
return {
|
|
901
904
|
validatorSlashEvents: []
|
|
@@ -972,10 +975,11 @@ export const ValidatorSlashEvents = {
|
|
|
972
975
|
typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents",
|
|
973
976
|
value: ValidatorSlashEvents.encode(message).finish()
|
|
974
977
|
};
|
|
978
|
+
},
|
|
979
|
+
registerTypeUrl() {
|
|
980
|
+
ValidatorSlashEvent.registerTypeUrl();
|
|
975
981
|
}
|
|
976
982
|
};
|
|
977
|
-
GlobalDecoderRegistry.register(ValidatorSlashEvents.typeUrl, ValidatorSlashEvents);
|
|
978
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorSlashEvents.aminoType, ValidatorSlashEvents.typeUrl);
|
|
979
983
|
function createBaseFeePool(): FeePool {
|
|
980
984
|
return {
|
|
981
985
|
communityPool: []
|
|
@@ -1052,10 +1056,11 @@ export const FeePool = {
|
|
|
1052
1056
|
typeUrl: "/cosmos.distribution.v1beta1.FeePool",
|
|
1053
1057
|
value: FeePool.encode(message).finish()
|
|
1054
1058
|
};
|
|
1059
|
+
},
|
|
1060
|
+
registerTypeUrl() {
|
|
1061
|
+
DecCoin.registerTypeUrl();
|
|
1055
1062
|
}
|
|
1056
1063
|
};
|
|
1057
|
-
GlobalDecoderRegistry.register(FeePool.typeUrl, FeePool);
|
|
1058
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(FeePool.aminoType, FeePool.typeUrl);
|
|
1059
1064
|
function createBaseCommunityPoolSpendProposal(): CommunityPoolSpendProposal {
|
|
1060
1065
|
return {
|
|
1061
1066
|
title: "",
|
|
@@ -1168,10 +1173,13 @@ export const CommunityPoolSpendProposal = {
|
|
|
1168
1173
|
typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",
|
|
1169
1174
|
value: CommunityPoolSpendProposal.encode(message).finish()
|
|
1170
1175
|
};
|
|
1176
|
+
},
|
|
1177
|
+
registerTypeUrl() {
|
|
1178
|
+
GlobalDecoderRegistry.register(CommunityPoolSpendProposal.typeUrl, CommunityPoolSpendProposal);
|
|
1179
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(CommunityPoolSpendProposal.aminoType, CommunityPoolSpendProposal.typeUrl);
|
|
1180
|
+
Coin.registerTypeUrl();
|
|
1171
1181
|
}
|
|
1172
1182
|
};
|
|
1173
|
-
GlobalDecoderRegistry.register(CommunityPoolSpendProposal.typeUrl, CommunityPoolSpendProposal);
|
|
1174
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(CommunityPoolSpendProposal.aminoType, CommunityPoolSpendProposal.typeUrl);
|
|
1175
1183
|
function createBaseDelegatorStartingInfo(): DelegatorStartingInfo {
|
|
1176
1184
|
return {
|
|
1177
1185
|
previousPeriod: BigInt(0),
|
|
@@ -1193,7 +1201,7 @@ export const DelegatorStartingInfo = {
|
|
|
1193
1201
|
writer.uint32(8).uint64(message.previousPeriod);
|
|
1194
1202
|
}
|
|
1195
1203
|
if (message.stake !== "") {
|
|
1196
|
-
writer.uint32(18).string(message.stake);
|
|
1204
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.stake, 18).atomics);
|
|
1197
1205
|
}
|
|
1198
1206
|
if (message.height !== BigInt(0)) {
|
|
1199
1207
|
writer.uint32(24).uint64(message.height);
|
|
@@ -1211,7 +1219,7 @@ export const DelegatorStartingInfo = {
|
|
|
1211
1219
|
message.previousPeriod = reader.uint64();
|
|
1212
1220
|
break;
|
|
1213
1221
|
case 2:
|
|
1214
|
-
message.stake = reader.string();
|
|
1222
|
+
message.stake = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1215
1223
|
break;
|
|
1216
1224
|
case 3:
|
|
1217
1225
|
message.height = reader.uint64();
|
|
@@ -1246,7 +1254,7 @@ export const DelegatorStartingInfo = {
|
|
|
1246
1254
|
toAmino(message: DelegatorStartingInfo): DelegatorStartingInfoAmino {
|
|
1247
1255
|
const obj: any = {};
|
|
1248
1256
|
obj.previous_period = message.previousPeriod !== BigInt(0) ? message.previousPeriod?.toString() : undefined;
|
|
1249
|
-
obj.stake = message.stake ?? "";
|
|
1257
|
+
obj.stake = Decimal.fromUserInput(message.stake, 18).atomics ?? "";
|
|
1250
1258
|
obj.height = message.height ? message.height?.toString() : "0";
|
|
1251
1259
|
return obj;
|
|
1252
1260
|
},
|
|
@@ -1270,10 +1278,9 @@ export const DelegatorStartingInfo = {
|
|
|
1270
1278
|
typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo",
|
|
1271
1279
|
value: DelegatorStartingInfo.encode(message).finish()
|
|
1272
1280
|
};
|
|
1273
|
-
}
|
|
1281
|
+
},
|
|
1282
|
+
registerTypeUrl() {}
|
|
1274
1283
|
};
|
|
1275
|
-
GlobalDecoderRegistry.register(DelegatorStartingInfo.typeUrl, DelegatorStartingInfo);
|
|
1276
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(DelegatorStartingInfo.aminoType, DelegatorStartingInfo.typeUrl);
|
|
1277
1284
|
function createBaseDelegationDelegatorReward(): DelegationDelegatorReward {
|
|
1278
1285
|
return {
|
|
1279
1286
|
validatorAddress: "",
|
|
@@ -1362,10 +1369,11 @@ export const DelegationDelegatorReward = {
|
|
|
1362
1369
|
typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward",
|
|
1363
1370
|
value: DelegationDelegatorReward.encode(message).finish()
|
|
1364
1371
|
};
|
|
1372
|
+
},
|
|
1373
|
+
registerTypeUrl() {
|
|
1374
|
+
DecCoin.registerTypeUrl();
|
|
1365
1375
|
}
|
|
1366
1376
|
};
|
|
1367
|
-
GlobalDecoderRegistry.register(DelegationDelegatorReward.typeUrl, DelegationDelegatorReward);
|
|
1368
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(DelegationDelegatorReward.aminoType, DelegationDelegatorReward.typeUrl);
|
|
1369
1377
|
function createBaseCommunityPoolSpendProposalWithDeposit(): CommunityPoolSpendProposalWithDeposit {
|
|
1370
1378
|
return {
|
|
1371
1379
|
title: "",
|
|
@@ -1488,7 +1496,9 @@ export const CommunityPoolSpendProposalWithDeposit = {
|
|
|
1488
1496
|
typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit",
|
|
1489
1497
|
value: CommunityPoolSpendProposalWithDeposit.encode(message).finish()
|
|
1490
1498
|
};
|
|
1499
|
+
},
|
|
1500
|
+
registerTypeUrl() {
|
|
1501
|
+
GlobalDecoderRegistry.register(CommunityPoolSpendProposalWithDeposit.typeUrl, CommunityPoolSpendProposalWithDeposit);
|
|
1502
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(CommunityPoolSpendProposalWithDeposit.aminoType, CommunityPoolSpendProposalWithDeposit.typeUrl);
|
|
1491
1503
|
}
|
|
1492
|
-
};
|
|
1493
|
-
GlobalDecoderRegistry.register(CommunityPoolSpendProposalWithDeposit.typeUrl, CommunityPoolSpendProposalWithDeposit);
|
|
1494
|
-
GlobalDecoderRegistry.registerAminoProtoMapping(CommunityPoolSpendProposalWithDeposit.aminoType, CommunityPoolSpendProposalWithDeposit.typeUrl);
|
|
1504
|
+
};
|