group
The group
module is responsible for the creation and management of on-chain multisig accounts and enables voting for message execution based on configurable decision policies.
For more information, visit https://docs.cosmos.network/main/modules/group/
Message Types
Msg
is the cosmos.group.v1 Msg service.
_45 // CreateGroup creates a new group with an admin account address, a list of members and some optional metadata.
_45 rpc CreateGroup(MsgCreateGroup) returns (MsgCreateGroupResponse);
_45 // UpdateGroupMembers updates the group members with given group id and admin address.
_45 rpc UpdateGroupMembers(MsgUpdateGroupMembers) returns (MsgUpdateGroupMembersResponse);
_45 // UpdateGroupAdmin updates the group admin with given group id and previous admin address.
_45 rpc UpdateGroupAdmin(MsgUpdateGroupAdmin) returns (MsgUpdateGroupAdminResponse);
_45 // UpdateGroupMetadata updates the group metadata with given group id and admin address.
_45 rpc UpdateGroupMetadata(MsgUpdateGroupMetadata) returns (MsgUpdateGroupMetadataResponse);
_45 // CreateGroupPolicy creates a new group policy using given DecisionPolicy.
_45 rpc CreateGroupPolicy(MsgCreateGroupPolicy) returns (MsgCreateGroupPolicyResponse);
_45 // CreateGroupWithPolicy creates a new group with policy.
_45 rpc CreateGroupWithPolicy(MsgCreateGroupWithPolicy) returns (MsgCreateGroupWithPolicyResponse);
_45 // UpdateGroupPolicyAdmin updates a group policy admin.
_45 rpc UpdateGroupPolicyAdmin(MsgUpdateGroupPolicyAdmin) returns (MsgUpdateGroupPolicyAdminResponse);
_45 // UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated.
_45 rpc UpdateGroupPolicyDecisionPolicy(MsgUpdateGroupPolicyDecisionPolicy)
_45 returns (MsgUpdateGroupPolicyDecisionPolicyResponse);
_45 // UpdateGroupPolicyMetadata updates a group policy metadata.
_45 rpc UpdateGroupPolicyMetadata(MsgUpdateGroupPolicyMetadata) returns (MsgUpdateGroupPolicyMetadataResponse);
_45 // SubmitProposal submits a new proposal.
_45 rpc SubmitProposal(MsgSubmitProposal) returns (MsgSubmitProposalResponse);
_45 // WithdrawProposal aborts a proposal.
_45 rpc WithdrawProposal(MsgWithdrawProposal) returns (MsgWithdrawProposalResponse);
_45 // Vote allows a voter to vote on a proposal.
_45 rpc Vote(MsgVote) returns (MsgVoteResponse);
_45 // Exec executes a proposal.
_45 rpc Exec(MsgExec) returns (MsgExecResponse);
_45 // LeaveGroup allows a group member to leave the group.
_45 rpc LeaveGroup(MsgLeaveGroup) returns (MsgLeaveGroupResponse);
MsgCreateGroup
MsgCreateGroup
is the Msg/CreateGroup
request type.
_11message MsgCreateGroup {
_11 option (cosmos.msg.v1.signer) = "admin";
_11 // admin is the account address of the group admin.
_11 string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_11 // members defines the group members.
_11 repeated Member members = 2 [(gogoproto.nullable) = false];
_11 // metadata is any arbitrary metadata to attached to the group.
MsgCreateGroupResponse
MsgCreateGroupResponse
is the Msg/CreateGroup
response type.
_5message MsgCreateGroupResponse {
_5 // group_id is the unique ID of the newly created group.
MsgUpdateGroupMembers
MsgUpdateGroupMembers
is the Msg/UpdateGroupMembers
request type.
_13message MsgUpdateGroupMembers {
_13 option (cosmos.msg.v1.signer) = "admin";
_13 // admin is the account address of the group admin.
_13 string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_13 // group_id is the unique ID of the group.
_13 // member_updates is the list of members to update,
_13 // set weight to 0 to remove a member.
_13 repeated Member member_updates = 3 [(gogoproto.nullable) = false];
MsgUpdateGroupMembersResponse
MsgUpdateGroupMembersResponse
is the Msg/UpdateGroupMembers
response type.
_1message MsgUpdateGroupMembersResponse {}
MsgUpdateGroupAdmin
MsgUpdateGroupAdmin
is the Msg/UpdateGroupAdmin
request type.
_12message MsgUpdateGroupAdmin {
_12 option (cosmos.msg.v1.signer) = "admin";
_12 // admin is the current account address of the group admin.
_12 string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12 // group_id is the unique ID of the group.
_12 // new_admin is the group new admin account address.
_12 string new_admin = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
MsgUpdateGroupAdminResponse
MsgUpdateGroupAdminResponse
is the Msg/UpdateGroupAdmin
response type.
_1message MsgUpdateGroupAdminResponse {}
MsgUpdateGroupMetadata
is the Msg/UpdateGroupMetadata
request type.
_12message MsgUpdateGroupMetadata {
_12 option (cosmos.msg.v1.signer) = "admin";
_12 // admin is the account address of the group admin.
_12 string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12 // group_id is the unique ID of the group.
_12 // metadata is the updated group's metadata.
MsgUpdateGroupMetadataResponse
is the Msg/UpdateGroupMetadata
response type.
_1message MsgUpdateGroupMetadataResponse {}
MsgCreateGroupPolicy
MsgCreateGroupPolicy
is the Msg/CreateGroupPolicy
request type.
_17message MsgCreateGroupPolicy {
_17 option (cosmos.msg.v1.signer) = "admin";
_17 option (gogoproto.goproto_getters) = false;
_17 // admin is the account address of the group admin.
_17 string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_17 // group_id is the unique ID of the group.
_17 // metadata is any arbitrary metadata attached to the group policy.
_17 // decision_policy specifies the group policy's decision policy.
_17 google.protobuf.Any decision_policy = 4 [(cosmos_proto.accepts_interface) = "DecisionPolicy"];
MsgCreateGroupPolicyResponse
MsgCreateGroupPolicyResponse
is the Msg/CreateGroupPolicy
response type.
_5message MsgCreateGroupPolicyResponse {
_5 // address is the account address of the newly created group policy.
_5 string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
MsgCreateGroupWithPolicy
MsgCreateGroupWithPolicy
is the Msg/CreateGroupWithPolicy
request type.
_21message MsgCreateGroupWithPolicy {
_21 option (gogoproto.goproto_getters) = false;
_21 // admin is the account address of the group and group policy admin.
_21 string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_21 // members defines the group members.
_21 repeated Member members = 2 [(gogoproto.nullable) = false];
_21 // group_metadata is any arbitrary metadata attached to the group.
_21 string group_metadata = 3;
_21 // group_policy_metadata is any arbitrary metadata attached to the group policy.
_21 string group_policy_metadata = 4;
_21 // group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group and group policy admin.
_21 bool group_policy_as_admin = 5;
_21 // decision_policy specifies the group policy's decision policy.
_21 google.protobuf.Any decision_policy = 6 [(cosmos_proto.accepts_interface) = "DecisionPolicy"];
MsgCreateGroupWithPolicyResponse
MsgCreateGroupWithPolicyResponse
is the Msg/CreateGroupWithPolicy
response type.
_8message MsgCreateGroupWithPolicyResponse {
_8 // group_id is the unique ID of the newly created group with policy.
_8 // group_policy_address is the account address of the newly created group policy.
_8 string group_policy_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
MsgUpdateGroupPolicyAdmin
MsgUpdateGroupPolicyAdmin
is the Msg/UpdateGroupPolicyAdmin
request type.
_12message MsgUpdateGroupPolicyAdmin {
_12 option (cosmos.msg.v1.signer) = "admin";
_12 // admin is the account address of the group admin.
_12 string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12 // address is the account address of the group policy.
_12 string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12 // new_admin is the new group policy admin.
_12 string new_admin = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
MsgUpdateGroupPolicyAdminResponse
MsgUpdateGroupPolicyAdminResponse
is the Msg/UpdateGroupPolicyAdmin
response type.
_1message MsgUpdateGroupPolicyAdminResponse {}
MsgUpdateGroupPolicyDecisionPolicy
MsgUpdateGroupPolicyDecisionPolicy
is the Msg/UpdateGroupPolicyDecisionPolicy
request type.
_14message MsgUpdateGroupPolicyDecisionPolicy {
_14 option (cosmos.msg.v1.signer) = "admin";
_14 option (gogoproto.goproto_getters) = false;
_14 // admin is the account address of the group admin.
_14 string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_14 // address is the account address of group policy.
_14 string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_14 // decision_policy is the updated group policy's decision policy.
_14 google.protobuf.Any decision_policy = 3 [(cosmos_proto.accepts_interface) = "DecisionPolicy"];
MsgUpdateGroupPolicyDecisionPolicyResponse
MsgUpdateGroupPolicyDecisionPolicyResponse
is the Msg/UpdateGroupPolicyDecisionPolicy
response type.
_1message MsgUpdateGroupPolicyDecisionPolicyResponse {}
MsgUpdateGroupPolicyMetadata
is the Msg/UpdateGroupPolicyMetadata
request type.
_12message MsgUpdateGroupPolicyMetadata {
_12 option (cosmos.msg.v1.signer) = "admin";
_12 // admin is the account address of the group admin.
_12 string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12 // address is the account address of group policy.
_12 string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12 // metadata is the updated group policy metadata.
MsgUpdateGroupPolicyMetadataResponse
is the Msg/UpdateGroupPolicyMetadata
response type.
_1message MsgUpdateGroupPolicyMetadataResponse {}
MsgSubmitProposal
MsgSubmitProposal
is the Msg/SubmitProposal
request type.
_23message MsgSubmitProposal {
_23 option (cosmos.msg.v1.signer) = "proposers";
_23 option (gogoproto.goproto_getters) = false;
_23 // address is the account address of group policy.
_23 string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_23 // proposers are the account addresses of the proposers.
_23 // Proposers signatures will be counted as yes votes.
_23 repeated string proposers = 2;
_23 // metadata is any arbitrary metadata to attached to the proposal.
_23 // messages is a list of `sdk.Msg`s that will be executed if the proposal passes.
_23 repeated google.protobuf.Any messages = 4;
_23 // exec defines the mode of execution of the proposal,
_23 // whether it should be executed immediately on creation or not.
_23 // If so, proposers signatures are considered as Yes votes.
MsgSubmitProposalResponse
MsgSubmitProposalResponse
is the Msg/SubmitProposal
response type.
_5message MsgSubmitProposalResponse {
_5 // proposal is the unique ID of the proposal.
_5 uint64 proposal_id = 1;
MsgWithdrawProposal
MsgWithdrawProposal
is the Msg/WithdrawProposal
request type.
_7message MsgWithdrawProposal {
_7 // proposal is the unique ID of the proposal.
_7 uint64 proposal_id = 1;
_7 // address is the admin of the group policy or one of the proposer of the proposal.
_7 string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
MsgWithdrawProposalResponse
MsgWithdrawProposalResponse
is the Msg/WithdrawProposal
response type.
_1message MsgWithdrawProposalResponse {}
MsgVote
MsgVote
is the Msg/Vote
request type.
_18 option (cosmos.msg.v1.signer) = "voter";
_18 // proposal is the unique ID of the proposal.
_18 uint64 proposal_id = 1;
_18 // voter is the voter account address.
_18 string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_18 // option is the voter's choice on the proposal.
_18 VoteOption option = 3;
_18 // metadata is any arbitrary metadata to attached to the vote.
_18 // exec defines whether the proposal should be executed
_18 // immediately after voting or not.
MsgVoteResponse
MsgVoteResponse
is the Msg/Vote
response type.
_1message MsgVoteResponse {}
MsgExec
MsgExec
is the Msg/Exec
request type.
_9 option (cosmos.msg.v1.signer) = "signer";
_9 // proposal is the unique ID of the proposal.
_9 uint64 proposal_id = 1;
_9 // signer is the account address used to execute the proposal.
_9 string signer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
MsgExecResponse
MsgExecResponse
is the Msg/Exec
request type.
_1message MsgExecResponse {}
MsgLeaveGroup
MsgLeaveGroup
is the Msg/LeaveGroup
request type.
_9message MsgLeaveGroup {
_9 option (cosmos.msg.v1.signer) = "address";
_9 // address is the account address of the group member.
_9 string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_9 // group_id is the unique ID of the group.
MsgLeaveGroupResponse
MsgLeaveGroupResponse
is the Msg/LeaveGroup
response type.
_1message MsgLeaveGroupResponse {}
Queries
Query
is the cosmos.group.v1 Query service.
_67 // GroupInfo queries group info based on group id.
_67 rpc GroupInfo(QueryGroupInfoRequest) returns (QueryGroupInfoResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/group_info/{group_id}";
_67 // GroupPolicyInfo queries group policy info based on account address of group policy.
_67 rpc GroupPolicyInfo(QueryGroupPolicyInfoRequest) returns (QueryGroupPolicyInfoResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/group_policy_info/{address}";
_67 // GroupMembers queries members of a group
_67 rpc GroupMembers(QueryGroupMembersRequest) returns (QueryGroupMembersResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/group_members/{group_id}";
_67 // GroupsByAdmin queries groups by admin address.
_67 rpc GroupsByAdmin(QueryGroupsByAdminRequest) returns (QueryGroupsByAdminResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/groups_by_admin/{admin}";
_67 // GroupPoliciesByGroup queries group policies by group id.
_67 rpc GroupPoliciesByGroup(QueryGroupPoliciesByGroupRequest) returns (QueryGroupPoliciesByGroupResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/group_policies_by_group/{group_id}";
_67 // GroupsByAdmin queries group policies by admin address.
_67 rpc GroupPoliciesByAdmin(QueryGroupPoliciesByAdminRequest) returns (QueryGroupPoliciesByAdminResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/group_policies_by_admin/{admin}";
_67 // Proposal queries a proposal based on proposal id.
_67 rpc Proposal(QueryProposalRequest) returns (QueryProposalResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/proposal/{proposal_id}";
_67 // ProposalsByGroupPolicy queries proposals based on account address of group policy.
_67 rpc ProposalsByGroupPolicy(QueryProposalsByGroupPolicyRequest) returns (QueryProposalsByGroupPolicyResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/proposals_by_group_policy/{address}";
_67 // VoteByProposalVoter queries a vote by proposal id and voter.
_67 rpc VoteByProposalVoter(QueryVoteByProposalVoterRequest) returns (QueryVoteByProposalVoterResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}";
_67 // VotesByProposal queries a vote by proposal.
_67 rpc VotesByProposal(QueryVotesByProposalRequest) returns (QueryVotesByProposalResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/votes_by_proposal/{proposal_id}";
_67 // VotesByVoter queries a vote by voter.
_67 rpc VotesByVoter(QueryVotesByVoterRequest) returns (QueryVotesByVoterResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/votes_by_voter/{voter}";
_67 // GroupsByMember queries groups by member address.
_67 rpc GroupsByMember(QueryGroupsByMemberRequest) returns (QueryGroupsByMemberResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/groups_by_member/{address}";
_67 // TallyResult queries the tally of a proposal votes.
_67 rpc TallyResult(QueryTallyResultRequest) returns (QueryTallyResultResponse) {
_67 option (google.api.http).get = "/cosmos/group/v1/proposals/{proposal_id}/tally";
QueryGroupInfoRequest
QueryGroupInfoRequest
is the Query/GroupInfo
request type.
_5message QueryGroupInfoRequest {
_5 // group_id is the unique ID of the group.
QueryGroupInfoResponse
QueryGroupInfoResponse
is the Query/GroupInfo
response type.
_5message QueryGroupInfoResponse {
_5 // info is the GroupInfo for the group.
QueryGroupPolicyInfoRequest
QueryGroupPolicyInfoRequest
is the Query/GroupPolicyInfo
request type.
_5message QueryGroupPolicyInfoRequest {
_5 // address is the account address of the group policy.
_5 string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
QueryGroupPolicyInfoResponse
QueryGroupPolicyInfoResponse
is the Query/GroupPolicyInfo
response type.
_5message QueryGroupPolicyInfoResponse {
_5 // info is the GroupPolicyInfo for the group policy.
_5 GroupPolicyInfo info = 1;
QueryGroupMembersRequest
QueryGroupMembersRequest
is the Query/GroupMembers
request type.
_8message QueryGroupMembersRequest {
_8 // group_id is the unique ID of the group.
_8 // pagination defines an optional pagination for the request.
_8 cosmos.base.query.v1beta1.PageRequest pagination = 2;
QueryGroupMembersResponse
QueryGroupMembersResponse
is the Query/GroupMembersResponse
response type.
_8message QueryGroupMembersResponse {
_8 // members are the members of the group with given group_id.
_8 repeated GroupMember members = 1;
_8 // pagination defines the pagination in the response.
_8 cosmos.base.query.v1beta1.PageResponse pagination = 2;
QueryGroupsByAdminRequest
QueryGroupsByAdminRequest
is the Query/GroupsByAdmin
request type.
_8message QueryGroupsByAdminRequest {
_8 // admin is the account address of a group's admin.
_8 string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_8 // pagination defines an optional pagination for the request.
_8 cosmos.base.query.v1beta1.PageRequest pagination = 2;
QueryGroupsByAdminResponse
QueryGroupsByAdminResponse
is the Query/GroupsByAdminResponse
response type.
_8message QueryGroupsByAdminResponse {
_8 // groups are the groups info with the provided admin.
_8 repeated GroupInfo groups = 1;
_8 // pagination defines the pagination in the response.
_8 cosmos.base.query.v1beta1.PageResponse pagination = 2;
QueryGroupPoliciesByGroupRequest
QueryGroupPoliciesByGroupRequest
is the Query/GroupPoliciesByGroup
request type.
_8message QueryGroupPoliciesByGroupRequest {
_8 // group_id is the unique ID of the group policy's group.
_8 // pagination defines an optional pagination for the request.
_8 cosmos.base.query.v1beta1.PageRequest pagination = 2;
QueryGroupPoliciesByGroupResponse
QueryGroupPoliciesByGroupResponse
is the Query/GroupPoliciesByGroup
response type.
_8message QueryGroupPoliciesByGroupResponse {
_8 // group_policies are the group policies info associated with the provided group.
_8 repeated GroupPolicyInfo group_policies = 1;
_8 // pagination defines the pagination in the response.
_8 cosmos.base.query.v1beta1.PageResponse pagination = 2;
QueryGroupPoliciesByAdminRequest
QueryGroupPoliciesByAdminRequest
is the Query/GroupPoliciesByAdmin
request type.
_8message QueryGroupPoliciesByAdminRequest {
_8 // admin is the admin address of the group policy.
_8 string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_8 // pagination defines an optional pagination for the request.
_8 cosmos.base.query.v1beta1.PageRequest pagination = 2;
QueryGroupPoliciesByAdminResponse
QueryGroupPoliciesByAdminResponse
is the Query/GroupPoliciesByAdmin
response type.
_8message QueryGroupPoliciesByAdminResponse {
_8 // group_policies are the group policies info with provided admin.
_8 repeated GroupPolicyInfo group_policies = 1;
_8 // pagination defines the pagination in the response.
_8 cosmos.base.query.v1beta1.PageResponse pagination = 2;
QueryProposalRequest
QueryProposalRequest
is the Query/Proposal
request type.
_5message QueryProposalRequest {
_5 // proposal_id is the unique ID of a proposal.
_5 uint64 proposal_id = 1;
QueryProposalResponse
QueryProposalResponse
is the Query/Proposal
response type.
_5message QueryProposalResponse {
_5 // proposal is the proposal info.
_5 Proposal proposal = 1;
QueryProposalsByGroupPolicyRequest
QueryProposalsByGroupPolicyRequest
is the Query/ProposalByGroupPolicy
request type.
_8message QueryProposalsByGroupPolicyRequest {
_8 // address is the account address of the group policy related to proposals.
_8 string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_8 // pagination defines an optional pagination for the request.
_8 cosmos.base.query.v1beta1.PageRequest pagination = 2;
QueryProposalsByGroupPolicyResponse
QueryProposalsByGroupPolicyResponse
is the Query/ProposalByGroupPolicy
response type.
_8message QueryProposalsByGroupPolicyResponse {
_8 // proposals are the proposals with given group policy.
_8 repeated Proposal proposals = 1;
_8 // pagination defines the pagination in the response.
_8 cosmos.base.query.v1beta1.PageResponse pagination = 2;
QueryVoteByProposalVoterRequest
QueryVoteByProposalVoterRequest
is the Query/VoteByProposalVoter
request type.
_8message QueryVoteByProposalVoterRequest {
_8 // proposal_id is the unique ID of a proposal.
_8 uint64 proposal_id = 1;
_8 // voter is a proposal voter account address.
_8 string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
QueryVoteByProposalVoterResponse
QueryVoteByProposalVoterResponse
is the Query/VoteByProposalVoter
response type.
_5message QueryVoteByProposalVoterResponse {
_5 // vote is the vote with given proposal_id and voter.
QueryVotesByProposalRequest
QueryVotesByProposalRequest
is the Query/VotesByProposal
request type.
_8message QueryVotesByProposalRequest {
_8 // proposal_id is the unique ID of a proposal.
_8 uint64 proposal_id = 1;
_8 // pagination defines an optional pagination for the request.
_8 cosmos.base.query.v1beta1.PageRequest pagination = 2;
QueryVotesByProposalResponse
QueryVotesByProposalResponse
is the Query/VotesByProposal
response type.
_8message QueryVotesByProposalResponse {
_8 // votes are the list of votes for given proposal_id.
_8 repeated Vote votes = 1;
_8 // pagination defines the pagination in the response.
_8 cosmos.base.query.v1beta1.PageResponse pagination = 2;
QueryVotesByVoterRequest
QueryVotesByVoterRequest
is the Query/VotesByVoter
request type.
_7message QueryVotesByVoterRequest {
_7 // voter is a proposal voter account address.
_7 string voter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_7 // pagination defines an optional pagination for the request.
_7 cosmos.base.query.v1beta1.PageRequest pagination = 2;
QueryVotesByVoterResponse
QueryVotesByVoterResponse
is the Query/VotesByVoter
response type.
_8message QueryVotesByVoterResponse {
_8 // votes are the list of votes by given voter.
_8 repeated Vote votes = 1;
_8 // pagination defines the pagination in the response.
_8 cosmos.base.query.v1beta1.PageResponse pagination = 2;
QueryGroupsByMemberRequest
QueryGroupsByMemberRequest
is the Query/GroupsByMember
request type.
_7message QueryGroupsByMemberRequest {
_7 // address is the group member address.
_7 string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_7 // pagination defines an optional pagination for the request.
_7 cosmos.base.query.v1beta1.PageRequest pagination = 2;
QueryGroupsByMemberResponse
QueryGroupsByMemberResponse
is the Query/GroupsByMember
response type.
_7message QueryGroupsByMemberResponse {
_7 // groups are the groups info with the provided group member.
_7 repeated GroupInfo groups = 1;
_7 // pagination defines the pagination in the response.
_7 cosmos.base.query.v1beta1.PageResponse pagination = 2;
QueryTallyResultRequest
QueryTallyResultRequest
is the Query/TallyResult
request type.
_4message QueryTallyResultRequest {
_4 // proposal_id is the unique id of a proposal.
_4 uint64 proposal_id = 1;
QueryTallyResultResponse
QueryTallyResultResponse
is the Query/TallyResult
response type.
_4message QueryTallyResultResponse {
_4 // tally defines the requested tally.
_4 TallyResult tally = 1 [(gogoproto.nullable) = false];