decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.32
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/lib/index.d.ts +78 -78
- package/lib/index.js +23 -23
- package/package.json +5 -2
- package/cardchain.cardchain/index.ts +0 -6
- package/cardchain.cardchain/module.ts +0 -1869
- package/cardchain.cardchain/registry.ts +0 -111
- package/cardchain.cardchain/rest.ts +0 -655
- package/cardchain.cardchain/types.ts +0 -63
- package/cardchain.featureflag/index.ts +0 -6
- package/cardchain.featureflag/module.ts +0 -165
- package/cardchain.featureflag/registry.ts +0 -11
- package/cardchain.featureflag/rest.ts +0 -256
- package/cardchain.featureflag/types.ts +0 -9
- package/client.ts +0 -164
- package/cosmos.auth.v1beta1/index.ts +0 -6
- package/cosmos.auth.v1beta1/module.ts +0 -136
- package/cosmos.auth.v1beta1/registry.ts +0 -9
- package/cosmos.auth.v1beta1/rest.ts +0 -403
- package/cosmos.auth.v1beta1/types.ts +0 -13
- package/cosmos.authz.v1beta1/index.ts +0 -6
- package/cosmos.authz.v1beta1/module.ts +0 -206
- package/cosmos.authz.v1beta1/registry.ts +0 -13
- package/cosmos.authz.v1beta1/rest.ts +0 -256
- package/cosmos.authz.v1beta1/types.ts +0 -17
- package/cosmos.bank.v1beta1/index.ts +0 -6
- package/cosmos.bank.v1beta1/module.ts +0 -247
- package/cosmos.bank.v1beta1/registry.ts +0 -15
- package/cosmos.bank.v1beta1/rest.ts +0 -466
- package/cosmos.bank.v1beta1/types.ts +0 -25
- package/cosmos.base.node.v1beta1/index.ts +0 -6
- package/cosmos.base.node.v1beta1/module.ts +0 -95
- package/cosmos.base.node.v1beta1/registry.ts +0 -7
- package/cosmos.base.node.v1beta1/rest.ts +0 -235
- package/cosmos.base.node.v1beta1/types.ts +0 -5
- package/cosmos.base.tendermint.v1beta1/index.ts +0 -6
- package/cosmos.base.tendermint.v1beta1/module.ts +0 -109
- package/cosmos.base.tendermint.v1beta1/registry.ts +0 -7
- package/cosmos.base.tendermint.v1beta1/rest.ts +0 -340
- package/cosmos.base.tendermint.v1beta1/types.ts +0 -19
- package/cosmos.circuit.v1/index.ts +0 -6
- package/cosmos.circuit.v1/module.ts +0 -198
- package/cosmos.circuit.v1/registry.ts +0 -13
- package/cosmos.circuit.v1/rest.ts +0 -256
- package/cosmos.circuit.v1/types.ts +0 -9
- package/cosmos.consensus.v1/index.ts +0 -6
- package/cosmos.consensus.v1/module.ts +0 -128
- package/cosmos.consensus.v1/registry.ts +0 -9
- package/cosmos.consensus.v1/rest.ts +0 -214
- package/cosmos.consensus.v1/types.ts +0 -5
- package/cosmos.crisis.v1beta1/index.ts +0 -6
- package/cosmos.crisis.v1beta1/module.ts +0 -161
- package/cosmos.crisis.v1beta1/registry.ts +0 -11
- package/cosmos.crisis.v1beta1/rest.ts +0 -193
- package/cosmos.crisis.v1beta1/types.ts +0 -5
- package/cosmos.distribution.v1beta1/index.ts +0 -6
- package/cosmos.distribution.v1beta1/module.ts +0 -364
- package/cosmos.distribution.v1beta1/registry.ts +0 -21
- package/cosmos.distribution.v1beta1/rest.ts +0 -403
- package/cosmos.distribution.v1beta1/types.ts +0 -43
- package/cosmos.evidence.v1beta1/index.ts +0 -6
- package/cosmos.evidence.v1beta1/module.ts +0 -130
- package/cosmos.evidence.v1beta1/registry.ts +0 -9
- package/cosmos.evidence.v1beta1/rest.ts +0 -235
- package/cosmos.evidence.v1beta1/types.ts +0 -7
- package/cosmos.feegrant.v1beta1/index.ts +0 -6
- package/cosmos.feegrant.v1beta1/module.ts +0 -202
- package/cosmos.feegrant.v1beta1/registry.ts +0 -13
- package/cosmos.feegrant.v1beta1/rest.ts +0 -256
- package/cosmos.feegrant.v1beta1/types.ts +0 -13
- package/cosmos.gov.v1/index.ts +0 -6
- package/cosmos.gov.v1/module.ts +0 -344
- package/cosmos.gov.v1/registry.ts +0 -21
- package/cosmos.gov.v1/rest.ts +0 -382
- package/cosmos.gov.v1/types.ts +0 -23
- package/cosmos.gov.v1beta1/index.ts +0 -6
- package/cosmos.gov.v1beta1/module.ts +0 -245
- package/cosmos.gov.v1beta1/registry.ts +0 -15
- package/cosmos.gov.v1beta1/rest.ts +0 -361
- package/cosmos.gov.v1beta1/types.ts +0 -23
- package/cosmos.group.v1/index.ts +0 -6
- package/cosmos.group.v1/module.ts +0 -599
- package/cosmos.group.v1/registry.ts +0 -35
- package/cosmos.group.v1/rest.ts +0 -487
- package/cosmos.group.v1/types.ts +0 -47
- package/cosmos.mint.v1beta1/index.ts +0 -6
- package/cosmos.mint.v1beta1/module.ts +0 -132
- package/cosmos.mint.v1beta1/registry.ts +0 -9
- package/cosmos.mint.v1beta1/rest.ts +0 -256
- package/cosmos.mint.v1beta1/types.ts +0 -9
- package/cosmos.nft.v1beta1/index.ts +0 -6
- package/cosmos.nft.v1beta1/module.ts +0 -140
- package/cosmos.nft.v1beta1/registry.ts +0 -9
- package/cosmos.nft.v1beta1/rest.ts +0 -340
- package/cosmos.nft.v1beta1/types.ts +0 -17
- package/cosmos.params.v1beta1/index.ts +0 -6
- package/cosmos.params.v1beta1/module.ts +0 -101
- package/cosmos.params.v1beta1/registry.ts +0 -7
- package/cosmos.params.v1beta1/rest.ts +0 -235
- package/cosmos.params.v1beta1/types.ts +0 -11
- package/cosmos.slashing.v1beta1/index.ts +0 -6
- package/cosmos.slashing.v1beta1/module.ts +0 -171
- package/cosmos.slashing.v1beta1/registry.ts +0 -11
- package/cosmos.slashing.v1beta1/rest.ts +0 -256
- package/cosmos.slashing.v1beta1/types.ts +0 -15
- package/cosmos.staking.v1beta1/index.ts +0 -6
- package/cosmos.staking.v1beta1/module.ts +0 -374
- package/cosmos.staking.v1beta1/registry.ts +0 -21
- package/cosmos.staking.v1beta1/rest.ts +0 -487
- package/cosmos.staking.v1beta1/types.ts +0 -53
- package/cosmos.tx.v1beta1/index.ts +0 -6
- package/cosmos.tx.v1beta1/module.ts +0 -121
- package/cosmos.tx.v1beta1/registry.ts +0 -7
- package/cosmos.tx.v1beta1/rest.ts +0 -382
- package/cosmos.tx.v1beta1/types.ts +0 -31
- package/cosmos.upgrade.v1beta1/index.ts +0 -6
- package/cosmos.upgrade.v1beta1/module.ts +0 -169
- package/cosmos.upgrade.v1beta1/registry.ts +0 -11
- package/cosmos.upgrade.v1beta1/rest.ts +0 -298
- package/cosmos.upgrade.v1beta1/types.ts +0 -13
- package/cosmos.vesting.v1beta1/index.ts +0 -6
- package/cosmos.vesting.v1beta1/module.ts +0 -206
- package/cosmos.vesting.v1beta1/registry.ts +0 -13
- package/cosmos.vesting.v1beta1/rest.ts +0 -193
- package/cosmos.vesting.v1beta1/types.ts +0 -17
- package/env.ts +0 -7
- package/helpers.ts +0 -32
- package/ibc.applications.fee.v1/index.ts +0 -6
- package/ibc.applications.fee.v1/module.ts +0 -247
- package/ibc.applications.fee.v1/registry.ts +0 -15
- package/ibc.applications.fee.v1/rest.ts +0 -403
- package/ibc.applications.fee.v1/types.ts +0 -25
- package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -196
- package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -13
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -235
- package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -7
- package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -165
- package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -11
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +0 -214
- package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -9
- package/ibc.applications.transfer.v1/index.ts +0 -6
- package/ibc.applications.transfer.v1/module.ts +0 -169
- package/ibc.applications.transfer.v1/registry.ts +0 -11
- package/ibc.applications.transfer.v1/rest.ts +0 -319
- package/ibc.applications.transfer.v1/types.ts +0 -13
- package/ibc.core.channel.v1/index.ts +0 -6
- package/ibc.core.channel.v1/module.ts +0 -748
- package/ibc.core.channel.v1/registry.ts +0 -45
- package/ibc.core.channel.v1/rest.ts +0 -550
- package/ibc.core.channel.v1/types.ts +0 -31
- package/ibc.core.client.v1/index.ts +0 -6
- package/ibc.core.client.v1/module.ts +0 -344
- package/ibc.core.client.v1/registry.ts +0 -21
- package/ibc.core.client.v1/rest.ts +0 -403
- package/ibc.core.client.v1/types.ts +0 -23
- package/ibc.core.connection.v1/index.ts +0 -6
- package/ibc.core.connection.v1/module.ts +0 -274
- package/ibc.core.connection.v1/registry.ts +0 -17
- package/ibc.core.connection.v1/rest.ts +0 -319
- package/ibc.core.connection.v1/types.ts +0 -19
- package/index.ts +0 -81
- package/modules.ts +0 -5
- package/tsconfig.json +0 -13
- package/types/amino/amino.ts +0 -9
- package/types/capability/v1/capability.ts +0 -263
- package/types/capability/v1/genesis.ts +0 -220
- package/types/cardchain/cardchain/card.ts +0 -712
- package/types/cardchain/cardchain/card_content.ts +0 -116
- package/types/cardchain/cardchain/card_with_image.ts +0 -134
- package/types/cardchain/cardchain/council.ts +0 -502
- package/types/cardchain/cardchain/encounter.ts +0 -307
- package/types/cardchain/cardchain/encounter_with_image.ts +0 -119
- package/types/cardchain/cardchain/genesis.ts +0 -403
- package/types/cardchain/cardchain/image.ts +0 -122
- package/types/cardchain/cardchain/match.ts +0 -453
- package/types/cardchain/cardchain/module/module.ts +0 -99
- package/types/cardchain/cardchain/params.ts +0 -544
- package/types/cardchain/cardchain/query.ts +0 -3786
- package/types/cardchain/cardchain/running_average.ts +0 -116
- package/types/cardchain/cardchain/sell_offer.ts +0 -224
- package/types/cardchain/cardchain/server.ts +0 -144
- package/types/cardchain/cardchain/set.ts +0 -537
- package/types/cardchain/cardchain/set_with_artwork.ts +0 -142
- package/types/cardchain/cardchain/tx.ts +0 -8053
- package/types/cardchain/cardchain/user.ts +0 -955
- package/types/cardchain/cardchain/voting.ts +0 -328
- package/types/cardchain/cardchain/voting_results.ts +0 -227
- package/types/cardchain/cardchain/zealy.ts +0 -116
- package/types/cardchain/featureflag/flag.ts +0 -133
- package/types/cardchain/featureflag/genesis.ts +0 -226
- package/types/cardchain/featureflag/module/module.ts +0 -99
- package/types/cardchain/featureflag/params.ts +0 -78
- package/types/cardchain/featureflag/query.ts +0 -445
- package/types/cardchain/featureflag/tx.ts +0 -373
- package/types/cosmos/app/runtime/v1alpha1/module.ts +0 -389
- package/types/cosmos/app/v1alpha1/config.ts +0 -346
- package/types/cosmos/app/v1alpha1/module.ts +0 -348
- package/types/cosmos/app/v1alpha1/query.ts +0 -175
- package/types/cosmos/auth/module/v1/module.ts +0 -229
- package/types/cosmos/auth/v1beta1/auth.ts +0 -531
- package/types/cosmos/auth/v1beta1/genesis.ts +0 -125
- package/types/cosmos/auth/v1beta1/query.ts +0 -1564
- package/types/cosmos/auth/v1beta1/tx.ts +0 -213
- package/types/cosmos/authz/module/v1/module.ts +0 -78
- package/types/cosmos/authz/v1beta1/authz.ts +0 -411
- package/types/cosmos/authz/v1beta1/event.ts +0 -241
- package/types/cosmos/authz/v1beta1/genesis.ts +0 -101
- package/types/cosmos/authz/v1beta1/query.ts +0 -643
- package/types/cosmos/authz/v1beta1/tx.ts +0 -574
- package/types/cosmos/autocli/v1/options.ts +0 -1049
- package/types/cosmos/autocli/v1/query.ts +0 -291
- package/types/cosmos/bank/module/v1/module.ts +0 -150
- package/types/cosmos/bank/v1beta1/authz.ts +0 -129
- package/types/cosmos/bank/v1beta1/bank.ts +0 -775
- package/types/cosmos/bank/v1beta1/genesis.ts +0 -277
- package/types/cosmos/bank/v1beta1/query.ts +0 -2424
- package/types/cosmos/bank/v1beta1/tx.ts +0 -697
- package/types/cosmos/base/abci/v1beta1/abci.ts +0 -1469
- package/types/cosmos/base/node/v1beta1/query.ts +0 -485
- package/types/cosmos/base/query/v1beta1/pagination.ts +0 -336
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +0 -328
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2092
- package/types/cosmos/base/tendermint/v1beta1/query.ts +0 -2025
- package/types/cosmos/base/tendermint/v1beta1/types.ts +0 -548
- package/types/cosmos/base/v1beta1/coin.ts +0 -209
- package/types/cosmos/circuit/module/v1/module.ts +0 -99
- package/types/cosmos/circuit/v1/query.ts +0 -476
- package/types/cosmos/circuit/v1/tx.ts +0 -576
- package/types/cosmos/circuit/v1/types.ts +0 -362
- package/types/cosmos/consensus/module/v1/module.ts +0 -99
- package/types/cosmos/consensus/v1/query.ts +0 -181
- package/types/cosmos/consensus/v1/tx.ts +0 -271
- package/types/cosmos/crisis/module/v1/module.ts +0 -119
- package/types/cosmos/crisis/v1beta1/genesis.ts +0 -105
- package/types/cosmos/crisis/v1beta1/tx.ts +0 -367
- package/types/cosmos/crypto/ed25519/keys.ts +0 -195
- package/types/cosmos/crypto/hd/v1/hd.ts +0 -178
- package/types/cosmos/crypto/keyring/v1/record.ts +0 -440
- package/types/cosmos/crypto/multisig/keys.ts +0 -124
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -218
- package/types/cosmos/crypto/secp256k1/keys.ts +0 -192
- package/types/cosmos/crypto/secp256r1/keys.ts +0 -193
- package/types/cosmos/distribution/module/v1/module.ts +0 -118
- package/types/cosmos/distribution/v1beta1/distribution.ts +0 -1177
- package/types/cosmos/distribution/v1beta1/genesis.ts +0 -1028
- package/types/cosmos/distribution/v1beta1/query.ts +0 -1700
- package/types/cosmos/distribution/v1beta1/tx.ts +0 -1178
- package/types/cosmos/evidence/module/v1/module.ts +0 -78
- package/types/cosmos/evidence/v1beta1/evidence.ts +0 -194
- package/types/cosmos/evidence/v1beta1/genesis.ts +0 -98
- package/types/cosmos/evidence/v1beta1/query.ts +0 -414
- package/types/cosmos/evidence/v1beta1/tx.ts +0 -243
- package/types/cosmos/feegrant/module/v1/module.ts +0 -78
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +0 -513
- package/types/cosmos/feegrant/v1beta1/genesis.ts +0 -101
- package/types/cosmos/feegrant/v1beta1/query.ts +0 -597
- package/types/cosmos/feegrant/v1beta1/tx.ts +0 -496
- package/types/cosmos/genutil/module/v1/module.ts +0 -78
- package/types/cosmos/genutil/v1beta1/genesis.ts +0 -122
- package/types/cosmos/gov/module/v1/module.ts +0 -133
- package/types/cosmos/gov/v1/genesis.ts +0 -313
- package/types/cosmos/gov/v1/gov.ts +0 -1712
- package/types/cosmos/gov/v1/query.ts +0 -1605
- package/types/cosmos/gov/v1/tx.ts +0 -1387
- package/types/cosmos/gov/v1beta1/genesis.ts +0 -241
- package/types/cosmos/gov/v1beta1/gov.ts +0 -1273
- package/types/cosmos/gov/v1beta1/query.ts +0 -1441
- package/types/cosmos/gov/v1beta1/tx.ts +0 -738
- package/types/cosmos/group/module/v1/module.ts +0 -141
- package/types/cosmos/group/v1/events.ts +0 -795
- package/types/cosmos/group/v1/genesis.ts +0 -265
- package/types/cosmos/group/v1/query.ts +0 -2441
- package/types/cosmos/group/v1/tx.ts +0 -2631
- package/types/cosmos/group/v1/types.ts +0 -1850
- package/types/cosmos/ics23/v1/proofs.ts +0 -1731
- package/types/cosmos/mint/module/v1/module.ts +0 -118
- package/types/cosmos/mint/v1beta1/genesis.ts +0 -126
- package/types/cosmos/mint/v1beta1/mint.ts +0 -293
- package/types/cosmos/mint/v1beta1/query.ts +0 -453
- package/types/cosmos/mint/v1beta1/tx.ts +0 -213
- package/types/cosmos/msg/textual/v1/textual.ts +0 -9
- package/types/cosmos/msg/v1/msg.ts +0 -9
- package/types/cosmos/nft/module/v1/module.ts +0 -78
- package/types/cosmos/nft/v1beta1/event.ts +0 -359
- package/types/cosmos/nft/v1beta1/genesis.ts +0 -204
- package/types/cosmos/nft/v1beta1/nft.ts +0 -348
- package/types/cosmos/nft/v1beta1/query.ts +0 -1173
- package/types/cosmos/nft/v1beta1/tx.ts +0 -228
- package/types/cosmos/orm/module/v1alpha1/module.ts +0 -82
- package/types/cosmos/orm/query/v1alpha1/query.ts +0 -933
- package/types/cosmos/orm/v1/orm.ts +0 -453
- package/types/cosmos/orm/v1alpha1/schema.ts +0 -321
- package/types/cosmos/params/module/v1/module.ts +0 -78
- package/types/cosmos/params/v1beta1/params.ts +0 -236
- package/types/cosmos/params/v1beta1/query.ts +0 -439
- package/types/cosmos/query/v1/query.ts +0 -9
- package/types/cosmos/reflection/v1/reflection.ts +0 -179
- package/types/cosmos/slashing/module/v1/module.ts +0 -99
- package/types/cosmos/slashing/v1beta1/genesis.ts +0 -424
- package/types/cosmos/slashing/v1beta1/query.ts +0 -487
- package/types/cosmos/slashing/v1beta1/slashing.ts +0 -422
- package/types/cosmos/slashing/v1beta1/tx.ts +0 -336
- package/types/cosmos/staking/module/v1/module.ts +0 -161
- package/types/cosmos/staking/v1beta1/authz.ts +0 -306
- package/types/cosmos/staking/v1beta1/genesis.ts +0 -377
- package/types/cosmos/staking/v1beta1/query.ts +0 -2540
- package/types/cosmos/staking/v1beta1/staking.ts +0 -2576
- package/types/cosmos/staking/v1beta1/tx.ts +0 -1433
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +0 -205
- package/types/cosmos/store/snapshots/v1/snapshot.ts +0 -746
- package/types/cosmos/store/streaming/abci/grpc.ts +0 -367
- package/types/cosmos/store/v1beta1/commit_info.ts +0 -370
- package/types/cosmos/store/v1beta1/listening.ts +0 -301
- package/types/cosmos/tx/config/v1/config.ts +0 -125
- package/types/cosmos/tx/signing/v1beta1/signing.ts +0 -630
- package/types/cosmos/tx/v1beta1/service.ts +0 -1889
- package/types/cosmos/tx/v1beta1/tx.ts +0 -1657
- package/types/cosmos/upgrade/module/v1/module.ts +0 -99
- package/types/cosmos/upgrade/v1beta1/query.ts +0 -819
- package/types/cosmos/upgrade/v1beta1/tx.ts +0 -340
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +0 -525
- package/types/cosmos/vesting/module/v1/module.ts +0 -78
- package/types/cosmos/vesting/v1beta1/tx.ts +0 -640
- package/types/cosmos/vesting/v1beta1/vesting.ts +0 -624
- package/types/cosmos_proto/cosmos.ts +0 -307
- package/types/gogoproto/gogo.ts +0 -9
- package/types/google/api/annotations.ts +0 -9
- package/types/google/api/http.ts +0 -770
- package/types/google/protobuf/any.ts +0 -259
- package/types/google/protobuf/descriptor.ts +0 -6642
- package/types/google/protobuf/duration.ts +0 -200
- package/types/google/protobuf/timestamp.ts +0 -229
- package/types/ibc/applications/fee/v1/ack.ts +0 -166
- package/types/ibc/applications/fee/v1/fee.ts +0 -403
- package/types/ibc/applications/fee/v1/genesis.ts +0 -571
- package/types/ibc/applications/fee/v1/metadata.ts +0 -122
- package/types/ibc/applications/fee/v1/query.ts +0 -1757
- package/types/ibc/applications/fee/v1/tx.ts +0 -781
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -104
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -333
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -619
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -590
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +0 -242
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +0 -175
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -416
- package/types/ibc/applications/interchain_accounts/v1/account.ts +0 -120
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +0 -199
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +0 -264
- package/types/ibc/applications/transfer/v1/authz.ts +0 -254
- package/types/ibc/applications/transfer/v1/genesis.ts +0 -165
- package/types/ibc/applications/transfer/v1/query.ts +0 -934
- package/types/ibc/applications/transfer/v1/transfer.ts +0 -220
- package/types/ibc/applications/transfer/v1/tx.ts +0 -505
- package/types/ibc/applications/transfer/v2/packet.ts +0 -177
- package/types/ibc/core/channel/v1/channel.ts +0 -1358
- package/types/ibc/core/channel/v1/genesis.ts +0 -377
- package/types/ibc/core/channel/v1/query.ts +0 -3781
- package/types/ibc/core/channel/v1/tx.ts +0 -4424
- package/types/ibc/core/channel/v1/upgrade.ts +0 -348
- package/types/ibc/core/client/v1/client.ts +0 -753
- package/types/ibc/core/client/v1/genesis.ts +0 -423
- package/types/ibc/core/client/v1/query.ts +0 -1898
- package/types/ibc/core/client/v1/tx.ts +0 -1301
- package/types/ibc/core/commitment/v1/commitment.ts +0 -336
- package/types/ibc/core/connection/v1/connection.ts +0 -840
- package/types/ibc/core/connection/v1/genesis.ts +0 -172
- package/types/ibc/core/connection/v1/query.ts +0 -1243
- package/types/ibc/core/connection/v1/tx.ts +0 -1352
- package/types/ibc/core/types/v1/genesis.ts +0 -150
- package/types/ibc/lightclients/localhost/v2/localhost.ts +0 -102
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +0 -1765
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +0 -945
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +0 -853
- package/types/ibc/lightclients/wasm/v1/genesis.ts +0 -192
- package/types/ibc/lightclients/wasm/v1/query.ts +0 -377
- package/types/ibc/lightclients/wasm/v1/tx.ts +0 -550
- package/types/ibc/lightclients/wasm/v1/wasm.ts +0 -370
- package/types/tendermint/abci/types.ts +0 -6103
- package/types/tendermint/crypto/keys.ts +0 -142
- package/types/tendermint/crypto/proof.ts +0 -533
- package/types/tendermint/libs/bits/types.ts +0 -139
- package/types/tendermint/p2p/types.ts +0 -544
- package/types/tendermint/types/block.ts +0 -158
- package/types/tendermint/types/evidence.ts +0 -502
- package/types/tendermint/types/params.ts +0 -701
- package/types/tendermint/types/types.ts +0 -2133
- package/types/tendermint/types/validator.ts +0 -424
- package/types/tendermint/version/types.ts +0 -218
- package/types.d.ts +0 -21
|
@@ -1,1177 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.6.1
|
|
4
|
-
// protoc unknown
|
|
5
|
-
// source: cosmos/distribution/v1beta1/distribution.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Coin, DecCoin } from "../../base/v1beta1/coin";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "cosmos.distribution.v1beta1";
|
|
12
|
-
|
|
13
|
-
/** Params defines the set of params for the distribution module. */
|
|
14
|
-
export interface Params {
|
|
15
|
-
communityTax: string;
|
|
16
|
-
/**
|
|
17
|
-
* Deprecated: The base_proposer_reward field is deprecated and is no longer used
|
|
18
|
-
* in the x/distribution module's reward mechanism.
|
|
19
|
-
*
|
|
20
|
-
* @deprecated
|
|
21
|
-
*/
|
|
22
|
-
baseProposerReward: string;
|
|
23
|
-
/**
|
|
24
|
-
* Deprecated: The bonus_proposer_reward field is deprecated and is no longer used
|
|
25
|
-
* in the x/distribution module's reward mechanism.
|
|
26
|
-
*
|
|
27
|
-
* @deprecated
|
|
28
|
-
*/
|
|
29
|
-
bonusProposerReward: string;
|
|
30
|
-
withdrawAddrEnabled: boolean;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* ValidatorHistoricalRewards represents historical rewards for a validator.
|
|
35
|
-
* Height is implicit within the store key.
|
|
36
|
-
* Cumulative reward ratio is the sum from the zeroeth period
|
|
37
|
-
* until this period of rewards / tokens, per the spec.
|
|
38
|
-
* The reference count indicates the number of objects
|
|
39
|
-
* which might need to reference this historical entry at any point.
|
|
40
|
-
* ReferenceCount =
|
|
41
|
-
* number of outstanding delegations which ended the associated period (and
|
|
42
|
-
* might need to read that record)
|
|
43
|
-
* + number of slashes which ended the associated period (and might need to
|
|
44
|
-
* read that record)
|
|
45
|
-
* + one per validator for the zeroeth period, set on initialization
|
|
46
|
-
*/
|
|
47
|
-
export interface ValidatorHistoricalRewards {
|
|
48
|
-
cumulativeRewardRatio: DecCoin[];
|
|
49
|
-
referenceCount: number;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* ValidatorCurrentRewards represents current rewards and current
|
|
54
|
-
* period for a validator kept as a running counter and incremented
|
|
55
|
-
* each block as long as the validator's tokens remain constant.
|
|
56
|
-
*/
|
|
57
|
-
export interface ValidatorCurrentRewards {
|
|
58
|
-
rewards: DecCoin[];
|
|
59
|
-
period: number;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* ValidatorAccumulatedCommission represents accumulated commission
|
|
64
|
-
* for a validator kept as a running counter, can be withdrawn at any time.
|
|
65
|
-
*/
|
|
66
|
-
export interface ValidatorAccumulatedCommission {
|
|
67
|
-
commission: DecCoin[];
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
|
|
72
|
-
* for a validator inexpensive to track, allows simple sanity checks.
|
|
73
|
-
*/
|
|
74
|
-
export interface ValidatorOutstandingRewards {
|
|
75
|
-
rewards: DecCoin[];
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* ValidatorSlashEvent represents a validator slash event.
|
|
80
|
-
* Height is implicit within the store key.
|
|
81
|
-
* This is needed to calculate appropriate amount of staking tokens
|
|
82
|
-
* for delegations which are withdrawn after a slash has occurred.
|
|
83
|
-
*/
|
|
84
|
-
export interface ValidatorSlashEvent {
|
|
85
|
-
validatorPeriod: number;
|
|
86
|
-
fraction: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */
|
|
90
|
-
export interface ValidatorSlashEvents {
|
|
91
|
-
validatorSlashEvents: ValidatorSlashEvent[];
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/** FeePool is the global fee pool for distribution. */
|
|
95
|
-
export interface FeePool {
|
|
96
|
-
communityPool: DecCoin[];
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* CommunityPoolSpendProposal details a proposal for use of community funds,
|
|
101
|
-
* together with how many coins are proposed to be spent, and to which
|
|
102
|
-
* recipient account.
|
|
103
|
-
*
|
|
104
|
-
* Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no
|
|
105
|
-
* longer a need for an explicit CommunityPoolSpendProposal. To spend community
|
|
106
|
-
* pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov
|
|
107
|
-
* module via a v1 governance proposal.
|
|
108
|
-
*
|
|
109
|
-
* @deprecated
|
|
110
|
-
*/
|
|
111
|
-
export interface CommunityPoolSpendProposal {
|
|
112
|
-
title: string;
|
|
113
|
-
description: string;
|
|
114
|
-
recipient: string;
|
|
115
|
-
amount: Coin[];
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* DelegatorStartingInfo represents the starting info for a delegator reward
|
|
120
|
-
* period. It tracks the previous validator period, the delegation's amount of
|
|
121
|
-
* staking token, and the creation height (to check later on if any slashes have
|
|
122
|
-
* occurred). NOTE: Even though validators are slashed to whole staking tokens,
|
|
123
|
-
* the delegators within the validator may be left with less than a full token,
|
|
124
|
-
* thus sdk.Dec is used.
|
|
125
|
-
*/
|
|
126
|
-
export interface DelegatorStartingInfo {
|
|
127
|
-
previousPeriod: number;
|
|
128
|
-
stake: string;
|
|
129
|
-
height: number;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* DelegationDelegatorReward represents the properties
|
|
134
|
-
* of a delegator's delegation reward.
|
|
135
|
-
*/
|
|
136
|
-
export interface DelegationDelegatorReward {
|
|
137
|
-
validatorAddress: string;
|
|
138
|
-
reward: DecCoin[];
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
|
|
143
|
-
* with a deposit
|
|
144
|
-
*/
|
|
145
|
-
export interface CommunityPoolSpendProposalWithDeposit {
|
|
146
|
-
title: string;
|
|
147
|
-
description: string;
|
|
148
|
-
recipient: string;
|
|
149
|
-
amount: string;
|
|
150
|
-
deposit: string;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
function createBaseParams(): Params {
|
|
154
|
-
return { communityTax: "", baseProposerReward: "", bonusProposerReward: "", withdrawAddrEnabled: false };
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export const Params: MessageFns<Params> = {
|
|
158
|
-
encode(message: Params, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
159
|
-
if (message.communityTax !== "") {
|
|
160
|
-
writer.uint32(10).string(message.communityTax);
|
|
161
|
-
}
|
|
162
|
-
if (message.baseProposerReward !== "") {
|
|
163
|
-
writer.uint32(18).string(message.baseProposerReward);
|
|
164
|
-
}
|
|
165
|
-
if (message.bonusProposerReward !== "") {
|
|
166
|
-
writer.uint32(26).string(message.bonusProposerReward);
|
|
167
|
-
}
|
|
168
|
-
if (message.withdrawAddrEnabled !== false) {
|
|
169
|
-
writer.uint32(32).bool(message.withdrawAddrEnabled);
|
|
170
|
-
}
|
|
171
|
-
return writer;
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Params {
|
|
175
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
176
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
177
|
-
const message = createBaseParams();
|
|
178
|
-
while (reader.pos < end) {
|
|
179
|
-
const tag = reader.uint32();
|
|
180
|
-
switch (tag >>> 3) {
|
|
181
|
-
case 1: {
|
|
182
|
-
if (tag !== 10) {
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
message.communityTax = reader.string();
|
|
187
|
-
continue;
|
|
188
|
-
}
|
|
189
|
-
case 2: {
|
|
190
|
-
if (tag !== 18) {
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
message.baseProposerReward = reader.string();
|
|
195
|
-
continue;
|
|
196
|
-
}
|
|
197
|
-
case 3: {
|
|
198
|
-
if (tag !== 26) {
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
message.bonusProposerReward = reader.string();
|
|
203
|
-
continue;
|
|
204
|
-
}
|
|
205
|
-
case 4: {
|
|
206
|
-
if (tag !== 32) {
|
|
207
|
-
break;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
message.withdrawAddrEnabled = reader.bool();
|
|
211
|
-
continue;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
215
|
-
break;
|
|
216
|
-
}
|
|
217
|
-
reader.skip(tag & 7);
|
|
218
|
-
}
|
|
219
|
-
return message;
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
fromJSON(object: any): Params {
|
|
223
|
-
return {
|
|
224
|
-
communityTax: isSet(object.communityTax) ? globalThis.String(object.communityTax) : "",
|
|
225
|
-
baseProposerReward: isSet(object.baseProposerReward) ? globalThis.String(object.baseProposerReward) : "",
|
|
226
|
-
bonusProposerReward: isSet(object.bonusProposerReward) ? globalThis.String(object.bonusProposerReward) : "",
|
|
227
|
-
withdrawAddrEnabled: isSet(object.withdrawAddrEnabled) ? globalThis.Boolean(object.withdrawAddrEnabled) : false,
|
|
228
|
-
};
|
|
229
|
-
},
|
|
230
|
-
|
|
231
|
-
toJSON(message: Params): unknown {
|
|
232
|
-
const obj: any = {};
|
|
233
|
-
if (message.communityTax !== "") {
|
|
234
|
-
obj.communityTax = message.communityTax;
|
|
235
|
-
}
|
|
236
|
-
if (message.baseProposerReward !== "") {
|
|
237
|
-
obj.baseProposerReward = message.baseProposerReward;
|
|
238
|
-
}
|
|
239
|
-
if (message.bonusProposerReward !== "") {
|
|
240
|
-
obj.bonusProposerReward = message.bonusProposerReward;
|
|
241
|
-
}
|
|
242
|
-
if (message.withdrawAddrEnabled !== false) {
|
|
243
|
-
obj.withdrawAddrEnabled = message.withdrawAddrEnabled;
|
|
244
|
-
}
|
|
245
|
-
return obj;
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
create<I extends Exact<DeepPartial<Params>, I>>(base?: I): Params {
|
|
249
|
-
return Params.fromPartial(base ?? ({} as any));
|
|
250
|
-
},
|
|
251
|
-
fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
|
|
252
|
-
const message = createBaseParams();
|
|
253
|
-
message.communityTax = object.communityTax ?? "";
|
|
254
|
-
message.baseProposerReward = object.baseProposerReward ?? "";
|
|
255
|
-
message.bonusProposerReward = object.bonusProposerReward ?? "";
|
|
256
|
-
message.withdrawAddrEnabled = object.withdrawAddrEnabled ?? false;
|
|
257
|
-
return message;
|
|
258
|
-
},
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
function createBaseValidatorHistoricalRewards(): ValidatorHistoricalRewards {
|
|
262
|
-
return { cumulativeRewardRatio: [], referenceCount: 0 };
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export const ValidatorHistoricalRewards: MessageFns<ValidatorHistoricalRewards> = {
|
|
266
|
-
encode(message: ValidatorHistoricalRewards, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
267
|
-
for (const v of message.cumulativeRewardRatio) {
|
|
268
|
-
DecCoin.encode(v!, writer.uint32(10).fork()).join();
|
|
269
|
-
}
|
|
270
|
-
if (message.referenceCount !== 0) {
|
|
271
|
-
writer.uint32(16).uint32(message.referenceCount);
|
|
272
|
-
}
|
|
273
|
-
return writer;
|
|
274
|
-
},
|
|
275
|
-
|
|
276
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewards {
|
|
277
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
278
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
279
|
-
const message = createBaseValidatorHistoricalRewards();
|
|
280
|
-
while (reader.pos < end) {
|
|
281
|
-
const tag = reader.uint32();
|
|
282
|
-
switch (tag >>> 3) {
|
|
283
|
-
case 1: {
|
|
284
|
-
if (tag !== 10) {
|
|
285
|
-
break;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
message.cumulativeRewardRatio.push(DecCoin.decode(reader, reader.uint32()));
|
|
289
|
-
continue;
|
|
290
|
-
}
|
|
291
|
-
case 2: {
|
|
292
|
-
if (tag !== 16) {
|
|
293
|
-
break;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
message.referenceCount = reader.uint32();
|
|
297
|
-
continue;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
301
|
-
break;
|
|
302
|
-
}
|
|
303
|
-
reader.skip(tag & 7);
|
|
304
|
-
}
|
|
305
|
-
return message;
|
|
306
|
-
},
|
|
307
|
-
|
|
308
|
-
fromJSON(object: any): ValidatorHistoricalRewards {
|
|
309
|
-
return {
|
|
310
|
-
cumulativeRewardRatio: globalThis.Array.isArray(object?.cumulativeRewardRatio)
|
|
311
|
-
? object.cumulativeRewardRatio.map((e: any) => DecCoin.fromJSON(e))
|
|
312
|
-
: [],
|
|
313
|
-
referenceCount: isSet(object.referenceCount) ? globalThis.Number(object.referenceCount) : 0,
|
|
314
|
-
};
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
toJSON(message: ValidatorHistoricalRewards): unknown {
|
|
318
|
-
const obj: any = {};
|
|
319
|
-
if (message.cumulativeRewardRatio?.length) {
|
|
320
|
-
obj.cumulativeRewardRatio = message.cumulativeRewardRatio.map((e) => DecCoin.toJSON(e));
|
|
321
|
-
}
|
|
322
|
-
if (message.referenceCount !== 0) {
|
|
323
|
-
obj.referenceCount = Math.round(message.referenceCount);
|
|
324
|
-
}
|
|
325
|
-
return obj;
|
|
326
|
-
},
|
|
327
|
-
|
|
328
|
-
create<I extends Exact<DeepPartial<ValidatorHistoricalRewards>, I>>(base?: I): ValidatorHistoricalRewards {
|
|
329
|
-
return ValidatorHistoricalRewards.fromPartial(base ?? ({} as any));
|
|
330
|
-
},
|
|
331
|
-
fromPartial<I extends Exact<DeepPartial<ValidatorHistoricalRewards>, I>>(object: I): ValidatorHistoricalRewards {
|
|
332
|
-
const message = createBaseValidatorHistoricalRewards();
|
|
333
|
-
message.cumulativeRewardRatio = object.cumulativeRewardRatio?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
334
|
-
message.referenceCount = object.referenceCount ?? 0;
|
|
335
|
-
return message;
|
|
336
|
-
},
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
function createBaseValidatorCurrentRewards(): ValidatorCurrentRewards {
|
|
340
|
-
return { rewards: [], period: 0 };
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
export const ValidatorCurrentRewards: MessageFns<ValidatorCurrentRewards> = {
|
|
344
|
-
encode(message: ValidatorCurrentRewards, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
345
|
-
for (const v of message.rewards) {
|
|
346
|
-
DecCoin.encode(v!, writer.uint32(10).fork()).join();
|
|
347
|
-
}
|
|
348
|
-
if (message.period !== 0) {
|
|
349
|
-
writer.uint32(16).uint64(message.period);
|
|
350
|
-
}
|
|
351
|
-
return writer;
|
|
352
|
-
},
|
|
353
|
-
|
|
354
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewards {
|
|
355
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
356
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
357
|
-
const message = createBaseValidatorCurrentRewards();
|
|
358
|
-
while (reader.pos < end) {
|
|
359
|
-
const tag = reader.uint32();
|
|
360
|
-
switch (tag >>> 3) {
|
|
361
|
-
case 1: {
|
|
362
|
-
if (tag !== 10) {
|
|
363
|
-
break;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
message.rewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
367
|
-
continue;
|
|
368
|
-
}
|
|
369
|
-
case 2: {
|
|
370
|
-
if (tag !== 16) {
|
|
371
|
-
break;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
message.period = longToNumber(reader.uint64());
|
|
375
|
-
continue;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
379
|
-
break;
|
|
380
|
-
}
|
|
381
|
-
reader.skip(tag & 7);
|
|
382
|
-
}
|
|
383
|
-
return message;
|
|
384
|
-
},
|
|
385
|
-
|
|
386
|
-
fromJSON(object: any): ValidatorCurrentRewards {
|
|
387
|
-
return {
|
|
388
|
-
rewards: globalThis.Array.isArray(object?.rewards) ? object.rewards.map((e: any) => DecCoin.fromJSON(e)) : [],
|
|
389
|
-
period: isSet(object.period) ? globalThis.Number(object.period) : 0,
|
|
390
|
-
};
|
|
391
|
-
},
|
|
392
|
-
|
|
393
|
-
toJSON(message: ValidatorCurrentRewards): unknown {
|
|
394
|
-
const obj: any = {};
|
|
395
|
-
if (message.rewards?.length) {
|
|
396
|
-
obj.rewards = message.rewards.map((e) => DecCoin.toJSON(e));
|
|
397
|
-
}
|
|
398
|
-
if (message.period !== 0) {
|
|
399
|
-
obj.period = Math.round(message.period);
|
|
400
|
-
}
|
|
401
|
-
return obj;
|
|
402
|
-
},
|
|
403
|
-
|
|
404
|
-
create<I extends Exact<DeepPartial<ValidatorCurrentRewards>, I>>(base?: I): ValidatorCurrentRewards {
|
|
405
|
-
return ValidatorCurrentRewards.fromPartial(base ?? ({} as any));
|
|
406
|
-
},
|
|
407
|
-
fromPartial<I extends Exact<DeepPartial<ValidatorCurrentRewards>, I>>(object: I): ValidatorCurrentRewards {
|
|
408
|
-
const message = createBaseValidatorCurrentRewards();
|
|
409
|
-
message.rewards = object.rewards?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
410
|
-
message.period = object.period ?? 0;
|
|
411
|
-
return message;
|
|
412
|
-
},
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
function createBaseValidatorAccumulatedCommission(): ValidatorAccumulatedCommission {
|
|
416
|
-
return { commission: [] };
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
export const ValidatorAccumulatedCommission: MessageFns<ValidatorAccumulatedCommission> = {
|
|
420
|
-
encode(message: ValidatorAccumulatedCommission, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
421
|
-
for (const v of message.commission) {
|
|
422
|
-
DecCoin.encode(v!, writer.uint32(10).fork()).join();
|
|
423
|
-
}
|
|
424
|
-
return writer;
|
|
425
|
-
},
|
|
426
|
-
|
|
427
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommission {
|
|
428
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
429
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
430
|
-
const message = createBaseValidatorAccumulatedCommission();
|
|
431
|
-
while (reader.pos < end) {
|
|
432
|
-
const tag = reader.uint32();
|
|
433
|
-
switch (tag >>> 3) {
|
|
434
|
-
case 1: {
|
|
435
|
-
if (tag !== 10) {
|
|
436
|
-
break;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
message.commission.push(DecCoin.decode(reader, reader.uint32()));
|
|
440
|
-
continue;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
444
|
-
break;
|
|
445
|
-
}
|
|
446
|
-
reader.skip(tag & 7);
|
|
447
|
-
}
|
|
448
|
-
return message;
|
|
449
|
-
},
|
|
450
|
-
|
|
451
|
-
fromJSON(object: any): ValidatorAccumulatedCommission {
|
|
452
|
-
return {
|
|
453
|
-
commission: globalThis.Array.isArray(object?.commission)
|
|
454
|
-
? object.commission.map((e: any) => DecCoin.fromJSON(e))
|
|
455
|
-
: [],
|
|
456
|
-
};
|
|
457
|
-
},
|
|
458
|
-
|
|
459
|
-
toJSON(message: ValidatorAccumulatedCommission): unknown {
|
|
460
|
-
const obj: any = {};
|
|
461
|
-
if (message.commission?.length) {
|
|
462
|
-
obj.commission = message.commission.map((e) => DecCoin.toJSON(e));
|
|
463
|
-
}
|
|
464
|
-
return obj;
|
|
465
|
-
},
|
|
466
|
-
|
|
467
|
-
create<I extends Exact<DeepPartial<ValidatorAccumulatedCommission>, I>>(base?: I): ValidatorAccumulatedCommission {
|
|
468
|
-
return ValidatorAccumulatedCommission.fromPartial(base ?? ({} as any));
|
|
469
|
-
},
|
|
470
|
-
fromPartial<I extends Exact<DeepPartial<ValidatorAccumulatedCommission>, I>>(
|
|
471
|
-
object: I,
|
|
472
|
-
): ValidatorAccumulatedCommission {
|
|
473
|
-
const message = createBaseValidatorAccumulatedCommission();
|
|
474
|
-
message.commission = object.commission?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
475
|
-
return message;
|
|
476
|
-
},
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
function createBaseValidatorOutstandingRewards(): ValidatorOutstandingRewards {
|
|
480
|
-
return { rewards: [] };
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
export const ValidatorOutstandingRewards: MessageFns<ValidatorOutstandingRewards> = {
|
|
484
|
-
encode(message: ValidatorOutstandingRewards, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
485
|
-
for (const v of message.rewards) {
|
|
486
|
-
DecCoin.encode(v!, writer.uint32(10).fork()).join();
|
|
487
|
-
}
|
|
488
|
-
return writer;
|
|
489
|
-
},
|
|
490
|
-
|
|
491
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewards {
|
|
492
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
493
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
494
|
-
const message = createBaseValidatorOutstandingRewards();
|
|
495
|
-
while (reader.pos < end) {
|
|
496
|
-
const tag = reader.uint32();
|
|
497
|
-
switch (tag >>> 3) {
|
|
498
|
-
case 1: {
|
|
499
|
-
if (tag !== 10) {
|
|
500
|
-
break;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
message.rewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
504
|
-
continue;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
508
|
-
break;
|
|
509
|
-
}
|
|
510
|
-
reader.skip(tag & 7);
|
|
511
|
-
}
|
|
512
|
-
return message;
|
|
513
|
-
},
|
|
514
|
-
|
|
515
|
-
fromJSON(object: any): ValidatorOutstandingRewards {
|
|
516
|
-
return {
|
|
517
|
-
rewards: globalThis.Array.isArray(object?.rewards) ? object.rewards.map((e: any) => DecCoin.fromJSON(e)) : [],
|
|
518
|
-
};
|
|
519
|
-
},
|
|
520
|
-
|
|
521
|
-
toJSON(message: ValidatorOutstandingRewards): unknown {
|
|
522
|
-
const obj: any = {};
|
|
523
|
-
if (message.rewards?.length) {
|
|
524
|
-
obj.rewards = message.rewards.map((e) => DecCoin.toJSON(e));
|
|
525
|
-
}
|
|
526
|
-
return obj;
|
|
527
|
-
},
|
|
528
|
-
|
|
529
|
-
create<I extends Exact<DeepPartial<ValidatorOutstandingRewards>, I>>(base?: I): ValidatorOutstandingRewards {
|
|
530
|
-
return ValidatorOutstandingRewards.fromPartial(base ?? ({} as any));
|
|
531
|
-
},
|
|
532
|
-
fromPartial<I extends Exact<DeepPartial<ValidatorOutstandingRewards>, I>>(object: I): ValidatorOutstandingRewards {
|
|
533
|
-
const message = createBaseValidatorOutstandingRewards();
|
|
534
|
-
message.rewards = object.rewards?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
535
|
-
return message;
|
|
536
|
-
},
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
function createBaseValidatorSlashEvent(): ValidatorSlashEvent {
|
|
540
|
-
return { validatorPeriod: 0, fraction: "" };
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
export const ValidatorSlashEvent: MessageFns<ValidatorSlashEvent> = {
|
|
544
|
-
encode(message: ValidatorSlashEvent, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
545
|
-
if (message.validatorPeriod !== 0) {
|
|
546
|
-
writer.uint32(8).uint64(message.validatorPeriod);
|
|
547
|
-
}
|
|
548
|
-
if (message.fraction !== "") {
|
|
549
|
-
writer.uint32(18).string(message.fraction);
|
|
550
|
-
}
|
|
551
|
-
return writer;
|
|
552
|
-
},
|
|
553
|
-
|
|
554
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvent {
|
|
555
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
556
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
557
|
-
const message = createBaseValidatorSlashEvent();
|
|
558
|
-
while (reader.pos < end) {
|
|
559
|
-
const tag = reader.uint32();
|
|
560
|
-
switch (tag >>> 3) {
|
|
561
|
-
case 1: {
|
|
562
|
-
if (tag !== 8) {
|
|
563
|
-
break;
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
message.validatorPeriod = longToNumber(reader.uint64());
|
|
567
|
-
continue;
|
|
568
|
-
}
|
|
569
|
-
case 2: {
|
|
570
|
-
if (tag !== 18) {
|
|
571
|
-
break;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
message.fraction = reader.string();
|
|
575
|
-
continue;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
579
|
-
break;
|
|
580
|
-
}
|
|
581
|
-
reader.skip(tag & 7);
|
|
582
|
-
}
|
|
583
|
-
return message;
|
|
584
|
-
},
|
|
585
|
-
|
|
586
|
-
fromJSON(object: any): ValidatorSlashEvent {
|
|
587
|
-
return {
|
|
588
|
-
validatorPeriod: isSet(object.validatorPeriod) ? globalThis.Number(object.validatorPeriod) : 0,
|
|
589
|
-
fraction: isSet(object.fraction) ? globalThis.String(object.fraction) : "",
|
|
590
|
-
};
|
|
591
|
-
},
|
|
592
|
-
|
|
593
|
-
toJSON(message: ValidatorSlashEvent): unknown {
|
|
594
|
-
const obj: any = {};
|
|
595
|
-
if (message.validatorPeriod !== 0) {
|
|
596
|
-
obj.validatorPeriod = Math.round(message.validatorPeriod);
|
|
597
|
-
}
|
|
598
|
-
if (message.fraction !== "") {
|
|
599
|
-
obj.fraction = message.fraction;
|
|
600
|
-
}
|
|
601
|
-
return obj;
|
|
602
|
-
},
|
|
603
|
-
|
|
604
|
-
create<I extends Exact<DeepPartial<ValidatorSlashEvent>, I>>(base?: I): ValidatorSlashEvent {
|
|
605
|
-
return ValidatorSlashEvent.fromPartial(base ?? ({} as any));
|
|
606
|
-
},
|
|
607
|
-
fromPartial<I extends Exact<DeepPartial<ValidatorSlashEvent>, I>>(object: I): ValidatorSlashEvent {
|
|
608
|
-
const message = createBaseValidatorSlashEvent();
|
|
609
|
-
message.validatorPeriod = object.validatorPeriod ?? 0;
|
|
610
|
-
message.fraction = object.fraction ?? "";
|
|
611
|
-
return message;
|
|
612
|
-
},
|
|
613
|
-
};
|
|
614
|
-
|
|
615
|
-
function createBaseValidatorSlashEvents(): ValidatorSlashEvents {
|
|
616
|
-
return { validatorSlashEvents: [] };
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
export const ValidatorSlashEvents: MessageFns<ValidatorSlashEvents> = {
|
|
620
|
-
encode(message: ValidatorSlashEvents, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
621
|
-
for (const v of message.validatorSlashEvents) {
|
|
622
|
-
ValidatorSlashEvent.encode(v!, writer.uint32(10).fork()).join();
|
|
623
|
-
}
|
|
624
|
-
return writer;
|
|
625
|
-
},
|
|
626
|
-
|
|
627
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvents {
|
|
628
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
629
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
630
|
-
const message = createBaseValidatorSlashEvents();
|
|
631
|
-
while (reader.pos < end) {
|
|
632
|
-
const tag = reader.uint32();
|
|
633
|
-
switch (tag >>> 3) {
|
|
634
|
-
case 1: {
|
|
635
|
-
if (tag !== 10) {
|
|
636
|
-
break;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
message.validatorSlashEvents.push(ValidatorSlashEvent.decode(reader, reader.uint32()));
|
|
640
|
-
continue;
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
644
|
-
break;
|
|
645
|
-
}
|
|
646
|
-
reader.skip(tag & 7);
|
|
647
|
-
}
|
|
648
|
-
return message;
|
|
649
|
-
},
|
|
650
|
-
|
|
651
|
-
fromJSON(object: any): ValidatorSlashEvents {
|
|
652
|
-
return {
|
|
653
|
-
validatorSlashEvents: globalThis.Array.isArray(object?.validatorSlashEvents)
|
|
654
|
-
? object.validatorSlashEvents.map((e: any) => ValidatorSlashEvent.fromJSON(e))
|
|
655
|
-
: [],
|
|
656
|
-
};
|
|
657
|
-
},
|
|
658
|
-
|
|
659
|
-
toJSON(message: ValidatorSlashEvents): unknown {
|
|
660
|
-
const obj: any = {};
|
|
661
|
-
if (message.validatorSlashEvents?.length) {
|
|
662
|
-
obj.validatorSlashEvents = message.validatorSlashEvents.map((e) => ValidatorSlashEvent.toJSON(e));
|
|
663
|
-
}
|
|
664
|
-
return obj;
|
|
665
|
-
},
|
|
666
|
-
|
|
667
|
-
create<I extends Exact<DeepPartial<ValidatorSlashEvents>, I>>(base?: I): ValidatorSlashEvents {
|
|
668
|
-
return ValidatorSlashEvents.fromPartial(base ?? ({} as any));
|
|
669
|
-
},
|
|
670
|
-
fromPartial<I extends Exact<DeepPartial<ValidatorSlashEvents>, I>>(object: I): ValidatorSlashEvents {
|
|
671
|
-
const message = createBaseValidatorSlashEvents();
|
|
672
|
-
message.validatorSlashEvents = object.validatorSlashEvents?.map((e) => ValidatorSlashEvent.fromPartial(e)) || [];
|
|
673
|
-
return message;
|
|
674
|
-
},
|
|
675
|
-
};
|
|
676
|
-
|
|
677
|
-
function createBaseFeePool(): FeePool {
|
|
678
|
-
return { communityPool: [] };
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
export const FeePool: MessageFns<FeePool> = {
|
|
682
|
-
encode(message: FeePool, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
683
|
-
for (const v of message.communityPool) {
|
|
684
|
-
DecCoin.encode(v!, writer.uint32(10).fork()).join();
|
|
685
|
-
}
|
|
686
|
-
return writer;
|
|
687
|
-
},
|
|
688
|
-
|
|
689
|
-
decode(input: BinaryReader | Uint8Array, length?: number): FeePool {
|
|
690
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
691
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
692
|
-
const message = createBaseFeePool();
|
|
693
|
-
while (reader.pos < end) {
|
|
694
|
-
const tag = reader.uint32();
|
|
695
|
-
switch (tag >>> 3) {
|
|
696
|
-
case 1: {
|
|
697
|
-
if (tag !== 10) {
|
|
698
|
-
break;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
message.communityPool.push(DecCoin.decode(reader, reader.uint32()));
|
|
702
|
-
continue;
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
706
|
-
break;
|
|
707
|
-
}
|
|
708
|
-
reader.skip(tag & 7);
|
|
709
|
-
}
|
|
710
|
-
return message;
|
|
711
|
-
},
|
|
712
|
-
|
|
713
|
-
fromJSON(object: any): FeePool {
|
|
714
|
-
return {
|
|
715
|
-
communityPool: globalThis.Array.isArray(object?.communityPool)
|
|
716
|
-
? object.communityPool.map((e: any) => DecCoin.fromJSON(e))
|
|
717
|
-
: [],
|
|
718
|
-
};
|
|
719
|
-
},
|
|
720
|
-
|
|
721
|
-
toJSON(message: FeePool): unknown {
|
|
722
|
-
const obj: any = {};
|
|
723
|
-
if (message.communityPool?.length) {
|
|
724
|
-
obj.communityPool = message.communityPool.map((e) => DecCoin.toJSON(e));
|
|
725
|
-
}
|
|
726
|
-
return obj;
|
|
727
|
-
},
|
|
728
|
-
|
|
729
|
-
create<I extends Exact<DeepPartial<FeePool>, I>>(base?: I): FeePool {
|
|
730
|
-
return FeePool.fromPartial(base ?? ({} as any));
|
|
731
|
-
},
|
|
732
|
-
fromPartial<I extends Exact<DeepPartial<FeePool>, I>>(object: I): FeePool {
|
|
733
|
-
const message = createBaseFeePool();
|
|
734
|
-
message.communityPool = object.communityPool?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
735
|
-
return message;
|
|
736
|
-
},
|
|
737
|
-
};
|
|
738
|
-
|
|
739
|
-
function createBaseCommunityPoolSpendProposal(): CommunityPoolSpendProposal {
|
|
740
|
-
return { title: "", description: "", recipient: "", amount: [] };
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
export const CommunityPoolSpendProposal: MessageFns<CommunityPoolSpendProposal> = {
|
|
744
|
-
encode(message: CommunityPoolSpendProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
745
|
-
if (message.title !== "") {
|
|
746
|
-
writer.uint32(10).string(message.title);
|
|
747
|
-
}
|
|
748
|
-
if (message.description !== "") {
|
|
749
|
-
writer.uint32(18).string(message.description);
|
|
750
|
-
}
|
|
751
|
-
if (message.recipient !== "") {
|
|
752
|
-
writer.uint32(26).string(message.recipient);
|
|
753
|
-
}
|
|
754
|
-
for (const v of message.amount) {
|
|
755
|
-
Coin.encode(v!, writer.uint32(34).fork()).join();
|
|
756
|
-
}
|
|
757
|
-
return writer;
|
|
758
|
-
},
|
|
759
|
-
|
|
760
|
-
decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposal {
|
|
761
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
762
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
763
|
-
const message = createBaseCommunityPoolSpendProposal();
|
|
764
|
-
while (reader.pos < end) {
|
|
765
|
-
const tag = reader.uint32();
|
|
766
|
-
switch (tag >>> 3) {
|
|
767
|
-
case 1: {
|
|
768
|
-
if (tag !== 10) {
|
|
769
|
-
break;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
message.title = reader.string();
|
|
773
|
-
continue;
|
|
774
|
-
}
|
|
775
|
-
case 2: {
|
|
776
|
-
if (tag !== 18) {
|
|
777
|
-
break;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
message.description = reader.string();
|
|
781
|
-
continue;
|
|
782
|
-
}
|
|
783
|
-
case 3: {
|
|
784
|
-
if (tag !== 26) {
|
|
785
|
-
break;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
message.recipient = reader.string();
|
|
789
|
-
continue;
|
|
790
|
-
}
|
|
791
|
-
case 4: {
|
|
792
|
-
if (tag !== 34) {
|
|
793
|
-
break;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
797
|
-
continue;
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
801
|
-
break;
|
|
802
|
-
}
|
|
803
|
-
reader.skip(tag & 7);
|
|
804
|
-
}
|
|
805
|
-
return message;
|
|
806
|
-
},
|
|
807
|
-
|
|
808
|
-
fromJSON(object: any): CommunityPoolSpendProposal {
|
|
809
|
-
return {
|
|
810
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
811
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
812
|
-
recipient: isSet(object.recipient) ? globalThis.String(object.recipient) : "",
|
|
813
|
-
amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [],
|
|
814
|
-
};
|
|
815
|
-
},
|
|
816
|
-
|
|
817
|
-
toJSON(message: CommunityPoolSpendProposal): unknown {
|
|
818
|
-
const obj: any = {};
|
|
819
|
-
if (message.title !== "") {
|
|
820
|
-
obj.title = message.title;
|
|
821
|
-
}
|
|
822
|
-
if (message.description !== "") {
|
|
823
|
-
obj.description = message.description;
|
|
824
|
-
}
|
|
825
|
-
if (message.recipient !== "") {
|
|
826
|
-
obj.recipient = message.recipient;
|
|
827
|
-
}
|
|
828
|
-
if (message.amount?.length) {
|
|
829
|
-
obj.amount = message.amount.map((e) => Coin.toJSON(e));
|
|
830
|
-
}
|
|
831
|
-
return obj;
|
|
832
|
-
},
|
|
833
|
-
|
|
834
|
-
create<I extends Exact<DeepPartial<CommunityPoolSpendProposal>, I>>(base?: I): CommunityPoolSpendProposal {
|
|
835
|
-
return CommunityPoolSpendProposal.fromPartial(base ?? ({} as any));
|
|
836
|
-
},
|
|
837
|
-
fromPartial<I extends Exact<DeepPartial<CommunityPoolSpendProposal>, I>>(object: I): CommunityPoolSpendProposal {
|
|
838
|
-
const message = createBaseCommunityPoolSpendProposal();
|
|
839
|
-
message.title = object.title ?? "";
|
|
840
|
-
message.description = object.description ?? "";
|
|
841
|
-
message.recipient = object.recipient ?? "";
|
|
842
|
-
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
843
|
-
return message;
|
|
844
|
-
},
|
|
845
|
-
};
|
|
846
|
-
|
|
847
|
-
function createBaseDelegatorStartingInfo(): DelegatorStartingInfo {
|
|
848
|
-
return { previousPeriod: 0, stake: "", height: 0 };
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
export const DelegatorStartingInfo: MessageFns<DelegatorStartingInfo> = {
|
|
852
|
-
encode(message: DelegatorStartingInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
853
|
-
if (message.previousPeriod !== 0) {
|
|
854
|
-
writer.uint32(8).uint64(message.previousPeriod);
|
|
855
|
-
}
|
|
856
|
-
if (message.stake !== "") {
|
|
857
|
-
writer.uint32(18).string(message.stake);
|
|
858
|
-
}
|
|
859
|
-
if (message.height !== 0) {
|
|
860
|
-
writer.uint32(24).uint64(message.height);
|
|
861
|
-
}
|
|
862
|
-
return writer;
|
|
863
|
-
},
|
|
864
|
-
|
|
865
|
-
decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfo {
|
|
866
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
867
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
868
|
-
const message = createBaseDelegatorStartingInfo();
|
|
869
|
-
while (reader.pos < end) {
|
|
870
|
-
const tag = reader.uint32();
|
|
871
|
-
switch (tag >>> 3) {
|
|
872
|
-
case 1: {
|
|
873
|
-
if (tag !== 8) {
|
|
874
|
-
break;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
message.previousPeriod = longToNumber(reader.uint64());
|
|
878
|
-
continue;
|
|
879
|
-
}
|
|
880
|
-
case 2: {
|
|
881
|
-
if (tag !== 18) {
|
|
882
|
-
break;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
message.stake = reader.string();
|
|
886
|
-
continue;
|
|
887
|
-
}
|
|
888
|
-
case 3: {
|
|
889
|
-
if (tag !== 24) {
|
|
890
|
-
break;
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
message.height = longToNumber(reader.uint64());
|
|
894
|
-
continue;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
898
|
-
break;
|
|
899
|
-
}
|
|
900
|
-
reader.skip(tag & 7);
|
|
901
|
-
}
|
|
902
|
-
return message;
|
|
903
|
-
},
|
|
904
|
-
|
|
905
|
-
fromJSON(object: any): DelegatorStartingInfo {
|
|
906
|
-
return {
|
|
907
|
-
previousPeriod: isSet(object.previousPeriod) ? globalThis.Number(object.previousPeriod) : 0,
|
|
908
|
-
stake: isSet(object.stake) ? globalThis.String(object.stake) : "",
|
|
909
|
-
height: isSet(object.height) ? globalThis.Number(object.height) : 0,
|
|
910
|
-
};
|
|
911
|
-
},
|
|
912
|
-
|
|
913
|
-
toJSON(message: DelegatorStartingInfo): unknown {
|
|
914
|
-
const obj: any = {};
|
|
915
|
-
if (message.previousPeriod !== 0) {
|
|
916
|
-
obj.previousPeriod = Math.round(message.previousPeriod);
|
|
917
|
-
}
|
|
918
|
-
if (message.stake !== "") {
|
|
919
|
-
obj.stake = message.stake;
|
|
920
|
-
}
|
|
921
|
-
if (message.height !== 0) {
|
|
922
|
-
obj.height = Math.round(message.height);
|
|
923
|
-
}
|
|
924
|
-
return obj;
|
|
925
|
-
},
|
|
926
|
-
|
|
927
|
-
create<I extends Exact<DeepPartial<DelegatorStartingInfo>, I>>(base?: I): DelegatorStartingInfo {
|
|
928
|
-
return DelegatorStartingInfo.fromPartial(base ?? ({} as any));
|
|
929
|
-
},
|
|
930
|
-
fromPartial<I extends Exact<DeepPartial<DelegatorStartingInfo>, I>>(object: I): DelegatorStartingInfo {
|
|
931
|
-
const message = createBaseDelegatorStartingInfo();
|
|
932
|
-
message.previousPeriod = object.previousPeriod ?? 0;
|
|
933
|
-
message.stake = object.stake ?? "";
|
|
934
|
-
message.height = object.height ?? 0;
|
|
935
|
-
return message;
|
|
936
|
-
},
|
|
937
|
-
};
|
|
938
|
-
|
|
939
|
-
function createBaseDelegationDelegatorReward(): DelegationDelegatorReward {
|
|
940
|
-
return { validatorAddress: "", reward: [] };
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
export const DelegationDelegatorReward: MessageFns<DelegationDelegatorReward> = {
|
|
944
|
-
encode(message: DelegationDelegatorReward, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
945
|
-
if (message.validatorAddress !== "") {
|
|
946
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
947
|
-
}
|
|
948
|
-
for (const v of message.reward) {
|
|
949
|
-
DecCoin.encode(v!, writer.uint32(18).fork()).join();
|
|
950
|
-
}
|
|
951
|
-
return writer;
|
|
952
|
-
},
|
|
953
|
-
|
|
954
|
-
decode(input: BinaryReader | Uint8Array, length?: number): DelegationDelegatorReward {
|
|
955
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
956
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
957
|
-
const message = createBaseDelegationDelegatorReward();
|
|
958
|
-
while (reader.pos < end) {
|
|
959
|
-
const tag = reader.uint32();
|
|
960
|
-
switch (tag >>> 3) {
|
|
961
|
-
case 1: {
|
|
962
|
-
if (tag !== 10) {
|
|
963
|
-
break;
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
message.validatorAddress = reader.string();
|
|
967
|
-
continue;
|
|
968
|
-
}
|
|
969
|
-
case 2: {
|
|
970
|
-
if (tag !== 18) {
|
|
971
|
-
break;
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
message.reward.push(DecCoin.decode(reader, reader.uint32()));
|
|
975
|
-
continue;
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
979
|
-
break;
|
|
980
|
-
}
|
|
981
|
-
reader.skip(tag & 7);
|
|
982
|
-
}
|
|
983
|
-
return message;
|
|
984
|
-
},
|
|
985
|
-
|
|
986
|
-
fromJSON(object: any): DelegationDelegatorReward {
|
|
987
|
-
return {
|
|
988
|
-
validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "",
|
|
989
|
-
reward: globalThis.Array.isArray(object?.reward) ? object.reward.map((e: any) => DecCoin.fromJSON(e)) : [],
|
|
990
|
-
};
|
|
991
|
-
},
|
|
992
|
-
|
|
993
|
-
toJSON(message: DelegationDelegatorReward): unknown {
|
|
994
|
-
const obj: any = {};
|
|
995
|
-
if (message.validatorAddress !== "") {
|
|
996
|
-
obj.validatorAddress = message.validatorAddress;
|
|
997
|
-
}
|
|
998
|
-
if (message.reward?.length) {
|
|
999
|
-
obj.reward = message.reward.map((e) => DecCoin.toJSON(e));
|
|
1000
|
-
}
|
|
1001
|
-
return obj;
|
|
1002
|
-
},
|
|
1003
|
-
|
|
1004
|
-
create<I extends Exact<DeepPartial<DelegationDelegatorReward>, I>>(base?: I): DelegationDelegatorReward {
|
|
1005
|
-
return DelegationDelegatorReward.fromPartial(base ?? ({} as any));
|
|
1006
|
-
},
|
|
1007
|
-
fromPartial<I extends Exact<DeepPartial<DelegationDelegatorReward>, I>>(object: I): DelegationDelegatorReward {
|
|
1008
|
-
const message = createBaseDelegationDelegatorReward();
|
|
1009
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
1010
|
-
message.reward = object.reward?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
1011
|
-
return message;
|
|
1012
|
-
},
|
|
1013
|
-
};
|
|
1014
|
-
|
|
1015
|
-
function createBaseCommunityPoolSpendProposalWithDeposit(): CommunityPoolSpendProposalWithDeposit {
|
|
1016
|
-
return { title: "", description: "", recipient: "", amount: "", deposit: "" };
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
export const CommunityPoolSpendProposalWithDeposit: MessageFns<CommunityPoolSpendProposalWithDeposit> = {
|
|
1020
|
-
encode(message: CommunityPoolSpendProposalWithDeposit, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1021
|
-
if (message.title !== "") {
|
|
1022
|
-
writer.uint32(10).string(message.title);
|
|
1023
|
-
}
|
|
1024
|
-
if (message.description !== "") {
|
|
1025
|
-
writer.uint32(18).string(message.description);
|
|
1026
|
-
}
|
|
1027
|
-
if (message.recipient !== "") {
|
|
1028
|
-
writer.uint32(26).string(message.recipient);
|
|
1029
|
-
}
|
|
1030
|
-
if (message.amount !== "") {
|
|
1031
|
-
writer.uint32(34).string(message.amount);
|
|
1032
|
-
}
|
|
1033
|
-
if (message.deposit !== "") {
|
|
1034
|
-
writer.uint32(42).string(message.deposit);
|
|
1035
|
-
}
|
|
1036
|
-
return writer;
|
|
1037
|
-
},
|
|
1038
|
-
|
|
1039
|
-
decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit {
|
|
1040
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1041
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1042
|
-
const message = createBaseCommunityPoolSpendProposalWithDeposit();
|
|
1043
|
-
while (reader.pos < end) {
|
|
1044
|
-
const tag = reader.uint32();
|
|
1045
|
-
switch (tag >>> 3) {
|
|
1046
|
-
case 1: {
|
|
1047
|
-
if (tag !== 10) {
|
|
1048
|
-
break;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
message.title = reader.string();
|
|
1052
|
-
continue;
|
|
1053
|
-
}
|
|
1054
|
-
case 2: {
|
|
1055
|
-
if (tag !== 18) {
|
|
1056
|
-
break;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
message.description = reader.string();
|
|
1060
|
-
continue;
|
|
1061
|
-
}
|
|
1062
|
-
case 3: {
|
|
1063
|
-
if (tag !== 26) {
|
|
1064
|
-
break;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
message.recipient = reader.string();
|
|
1068
|
-
continue;
|
|
1069
|
-
}
|
|
1070
|
-
case 4: {
|
|
1071
|
-
if (tag !== 34) {
|
|
1072
|
-
break;
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
message.amount = reader.string();
|
|
1076
|
-
continue;
|
|
1077
|
-
}
|
|
1078
|
-
case 5: {
|
|
1079
|
-
if (tag !== 42) {
|
|
1080
|
-
break;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
message.deposit = reader.string();
|
|
1084
|
-
continue;
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1088
|
-
break;
|
|
1089
|
-
}
|
|
1090
|
-
reader.skip(tag & 7);
|
|
1091
|
-
}
|
|
1092
|
-
return message;
|
|
1093
|
-
},
|
|
1094
|
-
|
|
1095
|
-
fromJSON(object: any): CommunityPoolSpendProposalWithDeposit {
|
|
1096
|
-
return {
|
|
1097
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
1098
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
1099
|
-
recipient: isSet(object.recipient) ? globalThis.String(object.recipient) : "",
|
|
1100
|
-
amount: isSet(object.amount) ? globalThis.String(object.amount) : "",
|
|
1101
|
-
deposit: isSet(object.deposit) ? globalThis.String(object.deposit) : "",
|
|
1102
|
-
};
|
|
1103
|
-
},
|
|
1104
|
-
|
|
1105
|
-
toJSON(message: CommunityPoolSpendProposalWithDeposit): unknown {
|
|
1106
|
-
const obj: any = {};
|
|
1107
|
-
if (message.title !== "") {
|
|
1108
|
-
obj.title = message.title;
|
|
1109
|
-
}
|
|
1110
|
-
if (message.description !== "") {
|
|
1111
|
-
obj.description = message.description;
|
|
1112
|
-
}
|
|
1113
|
-
if (message.recipient !== "") {
|
|
1114
|
-
obj.recipient = message.recipient;
|
|
1115
|
-
}
|
|
1116
|
-
if (message.amount !== "") {
|
|
1117
|
-
obj.amount = message.amount;
|
|
1118
|
-
}
|
|
1119
|
-
if (message.deposit !== "") {
|
|
1120
|
-
obj.deposit = message.deposit;
|
|
1121
|
-
}
|
|
1122
|
-
return obj;
|
|
1123
|
-
},
|
|
1124
|
-
|
|
1125
|
-
create<I extends Exact<DeepPartial<CommunityPoolSpendProposalWithDeposit>, I>>(
|
|
1126
|
-
base?: I,
|
|
1127
|
-
): CommunityPoolSpendProposalWithDeposit {
|
|
1128
|
-
return CommunityPoolSpendProposalWithDeposit.fromPartial(base ?? ({} as any));
|
|
1129
|
-
},
|
|
1130
|
-
fromPartial<I extends Exact<DeepPartial<CommunityPoolSpendProposalWithDeposit>, I>>(
|
|
1131
|
-
object: I,
|
|
1132
|
-
): CommunityPoolSpendProposalWithDeposit {
|
|
1133
|
-
const message = createBaseCommunityPoolSpendProposalWithDeposit();
|
|
1134
|
-
message.title = object.title ?? "";
|
|
1135
|
-
message.description = object.description ?? "";
|
|
1136
|
-
message.recipient = object.recipient ?? "";
|
|
1137
|
-
message.amount = object.amount ?? "";
|
|
1138
|
-
message.deposit = object.deposit ?? "";
|
|
1139
|
-
return message;
|
|
1140
|
-
},
|
|
1141
|
-
};
|
|
1142
|
-
|
|
1143
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1144
|
-
|
|
1145
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
1146
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1147
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1148
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1149
|
-
: Partial<T>;
|
|
1150
|
-
|
|
1151
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1152
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1153
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1154
|
-
|
|
1155
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
1156
|
-
const num = globalThis.Number(int64.toString());
|
|
1157
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1158
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1159
|
-
}
|
|
1160
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1161
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1162
|
-
}
|
|
1163
|
-
return num;
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
function isSet(value: any): boolean {
|
|
1167
|
-
return value !== null && value !== undefined;
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
export interface MessageFns<T> {
|
|
1171
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1172
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1173
|
-
fromJSON(object: any): T;
|
|
1174
|
-
toJSON(message: T): unknown;
|
|
1175
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1176
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1177
|
-
}
|