decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.33
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 +25 -25
- package/package.json +12 -1
- 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,2441 +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/group/v1/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 { GroupInfo, GroupMember, GroupPolicyInfo, Proposal, TallyResult, Vote } from "./types";
|
|
11
|
-
|
|
12
|
-
export const protobufPackage = "cosmos.group.v1";
|
|
13
|
-
|
|
14
|
-
/** Since: cosmos-sdk 0.46 */
|
|
15
|
-
|
|
16
|
-
/** QueryGroupInfoRequest is the Query/GroupInfo request type. */
|
|
17
|
-
export interface QueryGroupInfoRequest {
|
|
18
|
-
/** group_id is the unique ID of the group. */
|
|
19
|
-
groupId: number;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** QueryGroupInfoResponse is the Query/GroupInfo response type. */
|
|
23
|
-
export interface QueryGroupInfoResponse {
|
|
24
|
-
/** info is the GroupInfo of the group. */
|
|
25
|
-
info: GroupInfo | undefined;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */
|
|
29
|
-
export interface QueryGroupPolicyInfoRequest {
|
|
30
|
-
/** address is the account address of the group policy. */
|
|
31
|
-
address: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */
|
|
35
|
-
export interface QueryGroupPolicyInfoResponse {
|
|
36
|
-
/** info is the GroupPolicyInfo of the group policy. */
|
|
37
|
-
info: GroupPolicyInfo | undefined;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/** QueryGroupMembersRequest is the Query/GroupMembers request type. */
|
|
41
|
-
export interface QueryGroupMembersRequest {
|
|
42
|
-
/** group_id is the unique ID of the group. */
|
|
43
|
-
groupId: number;
|
|
44
|
-
/** pagination defines an optional pagination for the request. */
|
|
45
|
-
pagination: PageRequest | undefined;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */
|
|
49
|
-
export interface QueryGroupMembersResponse {
|
|
50
|
-
/** members are the members of the group with given group_id. */
|
|
51
|
-
members: GroupMember[];
|
|
52
|
-
/** pagination defines the pagination in the response. */
|
|
53
|
-
pagination: PageResponse | undefined;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */
|
|
57
|
-
export interface QueryGroupsByAdminRequest {
|
|
58
|
-
/** admin is the account address of a group's admin. */
|
|
59
|
-
admin: string;
|
|
60
|
-
/** pagination defines an optional pagination for the request. */
|
|
61
|
-
pagination: PageRequest | undefined;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */
|
|
65
|
-
export interface QueryGroupsByAdminResponse {
|
|
66
|
-
/** groups are the groups info with the provided admin. */
|
|
67
|
-
groups: GroupInfo[];
|
|
68
|
-
/** pagination defines the pagination in the response. */
|
|
69
|
-
pagination: PageResponse | undefined;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */
|
|
73
|
-
export interface QueryGroupPoliciesByGroupRequest {
|
|
74
|
-
/** group_id is the unique ID of the group policy's group. */
|
|
75
|
-
groupId: number;
|
|
76
|
-
/** pagination defines an optional pagination for the request. */
|
|
77
|
-
pagination: PageRequest | undefined;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */
|
|
81
|
-
export interface QueryGroupPoliciesByGroupResponse {
|
|
82
|
-
/** group_policies are the group policies info associated with the provided group. */
|
|
83
|
-
groupPolicies: GroupPolicyInfo[];
|
|
84
|
-
/** pagination defines the pagination in the response. */
|
|
85
|
-
pagination: PageResponse | undefined;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */
|
|
89
|
-
export interface QueryGroupPoliciesByAdminRequest {
|
|
90
|
-
/** admin is the admin address of the group policy. */
|
|
91
|
-
admin: string;
|
|
92
|
-
/** pagination defines an optional pagination for the request. */
|
|
93
|
-
pagination: PageRequest | undefined;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */
|
|
97
|
-
export interface QueryGroupPoliciesByAdminResponse {
|
|
98
|
-
/** group_policies are the group policies info with provided admin. */
|
|
99
|
-
groupPolicies: GroupPolicyInfo[];
|
|
100
|
-
/** pagination defines the pagination in the response. */
|
|
101
|
-
pagination: PageResponse | undefined;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/** QueryProposalRequest is the Query/Proposal request type. */
|
|
105
|
-
export interface QueryProposalRequest {
|
|
106
|
-
/** proposal_id is the unique ID of a proposal. */
|
|
107
|
-
proposalId: number;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/** QueryProposalResponse is the Query/Proposal response type. */
|
|
111
|
-
export interface QueryProposalResponse {
|
|
112
|
-
/** proposal is the proposal info. */
|
|
113
|
-
proposal: Proposal | undefined;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */
|
|
117
|
-
export interface QueryProposalsByGroupPolicyRequest {
|
|
118
|
-
/** address is the account address of the group policy related to proposals. */
|
|
119
|
-
address: string;
|
|
120
|
-
/** pagination defines an optional pagination for the request. */
|
|
121
|
-
pagination: PageRequest | undefined;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */
|
|
125
|
-
export interface QueryProposalsByGroupPolicyResponse {
|
|
126
|
-
/** proposals are the proposals with given group policy. */
|
|
127
|
-
proposals: Proposal[];
|
|
128
|
-
/** pagination defines the pagination in the response. */
|
|
129
|
-
pagination: PageResponse | undefined;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */
|
|
133
|
-
export interface QueryVoteByProposalVoterRequest {
|
|
134
|
-
/** proposal_id is the unique ID of a proposal. */
|
|
135
|
-
proposalId: number;
|
|
136
|
-
/** voter is a proposal voter account address. */
|
|
137
|
-
voter: string;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */
|
|
141
|
-
export interface QueryVoteByProposalVoterResponse {
|
|
142
|
-
/** vote is the vote with given proposal_id and voter. */
|
|
143
|
-
vote: Vote | undefined;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */
|
|
147
|
-
export interface QueryVotesByProposalRequest {
|
|
148
|
-
/** proposal_id is the unique ID of a proposal. */
|
|
149
|
-
proposalId: number;
|
|
150
|
-
/** pagination defines an optional pagination for the request. */
|
|
151
|
-
pagination: PageRequest | undefined;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */
|
|
155
|
-
export interface QueryVotesByProposalResponse {
|
|
156
|
-
/** votes are the list of votes for given proposal_id. */
|
|
157
|
-
votes: Vote[];
|
|
158
|
-
/** pagination defines the pagination in the response. */
|
|
159
|
-
pagination: PageResponse | undefined;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */
|
|
163
|
-
export interface QueryVotesByVoterRequest {
|
|
164
|
-
/** voter is a proposal voter account address. */
|
|
165
|
-
voter: string;
|
|
166
|
-
/** pagination defines an optional pagination for the request. */
|
|
167
|
-
pagination: PageRequest | undefined;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */
|
|
171
|
-
export interface QueryVotesByVoterResponse {
|
|
172
|
-
/** votes are the list of votes by given voter. */
|
|
173
|
-
votes: Vote[];
|
|
174
|
-
/** pagination defines the pagination in the response. */
|
|
175
|
-
pagination: PageResponse | undefined;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */
|
|
179
|
-
export interface QueryGroupsByMemberRequest {
|
|
180
|
-
/** address is the group member address. */
|
|
181
|
-
address: string;
|
|
182
|
-
/** pagination defines an optional pagination for the request. */
|
|
183
|
-
pagination: PageRequest | undefined;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */
|
|
187
|
-
export interface QueryGroupsByMemberResponse {
|
|
188
|
-
/** groups are the groups info with the provided group member. */
|
|
189
|
-
groups: GroupInfo[];
|
|
190
|
-
/** pagination defines the pagination in the response. */
|
|
191
|
-
pagination: PageResponse | undefined;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/** QueryTallyResultRequest is the Query/TallyResult request type. */
|
|
195
|
-
export interface QueryTallyResultRequest {
|
|
196
|
-
/** proposal_id is the unique id of a proposal. */
|
|
197
|
-
proposalId: number;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/** QueryTallyResultResponse is the Query/TallyResult response type. */
|
|
201
|
-
export interface QueryTallyResultResponse {
|
|
202
|
-
/** tally defines the requested tally. */
|
|
203
|
-
tally: TallyResult | undefined;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* QueryGroupsRequest is the Query/Groups request type.
|
|
208
|
-
*
|
|
209
|
-
* Since: cosmos-sdk 0.47.1
|
|
210
|
-
*/
|
|
211
|
-
export interface QueryGroupsRequest {
|
|
212
|
-
/** pagination defines an optional pagination for the request. */
|
|
213
|
-
pagination: PageRequest | undefined;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* QueryGroupsResponse is the Query/Groups response type.
|
|
218
|
-
*
|
|
219
|
-
* Since: cosmos-sdk 0.47.1
|
|
220
|
-
*/
|
|
221
|
-
export interface QueryGroupsResponse {
|
|
222
|
-
/** `groups` is all the groups present in state. */
|
|
223
|
-
groups: GroupInfo[];
|
|
224
|
-
/** pagination defines the pagination in the response. */
|
|
225
|
-
pagination: PageResponse | undefined;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
function createBaseQueryGroupInfoRequest(): QueryGroupInfoRequest {
|
|
229
|
-
return { groupId: 0 };
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export const QueryGroupInfoRequest: MessageFns<QueryGroupInfoRequest> = {
|
|
233
|
-
encode(message: QueryGroupInfoRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
234
|
-
if (message.groupId !== 0) {
|
|
235
|
-
writer.uint32(8).uint64(message.groupId);
|
|
236
|
-
}
|
|
237
|
-
return writer;
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoRequest {
|
|
241
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
242
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
243
|
-
const message = createBaseQueryGroupInfoRequest();
|
|
244
|
-
while (reader.pos < end) {
|
|
245
|
-
const tag = reader.uint32();
|
|
246
|
-
switch (tag >>> 3) {
|
|
247
|
-
case 1: {
|
|
248
|
-
if (tag !== 8) {
|
|
249
|
-
break;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
message.groupId = longToNumber(reader.uint64());
|
|
253
|
-
continue;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
257
|
-
break;
|
|
258
|
-
}
|
|
259
|
-
reader.skip(tag & 7);
|
|
260
|
-
}
|
|
261
|
-
return message;
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
fromJSON(object: any): QueryGroupInfoRequest {
|
|
265
|
-
return { groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0 };
|
|
266
|
-
},
|
|
267
|
-
|
|
268
|
-
toJSON(message: QueryGroupInfoRequest): unknown {
|
|
269
|
-
const obj: any = {};
|
|
270
|
-
if (message.groupId !== 0) {
|
|
271
|
-
obj.groupId = Math.round(message.groupId);
|
|
272
|
-
}
|
|
273
|
-
return obj;
|
|
274
|
-
},
|
|
275
|
-
|
|
276
|
-
create<I extends Exact<DeepPartial<QueryGroupInfoRequest>, I>>(base?: I): QueryGroupInfoRequest {
|
|
277
|
-
return QueryGroupInfoRequest.fromPartial(base ?? ({} as any));
|
|
278
|
-
},
|
|
279
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupInfoRequest>, I>>(object: I): QueryGroupInfoRequest {
|
|
280
|
-
const message = createBaseQueryGroupInfoRequest();
|
|
281
|
-
message.groupId = object.groupId ?? 0;
|
|
282
|
-
return message;
|
|
283
|
-
},
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
function createBaseQueryGroupInfoResponse(): QueryGroupInfoResponse {
|
|
287
|
-
return { info: undefined };
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
export const QueryGroupInfoResponse: MessageFns<QueryGroupInfoResponse> = {
|
|
291
|
-
encode(message: QueryGroupInfoResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
292
|
-
if (message.info !== undefined) {
|
|
293
|
-
GroupInfo.encode(message.info, writer.uint32(10).fork()).join();
|
|
294
|
-
}
|
|
295
|
-
return writer;
|
|
296
|
-
},
|
|
297
|
-
|
|
298
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupInfoResponse {
|
|
299
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
300
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
301
|
-
const message = createBaseQueryGroupInfoResponse();
|
|
302
|
-
while (reader.pos < end) {
|
|
303
|
-
const tag = reader.uint32();
|
|
304
|
-
switch (tag >>> 3) {
|
|
305
|
-
case 1: {
|
|
306
|
-
if (tag !== 10) {
|
|
307
|
-
break;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
message.info = GroupInfo.decode(reader, reader.uint32());
|
|
311
|
-
continue;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
315
|
-
break;
|
|
316
|
-
}
|
|
317
|
-
reader.skip(tag & 7);
|
|
318
|
-
}
|
|
319
|
-
return message;
|
|
320
|
-
},
|
|
321
|
-
|
|
322
|
-
fromJSON(object: any): QueryGroupInfoResponse {
|
|
323
|
-
return { info: isSet(object.info) ? GroupInfo.fromJSON(object.info) : undefined };
|
|
324
|
-
},
|
|
325
|
-
|
|
326
|
-
toJSON(message: QueryGroupInfoResponse): unknown {
|
|
327
|
-
const obj: any = {};
|
|
328
|
-
if (message.info !== undefined) {
|
|
329
|
-
obj.info = GroupInfo.toJSON(message.info);
|
|
330
|
-
}
|
|
331
|
-
return obj;
|
|
332
|
-
},
|
|
333
|
-
|
|
334
|
-
create<I extends Exact<DeepPartial<QueryGroupInfoResponse>, I>>(base?: I): QueryGroupInfoResponse {
|
|
335
|
-
return QueryGroupInfoResponse.fromPartial(base ?? ({} as any));
|
|
336
|
-
},
|
|
337
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupInfoResponse>, I>>(object: I): QueryGroupInfoResponse {
|
|
338
|
-
const message = createBaseQueryGroupInfoResponse();
|
|
339
|
-
message.info = (object.info !== undefined && object.info !== null) ? GroupInfo.fromPartial(object.info) : undefined;
|
|
340
|
-
return message;
|
|
341
|
-
},
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
function createBaseQueryGroupPolicyInfoRequest(): QueryGroupPolicyInfoRequest {
|
|
345
|
-
return { address: "" };
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
export const QueryGroupPolicyInfoRequest: MessageFns<QueryGroupPolicyInfoRequest> = {
|
|
349
|
-
encode(message: QueryGroupPolicyInfoRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
350
|
-
if (message.address !== "") {
|
|
351
|
-
writer.uint32(10).string(message.address);
|
|
352
|
-
}
|
|
353
|
-
return writer;
|
|
354
|
-
},
|
|
355
|
-
|
|
356
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoRequest {
|
|
357
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
358
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
359
|
-
const message = createBaseQueryGroupPolicyInfoRequest();
|
|
360
|
-
while (reader.pos < end) {
|
|
361
|
-
const tag = reader.uint32();
|
|
362
|
-
switch (tag >>> 3) {
|
|
363
|
-
case 1: {
|
|
364
|
-
if (tag !== 10) {
|
|
365
|
-
break;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
message.address = reader.string();
|
|
369
|
-
continue;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
373
|
-
break;
|
|
374
|
-
}
|
|
375
|
-
reader.skip(tag & 7);
|
|
376
|
-
}
|
|
377
|
-
return message;
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
fromJSON(object: any): QueryGroupPolicyInfoRequest {
|
|
381
|
-
return { address: isSet(object.address) ? globalThis.String(object.address) : "" };
|
|
382
|
-
},
|
|
383
|
-
|
|
384
|
-
toJSON(message: QueryGroupPolicyInfoRequest): unknown {
|
|
385
|
-
const obj: any = {};
|
|
386
|
-
if (message.address !== "") {
|
|
387
|
-
obj.address = message.address;
|
|
388
|
-
}
|
|
389
|
-
return obj;
|
|
390
|
-
},
|
|
391
|
-
|
|
392
|
-
create<I extends Exact<DeepPartial<QueryGroupPolicyInfoRequest>, I>>(base?: I): QueryGroupPolicyInfoRequest {
|
|
393
|
-
return QueryGroupPolicyInfoRequest.fromPartial(base ?? ({} as any));
|
|
394
|
-
},
|
|
395
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupPolicyInfoRequest>, I>>(object: I): QueryGroupPolicyInfoRequest {
|
|
396
|
-
const message = createBaseQueryGroupPolicyInfoRequest();
|
|
397
|
-
message.address = object.address ?? "";
|
|
398
|
-
return message;
|
|
399
|
-
},
|
|
400
|
-
};
|
|
401
|
-
|
|
402
|
-
function createBaseQueryGroupPolicyInfoResponse(): QueryGroupPolicyInfoResponse {
|
|
403
|
-
return { info: undefined };
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
export const QueryGroupPolicyInfoResponse: MessageFns<QueryGroupPolicyInfoResponse> = {
|
|
407
|
-
encode(message: QueryGroupPolicyInfoResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
408
|
-
if (message.info !== undefined) {
|
|
409
|
-
GroupPolicyInfo.encode(message.info, writer.uint32(10).fork()).join();
|
|
410
|
-
}
|
|
411
|
-
return writer;
|
|
412
|
-
},
|
|
413
|
-
|
|
414
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPolicyInfoResponse {
|
|
415
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
416
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
417
|
-
const message = createBaseQueryGroupPolicyInfoResponse();
|
|
418
|
-
while (reader.pos < end) {
|
|
419
|
-
const tag = reader.uint32();
|
|
420
|
-
switch (tag >>> 3) {
|
|
421
|
-
case 1: {
|
|
422
|
-
if (tag !== 10) {
|
|
423
|
-
break;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
message.info = GroupPolicyInfo.decode(reader, reader.uint32());
|
|
427
|
-
continue;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
431
|
-
break;
|
|
432
|
-
}
|
|
433
|
-
reader.skip(tag & 7);
|
|
434
|
-
}
|
|
435
|
-
return message;
|
|
436
|
-
},
|
|
437
|
-
|
|
438
|
-
fromJSON(object: any): QueryGroupPolicyInfoResponse {
|
|
439
|
-
return { info: isSet(object.info) ? GroupPolicyInfo.fromJSON(object.info) : undefined };
|
|
440
|
-
},
|
|
441
|
-
|
|
442
|
-
toJSON(message: QueryGroupPolicyInfoResponse): unknown {
|
|
443
|
-
const obj: any = {};
|
|
444
|
-
if (message.info !== undefined) {
|
|
445
|
-
obj.info = GroupPolicyInfo.toJSON(message.info);
|
|
446
|
-
}
|
|
447
|
-
return obj;
|
|
448
|
-
},
|
|
449
|
-
|
|
450
|
-
create<I extends Exact<DeepPartial<QueryGroupPolicyInfoResponse>, I>>(base?: I): QueryGroupPolicyInfoResponse {
|
|
451
|
-
return QueryGroupPolicyInfoResponse.fromPartial(base ?? ({} as any));
|
|
452
|
-
},
|
|
453
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupPolicyInfoResponse>, I>>(object: I): QueryGroupPolicyInfoResponse {
|
|
454
|
-
const message = createBaseQueryGroupPolicyInfoResponse();
|
|
455
|
-
message.info = (object.info !== undefined && object.info !== null)
|
|
456
|
-
? GroupPolicyInfo.fromPartial(object.info)
|
|
457
|
-
: undefined;
|
|
458
|
-
return message;
|
|
459
|
-
},
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
function createBaseQueryGroupMembersRequest(): QueryGroupMembersRequest {
|
|
463
|
-
return { groupId: 0, pagination: undefined };
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
export const QueryGroupMembersRequest: MessageFns<QueryGroupMembersRequest> = {
|
|
467
|
-
encode(message: QueryGroupMembersRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
468
|
-
if (message.groupId !== 0) {
|
|
469
|
-
writer.uint32(8).uint64(message.groupId);
|
|
470
|
-
}
|
|
471
|
-
if (message.pagination !== undefined) {
|
|
472
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
473
|
-
}
|
|
474
|
-
return writer;
|
|
475
|
-
},
|
|
476
|
-
|
|
477
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersRequest {
|
|
478
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
479
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
480
|
-
const message = createBaseQueryGroupMembersRequest();
|
|
481
|
-
while (reader.pos < end) {
|
|
482
|
-
const tag = reader.uint32();
|
|
483
|
-
switch (tag >>> 3) {
|
|
484
|
-
case 1: {
|
|
485
|
-
if (tag !== 8) {
|
|
486
|
-
break;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
message.groupId = longToNumber(reader.uint64());
|
|
490
|
-
continue;
|
|
491
|
-
}
|
|
492
|
-
case 2: {
|
|
493
|
-
if (tag !== 18) {
|
|
494
|
-
break;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
498
|
-
continue;
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
502
|
-
break;
|
|
503
|
-
}
|
|
504
|
-
reader.skip(tag & 7);
|
|
505
|
-
}
|
|
506
|
-
return message;
|
|
507
|
-
},
|
|
508
|
-
|
|
509
|
-
fromJSON(object: any): QueryGroupMembersRequest {
|
|
510
|
-
return {
|
|
511
|
-
groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0,
|
|
512
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
513
|
-
};
|
|
514
|
-
},
|
|
515
|
-
|
|
516
|
-
toJSON(message: QueryGroupMembersRequest): unknown {
|
|
517
|
-
const obj: any = {};
|
|
518
|
-
if (message.groupId !== 0) {
|
|
519
|
-
obj.groupId = Math.round(message.groupId);
|
|
520
|
-
}
|
|
521
|
-
if (message.pagination !== undefined) {
|
|
522
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
523
|
-
}
|
|
524
|
-
return obj;
|
|
525
|
-
},
|
|
526
|
-
|
|
527
|
-
create<I extends Exact<DeepPartial<QueryGroupMembersRequest>, I>>(base?: I): QueryGroupMembersRequest {
|
|
528
|
-
return QueryGroupMembersRequest.fromPartial(base ?? ({} as any));
|
|
529
|
-
},
|
|
530
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupMembersRequest>, I>>(object: I): QueryGroupMembersRequest {
|
|
531
|
-
const message = createBaseQueryGroupMembersRequest();
|
|
532
|
-
message.groupId = object.groupId ?? 0;
|
|
533
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
534
|
-
? PageRequest.fromPartial(object.pagination)
|
|
535
|
-
: undefined;
|
|
536
|
-
return message;
|
|
537
|
-
},
|
|
538
|
-
};
|
|
539
|
-
|
|
540
|
-
function createBaseQueryGroupMembersResponse(): QueryGroupMembersResponse {
|
|
541
|
-
return { members: [], pagination: undefined };
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
export const QueryGroupMembersResponse: MessageFns<QueryGroupMembersResponse> = {
|
|
545
|
-
encode(message: QueryGroupMembersResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
546
|
-
for (const v of message.members) {
|
|
547
|
-
GroupMember.encode(v!, writer.uint32(10).fork()).join();
|
|
548
|
-
}
|
|
549
|
-
if (message.pagination !== undefined) {
|
|
550
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
551
|
-
}
|
|
552
|
-
return writer;
|
|
553
|
-
},
|
|
554
|
-
|
|
555
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupMembersResponse {
|
|
556
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
557
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
558
|
-
const message = createBaseQueryGroupMembersResponse();
|
|
559
|
-
while (reader.pos < end) {
|
|
560
|
-
const tag = reader.uint32();
|
|
561
|
-
switch (tag >>> 3) {
|
|
562
|
-
case 1: {
|
|
563
|
-
if (tag !== 10) {
|
|
564
|
-
break;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
message.members.push(GroupMember.decode(reader, reader.uint32()));
|
|
568
|
-
continue;
|
|
569
|
-
}
|
|
570
|
-
case 2: {
|
|
571
|
-
if (tag !== 18) {
|
|
572
|
-
break;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
576
|
-
continue;
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
580
|
-
break;
|
|
581
|
-
}
|
|
582
|
-
reader.skip(tag & 7);
|
|
583
|
-
}
|
|
584
|
-
return message;
|
|
585
|
-
},
|
|
586
|
-
|
|
587
|
-
fromJSON(object: any): QueryGroupMembersResponse {
|
|
588
|
-
return {
|
|
589
|
-
members: globalThis.Array.isArray(object?.members) ? object.members.map((e: any) => GroupMember.fromJSON(e)) : [],
|
|
590
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
591
|
-
};
|
|
592
|
-
},
|
|
593
|
-
|
|
594
|
-
toJSON(message: QueryGroupMembersResponse): unknown {
|
|
595
|
-
const obj: any = {};
|
|
596
|
-
if (message.members?.length) {
|
|
597
|
-
obj.members = message.members.map((e) => GroupMember.toJSON(e));
|
|
598
|
-
}
|
|
599
|
-
if (message.pagination !== undefined) {
|
|
600
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
601
|
-
}
|
|
602
|
-
return obj;
|
|
603
|
-
},
|
|
604
|
-
|
|
605
|
-
create<I extends Exact<DeepPartial<QueryGroupMembersResponse>, I>>(base?: I): QueryGroupMembersResponse {
|
|
606
|
-
return QueryGroupMembersResponse.fromPartial(base ?? ({} as any));
|
|
607
|
-
},
|
|
608
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupMembersResponse>, I>>(object: I): QueryGroupMembersResponse {
|
|
609
|
-
const message = createBaseQueryGroupMembersResponse();
|
|
610
|
-
message.members = object.members?.map((e) => GroupMember.fromPartial(e)) || [];
|
|
611
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
612
|
-
? PageResponse.fromPartial(object.pagination)
|
|
613
|
-
: undefined;
|
|
614
|
-
return message;
|
|
615
|
-
},
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
function createBaseQueryGroupsByAdminRequest(): QueryGroupsByAdminRequest {
|
|
619
|
-
return { admin: "", pagination: undefined };
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
export const QueryGroupsByAdminRequest: MessageFns<QueryGroupsByAdminRequest> = {
|
|
623
|
-
encode(message: QueryGroupsByAdminRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
624
|
-
if (message.admin !== "") {
|
|
625
|
-
writer.uint32(10).string(message.admin);
|
|
626
|
-
}
|
|
627
|
-
if (message.pagination !== undefined) {
|
|
628
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
629
|
-
}
|
|
630
|
-
return writer;
|
|
631
|
-
},
|
|
632
|
-
|
|
633
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminRequest {
|
|
634
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
635
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
636
|
-
const message = createBaseQueryGroupsByAdminRequest();
|
|
637
|
-
while (reader.pos < end) {
|
|
638
|
-
const tag = reader.uint32();
|
|
639
|
-
switch (tag >>> 3) {
|
|
640
|
-
case 1: {
|
|
641
|
-
if (tag !== 10) {
|
|
642
|
-
break;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
message.admin = reader.string();
|
|
646
|
-
continue;
|
|
647
|
-
}
|
|
648
|
-
case 2: {
|
|
649
|
-
if (tag !== 18) {
|
|
650
|
-
break;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
654
|
-
continue;
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
658
|
-
break;
|
|
659
|
-
}
|
|
660
|
-
reader.skip(tag & 7);
|
|
661
|
-
}
|
|
662
|
-
return message;
|
|
663
|
-
},
|
|
664
|
-
|
|
665
|
-
fromJSON(object: any): QueryGroupsByAdminRequest {
|
|
666
|
-
return {
|
|
667
|
-
admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
|
|
668
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
669
|
-
};
|
|
670
|
-
},
|
|
671
|
-
|
|
672
|
-
toJSON(message: QueryGroupsByAdminRequest): unknown {
|
|
673
|
-
const obj: any = {};
|
|
674
|
-
if (message.admin !== "") {
|
|
675
|
-
obj.admin = message.admin;
|
|
676
|
-
}
|
|
677
|
-
if (message.pagination !== undefined) {
|
|
678
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
679
|
-
}
|
|
680
|
-
return obj;
|
|
681
|
-
},
|
|
682
|
-
|
|
683
|
-
create<I extends Exact<DeepPartial<QueryGroupsByAdminRequest>, I>>(base?: I): QueryGroupsByAdminRequest {
|
|
684
|
-
return QueryGroupsByAdminRequest.fromPartial(base ?? ({} as any));
|
|
685
|
-
},
|
|
686
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupsByAdminRequest>, I>>(object: I): QueryGroupsByAdminRequest {
|
|
687
|
-
const message = createBaseQueryGroupsByAdminRequest();
|
|
688
|
-
message.admin = object.admin ?? "";
|
|
689
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
690
|
-
? PageRequest.fromPartial(object.pagination)
|
|
691
|
-
: undefined;
|
|
692
|
-
return message;
|
|
693
|
-
},
|
|
694
|
-
};
|
|
695
|
-
|
|
696
|
-
function createBaseQueryGroupsByAdminResponse(): QueryGroupsByAdminResponse {
|
|
697
|
-
return { groups: [], pagination: undefined };
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
export const QueryGroupsByAdminResponse: MessageFns<QueryGroupsByAdminResponse> = {
|
|
701
|
-
encode(message: QueryGroupsByAdminResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
702
|
-
for (const v of message.groups) {
|
|
703
|
-
GroupInfo.encode(v!, writer.uint32(10).fork()).join();
|
|
704
|
-
}
|
|
705
|
-
if (message.pagination !== undefined) {
|
|
706
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
707
|
-
}
|
|
708
|
-
return writer;
|
|
709
|
-
},
|
|
710
|
-
|
|
711
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByAdminResponse {
|
|
712
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
713
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
714
|
-
const message = createBaseQueryGroupsByAdminResponse();
|
|
715
|
-
while (reader.pos < end) {
|
|
716
|
-
const tag = reader.uint32();
|
|
717
|
-
switch (tag >>> 3) {
|
|
718
|
-
case 1: {
|
|
719
|
-
if (tag !== 10) {
|
|
720
|
-
break;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
message.groups.push(GroupInfo.decode(reader, reader.uint32()));
|
|
724
|
-
continue;
|
|
725
|
-
}
|
|
726
|
-
case 2: {
|
|
727
|
-
if (tag !== 18) {
|
|
728
|
-
break;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
732
|
-
continue;
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
736
|
-
break;
|
|
737
|
-
}
|
|
738
|
-
reader.skip(tag & 7);
|
|
739
|
-
}
|
|
740
|
-
return message;
|
|
741
|
-
},
|
|
742
|
-
|
|
743
|
-
fromJSON(object: any): QueryGroupsByAdminResponse {
|
|
744
|
-
return {
|
|
745
|
-
groups: globalThis.Array.isArray(object?.groups) ? object.groups.map((e: any) => GroupInfo.fromJSON(e)) : [],
|
|
746
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
747
|
-
};
|
|
748
|
-
},
|
|
749
|
-
|
|
750
|
-
toJSON(message: QueryGroupsByAdminResponse): unknown {
|
|
751
|
-
const obj: any = {};
|
|
752
|
-
if (message.groups?.length) {
|
|
753
|
-
obj.groups = message.groups.map((e) => GroupInfo.toJSON(e));
|
|
754
|
-
}
|
|
755
|
-
if (message.pagination !== undefined) {
|
|
756
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
757
|
-
}
|
|
758
|
-
return obj;
|
|
759
|
-
},
|
|
760
|
-
|
|
761
|
-
create<I extends Exact<DeepPartial<QueryGroupsByAdminResponse>, I>>(base?: I): QueryGroupsByAdminResponse {
|
|
762
|
-
return QueryGroupsByAdminResponse.fromPartial(base ?? ({} as any));
|
|
763
|
-
},
|
|
764
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupsByAdminResponse>, I>>(object: I): QueryGroupsByAdminResponse {
|
|
765
|
-
const message = createBaseQueryGroupsByAdminResponse();
|
|
766
|
-
message.groups = object.groups?.map((e) => GroupInfo.fromPartial(e)) || [];
|
|
767
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
768
|
-
? PageResponse.fromPartial(object.pagination)
|
|
769
|
-
: undefined;
|
|
770
|
-
return message;
|
|
771
|
-
},
|
|
772
|
-
};
|
|
773
|
-
|
|
774
|
-
function createBaseQueryGroupPoliciesByGroupRequest(): QueryGroupPoliciesByGroupRequest {
|
|
775
|
-
return { groupId: 0, pagination: undefined };
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
export const QueryGroupPoliciesByGroupRequest: MessageFns<QueryGroupPoliciesByGroupRequest> = {
|
|
779
|
-
encode(message: QueryGroupPoliciesByGroupRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
780
|
-
if (message.groupId !== 0) {
|
|
781
|
-
writer.uint32(8).uint64(message.groupId);
|
|
782
|
-
}
|
|
783
|
-
if (message.pagination !== undefined) {
|
|
784
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
785
|
-
}
|
|
786
|
-
return writer;
|
|
787
|
-
},
|
|
788
|
-
|
|
789
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupRequest {
|
|
790
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
791
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
792
|
-
const message = createBaseQueryGroupPoliciesByGroupRequest();
|
|
793
|
-
while (reader.pos < end) {
|
|
794
|
-
const tag = reader.uint32();
|
|
795
|
-
switch (tag >>> 3) {
|
|
796
|
-
case 1: {
|
|
797
|
-
if (tag !== 8) {
|
|
798
|
-
break;
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
message.groupId = longToNumber(reader.uint64());
|
|
802
|
-
continue;
|
|
803
|
-
}
|
|
804
|
-
case 2: {
|
|
805
|
-
if (tag !== 18) {
|
|
806
|
-
break;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
810
|
-
continue;
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
814
|
-
break;
|
|
815
|
-
}
|
|
816
|
-
reader.skip(tag & 7);
|
|
817
|
-
}
|
|
818
|
-
return message;
|
|
819
|
-
},
|
|
820
|
-
|
|
821
|
-
fromJSON(object: any): QueryGroupPoliciesByGroupRequest {
|
|
822
|
-
return {
|
|
823
|
-
groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0,
|
|
824
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
825
|
-
};
|
|
826
|
-
},
|
|
827
|
-
|
|
828
|
-
toJSON(message: QueryGroupPoliciesByGroupRequest): unknown {
|
|
829
|
-
const obj: any = {};
|
|
830
|
-
if (message.groupId !== 0) {
|
|
831
|
-
obj.groupId = Math.round(message.groupId);
|
|
832
|
-
}
|
|
833
|
-
if (message.pagination !== undefined) {
|
|
834
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
835
|
-
}
|
|
836
|
-
return obj;
|
|
837
|
-
},
|
|
838
|
-
|
|
839
|
-
create<I extends Exact<DeepPartial<QueryGroupPoliciesByGroupRequest>, I>>(
|
|
840
|
-
base?: I,
|
|
841
|
-
): QueryGroupPoliciesByGroupRequest {
|
|
842
|
-
return QueryGroupPoliciesByGroupRequest.fromPartial(base ?? ({} as any));
|
|
843
|
-
},
|
|
844
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupPoliciesByGroupRequest>, I>>(
|
|
845
|
-
object: I,
|
|
846
|
-
): QueryGroupPoliciesByGroupRequest {
|
|
847
|
-
const message = createBaseQueryGroupPoliciesByGroupRequest();
|
|
848
|
-
message.groupId = object.groupId ?? 0;
|
|
849
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
850
|
-
? PageRequest.fromPartial(object.pagination)
|
|
851
|
-
: undefined;
|
|
852
|
-
return message;
|
|
853
|
-
},
|
|
854
|
-
};
|
|
855
|
-
|
|
856
|
-
function createBaseQueryGroupPoliciesByGroupResponse(): QueryGroupPoliciesByGroupResponse {
|
|
857
|
-
return { groupPolicies: [], pagination: undefined };
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
export const QueryGroupPoliciesByGroupResponse: MessageFns<QueryGroupPoliciesByGroupResponse> = {
|
|
861
|
-
encode(message: QueryGroupPoliciesByGroupResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
862
|
-
for (const v of message.groupPolicies) {
|
|
863
|
-
GroupPolicyInfo.encode(v!, writer.uint32(10).fork()).join();
|
|
864
|
-
}
|
|
865
|
-
if (message.pagination !== undefined) {
|
|
866
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
867
|
-
}
|
|
868
|
-
return writer;
|
|
869
|
-
},
|
|
870
|
-
|
|
871
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByGroupResponse {
|
|
872
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
873
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
874
|
-
const message = createBaseQueryGroupPoliciesByGroupResponse();
|
|
875
|
-
while (reader.pos < end) {
|
|
876
|
-
const tag = reader.uint32();
|
|
877
|
-
switch (tag >>> 3) {
|
|
878
|
-
case 1: {
|
|
879
|
-
if (tag !== 10) {
|
|
880
|
-
break;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32()));
|
|
884
|
-
continue;
|
|
885
|
-
}
|
|
886
|
-
case 2: {
|
|
887
|
-
if (tag !== 18) {
|
|
888
|
-
break;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
892
|
-
continue;
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
896
|
-
break;
|
|
897
|
-
}
|
|
898
|
-
reader.skip(tag & 7);
|
|
899
|
-
}
|
|
900
|
-
return message;
|
|
901
|
-
},
|
|
902
|
-
|
|
903
|
-
fromJSON(object: any): QueryGroupPoliciesByGroupResponse {
|
|
904
|
-
return {
|
|
905
|
-
groupPolicies: globalThis.Array.isArray(object?.groupPolicies)
|
|
906
|
-
? object.groupPolicies.map((e: any) => GroupPolicyInfo.fromJSON(e))
|
|
907
|
-
: [],
|
|
908
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
909
|
-
};
|
|
910
|
-
},
|
|
911
|
-
|
|
912
|
-
toJSON(message: QueryGroupPoliciesByGroupResponse): unknown {
|
|
913
|
-
const obj: any = {};
|
|
914
|
-
if (message.groupPolicies?.length) {
|
|
915
|
-
obj.groupPolicies = message.groupPolicies.map((e) => GroupPolicyInfo.toJSON(e));
|
|
916
|
-
}
|
|
917
|
-
if (message.pagination !== undefined) {
|
|
918
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
919
|
-
}
|
|
920
|
-
return obj;
|
|
921
|
-
},
|
|
922
|
-
|
|
923
|
-
create<I extends Exact<DeepPartial<QueryGroupPoliciesByGroupResponse>, I>>(
|
|
924
|
-
base?: I,
|
|
925
|
-
): QueryGroupPoliciesByGroupResponse {
|
|
926
|
-
return QueryGroupPoliciesByGroupResponse.fromPartial(base ?? ({} as any));
|
|
927
|
-
},
|
|
928
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupPoliciesByGroupResponse>, I>>(
|
|
929
|
-
object: I,
|
|
930
|
-
): QueryGroupPoliciesByGroupResponse {
|
|
931
|
-
const message = createBaseQueryGroupPoliciesByGroupResponse();
|
|
932
|
-
message.groupPolicies = object.groupPolicies?.map((e) => GroupPolicyInfo.fromPartial(e)) || [];
|
|
933
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
934
|
-
? PageResponse.fromPartial(object.pagination)
|
|
935
|
-
: undefined;
|
|
936
|
-
return message;
|
|
937
|
-
},
|
|
938
|
-
};
|
|
939
|
-
|
|
940
|
-
function createBaseQueryGroupPoliciesByAdminRequest(): QueryGroupPoliciesByAdminRequest {
|
|
941
|
-
return { admin: "", pagination: undefined };
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
export const QueryGroupPoliciesByAdminRequest: MessageFns<QueryGroupPoliciesByAdminRequest> = {
|
|
945
|
-
encode(message: QueryGroupPoliciesByAdminRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
946
|
-
if (message.admin !== "") {
|
|
947
|
-
writer.uint32(10).string(message.admin);
|
|
948
|
-
}
|
|
949
|
-
if (message.pagination !== undefined) {
|
|
950
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
951
|
-
}
|
|
952
|
-
return writer;
|
|
953
|
-
},
|
|
954
|
-
|
|
955
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminRequest {
|
|
956
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
957
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
958
|
-
const message = createBaseQueryGroupPoliciesByAdminRequest();
|
|
959
|
-
while (reader.pos < end) {
|
|
960
|
-
const tag = reader.uint32();
|
|
961
|
-
switch (tag >>> 3) {
|
|
962
|
-
case 1: {
|
|
963
|
-
if (tag !== 10) {
|
|
964
|
-
break;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
message.admin = reader.string();
|
|
968
|
-
continue;
|
|
969
|
-
}
|
|
970
|
-
case 2: {
|
|
971
|
-
if (tag !== 18) {
|
|
972
|
-
break;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
976
|
-
continue;
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
980
|
-
break;
|
|
981
|
-
}
|
|
982
|
-
reader.skip(tag & 7);
|
|
983
|
-
}
|
|
984
|
-
return message;
|
|
985
|
-
},
|
|
986
|
-
|
|
987
|
-
fromJSON(object: any): QueryGroupPoliciesByAdminRequest {
|
|
988
|
-
return {
|
|
989
|
-
admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
|
|
990
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
991
|
-
};
|
|
992
|
-
},
|
|
993
|
-
|
|
994
|
-
toJSON(message: QueryGroupPoliciesByAdminRequest): unknown {
|
|
995
|
-
const obj: any = {};
|
|
996
|
-
if (message.admin !== "") {
|
|
997
|
-
obj.admin = message.admin;
|
|
998
|
-
}
|
|
999
|
-
if (message.pagination !== undefined) {
|
|
1000
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
1001
|
-
}
|
|
1002
|
-
return obj;
|
|
1003
|
-
},
|
|
1004
|
-
|
|
1005
|
-
create<I extends Exact<DeepPartial<QueryGroupPoliciesByAdminRequest>, I>>(
|
|
1006
|
-
base?: I,
|
|
1007
|
-
): QueryGroupPoliciesByAdminRequest {
|
|
1008
|
-
return QueryGroupPoliciesByAdminRequest.fromPartial(base ?? ({} as any));
|
|
1009
|
-
},
|
|
1010
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupPoliciesByAdminRequest>, I>>(
|
|
1011
|
-
object: I,
|
|
1012
|
-
): QueryGroupPoliciesByAdminRequest {
|
|
1013
|
-
const message = createBaseQueryGroupPoliciesByAdminRequest();
|
|
1014
|
-
message.admin = object.admin ?? "";
|
|
1015
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1016
|
-
? PageRequest.fromPartial(object.pagination)
|
|
1017
|
-
: undefined;
|
|
1018
|
-
return message;
|
|
1019
|
-
},
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
function createBaseQueryGroupPoliciesByAdminResponse(): QueryGroupPoliciesByAdminResponse {
|
|
1023
|
-
return { groupPolicies: [], pagination: undefined };
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
export const QueryGroupPoliciesByAdminResponse: MessageFns<QueryGroupPoliciesByAdminResponse> = {
|
|
1027
|
-
encode(message: QueryGroupPoliciesByAdminResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1028
|
-
for (const v of message.groupPolicies) {
|
|
1029
|
-
GroupPolicyInfo.encode(v!, writer.uint32(10).fork()).join();
|
|
1030
|
-
}
|
|
1031
|
-
if (message.pagination !== undefined) {
|
|
1032
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
1033
|
-
}
|
|
1034
|
-
return writer;
|
|
1035
|
-
},
|
|
1036
|
-
|
|
1037
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupPoliciesByAdminResponse {
|
|
1038
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1039
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1040
|
-
const message = createBaseQueryGroupPoliciesByAdminResponse();
|
|
1041
|
-
while (reader.pos < end) {
|
|
1042
|
-
const tag = reader.uint32();
|
|
1043
|
-
switch (tag >>> 3) {
|
|
1044
|
-
case 1: {
|
|
1045
|
-
if (tag !== 10) {
|
|
1046
|
-
break;
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32()));
|
|
1050
|
-
continue;
|
|
1051
|
-
}
|
|
1052
|
-
case 2: {
|
|
1053
|
-
if (tag !== 18) {
|
|
1054
|
-
break;
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1058
|
-
continue;
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1062
|
-
break;
|
|
1063
|
-
}
|
|
1064
|
-
reader.skip(tag & 7);
|
|
1065
|
-
}
|
|
1066
|
-
return message;
|
|
1067
|
-
},
|
|
1068
|
-
|
|
1069
|
-
fromJSON(object: any): QueryGroupPoliciesByAdminResponse {
|
|
1070
|
-
return {
|
|
1071
|
-
groupPolicies: globalThis.Array.isArray(object?.groupPolicies)
|
|
1072
|
-
? object.groupPolicies.map((e: any) => GroupPolicyInfo.fromJSON(e))
|
|
1073
|
-
: [],
|
|
1074
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1075
|
-
};
|
|
1076
|
-
},
|
|
1077
|
-
|
|
1078
|
-
toJSON(message: QueryGroupPoliciesByAdminResponse): unknown {
|
|
1079
|
-
const obj: any = {};
|
|
1080
|
-
if (message.groupPolicies?.length) {
|
|
1081
|
-
obj.groupPolicies = message.groupPolicies.map((e) => GroupPolicyInfo.toJSON(e));
|
|
1082
|
-
}
|
|
1083
|
-
if (message.pagination !== undefined) {
|
|
1084
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
1085
|
-
}
|
|
1086
|
-
return obj;
|
|
1087
|
-
},
|
|
1088
|
-
|
|
1089
|
-
create<I extends Exact<DeepPartial<QueryGroupPoliciesByAdminResponse>, I>>(
|
|
1090
|
-
base?: I,
|
|
1091
|
-
): QueryGroupPoliciesByAdminResponse {
|
|
1092
|
-
return QueryGroupPoliciesByAdminResponse.fromPartial(base ?? ({} as any));
|
|
1093
|
-
},
|
|
1094
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupPoliciesByAdminResponse>, I>>(
|
|
1095
|
-
object: I,
|
|
1096
|
-
): QueryGroupPoliciesByAdminResponse {
|
|
1097
|
-
const message = createBaseQueryGroupPoliciesByAdminResponse();
|
|
1098
|
-
message.groupPolicies = object.groupPolicies?.map((e) => GroupPolicyInfo.fromPartial(e)) || [];
|
|
1099
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1100
|
-
? PageResponse.fromPartial(object.pagination)
|
|
1101
|
-
: undefined;
|
|
1102
|
-
return message;
|
|
1103
|
-
},
|
|
1104
|
-
};
|
|
1105
|
-
|
|
1106
|
-
function createBaseQueryProposalRequest(): QueryProposalRequest {
|
|
1107
|
-
return { proposalId: 0 };
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
export const QueryProposalRequest: MessageFns<QueryProposalRequest> = {
|
|
1111
|
-
encode(message: QueryProposalRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1112
|
-
if (message.proposalId !== 0) {
|
|
1113
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
1114
|
-
}
|
|
1115
|
-
return writer;
|
|
1116
|
-
},
|
|
1117
|
-
|
|
1118
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalRequest {
|
|
1119
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1120
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1121
|
-
const message = createBaseQueryProposalRequest();
|
|
1122
|
-
while (reader.pos < end) {
|
|
1123
|
-
const tag = reader.uint32();
|
|
1124
|
-
switch (tag >>> 3) {
|
|
1125
|
-
case 1: {
|
|
1126
|
-
if (tag !== 8) {
|
|
1127
|
-
break;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
1131
|
-
continue;
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1135
|
-
break;
|
|
1136
|
-
}
|
|
1137
|
-
reader.skip(tag & 7);
|
|
1138
|
-
}
|
|
1139
|
-
return message;
|
|
1140
|
-
},
|
|
1141
|
-
|
|
1142
|
-
fromJSON(object: any): QueryProposalRequest {
|
|
1143
|
-
return { proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0 };
|
|
1144
|
-
},
|
|
1145
|
-
|
|
1146
|
-
toJSON(message: QueryProposalRequest): unknown {
|
|
1147
|
-
const obj: any = {};
|
|
1148
|
-
if (message.proposalId !== 0) {
|
|
1149
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
1150
|
-
}
|
|
1151
|
-
return obj;
|
|
1152
|
-
},
|
|
1153
|
-
|
|
1154
|
-
create<I extends Exact<DeepPartial<QueryProposalRequest>, I>>(base?: I): QueryProposalRequest {
|
|
1155
|
-
return QueryProposalRequest.fromPartial(base ?? ({} as any));
|
|
1156
|
-
},
|
|
1157
|
-
fromPartial<I extends Exact<DeepPartial<QueryProposalRequest>, I>>(object: I): QueryProposalRequest {
|
|
1158
|
-
const message = createBaseQueryProposalRequest();
|
|
1159
|
-
message.proposalId = object.proposalId ?? 0;
|
|
1160
|
-
return message;
|
|
1161
|
-
},
|
|
1162
|
-
};
|
|
1163
|
-
|
|
1164
|
-
function createBaseQueryProposalResponse(): QueryProposalResponse {
|
|
1165
|
-
return { proposal: undefined };
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
export const QueryProposalResponse: MessageFns<QueryProposalResponse> = {
|
|
1169
|
-
encode(message: QueryProposalResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1170
|
-
if (message.proposal !== undefined) {
|
|
1171
|
-
Proposal.encode(message.proposal, writer.uint32(10).fork()).join();
|
|
1172
|
-
}
|
|
1173
|
-
return writer;
|
|
1174
|
-
},
|
|
1175
|
-
|
|
1176
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalResponse {
|
|
1177
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1178
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1179
|
-
const message = createBaseQueryProposalResponse();
|
|
1180
|
-
while (reader.pos < end) {
|
|
1181
|
-
const tag = reader.uint32();
|
|
1182
|
-
switch (tag >>> 3) {
|
|
1183
|
-
case 1: {
|
|
1184
|
-
if (tag !== 10) {
|
|
1185
|
-
break;
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
message.proposal = Proposal.decode(reader, reader.uint32());
|
|
1189
|
-
continue;
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1193
|
-
break;
|
|
1194
|
-
}
|
|
1195
|
-
reader.skip(tag & 7);
|
|
1196
|
-
}
|
|
1197
|
-
return message;
|
|
1198
|
-
},
|
|
1199
|
-
|
|
1200
|
-
fromJSON(object: any): QueryProposalResponse {
|
|
1201
|
-
return { proposal: isSet(object.proposal) ? Proposal.fromJSON(object.proposal) : undefined };
|
|
1202
|
-
},
|
|
1203
|
-
|
|
1204
|
-
toJSON(message: QueryProposalResponse): unknown {
|
|
1205
|
-
const obj: any = {};
|
|
1206
|
-
if (message.proposal !== undefined) {
|
|
1207
|
-
obj.proposal = Proposal.toJSON(message.proposal);
|
|
1208
|
-
}
|
|
1209
|
-
return obj;
|
|
1210
|
-
},
|
|
1211
|
-
|
|
1212
|
-
create<I extends Exact<DeepPartial<QueryProposalResponse>, I>>(base?: I): QueryProposalResponse {
|
|
1213
|
-
return QueryProposalResponse.fromPartial(base ?? ({} as any));
|
|
1214
|
-
},
|
|
1215
|
-
fromPartial<I extends Exact<DeepPartial<QueryProposalResponse>, I>>(object: I): QueryProposalResponse {
|
|
1216
|
-
const message = createBaseQueryProposalResponse();
|
|
1217
|
-
message.proposal = (object.proposal !== undefined && object.proposal !== null)
|
|
1218
|
-
? Proposal.fromPartial(object.proposal)
|
|
1219
|
-
: undefined;
|
|
1220
|
-
return message;
|
|
1221
|
-
},
|
|
1222
|
-
};
|
|
1223
|
-
|
|
1224
|
-
function createBaseQueryProposalsByGroupPolicyRequest(): QueryProposalsByGroupPolicyRequest {
|
|
1225
|
-
return { address: "", pagination: undefined };
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
export const QueryProposalsByGroupPolicyRequest: MessageFns<QueryProposalsByGroupPolicyRequest> = {
|
|
1229
|
-
encode(message: QueryProposalsByGroupPolicyRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1230
|
-
if (message.address !== "") {
|
|
1231
|
-
writer.uint32(10).string(message.address);
|
|
1232
|
-
}
|
|
1233
|
-
if (message.pagination !== undefined) {
|
|
1234
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
1235
|
-
}
|
|
1236
|
-
return writer;
|
|
1237
|
-
},
|
|
1238
|
-
|
|
1239
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyRequest {
|
|
1240
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1241
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1242
|
-
const message = createBaseQueryProposalsByGroupPolicyRequest();
|
|
1243
|
-
while (reader.pos < end) {
|
|
1244
|
-
const tag = reader.uint32();
|
|
1245
|
-
switch (tag >>> 3) {
|
|
1246
|
-
case 1: {
|
|
1247
|
-
if (tag !== 10) {
|
|
1248
|
-
break;
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
message.address = reader.string();
|
|
1252
|
-
continue;
|
|
1253
|
-
}
|
|
1254
|
-
case 2: {
|
|
1255
|
-
if (tag !== 18) {
|
|
1256
|
-
break;
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1260
|
-
continue;
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1264
|
-
break;
|
|
1265
|
-
}
|
|
1266
|
-
reader.skip(tag & 7);
|
|
1267
|
-
}
|
|
1268
|
-
return message;
|
|
1269
|
-
},
|
|
1270
|
-
|
|
1271
|
-
fromJSON(object: any): QueryProposalsByGroupPolicyRequest {
|
|
1272
|
-
return {
|
|
1273
|
-
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
1274
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1275
|
-
};
|
|
1276
|
-
},
|
|
1277
|
-
|
|
1278
|
-
toJSON(message: QueryProposalsByGroupPolicyRequest): unknown {
|
|
1279
|
-
const obj: any = {};
|
|
1280
|
-
if (message.address !== "") {
|
|
1281
|
-
obj.address = message.address;
|
|
1282
|
-
}
|
|
1283
|
-
if (message.pagination !== undefined) {
|
|
1284
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
1285
|
-
}
|
|
1286
|
-
return obj;
|
|
1287
|
-
},
|
|
1288
|
-
|
|
1289
|
-
create<I extends Exact<DeepPartial<QueryProposalsByGroupPolicyRequest>, I>>(
|
|
1290
|
-
base?: I,
|
|
1291
|
-
): QueryProposalsByGroupPolicyRequest {
|
|
1292
|
-
return QueryProposalsByGroupPolicyRequest.fromPartial(base ?? ({} as any));
|
|
1293
|
-
},
|
|
1294
|
-
fromPartial<I extends Exact<DeepPartial<QueryProposalsByGroupPolicyRequest>, I>>(
|
|
1295
|
-
object: I,
|
|
1296
|
-
): QueryProposalsByGroupPolicyRequest {
|
|
1297
|
-
const message = createBaseQueryProposalsByGroupPolicyRequest();
|
|
1298
|
-
message.address = object.address ?? "";
|
|
1299
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1300
|
-
? PageRequest.fromPartial(object.pagination)
|
|
1301
|
-
: undefined;
|
|
1302
|
-
return message;
|
|
1303
|
-
},
|
|
1304
|
-
};
|
|
1305
|
-
|
|
1306
|
-
function createBaseQueryProposalsByGroupPolicyResponse(): QueryProposalsByGroupPolicyResponse {
|
|
1307
|
-
return { proposals: [], pagination: undefined };
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
export const QueryProposalsByGroupPolicyResponse: MessageFns<QueryProposalsByGroupPolicyResponse> = {
|
|
1311
|
-
encode(message: QueryProposalsByGroupPolicyResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1312
|
-
for (const v of message.proposals) {
|
|
1313
|
-
Proposal.encode(v!, writer.uint32(10).fork()).join();
|
|
1314
|
-
}
|
|
1315
|
-
if (message.pagination !== undefined) {
|
|
1316
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
1317
|
-
}
|
|
1318
|
-
return writer;
|
|
1319
|
-
},
|
|
1320
|
-
|
|
1321
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryProposalsByGroupPolicyResponse {
|
|
1322
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1323
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1324
|
-
const message = createBaseQueryProposalsByGroupPolicyResponse();
|
|
1325
|
-
while (reader.pos < end) {
|
|
1326
|
-
const tag = reader.uint32();
|
|
1327
|
-
switch (tag >>> 3) {
|
|
1328
|
-
case 1: {
|
|
1329
|
-
if (tag !== 10) {
|
|
1330
|
-
break;
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
message.proposals.push(Proposal.decode(reader, reader.uint32()));
|
|
1334
|
-
continue;
|
|
1335
|
-
}
|
|
1336
|
-
case 2: {
|
|
1337
|
-
if (tag !== 18) {
|
|
1338
|
-
break;
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1342
|
-
continue;
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1346
|
-
break;
|
|
1347
|
-
}
|
|
1348
|
-
reader.skip(tag & 7);
|
|
1349
|
-
}
|
|
1350
|
-
return message;
|
|
1351
|
-
},
|
|
1352
|
-
|
|
1353
|
-
fromJSON(object: any): QueryProposalsByGroupPolicyResponse {
|
|
1354
|
-
return {
|
|
1355
|
-
proposals: globalThis.Array.isArray(object?.proposals)
|
|
1356
|
-
? object.proposals.map((e: any) => Proposal.fromJSON(e))
|
|
1357
|
-
: [],
|
|
1358
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1359
|
-
};
|
|
1360
|
-
},
|
|
1361
|
-
|
|
1362
|
-
toJSON(message: QueryProposalsByGroupPolicyResponse): unknown {
|
|
1363
|
-
const obj: any = {};
|
|
1364
|
-
if (message.proposals?.length) {
|
|
1365
|
-
obj.proposals = message.proposals.map((e) => Proposal.toJSON(e));
|
|
1366
|
-
}
|
|
1367
|
-
if (message.pagination !== undefined) {
|
|
1368
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
1369
|
-
}
|
|
1370
|
-
return obj;
|
|
1371
|
-
},
|
|
1372
|
-
|
|
1373
|
-
create<I extends Exact<DeepPartial<QueryProposalsByGroupPolicyResponse>, I>>(
|
|
1374
|
-
base?: I,
|
|
1375
|
-
): QueryProposalsByGroupPolicyResponse {
|
|
1376
|
-
return QueryProposalsByGroupPolicyResponse.fromPartial(base ?? ({} as any));
|
|
1377
|
-
},
|
|
1378
|
-
fromPartial<I extends Exact<DeepPartial<QueryProposalsByGroupPolicyResponse>, I>>(
|
|
1379
|
-
object: I,
|
|
1380
|
-
): QueryProposalsByGroupPolicyResponse {
|
|
1381
|
-
const message = createBaseQueryProposalsByGroupPolicyResponse();
|
|
1382
|
-
message.proposals = object.proposals?.map((e) => Proposal.fromPartial(e)) || [];
|
|
1383
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1384
|
-
? PageResponse.fromPartial(object.pagination)
|
|
1385
|
-
: undefined;
|
|
1386
|
-
return message;
|
|
1387
|
-
},
|
|
1388
|
-
};
|
|
1389
|
-
|
|
1390
|
-
function createBaseQueryVoteByProposalVoterRequest(): QueryVoteByProposalVoterRequest {
|
|
1391
|
-
return { proposalId: 0, voter: "" };
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
export const QueryVoteByProposalVoterRequest: MessageFns<QueryVoteByProposalVoterRequest> = {
|
|
1395
|
-
encode(message: QueryVoteByProposalVoterRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1396
|
-
if (message.proposalId !== 0) {
|
|
1397
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
1398
|
-
}
|
|
1399
|
-
if (message.voter !== "") {
|
|
1400
|
-
writer.uint32(18).string(message.voter);
|
|
1401
|
-
}
|
|
1402
|
-
return writer;
|
|
1403
|
-
},
|
|
1404
|
-
|
|
1405
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterRequest {
|
|
1406
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1407
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1408
|
-
const message = createBaseQueryVoteByProposalVoterRequest();
|
|
1409
|
-
while (reader.pos < end) {
|
|
1410
|
-
const tag = reader.uint32();
|
|
1411
|
-
switch (tag >>> 3) {
|
|
1412
|
-
case 1: {
|
|
1413
|
-
if (tag !== 8) {
|
|
1414
|
-
break;
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
1418
|
-
continue;
|
|
1419
|
-
}
|
|
1420
|
-
case 2: {
|
|
1421
|
-
if (tag !== 18) {
|
|
1422
|
-
break;
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
message.voter = reader.string();
|
|
1426
|
-
continue;
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1430
|
-
break;
|
|
1431
|
-
}
|
|
1432
|
-
reader.skip(tag & 7);
|
|
1433
|
-
}
|
|
1434
|
-
return message;
|
|
1435
|
-
},
|
|
1436
|
-
|
|
1437
|
-
fromJSON(object: any): QueryVoteByProposalVoterRequest {
|
|
1438
|
-
return {
|
|
1439
|
-
proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
|
|
1440
|
-
voter: isSet(object.voter) ? globalThis.String(object.voter) : "",
|
|
1441
|
-
};
|
|
1442
|
-
},
|
|
1443
|
-
|
|
1444
|
-
toJSON(message: QueryVoteByProposalVoterRequest): unknown {
|
|
1445
|
-
const obj: any = {};
|
|
1446
|
-
if (message.proposalId !== 0) {
|
|
1447
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
1448
|
-
}
|
|
1449
|
-
if (message.voter !== "") {
|
|
1450
|
-
obj.voter = message.voter;
|
|
1451
|
-
}
|
|
1452
|
-
return obj;
|
|
1453
|
-
},
|
|
1454
|
-
|
|
1455
|
-
create<I extends Exact<DeepPartial<QueryVoteByProposalVoterRequest>, I>>(base?: I): QueryVoteByProposalVoterRequest {
|
|
1456
|
-
return QueryVoteByProposalVoterRequest.fromPartial(base ?? ({} as any));
|
|
1457
|
-
},
|
|
1458
|
-
fromPartial<I extends Exact<DeepPartial<QueryVoteByProposalVoterRequest>, I>>(
|
|
1459
|
-
object: I,
|
|
1460
|
-
): QueryVoteByProposalVoterRequest {
|
|
1461
|
-
const message = createBaseQueryVoteByProposalVoterRequest();
|
|
1462
|
-
message.proposalId = object.proposalId ?? 0;
|
|
1463
|
-
message.voter = object.voter ?? "";
|
|
1464
|
-
return message;
|
|
1465
|
-
},
|
|
1466
|
-
};
|
|
1467
|
-
|
|
1468
|
-
function createBaseQueryVoteByProposalVoterResponse(): QueryVoteByProposalVoterResponse {
|
|
1469
|
-
return { vote: undefined };
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
export const QueryVoteByProposalVoterResponse: MessageFns<QueryVoteByProposalVoterResponse> = {
|
|
1473
|
-
encode(message: QueryVoteByProposalVoterResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1474
|
-
if (message.vote !== undefined) {
|
|
1475
|
-
Vote.encode(message.vote, writer.uint32(10).fork()).join();
|
|
1476
|
-
}
|
|
1477
|
-
return writer;
|
|
1478
|
-
},
|
|
1479
|
-
|
|
1480
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryVoteByProposalVoterResponse {
|
|
1481
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1482
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1483
|
-
const message = createBaseQueryVoteByProposalVoterResponse();
|
|
1484
|
-
while (reader.pos < end) {
|
|
1485
|
-
const tag = reader.uint32();
|
|
1486
|
-
switch (tag >>> 3) {
|
|
1487
|
-
case 1: {
|
|
1488
|
-
if (tag !== 10) {
|
|
1489
|
-
break;
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1492
|
-
message.vote = Vote.decode(reader, reader.uint32());
|
|
1493
|
-
continue;
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1497
|
-
break;
|
|
1498
|
-
}
|
|
1499
|
-
reader.skip(tag & 7);
|
|
1500
|
-
}
|
|
1501
|
-
return message;
|
|
1502
|
-
},
|
|
1503
|
-
|
|
1504
|
-
fromJSON(object: any): QueryVoteByProposalVoterResponse {
|
|
1505
|
-
return { vote: isSet(object.vote) ? Vote.fromJSON(object.vote) : undefined };
|
|
1506
|
-
},
|
|
1507
|
-
|
|
1508
|
-
toJSON(message: QueryVoteByProposalVoterResponse): unknown {
|
|
1509
|
-
const obj: any = {};
|
|
1510
|
-
if (message.vote !== undefined) {
|
|
1511
|
-
obj.vote = Vote.toJSON(message.vote);
|
|
1512
|
-
}
|
|
1513
|
-
return obj;
|
|
1514
|
-
},
|
|
1515
|
-
|
|
1516
|
-
create<I extends Exact<DeepPartial<QueryVoteByProposalVoterResponse>, I>>(
|
|
1517
|
-
base?: I,
|
|
1518
|
-
): QueryVoteByProposalVoterResponse {
|
|
1519
|
-
return QueryVoteByProposalVoterResponse.fromPartial(base ?? ({} as any));
|
|
1520
|
-
},
|
|
1521
|
-
fromPartial<I extends Exact<DeepPartial<QueryVoteByProposalVoterResponse>, I>>(
|
|
1522
|
-
object: I,
|
|
1523
|
-
): QueryVoteByProposalVoterResponse {
|
|
1524
|
-
const message = createBaseQueryVoteByProposalVoterResponse();
|
|
1525
|
-
message.vote = (object.vote !== undefined && object.vote !== null) ? Vote.fromPartial(object.vote) : undefined;
|
|
1526
|
-
return message;
|
|
1527
|
-
},
|
|
1528
|
-
};
|
|
1529
|
-
|
|
1530
|
-
function createBaseQueryVotesByProposalRequest(): QueryVotesByProposalRequest {
|
|
1531
|
-
return { proposalId: 0, pagination: undefined };
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
export const QueryVotesByProposalRequest: MessageFns<QueryVotesByProposalRequest> = {
|
|
1535
|
-
encode(message: QueryVotesByProposalRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1536
|
-
if (message.proposalId !== 0) {
|
|
1537
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
1538
|
-
}
|
|
1539
|
-
if (message.pagination !== undefined) {
|
|
1540
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
1541
|
-
}
|
|
1542
|
-
return writer;
|
|
1543
|
-
},
|
|
1544
|
-
|
|
1545
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalRequest {
|
|
1546
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1547
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1548
|
-
const message = createBaseQueryVotesByProposalRequest();
|
|
1549
|
-
while (reader.pos < end) {
|
|
1550
|
-
const tag = reader.uint32();
|
|
1551
|
-
switch (tag >>> 3) {
|
|
1552
|
-
case 1: {
|
|
1553
|
-
if (tag !== 8) {
|
|
1554
|
-
break;
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
1558
|
-
continue;
|
|
1559
|
-
}
|
|
1560
|
-
case 2: {
|
|
1561
|
-
if (tag !== 18) {
|
|
1562
|
-
break;
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1566
|
-
continue;
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1570
|
-
break;
|
|
1571
|
-
}
|
|
1572
|
-
reader.skip(tag & 7);
|
|
1573
|
-
}
|
|
1574
|
-
return message;
|
|
1575
|
-
},
|
|
1576
|
-
|
|
1577
|
-
fromJSON(object: any): QueryVotesByProposalRequest {
|
|
1578
|
-
return {
|
|
1579
|
-
proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
|
|
1580
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1581
|
-
};
|
|
1582
|
-
},
|
|
1583
|
-
|
|
1584
|
-
toJSON(message: QueryVotesByProposalRequest): unknown {
|
|
1585
|
-
const obj: any = {};
|
|
1586
|
-
if (message.proposalId !== 0) {
|
|
1587
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
1588
|
-
}
|
|
1589
|
-
if (message.pagination !== undefined) {
|
|
1590
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
1591
|
-
}
|
|
1592
|
-
return obj;
|
|
1593
|
-
},
|
|
1594
|
-
|
|
1595
|
-
create<I extends Exact<DeepPartial<QueryVotesByProposalRequest>, I>>(base?: I): QueryVotesByProposalRequest {
|
|
1596
|
-
return QueryVotesByProposalRequest.fromPartial(base ?? ({} as any));
|
|
1597
|
-
},
|
|
1598
|
-
fromPartial<I extends Exact<DeepPartial<QueryVotesByProposalRequest>, I>>(object: I): QueryVotesByProposalRequest {
|
|
1599
|
-
const message = createBaseQueryVotesByProposalRequest();
|
|
1600
|
-
message.proposalId = object.proposalId ?? 0;
|
|
1601
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1602
|
-
? PageRequest.fromPartial(object.pagination)
|
|
1603
|
-
: undefined;
|
|
1604
|
-
return message;
|
|
1605
|
-
},
|
|
1606
|
-
};
|
|
1607
|
-
|
|
1608
|
-
function createBaseQueryVotesByProposalResponse(): QueryVotesByProposalResponse {
|
|
1609
|
-
return { votes: [], pagination: undefined };
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
export const QueryVotesByProposalResponse: MessageFns<QueryVotesByProposalResponse> = {
|
|
1613
|
-
encode(message: QueryVotesByProposalResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1614
|
-
for (const v of message.votes) {
|
|
1615
|
-
Vote.encode(v!, writer.uint32(10).fork()).join();
|
|
1616
|
-
}
|
|
1617
|
-
if (message.pagination !== undefined) {
|
|
1618
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
1619
|
-
}
|
|
1620
|
-
return writer;
|
|
1621
|
-
},
|
|
1622
|
-
|
|
1623
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByProposalResponse {
|
|
1624
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1625
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1626
|
-
const message = createBaseQueryVotesByProposalResponse();
|
|
1627
|
-
while (reader.pos < end) {
|
|
1628
|
-
const tag = reader.uint32();
|
|
1629
|
-
switch (tag >>> 3) {
|
|
1630
|
-
case 1: {
|
|
1631
|
-
if (tag !== 10) {
|
|
1632
|
-
break;
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
message.votes.push(Vote.decode(reader, reader.uint32()));
|
|
1636
|
-
continue;
|
|
1637
|
-
}
|
|
1638
|
-
case 2: {
|
|
1639
|
-
if (tag !== 18) {
|
|
1640
|
-
break;
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1644
|
-
continue;
|
|
1645
|
-
}
|
|
1646
|
-
}
|
|
1647
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1648
|
-
break;
|
|
1649
|
-
}
|
|
1650
|
-
reader.skip(tag & 7);
|
|
1651
|
-
}
|
|
1652
|
-
return message;
|
|
1653
|
-
},
|
|
1654
|
-
|
|
1655
|
-
fromJSON(object: any): QueryVotesByProposalResponse {
|
|
1656
|
-
return {
|
|
1657
|
-
votes: globalThis.Array.isArray(object?.votes) ? object.votes.map((e: any) => Vote.fromJSON(e)) : [],
|
|
1658
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1659
|
-
};
|
|
1660
|
-
},
|
|
1661
|
-
|
|
1662
|
-
toJSON(message: QueryVotesByProposalResponse): unknown {
|
|
1663
|
-
const obj: any = {};
|
|
1664
|
-
if (message.votes?.length) {
|
|
1665
|
-
obj.votes = message.votes.map((e) => Vote.toJSON(e));
|
|
1666
|
-
}
|
|
1667
|
-
if (message.pagination !== undefined) {
|
|
1668
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
1669
|
-
}
|
|
1670
|
-
return obj;
|
|
1671
|
-
},
|
|
1672
|
-
|
|
1673
|
-
create<I extends Exact<DeepPartial<QueryVotesByProposalResponse>, I>>(base?: I): QueryVotesByProposalResponse {
|
|
1674
|
-
return QueryVotesByProposalResponse.fromPartial(base ?? ({} as any));
|
|
1675
|
-
},
|
|
1676
|
-
fromPartial<I extends Exact<DeepPartial<QueryVotesByProposalResponse>, I>>(object: I): QueryVotesByProposalResponse {
|
|
1677
|
-
const message = createBaseQueryVotesByProposalResponse();
|
|
1678
|
-
message.votes = object.votes?.map((e) => Vote.fromPartial(e)) || [];
|
|
1679
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1680
|
-
? PageResponse.fromPartial(object.pagination)
|
|
1681
|
-
: undefined;
|
|
1682
|
-
return message;
|
|
1683
|
-
},
|
|
1684
|
-
};
|
|
1685
|
-
|
|
1686
|
-
function createBaseQueryVotesByVoterRequest(): QueryVotesByVoterRequest {
|
|
1687
|
-
return { voter: "", pagination: undefined };
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
export const QueryVotesByVoterRequest: MessageFns<QueryVotesByVoterRequest> = {
|
|
1691
|
-
encode(message: QueryVotesByVoterRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1692
|
-
if (message.voter !== "") {
|
|
1693
|
-
writer.uint32(10).string(message.voter);
|
|
1694
|
-
}
|
|
1695
|
-
if (message.pagination !== undefined) {
|
|
1696
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
1697
|
-
}
|
|
1698
|
-
return writer;
|
|
1699
|
-
},
|
|
1700
|
-
|
|
1701
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterRequest {
|
|
1702
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1703
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1704
|
-
const message = createBaseQueryVotesByVoterRequest();
|
|
1705
|
-
while (reader.pos < end) {
|
|
1706
|
-
const tag = reader.uint32();
|
|
1707
|
-
switch (tag >>> 3) {
|
|
1708
|
-
case 1: {
|
|
1709
|
-
if (tag !== 10) {
|
|
1710
|
-
break;
|
|
1711
|
-
}
|
|
1712
|
-
|
|
1713
|
-
message.voter = reader.string();
|
|
1714
|
-
continue;
|
|
1715
|
-
}
|
|
1716
|
-
case 2: {
|
|
1717
|
-
if (tag !== 18) {
|
|
1718
|
-
break;
|
|
1719
|
-
}
|
|
1720
|
-
|
|
1721
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1722
|
-
continue;
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1725
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1726
|
-
break;
|
|
1727
|
-
}
|
|
1728
|
-
reader.skip(tag & 7);
|
|
1729
|
-
}
|
|
1730
|
-
return message;
|
|
1731
|
-
},
|
|
1732
|
-
|
|
1733
|
-
fromJSON(object: any): QueryVotesByVoterRequest {
|
|
1734
|
-
return {
|
|
1735
|
-
voter: isSet(object.voter) ? globalThis.String(object.voter) : "",
|
|
1736
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1737
|
-
};
|
|
1738
|
-
},
|
|
1739
|
-
|
|
1740
|
-
toJSON(message: QueryVotesByVoterRequest): unknown {
|
|
1741
|
-
const obj: any = {};
|
|
1742
|
-
if (message.voter !== "") {
|
|
1743
|
-
obj.voter = message.voter;
|
|
1744
|
-
}
|
|
1745
|
-
if (message.pagination !== undefined) {
|
|
1746
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
1747
|
-
}
|
|
1748
|
-
return obj;
|
|
1749
|
-
},
|
|
1750
|
-
|
|
1751
|
-
create<I extends Exact<DeepPartial<QueryVotesByVoterRequest>, I>>(base?: I): QueryVotesByVoterRequest {
|
|
1752
|
-
return QueryVotesByVoterRequest.fromPartial(base ?? ({} as any));
|
|
1753
|
-
},
|
|
1754
|
-
fromPartial<I extends Exact<DeepPartial<QueryVotesByVoterRequest>, I>>(object: I): QueryVotesByVoterRequest {
|
|
1755
|
-
const message = createBaseQueryVotesByVoterRequest();
|
|
1756
|
-
message.voter = object.voter ?? "";
|
|
1757
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1758
|
-
? PageRequest.fromPartial(object.pagination)
|
|
1759
|
-
: undefined;
|
|
1760
|
-
return message;
|
|
1761
|
-
},
|
|
1762
|
-
};
|
|
1763
|
-
|
|
1764
|
-
function createBaseQueryVotesByVoterResponse(): QueryVotesByVoterResponse {
|
|
1765
|
-
return { votes: [], pagination: undefined };
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
export const QueryVotesByVoterResponse: MessageFns<QueryVotesByVoterResponse> = {
|
|
1769
|
-
encode(message: QueryVotesByVoterResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1770
|
-
for (const v of message.votes) {
|
|
1771
|
-
Vote.encode(v!, writer.uint32(10).fork()).join();
|
|
1772
|
-
}
|
|
1773
|
-
if (message.pagination !== undefined) {
|
|
1774
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
1775
|
-
}
|
|
1776
|
-
return writer;
|
|
1777
|
-
},
|
|
1778
|
-
|
|
1779
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryVotesByVoterResponse {
|
|
1780
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1781
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1782
|
-
const message = createBaseQueryVotesByVoterResponse();
|
|
1783
|
-
while (reader.pos < end) {
|
|
1784
|
-
const tag = reader.uint32();
|
|
1785
|
-
switch (tag >>> 3) {
|
|
1786
|
-
case 1: {
|
|
1787
|
-
if (tag !== 10) {
|
|
1788
|
-
break;
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
message.votes.push(Vote.decode(reader, reader.uint32()));
|
|
1792
|
-
continue;
|
|
1793
|
-
}
|
|
1794
|
-
case 2: {
|
|
1795
|
-
if (tag !== 18) {
|
|
1796
|
-
break;
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1800
|
-
continue;
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1804
|
-
break;
|
|
1805
|
-
}
|
|
1806
|
-
reader.skip(tag & 7);
|
|
1807
|
-
}
|
|
1808
|
-
return message;
|
|
1809
|
-
},
|
|
1810
|
-
|
|
1811
|
-
fromJSON(object: any): QueryVotesByVoterResponse {
|
|
1812
|
-
return {
|
|
1813
|
-
votes: globalThis.Array.isArray(object?.votes) ? object.votes.map((e: any) => Vote.fromJSON(e)) : [],
|
|
1814
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1815
|
-
};
|
|
1816
|
-
},
|
|
1817
|
-
|
|
1818
|
-
toJSON(message: QueryVotesByVoterResponse): unknown {
|
|
1819
|
-
const obj: any = {};
|
|
1820
|
-
if (message.votes?.length) {
|
|
1821
|
-
obj.votes = message.votes.map((e) => Vote.toJSON(e));
|
|
1822
|
-
}
|
|
1823
|
-
if (message.pagination !== undefined) {
|
|
1824
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
1825
|
-
}
|
|
1826
|
-
return obj;
|
|
1827
|
-
},
|
|
1828
|
-
|
|
1829
|
-
create<I extends Exact<DeepPartial<QueryVotesByVoterResponse>, I>>(base?: I): QueryVotesByVoterResponse {
|
|
1830
|
-
return QueryVotesByVoterResponse.fromPartial(base ?? ({} as any));
|
|
1831
|
-
},
|
|
1832
|
-
fromPartial<I extends Exact<DeepPartial<QueryVotesByVoterResponse>, I>>(object: I): QueryVotesByVoterResponse {
|
|
1833
|
-
const message = createBaseQueryVotesByVoterResponse();
|
|
1834
|
-
message.votes = object.votes?.map((e) => Vote.fromPartial(e)) || [];
|
|
1835
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1836
|
-
? PageResponse.fromPartial(object.pagination)
|
|
1837
|
-
: undefined;
|
|
1838
|
-
return message;
|
|
1839
|
-
},
|
|
1840
|
-
};
|
|
1841
|
-
|
|
1842
|
-
function createBaseQueryGroupsByMemberRequest(): QueryGroupsByMemberRequest {
|
|
1843
|
-
return { address: "", pagination: undefined };
|
|
1844
|
-
}
|
|
1845
|
-
|
|
1846
|
-
export const QueryGroupsByMemberRequest: MessageFns<QueryGroupsByMemberRequest> = {
|
|
1847
|
-
encode(message: QueryGroupsByMemberRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1848
|
-
if (message.address !== "") {
|
|
1849
|
-
writer.uint32(10).string(message.address);
|
|
1850
|
-
}
|
|
1851
|
-
if (message.pagination !== undefined) {
|
|
1852
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
1853
|
-
}
|
|
1854
|
-
return writer;
|
|
1855
|
-
},
|
|
1856
|
-
|
|
1857
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberRequest {
|
|
1858
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1859
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1860
|
-
const message = createBaseQueryGroupsByMemberRequest();
|
|
1861
|
-
while (reader.pos < end) {
|
|
1862
|
-
const tag = reader.uint32();
|
|
1863
|
-
switch (tag >>> 3) {
|
|
1864
|
-
case 1: {
|
|
1865
|
-
if (tag !== 10) {
|
|
1866
|
-
break;
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
message.address = reader.string();
|
|
1870
|
-
continue;
|
|
1871
|
-
}
|
|
1872
|
-
case 2: {
|
|
1873
|
-
if (tag !== 18) {
|
|
1874
|
-
break;
|
|
1875
|
-
}
|
|
1876
|
-
|
|
1877
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1878
|
-
continue;
|
|
1879
|
-
}
|
|
1880
|
-
}
|
|
1881
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1882
|
-
break;
|
|
1883
|
-
}
|
|
1884
|
-
reader.skip(tag & 7);
|
|
1885
|
-
}
|
|
1886
|
-
return message;
|
|
1887
|
-
},
|
|
1888
|
-
|
|
1889
|
-
fromJSON(object: any): QueryGroupsByMemberRequest {
|
|
1890
|
-
return {
|
|
1891
|
-
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
1892
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1893
|
-
};
|
|
1894
|
-
},
|
|
1895
|
-
|
|
1896
|
-
toJSON(message: QueryGroupsByMemberRequest): unknown {
|
|
1897
|
-
const obj: any = {};
|
|
1898
|
-
if (message.address !== "") {
|
|
1899
|
-
obj.address = message.address;
|
|
1900
|
-
}
|
|
1901
|
-
if (message.pagination !== undefined) {
|
|
1902
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
1903
|
-
}
|
|
1904
|
-
return obj;
|
|
1905
|
-
},
|
|
1906
|
-
|
|
1907
|
-
create<I extends Exact<DeepPartial<QueryGroupsByMemberRequest>, I>>(base?: I): QueryGroupsByMemberRequest {
|
|
1908
|
-
return QueryGroupsByMemberRequest.fromPartial(base ?? ({} as any));
|
|
1909
|
-
},
|
|
1910
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupsByMemberRequest>, I>>(object: I): QueryGroupsByMemberRequest {
|
|
1911
|
-
const message = createBaseQueryGroupsByMemberRequest();
|
|
1912
|
-
message.address = object.address ?? "";
|
|
1913
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1914
|
-
? PageRequest.fromPartial(object.pagination)
|
|
1915
|
-
: undefined;
|
|
1916
|
-
return message;
|
|
1917
|
-
},
|
|
1918
|
-
};
|
|
1919
|
-
|
|
1920
|
-
function createBaseQueryGroupsByMemberResponse(): QueryGroupsByMemberResponse {
|
|
1921
|
-
return { groups: [], pagination: undefined };
|
|
1922
|
-
}
|
|
1923
|
-
|
|
1924
|
-
export const QueryGroupsByMemberResponse: MessageFns<QueryGroupsByMemberResponse> = {
|
|
1925
|
-
encode(message: QueryGroupsByMemberResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1926
|
-
for (const v of message.groups) {
|
|
1927
|
-
GroupInfo.encode(v!, writer.uint32(10).fork()).join();
|
|
1928
|
-
}
|
|
1929
|
-
if (message.pagination !== undefined) {
|
|
1930
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
1931
|
-
}
|
|
1932
|
-
return writer;
|
|
1933
|
-
},
|
|
1934
|
-
|
|
1935
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsByMemberResponse {
|
|
1936
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1937
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1938
|
-
const message = createBaseQueryGroupsByMemberResponse();
|
|
1939
|
-
while (reader.pos < end) {
|
|
1940
|
-
const tag = reader.uint32();
|
|
1941
|
-
switch (tag >>> 3) {
|
|
1942
|
-
case 1: {
|
|
1943
|
-
if (tag !== 10) {
|
|
1944
|
-
break;
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
message.groups.push(GroupInfo.decode(reader, reader.uint32()));
|
|
1948
|
-
continue;
|
|
1949
|
-
}
|
|
1950
|
-
case 2: {
|
|
1951
|
-
if (tag !== 18) {
|
|
1952
|
-
break;
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1956
|
-
continue;
|
|
1957
|
-
}
|
|
1958
|
-
}
|
|
1959
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1960
|
-
break;
|
|
1961
|
-
}
|
|
1962
|
-
reader.skip(tag & 7);
|
|
1963
|
-
}
|
|
1964
|
-
return message;
|
|
1965
|
-
},
|
|
1966
|
-
|
|
1967
|
-
fromJSON(object: any): QueryGroupsByMemberResponse {
|
|
1968
|
-
return {
|
|
1969
|
-
groups: globalThis.Array.isArray(object?.groups) ? object.groups.map((e: any) => GroupInfo.fromJSON(e)) : [],
|
|
1970
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1971
|
-
};
|
|
1972
|
-
},
|
|
1973
|
-
|
|
1974
|
-
toJSON(message: QueryGroupsByMemberResponse): unknown {
|
|
1975
|
-
const obj: any = {};
|
|
1976
|
-
if (message.groups?.length) {
|
|
1977
|
-
obj.groups = message.groups.map((e) => GroupInfo.toJSON(e));
|
|
1978
|
-
}
|
|
1979
|
-
if (message.pagination !== undefined) {
|
|
1980
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
1981
|
-
}
|
|
1982
|
-
return obj;
|
|
1983
|
-
},
|
|
1984
|
-
|
|
1985
|
-
create<I extends Exact<DeepPartial<QueryGroupsByMemberResponse>, I>>(base?: I): QueryGroupsByMemberResponse {
|
|
1986
|
-
return QueryGroupsByMemberResponse.fromPartial(base ?? ({} as any));
|
|
1987
|
-
},
|
|
1988
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupsByMemberResponse>, I>>(object: I): QueryGroupsByMemberResponse {
|
|
1989
|
-
const message = createBaseQueryGroupsByMemberResponse();
|
|
1990
|
-
message.groups = object.groups?.map((e) => GroupInfo.fromPartial(e)) || [];
|
|
1991
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1992
|
-
? PageResponse.fromPartial(object.pagination)
|
|
1993
|
-
: undefined;
|
|
1994
|
-
return message;
|
|
1995
|
-
},
|
|
1996
|
-
};
|
|
1997
|
-
|
|
1998
|
-
function createBaseQueryTallyResultRequest(): QueryTallyResultRequest {
|
|
1999
|
-
return { proposalId: 0 };
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
|
-
export const QueryTallyResultRequest: MessageFns<QueryTallyResultRequest> = {
|
|
2003
|
-
encode(message: QueryTallyResultRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2004
|
-
if (message.proposalId !== 0) {
|
|
2005
|
-
writer.uint32(8).uint64(message.proposalId);
|
|
2006
|
-
}
|
|
2007
|
-
return writer;
|
|
2008
|
-
},
|
|
2009
|
-
|
|
2010
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultRequest {
|
|
2011
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2012
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2013
|
-
const message = createBaseQueryTallyResultRequest();
|
|
2014
|
-
while (reader.pos < end) {
|
|
2015
|
-
const tag = reader.uint32();
|
|
2016
|
-
switch (tag >>> 3) {
|
|
2017
|
-
case 1: {
|
|
2018
|
-
if (tag !== 8) {
|
|
2019
|
-
break;
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
message.proposalId = longToNumber(reader.uint64());
|
|
2023
|
-
continue;
|
|
2024
|
-
}
|
|
2025
|
-
}
|
|
2026
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2027
|
-
break;
|
|
2028
|
-
}
|
|
2029
|
-
reader.skip(tag & 7);
|
|
2030
|
-
}
|
|
2031
|
-
return message;
|
|
2032
|
-
},
|
|
2033
|
-
|
|
2034
|
-
fromJSON(object: any): QueryTallyResultRequest {
|
|
2035
|
-
return { proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0 };
|
|
2036
|
-
},
|
|
2037
|
-
|
|
2038
|
-
toJSON(message: QueryTallyResultRequest): unknown {
|
|
2039
|
-
const obj: any = {};
|
|
2040
|
-
if (message.proposalId !== 0) {
|
|
2041
|
-
obj.proposalId = Math.round(message.proposalId);
|
|
2042
|
-
}
|
|
2043
|
-
return obj;
|
|
2044
|
-
},
|
|
2045
|
-
|
|
2046
|
-
create<I extends Exact<DeepPartial<QueryTallyResultRequest>, I>>(base?: I): QueryTallyResultRequest {
|
|
2047
|
-
return QueryTallyResultRequest.fromPartial(base ?? ({} as any));
|
|
2048
|
-
},
|
|
2049
|
-
fromPartial<I extends Exact<DeepPartial<QueryTallyResultRequest>, I>>(object: I): QueryTallyResultRequest {
|
|
2050
|
-
const message = createBaseQueryTallyResultRequest();
|
|
2051
|
-
message.proposalId = object.proposalId ?? 0;
|
|
2052
|
-
return message;
|
|
2053
|
-
},
|
|
2054
|
-
};
|
|
2055
|
-
|
|
2056
|
-
function createBaseQueryTallyResultResponse(): QueryTallyResultResponse {
|
|
2057
|
-
return { tally: undefined };
|
|
2058
|
-
}
|
|
2059
|
-
|
|
2060
|
-
export const QueryTallyResultResponse: MessageFns<QueryTallyResultResponse> = {
|
|
2061
|
-
encode(message: QueryTallyResultResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2062
|
-
if (message.tally !== undefined) {
|
|
2063
|
-
TallyResult.encode(message.tally, writer.uint32(10).fork()).join();
|
|
2064
|
-
}
|
|
2065
|
-
return writer;
|
|
2066
|
-
},
|
|
2067
|
-
|
|
2068
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryTallyResultResponse {
|
|
2069
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2070
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2071
|
-
const message = createBaseQueryTallyResultResponse();
|
|
2072
|
-
while (reader.pos < end) {
|
|
2073
|
-
const tag = reader.uint32();
|
|
2074
|
-
switch (tag >>> 3) {
|
|
2075
|
-
case 1: {
|
|
2076
|
-
if (tag !== 10) {
|
|
2077
|
-
break;
|
|
2078
|
-
}
|
|
2079
|
-
|
|
2080
|
-
message.tally = TallyResult.decode(reader, reader.uint32());
|
|
2081
|
-
continue;
|
|
2082
|
-
}
|
|
2083
|
-
}
|
|
2084
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2085
|
-
break;
|
|
2086
|
-
}
|
|
2087
|
-
reader.skip(tag & 7);
|
|
2088
|
-
}
|
|
2089
|
-
return message;
|
|
2090
|
-
},
|
|
2091
|
-
|
|
2092
|
-
fromJSON(object: any): QueryTallyResultResponse {
|
|
2093
|
-
return { tally: isSet(object.tally) ? TallyResult.fromJSON(object.tally) : undefined };
|
|
2094
|
-
},
|
|
2095
|
-
|
|
2096
|
-
toJSON(message: QueryTallyResultResponse): unknown {
|
|
2097
|
-
const obj: any = {};
|
|
2098
|
-
if (message.tally !== undefined) {
|
|
2099
|
-
obj.tally = TallyResult.toJSON(message.tally);
|
|
2100
|
-
}
|
|
2101
|
-
return obj;
|
|
2102
|
-
},
|
|
2103
|
-
|
|
2104
|
-
create<I extends Exact<DeepPartial<QueryTallyResultResponse>, I>>(base?: I): QueryTallyResultResponse {
|
|
2105
|
-
return QueryTallyResultResponse.fromPartial(base ?? ({} as any));
|
|
2106
|
-
},
|
|
2107
|
-
fromPartial<I extends Exact<DeepPartial<QueryTallyResultResponse>, I>>(object: I): QueryTallyResultResponse {
|
|
2108
|
-
const message = createBaseQueryTallyResultResponse();
|
|
2109
|
-
message.tally = (object.tally !== undefined && object.tally !== null)
|
|
2110
|
-
? TallyResult.fromPartial(object.tally)
|
|
2111
|
-
: undefined;
|
|
2112
|
-
return message;
|
|
2113
|
-
},
|
|
2114
|
-
};
|
|
2115
|
-
|
|
2116
|
-
function createBaseQueryGroupsRequest(): QueryGroupsRequest {
|
|
2117
|
-
return { pagination: undefined };
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
export const QueryGroupsRequest: MessageFns<QueryGroupsRequest> = {
|
|
2121
|
-
encode(message: QueryGroupsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2122
|
-
if (message.pagination !== undefined) {
|
|
2123
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
2124
|
-
}
|
|
2125
|
-
return writer;
|
|
2126
|
-
},
|
|
2127
|
-
|
|
2128
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsRequest {
|
|
2129
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2130
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2131
|
-
const message = createBaseQueryGroupsRequest();
|
|
2132
|
-
while (reader.pos < end) {
|
|
2133
|
-
const tag = reader.uint32();
|
|
2134
|
-
switch (tag >>> 3) {
|
|
2135
|
-
case 2: {
|
|
2136
|
-
if (tag !== 18) {
|
|
2137
|
-
break;
|
|
2138
|
-
}
|
|
2139
|
-
|
|
2140
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
2141
|
-
continue;
|
|
2142
|
-
}
|
|
2143
|
-
}
|
|
2144
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2145
|
-
break;
|
|
2146
|
-
}
|
|
2147
|
-
reader.skip(tag & 7);
|
|
2148
|
-
}
|
|
2149
|
-
return message;
|
|
2150
|
-
},
|
|
2151
|
-
|
|
2152
|
-
fromJSON(object: any): QueryGroupsRequest {
|
|
2153
|
-
return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined };
|
|
2154
|
-
},
|
|
2155
|
-
|
|
2156
|
-
toJSON(message: QueryGroupsRequest): unknown {
|
|
2157
|
-
const obj: any = {};
|
|
2158
|
-
if (message.pagination !== undefined) {
|
|
2159
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
2160
|
-
}
|
|
2161
|
-
return obj;
|
|
2162
|
-
},
|
|
2163
|
-
|
|
2164
|
-
create<I extends Exact<DeepPartial<QueryGroupsRequest>, I>>(base?: I): QueryGroupsRequest {
|
|
2165
|
-
return QueryGroupsRequest.fromPartial(base ?? ({} as any));
|
|
2166
|
-
},
|
|
2167
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupsRequest>, I>>(object: I): QueryGroupsRequest {
|
|
2168
|
-
const message = createBaseQueryGroupsRequest();
|
|
2169
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
2170
|
-
? PageRequest.fromPartial(object.pagination)
|
|
2171
|
-
: undefined;
|
|
2172
|
-
return message;
|
|
2173
|
-
},
|
|
2174
|
-
};
|
|
2175
|
-
|
|
2176
|
-
function createBaseQueryGroupsResponse(): QueryGroupsResponse {
|
|
2177
|
-
return { groups: [], pagination: undefined };
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
|
-
export const QueryGroupsResponse: MessageFns<QueryGroupsResponse> = {
|
|
2181
|
-
encode(message: QueryGroupsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2182
|
-
for (const v of message.groups) {
|
|
2183
|
-
GroupInfo.encode(v!, writer.uint32(10).fork()).join();
|
|
2184
|
-
}
|
|
2185
|
-
if (message.pagination !== undefined) {
|
|
2186
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
2187
|
-
}
|
|
2188
|
-
return writer;
|
|
2189
|
-
},
|
|
2190
|
-
|
|
2191
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryGroupsResponse {
|
|
2192
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2193
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2194
|
-
const message = createBaseQueryGroupsResponse();
|
|
2195
|
-
while (reader.pos < end) {
|
|
2196
|
-
const tag = reader.uint32();
|
|
2197
|
-
switch (tag >>> 3) {
|
|
2198
|
-
case 1: {
|
|
2199
|
-
if (tag !== 10) {
|
|
2200
|
-
break;
|
|
2201
|
-
}
|
|
2202
|
-
|
|
2203
|
-
message.groups.push(GroupInfo.decode(reader, reader.uint32()));
|
|
2204
|
-
continue;
|
|
2205
|
-
}
|
|
2206
|
-
case 2: {
|
|
2207
|
-
if (tag !== 18) {
|
|
2208
|
-
break;
|
|
2209
|
-
}
|
|
2210
|
-
|
|
2211
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2212
|
-
continue;
|
|
2213
|
-
}
|
|
2214
|
-
}
|
|
2215
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2216
|
-
break;
|
|
2217
|
-
}
|
|
2218
|
-
reader.skip(tag & 7);
|
|
2219
|
-
}
|
|
2220
|
-
return message;
|
|
2221
|
-
},
|
|
2222
|
-
|
|
2223
|
-
fromJSON(object: any): QueryGroupsResponse {
|
|
2224
|
-
return {
|
|
2225
|
-
groups: globalThis.Array.isArray(object?.groups) ? object.groups.map((e: any) => GroupInfo.fromJSON(e)) : [],
|
|
2226
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
2227
|
-
};
|
|
2228
|
-
},
|
|
2229
|
-
|
|
2230
|
-
toJSON(message: QueryGroupsResponse): unknown {
|
|
2231
|
-
const obj: any = {};
|
|
2232
|
-
if (message.groups?.length) {
|
|
2233
|
-
obj.groups = message.groups.map((e) => GroupInfo.toJSON(e));
|
|
2234
|
-
}
|
|
2235
|
-
if (message.pagination !== undefined) {
|
|
2236
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
2237
|
-
}
|
|
2238
|
-
return obj;
|
|
2239
|
-
},
|
|
2240
|
-
|
|
2241
|
-
create<I extends Exact<DeepPartial<QueryGroupsResponse>, I>>(base?: I): QueryGroupsResponse {
|
|
2242
|
-
return QueryGroupsResponse.fromPartial(base ?? ({} as any));
|
|
2243
|
-
},
|
|
2244
|
-
fromPartial<I extends Exact<DeepPartial<QueryGroupsResponse>, I>>(object: I): QueryGroupsResponse {
|
|
2245
|
-
const message = createBaseQueryGroupsResponse();
|
|
2246
|
-
message.groups = object.groups?.map((e) => GroupInfo.fromPartial(e)) || [];
|
|
2247
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
2248
|
-
? PageResponse.fromPartial(object.pagination)
|
|
2249
|
-
: undefined;
|
|
2250
|
-
return message;
|
|
2251
|
-
},
|
|
2252
|
-
};
|
|
2253
|
-
|
|
2254
|
-
/** Query is the cosmos.group.v1 Query service. */
|
|
2255
|
-
export interface Query {
|
|
2256
|
-
/** GroupInfo queries group info based on group id. */
|
|
2257
|
-
GroupInfo(request: QueryGroupInfoRequest): Promise<QueryGroupInfoResponse>;
|
|
2258
|
-
/** GroupPolicyInfo queries group policy info based on account address of group policy. */
|
|
2259
|
-
GroupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise<QueryGroupPolicyInfoResponse>;
|
|
2260
|
-
/** GroupMembers queries members of a group by group id. */
|
|
2261
|
-
GroupMembers(request: QueryGroupMembersRequest): Promise<QueryGroupMembersResponse>;
|
|
2262
|
-
/** GroupsByAdmin queries groups by admin address. */
|
|
2263
|
-
GroupsByAdmin(request: QueryGroupsByAdminRequest): Promise<QueryGroupsByAdminResponse>;
|
|
2264
|
-
/** GroupPoliciesByGroup queries group policies by group id. */
|
|
2265
|
-
GroupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise<QueryGroupPoliciesByGroupResponse>;
|
|
2266
|
-
/** GroupPoliciesByAdmin queries group policies by admin address. */
|
|
2267
|
-
GroupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise<QueryGroupPoliciesByAdminResponse>;
|
|
2268
|
-
/** Proposal queries a proposal based on proposal id. */
|
|
2269
|
-
Proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
|
2270
|
-
/** ProposalsByGroupPolicy queries proposals based on account address of group policy. */
|
|
2271
|
-
ProposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise<QueryProposalsByGroupPolicyResponse>;
|
|
2272
|
-
/** VoteByProposalVoter queries a vote by proposal id and voter. */
|
|
2273
|
-
VoteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise<QueryVoteByProposalVoterResponse>;
|
|
2274
|
-
/** VotesByProposal queries a vote by proposal id. */
|
|
2275
|
-
VotesByProposal(request: QueryVotesByProposalRequest): Promise<QueryVotesByProposalResponse>;
|
|
2276
|
-
/** VotesByVoter queries a vote by voter. */
|
|
2277
|
-
VotesByVoter(request: QueryVotesByVoterRequest): Promise<QueryVotesByVoterResponse>;
|
|
2278
|
-
/** GroupsByMember queries groups by member address. */
|
|
2279
|
-
GroupsByMember(request: QueryGroupsByMemberRequest): Promise<QueryGroupsByMemberResponse>;
|
|
2280
|
-
/**
|
|
2281
|
-
* TallyResult returns the tally result of a proposal. If the proposal is
|
|
2282
|
-
* still in voting period, then this query computes the current tally state,
|
|
2283
|
-
* which might not be final. On the other hand, if the proposal is final,
|
|
2284
|
-
* then it simply returns the `final_tally_result` state stored in the
|
|
2285
|
-
* proposal itself.
|
|
2286
|
-
*/
|
|
2287
|
-
TallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
|
2288
|
-
/**
|
|
2289
|
-
* Groups queries all groups in state.
|
|
2290
|
-
*
|
|
2291
|
-
* Since: cosmos-sdk 0.47.1
|
|
2292
|
-
*/
|
|
2293
|
-
Groups(request: QueryGroupsRequest): Promise<QueryGroupsResponse>;
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
|
-
export const QueryServiceName = "cosmos.group.v1.Query";
|
|
2297
|
-
export class QueryClientImpl implements Query {
|
|
2298
|
-
private readonly rpc: Rpc;
|
|
2299
|
-
private readonly service: string;
|
|
2300
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
2301
|
-
this.service = opts?.service || QueryServiceName;
|
|
2302
|
-
this.rpc = rpc;
|
|
2303
|
-
this.GroupInfo = this.GroupInfo.bind(this);
|
|
2304
|
-
this.GroupPolicyInfo = this.GroupPolicyInfo.bind(this);
|
|
2305
|
-
this.GroupMembers = this.GroupMembers.bind(this);
|
|
2306
|
-
this.GroupsByAdmin = this.GroupsByAdmin.bind(this);
|
|
2307
|
-
this.GroupPoliciesByGroup = this.GroupPoliciesByGroup.bind(this);
|
|
2308
|
-
this.GroupPoliciesByAdmin = this.GroupPoliciesByAdmin.bind(this);
|
|
2309
|
-
this.Proposal = this.Proposal.bind(this);
|
|
2310
|
-
this.ProposalsByGroupPolicy = this.ProposalsByGroupPolicy.bind(this);
|
|
2311
|
-
this.VoteByProposalVoter = this.VoteByProposalVoter.bind(this);
|
|
2312
|
-
this.VotesByProposal = this.VotesByProposal.bind(this);
|
|
2313
|
-
this.VotesByVoter = this.VotesByVoter.bind(this);
|
|
2314
|
-
this.GroupsByMember = this.GroupsByMember.bind(this);
|
|
2315
|
-
this.TallyResult = this.TallyResult.bind(this);
|
|
2316
|
-
this.Groups = this.Groups.bind(this);
|
|
2317
|
-
}
|
|
2318
|
-
GroupInfo(request: QueryGroupInfoRequest): Promise<QueryGroupInfoResponse> {
|
|
2319
|
-
const data = QueryGroupInfoRequest.encode(request).finish();
|
|
2320
|
-
const promise = this.rpc.request(this.service, "GroupInfo", data);
|
|
2321
|
-
return promise.then((data) => QueryGroupInfoResponse.decode(new BinaryReader(data)));
|
|
2322
|
-
}
|
|
2323
|
-
|
|
2324
|
-
GroupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise<QueryGroupPolicyInfoResponse> {
|
|
2325
|
-
const data = QueryGroupPolicyInfoRequest.encode(request).finish();
|
|
2326
|
-
const promise = this.rpc.request(this.service, "GroupPolicyInfo", data);
|
|
2327
|
-
return promise.then((data) => QueryGroupPolicyInfoResponse.decode(new BinaryReader(data)));
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
|
-
GroupMembers(request: QueryGroupMembersRequest): Promise<QueryGroupMembersResponse> {
|
|
2331
|
-
const data = QueryGroupMembersRequest.encode(request).finish();
|
|
2332
|
-
const promise = this.rpc.request(this.service, "GroupMembers", data);
|
|
2333
|
-
return promise.then((data) => QueryGroupMembersResponse.decode(new BinaryReader(data)));
|
|
2334
|
-
}
|
|
2335
|
-
|
|
2336
|
-
GroupsByAdmin(request: QueryGroupsByAdminRequest): Promise<QueryGroupsByAdminResponse> {
|
|
2337
|
-
const data = QueryGroupsByAdminRequest.encode(request).finish();
|
|
2338
|
-
const promise = this.rpc.request(this.service, "GroupsByAdmin", data);
|
|
2339
|
-
return promise.then((data) => QueryGroupsByAdminResponse.decode(new BinaryReader(data)));
|
|
2340
|
-
}
|
|
2341
|
-
|
|
2342
|
-
GroupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise<QueryGroupPoliciesByGroupResponse> {
|
|
2343
|
-
const data = QueryGroupPoliciesByGroupRequest.encode(request).finish();
|
|
2344
|
-
const promise = this.rpc.request(this.service, "GroupPoliciesByGroup", data);
|
|
2345
|
-
return promise.then((data) => QueryGroupPoliciesByGroupResponse.decode(new BinaryReader(data)));
|
|
2346
|
-
}
|
|
2347
|
-
|
|
2348
|
-
GroupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise<QueryGroupPoliciesByAdminResponse> {
|
|
2349
|
-
const data = QueryGroupPoliciesByAdminRequest.encode(request).finish();
|
|
2350
|
-
const promise = this.rpc.request(this.service, "GroupPoliciesByAdmin", data);
|
|
2351
|
-
return promise.then((data) => QueryGroupPoliciesByAdminResponse.decode(new BinaryReader(data)));
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
|
-
Proposal(request: QueryProposalRequest): Promise<QueryProposalResponse> {
|
|
2355
|
-
const data = QueryProposalRequest.encode(request).finish();
|
|
2356
|
-
const promise = this.rpc.request(this.service, "Proposal", data);
|
|
2357
|
-
return promise.then((data) => QueryProposalResponse.decode(new BinaryReader(data)));
|
|
2358
|
-
}
|
|
2359
|
-
|
|
2360
|
-
ProposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise<QueryProposalsByGroupPolicyResponse> {
|
|
2361
|
-
const data = QueryProposalsByGroupPolicyRequest.encode(request).finish();
|
|
2362
|
-
const promise = this.rpc.request(this.service, "ProposalsByGroupPolicy", data);
|
|
2363
|
-
return promise.then((data) => QueryProposalsByGroupPolicyResponse.decode(new BinaryReader(data)));
|
|
2364
|
-
}
|
|
2365
|
-
|
|
2366
|
-
VoteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise<QueryVoteByProposalVoterResponse> {
|
|
2367
|
-
const data = QueryVoteByProposalVoterRequest.encode(request).finish();
|
|
2368
|
-
const promise = this.rpc.request(this.service, "VoteByProposalVoter", data);
|
|
2369
|
-
return promise.then((data) => QueryVoteByProposalVoterResponse.decode(new BinaryReader(data)));
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
VotesByProposal(request: QueryVotesByProposalRequest): Promise<QueryVotesByProposalResponse> {
|
|
2373
|
-
const data = QueryVotesByProposalRequest.encode(request).finish();
|
|
2374
|
-
const promise = this.rpc.request(this.service, "VotesByProposal", data);
|
|
2375
|
-
return promise.then((data) => QueryVotesByProposalResponse.decode(new BinaryReader(data)));
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
|
-
VotesByVoter(request: QueryVotesByVoterRequest): Promise<QueryVotesByVoterResponse> {
|
|
2379
|
-
const data = QueryVotesByVoterRequest.encode(request).finish();
|
|
2380
|
-
const promise = this.rpc.request(this.service, "VotesByVoter", data);
|
|
2381
|
-
return promise.then((data) => QueryVotesByVoterResponse.decode(new BinaryReader(data)));
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
|
-
GroupsByMember(request: QueryGroupsByMemberRequest): Promise<QueryGroupsByMemberResponse> {
|
|
2385
|
-
const data = QueryGroupsByMemberRequest.encode(request).finish();
|
|
2386
|
-
const promise = this.rpc.request(this.service, "GroupsByMember", data);
|
|
2387
|
-
return promise.then((data) => QueryGroupsByMemberResponse.decode(new BinaryReader(data)));
|
|
2388
|
-
}
|
|
2389
|
-
|
|
2390
|
-
TallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse> {
|
|
2391
|
-
const data = QueryTallyResultRequest.encode(request).finish();
|
|
2392
|
-
const promise = this.rpc.request(this.service, "TallyResult", data);
|
|
2393
|
-
return promise.then((data) => QueryTallyResultResponse.decode(new BinaryReader(data)));
|
|
2394
|
-
}
|
|
2395
|
-
|
|
2396
|
-
Groups(request: QueryGroupsRequest): Promise<QueryGroupsResponse> {
|
|
2397
|
-
const data = QueryGroupsRequest.encode(request).finish();
|
|
2398
|
-
const promise = this.rpc.request(this.service, "Groups", data);
|
|
2399
|
-
return promise.then((data) => QueryGroupsResponse.decode(new BinaryReader(data)));
|
|
2400
|
-
}
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
|
-
interface Rpc {
|
|
2404
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
2405
|
-
}
|
|
2406
|
-
|
|
2407
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
2408
|
-
|
|
2409
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
2410
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
2411
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
2412
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
2413
|
-
: Partial<T>;
|
|
2414
|
-
|
|
2415
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
2416
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
2417
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
2418
|
-
|
|
2419
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
2420
|
-
const num = globalThis.Number(int64.toString());
|
|
2421
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
2422
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
2423
|
-
}
|
|
2424
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
2425
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
2426
|
-
}
|
|
2427
|
-
return num;
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
|
-
function isSet(value: any): boolean {
|
|
2431
|
-
return value !== null && value !== undefined;
|
|
2432
|
-
}
|
|
2433
|
-
|
|
2434
|
-
export interface MessageFns<T> {
|
|
2435
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
2436
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
2437
|
-
fromJSON(object: any): T;
|
|
2438
|
-
toJSON(message: T): unknown;
|
|
2439
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
2440
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
2441
|
-
}
|