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,1700 +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/query.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
10
|
-
import { DecCoin } from "../../base/v1beta1/coin";
|
|
11
|
-
import {
|
|
12
|
-
DelegationDelegatorReward,
|
|
13
|
-
Params,
|
|
14
|
-
ValidatorAccumulatedCommission,
|
|
15
|
-
ValidatorOutstandingRewards,
|
|
16
|
-
ValidatorSlashEvent,
|
|
17
|
-
} from "./distribution";
|
|
18
|
-
|
|
19
|
-
export const protobufPackage = "cosmos.distribution.v1beta1";
|
|
20
|
-
|
|
21
|
-
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
22
|
-
export interface QueryParamsRequest {
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
26
|
-
export interface QueryParamsResponse {
|
|
27
|
-
/** params defines the parameters of the module. */
|
|
28
|
-
params: Params | undefined;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/** QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method. */
|
|
32
|
-
export interface QueryValidatorDistributionInfoRequest {
|
|
33
|
-
/** validator_address defines the validator address to query for. */
|
|
34
|
-
validatorAddress: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/** QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. */
|
|
38
|
-
export interface QueryValidatorDistributionInfoResponse {
|
|
39
|
-
/** operator_address defines the validator operator address. */
|
|
40
|
-
operatorAddress: string;
|
|
41
|
-
/** self_bond_rewards defines the self delegations rewards. */
|
|
42
|
-
selfBondRewards: DecCoin[];
|
|
43
|
-
/** commission defines the commission the validator received. */
|
|
44
|
-
commission: DecCoin[];
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* QueryValidatorOutstandingRewardsRequest is the request type for the
|
|
49
|
-
* Query/ValidatorOutstandingRewards RPC method.
|
|
50
|
-
*/
|
|
51
|
-
export interface QueryValidatorOutstandingRewardsRequest {
|
|
52
|
-
/** validator_address defines the validator address to query for. */
|
|
53
|
-
validatorAddress: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* QueryValidatorOutstandingRewardsResponse is the response type for the
|
|
58
|
-
* Query/ValidatorOutstandingRewards RPC method.
|
|
59
|
-
*/
|
|
60
|
-
export interface QueryValidatorOutstandingRewardsResponse {
|
|
61
|
-
rewards: ValidatorOutstandingRewards | undefined;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* QueryValidatorCommissionRequest is the request type for the
|
|
66
|
-
* Query/ValidatorCommission RPC method
|
|
67
|
-
*/
|
|
68
|
-
export interface QueryValidatorCommissionRequest {
|
|
69
|
-
/** validator_address defines the validator address to query for. */
|
|
70
|
-
validatorAddress: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* QueryValidatorCommissionResponse is the response type for the
|
|
75
|
-
* Query/ValidatorCommission RPC method
|
|
76
|
-
*/
|
|
77
|
-
export interface QueryValidatorCommissionResponse {
|
|
78
|
-
/** commission defines the commission the validator received. */
|
|
79
|
-
commission: ValidatorAccumulatedCommission | undefined;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* QueryValidatorSlashesRequest is the request type for the
|
|
84
|
-
* Query/ValidatorSlashes RPC method
|
|
85
|
-
*/
|
|
86
|
-
export interface QueryValidatorSlashesRequest {
|
|
87
|
-
/** validator_address defines the validator address to query for. */
|
|
88
|
-
validatorAddress: string;
|
|
89
|
-
/** starting_height defines the optional starting height to query the slashes. */
|
|
90
|
-
startingHeight: number;
|
|
91
|
-
/** starting_height defines the optional ending height to query the slashes. */
|
|
92
|
-
endingHeight: number;
|
|
93
|
-
/** pagination defines an optional pagination for the request. */
|
|
94
|
-
pagination: PageRequest | undefined;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* QueryValidatorSlashesResponse is the response type for the
|
|
99
|
-
* Query/ValidatorSlashes RPC method.
|
|
100
|
-
*/
|
|
101
|
-
export interface QueryValidatorSlashesResponse {
|
|
102
|
-
/** slashes defines the slashes the validator received. */
|
|
103
|
-
slashes: ValidatorSlashEvent[];
|
|
104
|
-
/** pagination defines the pagination in the response. */
|
|
105
|
-
pagination: PageResponse | undefined;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* QueryDelegationRewardsRequest is the request type for the
|
|
110
|
-
* Query/DelegationRewards RPC method.
|
|
111
|
-
*/
|
|
112
|
-
export interface QueryDelegationRewardsRequest {
|
|
113
|
-
/** delegator_address defines the delegator address to query for. */
|
|
114
|
-
delegatorAddress: string;
|
|
115
|
-
/** validator_address defines the validator address to query for. */
|
|
116
|
-
validatorAddress: string;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* QueryDelegationRewardsResponse is the response type for the
|
|
121
|
-
* Query/DelegationRewards RPC method.
|
|
122
|
-
*/
|
|
123
|
-
export interface QueryDelegationRewardsResponse {
|
|
124
|
-
/** rewards defines the rewards accrued by a delegation. */
|
|
125
|
-
rewards: DecCoin[];
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* QueryDelegationTotalRewardsRequest is the request type for the
|
|
130
|
-
* Query/DelegationTotalRewards RPC method.
|
|
131
|
-
*/
|
|
132
|
-
export interface QueryDelegationTotalRewardsRequest {
|
|
133
|
-
/** delegator_address defines the delegator address to query for. */
|
|
134
|
-
delegatorAddress: string;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* QueryDelegationTotalRewardsResponse is the response type for the
|
|
139
|
-
* Query/DelegationTotalRewards RPC method.
|
|
140
|
-
*/
|
|
141
|
-
export interface QueryDelegationTotalRewardsResponse {
|
|
142
|
-
/** rewards defines all the rewards accrued by a delegator. */
|
|
143
|
-
rewards: DelegationDelegatorReward[];
|
|
144
|
-
/** total defines the sum of all the rewards. */
|
|
145
|
-
total: DecCoin[];
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* QueryDelegatorValidatorsRequest is the request type for the
|
|
150
|
-
* Query/DelegatorValidators RPC method.
|
|
151
|
-
*/
|
|
152
|
-
export interface QueryDelegatorValidatorsRequest {
|
|
153
|
-
/** delegator_address defines the delegator address to query for. */
|
|
154
|
-
delegatorAddress: string;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* QueryDelegatorValidatorsResponse is the response type for the
|
|
159
|
-
* Query/DelegatorValidators RPC method.
|
|
160
|
-
*/
|
|
161
|
-
export interface QueryDelegatorValidatorsResponse {
|
|
162
|
-
/** validators defines the validators a delegator is delegating for. */
|
|
163
|
-
validators: string[];
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* QueryDelegatorWithdrawAddressRequest is the request type for the
|
|
168
|
-
* Query/DelegatorWithdrawAddress RPC method.
|
|
169
|
-
*/
|
|
170
|
-
export interface QueryDelegatorWithdrawAddressRequest {
|
|
171
|
-
/** delegator_address defines the delegator address to query for. */
|
|
172
|
-
delegatorAddress: string;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* QueryDelegatorWithdrawAddressResponse is the response type for the
|
|
177
|
-
* Query/DelegatorWithdrawAddress RPC method.
|
|
178
|
-
*/
|
|
179
|
-
export interface QueryDelegatorWithdrawAddressResponse {
|
|
180
|
-
/** withdraw_address defines the delegator address to query for. */
|
|
181
|
-
withdrawAddress: string;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
|
|
186
|
-
* method.
|
|
187
|
-
*/
|
|
188
|
-
export interface QueryCommunityPoolRequest {
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* QueryCommunityPoolResponse is the response type for the Query/CommunityPool
|
|
193
|
-
* RPC method.
|
|
194
|
-
*/
|
|
195
|
-
export interface QueryCommunityPoolResponse {
|
|
196
|
-
/** pool defines community pool's coins. */
|
|
197
|
-
pool: DecCoin[];
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
function createBaseQueryParamsRequest(): QueryParamsRequest {
|
|
201
|
-
return {};
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export const QueryParamsRequest: MessageFns<QueryParamsRequest> = {
|
|
205
|
-
encode(_: QueryParamsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
206
|
-
return writer;
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest {
|
|
210
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
211
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
212
|
-
const message = createBaseQueryParamsRequest();
|
|
213
|
-
while (reader.pos < end) {
|
|
214
|
-
const tag = reader.uint32();
|
|
215
|
-
switch (tag >>> 3) {
|
|
216
|
-
}
|
|
217
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
218
|
-
break;
|
|
219
|
-
}
|
|
220
|
-
reader.skip(tag & 7);
|
|
221
|
-
}
|
|
222
|
-
return message;
|
|
223
|
-
},
|
|
224
|
-
|
|
225
|
-
fromJSON(_: any): QueryParamsRequest {
|
|
226
|
-
return {};
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
toJSON(_: QueryParamsRequest): unknown {
|
|
230
|
-
const obj: any = {};
|
|
231
|
-
return obj;
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
create<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(base?: I): QueryParamsRequest {
|
|
235
|
-
return QueryParamsRequest.fromPartial(base ?? ({} as any));
|
|
236
|
-
},
|
|
237
|
-
fromPartial<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(_: I): QueryParamsRequest {
|
|
238
|
-
const message = createBaseQueryParamsRequest();
|
|
239
|
-
return message;
|
|
240
|
-
},
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
244
|
-
return { params: undefined };
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export const QueryParamsResponse: MessageFns<QueryParamsResponse> = {
|
|
248
|
-
encode(message: QueryParamsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
249
|
-
if (message.params !== undefined) {
|
|
250
|
-
Params.encode(message.params, writer.uint32(10).fork()).join();
|
|
251
|
-
}
|
|
252
|
-
return writer;
|
|
253
|
-
},
|
|
254
|
-
|
|
255
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse {
|
|
256
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
257
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
258
|
-
const message = createBaseQueryParamsResponse();
|
|
259
|
-
while (reader.pos < end) {
|
|
260
|
-
const tag = reader.uint32();
|
|
261
|
-
switch (tag >>> 3) {
|
|
262
|
-
case 1: {
|
|
263
|
-
if (tag !== 10) {
|
|
264
|
-
break;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
268
|
-
continue;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
272
|
-
break;
|
|
273
|
-
}
|
|
274
|
-
reader.skip(tag & 7);
|
|
275
|
-
}
|
|
276
|
-
return message;
|
|
277
|
-
},
|
|
278
|
-
|
|
279
|
-
fromJSON(object: any): QueryParamsResponse {
|
|
280
|
-
return { params: isSet(object.params) ? Params.fromJSON(object.params) : undefined };
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
toJSON(message: QueryParamsResponse): unknown {
|
|
284
|
-
const obj: any = {};
|
|
285
|
-
if (message.params !== undefined) {
|
|
286
|
-
obj.params = Params.toJSON(message.params);
|
|
287
|
-
}
|
|
288
|
-
return obj;
|
|
289
|
-
},
|
|
290
|
-
|
|
291
|
-
create<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(base?: I): QueryParamsResponse {
|
|
292
|
-
return QueryParamsResponse.fromPartial(base ?? ({} as any));
|
|
293
|
-
},
|
|
294
|
-
fromPartial<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(object: I): QueryParamsResponse {
|
|
295
|
-
const message = createBaseQueryParamsResponse();
|
|
296
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
297
|
-
? Params.fromPartial(object.params)
|
|
298
|
-
: undefined;
|
|
299
|
-
return message;
|
|
300
|
-
},
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
function createBaseQueryValidatorDistributionInfoRequest(): QueryValidatorDistributionInfoRequest {
|
|
304
|
-
return { validatorAddress: "" };
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
export const QueryValidatorDistributionInfoRequest: MessageFns<QueryValidatorDistributionInfoRequest> = {
|
|
308
|
-
encode(message: QueryValidatorDistributionInfoRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
309
|
-
if (message.validatorAddress !== "") {
|
|
310
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
311
|
-
}
|
|
312
|
-
return writer;
|
|
313
|
-
},
|
|
314
|
-
|
|
315
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDistributionInfoRequest {
|
|
316
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
317
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
318
|
-
const message = createBaseQueryValidatorDistributionInfoRequest();
|
|
319
|
-
while (reader.pos < end) {
|
|
320
|
-
const tag = reader.uint32();
|
|
321
|
-
switch (tag >>> 3) {
|
|
322
|
-
case 1: {
|
|
323
|
-
if (tag !== 10) {
|
|
324
|
-
break;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
message.validatorAddress = reader.string();
|
|
328
|
-
continue;
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
332
|
-
break;
|
|
333
|
-
}
|
|
334
|
-
reader.skip(tag & 7);
|
|
335
|
-
}
|
|
336
|
-
return message;
|
|
337
|
-
},
|
|
338
|
-
|
|
339
|
-
fromJSON(object: any): QueryValidatorDistributionInfoRequest {
|
|
340
|
-
return { validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "" };
|
|
341
|
-
},
|
|
342
|
-
|
|
343
|
-
toJSON(message: QueryValidatorDistributionInfoRequest): unknown {
|
|
344
|
-
const obj: any = {};
|
|
345
|
-
if (message.validatorAddress !== "") {
|
|
346
|
-
obj.validatorAddress = message.validatorAddress;
|
|
347
|
-
}
|
|
348
|
-
return obj;
|
|
349
|
-
},
|
|
350
|
-
|
|
351
|
-
create<I extends Exact<DeepPartial<QueryValidatorDistributionInfoRequest>, I>>(
|
|
352
|
-
base?: I,
|
|
353
|
-
): QueryValidatorDistributionInfoRequest {
|
|
354
|
-
return QueryValidatorDistributionInfoRequest.fromPartial(base ?? ({} as any));
|
|
355
|
-
},
|
|
356
|
-
fromPartial<I extends Exact<DeepPartial<QueryValidatorDistributionInfoRequest>, I>>(
|
|
357
|
-
object: I,
|
|
358
|
-
): QueryValidatorDistributionInfoRequest {
|
|
359
|
-
const message = createBaseQueryValidatorDistributionInfoRequest();
|
|
360
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
361
|
-
return message;
|
|
362
|
-
},
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
function createBaseQueryValidatorDistributionInfoResponse(): QueryValidatorDistributionInfoResponse {
|
|
366
|
-
return { operatorAddress: "", selfBondRewards: [], commission: [] };
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
export const QueryValidatorDistributionInfoResponse: MessageFns<QueryValidatorDistributionInfoResponse> = {
|
|
370
|
-
encode(message: QueryValidatorDistributionInfoResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
371
|
-
if (message.operatorAddress !== "") {
|
|
372
|
-
writer.uint32(10).string(message.operatorAddress);
|
|
373
|
-
}
|
|
374
|
-
for (const v of message.selfBondRewards) {
|
|
375
|
-
DecCoin.encode(v!, writer.uint32(18).fork()).join();
|
|
376
|
-
}
|
|
377
|
-
for (const v of message.commission) {
|
|
378
|
-
DecCoin.encode(v!, writer.uint32(26).fork()).join();
|
|
379
|
-
}
|
|
380
|
-
return writer;
|
|
381
|
-
},
|
|
382
|
-
|
|
383
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDistributionInfoResponse {
|
|
384
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
385
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
386
|
-
const message = createBaseQueryValidatorDistributionInfoResponse();
|
|
387
|
-
while (reader.pos < end) {
|
|
388
|
-
const tag = reader.uint32();
|
|
389
|
-
switch (tag >>> 3) {
|
|
390
|
-
case 1: {
|
|
391
|
-
if (tag !== 10) {
|
|
392
|
-
break;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
message.operatorAddress = reader.string();
|
|
396
|
-
continue;
|
|
397
|
-
}
|
|
398
|
-
case 2: {
|
|
399
|
-
if (tag !== 18) {
|
|
400
|
-
break;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
message.selfBondRewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
404
|
-
continue;
|
|
405
|
-
}
|
|
406
|
-
case 3: {
|
|
407
|
-
if (tag !== 26) {
|
|
408
|
-
break;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
message.commission.push(DecCoin.decode(reader, reader.uint32()));
|
|
412
|
-
continue;
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
416
|
-
break;
|
|
417
|
-
}
|
|
418
|
-
reader.skip(tag & 7);
|
|
419
|
-
}
|
|
420
|
-
return message;
|
|
421
|
-
},
|
|
422
|
-
|
|
423
|
-
fromJSON(object: any): QueryValidatorDistributionInfoResponse {
|
|
424
|
-
return {
|
|
425
|
-
operatorAddress: isSet(object.operatorAddress) ? globalThis.String(object.operatorAddress) : "",
|
|
426
|
-
selfBondRewards: globalThis.Array.isArray(object?.selfBondRewards)
|
|
427
|
-
? object.selfBondRewards.map((e: any) => DecCoin.fromJSON(e))
|
|
428
|
-
: [],
|
|
429
|
-
commission: globalThis.Array.isArray(object?.commission)
|
|
430
|
-
? object.commission.map((e: any) => DecCoin.fromJSON(e))
|
|
431
|
-
: [],
|
|
432
|
-
};
|
|
433
|
-
},
|
|
434
|
-
|
|
435
|
-
toJSON(message: QueryValidatorDistributionInfoResponse): unknown {
|
|
436
|
-
const obj: any = {};
|
|
437
|
-
if (message.operatorAddress !== "") {
|
|
438
|
-
obj.operatorAddress = message.operatorAddress;
|
|
439
|
-
}
|
|
440
|
-
if (message.selfBondRewards?.length) {
|
|
441
|
-
obj.selfBondRewards = message.selfBondRewards.map((e) => DecCoin.toJSON(e));
|
|
442
|
-
}
|
|
443
|
-
if (message.commission?.length) {
|
|
444
|
-
obj.commission = message.commission.map((e) => DecCoin.toJSON(e));
|
|
445
|
-
}
|
|
446
|
-
return obj;
|
|
447
|
-
},
|
|
448
|
-
|
|
449
|
-
create<I extends Exact<DeepPartial<QueryValidatorDistributionInfoResponse>, I>>(
|
|
450
|
-
base?: I,
|
|
451
|
-
): QueryValidatorDistributionInfoResponse {
|
|
452
|
-
return QueryValidatorDistributionInfoResponse.fromPartial(base ?? ({} as any));
|
|
453
|
-
},
|
|
454
|
-
fromPartial<I extends Exact<DeepPartial<QueryValidatorDistributionInfoResponse>, I>>(
|
|
455
|
-
object: I,
|
|
456
|
-
): QueryValidatorDistributionInfoResponse {
|
|
457
|
-
const message = createBaseQueryValidatorDistributionInfoResponse();
|
|
458
|
-
message.operatorAddress = object.operatorAddress ?? "";
|
|
459
|
-
message.selfBondRewards = object.selfBondRewards?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
460
|
-
message.commission = object.commission?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
461
|
-
return message;
|
|
462
|
-
},
|
|
463
|
-
};
|
|
464
|
-
|
|
465
|
-
function createBaseQueryValidatorOutstandingRewardsRequest(): QueryValidatorOutstandingRewardsRequest {
|
|
466
|
-
return { validatorAddress: "" };
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
export const QueryValidatorOutstandingRewardsRequest: MessageFns<QueryValidatorOutstandingRewardsRequest> = {
|
|
470
|
-
encode(message: QueryValidatorOutstandingRewardsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
471
|
-
if (message.validatorAddress !== "") {
|
|
472
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
473
|
-
}
|
|
474
|
-
return writer;
|
|
475
|
-
},
|
|
476
|
-
|
|
477
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest {
|
|
478
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
479
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
480
|
-
const message = createBaseQueryValidatorOutstandingRewardsRequest();
|
|
481
|
-
while (reader.pos < end) {
|
|
482
|
-
const tag = reader.uint32();
|
|
483
|
-
switch (tag >>> 3) {
|
|
484
|
-
case 1: {
|
|
485
|
-
if (tag !== 10) {
|
|
486
|
-
break;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
message.validatorAddress = reader.string();
|
|
490
|
-
continue;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
494
|
-
break;
|
|
495
|
-
}
|
|
496
|
-
reader.skip(tag & 7);
|
|
497
|
-
}
|
|
498
|
-
return message;
|
|
499
|
-
},
|
|
500
|
-
|
|
501
|
-
fromJSON(object: any): QueryValidatorOutstandingRewardsRequest {
|
|
502
|
-
return { validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "" };
|
|
503
|
-
},
|
|
504
|
-
|
|
505
|
-
toJSON(message: QueryValidatorOutstandingRewardsRequest): unknown {
|
|
506
|
-
const obj: any = {};
|
|
507
|
-
if (message.validatorAddress !== "") {
|
|
508
|
-
obj.validatorAddress = message.validatorAddress;
|
|
509
|
-
}
|
|
510
|
-
return obj;
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
create<I extends Exact<DeepPartial<QueryValidatorOutstandingRewardsRequest>, I>>(
|
|
514
|
-
base?: I,
|
|
515
|
-
): QueryValidatorOutstandingRewardsRequest {
|
|
516
|
-
return QueryValidatorOutstandingRewardsRequest.fromPartial(base ?? ({} as any));
|
|
517
|
-
},
|
|
518
|
-
fromPartial<I extends Exact<DeepPartial<QueryValidatorOutstandingRewardsRequest>, I>>(
|
|
519
|
-
object: I,
|
|
520
|
-
): QueryValidatorOutstandingRewardsRequest {
|
|
521
|
-
const message = createBaseQueryValidatorOutstandingRewardsRequest();
|
|
522
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
523
|
-
return message;
|
|
524
|
-
},
|
|
525
|
-
};
|
|
526
|
-
|
|
527
|
-
function createBaseQueryValidatorOutstandingRewardsResponse(): QueryValidatorOutstandingRewardsResponse {
|
|
528
|
-
return { rewards: undefined };
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
export const QueryValidatorOutstandingRewardsResponse: MessageFns<QueryValidatorOutstandingRewardsResponse> = {
|
|
532
|
-
encode(message: QueryValidatorOutstandingRewardsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
533
|
-
if (message.rewards !== undefined) {
|
|
534
|
-
ValidatorOutstandingRewards.encode(message.rewards, writer.uint32(10).fork()).join();
|
|
535
|
-
}
|
|
536
|
-
return writer;
|
|
537
|
-
},
|
|
538
|
-
|
|
539
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse {
|
|
540
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
541
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
542
|
-
const message = createBaseQueryValidatorOutstandingRewardsResponse();
|
|
543
|
-
while (reader.pos < end) {
|
|
544
|
-
const tag = reader.uint32();
|
|
545
|
-
switch (tag >>> 3) {
|
|
546
|
-
case 1: {
|
|
547
|
-
if (tag !== 10) {
|
|
548
|
-
break;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
message.rewards = ValidatorOutstandingRewards.decode(reader, reader.uint32());
|
|
552
|
-
continue;
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
556
|
-
break;
|
|
557
|
-
}
|
|
558
|
-
reader.skip(tag & 7);
|
|
559
|
-
}
|
|
560
|
-
return message;
|
|
561
|
-
},
|
|
562
|
-
|
|
563
|
-
fromJSON(object: any): QueryValidatorOutstandingRewardsResponse {
|
|
564
|
-
return { rewards: isSet(object.rewards) ? ValidatorOutstandingRewards.fromJSON(object.rewards) : undefined };
|
|
565
|
-
},
|
|
566
|
-
|
|
567
|
-
toJSON(message: QueryValidatorOutstandingRewardsResponse): unknown {
|
|
568
|
-
const obj: any = {};
|
|
569
|
-
if (message.rewards !== undefined) {
|
|
570
|
-
obj.rewards = ValidatorOutstandingRewards.toJSON(message.rewards);
|
|
571
|
-
}
|
|
572
|
-
return obj;
|
|
573
|
-
},
|
|
574
|
-
|
|
575
|
-
create<I extends Exact<DeepPartial<QueryValidatorOutstandingRewardsResponse>, I>>(
|
|
576
|
-
base?: I,
|
|
577
|
-
): QueryValidatorOutstandingRewardsResponse {
|
|
578
|
-
return QueryValidatorOutstandingRewardsResponse.fromPartial(base ?? ({} as any));
|
|
579
|
-
},
|
|
580
|
-
fromPartial<I extends Exact<DeepPartial<QueryValidatorOutstandingRewardsResponse>, I>>(
|
|
581
|
-
object: I,
|
|
582
|
-
): QueryValidatorOutstandingRewardsResponse {
|
|
583
|
-
const message = createBaseQueryValidatorOutstandingRewardsResponse();
|
|
584
|
-
message.rewards = (object.rewards !== undefined && object.rewards !== null)
|
|
585
|
-
? ValidatorOutstandingRewards.fromPartial(object.rewards)
|
|
586
|
-
: undefined;
|
|
587
|
-
return message;
|
|
588
|
-
},
|
|
589
|
-
};
|
|
590
|
-
|
|
591
|
-
function createBaseQueryValidatorCommissionRequest(): QueryValidatorCommissionRequest {
|
|
592
|
-
return { validatorAddress: "" };
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
export const QueryValidatorCommissionRequest: MessageFns<QueryValidatorCommissionRequest> = {
|
|
596
|
-
encode(message: QueryValidatorCommissionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
597
|
-
if (message.validatorAddress !== "") {
|
|
598
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
599
|
-
}
|
|
600
|
-
return writer;
|
|
601
|
-
},
|
|
602
|
-
|
|
603
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionRequest {
|
|
604
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
605
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
606
|
-
const message = createBaseQueryValidatorCommissionRequest();
|
|
607
|
-
while (reader.pos < end) {
|
|
608
|
-
const tag = reader.uint32();
|
|
609
|
-
switch (tag >>> 3) {
|
|
610
|
-
case 1: {
|
|
611
|
-
if (tag !== 10) {
|
|
612
|
-
break;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
message.validatorAddress = reader.string();
|
|
616
|
-
continue;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
620
|
-
break;
|
|
621
|
-
}
|
|
622
|
-
reader.skip(tag & 7);
|
|
623
|
-
}
|
|
624
|
-
return message;
|
|
625
|
-
},
|
|
626
|
-
|
|
627
|
-
fromJSON(object: any): QueryValidatorCommissionRequest {
|
|
628
|
-
return { validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "" };
|
|
629
|
-
},
|
|
630
|
-
|
|
631
|
-
toJSON(message: QueryValidatorCommissionRequest): unknown {
|
|
632
|
-
const obj: any = {};
|
|
633
|
-
if (message.validatorAddress !== "") {
|
|
634
|
-
obj.validatorAddress = message.validatorAddress;
|
|
635
|
-
}
|
|
636
|
-
return obj;
|
|
637
|
-
},
|
|
638
|
-
|
|
639
|
-
create<I extends Exact<DeepPartial<QueryValidatorCommissionRequest>, I>>(base?: I): QueryValidatorCommissionRequest {
|
|
640
|
-
return QueryValidatorCommissionRequest.fromPartial(base ?? ({} as any));
|
|
641
|
-
},
|
|
642
|
-
fromPartial<I extends Exact<DeepPartial<QueryValidatorCommissionRequest>, I>>(
|
|
643
|
-
object: I,
|
|
644
|
-
): QueryValidatorCommissionRequest {
|
|
645
|
-
const message = createBaseQueryValidatorCommissionRequest();
|
|
646
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
647
|
-
return message;
|
|
648
|
-
},
|
|
649
|
-
};
|
|
650
|
-
|
|
651
|
-
function createBaseQueryValidatorCommissionResponse(): QueryValidatorCommissionResponse {
|
|
652
|
-
return { commission: undefined };
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
export const QueryValidatorCommissionResponse: MessageFns<QueryValidatorCommissionResponse> = {
|
|
656
|
-
encode(message: QueryValidatorCommissionResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
657
|
-
if (message.commission !== undefined) {
|
|
658
|
-
ValidatorAccumulatedCommission.encode(message.commission, writer.uint32(10).fork()).join();
|
|
659
|
-
}
|
|
660
|
-
return writer;
|
|
661
|
-
},
|
|
662
|
-
|
|
663
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionResponse {
|
|
664
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
665
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
666
|
-
const message = createBaseQueryValidatorCommissionResponse();
|
|
667
|
-
while (reader.pos < end) {
|
|
668
|
-
const tag = reader.uint32();
|
|
669
|
-
switch (tag >>> 3) {
|
|
670
|
-
case 1: {
|
|
671
|
-
if (tag !== 10) {
|
|
672
|
-
break;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
message.commission = ValidatorAccumulatedCommission.decode(reader, reader.uint32());
|
|
676
|
-
continue;
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
680
|
-
break;
|
|
681
|
-
}
|
|
682
|
-
reader.skip(tag & 7);
|
|
683
|
-
}
|
|
684
|
-
return message;
|
|
685
|
-
},
|
|
686
|
-
|
|
687
|
-
fromJSON(object: any): QueryValidatorCommissionResponse {
|
|
688
|
-
return {
|
|
689
|
-
commission: isSet(object.commission) ? ValidatorAccumulatedCommission.fromJSON(object.commission) : undefined,
|
|
690
|
-
};
|
|
691
|
-
},
|
|
692
|
-
|
|
693
|
-
toJSON(message: QueryValidatorCommissionResponse): unknown {
|
|
694
|
-
const obj: any = {};
|
|
695
|
-
if (message.commission !== undefined) {
|
|
696
|
-
obj.commission = ValidatorAccumulatedCommission.toJSON(message.commission);
|
|
697
|
-
}
|
|
698
|
-
return obj;
|
|
699
|
-
},
|
|
700
|
-
|
|
701
|
-
create<I extends Exact<DeepPartial<QueryValidatorCommissionResponse>, I>>(
|
|
702
|
-
base?: I,
|
|
703
|
-
): QueryValidatorCommissionResponse {
|
|
704
|
-
return QueryValidatorCommissionResponse.fromPartial(base ?? ({} as any));
|
|
705
|
-
},
|
|
706
|
-
fromPartial<I extends Exact<DeepPartial<QueryValidatorCommissionResponse>, I>>(
|
|
707
|
-
object: I,
|
|
708
|
-
): QueryValidatorCommissionResponse {
|
|
709
|
-
const message = createBaseQueryValidatorCommissionResponse();
|
|
710
|
-
message.commission = (object.commission !== undefined && object.commission !== null)
|
|
711
|
-
? ValidatorAccumulatedCommission.fromPartial(object.commission)
|
|
712
|
-
: undefined;
|
|
713
|
-
return message;
|
|
714
|
-
},
|
|
715
|
-
};
|
|
716
|
-
|
|
717
|
-
function createBaseQueryValidatorSlashesRequest(): QueryValidatorSlashesRequest {
|
|
718
|
-
return { validatorAddress: "", startingHeight: 0, endingHeight: 0, pagination: undefined };
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
export const QueryValidatorSlashesRequest: MessageFns<QueryValidatorSlashesRequest> = {
|
|
722
|
-
encode(message: QueryValidatorSlashesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
723
|
-
if (message.validatorAddress !== "") {
|
|
724
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
725
|
-
}
|
|
726
|
-
if (message.startingHeight !== 0) {
|
|
727
|
-
writer.uint32(16).uint64(message.startingHeight);
|
|
728
|
-
}
|
|
729
|
-
if (message.endingHeight !== 0) {
|
|
730
|
-
writer.uint32(24).uint64(message.endingHeight);
|
|
731
|
-
}
|
|
732
|
-
if (message.pagination !== undefined) {
|
|
733
|
-
PageRequest.encode(message.pagination, writer.uint32(34).fork()).join();
|
|
734
|
-
}
|
|
735
|
-
return writer;
|
|
736
|
-
},
|
|
737
|
-
|
|
738
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesRequest {
|
|
739
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
740
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
741
|
-
const message = createBaseQueryValidatorSlashesRequest();
|
|
742
|
-
while (reader.pos < end) {
|
|
743
|
-
const tag = reader.uint32();
|
|
744
|
-
switch (tag >>> 3) {
|
|
745
|
-
case 1: {
|
|
746
|
-
if (tag !== 10) {
|
|
747
|
-
break;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
message.validatorAddress = reader.string();
|
|
751
|
-
continue;
|
|
752
|
-
}
|
|
753
|
-
case 2: {
|
|
754
|
-
if (tag !== 16) {
|
|
755
|
-
break;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
message.startingHeight = longToNumber(reader.uint64());
|
|
759
|
-
continue;
|
|
760
|
-
}
|
|
761
|
-
case 3: {
|
|
762
|
-
if (tag !== 24) {
|
|
763
|
-
break;
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
message.endingHeight = longToNumber(reader.uint64());
|
|
767
|
-
continue;
|
|
768
|
-
}
|
|
769
|
-
case 4: {
|
|
770
|
-
if (tag !== 34) {
|
|
771
|
-
break;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
775
|
-
continue;
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
779
|
-
break;
|
|
780
|
-
}
|
|
781
|
-
reader.skip(tag & 7);
|
|
782
|
-
}
|
|
783
|
-
return message;
|
|
784
|
-
},
|
|
785
|
-
|
|
786
|
-
fromJSON(object: any): QueryValidatorSlashesRequest {
|
|
787
|
-
return {
|
|
788
|
-
validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "",
|
|
789
|
-
startingHeight: isSet(object.startingHeight) ? globalThis.Number(object.startingHeight) : 0,
|
|
790
|
-
endingHeight: isSet(object.endingHeight) ? globalThis.Number(object.endingHeight) : 0,
|
|
791
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
792
|
-
};
|
|
793
|
-
},
|
|
794
|
-
|
|
795
|
-
toJSON(message: QueryValidatorSlashesRequest): unknown {
|
|
796
|
-
const obj: any = {};
|
|
797
|
-
if (message.validatorAddress !== "") {
|
|
798
|
-
obj.validatorAddress = message.validatorAddress;
|
|
799
|
-
}
|
|
800
|
-
if (message.startingHeight !== 0) {
|
|
801
|
-
obj.startingHeight = Math.round(message.startingHeight);
|
|
802
|
-
}
|
|
803
|
-
if (message.endingHeight !== 0) {
|
|
804
|
-
obj.endingHeight = Math.round(message.endingHeight);
|
|
805
|
-
}
|
|
806
|
-
if (message.pagination !== undefined) {
|
|
807
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
808
|
-
}
|
|
809
|
-
return obj;
|
|
810
|
-
},
|
|
811
|
-
|
|
812
|
-
create<I extends Exact<DeepPartial<QueryValidatorSlashesRequest>, I>>(base?: I): QueryValidatorSlashesRequest {
|
|
813
|
-
return QueryValidatorSlashesRequest.fromPartial(base ?? ({} as any));
|
|
814
|
-
},
|
|
815
|
-
fromPartial<I extends Exact<DeepPartial<QueryValidatorSlashesRequest>, I>>(object: I): QueryValidatorSlashesRequest {
|
|
816
|
-
const message = createBaseQueryValidatorSlashesRequest();
|
|
817
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
818
|
-
message.startingHeight = object.startingHeight ?? 0;
|
|
819
|
-
message.endingHeight = object.endingHeight ?? 0;
|
|
820
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
821
|
-
? PageRequest.fromPartial(object.pagination)
|
|
822
|
-
: undefined;
|
|
823
|
-
return message;
|
|
824
|
-
},
|
|
825
|
-
};
|
|
826
|
-
|
|
827
|
-
function createBaseQueryValidatorSlashesResponse(): QueryValidatorSlashesResponse {
|
|
828
|
-
return { slashes: [], pagination: undefined };
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
export const QueryValidatorSlashesResponse: MessageFns<QueryValidatorSlashesResponse> = {
|
|
832
|
-
encode(message: QueryValidatorSlashesResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
833
|
-
for (const v of message.slashes) {
|
|
834
|
-
ValidatorSlashEvent.encode(v!, writer.uint32(10).fork()).join();
|
|
835
|
-
}
|
|
836
|
-
if (message.pagination !== undefined) {
|
|
837
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
838
|
-
}
|
|
839
|
-
return writer;
|
|
840
|
-
},
|
|
841
|
-
|
|
842
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesResponse {
|
|
843
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
844
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
845
|
-
const message = createBaseQueryValidatorSlashesResponse();
|
|
846
|
-
while (reader.pos < end) {
|
|
847
|
-
const tag = reader.uint32();
|
|
848
|
-
switch (tag >>> 3) {
|
|
849
|
-
case 1: {
|
|
850
|
-
if (tag !== 10) {
|
|
851
|
-
break;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
message.slashes.push(ValidatorSlashEvent.decode(reader, reader.uint32()));
|
|
855
|
-
continue;
|
|
856
|
-
}
|
|
857
|
-
case 2: {
|
|
858
|
-
if (tag !== 18) {
|
|
859
|
-
break;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
863
|
-
continue;
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
867
|
-
break;
|
|
868
|
-
}
|
|
869
|
-
reader.skip(tag & 7);
|
|
870
|
-
}
|
|
871
|
-
return message;
|
|
872
|
-
},
|
|
873
|
-
|
|
874
|
-
fromJSON(object: any): QueryValidatorSlashesResponse {
|
|
875
|
-
return {
|
|
876
|
-
slashes: globalThis.Array.isArray(object?.slashes)
|
|
877
|
-
? object.slashes.map((e: any) => ValidatorSlashEvent.fromJSON(e))
|
|
878
|
-
: [],
|
|
879
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
880
|
-
};
|
|
881
|
-
},
|
|
882
|
-
|
|
883
|
-
toJSON(message: QueryValidatorSlashesResponse): unknown {
|
|
884
|
-
const obj: any = {};
|
|
885
|
-
if (message.slashes?.length) {
|
|
886
|
-
obj.slashes = message.slashes.map((e) => ValidatorSlashEvent.toJSON(e));
|
|
887
|
-
}
|
|
888
|
-
if (message.pagination !== undefined) {
|
|
889
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
890
|
-
}
|
|
891
|
-
return obj;
|
|
892
|
-
},
|
|
893
|
-
|
|
894
|
-
create<I extends Exact<DeepPartial<QueryValidatorSlashesResponse>, I>>(base?: I): QueryValidatorSlashesResponse {
|
|
895
|
-
return QueryValidatorSlashesResponse.fromPartial(base ?? ({} as any));
|
|
896
|
-
},
|
|
897
|
-
fromPartial<I extends Exact<DeepPartial<QueryValidatorSlashesResponse>, I>>(
|
|
898
|
-
object: I,
|
|
899
|
-
): QueryValidatorSlashesResponse {
|
|
900
|
-
const message = createBaseQueryValidatorSlashesResponse();
|
|
901
|
-
message.slashes = object.slashes?.map((e) => ValidatorSlashEvent.fromPartial(e)) || [];
|
|
902
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
903
|
-
? PageResponse.fromPartial(object.pagination)
|
|
904
|
-
: undefined;
|
|
905
|
-
return message;
|
|
906
|
-
},
|
|
907
|
-
};
|
|
908
|
-
|
|
909
|
-
function createBaseQueryDelegationRewardsRequest(): QueryDelegationRewardsRequest {
|
|
910
|
-
return { delegatorAddress: "", validatorAddress: "" };
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
export const QueryDelegationRewardsRequest: MessageFns<QueryDelegationRewardsRequest> = {
|
|
914
|
-
encode(message: QueryDelegationRewardsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
915
|
-
if (message.delegatorAddress !== "") {
|
|
916
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
917
|
-
}
|
|
918
|
-
if (message.validatorAddress !== "") {
|
|
919
|
-
writer.uint32(18).string(message.validatorAddress);
|
|
920
|
-
}
|
|
921
|
-
return writer;
|
|
922
|
-
},
|
|
923
|
-
|
|
924
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsRequest {
|
|
925
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
926
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
927
|
-
const message = createBaseQueryDelegationRewardsRequest();
|
|
928
|
-
while (reader.pos < end) {
|
|
929
|
-
const tag = reader.uint32();
|
|
930
|
-
switch (tag >>> 3) {
|
|
931
|
-
case 1: {
|
|
932
|
-
if (tag !== 10) {
|
|
933
|
-
break;
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
message.delegatorAddress = reader.string();
|
|
937
|
-
continue;
|
|
938
|
-
}
|
|
939
|
-
case 2: {
|
|
940
|
-
if (tag !== 18) {
|
|
941
|
-
break;
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
message.validatorAddress = reader.string();
|
|
945
|
-
continue;
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
949
|
-
break;
|
|
950
|
-
}
|
|
951
|
-
reader.skip(tag & 7);
|
|
952
|
-
}
|
|
953
|
-
return message;
|
|
954
|
-
},
|
|
955
|
-
|
|
956
|
-
fromJSON(object: any): QueryDelegationRewardsRequest {
|
|
957
|
-
return {
|
|
958
|
-
delegatorAddress: isSet(object.delegatorAddress) ? globalThis.String(object.delegatorAddress) : "",
|
|
959
|
-
validatorAddress: isSet(object.validatorAddress) ? globalThis.String(object.validatorAddress) : "",
|
|
960
|
-
};
|
|
961
|
-
},
|
|
962
|
-
|
|
963
|
-
toJSON(message: QueryDelegationRewardsRequest): unknown {
|
|
964
|
-
const obj: any = {};
|
|
965
|
-
if (message.delegatorAddress !== "") {
|
|
966
|
-
obj.delegatorAddress = message.delegatorAddress;
|
|
967
|
-
}
|
|
968
|
-
if (message.validatorAddress !== "") {
|
|
969
|
-
obj.validatorAddress = message.validatorAddress;
|
|
970
|
-
}
|
|
971
|
-
return obj;
|
|
972
|
-
},
|
|
973
|
-
|
|
974
|
-
create<I extends Exact<DeepPartial<QueryDelegationRewardsRequest>, I>>(base?: I): QueryDelegationRewardsRequest {
|
|
975
|
-
return QueryDelegationRewardsRequest.fromPartial(base ?? ({} as any));
|
|
976
|
-
},
|
|
977
|
-
fromPartial<I extends Exact<DeepPartial<QueryDelegationRewardsRequest>, I>>(
|
|
978
|
-
object: I,
|
|
979
|
-
): QueryDelegationRewardsRequest {
|
|
980
|
-
const message = createBaseQueryDelegationRewardsRequest();
|
|
981
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
982
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
983
|
-
return message;
|
|
984
|
-
},
|
|
985
|
-
};
|
|
986
|
-
|
|
987
|
-
function createBaseQueryDelegationRewardsResponse(): QueryDelegationRewardsResponse {
|
|
988
|
-
return { rewards: [] };
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
export const QueryDelegationRewardsResponse: MessageFns<QueryDelegationRewardsResponse> = {
|
|
992
|
-
encode(message: QueryDelegationRewardsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
993
|
-
for (const v of message.rewards) {
|
|
994
|
-
DecCoin.encode(v!, writer.uint32(10).fork()).join();
|
|
995
|
-
}
|
|
996
|
-
return writer;
|
|
997
|
-
},
|
|
998
|
-
|
|
999
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsResponse {
|
|
1000
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1001
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1002
|
-
const message = createBaseQueryDelegationRewardsResponse();
|
|
1003
|
-
while (reader.pos < end) {
|
|
1004
|
-
const tag = reader.uint32();
|
|
1005
|
-
switch (tag >>> 3) {
|
|
1006
|
-
case 1: {
|
|
1007
|
-
if (tag !== 10) {
|
|
1008
|
-
break;
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
message.rewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
1012
|
-
continue;
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1016
|
-
break;
|
|
1017
|
-
}
|
|
1018
|
-
reader.skip(tag & 7);
|
|
1019
|
-
}
|
|
1020
|
-
return message;
|
|
1021
|
-
},
|
|
1022
|
-
|
|
1023
|
-
fromJSON(object: any): QueryDelegationRewardsResponse {
|
|
1024
|
-
return {
|
|
1025
|
-
rewards: globalThis.Array.isArray(object?.rewards) ? object.rewards.map((e: any) => DecCoin.fromJSON(e)) : [],
|
|
1026
|
-
};
|
|
1027
|
-
},
|
|
1028
|
-
|
|
1029
|
-
toJSON(message: QueryDelegationRewardsResponse): unknown {
|
|
1030
|
-
const obj: any = {};
|
|
1031
|
-
if (message.rewards?.length) {
|
|
1032
|
-
obj.rewards = message.rewards.map((e) => DecCoin.toJSON(e));
|
|
1033
|
-
}
|
|
1034
|
-
return obj;
|
|
1035
|
-
},
|
|
1036
|
-
|
|
1037
|
-
create<I extends Exact<DeepPartial<QueryDelegationRewardsResponse>, I>>(base?: I): QueryDelegationRewardsResponse {
|
|
1038
|
-
return QueryDelegationRewardsResponse.fromPartial(base ?? ({} as any));
|
|
1039
|
-
},
|
|
1040
|
-
fromPartial<I extends Exact<DeepPartial<QueryDelegationRewardsResponse>, I>>(
|
|
1041
|
-
object: I,
|
|
1042
|
-
): QueryDelegationRewardsResponse {
|
|
1043
|
-
const message = createBaseQueryDelegationRewardsResponse();
|
|
1044
|
-
message.rewards = object.rewards?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
1045
|
-
return message;
|
|
1046
|
-
},
|
|
1047
|
-
};
|
|
1048
|
-
|
|
1049
|
-
function createBaseQueryDelegationTotalRewardsRequest(): QueryDelegationTotalRewardsRequest {
|
|
1050
|
-
return { delegatorAddress: "" };
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
export const QueryDelegationTotalRewardsRequest: MessageFns<QueryDelegationTotalRewardsRequest> = {
|
|
1054
|
-
encode(message: QueryDelegationTotalRewardsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1055
|
-
if (message.delegatorAddress !== "") {
|
|
1056
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
1057
|
-
}
|
|
1058
|
-
return writer;
|
|
1059
|
-
},
|
|
1060
|
-
|
|
1061
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest {
|
|
1062
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1063
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1064
|
-
const message = createBaseQueryDelegationTotalRewardsRequest();
|
|
1065
|
-
while (reader.pos < end) {
|
|
1066
|
-
const tag = reader.uint32();
|
|
1067
|
-
switch (tag >>> 3) {
|
|
1068
|
-
case 1: {
|
|
1069
|
-
if (tag !== 10) {
|
|
1070
|
-
break;
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
message.delegatorAddress = reader.string();
|
|
1074
|
-
continue;
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1078
|
-
break;
|
|
1079
|
-
}
|
|
1080
|
-
reader.skip(tag & 7);
|
|
1081
|
-
}
|
|
1082
|
-
return message;
|
|
1083
|
-
},
|
|
1084
|
-
|
|
1085
|
-
fromJSON(object: any): QueryDelegationTotalRewardsRequest {
|
|
1086
|
-
return { delegatorAddress: isSet(object.delegatorAddress) ? globalThis.String(object.delegatorAddress) : "" };
|
|
1087
|
-
},
|
|
1088
|
-
|
|
1089
|
-
toJSON(message: QueryDelegationTotalRewardsRequest): unknown {
|
|
1090
|
-
const obj: any = {};
|
|
1091
|
-
if (message.delegatorAddress !== "") {
|
|
1092
|
-
obj.delegatorAddress = message.delegatorAddress;
|
|
1093
|
-
}
|
|
1094
|
-
return obj;
|
|
1095
|
-
},
|
|
1096
|
-
|
|
1097
|
-
create<I extends Exact<DeepPartial<QueryDelegationTotalRewardsRequest>, I>>(
|
|
1098
|
-
base?: I,
|
|
1099
|
-
): QueryDelegationTotalRewardsRequest {
|
|
1100
|
-
return QueryDelegationTotalRewardsRequest.fromPartial(base ?? ({} as any));
|
|
1101
|
-
},
|
|
1102
|
-
fromPartial<I extends Exact<DeepPartial<QueryDelegationTotalRewardsRequest>, I>>(
|
|
1103
|
-
object: I,
|
|
1104
|
-
): QueryDelegationTotalRewardsRequest {
|
|
1105
|
-
const message = createBaseQueryDelegationTotalRewardsRequest();
|
|
1106
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1107
|
-
return message;
|
|
1108
|
-
},
|
|
1109
|
-
};
|
|
1110
|
-
|
|
1111
|
-
function createBaseQueryDelegationTotalRewardsResponse(): QueryDelegationTotalRewardsResponse {
|
|
1112
|
-
return { rewards: [], total: [] };
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
export const QueryDelegationTotalRewardsResponse: MessageFns<QueryDelegationTotalRewardsResponse> = {
|
|
1116
|
-
encode(message: QueryDelegationTotalRewardsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1117
|
-
for (const v of message.rewards) {
|
|
1118
|
-
DelegationDelegatorReward.encode(v!, writer.uint32(10).fork()).join();
|
|
1119
|
-
}
|
|
1120
|
-
for (const v of message.total) {
|
|
1121
|
-
DecCoin.encode(v!, writer.uint32(18).fork()).join();
|
|
1122
|
-
}
|
|
1123
|
-
return writer;
|
|
1124
|
-
},
|
|
1125
|
-
|
|
1126
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse {
|
|
1127
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1128
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1129
|
-
const message = createBaseQueryDelegationTotalRewardsResponse();
|
|
1130
|
-
while (reader.pos < end) {
|
|
1131
|
-
const tag = reader.uint32();
|
|
1132
|
-
switch (tag >>> 3) {
|
|
1133
|
-
case 1: {
|
|
1134
|
-
if (tag !== 10) {
|
|
1135
|
-
break;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
message.rewards.push(DelegationDelegatorReward.decode(reader, reader.uint32()));
|
|
1139
|
-
continue;
|
|
1140
|
-
}
|
|
1141
|
-
case 2: {
|
|
1142
|
-
if (tag !== 18) {
|
|
1143
|
-
break;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
message.total.push(DecCoin.decode(reader, reader.uint32()));
|
|
1147
|
-
continue;
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1151
|
-
break;
|
|
1152
|
-
}
|
|
1153
|
-
reader.skip(tag & 7);
|
|
1154
|
-
}
|
|
1155
|
-
return message;
|
|
1156
|
-
},
|
|
1157
|
-
|
|
1158
|
-
fromJSON(object: any): QueryDelegationTotalRewardsResponse {
|
|
1159
|
-
return {
|
|
1160
|
-
rewards: globalThis.Array.isArray(object?.rewards)
|
|
1161
|
-
? object.rewards.map((e: any) => DelegationDelegatorReward.fromJSON(e))
|
|
1162
|
-
: [],
|
|
1163
|
-
total: globalThis.Array.isArray(object?.total) ? object.total.map((e: any) => DecCoin.fromJSON(e)) : [],
|
|
1164
|
-
};
|
|
1165
|
-
},
|
|
1166
|
-
|
|
1167
|
-
toJSON(message: QueryDelegationTotalRewardsResponse): unknown {
|
|
1168
|
-
const obj: any = {};
|
|
1169
|
-
if (message.rewards?.length) {
|
|
1170
|
-
obj.rewards = message.rewards.map((e) => DelegationDelegatorReward.toJSON(e));
|
|
1171
|
-
}
|
|
1172
|
-
if (message.total?.length) {
|
|
1173
|
-
obj.total = message.total.map((e) => DecCoin.toJSON(e));
|
|
1174
|
-
}
|
|
1175
|
-
return obj;
|
|
1176
|
-
},
|
|
1177
|
-
|
|
1178
|
-
create<I extends Exact<DeepPartial<QueryDelegationTotalRewardsResponse>, I>>(
|
|
1179
|
-
base?: I,
|
|
1180
|
-
): QueryDelegationTotalRewardsResponse {
|
|
1181
|
-
return QueryDelegationTotalRewardsResponse.fromPartial(base ?? ({} as any));
|
|
1182
|
-
},
|
|
1183
|
-
fromPartial<I extends Exact<DeepPartial<QueryDelegationTotalRewardsResponse>, I>>(
|
|
1184
|
-
object: I,
|
|
1185
|
-
): QueryDelegationTotalRewardsResponse {
|
|
1186
|
-
const message = createBaseQueryDelegationTotalRewardsResponse();
|
|
1187
|
-
message.rewards = object.rewards?.map((e) => DelegationDelegatorReward.fromPartial(e)) || [];
|
|
1188
|
-
message.total = object.total?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
1189
|
-
return message;
|
|
1190
|
-
},
|
|
1191
|
-
};
|
|
1192
|
-
|
|
1193
|
-
function createBaseQueryDelegatorValidatorsRequest(): QueryDelegatorValidatorsRequest {
|
|
1194
|
-
return { delegatorAddress: "" };
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
export const QueryDelegatorValidatorsRequest: MessageFns<QueryDelegatorValidatorsRequest> = {
|
|
1198
|
-
encode(message: QueryDelegatorValidatorsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1199
|
-
if (message.delegatorAddress !== "") {
|
|
1200
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
1201
|
-
}
|
|
1202
|
-
return writer;
|
|
1203
|
-
},
|
|
1204
|
-
|
|
1205
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest {
|
|
1206
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1207
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1208
|
-
const message = createBaseQueryDelegatorValidatorsRequest();
|
|
1209
|
-
while (reader.pos < end) {
|
|
1210
|
-
const tag = reader.uint32();
|
|
1211
|
-
switch (tag >>> 3) {
|
|
1212
|
-
case 1: {
|
|
1213
|
-
if (tag !== 10) {
|
|
1214
|
-
break;
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
message.delegatorAddress = reader.string();
|
|
1218
|
-
continue;
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1222
|
-
break;
|
|
1223
|
-
}
|
|
1224
|
-
reader.skip(tag & 7);
|
|
1225
|
-
}
|
|
1226
|
-
return message;
|
|
1227
|
-
},
|
|
1228
|
-
|
|
1229
|
-
fromJSON(object: any): QueryDelegatorValidatorsRequest {
|
|
1230
|
-
return { delegatorAddress: isSet(object.delegatorAddress) ? globalThis.String(object.delegatorAddress) : "" };
|
|
1231
|
-
},
|
|
1232
|
-
|
|
1233
|
-
toJSON(message: QueryDelegatorValidatorsRequest): unknown {
|
|
1234
|
-
const obj: any = {};
|
|
1235
|
-
if (message.delegatorAddress !== "") {
|
|
1236
|
-
obj.delegatorAddress = message.delegatorAddress;
|
|
1237
|
-
}
|
|
1238
|
-
return obj;
|
|
1239
|
-
},
|
|
1240
|
-
|
|
1241
|
-
create<I extends Exact<DeepPartial<QueryDelegatorValidatorsRequest>, I>>(base?: I): QueryDelegatorValidatorsRequest {
|
|
1242
|
-
return QueryDelegatorValidatorsRequest.fromPartial(base ?? ({} as any));
|
|
1243
|
-
},
|
|
1244
|
-
fromPartial<I extends Exact<DeepPartial<QueryDelegatorValidatorsRequest>, I>>(
|
|
1245
|
-
object: I,
|
|
1246
|
-
): QueryDelegatorValidatorsRequest {
|
|
1247
|
-
const message = createBaseQueryDelegatorValidatorsRequest();
|
|
1248
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1249
|
-
return message;
|
|
1250
|
-
},
|
|
1251
|
-
};
|
|
1252
|
-
|
|
1253
|
-
function createBaseQueryDelegatorValidatorsResponse(): QueryDelegatorValidatorsResponse {
|
|
1254
|
-
return { validators: [] };
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
export const QueryDelegatorValidatorsResponse: MessageFns<QueryDelegatorValidatorsResponse> = {
|
|
1258
|
-
encode(message: QueryDelegatorValidatorsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1259
|
-
for (const v of message.validators) {
|
|
1260
|
-
writer.uint32(10).string(v!);
|
|
1261
|
-
}
|
|
1262
|
-
return writer;
|
|
1263
|
-
},
|
|
1264
|
-
|
|
1265
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse {
|
|
1266
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1267
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1268
|
-
const message = createBaseQueryDelegatorValidatorsResponse();
|
|
1269
|
-
while (reader.pos < end) {
|
|
1270
|
-
const tag = reader.uint32();
|
|
1271
|
-
switch (tag >>> 3) {
|
|
1272
|
-
case 1: {
|
|
1273
|
-
if (tag !== 10) {
|
|
1274
|
-
break;
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
message.validators.push(reader.string());
|
|
1278
|
-
continue;
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1282
|
-
break;
|
|
1283
|
-
}
|
|
1284
|
-
reader.skip(tag & 7);
|
|
1285
|
-
}
|
|
1286
|
-
return message;
|
|
1287
|
-
},
|
|
1288
|
-
|
|
1289
|
-
fromJSON(object: any): QueryDelegatorValidatorsResponse {
|
|
1290
|
-
return {
|
|
1291
|
-
validators: globalThis.Array.isArray(object?.validators)
|
|
1292
|
-
? object.validators.map((e: any) => globalThis.String(e))
|
|
1293
|
-
: [],
|
|
1294
|
-
};
|
|
1295
|
-
},
|
|
1296
|
-
|
|
1297
|
-
toJSON(message: QueryDelegatorValidatorsResponse): unknown {
|
|
1298
|
-
const obj: any = {};
|
|
1299
|
-
if (message.validators?.length) {
|
|
1300
|
-
obj.validators = message.validators;
|
|
1301
|
-
}
|
|
1302
|
-
return obj;
|
|
1303
|
-
},
|
|
1304
|
-
|
|
1305
|
-
create<I extends Exact<DeepPartial<QueryDelegatorValidatorsResponse>, I>>(
|
|
1306
|
-
base?: I,
|
|
1307
|
-
): QueryDelegatorValidatorsResponse {
|
|
1308
|
-
return QueryDelegatorValidatorsResponse.fromPartial(base ?? ({} as any));
|
|
1309
|
-
},
|
|
1310
|
-
fromPartial<I extends Exact<DeepPartial<QueryDelegatorValidatorsResponse>, I>>(
|
|
1311
|
-
object: I,
|
|
1312
|
-
): QueryDelegatorValidatorsResponse {
|
|
1313
|
-
const message = createBaseQueryDelegatorValidatorsResponse();
|
|
1314
|
-
message.validators = object.validators?.map((e) => e) || [];
|
|
1315
|
-
return message;
|
|
1316
|
-
},
|
|
1317
|
-
};
|
|
1318
|
-
|
|
1319
|
-
function createBaseQueryDelegatorWithdrawAddressRequest(): QueryDelegatorWithdrawAddressRequest {
|
|
1320
|
-
return { delegatorAddress: "" };
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
export const QueryDelegatorWithdrawAddressRequest: MessageFns<QueryDelegatorWithdrawAddressRequest> = {
|
|
1324
|
-
encode(message: QueryDelegatorWithdrawAddressRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1325
|
-
if (message.delegatorAddress !== "") {
|
|
1326
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
1327
|
-
}
|
|
1328
|
-
return writer;
|
|
1329
|
-
},
|
|
1330
|
-
|
|
1331
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest {
|
|
1332
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1333
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1334
|
-
const message = createBaseQueryDelegatorWithdrawAddressRequest();
|
|
1335
|
-
while (reader.pos < end) {
|
|
1336
|
-
const tag = reader.uint32();
|
|
1337
|
-
switch (tag >>> 3) {
|
|
1338
|
-
case 1: {
|
|
1339
|
-
if (tag !== 10) {
|
|
1340
|
-
break;
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
message.delegatorAddress = reader.string();
|
|
1344
|
-
continue;
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1348
|
-
break;
|
|
1349
|
-
}
|
|
1350
|
-
reader.skip(tag & 7);
|
|
1351
|
-
}
|
|
1352
|
-
return message;
|
|
1353
|
-
},
|
|
1354
|
-
|
|
1355
|
-
fromJSON(object: any): QueryDelegatorWithdrawAddressRequest {
|
|
1356
|
-
return { delegatorAddress: isSet(object.delegatorAddress) ? globalThis.String(object.delegatorAddress) : "" };
|
|
1357
|
-
},
|
|
1358
|
-
|
|
1359
|
-
toJSON(message: QueryDelegatorWithdrawAddressRequest): unknown {
|
|
1360
|
-
const obj: any = {};
|
|
1361
|
-
if (message.delegatorAddress !== "") {
|
|
1362
|
-
obj.delegatorAddress = message.delegatorAddress;
|
|
1363
|
-
}
|
|
1364
|
-
return obj;
|
|
1365
|
-
},
|
|
1366
|
-
|
|
1367
|
-
create<I extends Exact<DeepPartial<QueryDelegatorWithdrawAddressRequest>, I>>(
|
|
1368
|
-
base?: I,
|
|
1369
|
-
): QueryDelegatorWithdrawAddressRequest {
|
|
1370
|
-
return QueryDelegatorWithdrawAddressRequest.fromPartial(base ?? ({} as any));
|
|
1371
|
-
},
|
|
1372
|
-
fromPartial<I extends Exact<DeepPartial<QueryDelegatorWithdrawAddressRequest>, I>>(
|
|
1373
|
-
object: I,
|
|
1374
|
-
): QueryDelegatorWithdrawAddressRequest {
|
|
1375
|
-
const message = createBaseQueryDelegatorWithdrawAddressRequest();
|
|
1376
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1377
|
-
return message;
|
|
1378
|
-
},
|
|
1379
|
-
};
|
|
1380
|
-
|
|
1381
|
-
function createBaseQueryDelegatorWithdrawAddressResponse(): QueryDelegatorWithdrawAddressResponse {
|
|
1382
|
-
return { withdrawAddress: "" };
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
export const QueryDelegatorWithdrawAddressResponse: MessageFns<QueryDelegatorWithdrawAddressResponse> = {
|
|
1386
|
-
encode(message: QueryDelegatorWithdrawAddressResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1387
|
-
if (message.withdrawAddress !== "") {
|
|
1388
|
-
writer.uint32(10).string(message.withdrawAddress);
|
|
1389
|
-
}
|
|
1390
|
-
return writer;
|
|
1391
|
-
},
|
|
1392
|
-
|
|
1393
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse {
|
|
1394
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1395
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1396
|
-
const message = createBaseQueryDelegatorWithdrawAddressResponse();
|
|
1397
|
-
while (reader.pos < end) {
|
|
1398
|
-
const tag = reader.uint32();
|
|
1399
|
-
switch (tag >>> 3) {
|
|
1400
|
-
case 1: {
|
|
1401
|
-
if (tag !== 10) {
|
|
1402
|
-
break;
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
message.withdrawAddress = reader.string();
|
|
1406
|
-
continue;
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1409
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1410
|
-
break;
|
|
1411
|
-
}
|
|
1412
|
-
reader.skip(tag & 7);
|
|
1413
|
-
}
|
|
1414
|
-
return message;
|
|
1415
|
-
},
|
|
1416
|
-
|
|
1417
|
-
fromJSON(object: any): QueryDelegatorWithdrawAddressResponse {
|
|
1418
|
-
return { withdrawAddress: isSet(object.withdrawAddress) ? globalThis.String(object.withdrawAddress) : "" };
|
|
1419
|
-
},
|
|
1420
|
-
|
|
1421
|
-
toJSON(message: QueryDelegatorWithdrawAddressResponse): unknown {
|
|
1422
|
-
const obj: any = {};
|
|
1423
|
-
if (message.withdrawAddress !== "") {
|
|
1424
|
-
obj.withdrawAddress = message.withdrawAddress;
|
|
1425
|
-
}
|
|
1426
|
-
return obj;
|
|
1427
|
-
},
|
|
1428
|
-
|
|
1429
|
-
create<I extends Exact<DeepPartial<QueryDelegatorWithdrawAddressResponse>, I>>(
|
|
1430
|
-
base?: I,
|
|
1431
|
-
): QueryDelegatorWithdrawAddressResponse {
|
|
1432
|
-
return QueryDelegatorWithdrawAddressResponse.fromPartial(base ?? ({} as any));
|
|
1433
|
-
},
|
|
1434
|
-
fromPartial<I extends Exact<DeepPartial<QueryDelegatorWithdrawAddressResponse>, I>>(
|
|
1435
|
-
object: I,
|
|
1436
|
-
): QueryDelegatorWithdrawAddressResponse {
|
|
1437
|
-
const message = createBaseQueryDelegatorWithdrawAddressResponse();
|
|
1438
|
-
message.withdrawAddress = object.withdrawAddress ?? "";
|
|
1439
|
-
return message;
|
|
1440
|
-
},
|
|
1441
|
-
};
|
|
1442
|
-
|
|
1443
|
-
function createBaseQueryCommunityPoolRequest(): QueryCommunityPoolRequest {
|
|
1444
|
-
return {};
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
export const QueryCommunityPoolRequest: MessageFns<QueryCommunityPoolRequest> = {
|
|
1448
|
-
encode(_: QueryCommunityPoolRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1449
|
-
return writer;
|
|
1450
|
-
},
|
|
1451
|
-
|
|
1452
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolRequest {
|
|
1453
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1454
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1455
|
-
const message = createBaseQueryCommunityPoolRequest();
|
|
1456
|
-
while (reader.pos < end) {
|
|
1457
|
-
const tag = reader.uint32();
|
|
1458
|
-
switch (tag >>> 3) {
|
|
1459
|
-
}
|
|
1460
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1461
|
-
break;
|
|
1462
|
-
}
|
|
1463
|
-
reader.skip(tag & 7);
|
|
1464
|
-
}
|
|
1465
|
-
return message;
|
|
1466
|
-
},
|
|
1467
|
-
|
|
1468
|
-
fromJSON(_: any): QueryCommunityPoolRequest {
|
|
1469
|
-
return {};
|
|
1470
|
-
},
|
|
1471
|
-
|
|
1472
|
-
toJSON(_: QueryCommunityPoolRequest): unknown {
|
|
1473
|
-
const obj: any = {};
|
|
1474
|
-
return obj;
|
|
1475
|
-
},
|
|
1476
|
-
|
|
1477
|
-
create<I extends Exact<DeepPartial<QueryCommunityPoolRequest>, I>>(base?: I): QueryCommunityPoolRequest {
|
|
1478
|
-
return QueryCommunityPoolRequest.fromPartial(base ?? ({} as any));
|
|
1479
|
-
},
|
|
1480
|
-
fromPartial<I extends Exact<DeepPartial<QueryCommunityPoolRequest>, I>>(_: I): QueryCommunityPoolRequest {
|
|
1481
|
-
const message = createBaseQueryCommunityPoolRequest();
|
|
1482
|
-
return message;
|
|
1483
|
-
},
|
|
1484
|
-
};
|
|
1485
|
-
|
|
1486
|
-
function createBaseQueryCommunityPoolResponse(): QueryCommunityPoolResponse {
|
|
1487
|
-
return { pool: [] };
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
export const QueryCommunityPoolResponse: MessageFns<QueryCommunityPoolResponse> = {
|
|
1491
|
-
encode(message: QueryCommunityPoolResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1492
|
-
for (const v of message.pool) {
|
|
1493
|
-
DecCoin.encode(v!, writer.uint32(10).fork()).join();
|
|
1494
|
-
}
|
|
1495
|
-
return writer;
|
|
1496
|
-
},
|
|
1497
|
-
|
|
1498
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolResponse {
|
|
1499
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1500
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1501
|
-
const message = createBaseQueryCommunityPoolResponse();
|
|
1502
|
-
while (reader.pos < end) {
|
|
1503
|
-
const tag = reader.uint32();
|
|
1504
|
-
switch (tag >>> 3) {
|
|
1505
|
-
case 1: {
|
|
1506
|
-
if (tag !== 10) {
|
|
1507
|
-
break;
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
message.pool.push(DecCoin.decode(reader, reader.uint32()));
|
|
1511
|
-
continue;
|
|
1512
|
-
}
|
|
1513
|
-
}
|
|
1514
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1515
|
-
break;
|
|
1516
|
-
}
|
|
1517
|
-
reader.skip(tag & 7);
|
|
1518
|
-
}
|
|
1519
|
-
return message;
|
|
1520
|
-
},
|
|
1521
|
-
|
|
1522
|
-
fromJSON(object: any): QueryCommunityPoolResponse {
|
|
1523
|
-
return { pool: globalThis.Array.isArray(object?.pool) ? object.pool.map((e: any) => DecCoin.fromJSON(e)) : [] };
|
|
1524
|
-
},
|
|
1525
|
-
|
|
1526
|
-
toJSON(message: QueryCommunityPoolResponse): unknown {
|
|
1527
|
-
const obj: any = {};
|
|
1528
|
-
if (message.pool?.length) {
|
|
1529
|
-
obj.pool = message.pool.map((e) => DecCoin.toJSON(e));
|
|
1530
|
-
}
|
|
1531
|
-
return obj;
|
|
1532
|
-
},
|
|
1533
|
-
|
|
1534
|
-
create<I extends Exact<DeepPartial<QueryCommunityPoolResponse>, I>>(base?: I): QueryCommunityPoolResponse {
|
|
1535
|
-
return QueryCommunityPoolResponse.fromPartial(base ?? ({} as any));
|
|
1536
|
-
},
|
|
1537
|
-
fromPartial<I extends Exact<DeepPartial<QueryCommunityPoolResponse>, I>>(object: I): QueryCommunityPoolResponse {
|
|
1538
|
-
const message = createBaseQueryCommunityPoolResponse();
|
|
1539
|
-
message.pool = object.pool?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
1540
|
-
return message;
|
|
1541
|
-
},
|
|
1542
|
-
};
|
|
1543
|
-
|
|
1544
|
-
/** Query defines the gRPC querier service for distribution module. */
|
|
1545
|
-
export interface Query {
|
|
1546
|
-
/** Params queries params of the distribution module. */
|
|
1547
|
-
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
1548
|
-
/** ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator */
|
|
1549
|
-
ValidatorDistributionInfo(
|
|
1550
|
-
request: QueryValidatorDistributionInfoRequest,
|
|
1551
|
-
): Promise<QueryValidatorDistributionInfoResponse>;
|
|
1552
|
-
/** ValidatorOutstandingRewards queries rewards of a validator address. */
|
|
1553
|
-
ValidatorOutstandingRewards(
|
|
1554
|
-
request: QueryValidatorOutstandingRewardsRequest,
|
|
1555
|
-
): Promise<QueryValidatorOutstandingRewardsResponse>;
|
|
1556
|
-
/** ValidatorCommission queries accumulated commission for a validator. */
|
|
1557
|
-
ValidatorCommission(request: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponse>;
|
|
1558
|
-
/** ValidatorSlashes queries slash events of a validator. */
|
|
1559
|
-
ValidatorSlashes(request: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponse>;
|
|
1560
|
-
/** DelegationRewards queries the total rewards accrued by a delegation. */
|
|
1561
|
-
DelegationRewards(request: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponse>;
|
|
1562
|
-
/**
|
|
1563
|
-
* DelegationTotalRewards queries the total rewards accrued by each
|
|
1564
|
-
* validator.
|
|
1565
|
-
*/
|
|
1566
|
-
DelegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise<QueryDelegationTotalRewardsResponse>;
|
|
1567
|
-
/** DelegatorValidators queries the validators of a delegator. */
|
|
1568
|
-
DelegatorValidators(request: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponse>;
|
|
1569
|
-
/** DelegatorWithdrawAddress queries withdraw address of a delegator. */
|
|
1570
|
-
DelegatorWithdrawAddress(
|
|
1571
|
-
request: QueryDelegatorWithdrawAddressRequest,
|
|
1572
|
-
): Promise<QueryDelegatorWithdrawAddressResponse>;
|
|
1573
|
-
/** CommunityPool queries the community pool coins. */
|
|
1574
|
-
CommunityPool(request: QueryCommunityPoolRequest): Promise<QueryCommunityPoolResponse>;
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
export const QueryServiceName = "cosmos.distribution.v1beta1.Query";
|
|
1578
|
-
export class QueryClientImpl implements Query {
|
|
1579
|
-
private readonly rpc: Rpc;
|
|
1580
|
-
private readonly service: string;
|
|
1581
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
1582
|
-
this.service = opts?.service || QueryServiceName;
|
|
1583
|
-
this.rpc = rpc;
|
|
1584
|
-
this.Params = this.Params.bind(this);
|
|
1585
|
-
this.ValidatorDistributionInfo = this.ValidatorDistributionInfo.bind(this);
|
|
1586
|
-
this.ValidatorOutstandingRewards = this.ValidatorOutstandingRewards.bind(this);
|
|
1587
|
-
this.ValidatorCommission = this.ValidatorCommission.bind(this);
|
|
1588
|
-
this.ValidatorSlashes = this.ValidatorSlashes.bind(this);
|
|
1589
|
-
this.DelegationRewards = this.DelegationRewards.bind(this);
|
|
1590
|
-
this.DelegationTotalRewards = this.DelegationTotalRewards.bind(this);
|
|
1591
|
-
this.DelegatorValidators = this.DelegatorValidators.bind(this);
|
|
1592
|
-
this.DelegatorWithdrawAddress = this.DelegatorWithdrawAddress.bind(this);
|
|
1593
|
-
this.CommunityPool = this.CommunityPool.bind(this);
|
|
1594
|
-
}
|
|
1595
|
-
Params(request: QueryParamsRequest): Promise<QueryParamsResponse> {
|
|
1596
|
-
const data = QueryParamsRequest.encode(request).finish();
|
|
1597
|
-
const promise = this.rpc.request(this.service, "Params", data);
|
|
1598
|
-
return promise.then((data) => QueryParamsResponse.decode(new BinaryReader(data)));
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
|
-
ValidatorDistributionInfo(
|
|
1602
|
-
request: QueryValidatorDistributionInfoRequest,
|
|
1603
|
-
): Promise<QueryValidatorDistributionInfoResponse> {
|
|
1604
|
-
const data = QueryValidatorDistributionInfoRequest.encode(request).finish();
|
|
1605
|
-
const promise = this.rpc.request(this.service, "ValidatorDistributionInfo", data);
|
|
1606
|
-
return promise.then((data) => QueryValidatorDistributionInfoResponse.decode(new BinaryReader(data)));
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
ValidatorOutstandingRewards(
|
|
1610
|
-
request: QueryValidatorOutstandingRewardsRequest,
|
|
1611
|
-
): Promise<QueryValidatorOutstandingRewardsResponse> {
|
|
1612
|
-
const data = QueryValidatorOutstandingRewardsRequest.encode(request).finish();
|
|
1613
|
-
const promise = this.rpc.request(this.service, "ValidatorOutstandingRewards", data);
|
|
1614
|
-
return promise.then((data) => QueryValidatorOutstandingRewardsResponse.decode(new BinaryReader(data)));
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
ValidatorCommission(request: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponse> {
|
|
1618
|
-
const data = QueryValidatorCommissionRequest.encode(request).finish();
|
|
1619
|
-
const promise = this.rpc.request(this.service, "ValidatorCommission", data);
|
|
1620
|
-
return promise.then((data) => QueryValidatorCommissionResponse.decode(new BinaryReader(data)));
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
ValidatorSlashes(request: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponse> {
|
|
1624
|
-
const data = QueryValidatorSlashesRequest.encode(request).finish();
|
|
1625
|
-
const promise = this.rpc.request(this.service, "ValidatorSlashes", data);
|
|
1626
|
-
return promise.then((data) => QueryValidatorSlashesResponse.decode(new BinaryReader(data)));
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
DelegationRewards(request: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponse> {
|
|
1630
|
-
const data = QueryDelegationRewardsRequest.encode(request).finish();
|
|
1631
|
-
const promise = this.rpc.request(this.service, "DelegationRewards", data);
|
|
1632
|
-
return promise.then((data) => QueryDelegationRewardsResponse.decode(new BinaryReader(data)));
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
DelegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise<QueryDelegationTotalRewardsResponse> {
|
|
1636
|
-
const data = QueryDelegationTotalRewardsRequest.encode(request).finish();
|
|
1637
|
-
const promise = this.rpc.request(this.service, "DelegationTotalRewards", data);
|
|
1638
|
-
return promise.then((data) => QueryDelegationTotalRewardsResponse.decode(new BinaryReader(data)));
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
DelegatorValidators(request: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponse> {
|
|
1642
|
-
const data = QueryDelegatorValidatorsRequest.encode(request).finish();
|
|
1643
|
-
const promise = this.rpc.request(this.service, "DelegatorValidators", data);
|
|
1644
|
-
return promise.then((data) => QueryDelegatorValidatorsResponse.decode(new BinaryReader(data)));
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
DelegatorWithdrawAddress(
|
|
1648
|
-
request: QueryDelegatorWithdrawAddressRequest,
|
|
1649
|
-
): Promise<QueryDelegatorWithdrawAddressResponse> {
|
|
1650
|
-
const data = QueryDelegatorWithdrawAddressRequest.encode(request).finish();
|
|
1651
|
-
const promise = this.rpc.request(this.service, "DelegatorWithdrawAddress", data);
|
|
1652
|
-
return promise.then((data) => QueryDelegatorWithdrawAddressResponse.decode(new BinaryReader(data)));
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
|
-
CommunityPool(request: QueryCommunityPoolRequest): Promise<QueryCommunityPoolResponse> {
|
|
1656
|
-
const data = QueryCommunityPoolRequest.encode(request).finish();
|
|
1657
|
-
const promise = this.rpc.request(this.service, "CommunityPool", data);
|
|
1658
|
-
return promise.then((data) => QueryCommunityPoolResponse.decode(new BinaryReader(data)));
|
|
1659
|
-
}
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
interface Rpc {
|
|
1663
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
1664
|
-
}
|
|
1665
|
-
|
|
1666
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1667
|
-
|
|
1668
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
1669
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1670
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1671
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1672
|
-
: Partial<T>;
|
|
1673
|
-
|
|
1674
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1675
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1676
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1677
|
-
|
|
1678
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
1679
|
-
const num = globalThis.Number(int64.toString());
|
|
1680
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1681
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1682
|
-
}
|
|
1683
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1684
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1685
|
-
}
|
|
1686
|
-
return num;
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
function isSet(value: any): boolean {
|
|
1690
|
-
return value !== null && value !== undefined;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
export interface MessageFns<T> {
|
|
1694
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1695
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1696
|
-
fromJSON(object: any): T;
|
|
1697
|
-
toJSON(message: T): unknown;
|
|
1698
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1699
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1700
|
-
}
|