@iconlake/client 0.0.1
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/client.ts +170 -0
- package/cosmos.auth.v1beta1/index.ts +6 -0
- package/cosmos.auth.v1beta1/module.ts +102 -0
- package/cosmos.auth.v1beta1/registry.ts +7 -0
- package/cosmos.auth.v1beta1/rest.ts +641 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +95 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +1212 -0
- package/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.auth.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.auth.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.auth.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.auth.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.auth.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.auth.v1beta1/types.ts +11 -0
- package/cosmos.authz.v1beta1/index.ts +6 -0
- package/cosmos.authz.v1beta1/module.ts +207 -0
- package/cosmos.authz.v1beta1/registry.ts +13 -0
- package/cosmos.authz.v1beta1/rest.ts +604 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.ts +325 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.ts +175 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.ts +78 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.ts +516 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +493 -0
- package/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.authz.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.authz.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.authz.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.authz.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.authz.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.authz.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.authz.v1beta1/types.ts +17 -0
- package/cosmos.bank.v1beta1/index.ts +6 -0
- package/cosmos.bank.v1beta1/module.ts +182 -0
- package/cosmos.bank.v1beta1/registry.ts +11 -0
- package/cosmos.bank.v1beta1/rest.ts +656 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +77 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +604 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +203 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +1366 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +289 -0
- package/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.bank.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.bank.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.bank.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.bank.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.bank.v1beta1/types.ts +25 -0
- package/cosmos.base.node.v1beta1/index.ts +6 -0
- package/cosmos.base.node.v1beta1/module.ts +96 -0
- package/cosmos.base.node.v1beta1/registry.ts +7 -0
- package/cosmos.base.node.v1beta1/rest.ts +170 -0
- package/cosmos.base.node.v1beta1/types/cosmos/base/node/v1beta1/query.ts +137 -0
- package/cosmos.base.node.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.base.node.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.base.node.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.base.node.v1beta1/types.ts +5 -0
- package/cosmos.base.tendermint.v1beta1/index.ts +6 -0
- package/cosmos.base.tendermint.v1beta1/module.ts +110 -0
- package/cosmos.base.tendermint.v1beta1/registry.ts +7 -0
- package/cosmos.base.tendermint.v1beta1/rest.ts +1147 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +1646 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.ts +442 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.ts +129 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.ts +439 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.ts +423 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.ts +112 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.ts +412 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.ts +1452 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.ts +308 -0
- package/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.ts +184 -0
- package/cosmos.base.tendermint.v1beta1/types.ts +19 -0
- package/cosmos.crisis.v1beta1/index.ts +6 -0
- package/cosmos.crisis.v1beta1/module.ts +129 -0
- package/cosmos.crisis.v1beta1/registry.ts +9 -0
- package/cosmos.crisis.v1beta1/rest.ts +152 -0
- package/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.ts +79 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +159 -0
- package/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.crisis.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.crisis.v1beta1/types.ts +5 -0
- package/cosmos.distribution.v1beta1/index.ts +6 -0
- package/cosmos.distribution.v1beta1/module.ts +266 -0
- package/cosmos.distribution.v1beta1/registry.ts +15 -0
- package/cosmos.distribution.v1beta1/rest.ts +557 -0
- package/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +945 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +849 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1289 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +550 -0
- package/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.distribution.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.distribution.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.distribution.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.distribution.v1beta1/types.ts +43 -0
- package/cosmos.evidence.v1beta1/index.ts +6 -0
- package/cosmos.evidence.v1beta1/module.ts +131 -0
- package/cosmos.evidence.v1beta1/registry.ts +9 -0
- package/cosmos.evidence.v1beta1/rest.ts +402 -0
- package/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +161 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.ts +73 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +343 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +213 -0
- package/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.evidence.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.evidence.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.evidence.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.evidence.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.evidence.v1beta1/types.ts +7 -0
- package/cosmos.feegrant.v1beta1/index.ts +6 -0
- package/cosmos.feegrant.v1beta1/module.ts +170 -0
- package/cosmos.feegrant.v1beta1/registry.ts +11 -0
- package/cosmos.feegrant.v1beta1/rest.ts +452 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.ts +409 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.ts +76 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.ts +484 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.ts +294 -0
- package/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.feegrant.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.feegrant.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.feegrant.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.feegrant.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.feegrant.v1beta1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.feegrant.v1beta1/types.ts +13 -0
- package/cosmos.gov.v1/index.ts +6 -0
- package/cosmos.gov.v1/module.ts +244 -0
- package/cosmos.gov.v1/registry.ts +15 -0
- package/cosmos.gov.v1/rest.ts +798 -0
- package/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +208 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +925 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +1202 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +763 -0
- package/cosmos.gov.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.gov.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.gov.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.gov.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.gov.v1/types/google/api/http.ts +589 -0
- package/cosmos.gov.v1/types/google/protobuf/any.ts +240 -0
- package/cosmos.gov.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.gov.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.gov.v1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.gov.v1/types.ts +21 -0
- package/cosmos.gov.v1beta1/index.ts +6 -0
- package/cosmos.gov.v1beta1/module.ts +246 -0
- package/cosmos.gov.v1beta1/registry.ts +15 -0
- package/cosmos.gov.v1beta1/rest.ts +864 -0
- package/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +206 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +1015 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +1200 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +612 -0
- package/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.gov.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.gov.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.gov.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.gov.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.gov.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.gov.v1beta1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.gov.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.gov.v1beta1/types.ts +23 -0
- package/cosmos.group.v1/index.ts +6 -0
- package/cosmos.group.v1/module.ts +598 -0
- package/cosmos.group.v1/registry.ts +35 -0
- package/cosmos.group.v1/rest.ts +1162 -0
- package/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.group.v1/types/cosmos/group/v1/events.ts +568 -0
- package/cosmos.group.v1/types/cosmos/group/v1/genesis.ts +228 -0
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +1897 -0
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +2113 -0
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +1422 -0
- package/cosmos.group.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.group.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.group.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.group.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.group.v1/types/google/api/http.ts +589 -0
- package/cosmos.group.v1/types/google/protobuf/any.ts +240 -0
- package/cosmos.group.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.group.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.group.v1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.group.v1/types.ts +45 -0
- package/cosmos.mint.v1beta1/index.ts +6 -0
- package/cosmos.mint.v1beta1/module.ts +100 -0
- package/cosmos.mint.v1beta1/registry.ts +7 -0
- package/cosmos.mint.v1beta1/rest.ts +253 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +92 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +234 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.ts +412 -0
- package/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.mint.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.mint.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.mint.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.mint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.mint.v1beta1/types.ts +9 -0
- package/cosmos.nft.v1beta1/index.ts +6 -0
- package/cosmos.nft.v1beta1/module.ts +108 -0
- package/cosmos.nft.v1beta1/registry.ts +7 -0
- package/cosmos.nft.v1beta1/rest.ts +685 -0
- package/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +251 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +163 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.ts +240 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +964 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.ts +173 -0
- package/cosmos.nft.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.nft.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.nft.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.nft.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.nft.v1beta1/types.ts +17 -0
- package/cosmos.params.v1beta1/index.ts +6 -0
- package/cosmos.params.v1beta1/module.ts +102 -0
- package/cosmos.params.v1beta1/registry.ts +7 -0
- package/cosmos.params.v1beta1/rest.ts +220 -0
- package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.ts +174 -0
- package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.ts +364 -0
- package/cosmos.params.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.params.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.params.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.params.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.params.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.params.v1beta1/types.ts +11 -0
- package/cosmos.slashing.v1beta1/index.ts +6 -0
- package/cosmos.slashing.v1beta1/module.ts +139 -0
- package/cosmos.slashing.v1beta1/registry.ts +9 -0
- package/cosmos.slashing.v1beta1/rest.ts +368 -0
- package/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +364 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.ts +411 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.ts +352 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +141 -0
- package/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.slashing.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.slashing.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.slashing.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.slashing.v1beta1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.slashing.v1beta1/types.ts +15 -0
- package/cosmos.staking.v1beta1/index.ts +6 -0
- package/cosmos.staking.v1beta1/module.ts +340 -0
- package/cosmos.staking.v1beta1/registry.ts +19 -0
- package/cosmos.staking.v1beta1/rest.ts +1239 -0
- package/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.ts +245 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +322 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +2109 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +1829 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1005 -0
- package/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.staking.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.staking.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.staking.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.staking.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.staking.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.staking.v1beta1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.staking.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.ts +129 -0
- package/cosmos.staking.v1beta1/types/tendermint/crypto/proof.ts +439 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/types.ts +1452 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/validator.ts +308 -0
- package/cosmos.staking.v1beta1/types/tendermint/version/types.ts +184 -0
- package/cosmos.staking.v1beta1/types.ts +51 -0
- package/cosmos.tx.v1beta1/index.ts +6 -0
- package/cosmos.tx.v1beta1/module.ts +122 -0
- package/cosmos.tx.v1beta1/registry.ts +7 -0
- package/cosmos.tx.v1beta1/rest.ts +1372 -0
- package/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.ts +1040 -0
- package/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.ts +195 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.ts +556 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +1057 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.ts +1355 -0
- package/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.tx.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.tx.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.tx.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.tx.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.tx.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.tx.v1beta1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.tx.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +4154 -0
- package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.ts +129 -0
- package/cosmos.tx.v1beta1/types/tendermint/crypto/proof.ts +439 -0
- package/cosmos.tx.v1beta1/types/tendermint/types/block.ts +112 -0
- package/cosmos.tx.v1beta1/types/tendermint/types/evidence.ts +412 -0
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +514 -0
- package/cosmos.tx.v1beta1/types/tendermint/types/types.ts +1452 -0
- package/cosmos.tx.v1beta1/types/tendermint/types/validator.ts +308 -0
- package/cosmos.tx.v1beta1/types/tendermint/version/types.ts +184 -0
- package/cosmos.tx.v1beta1/types.ts +31 -0
- package/cosmos.upgrade.v1beta1/index.ts +6 -0
- package/cosmos.upgrade.v1beta1/module.ts +170 -0
- package/cosmos.upgrade.v1beta1/registry.ts +11 -0
- package/cosmos.upgrade.v1beta1/rest.ts +468 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.ts +728 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +284 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
- package/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.upgrade.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/google/api/annotations.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/google/api/http.ts +589 -0
- package/cosmos.upgrade.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.ts +216 -0
- package/cosmos.upgrade.v1beta1/types.ts +13 -0
- package/cosmos.vesting.v1beta1/index.ts +6 -0
- package/cosmos.vesting.v1beta1/module.ts +207 -0
- package/cosmos.vesting.v1beta1/registry.ts +13 -0
- package/cosmos.vesting.v1beta1/rest.ts +297 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
- package/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.ts +540 -0
- package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.ts +529 -0
- package/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.vesting.v1beta1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.vesting.v1beta1/types/google/protobuf/any.ts +240 -0
- package/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.vesting.v1beta1/types.ts +17 -0
- package/env.ts +7 -0
- package/helpers.ts +32 -0
- package/ibc.applications.interchain_accounts.controller.v1/index.ts +6 -0
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +98 -0
- package/ibc.applications.interchain_accounts.controller.v1/registry.ts +7 -0
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +346 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.ts +2 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.ts +2 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.ts +589 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.ts +240 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +75 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.ts +274 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +361 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.ts +234 -0
- package/ibc.applications.interchain_accounts.controller.v1/types.ts +7 -0
- package/ibc.applications.interchain_accounts.host.v1/index.ts +6 -0
- package/ibc.applications.interchain_accounts.host.v1/module.ts +98 -0
- package/ibc.applications.interchain_accounts.host.v1/registry.ts +7 -0
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +183 -0
- package/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.ts +2 -0
- package/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.ts +2 -0
- package/ibc.applications.interchain_accounts.host.v1/types/google/api/http.ts +589 -0
- package/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.ts +92 -0
- package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.ts +141 -0
- package/ibc.applications.interchain_accounts.host.v1/types.ts +7 -0
- package/ibc.applications.transfer.v1/index.ts +6 -0
- package/ibc.applications.transfer.v1/module.ts +133 -0
- package/ibc.applications.transfer.v1/registry.ts +9 -0
- package/ibc.applications.transfer.v1/rest.ts +544 -0
- package/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
- package/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/ibc.applications.transfer.v1/types/gogoproto/gogo.ts +2 -0
- package/ibc.applications.transfer.v1/types/google/api/annotations.ts +2 -0
- package/ibc.applications.transfer.v1/types/google/api/http.ts +589 -0
- package/ibc.applications.transfer.v1/types/google/protobuf/any.ts +240 -0
- package/ibc.applications.transfer.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/ibc.applications.transfer.v1/types/google/protobuf/timestamp.ts +216 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +100 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +659 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.ts +168 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.ts +287 -0
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +608 -0
- package/ibc.applications.transfer.v1/types.ts +9 -0
- package/ibc.core.channel.v1/index.ts +6 -0
- package/ibc.core.channel.v1/module.ts +112 -0
- package/ibc.core.channel.v1/registry.ts +7 -0
- package/ibc.core.channel.v1/rest.ts +1375 -0
- package/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
- package/ibc.core.channel.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/ibc.core.channel.v1/types/gogoproto/gogo.ts +2 -0
- package/ibc.core.channel.v1/types/google/api/annotations.ts +2 -0
- package/ibc.core.channel.v1/types/google/api/http.ts +589 -0
- package/ibc.core.channel.v1/types/google/protobuf/any.ts +240 -0
- package/ibc.core.channel.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/ibc.core.channel.v1/types/google/protobuf/timestamp.ts +216 -0
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.ts +905 -0
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.ts +301 -0
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/query.ts +2472 -0
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +1784 -0
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +608 -0
- package/ibc.core.channel.v1/types.ts +21 -0
- package/ibc.core.client.v1/index.ts +6 -0
- package/ibc.core.client.v1/module.ts +114 -0
- package/ibc.core.client.v1/registry.ts +7 -0
- package/ibc.core.client.v1/rest.ts +1084 -0
- package/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
- package/ibc.core.client.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/ibc.core.client.v1/types/gogoproto/gogo.ts +2 -0
- package/ibc.core.client.v1/types/google/api/annotations.ts +2 -0
- package/ibc.core.client.v1/types/google/api/http.ts +589 -0
- package/ibc.core.client.v1/types/google/protobuf/any.ts +240 -0
- package/ibc.core.client.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/ibc.core.client.v1/types/google/protobuf/timestamp.ts +216 -0
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +608 -0
- package/ibc.core.client.v1/types/ibc/core/client/v1/genesis.ts +357 -0
- package/ibc.core.client.v1/types/ibc/core/client/v1/query.ts +1390 -0
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +691 -0
- package/ibc.core.client.v1/types.ts +23 -0
- package/ibc.core.connection.v1/index.ts +6 -0
- package/ibc.core.connection.v1/module.ts +110 -0
- package/ibc.core.connection.v1/registry.ts +7 -0
- package/ibc.core.connection.v1/rest.ts +889 -0
- package/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
- package/ibc.core.connection.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/ibc.core.connection.v1/types/gogoproto/gogo.ts +2 -0
- package/ibc.core.connection.v1/types/google/api/annotations.ts +2 -0
- package/ibc.core.connection.v1/types/google/api/http.ts +589 -0
- package/ibc.core.connection.v1/types/google/protobuf/any.ts +240 -0
- package/ibc.core.connection.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/ibc.core.connection.v1/types/google/protobuf/timestamp.ts +216 -0
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +608 -0
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +299 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.ts +698 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.ts +152 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/query.ts +1041 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +908 -0
- package/ibc.core.connection.v1/types/proofs.ts +1408 -0
- package/ibc.core.connection.v1/types.ts +19 -0
- package/iconlake.icon/index.ts +6 -0
- package/iconlake.icon/module.ts +135 -0
- package/iconlake.icon/registry.ts +9 -0
- package/iconlake.icon/rest.ts +206 -0
- package/iconlake.icon/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/iconlake.icon/types/gogoproto/gogo.ts +2 -0
- package/iconlake.icon/types/google/api/annotations.ts +2 -0
- package/iconlake.icon/types/google/api/http.ts +589 -0
- package/iconlake.icon/types/google/protobuf/descriptor.ts +3753 -0
- package/iconlake.icon/types/iconlake/icon/genesis.ts +74 -0
- package/iconlake.icon/types/iconlake/icon/params.ts +58 -0
- package/iconlake.icon/types/iconlake/icon/query.ts +276 -0
- package/iconlake.icon/types/iconlake/icon/tx.ts +374 -0
- package/iconlake.icon/types.ts +11 -0
- package/iconlake.iconlake/index.ts +6 -0
- package/iconlake.iconlake/module.ts +133 -0
- package/iconlake.iconlake/registry.ts +9 -0
- package/iconlake.iconlake/rest.ts +342 -0
- package/iconlake.iconlake/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/iconlake.iconlake/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/iconlake.iconlake/types/cosmos_proto/cosmos.ts +247 -0
- package/iconlake.iconlake/types/gogoproto/gogo.ts +2 -0
- package/iconlake.iconlake/types/google/api/annotations.ts +2 -0
- package/iconlake.iconlake/types/google/api/http.ts +589 -0
- package/iconlake.iconlake/types/google/protobuf/descriptor.ts +3753 -0
- package/iconlake.iconlake/types/iconlake/iconlake/account.ts +140 -0
- package/iconlake.iconlake/types/iconlake/iconlake/genesis.ts +91 -0
- package/iconlake.iconlake/types/iconlake/iconlake/params.ts +58 -0
- package/iconlake.iconlake/types/iconlake/iconlake/query.ts +388 -0
- package/iconlake.iconlake/types/iconlake/iconlake/tx.ts +214 -0
- package/iconlake.iconlake/types.ts +9 -0
- package/index.ts +75 -0
- package/modules.ts +5 -0
- package/package.json +35 -0
- package/tsconfig.json +12 -0
- package/types.d.ts +21 -0
|
@@ -0,0 +1,1897 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
5
|
+
import { GroupInfo, GroupMember, GroupPolicyInfo, Proposal, TallyResult, Vote } from "./types";
|
|
6
|
+
|
|
7
|
+
export const protobufPackage = "cosmos.group.v1";
|
|
8
|
+
|
|
9
|
+
/** Since: cosmos-sdk 0.46 */
|
|
10
|
+
|
|
11
|
+
/** QueryGroupInfoRequest is the Query/GroupInfo request type. */
|
|
12
|
+
export interface QueryGroupInfoRequest {
|
|
13
|
+
/** group_id is the unique ID of the group. */
|
|
14
|
+
groupId: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** QueryGroupInfoResponse is the Query/GroupInfo response type. */
|
|
18
|
+
export interface QueryGroupInfoResponse {
|
|
19
|
+
/** info is the GroupInfo for the group. */
|
|
20
|
+
info: GroupInfo | undefined;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */
|
|
24
|
+
export interface QueryGroupPolicyInfoRequest {
|
|
25
|
+
/** address is the account address of the group policy. */
|
|
26
|
+
address: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */
|
|
30
|
+
export interface QueryGroupPolicyInfoResponse {
|
|
31
|
+
/** info is the GroupPolicyInfo for the group policy. */
|
|
32
|
+
info: GroupPolicyInfo | undefined;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** QueryGroupMembersRequest is the Query/GroupMembers request type. */
|
|
36
|
+
export interface QueryGroupMembersRequest {
|
|
37
|
+
/** group_id is the unique ID of the group. */
|
|
38
|
+
groupId: number;
|
|
39
|
+
/** pagination defines an optional pagination for the request. */
|
|
40
|
+
pagination: PageRequest | undefined;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */
|
|
44
|
+
export interface QueryGroupMembersResponse {
|
|
45
|
+
/** members are the members of the group with given group_id. */
|
|
46
|
+
members: GroupMember[];
|
|
47
|
+
/** pagination defines the pagination in the response. */
|
|
48
|
+
pagination: PageResponse | undefined;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */
|
|
52
|
+
export interface QueryGroupsByAdminRequest {
|
|
53
|
+
/** admin is the account address of a group's admin. */
|
|
54
|
+
admin: string;
|
|
55
|
+
/** pagination defines an optional pagination for the request. */
|
|
56
|
+
pagination: PageRequest | undefined;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */
|
|
60
|
+
export interface QueryGroupsByAdminResponse {
|
|
61
|
+
/** groups are the groups info with the provided admin. */
|
|
62
|
+
groups: GroupInfo[];
|
|
63
|
+
/** pagination defines the pagination in the response. */
|
|
64
|
+
pagination: PageResponse | undefined;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */
|
|
68
|
+
export interface QueryGroupPoliciesByGroupRequest {
|
|
69
|
+
/** group_id is the unique ID of the group policy's group. */
|
|
70
|
+
groupId: number;
|
|
71
|
+
/** pagination defines an optional pagination for the request. */
|
|
72
|
+
pagination: PageRequest | undefined;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */
|
|
76
|
+
export interface QueryGroupPoliciesByGroupResponse {
|
|
77
|
+
/** group_policies are the group policies info associated with the provided group. */
|
|
78
|
+
groupPolicies: GroupPolicyInfo[];
|
|
79
|
+
/** pagination defines the pagination in the response. */
|
|
80
|
+
pagination: PageResponse | undefined;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */
|
|
84
|
+
export interface QueryGroupPoliciesByAdminRequest {
|
|
85
|
+
/** admin is the admin address of the group policy. */
|
|
86
|
+
admin: string;
|
|
87
|
+
/** pagination defines an optional pagination for the request. */
|
|
88
|
+
pagination: PageRequest | undefined;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */
|
|
92
|
+
export interface QueryGroupPoliciesByAdminResponse {
|
|
93
|
+
/** group_policies are the group policies info with provided admin. */
|
|
94
|
+
groupPolicies: GroupPolicyInfo[];
|
|
95
|
+
/** pagination defines the pagination in the response. */
|
|
96
|
+
pagination: PageResponse | undefined;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** QueryProposalRequest is the Query/Proposal request type. */
|
|
100
|
+
export interface QueryProposalRequest {
|
|
101
|
+
/** proposal_id is the unique ID of a proposal. */
|
|
102
|
+
proposalId: number;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** QueryProposalResponse is the Query/Proposal response type. */
|
|
106
|
+
export interface QueryProposalResponse {
|
|
107
|
+
/** proposal is the proposal info. */
|
|
108
|
+
proposal: Proposal | undefined;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */
|
|
112
|
+
export interface QueryProposalsByGroupPolicyRequest {
|
|
113
|
+
/** address is the account address of the group policy related to proposals. */
|
|
114
|
+
address: string;
|
|
115
|
+
/** pagination defines an optional pagination for the request. */
|
|
116
|
+
pagination: PageRequest | undefined;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */
|
|
120
|
+
export interface QueryProposalsByGroupPolicyResponse {
|
|
121
|
+
/** proposals are the proposals with given group policy. */
|
|
122
|
+
proposals: Proposal[];
|
|
123
|
+
/** pagination defines the pagination in the response. */
|
|
124
|
+
pagination: PageResponse | undefined;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */
|
|
128
|
+
export interface QueryVoteByProposalVoterRequest {
|
|
129
|
+
/** proposal_id is the unique ID of a proposal. */
|
|
130
|
+
proposalId: number;
|
|
131
|
+
/** voter is a proposal voter account address. */
|
|
132
|
+
voter: string;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */
|
|
136
|
+
export interface QueryVoteByProposalVoterResponse {
|
|
137
|
+
/** vote is the vote with given proposal_id and voter. */
|
|
138
|
+
vote: Vote | undefined;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */
|
|
142
|
+
export interface QueryVotesByProposalRequest {
|
|
143
|
+
/** proposal_id is the unique ID of a proposal. */
|
|
144
|
+
proposalId: number;
|
|
145
|
+
/** pagination defines an optional pagination for the request. */
|
|
146
|
+
pagination: PageRequest | undefined;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */
|
|
150
|
+
export interface QueryVotesByProposalResponse {
|
|
151
|
+
/** votes are the list of votes for given proposal_id. */
|
|
152
|
+
votes: Vote[];
|
|
153
|
+
/** pagination defines the pagination in the response. */
|
|
154
|
+
pagination: PageResponse | undefined;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */
|
|
158
|
+
export interface QueryVotesByVoterRequest {
|
|
159
|
+
/** voter is a proposal voter account address. */
|
|
160
|
+
voter: string;
|
|
161
|
+
/** pagination defines an optional pagination for the request. */
|
|
162
|
+
pagination: PageRequest | undefined;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */
|
|
166
|
+
export interface QueryVotesByVoterResponse {
|
|
167
|
+
/** votes are the list of votes by given voter. */
|
|
168
|
+
votes: Vote[];
|
|
169
|
+
/** pagination defines the pagination in the response. */
|
|
170
|
+
pagination: PageResponse | undefined;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */
|
|
174
|
+
export interface QueryGroupsByMemberRequest {
|
|
175
|
+
/** address is the group member address. */
|
|
176
|
+
address: string;
|
|
177
|
+
/** pagination defines an optional pagination for the request. */
|
|
178
|
+
pagination: PageRequest | undefined;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */
|
|
182
|
+
export interface QueryGroupsByMemberResponse {
|
|
183
|
+
/** groups are the groups info with the provided group member. */
|
|
184
|
+
groups: GroupInfo[];
|
|
185
|
+
/** pagination defines the pagination in the response. */
|
|
186
|
+
pagination: PageResponse | undefined;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/** QueryTallyResultRequest is the Query/TallyResult request type. */
|
|
190
|
+
export interface QueryTallyResultRequest {
|
|
191
|
+
/** proposal_id is the unique id of a proposal. */
|
|
192
|
+
proposalId: number;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** QueryTallyResultResponse is the Query/TallyResult response type. */
|
|
196
|
+
export interface QueryTallyResultResponse {
|
|
197
|
+
/** tally defines the requested tally. */
|
|
198
|
+
tally: TallyResult | undefined;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function createBaseQueryGroupInfoRequest(): QueryGroupInfoRequest {
|
|
202
|
+
return { groupId: 0 };
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export const QueryGroupInfoRequest = {
|
|
206
|
+
encode(message: QueryGroupInfoRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
207
|
+
if (message.groupId !== 0) {
|
|
208
|
+
writer.uint32(8).uint64(message.groupId);
|
|
209
|
+
}
|
|
210
|
+
return writer;
|
|
211
|
+
},
|
|
212
|
+
|
|
213
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupInfoRequest {
|
|
214
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
215
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
216
|
+
const message = createBaseQueryGroupInfoRequest();
|
|
217
|
+
while (reader.pos < end) {
|
|
218
|
+
const tag = reader.uint32();
|
|
219
|
+
switch (tag >>> 3) {
|
|
220
|
+
case 1:
|
|
221
|
+
message.groupId = longToNumber(reader.uint64() as Long);
|
|
222
|
+
break;
|
|
223
|
+
default:
|
|
224
|
+
reader.skipType(tag & 7);
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return message;
|
|
229
|
+
},
|
|
230
|
+
|
|
231
|
+
fromJSON(object: any): QueryGroupInfoRequest {
|
|
232
|
+
return { groupId: isSet(object.groupId) ? Number(object.groupId) : 0 };
|
|
233
|
+
},
|
|
234
|
+
|
|
235
|
+
toJSON(message: QueryGroupInfoRequest): unknown {
|
|
236
|
+
const obj: any = {};
|
|
237
|
+
message.groupId !== undefined && (obj.groupId = Math.round(message.groupId));
|
|
238
|
+
return obj;
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupInfoRequest>, I>>(object: I): QueryGroupInfoRequest {
|
|
242
|
+
const message = createBaseQueryGroupInfoRequest();
|
|
243
|
+
message.groupId = object.groupId ?? 0;
|
|
244
|
+
return message;
|
|
245
|
+
},
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
function createBaseQueryGroupInfoResponse(): QueryGroupInfoResponse {
|
|
249
|
+
return { info: undefined };
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export const QueryGroupInfoResponse = {
|
|
253
|
+
encode(message: QueryGroupInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
254
|
+
if (message.info !== undefined) {
|
|
255
|
+
GroupInfo.encode(message.info, writer.uint32(10).fork()).ldelim();
|
|
256
|
+
}
|
|
257
|
+
return writer;
|
|
258
|
+
},
|
|
259
|
+
|
|
260
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupInfoResponse {
|
|
261
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
262
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
263
|
+
const message = createBaseQueryGroupInfoResponse();
|
|
264
|
+
while (reader.pos < end) {
|
|
265
|
+
const tag = reader.uint32();
|
|
266
|
+
switch (tag >>> 3) {
|
|
267
|
+
case 1:
|
|
268
|
+
message.info = GroupInfo.decode(reader, reader.uint32());
|
|
269
|
+
break;
|
|
270
|
+
default:
|
|
271
|
+
reader.skipType(tag & 7);
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
return message;
|
|
276
|
+
},
|
|
277
|
+
|
|
278
|
+
fromJSON(object: any): QueryGroupInfoResponse {
|
|
279
|
+
return { info: isSet(object.info) ? GroupInfo.fromJSON(object.info) : undefined };
|
|
280
|
+
},
|
|
281
|
+
|
|
282
|
+
toJSON(message: QueryGroupInfoResponse): unknown {
|
|
283
|
+
const obj: any = {};
|
|
284
|
+
message.info !== undefined && (obj.info = message.info ? GroupInfo.toJSON(message.info) : undefined);
|
|
285
|
+
return obj;
|
|
286
|
+
},
|
|
287
|
+
|
|
288
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupInfoResponse>, I>>(object: I): QueryGroupInfoResponse {
|
|
289
|
+
const message = createBaseQueryGroupInfoResponse();
|
|
290
|
+
message.info = (object.info !== undefined && object.info !== null) ? GroupInfo.fromPartial(object.info) : undefined;
|
|
291
|
+
return message;
|
|
292
|
+
},
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
function createBaseQueryGroupPolicyInfoRequest(): QueryGroupPolicyInfoRequest {
|
|
296
|
+
return { address: "" };
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export const QueryGroupPolicyInfoRequest = {
|
|
300
|
+
encode(message: QueryGroupPolicyInfoRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
301
|
+
if (message.address !== "") {
|
|
302
|
+
writer.uint32(10).string(message.address);
|
|
303
|
+
}
|
|
304
|
+
return writer;
|
|
305
|
+
},
|
|
306
|
+
|
|
307
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPolicyInfoRequest {
|
|
308
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
309
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
310
|
+
const message = createBaseQueryGroupPolicyInfoRequest();
|
|
311
|
+
while (reader.pos < end) {
|
|
312
|
+
const tag = reader.uint32();
|
|
313
|
+
switch (tag >>> 3) {
|
|
314
|
+
case 1:
|
|
315
|
+
message.address = reader.string();
|
|
316
|
+
break;
|
|
317
|
+
default:
|
|
318
|
+
reader.skipType(tag & 7);
|
|
319
|
+
break;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
return message;
|
|
323
|
+
},
|
|
324
|
+
|
|
325
|
+
fromJSON(object: any): QueryGroupPolicyInfoRequest {
|
|
326
|
+
return { address: isSet(object.address) ? String(object.address) : "" };
|
|
327
|
+
},
|
|
328
|
+
|
|
329
|
+
toJSON(message: QueryGroupPolicyInfoRequest): unknown {
|
|
330
|
+
const obj: any = {};
|
|
331
|
+
message.address !== undefined && (obj.address = message.address);
|
|
332
|
+
return obj;
|
|
333
|
+
},
|
|
334
|
+
|
|
335
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupPolicyInfoRequest>, I>>(object: I): QueryGroupPolicyInfoRequest {
|
|
336
|
+
const message = createBaseQueryGroupPolicyInfoRequest();
|
|
337
|
+
message.address = object.address ?? "";
|
|
338
|
+
return message;
|
|
339
|
+
},
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
function createBaseQueryGroupPolicyInfoResponse(): QueryGroupPolicyInfoResponse {
|
|
343
|
+
return { info: undefined };
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export const QueryGroupPolicyInfoResponse = {
|
|
347
|
+
encode(message: QueryGroupPolicyInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
348
|
+
if (message.info !== undefined) {
|
|
349
|
+
GroupPolicyInfo.encode(message.info, writer.uint32(10).fork()).ldelim();
|
|
350
|
+
}
|
|
351
|
+
return writer;
|
|
352
|
+
},
|
|
353
|
+
|
|
354
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPolicyInfoResponse {
|
|
355
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
356
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
357
|
+
const message = createBaseQueryGroupPolicyInfoResponse();
|
|
358
|
+
while (reader.pos < end) {
|
|
359
|
+
const tag = reader.uint32();
|
|
360
|
+
switch (tag >>> 3) {
|
|
361
|
+
case 1:
|
|
362
|
+
message.info = GroupPolicyInfo.decode(reader, reader.uint32());
|
|
363
|
+
break;
|
|
364
|
+
default:
|
|
365
|
+
reader.skipType(tag & 7);
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
return message;
|
|
370
|
+
},
|
|
371
|
+
|
|
372
|
+
fromJSON(object: any): QueryGroupPolicyInfoResponse {
|
|
373
|
+
return { info: isSet(object.info) ? GroupPolicyInfo.fromJSON(object.info) : undefined };
|
|
374
|
+
},
|
|
375
|
+
|
|
376
|
+
toJSON(message: QueryGroupPolicyInfoResponse): unknown {
|
|
377
|
+
const obj: any = {};
|
|
378
|
+
message.info !== undefined && (obj.info = message.info ? GroupPolicyInfo.toJSON(message.info) : undefined);
|
|
379
|
+
return obj;
|
|
380
|
+
},
|
|
381
|
+
|
|
382
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupPolicyInfoResponse>, I>>(object: I): QueryGroupPolicyInfoResponse {
|
|
383
|
+
const message = createBaseQueryGroupPolicyInfoResponse();
|
|
384
|
+
message.info = (object.info !== undefined && object.info !== null)
|
|
385
|
+
? GroupPolicyInfo.fromPartial(object.info)
|
|
386
|
+
: undefined;
|
|
387
|
+
return message;
|
|
388
|
+
},
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
function createBaseQueryGroupMembersRequest(): QueryGroupMembersRequest {
|
|
392
|
+
return { groupId: 0, pagination: undefined };
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export const QueryGroupMembersRequest = {
|
|
396
|
+
encode(message: QueryGroupMembersRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
397
|
+
if (message.groupId !== 0) {
|
|
398
|
+
writer.uint32(8).uint64(message.groupId);
|
|
399
|
+
}
|
|
400
|
+
if (message.pagination !== undefined) {
|
|
401
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
402
|
+
}
|
|
403
|
+
return writer;
|
|
404
|
+
},
|
|
405
|
+
|
|
406
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupMembersRequest {
|
|
407
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
408
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
409
|
+
const message = createBaseQueryGroupMembersRequest();
|
|
410
|
+
while (reader.pos < end) {
|
|
411
|
+
const tag = reader.uint32();
|
|
412
|
+
switch (tag >>> 3) {
|
|
413
|
+
case 1:
|
|
414
|
+
message.groupId = longToNumber(reader.uint64() as Long);
|
|
415
|
+
break;
|
|
416
|
+
case 2:
|
|
417
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
418
|
+
break;
|
|
419
|
+
default:
|
|
420
|
+
reader.skipType(tag & 7);
|
|
421
|
+
break;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
return message;
|
|
425
|
+
},
|
|
426
|
+
|
|
427
|
+
fromJSON(object: any): QueryGroupMembersRequest {
|
|
428
|
+
return {
|
|
429
|
+
groupId: isSet(object.groupId) ? Number(object.groupId) : 0,
|
|
430
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
431
|
+
};
|
|
432
|
+
},
|
|
433
|
+
|
|
434
|
+
toJSON(message: QueryGroupMembersRequest): unknown {
|
|
435
|
+
const obj: any = {};
|
|
436
|
+
message.groupId !== undefined && (obj.groupId = Math.round(message.groupId));
|
|
437
|
+
message.pagination !== undefined
|
|
438
|
+
&& (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
|
|
439
|
+
return obj;
|
|
440
|
+
},
|
|
441
|
+
|
|
442
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupMembersRequest>, I>>(object: I): QueryGroupMembersRequest {
|
|
443
|
+
const message = createBaseQueryGroupMembersRequest();
|
|
444
|
+
message.groupId = object.groupId ?? 0;
|
|
445
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
446
|
+
? PageRequest.fromPartial(object.pagination)
|
|
447
|
+
: undefined;
|
|
448
|
+
return message;
|
|
449
|
+
},
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
function createBaseQueryGroupMembersResponse(): QueryGroupMembersResponse {
|
|
453
|
+
return { members: [], pagination: undefined };
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export const QueryGroupMembersResponse = {
|
|
457
|
+
encode(message: QueryGroupMembersResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
458
|
+
for (const v of message.members) {
|
|
459
|
+
GroupMember.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
460
|
+
}
|
|
461
|
+
if (message.pagination !== undefined) {
|
|
462
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
463
|
+
}
|
|
464
|
+
return writer;
|
|
465
|
+
},
|
|
466
|
+
|
|
467
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupMembersResponse {
|
|
468
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
469
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
470
|
+
const message = createBaseQueryGroupMembersResponse();
|
|
471
|
+
while (reader.pos < end) {
|
|
472
|
+
const tag = reader.uint32();
|
|
473
|
+
switch (tag >>> 3) {
|
|
474
|
+
case 1:
|
|
475
|
+
message.members.push(GroupMember.decode(reader, reader.uint32()));
|
|
476
|
+
break;
|
|
477
|
+
case 2:
|
|
478
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
479
|
+
break;
|
|
480
|
+
default:
|
|
481
|
+
reader.skipType(tag & 7);
|
|
482
|
+
break;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
return message;
|
|
486
|
+
},
|
|
487
|
+
|
|
488
|
+
fromJSON(object: any): QueryGroupMembersResponse {
|
|
489
|
+
return {
|
|
490
|
+
members: Array.isArray(object?.members) ? object.members.map((e: any) => GroupMember.fromJSON(e)) : [],
|
|
491
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
492
|
+
};
|
|
493
|
+
},
|
|
494
|
+
|
|
495
|
+
toJSON(message: QueryGroupMembersResponse): unknown {
|
|
496
|
+
const obj: any = {};
|
|
497
|
+
if (message.members) {
|
|
498
|
+
obj.members = message.members.map((e) => e ? GroupMember.toJSON(e) : undefined);
|
|
499
|
+
} else {
|
|
500
|
+
obj.members = [];
|
|
501
|
+
}
|
|
502
|
+
message.pagination !== undefined
|
|
503
|
+
&& (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
|
|
504
|
+
return obj;
|
|
505
|
+
},
|
|
506
|
+
|
|
507
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupMembersResponse>, I>>(object: I): QueryGroupMembersResponse {
|
|
508
|
+
const message = createBaseQueryGroupMembersResponse();
|
|
509
|
+
message.members = object.members?.map((e) => GroupMember.fromPartial(e)) || [];
|
|
510
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
511
|
+
? PageResponse.fromPartial(object.pagination)
|
|
512
|
+
: undefined;
|
|
513
|
+
return message;
|
|
514
|
+
},
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
function createBaseQueryGroupsByAdminRequest(): QueryGroupsByAdminRequest {
|
|
518
|
+
return { admin: "", pagination: undefined };
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export const QueryGroupsByAdminRequest = {
|
|
522
|
+
encode(message: QueryGroupsByAdminRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
523
|
+
if (message.admin !== "") {
|
|
524
|
+
writer.uint32(10).string(message.admin);
|
|
525
|
+
}
|
|
526
|
+
if (message.pagination !== undefined) {
|
|
527
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
528
|
+
}
|
|
529
|
+
return writer;
|
|
530
|
+
},
|
|
531
|
+
|
|
532
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByAdminRequest {
|
|
533
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
534
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
535
|
+
const message = createBaseQueryGroupsByAdminRequest();
|
|
536
|
+
while (reader.pos < end) {
|
|
537
|
+
const tag = reader.uint32();
|
|
538
|
+
switch (tag >>> 3) {
|
|
539
|
+
case 1:
|
|
540
|
+
message.admin = reader.string();
|
|
541
|
+
break;
|
|
542
|
+
case 2:
|
|
543
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
544
|
+
break;
|
|
545
|
+
default:
|
|
546
|
+
reader.skipType(tag & 7);
|
|
547
|
+
break;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
return message;
|
|
551
|
+
},
|
|
552
|
+
|
|
553
|
+
fromJSON(object: any): QueryGroupsByAdminRequest {
|
|
554
|
+
return {
|
|
555
|
+
admin: isSet(object.admin) ? String(object.admin) : "",
|
|
556
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
557
|
+
};
|
|
558
|
+
},
|
|
559
|
+
|
|
560
|
+
toJSON(message: QueryGroupsByAdminRequest): unknown {
|
|
561
|
+
const obj: any = {};
|
|
562
|
+
message.admin !== undefined && (obj.admin = message.admin);
|
|
563
|
+
message.pagination !== undefined
|
|
564
|
+
&& (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
|
|
565
|
+
return obj;
|
|
566
|
+
},
|
|
567
|
+
|
|
568
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupsByAdminRequest>, I>>(object: I): QueryGroupsByAdminRequest {
|
|
569
|
+
const message = createBaseQueryGroupsByAdminRequest();
|
|
570
|
+
message.admin = object.admin ?? "";
|
|
571
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
572
|
+
? PageRequest.fromPartial(object.pagination)
|
|
573
|
+
: undefined;
|
|
574
|
+
return message;
|
|
575
|
+
},
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
function createBaseQueryGroupsByAdminResponse(): QueryGroupsByAdminResponse {
|
|
579
|
+
return { groups: [], pagination: undefined };
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export const QueryGroupsByAdminResponse = {
|
|
583
|
+
encode(message: QueryGroupsByAdminResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
584
|
+
for (const v of message.groups) {
|
|
585
|
+
GroupInfo.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
586
|
+
}
|
|
587
|
+
if (message.pagination !== undefined) {
|
|
588
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
589
|
+
}
|
|
590
|
+
return writer;
|
|
591
|
+
},
|
|
592
|
+
|
|
593
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByAdminResponse {
|
|
594
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
595
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
596
|
+
const message = createBaseQueryGroupsByAdminResponse();
|
|
597
|
+
while (reader.pos < end) {
|
|
598
|
+
const tag = reader.uint32();
|
|
599
|
+
switch (tag >>> 3) {
|
|
600
|
+
case 1:
|
|
601
|
+
message.groups.push(GroupInfo.decode(reader, reader.uint32()));
|
|
602
|
+
break;
|
|
603
|
+
case 2:
|
|
604
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
605
|
+
break;
|
|
606
|
+
default:
|
|
607
|
+
reader.skipType(tag & 7);
|
|
608
|
+
break;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
return message;
|
|
612
|
+
},
|
|
613
|
+
|
|
614
|
+
fromJSON(object: any): QueryGroupsByAdminResponse {
|
|
615
|
+
return {
|
|
616
|
+
groups: Array.isArray(object?.groups) ? object.groups.map((e: any) => GroupInfo.fromJSON(e)) : [],
|
|
617
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
618
|
+
};
|
|
619
|
+
},
|
|
620
|
+
|
|
621
|
+
toJSON(message: QueryGroupsByAdminResponse): unknown {
|
|
622
|
+
const obj: any = {};
|
|
623
|
+
if (message.groups) {
|
|
624
|
+
obj.groups = message.groups.map((e) => e ? GroupInfo.toJSON(e) : undefined);
|
|
625
|
+
} else {
|
|
626
|
+
obj.groups = [];
|
|
627
|
+
}
|
|
628
|
+
message.pagination !== undefined
|
|
629
|
+
&& (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
|
|
630
|
+
return obj;
|
|
631
|
+
},
|
|
632
|
+
|
|
633
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupsByAdminResponse>, I>>(object: I): QueryGroupsByAdminResponse {
|
|
634
|
+
const message = createBaseQueryGroupsByAdminResponse();
|
|
635
|
+
message.groups = object.groups?.map((e) => GroupInfo.fromPartial(e)) || [];
|
|
636
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
637
|
+
? PageResponse.fromPartial(object.pagination)
|
|
638
|
+
: undefined;
|
|
639
|
+
return message;
|
|
640
|
+
},
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
function createBaseQueryGroupPoliciesByGroupRequest(): QueryGroupPoliciesByGroupRequest {
|
|
644
|
+
return { groupId: 0, pagination: undefined };
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
export const QueryGroupPoliciesByGroupRequest = {
|
|
648
|
+
encode(message: QueryGroupPoliciesByGroupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
649
|
+
if (message.groupId !== 0) {
|
|
650
|
+
writer.uint32(8).uint64(message.groupId);
|
|
651
|
+
}
|
|
652
|
+
if (message.pagination !== undefined) {
|
|
653
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
654
|
+
}
|
|
655
|
+
return writer;
|
|
656
|
+
},
|
|
657
|
+
|
|
658
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByGroupRequest {
|
|
659
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
660
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
661
|
+
const message = createBaseQueryGroupPoliciesByGroupRequest();
|
|
662
|
+
while (reader.pos < end) {
|
|
663
|
+
const tag = reader.uint32();
|
|
664
|
+
switch (tag >>> 3) {
|
|
665
|
+
case 1:
|
|
666
|
+
message.groupId = longToNumber(reader.uint64() as Long);
|
|
667
|
+
break;
|
|
668
|
+
case 2:
|
|
669
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
670
|
+
break;
|
|
671
|
+
default:
|
|
672
|
+
reader.skipType(tag & 7);
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
return message;
|
|
677
|
+
},
|
|
678
|
+
|
|
679
|
+
fromJSON(object: any): QueryGroupPoliciesByGroupRequest {
|
|
680
|
+
return {
|
|
681
|
+
groupId: isSet(object.groupId) ? Number(object.groupId) : 0,
|
|
682
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
683
|
+
};
|
|
684
|
+
},
|
|
685
|
+
|
|
686
|
+
toJSON(message: QueryGroupPoliciesByGroupRequest): unknown {
|
|
687
|
+
const obj: any = {};
|
|
688
|
+
message.groupId !== undefined && (obj.groupId = Math.round(message.groupId));
|
|
689
|
+
message.pagination !== undefined
|
|
690
|
+
&& (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
|
|
691
|
+
return obj;
|
|
692
|
+
},
|
|
693
|
+
|
|
694
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupPoliciesByGroupRequest>, I>>(
|
|
695
|
+
object: I,
|
|
696
|
+
): QueryGroupPoliciesByGroupRequest {
|
|
697
|
+
const message = createBaseQueryGroupPoliciesByGroupRequest();
|
|
698
|
+
message.groupId = object.groupId ?? 0;
|
|
699
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
700
|
+
? PageRequest.fromPartial(object.pagination)
|
|
701
|
+
: undefined;
|
|
702
|
+
return message;
|
|
703
|
+
},
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
function createBaseQueryGroupPoliciesByGroupResponse(): QueryGroupPoliciesByGroupResponse {
|
|
707
|
+
return { groupPolicies: [], pagination: undefined };
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export const QueryGroupPoliciesByGroupResponse = {
|
|
711
|
+
encode(message: QueryGroupPoliciesByGroupResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
712
|
+
for (const v of message.groupPolicies) {
|
|
713
|
+
GroupPolicyInfo.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
714
|
+
}
|
|
715
|
+
if (message.pagination !== undefined) {
|
|
716
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
717
|
+
}
|
|
718
|
+
return writer;
|
|
719
|
+
},
|
|
720
|
+
|
|
721
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByGroupResponse {
|
|
722
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
723
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
724
|
+
const message = createBaseQueryGroupPoliciesByGroupResponse();
|
|
725
|
+
while (reader.pos < end) {
|
|
726
|
+
const tag = reader.uint32();
|
|
727
|
+
switch (tag >>> 3) {
|
|
728
|
+
case 1:
|
|
729
|
+
message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32()));
|
|
730
|
+
break;
|
|
731
|
+
case 2:
|
|
732
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
733
|
+
break;
|
|
734
|
+
default:
|
|
735
|
+
reader.skipType(tag & 7);
|
|
736
|
+
break;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
return message;
|
|
740
|
+
},
|
|
741
|
+
|
|
742
|
+
fromJSON(object: any): QueryGroupPoliciesByGroupResponse {
|
|
743
|
+
return {
|
|
744
|
+
groupPolicies: Array.isArray(object?.groupPolicies)
|
|
745
|
+
? object.groupPolicies.map((e: any) => GroupPolicyInfo.fromJSON(e))
|
|
746
|
+
: [],
|
|
747
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
748
|
+
};
|
|
749
|
+
},
|
|
750
|
+
|
|
751
|
+
toJSON(message: QueryGroupPoliciesByGroupResponse): unknown {
|
|
752
|
+
const obj: any = {};
|
|
753
|
+
if (message.groupPolicies) {
|
|
754
|
+
obj.groupPolicies = message.groupPolicies.map((e) => e ? GroupPolicyInfo.toJSON(e) : undefined);
|
|
755
|
+
} else {
|
|
756
|
+
obj.groupPolicies = [];
|
|
757
|
+
}
|
|
758
|
+
message.pagination !== undefined
|
|
759
|
+
&& (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
|
|
760
|
+
return obj;
|
|
761
|
+
},
|
|
762
|
+
|
|
763
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupPoliciesByGroupResponse>, I>>(
|
|
764
|
+
object: I,
|
|
765
|
+
): QueryGroupPoliciesByGroupResponse {
|
|
766
|
+
const message = createBaseQueryGroupPoliciesByGroupResponse();
|
|
767
|
+
message.groupPolicies = object.groupPolicies?.map((e) => GroupPolicyInfo.fromPartial(e)) || [];
|
|
768
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
769
|
+
? PageResponse.fromPartial(object.pagination)
|
|
770
|
+
: undefined;
|
|
771
|
+
return message;
|
|
772
|
+
},
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
function createBaseQueryGroupPoliciesByAdminRequest(): QueryGroupPoliciesByAdminRequest {
|
|
776
|
+
return { admin: "", pagination: undefined };
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
export const QueryGroupPoliciesByAdminRequest = {
|
|
780
|
+
encode(message: QueryGroupPoliciesByAdminRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
781
|
+
if (message.admin !== "") {
|
|
782
|
+
writer.uint32(10).string(message.admin);
|
|
783
|
+
}
|
|
784
|
+
if (message.pagination !== undefined) {
|
|
785
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
786
|
+
}
|
|
787
|
+
return writer;
|
|
788
|
+
},
|
|
789
|
+
|
|
790
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByAdminRequest {
|
|
791
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
792
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
793
|
+
const message = createBaseQueryGroupPoliciesByAdminRequest();
|
|
794
|
+
while (reader.pos < end) {
|
|
795
|
+
const tag = reader.uint32();
|
|
796
|
+
switch (tag >>> 3) {
|
|
797
|
+
case 1:
|
|
798
|
+
message.admin = reader.string();
|
|
799
|
+
break;
|
|
800
|
+
case 2:
|
|
801
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
802
|
+
break;
|
|
803
|
+
default:
|
|
804
|
+
reader.skipType(tag & 7);
|
|
805
|
+
break;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
return message;
|
|
809
|
+
},
|
|
810
|
+
|
|
811
|
+
fromJSON(object: any): QueryGroupPoliciesByAdminRequest {
|
|
812
|
+
return {
|
|
813
|
+
admin: isSet(object.admin) ? String(object.admin) : "",
|
|
814
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
815
|
+
};
|
|
816
|
+
},
|
|
817
|
+
|
|
818
|
+
toJSON(message: QueryGroupPoliciesByAdminRequest): unknown {
|
|
819
|
+
const obj: any = {};
|
|
820
|
+
message.admin !== undefined && (obj.admin = message.admin);
|
|
821
|
+
message.pagination !== undefined
|
|
822
|
+
&& (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
|
|
823
|
+
return obj;
|
|
824
|
+
},
|
|
825
|
+
|
|
826
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupPoliciesByAdminRequest>, I>>(
|
|
827
|
+
object: I,
|
|
828
|
+
): QueryGroupPoliciesByAdminRequest {
|
|
829
|
+
const message = createBaseQueryGroupPoliciesByAdminRequest();
|
|
830
|
+
message.admin = object.admin ?? "";
|
|
831
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
832
|
+
? PageRequest.fromPartial(object.pagination)
|
|
833
|
+
: undefined;
|
|
834
|
+
return message;
|
|
835
|
+
},
|
|
836
|
+
};
|
|
837
|
+
|
|
838
|
+
function createBaseQueryGroupPoliciesByAdminResponse(): QueryGroupPoliciesByAdminResponse {
|
|
839
|
+
return { groupPolicies: [], pagination: undefined };
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
export const QueryGroupPoliciesByAdminResponse = {
|
|
843
|
+
encode(message: QueryGroupPoliciesByAdminResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
844
|
+
for (const v of message.groupPolicies) {
|
|
845
|
+
GroupPolicyInfo.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
846
|
+
}
|
|
847
|
+
if (message.pagination !== undefined) {
|
|
848
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
849
|
+
}
|
|
850
|
+
return writer;
|
|
851
|
+
},
|
|
852
|
+
|
|
853
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByAdminResponse {
|
|
854
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
855
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
856
|
+
const message = createBaseQueryGroupPoliciesByAdminResponse();
|
|
857
|
+
while (reader.pos < end) {
|
|
858
|
+
const tag = reader.uint32();
|
|
859
|
+
switch (tag >>> 3) {
|
|
860
|
+
case 1:
|
|
861
|
+
message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32()));
|
|
862
|
+
break;
|
|
863
|
+
case 2:
|
|
864
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
865
|
+
break;
|
|
866
|
+
default:
|
|
867
|
+
reader.skipType(tag & 7);
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
return message;
|
|
872
|
+
},
|
|
873
|
+
|
|
874
|
+
fromJSON(object: any): QueryGroupPoliciesByAdminResponse {
|
|
875
|
+
return {
|
|
876
|
+
groupPolicies: Array.isArray(object?.groupPolicies)
|
|
877
|
+
? object.groupPolicies.map((e: any) => GroupPolicyInfo.fromJSON(e))
|
|
878
|
+
: [],
|
|
879
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
880
|
+
};
|
|
881
|
+
},
|
|
882
|
+
|
|
883
|
+
toJSON(message: QueryGroupPoliciesByAdminResponse): unknown {
|
|
884
|
+
const obj: any = {};
|
|
885
|
+
if (message.groupPolicies) {
|
|
886
|
+
obj.groupPolicies = message.groupPolicies.map((e) => e ? GroupPolicyInfo.toJSON(e) : undefined);
|
|
887
|
+
} else {
|
|
888
|
+
obj.groupPolicies = [];
|
|
889
|
+
}
|
|
890
|
+
message.pagination !== undefined
|
|
891
|
+
&& (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
|
|
892
|
+
return obj;
|
|
893
|
+
},
|
|
894
|
+
|
|
895
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupPoliciesByAdminResponse>, I>>(
|
|
896
|
+
object: I,
|
|
897
|
+
): QueryGroupPoliciesByAdminResponse {
|
|
898
|
+
const message = createBaseQueryGroupPoliciesByAdminResponse();
|
|
899
|
+
message.groupPolicies = object.groupPolicies?.map((e) => GroupPolicyInfo.fromPartial(e)) || [];
|
|
900
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
901
|
+
? PageResponse.fromPartial(object.pagination)
|
|
902
|
+
: undefined;
|
|
903
|
+
return message;
|
|
904
|
+
},
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
function createBaseQueryProposalRequest(): QueryProposalRequest {
|
|
908
|
+
return { proposalId: 0 };
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
export const QueryProposalRequest = {
|
|
912
|
+
encode(message: QueryProposalRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
913
|
+
if (message.proposalId !== 0) {
|
|
914
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
915
|
+
}
|
|
916
|
+
return writer;
|
|
917
|
+
},
|
|
918
|
+
|
|
919
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest {
|
|
920
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
921
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
922
|
+
const message = createBaseQueryProposalRequest();
|
|
923
|
+
while (reader.pos < end) {
|
|
924
|
+
const tag = reader.uint32();
|
|
925
|
+
switch (tag >>> 3) {
|
|
926
|
+
case 1:
|
|
927
|
+
message.proposalId = longToNumber(reader.uint64() as Long);
|
|
928
|
+
break;
|
|
929
|
+
default:
|
|
930
|
+
reader.skipType(tag & 7);
|
|
931
|
+
break;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
return message;
|
|
935
|
+
},
|
|
936
|
+
|
|
937
|
+
fromJSON(object: any): QueryProposalRequest {
|
|
938
|
+
return { proposalId: isSet(object.proposalId) ? Number(object.proposalId) : 0 };
|
|
939
|
+
},
|
|
940
|
+
|
|
941
|
+
toJSON(message: QueryProposalRequest): unknown {
|
|
942
|
+
const obj: any = {};
|
|
943
|
+
message.proposalId !== undefined && (obj.proposalId = Math.round(message.proposalId));
|
|
944
|
+
return obj;
|
|
945
|
+
},
|
|
946
|
+
|
|
947
|
+
fromPartial<I extends Exact<DeepPartial<QueryProposalRequest>, I>>(object: I): QueryProposalRequest {
|
|
948
|
+
const message = createBaseQueryProposalRequest();
|
|
949
|
+
message.proposalId = object.proposalId ?? 0;
|
|
950
|
+
return message;
|
|
951
|
+
},
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
function createBaseQueryProposalResponse(): QueryProposalResponse {
|
|
955
|
+
return { proposal: undefined };
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
export const QueryProposalResponse = {
|
|
959
|
+
encode(message: QueryProposalResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
960
|
+
if (message.proposal !== undefined) {
|
|
961
|
+
Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim();
|
|
962
|
+
}
|
|
963
|
+
return writer;
|
|
964
|
+
},
|
|
965
|
+
|
|
966
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse {
|
|
967
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
968
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
969
|
+
const message = createBaseQueryProposalResponse();
|
|
970
|
+
while (reader.pos < end) {
|
|
971
|
+
const tag = reader.uint32();
|
|
972
|
+
switch (tag >>> 3) {
|
|
973
|
+
case 1:
|
|
974
|
+
message.proposal = Proposal.decode(reader, reader.uint32());
|
|
975
|
+
break;
|
|
976
|
+
default:
|
|
977
|
+
reader.skipType(tag & 7);
|
|
978
|
+
break;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
return message;
|
|
982
|
+
},
|
|
983
|
+
|
|
984
|
+
fromJSON(object: any): QueryProposalResponse {
|
|
985
|
+
return { proposal: isSet(object.proposal) ? Proposal.fromJSON(object.proposal) : undefined };
|
|
986
|
+
},
|
|
987
|
+
|
|
988
|
+
toJSON(message: QueryProposalResponse): unknown {
|
|
989
|
+
const obj: any = {};
|
|
990
|
+
message.proposal !== undefined && (obj.proposal = message.proposal ? Proposal.toJSON(message.proposal) : undefined);
|
|
991
|
+
return obj;
|
|
992
|
+
},
|
|
993
|
+
|
|
994
|
+
fromPartial<I extends Exact<DeepPartial<QueryProposalResponse>, I>>(object: I): QueryProposalResponse {
|
|
995
|
+
const message = createBaseQueryProposalResponse();
|
|
996
|
+
message.proposal = (object.proposal !== undefined && object.proposal !== null)
|
|
997
|
+
? Proposal.fromPartial(object.proposal)
|
|
998
|
+
: undefined;
|
|
999
|
+
return message;
|
|
1000
|
+
},
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
function createBaseQueryProposalsByGroupPolicyRequest(): QueryProposalsByGroupPolicyRequest {
|
|
1004
|
+
return { address: "", pagination: undefined };
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
export const QueryProposalsByGroupPolicyRequest = {
|
|
1008
|
+
encode(message: QueryProposalsByGroupPolicyRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1009
|
+
if (message.address !== "") {
|
|
1010
|
+
writer.uint32(10).string(message.address);
|
|
1011
|
+
}
|
|
1012
|
+
if (message.pagination !== undefined) {
|
|
1013
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1014
|
+
}
|
|
1015
|
+
return writer;
|
|
1016
|
+
},
|
|
1017
|
+
|
|
1018
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsByGroupPolicyRequest {
|
|
1019
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1020
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1021
|
+
const message = createBaseQueryProposalsByGroupPolicyRequest();
|
|
1022
|
+
while (reader.pos < end) {
|
|
1023
|
+
const tag = reader.uint32();
|
|
1024
|
+
switch (tag >>> 3) {
|
|
1025
|
+
case 1:
|
|
1026
|
+
message.address = reader.string();
|
|
1027
|
+
break;
|
|
1028
|
+
case 2:
|
|
1029
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1030
|
+
break;
|
|
1031
|
+
default:
|
|
1032
|
+
reader.skipType(tag & 7);
|
|
1033
|
+
break;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
return message;
|
|
1037
|
+
},
|
|
1038
|
+
|
|
1039
|
+
fromJSON(object: any): QueryProposalsByGroupPolicyRequest {
|
|
1040
|
+
return {
|
|
1041
|
+
address: isSet(object.address) ? String(object.address) : "",
|
|
1042
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1043
|
+
};
|
|
1044
|
+
},
|
|
1045
|
+
|
|
1046
|
+
toJSON(message: QueryProposalsByGroupPolicyRequest): unknown {
|
|
1047
|
+
const obj: any = {};
|
|
1048
|
+
message.address !== undefined && (obj.address = message.address);
|
|
1049
|
+
message.pagination !== undefined
|
|
1050
|
+
&& (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
|
|
1051
|
+
return obj;
|
|
1052
|
+
},
|
|
1053
|
+
|
|
1054
|
+
fromPartial<I extends Exact<DeepPartial<QueryProposalsByGroupPolicyRequest>, I>>(
|
|
1055
|
+
object: I,
|
|
1056
|
+
): QueryProposalsByGroupPolicyRequest {
|
|
1057
|
+
const message = createBaseQueryProposalsByGroupPolicyRequest();
|
|
1058
|
+
message.address = object.address ?? "";
|
|
1059
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1060
|
+
? PageRequest.fromPartial(object.pagination)
|
|
1061
|
+
: undefined;
|
|
1062
|
+
return message;
|
|
1063
|
+
},
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
function createBaseQueryProposalsByGroupPolicyResponse(): QueryProposalsByGroupPolicyResponse {
|
|
1067
|
+
return { proposals: [], pagination: undefined };
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
export const QueryProposalsByGroupPolicyResponse = {
|
|
1071
|
+
encode(message: QueryProposalsByGroupPolicyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1072
|
+
for (const v of message.proposals) {
|
|
1073
|
+
Proposal.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1074
|
+
}
|
|
1075
|
+
if (message.pagination !== undefined) {
|
|
1076
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1077
|
+
}
|
|
1078
|
+
return writer;
|
|
1079
|
+
},
|
|
1080
|
+
|
|
1081
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsByGroupPolicyResponse {
|
|
1082
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1083
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1084
|
+
const message = createBaseQueryProposalsByGroupPolicyResponse();
|
|
1085
|
+
while (reader.pos < end) {
|
|
1086
|
+
const tag = reader.uint32();
|
|
1087
|
+
switch (tag >>> 3) {
|
|
1088
|
+
case 1:
|
|
1089
|
+
message.proposals.push(Proposal.decode(reader, reader.uint32()));
|
|
1090
|
+
break;
|
|
1091
|
+
case 2:
|
|
1092
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1093
|
+
break;
|
|
1094
|
+
default:
|
|
1095
|
+
reader.skipType(tag & 7);
|
|
1096
|
+
break;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
return message;
|
|
1100
|
+
},
|
|
1101
|
+
|
|
1102
|
+
fromJSON(object: any): QueryProposalsByGroupPolicyResponse {
|
|
1103
|
+
return {
|
|
1104
|
+
proposals: Array.isArray(object?.proposals) ? object.proposals.map((e: any) => Proposal.fromJSON(e)) : [],
|
|
1105
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1106
|
+
};
|
|
1107
|
+
},
|
|
1108
|
+
|
|
1109
|
+
toJSON(message: QueryProposalsByGroupPolicyResponse): unknown {
|
|
1110
|
+
const obj: any = {};
|
|
1111
|
+
if (message.proposals) {
|
|
1112
|
+
obj.proposals = message.proposals.map((e) => e ? Proposal.toJSON(e) : undefined);
|
|
1113
|
+
} else {
|
|
1114
|
+
obj.proposals = [];
|
|
1115
|
+
}
|
|
1116
|
+
message.pagination !== undefined
|
|
1117
|
+
&& (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
|
|
1118
|
+
return obj;
|
|
1119
|
+
},
|
|
1120
|
+
|
|
1121
|
+
fromPartial<I extends Exact<DeepPartial<QueryProposalsByGroupPolicyResponse>, I>>(
|
|
1122
|
+
object: I,
|
|
1123
|
+
): QueryProposalsByGroupPolicyResponse {
|
|
1124
|
+
const message = createBaseQueryProposalsByGroupPolicyResponse();
|
|
1125
|
+
message.proposals = object.proposals?.map((e) => Proposal.fromPartial(e)) || [];
|
|
1126
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1127
|
+
? PageResponse.fromPartial(object.pagination)
|
|
1128
|
+
: undefined;
|
|
1129
|
+
return message;
|
|
1130
|
+
},
|
|
1131
|
+
};
|
|
1132
|
+
|
|
1133
|
+
function createBaseQueryVoteByProposalVoterRequest(): QueryVoteByProposalVoterRequest {
|
|
1134
|
+
return { proposalId: 0, voter: "" };
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
export const QueryVoteByProposalVoterRequest = {
|
|
1138
|
+
encode(message: QueryVoteByProposalVoterRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1139
|
+
if (message.proposalId !== 0) {
|
|
1140
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
1141
|
+
}
|
|
1142
|
+
if (message.voter !== "") {
|
|
1143
|
+
writer.uint32(18).string(message.voter);
|
|
1144
|
+
}
|
|
1145
|
+
return writer;
|
|
1146
|
+
},
|
|
1147
|
+
|
|
1148
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteByProposalVoterRequest {
|
|
1149
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1150
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1151
|
+
const message = createBaseQueryVoteByProposalVoterRequest();
|
|
1152
|
+
while (reader.pos < end) {
|
|
1153
|
+
const tag = reader.uint32();
|
|
1154
|
+
switch (tag >>> 3) {
|
|
1155
|
+
case 1:
|
|
1156
|
+
message.proposalId = longToNumber(reader.uint64() as Long);
|
|
1157
|
+
break;
|
|
1158
|
+
case 2:
|
|
1159
|
+
message.voter = reader.string();
|
|
1160
|
+
break;
|
|
1161
|
+
default:
|
|
1162
|
+
reader.skipType(tag & 7);
|
|
1163
|
+
break;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
return message;
|
|
1167
|
+
},
|
|
1168
|
+
|
|
1169
|
+
fromJSON(object: any): QueryVoteByProposalVoterRequest {
|
|
1170
|
+
return {
|
|
1171
|
+
proposalId: isSet(object.proposalId) ? Number(object.proposalId) : 0,
|
|
1172
|
+
voter: isSet(object.voter) ? String(object.voter) : "",
|
|
1173
|
+
};
|
|
1174
|
+
},
|
|
1175
|
+
|
|
1176
|
+
toJSON(message: QueryVoteByProposalVoterRequest): unknown {
|
|
1177
|
+
const obj: any = {};
|
|
1178
|
+
message.proposalId !== undefined && (obj.proposalId = Math.round(message.proposalId));
|
|
1179
|
+
message.voter !== undefined && (obj.voter = message.voter);
|
|
1180
|
+
return obj;
|
|
1181
|
+
},
|
|
1182
|
+
|
|
1183
|
+
fromPartial<I extends Exact<DeepPartial<QueryVoteByProposalVoterRequest>, I>>(
|
|
1184
|
+
object: I,
|
|
1185
|
+
): QueryVoteByProposalVoterRequest {
|
|
1186
|
+
const message = createBaseQueryVoteByProposalVoterRequest();
|
|
1187
|
+
message.proposalId = object.proposalId ?? 0;
|
|
1188
|
+
message.voter = object.voter ?? "";
|
|
1189
|
+
return message;
|
|
1190
|
+
},
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1193
|
+
function createBaseQueryVoteByProposalVoterResponse(): QueryVoteByProposalVoterResponse {
|
|
1194
|
+
return { vote: undefined };
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
export const QueryVoteByProposalVoterResponse = {
|
|
1198
|
+
encode(message: QueryVoteByProposalVoterResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1199
|
+
if (message.vote !== undefined) {
|
|
1200
|
+
Vote.encode(message.vote, writer.uint32(10).fork()).ldelim();
|
|
1201
|
+
}
|
|
1202
|
+
return writer;
|
|
1203
|
+
},
|
|
1204
|
+
|
|
1205
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteByProposalVoterResponse {
|
|
1206
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1207
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1208
|
+
const message = createBaseQueryVoteByProposalVoterResponse();
|
|
1209
|
+
while (reader.pos < end) {
|
|
1210
|
+
const tag = reader.uint32();
|
|
1211
|
+
switch (tag >>> 3) {
|
|
1212
|
+
case 1:
|
|
1213
|
+
message.vote = Vote.decode(reader, reader.uint32());
|
|
1214
|
+
break;
|
|
1215
|
+
default:
|
|
1216
|
+
reader.skipType(tag & 7);
|
|
1217
|
+
break;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
return message;
|
|
1221
|
+
},
|
|
1222
|
+
|
|
1223
|
+
fromJSON(object: any): QueryVoteByProposalVoterResponse {
|
|
1224
|
+
return { vote: isSet(object.vote) ? Vote.fromJSON(object.vote) : undefined };
|
|
1225
|
+
},
|
|
1226
|
+
|
|
1227
|
+
toJSON(message: QueryVoteByProposalVoterResponse): unknown {
|
|
1228
|
+
const obj: any = {};
|
|
1229
|
+
message.vote !== undefined && (obj.vote = message.vote ? Vote.toJSON(message.vote) : undefined);
|
|
1230
|
+
return obj;
|
|
1231
|
+
},
|
|
1232
|
+
|
|
1233
|
+
fromPartial<I extends Exact<DeepPartial<QueryVoteByProposalVoterResponse>, I>>(
|
|
1234
|
+
object: I,
|
|
1235
|
+
): QueryVoteByProposalVoterResponse {
|
|
1236
|
+
const message = createBaseQueryVoteByProposalVoterResponse();
|
|
1237
|
+
message.vote = (object.vote !== undefined && object.vote !== null) ? Vote.fromPartial(object.vote) : undefined;
|
|
1238
|
+
return message;
|
|
1239
|
+
},
|
|
1240
|
+
};
|
|
1241
|
+
|
|
1242
|
+
function createBaseQueryVotesByProposalRequest(): QueryVotesByProposalRequest {
|
|
1243
|
+
return { proposalId: 0, pagination: undefined };
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
export const QueryVotesByProposalRequest = {
|
|
1247
|
+
encode(message: QueryVotesByProposalRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1248
|
+
if (message.proposalId !== 0) {
|
|
1249
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
1250
|
+
}
|
|
1251
|
+
if (message.pagination !== undefined) {
|
|
1252
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1253
|
+
}
|
|
1254
|
+
return writer;
|
|
1255
|
+
},
|
|
1256
|
+
|
|
1257
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByProposalRequest {
|
|
1258
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1259
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1260
|
+
const message = createBaseQueryVotesByProposalRequest();
|
|
1261
|
+
while (reader.pos < end) {
|
|
1262
|
+
const tag = reader.uint32();
|
|
1263
|
+
switch (tag >>> 3) {
|
|
1264
|
+
case 1:
|
|
1265
|
+
message.proposalId = longToNumber(reader.uint64() as Long);
|
|
1266
|
+
break;
|
|
1267
|
+
case 2:
|
|
1268
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1269
|
+
break;
|
|
1270
|
+
default:
|
|
1271
|
+
reader.skipType(tag & 7);
|
|
1272
|
+
break;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
return message;
|
|
1276
|
+
},
|
|
1277
|
+
|
|
1278
|
+
fromJSON(object: any): QueryVotesByProposalRequest {
|
|
1279
|
+
return {
|
|
1280
|
+
proposalId: isSet(object.proposalId) ? Number(object.proposalId) : 0,
|
|
1281
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1282
|
+
};
|
|
1283
|
+
},
|
|
1284
|
+
|
|
1285
|
+
toJSON(message: QueryVotesByProposalRequest): unknown {
|
|
1286
|
+
const obj: any = {};
|
|
1287
|
+
message.proposalId !== undefined && (obj.proposalId = Math.round(message.proposalId));
|
|
1288
|
+
message.pagination !== undefined
|
|
1289
|
+
&& (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
|
|
1290
|
+
return obj;
|
|
1291
|
+
},
|
|
1292
|
+
|
|
1293
|
+
fromPartial<I extends Exact<DeepPartial<QueryVotesByProposalRequest>, I>>(object: I): QueryVotesByProposalRequest {
|
|
1294
|
+
const message = createBaseQueryVotesByProposalRequest();
|
|
1295
|
+
message.proposalId = object.proposalId ?? 0;
|
|
1296
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1297
|
+
? PageRequest.fromPartial(object.pagination)
|
|
1298
|
+
: undefined;
|
|
1299
|
+
return message;
|
|
1300
|
+
},
|
|
1301
|
+
};
|
|
1302
|
+
|
|
1303
|
+
function createBaseQueryVotesByProposalResponse(): QueryVotesByProposalResponse {
|
|
1304
|
+
return { votes: [], pagination: undefined };
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
export const QueryVotesByProposalResponse = {
|
|
1308
|
+
encode(message: QueryVotesByProposalResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1309
|
+
for (const v of message.votes) {
|
|
1310
|
+
Vote.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1311
|
+
}
|
|
1312
|
+
if (message.pagination !== undefined) {
|
|
1313
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1314
|
+
}
|
|
1315
|
+
return writer;
|
|
1316
|
+
},
|
|
1317
|
+
|
|
1318
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByProposalResponse {
|
|
1319
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1320
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1321
|
+
const message = createBaseQueryVotesByProposalResponse();
|
|
1322
|
+
while (reader.pos < end) {
|
|
1323
|
+
const tag = reader.uint32();
|
|
1324
|
+
switch (tag >>> 3) {
|
|
1325
|
+
case 1:
|
|
1326
|
+
message.votes.push(Vote.decode(reader, reader.uint32()));
|
|
1327
|
+
break;
|
|
1328
|
+
case 2:
|
|
1329
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1330
|
+
break;
|
|
1331
|
+
default:
|
|
1332
|
+
reader.skipType(tag & 7);
|
|
1333
|
+
break;
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
return message;
|
|
1337
|
+
},
|
|
1338
|
+
|
|
1339
|
+
fromJSON(object: any): QueryVotesByProposalResponse {
|
|
1340
|
+
return {
|
|
1341
|
+
votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => Vote.fromJSON(e)) : [],
|
|
1342
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1343
|
+
};
|
|
1344
|
+
},
|
|
1345
|
+
|
|
1346
|
+
toJSON(message: QueryVotesByProposalResponse): unknown {
|
|
1347
|
+
const obj: any = {};
|
|
1348
|
+
if (message.votes) {
|
|
1349
|
+
obj.votes = message.votes.map((e) => e ? Vote.toJSON(e) : undefined);
|
|
1350
|
+
} else {
|
|
1351
|
+
obj.votes = [];
|
|
1352
|
+
}
|
|
1353
|
+
message.pagination !== undefined
|
|
1354
|
+
&& (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
|
|
1355
|
+
return obj;
|
|
1356
|
+
},
|
|
1357
|
+
|
|
1358
|
+
fromPartial<I extends Exact<DeepPartial<QueryVotesByProposalResponse>, I>>(object: I): QueryVotesByProposalResponse {
|
|
1359
|
+
const message = createBaseQueryVotesByProposalResponse();
|
|
1360
|
+
message.votes = object.votes?.map((e) => Vote.fromPartial(e)) || [];
|
|
1361
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1362
|
+
? PageResponse.fromPartial(object.pagination)
|
|
1363
|
+
: undefined;
|
|
1364
|
+
return message;
|
|
1365
|
+
},
|
|
1366
|
+
};
|
|
1367
|
+
|
|
1368
|
+
function createBaseQueryVotesByVoterRequest(): QueryVotesByVoterRequest {
|
|
1369
|
+
return { voter: "", pagination: undefined };
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
export const QueryVotesByVoterRequest = {
|
|
1373
|
+
encode(message: QueryVotesByVoterRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1374
|
+
if (message.voter !== "") {
|
|
1375
|
+
writer.uint32(10).string(message.voter);
|
|
1376
|
+
}
|
|
1377
|
+
if (message.pagination !== undefined) {
|
|
1378
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1379
|
+
}
|
|
1380
|
+
return writer;
|
|
1381
|
+
},
|
|
1382
|
+
|
|
1383
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByVoterRequest {
|
|
1384
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1385
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1386
|
+
const message = createBaseQueryVotesByVoterRequest();
|
|
1387
|
+
while (reader.pos < end) {
|
|
1388
|
+
const tag = reader.uint32();
|
|
1389
|
+
switch (tag >>> 3) {
|
|
1390
|
+
case 1:
|
|
1391
|
+
message.voter = reader.string();
|
|
1392
|
+
break;
|
|
1393
|
+
case 2:
|
|
1394
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1395
|
+
break;
|
|
1396
|
+
default:
|
|
1397
|
+
reader.skipType(tag & 7);
|
|
1398
|
+
break;
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
return message;
|
|
1402
|
+
},
|
|
1403
|
+
|
|
1404
|
+
fromJSON(object: any): QueryVotesByVoterRequest {
|
|
1405
|
+
return {
|
|
1406
|
+
voter: isSet(object.voter) ? String(object.voter) : "",
|
|
1407
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1408
|
+
};
|
|
1409
|
+
},
|
|
1410
|
+
|
|
1411
|
+
toJSON(message: QueryVotesByVoterRequest): unknown {
|
|
1412
|
+
const obj: any = {};
|
|
1413
|
+
message.voter !== undefined && (obj.voter = message.voter);
|
|
1414
|
+
message.pagination !== undefined
|
|
1415
|
+
&& (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
|
|
1416
|
+
return obj;
|
|
1417
|
+
},
|
|
1418
|
+
|
|
1419
|
+
fromPartial<I extends Exact<DeepPartial<QueryVotesByVoterRequest>, I>>(object: I): QueryVotesByVoterRequest {
|
|
1420
|
+
const message = createBaseQueryVotesByVoterRequest();
|
|
1421
|
+
message.voter = object.voter ?? "";
|
|
1422
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1423
|
+
? PageRequest.fromPartial(object.pagination)
|
|
1424
|
+
: undefined;
|
|
1425
|
+
return message;
|
|
1426
|
+
},
|
|
1427
|
+
};
|
|
1428
|
+
|
|
1429
|
+
function createBaseQueryVotesByVoterResponse(): QueryVotesByVoterResponse {
|
|
1430
|
+
return { votes: [], pagination: undefined };
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
export const QueryVotesByVoterResponse = {
|
|
1434
|
+
encode(message: QueryVotesByVoterResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1435
|
+
for (const v of message.votes) {
|
|
1436
|
+
Vote.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1437
|
+
}
|
|
1438
|
+
if (message.pagination !== undefined) {
|
|
1439
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1440
|
+
}
|
|
1441
|
+
return writer;
|
|
1442
|
+
},
|
|
1443
|
+
|
|
1444
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByVoterResponse {
|
|
1445
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1446
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1447
|
+
const message = createBaseQueryVotesByVoterResponse();
|
|
1448
|
+
while (reader.pos < end) {
|
|
1449
|
+
const tag = reader.uint32();
|
|
1450
|
+
switch (tag >>> 3) {
|
|
1451
|
+
case 1:
|
|
1452
|
+
message.votes.push(Vote.decode(reader, reader.uint32()));
|
|
1453
|
+
break;
|
|
1454
|
+
case 2:
|
|
1455
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1456
|
+
break;
|
|
1457
|
+
default:
|
|
1458
|
+
reader.skipType(tag & 7);
|
|
1459
|
+
break;
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
return message;
|
|
1463
|
+
},
|
|
1464
|
+
|
|
1465
|
+
fromJSON(object: any): QueryVotesByVoterResponse {
|
|
1466
|
+
return {
|
|
1467
|
+
votes: Array.isArray(object?.votes) ? object.votes.map((e: any) => Vote.fromJSON(e)) : [],
|
|
1468
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1469
|
+
};
|
|
1470
|
+
},
|
|
1471
|
+
|
|
1472
|
+
toJSON(message: QueryVotesByVoterResponse): unknown {
|
|
1473
|
+
const obj: any = {};
|
|
1474
|
+
if (message.votes) {
|
|
1475
|
+
obj.votes = message.votes.map((e) => e ? Vote.toJSON(e) : undefined);
|
|
1476
|
+
} else {
|
|
1477
|
+
obj.votes = [];
|
|
1478
|
+
}
|
|
1479
|
+
message.pagination !== undefined
|
|
1480
|
+
&& (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
|
|
1481
|
+
return obj;
|
|
1482
|
+
},
|
|
1483
|
+
|
|
1484
|
+
fromPartial<I extends Exact<DeepPartial<QueryVotesByVoterResponse>, I>>(object: I): QueryVotesByVoterResponse {
|
|
1485
|
+
const message = createBaseQueryVotesByVoterResponse();
|
|
1486
|
+
message.votes = object.votes?.map((e) => Vote.fromPartial(e)) || [];
|
|
1487
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1488
|
+
? PageResponse.fromPartial(object.pagination)
|
|
1489
|
+
: undefined;
|
|
1490
|
+
return message;
|
|
1491
|
+
},
|
|
1492
|
+
};
|
|
1493
|
+
|
|
1494
|
+
function createBaseQueryGroupsByMemberRequest(): QueryGroupsByMemberRequest {
|
|
1495
|
+
return { address: "", pagination: undefined };
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
export const QueryGroupsByMemberRequest = {
|
|
1499
|
+
encode(message: QueryGroupsByMemberRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1500
|
+
if (message.address !== "") {
|
|
1501
|
+
writer.uint32(10).string(message.address);
|
|
1502
|
+
}
|
|
1503
|
+
if (message.pagination !== undefined) {
|
|
1504
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1505
|
+
}
|
|
1506
|
+
return writer;
|
|
1507
|
+
},
|
|
1508
|
+
|
|
1509
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByMemberRequest {
|
|
1510
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1511
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1512
|
+
const message = createBaseQueryGroupsByMemberRequest();
|
|
1513
|
+
while (reader.pos < end) {
|
|
1514
|
+
const tag = reader.uint32();
|
|
1515
|
+
switch (tag >>> 3) {
|
|
1516
|
+
case 1:
|
|
1517
|
+
message.address = reader.string();
|
|
1518
|
+
break;
|
|
1519
|
+
case 2:
|
|
1520
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1521
|
+
break;
|
|
1522
|
+
default:
|
|
1523
|
+
reader.skipType(tag & 7);
|
|
1524
|
+
break;
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
return message;
|
|
1528
|
+
},
|
|
1529
|
+
|
|
1530
|
+
fromJSON(object: any): QueryGroupsByMemberRequest {
|
|
1531
|
+
return {
|
|
1532
|
+
address: isSet(object.address) ? String(object.address) : "",
|
|
1533
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1534
|
+
};
|
|
1535
|
+
},
|
|
1536
|
+
|
|
1537
|
+
toJSON(message: QueryGroupsByMemberRequest): unknown {
|
|
1538
|
+
const obj: any = {};
|
|
1539
|
+
message.address !== undefined && (obj.address = message.address);
|
|
1540
|
+
message.pagination !== undefined
|
|
1541
|
+
&& (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
|
|
1542
|
+
return obj;
|
|
1543
|
+
},
|
|
1544
|
+
|
|
1545
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupsByMemberRequest>, I>>(object: I): QueryGroupsByMemberRequest {
|
|
1546
|
+
const message = createBaseQueryGroupsByMemberRequest();
|
|
1547
|
+
message.address = object.address ?? "";
|
|
1548
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1549
|
+
? PageRequest.fromPartial(object.pagination)
|
|
1550
|
+
: undefined;
|
|
1551
|
+
return message;
|
|
1552
|
+
},
|
|
1553
|
+
};
|
|
1554
|
+
|
|
1555
|
+
function createBaseQueryGroupsByMemberResponse(): QueryGroupsByMemberResponse {
|
|
1556
|
+
return { groups: [], pagination: undefined };
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
export const QueryGroupsByMemberResponse = {
|
|
1560
|
+
encode(message: QueryGroupsByMemberResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1561
|
+
for (const v of message.groups) {
|
|
1562
|
+
GroupInfo.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1563
|
+
}
|
|
1564
|
+
if (message.pagination !== undefined) {
|
|
1565
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1566
|
+
}
|
|
1567
|
+
return writer;
|
|
1568
|
+
},
|
|
1569
|
+
|
|
1570
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByMemberResponse {
|
|
1571
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1572
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1573
|
+
const message = createBaseQueryGroupsByMemberResponse();
|
|
1574
|
+
while (reader.pos < end) {
|
|
1575
|
+
const tag = reader.uint32();
|
|
1576
|
+
switch (tag >>> 3) {
|
|
1577
|
+
case 1:
|
|
1578
|
+
message.groups.push(GroupInfo.decode(reader, reader.uint32()));
|
|
1579
|
+
break;
|
|
1580
|
+
case 2:
|
|
1581
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1582
|
+
break;
|
|
1583
|
+
default:
|
|
1584
|
+
reader.skipType(tag & 7);
|
|
1585
|
+
break;
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
return message;
|
|
1589
|
+
},
|
|
1590
|
+
|
|
1591
|
+
fromJSON(object: any): QueryGroupsByMemberResponse {
|
|
1592
|
+
return {
|
|
1593
|
+
groups: Array.isArray(object?.groups) ? object.groups.map((e: any) => GroupInfo.fromJSON(e)) : [],
|
|
1594
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1595
|
+
};
|
|
1596
|
+
},
|
|
1597
|
+
|
|
1598
|
+
toJSON(message: QueryGroupsByMemberResponse): unknown {
|
|
1599
|
+
const obj: any = {};
|
|
1600
|
+
if (message.groups) {
|
|
1601
|
+
obj.groups = message.groups.map((e) => e ? GroupInfo.toJSON(e) : undefined);
|
|
1602
|
+
} else {
|
|
1603
|
+
obj.groups = [];
|
|
1604
|
+
}
|
|
1605
|
+
message.pagination !== undefined
|
|
1606
|
+
&& (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
|
|
1607
|
+
return obj;
|
|
1608
|
+
},
|
|
1609
|
+
|
|
1610
|
+
fromPartial<I extends Exact<DeepPartial<QueryGroupsByMemberResponse>, I>>(object: I): QueryGroupsByMemberResponse {
|
|
1611
|
+
const message = createBaseQueryGroupsByMemberResponse();
|
|
1612
|
+
message.groups = object.groups?.map((e) => GroupInfo.fromPartial(e)) || [];
|
|
1613
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1614
|
+
? PageResponse.fromPartial(object.pagination)
|
|
1615
|
+
: undefined;
|
|
1616
|
+
return message;
|
|
1617
|
+
},
|
|
1618
|
+
};
|
|
1619
|
+
|
|
1620
|
+
function createBaseQueryTallyResultRequest(): QueryTallyResultRequest {
|
|
1621
|
+
return { proposalId: 0 };
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
export const QueryTallyResultRequest = {
|
|
1625
|
+
encode(message: QueryTallyResultRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1626
|
+
if (message.proposalId !== 0) {
|
|
1627
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
1628
|
+
}
|
|
1629
|
+
return writer;
|
|
1630
|
+
},
|
|
1631
|
+
|
|
1632
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest {
|
|
1633
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1634
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1635
|
+
const message = createBaseQueryTallyResultRequest();
|
|
1636
|
+
while (reader.pos < end) {
|
|
1637
|
+
const tag = reader.uint32();
|
|
1638
|
+
switch (tag >>> 3) {
|
|
1639
|
+
case 1:
|
|
1640
|
+
message.proposalId = longToNumber(reader.uint64() as Long);
|
|
1641
|
+
break;
|
|
1642
|
+
default:
|
|
1643
|
+
reader.skipType(tag & 7);
|
|
1644
|
+
break;
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
return message;
|
|
1648
|
+
},
|
|
1649
|
+
|
|
1650
|
+
fromJSON(object: any): QueryTallyResultRequest {
|
|
1651
|
+
return { proposalId: isSet(object.proposalId) ? Number(object.proposalId) : 0 };
|
|
1652
|
+
},
|
|
1653
|
+
|
|
1654
|
+
toJSON(message: QueryTallyResultRequest): unknown {
|
|
1655
|
+
const obj: any = {};
|
|
1656
|
+
message.proposalId !== undefined && (obj.proposalId = Math.round(message.proposalId));
|
|
1657
|
+
return obj;
|
|
1658
|
+
},
|
|
1659
|
+
|
|
1660
|
+
fromPartial<I extends Exact<DeepPartial<QueryTallyResultRequest>, I>>(object: I): QueryTallyResultRequest {
|
|
1661
|
+
const message = createBaseQueryTallyResultRequest();
|
|
1662
|
+
message.proposalId = object.proposalId ?? 0;
|
|
1663
|
+
return message;
|
|
1664
|
+
},
|
|
1665
|
+
};
|
|
1666
|
+
|
|
1667
|
+
function createBaseQueryTallyResultResponse(): QueryTallyResultResponse {
|
|
1668
|
+
return { tally: undefined };
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
export const QueryTallyResultResponse = {
|
|
1672
|
+
encode(message: QueryTallyResultResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1673
|
+
if (message.tally !== undefined) {
|
|
1674
|
+
TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim();
|
|
1675
|
+
}
|
|
1676
|
+
return writer;
|
|
1677
|
+
},
|
|
1678
|
+
|
|
1679
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse {
|
|
1680
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1681
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1682
|
+
const message = createBaseQueryTallyResultResponse();
|
|
1683
|
+
while (reader.pos < end) {
|
|
1684
|
+
const tag = reader.uint32();
|
|
1685
|
+
switch (tag >>> 3) {
|
|
1686
|
+
case 1:
|
|
1687
|
+
message.tally = TallyResult.decode(reader, reader.uint32());
|
|
1688
|
+
break;
|
|
1689
|
+
default:
|
|
1690
|
+
reader.skipType(tag & 7);
|
|
1691
|
+
break;
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
return message;
|
|
1695
|
+
},
|
|
1696
|
+
|
|
1697
|
+
fromJSON(object: any): QueryTallyResultResponse {
|
|
1698
|
+
return { tally: isSet(object.tally) ? TallyResult.fromJSON(object.tally) : undefined };
|
|
1699
|
+
},
|
|
1700
|
+
|
|
1701
|
+
toJSON(message: QueryTallyResultResponse): unknown {
|
|
1702
|
+
const obj: any = {};
|
|
1703
|
+
message.tally !== undefined && (obj.tally = message.tally ? TallyResult.toJSON(message.tally) : undefined);
|
|
1704
|
+
return obj;
|
|
1705
|
+
},
|
|
1706
|
+
|
|
1707
|
+
fromPartial<I extends Exact<DeepPartial<QueryTallyResultResponse>, I>>(object: I): QueryTallyResultResponse {
|
|
1708
|
+
const message = createBaseQueryTallyResultResponse();
|
|
1709
|
+
message.tally = (object.tally !== undefined && object.tally !== null)
|
|
1710
|
+
? TallyResult.fromPartial(object.tally)
|
|
1711
|
+
: undefined;
|
|
1712
|
+
return message;
|
|
1713
|
+
},
|
|
1714
|
+
};
|
|
1715
|
+
|
|
1716
|
+
/** Query is the cosmos.group.v1 Query service. */
|
|
1717
|
+
export interface Query {
|
|
1718
|
+
/** GroupInfo queries group info based on group id. */
|
|
1719
|
+
GroupInfo(request: QueryGroupInfoRequest): Promise<QueryGroupInfoResponse>;
|
|
1720
|
+
/** GroupPolicyInfo queries group policy info based on account address of group policy. */
|
|
1721
|
+
GroupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise<QueryGroupPolicyInfoResponse>;
|
|
1722
|
+
/** GroupMembers queries members of a group */
|
|
1723
|
+
GroupMembers(request: QueryGroupMembersRequest): Promise<QueryGroupMembersResponse>;
|
|
1724
|
+
/** GroupsByAdmin queries groups by admin address. */
|
|
1725
|
+
GroupsByAdmin(request: QueryGroupsByAdminRequest): Promise<QueryGroupsByAdminResponse>;
|
|
1726
|
+
/** GroupPoliciesByGroup queries group policies by group id. */
|
|
1727
|
+
GroupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise<QueryGroupPoliciesByGroupResponse>;
|
|
1728
|
+
/** GroupsByAdmin queries group policies by admin address. */
|
|
1729
|
+
GroupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise<QueryGroupPoliciesByAdminResponse>;
|
|
1730
|
+
/** Proposal queries a proposal based on proposal id. */
|
|
1731
|
+
Proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
|
|
1732
|
+
/** ProposalsByGroupPolicy queries proposals based on account address of group policy. */
|
|
1733
|
+
ProposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise<QueryProposalsByGroupPolicyResponse>;
|
|
1734
|
+
/** VoteByProposalVoter queries a vote by proposal id and voter. */
|
|
1735
|
+
VoteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise<QueryVoteByProposalVoterResponse>;
|
|
1736
|
+
/** VotesByProposal queries a vote by proposal. */
|
|
1737
|
+
VotesByProposal(request: QueryVotesByProposalRequest): Promise<QueryVotesByProposalResponse>;
|
|
1738
|
+
/** VotesByVoter queries a vote by voter. */
|
|
1739
|
+
VotesByVoter(request: QueryVotesByVoterRequest): Promise<QueryVotesByVoterResponse>;
|
|
1740
|
+
/** GroupsByMember queries groups by member address. */
|
|
1741
|
+
GroupsByMember(request: QueryGroupsByMemberRequest): Promise<QueryGroupsByMemberResponse>;
|
|
1742
|
+
/**
|
|
1743
|
+
* TallyResult returns the tally result of a proposal. If the proposal is
|
|
1744
|
+
* still in voting period, then this query computes the current tally state,
|
|
1745
|
+
* which might not be final. On the other hand, if the proposal is final,
|
|
1746
|
+
* then it simply returns the `final_tally_result` state stored in the
|
|
1747
|
+
* proposal itself.
|
|
1748
|
+
*/
|
|
1749
|
+
TallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
export class QueryClientImpl implements Query {
|
|
1753
|
+
private readonly rpc: Rpc;
|
|
1754
|
+
constructor(rpc: Rpc) {
|
|
1755
|
+
this.rpc = rpc;
|
|
1756
|
+
this.GroupInfo = this.GroupInfo.bind(this);
|
|
1757
|
+
this.GroupPolicyInfo = this.GroupPolicyInfo.bind(this);
|
|
1758
|
+
this.GroupMembers = this.GroupMembers.bind(this);
|
|
1759
|
+
this.GroupsByAdmin = this.GroupsByAdmin.bind(this);
|
|
1760
|
+
this.GroupPoliciesByGroup = this.GroupPoliciesByGroup.bind(this);
|
|
1761
|
+
this.GroupPoliciesByAdmin = this.GroupPoliciesByAdmin.bind(this);
|
|
1762
|
+
this.Proposal = this.Proposal.bind(this);
|
|
1763
|
+
this.ProposalsByGroupPolicy = this.ProposalsByGroupPolicy.bind(this);
|
|
1764
|
+
this.VoteByProposalVoter = this.VoteByProposalVoter.bind(this);
|
|
1765
|
+
this.VotesByProposal = this.VotesByProposal.bind(this);
|
|
1766
|
+
this.VotesByVoter = this.VotesByVoter.bind(this);
|
|
1767
|
+
this.GroupsByMember = this.GroupsByMember.bind(this);
|
|
1768
|
+
this.TallyResult = this.TallyResult.bind(this);
|
|
1769
|
+
}
|
|
1770
|
+
GroupInfo(request: QueryGroupInfoRequest): Promise<QueryGroupInfoResponse> {
|
|
1771
|
+
const data = QueryGroupInfoRequest.encode(request).finish();
|
|
1772
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupInfo", data);
|
|
1773
|
+
return promise.then((data) => QueryGroupInfoResponse.decode(new _m0.Reader(data)));
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
GroupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise<QueryGroupPolicyInfoResponse> {
|
|
1777
|
+
const data = QueryGroupPolicyInfoRequest.encode(request).finish();
|
|
1778
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPolicyInfo", data);
|
|
1779
|
+
return promise.then((data) => QueryGroupPolicyInfoResponse.decode(new _m0.Reader(data)));
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
GroupMembers(request: QueryGroupMembersRequest): Promise<QueryGroupMembersResponse> {
|
|
1783
|
+
const data = QueryGroupMembersRequest.encode(request).finish();
|
|
1784
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupMembers", data);
|
|
1785
|
+
return promise.then((data) => QueryGroupMembersResponse.decode(new _m0.Reader(data)));
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
GroupsByAdmin(request: QueryGroupsByAdminRequest): Promise<QueryGroupsByAdminResponse> {
|
|
1789
|
+
const data = QueryGroupsByAdminRequest.encode(request).finish();
|
|
1790
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByAdmin", data);
|
|
1791
|
+
return promise.then((data) => QueryGroupsByAdminResponse.decode(new _m0.Reader(data)));
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
GroupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise<QueryGroupPoliciesByGroupResponse> {
|
|
1795
|
+
const data = QueryGroupPoliciesByGroupRequest.encode(request).finish();
|
|
1796
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByGroup", data);
|
|
1797
|
+
return promise.then((data) => QueryGroupPoliciesByGroupResponse.decode(new _m0.Reader(data)));
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
GroupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise<QueryGroupPoliciesByAdminResponse> {
|
|
1801
|
+
const data = QueryGroupPoliciesByAdminRequest.encode(request).finish();
|
|
1802
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByAdmin", data);
|
|
1803
|
+
return promise.then((data) => QueryGroupPoliciesByAdminResponse.decode(new _m0.Reader(data)));
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
Proposal(request: QueryProposalRequest): Promise<QueryProposalResponse> {
|
|
1807
|
+
const data = QueryProposalRequest.encode(request).finish();
|
|
1808
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "Proposal", data);
|
|
1809
|
+
return promise.then((data) => QueryProposalResponse.decode(new _m0.Reader(data)));
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
ProposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise<QueryProposalsByGroupPolicyResponse> {
|
|
1813
|
+
const data = QueryProposalsByGroupPolicyRequest.encode(request).finish();
|
|
1814
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "ProposalsByGroupPolicy", data);
|
|
1815
|
+
return promise.then((data) => QueryProposalsByGroupPolicyResponse.decode(new _m0.Reader(data)));
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
VoteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise<QueryVoteByProposalVoterResponse> {
|
|
1819
|
+
const data = QueryVoteByProposalVoterRequest.encode(request).finish();
|
|
1820
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "VoteByProposalVoter", data);
|
|
1821
|
+
return promise.then((data) => QueryVoteByProposalVoterResponse.decode(new _m0.Reader(data)));
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
VotesByProposal(request: QueryVotesByProposalRequest): Promise<QueryVotesByProposalResponse> {
|
|
1825
|
+
const data = QueryVotesByProposalRequest.encode(request).finish();
|
|
1826
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByProposal", data);
|
|
1827
|
+
return promise.then((data) => QueryVotesByProposalResponse.decode(new _m0.Reader(data)));
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
VotesByVoter(request: QueryVotesByVoterRequest): Promise<QueryVotesByVoterResponse> {
|
|
1831
|
+
const data = QueryVotesByVoterRequest.encode(request).finish();
|
|
1832
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByVoter", data);
|
|
1833
|
+
return promise.then((data) => QueryVotesByVoterResponse.decode(new _m0.Reader(data)));
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
GroupsByMember(request: QueryGroupsByMemberRequest): Promise<QueryGroupsByMemberResponse> {
|
|
1837
|
+
const data = QueryGroupsByMemberRequest.encode(request).finish();
|
|
1838
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByMember", data);
|
|
1839
|
+
return promise.then((data) => QueryGroupsByMemberResponse.decode(new _m0.Reader(data)));
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
TallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse> {
|
|
1843
|
+
const data = QueryTallyResultRequest.encode(request).finish();
|
|
1844
|
+
const promise = this.rpc.request("cosmos.group.v1.Query", "TallyResult", data);
|
|
1845
|
+
return promise.then((data) => QueryTallyResultResponse.decode(new _m0.Reader(data)));
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
interface Rpc {
|
|
1850
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
declare var self: any | undefined;
|
|
1854
|
+
declare var window: any | undefined;
|
|
1855
|
+
declare var global: any | undefined;
|
|
1856
|
+
var globalThis: any = (() => {
|
|
1857
|
+
if (typeof globalThis !== "undefined") {
|
|
1858
|
+
return globalThis;
|
|
1859
|
+
}
|
|
1860
|
+
if (typeof self !== "undefined") {
|
|
1861
|
+
return self;
|
|
1862
|
+
}
|
|
1863
|
+
if (typeof window !== "undefined") {
|
|
1864
|
+
return window;
|
|
1865
|
+
}
|
|
1866
|
+
if (typeof global !== "undefined") {
|
|
1867
|
+
return global;
|
|
1868
|
+
}
|
|
1869
|
+
throw "Unable to locate global object";
|
|
1870
|
+
})();
|
|
1871
|
+
|
|
1872
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1873
|
+
|
|
1874
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
1875
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1876
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1877
|
+
: Partial<T>;
|
|
1878
|
+
|
|
1879
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1880
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1881
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1882
|
+
|
|
1883
|
+
function longToNumber(long: Long): number {
|
|
1884
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1885
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1886
|
+
}
|
|
1887
|
+
return long.toNumber();
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
if (_m0.util.Long !== Long) {
|
|
1891
|
+
_m0.util.Long = Long as any;
|
|
1892
|
+
_m0.configure();
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
function isSet(value: any): boolean {
|
|
1896
|
+
return value !== null && value !== undefined;
|
|
1897
|
+
}
|