Skip to main content
logo

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.

tx.proto
Copy

_45
service Msg {
_45
_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
_45
// UpdateGroupMembers updates the group members with given group id and admin address.
_45
rpc UpdateGroupMembers(MsgUpdateGroupMembers) returns (MsgUpdateGroupMembersResponse);
_45
_45
// UpdateGroupAdmin updates the group admin with given group id and previous admin address.
_45
rpc UpdateGroupAdmin(MsgUpdateGroupAdmin) returns (MsgUpdateGroupAdminResponse);
_45
_45
// UpdateGroupMetadata updates the group metadata with given group id and admin address.
_45
rpc UpdateGroupMetadata(MsgUpdateGroupMetadata) returns (MsgUpdateGroupMetadataResponse);
_45
_45
// CreateGroupPolicy creates a new group policy using given DecisionPolicy.
_45
rpc CreateGroupPolicy(MsgCreateGroupPolicy) returns (MsgCreateGroupPolicyResponse);
_45
_45
// CreateGroupWithPolicy creates a new group with policy.
_45
rpc CreateGroupWithPolicy(MsgCreateGroupWithPolicy) returns (MsgCreateGroupWithPolicyResponse);
_45
_45
// UpdateGroupPolicyAdmin updates a group policy admin.
_45
rpc UpdateGroupPolicyAdmin(MsgUpdateGroupPolicyAdmin) returns (MsgUpdateGroupPolicyAdminResponse);
_45
_45
// UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated.
_45
rpc UpdateGroupPolicyDecisionPolicy(MsgUpdateGroupPolicyDecisionPolicy)
_45
returns (MsgUpdateGroupPolicyDecisionPolicyResponse);
_45
_45
// UpdateGroupPolicyMetadata updates a group policy metadata.
_45
rpc UpdateGroupPolicyMetadata(MsgUpdateGroupPolicyMetadata) returns (MsgUpdateGroupPolicyMetadataResponse);
_45
_45
// SubmitProposal submits a new proposal.
_45
rpc SubmitProposal(MsgSubmitProposal) returns (MsgSubmitProposalResponse);
_45
_45
// WithdrawProposal aborts a proposal.
_45
rpc WithdrawProposal(MsgWithdrawProposal) returns (MsgWithdrawProposalResponse);
_45
_45
// Vote allows a voter to vote on a proposal.
_45
rpc Vote(MsgVote) returns (MsgVoteResponse);
_45
_45
// Exec executes a proposal.
_45
rpc Exec(MsgExec) returns (MsgExecResponse);
_45
_45
// LeaveGroup allows a group member to leave the group.
_45
rpc LeaveGroup(MsgLeaveGroup) returns (MsgLeaveGroupResponse);
_45
}

MsgCreateGroup

MsgCreateGroup is the Msg/CreateGroup request type.

tx.proto
Copy

_11
message 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
_11
// members defines the group members.
_11
repeated Member members = 2 [(gogoproto.nullable) = false];
_11
_11
// metadata is any arbitrary metadata to attached to the group.
_11
string metadata = 3;
_11
}

MsgCreateGroupResponse

MsgCreateGroupResponse is the Msg/CreateGroup response type.

tx.proto
Copy

_5
message MsgCreateGroupResponse {
_5
_5
// group_id is the unique ID of the newly created group.
_5
uint64 group_id = 1;
_5
}

MsgUpdateGroupMembers

MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type.

tx.proto
Copy

_13
message MsgUpdateGroupMembers {
_13
option (cosmos.msg.v1.signer) = "admin";
_13
_13
// admin is the account address of the group admin.
_13
string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_13
_13
// group_id is the unique ID of the group.
_13
uint64 group_id = 2;
_13
_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];
_13
}

MsgUpdateGroupMembersResponse

MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type.

tx.proto
Copy

_1
message MsgUpdateGroupMembersResponse {}

MsgUpdateGroupAdmin

MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type.

tx.proto
Copy

_12
message MsgUpdateGroupAdmin {
_12
option (cosmos.msg.v1.signer) = "admin";
_12
_12
// admin is the current account address of the group admin.
_12
string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12
_12
// group_id is the unique ID of the group.
_12
uint64 group_id = 2;
_12
_12
// new_admin is the group new admin account address.
_12
string new_admin = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12
}

MsgUpdateGroupAdminResponse

MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type.

tx.proto
Copy

_1
message MsgUpdateGroupAdminResponse {}

MsgUpdateGroupMetadata

MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type.

tx.proto
Copy

_12
message MsgUpdateGroupMetadata {
_12
option (cosmos.msg.v1.signer) = "admin";
_12
_12
// admin is the account address of the group admin.
_12
string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12
_12
// group_id is the unique ID of the group.
_12
uint64 group_id = 2;
_12
_12
// metadata is the updated group's metadata.
_12
string metadata = 3;
_12
}

MsgUpdateGroupMetadataResponse

MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type.

tx.proto
Copy

_1
message MsgUpdateGroupMetadataResponse {}

MsgCreateGroupPolicy

MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type.

tx.proto
Copy

_17
message MsgCreateGroupPolicy {
_17
option (cosmos.msg.v1.signer) = "admin";
_17
_17
option (gogoproto.goproto_getters) = false;
_17
_17
// admin is the account address of the group admin.
_17
string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_17
_17
// group_id is the unique ID of the group.
_17
uint64 group_id = 2;
_17
_17
// metadata is any arbitrary metadata attached to the group policy.
_17
string metadata = 3;
_17
_17
// decision_policy specifies the group policy's decision policy.
_17
google.protobuf.Any decision_policy = 4 [(cosmos_proto.accepts_interface) = "DecisionPolicy"];
_17
}

MsgCreateGroupPolicyResponse

MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type.

tx.proto
Copy

_5
message MsgCreateGroupPolicyResponse {
_5
_5
// address is the account address of the newly created group policy.
_5
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_5
}

MsgCreateGroupWithPolicy

MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type.

tx.proto
Copy

_21
message MsgCreateGroupWithPolicy {
_21
option (gogoproto.goproto_getters) = false;
_21
_21
// admin is the account address of the group and group policy admin.
_21
string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_21
_21
// members defines the group members.
_21
repeated Member members = 2 [(gogoproto.nullable) = false];
_21
_21
// group_metadata is any arbitrary metadata attached to the group.
_21
string group_metadata = 3;
_21
_21
// group_policy_metadata is any arbitrary metadata attached to the group policy.
_21
string group_policy_metadata = 4;
_21
_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
_21
// decision_policy specifies the group policy's decision policy.
_21
google.protobuf.Any decision_policy = 6 [(cosmos_proto.accepts_interface) = "DecisionPolicy"];
_21
}

MsgCreateGroupWithPolicyResponse

MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type.

tx.proto
Copy

_8
message MsgCreateGroupWithPolicyResponse {
_8
_8
// group_id is the unique ID of the newly created group with policy.
_8
uint64 group_id = 1;
_8
_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"];
_8
}

MsgUpdateGroupPolicyAdmin

MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type.

tx.proto
Copy

_12
message MsgUpdateGroupPolicyAdmin {
_12
option (cosmos.msg.v1.signer) = "admin";
_12
_12
// admin is the account address of the group admin.
_12
string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12
_12
// address is the account address of the group policy.
_12
string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12
_12
// new_admin is the new group policy admin.
_12
string new_admin = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12
}

MsgUpdateGroupPolicyAdminResponse

MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type.

tx.proto
Copy

_1
message MsgUpdateGroupPolicyAdminResponse {}

MsgUpdateGroupPolicyDecisionPolicy

MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type.

tx.proto
Copy

_14
message MsgUpdateGroupPolicyDecisionPolicy {
_14
option (cosmos.msg.v1.signer) = "admin";
_14
_14
option (gogoproto.goproto_getters) = false;
_14
_14
// admin is the account address of the group admin.
_14
string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_14
_14
// address is the account address of group policy.
_14
string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_14
_14
// decision_policy is the updated group policy's decision policy.
_14
google.protobuf.Any decision_policy = 3 [(cosmos_proto.accepts_interface) = "DecisionPolicy"];
_14
}

MsgUpdateGroupPolicyDecisionPolicyResponse

MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type.

tx.proto
Copy

_1
message MsgUpdateGroupPolicyDecisionPolicyResponse {}

MsgUpdateGroupPolicyMetadata

MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type.

tx.proto
Copy

_12
message MsgUpdateGroupPolicyMetadata {
_12
option (cosmos.msg.v1.signer) = "admin";
_12
_12
// admin is the account address of the group admin.
_12
string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12
_12
// address is the account address of group policy.
_12
string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_12
_12
// metadata is the updated group policy metadata.
_12
string metadata = 3;
_12
}

MsgUpdateGroupPolicyMetadataResponse

MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type.

tx.proto
Copy

_1
message MsgUpdateGroupPolicyMetadataResponse {}

MsgSubmitProposal

MsgSubmitProposal is the Msg/SubmitProposal request type.

tx.proto
Copy

_23
message MsgSubmitProposal {
_23
option (cosmos.msg.v1.signer) = "proposers";
_23
_23
option (gogoproto.goproto_getters) = false;
_23
_23
// address is the account address of group policy.
_23
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_23
_23
// proposers are the account addresses of the proposers.
_23
// Proposers signatures will be counted as yes votes.
_23
repeated string proposers = 2;
_23
_23
// metadata is any arbitrary metadata to attached to the proposal.
_23
string metadata = 3;
_23
_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
_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.
_23
Exec exec = 5;
_23
}

MsgSubmitProposalResponse

MsgSubmitProposalResponse is the Msg/SubmitProposal response type.

tx.proto
Copy

_5
message MsgSubmitProposalResponse {
_5
_5
// proposal is the unique ID of the proposal.
_5
uint64 proposal_id = 1;
_5
}

MsgWithdrawProposal

MsgWithdrawProposal is the Msg/WithdrawProposal request type.

tx.proto
Copy

_7
message MsgWithdrawProposal {
_7
// proposal is the unique ID of the proposal.
_7
uint64 proposal_id = 1;
_7
_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"];
_7
}

MsgWithdrawProposalResponse

MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type.

tx.proto
Copy

_1
message MsgWithdrawProposalResponse {}

MsgVote

MsgVote is the Msg/Vote request type.

tx.proto
Copy

_18
message MsgVote {
_18
option (cosmos.msg.v1.signer) = "voter";
_18
_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
_18
// option is the voter's choice on the proposal.
_18
VoteOption option = 3;
_18
_18
// metadata is any arbitrary metadata to attached to the vote.
_18
string metadata = 4;
_18
_18
// exec defines whether the proposal should be executed
_18
// immediately after voting or not.
_18
Exec exec = 5;
_18
}

MsgVoteResponse

MsgVoteResponse is the Msg/Vote response type.

tx.proto
Copy

_1
message MsgVoteResponse {}

MsgExec

MsgExec is the Msg/Exec request type.

tx.proto
Copy

_9
message MsgExec {
_9
option (cosmos.msg.v1.signer) = "signer";
_9
_9
// proposal is the unique ID of the proposal.
_9
uint64 proposal_id = 1;
_9
_9
// signer is the account address used to execute the proposal.
_9
string signer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_9
}

MsgExecResponse

MsgExecResponse is the Msg/Exec request type.

tx.proto
Copy

_1
message MsgExecResponse {}

MsgLeaveGroup

MsgLeaveGroup is the Msg/LeaveGroup request type.

tx.proto
Copy

_9
message MsgLeaveGroup {
_9
option (cosmos.msg.v1.signer) = "address";
_9
_9
// address is the account address of the group member.
_9
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_9
_9
// group_id is the unique ID of the group.
_9
uint64 group_id = 2;
_9
}

MsgLeaveGroupResponse

MsgLeaveGroupResponse is the Msg/LeaveGroup response type.

tx.proto
Copy

_1
message MsgLeaveGroupResponse {}

Queries

Query is the cosmos.group.v1 Query service.

query.proto
Copy

_67
service Query {
_67
_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
};
_67
_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
};
_67
_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
};
_67
_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
};
_67
_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
};
_67
_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
};
_67
_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
};
_67
_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
};
_67
_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
};
_67
_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
};
_67
_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
};
_67
_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
};
_67
_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";
_67
};
_67
}

QueryGroupInfoRequest

QueryGroupInfoRequest is the Query/GroupInfo request type.

query.proto
Copy

_5
message QueryGroupInfoRequest {
_5
_5
// group_id is the unique ID of the group.
_5
uint64 group_id = 1;
_5
}

QueryGroupInfoResponse

QueryGroupInfoResponse is the Query/GroupInfo response type.

query.proto
Copy

_5
message QueryGroupInfoResponse {
_5
_5
// info is the GroupInfo for the group.
_5
GroupInfo info = 1;
_5
}

QueryGroupPolicyInfoRequest

QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type.

query.proto
Copy

_5
message QueryGroupPolicyInfoRequest {
_5
_5
// address is the account address of the group policy.
_5
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_5
}

QueryGroupPolicyInfoResponse

QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type.

query.proto
Copy

_5
message QueryGroupPolicyInfoResponse {
_5
_5
// info is the GroupPolicyInfo for the group policy.
_5
GroupPolicyInfo info = 1;
_5
}

QueryGroupMembersRequest

QueryGroupMembersRequest is the Query/GroupMembers request type.

query.proto
Copy

_8
message QueryGroupMembersRequest {
_8
_8
// group_id is the unique ID of the group.
_8
uint64 group_id = 1;
_8
_8
// pagination defines an optional pagination for the request.
_8
cosmos.base.query.v1beta1.PageRequest pagination = 2;
_8
}

QueryGroupMembersResponse

QueryGroupMembersResponse is the Query/GroupMembersResponse response type.

query.proto
Copy

_8
message QueryGroupMembersResponse {
_8
_8
// members are the members of the group with given group_id.
_8
repeated GroupMember members = 1;
_8
_8
// pagination defines the pagination in the response.
_8
cosmos.base.query.v1beta1.PageResponse pagination = 2;
_8
}

QueryGroupsByAdminRequest

QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type.

query.proto
Copy

_8
message QueryGroupsByAdminRequest {
_8
_8
// admin is the account address of a group's admin.
_8
string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_8
_8
// pagination defines an optional pagination for the request.
_8
cosmos.base.query.v1beta1.PageRequest pagination = 2;
_8
}

QueryGroupsByAdminResponse

QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type.

query.proto
Copy

_8
message QueryGroupsByAdminResponse {
_8
_8
// groups are the groups info with the provided admin.
_8
repeated GroupInfo groups = 1;
_8
_8
// pagination defines the pagination in the response.
_8
cosmos.base.query.v1beta1.PageResponse pagination = 2;
_8
}

QueryGroupPoliciesByGroupRequest

QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type.

query.proto
Copy

_8
message QueryGroupPoliciesByGroupRequest {
_8
_8
// group_id is the unique ID of the group policy's group.
_8
uint64 group_id = 1;
_8
_8
// pagination defines an optional pagination for the request.
_8
cosmos.base.query.v1beta1.PageRequest pagination = 2;
_8
}

QueryGroupPoliciesByGroupResponse

QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type.

query.proto
Copy

_8
message QueryGroupPoliciesByGroupResponse {
_8
_8
// group_policies are the group policies info associated with the provided group.
_8
repeated GroupPolicyInfo group_policies = 1;
_8
_8
// pagination defines the pagination in the response.
_8
cosmos.base.query.v1beta1.PageResponse pagination = 2;
_8
}

QueryGroupPoliciesByAdminRequest

QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type.

query.proto
Copy

_8
message QueryGroupPoliciesByAdminRequest {
_8
_8
// admin is the admin address of the group policy.
_8
string admin = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_8
_8
// pagination defines an optional pagination for the request.
_8
cosmos.base.query.v1beta1.PageRequest pagination = 2;
_8
}

QueryGroupPoliciesByAdminResponse

QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type.

query.proto
Copy

_8
message QueryGroupPoliciesByAdminResponse {
_8
_8
// group_policies are the group policies info with provided admin.
_8
repeated GroupPolicyInfo group_policies = 1;
_8
_8
// pagination defines the pagination in the response.
_8
cosmos.base.query.v1beta1.PageResponse pagination = 2;
_8
}

QueryProposalRequest

QueryProposalRequest is the Query/Proposal request type.

query.proto
Copy

_5
message QueryProposalRequest {
_5
_5
// proposal_id is the unique ID of a proposal.
_5
uint64 proposal_id = 1;
_5
}

QueryProposalResponse

QueryProposalResponse is the Query/Proposal response type.

query.proto
Copy

_5
message QueryProposalResponse {
_5
_5
// proposal is the proposal info.
_5
Proposal proposal = 1;
_5
}

QueryProposalsByGroupPolicyRequest

QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type.

query.proto
Copy

_8
message QueryProposalsByGroupPolicyRequest {
_8
_8
// address is the account address of the group policy related to proposals.
_8
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_8
_8
// pagination defines an optional pagination for the request.
_8
cosmos.base.query.v1beta1.PageRequest pagination = 2;
_8
}

QueryProposalsByGroupPolicyResponse

QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type.

query.proto
Copy

_8
message QueryProposalsByGroupPolicyResponse {
_8
_8
// proposals are the proposals with given group policy.
_8
repeated Proposal proposals = 1;
_8
_8
// pagination defines the pagination in the response.
_8
cosmos.base.query.v1beta1.PageResponse pagination = 2;
_8
}

QueryVoteByProposalVoterRequest

QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type.

query.proto
Copy

_8
message QueryVoteByProposalVoterRequest {
_8
_8
// proposal_id is the unique ID of a proposal.
_8
uint64 proposal_id = 1;
_8
_8
// voter is a proposal voter account address.
_8
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_8
}

QueryVoteByProposalVoterResponse

QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type.

query.proto
Copy

_5
message QueryVoteByProposalVoterResponse {
_5
_5
// vote is the vote with given proposal_id and voter.
_5
Vote vote = 1;
_5
}

QueryVotesByProposalRequest

QueryVotesByProposalRequest is the Query/VotesByProposal request type.

query.proto
Copy

_8
message QueryVotesByProposalRequest {
_8
_8
// proposal_id is the unique ID of a proposal.
_8
uint64 proposal_id = 1;
_8
_8
// pagination defines an optional pagination for the request.
_8
cosmos.base.query.v1beta1.PageRequest pagination = 2;
_8
}

QueryVotesByProposalResponse

QueryVotesByProposalResponse is the Query/VotesByProposal response type.

query.proto
Copy

_8
message QueryVotesByProposalResponse {
_8
_8
// votes are the list of votes for given proposal_id.
_8
repeated Vote votes = 1;
_8
_8
// pagination defines the pagination in the response.
_8
cosmos.base.query.v1beta1.PageResponse pagination = 2;
_8
}

QueryVotesByVoterRequest

QueryVotesByVoterRequest is the Query/VotesByVoter request type.

query.proto
Copy

_7
message QueryVotesByVoterRequest {
_7
// voter is a proposal voter account address.
_7
string voter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_7
_7
// pagination defines an optional pagination for the request.
_7
cosmos.base.query.v1beta1.PageRequest pagination = 2;
_7
}

QueryVotesByVoterResponse

QueryVotesByVoterResponse is the Query/VotesByVoter response type.

query.proto
Copy

_8
message QueryVotesByVoterResponse {
_8
_8
// votes are the list of votes by given voter.
_8
repeated Vote votes = 1;
_8
_8
// pagination defines the pagination in the response.
_8
cosmos.base.query.v1beta1.PageResponse pagination = 2;
_8
}

QueryGroupsByMemberRequest

QueryGroupsByMemberRequest is the Query/GroupsByMember request type.

query.proto
Copy

_7
message QueryGroupsByMemberRequest {
_7
// address is the group member address.
_7
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_7
_7
// pagination defines an optional pagination for the request.
_7
cosmos.base.query.v1beta1.PageRequest pagination = 2;
_7
}

QueryGroupsByMemberResponse

QueryGroupsByMemberResponse is the Query/GroupsByMember response type.

query.proto
Copy

_7
message QueryGroupsByMemberResponse {
_7
// groups are the groups info with the provided group member.
_7
repeated GroupInfo groups = 1;
_7
_7
// pagination defines the pagination in the response.
_7
cosmos.base.query.v1beta1.PageResponse pagination = 2;
_7
}

QueryTallyResultRequest

QueryTallyResultRequest is the Query/TallyResult request type.

query.proto
Copy

_4
message QueryTallyResultRequest {
_4
// proposal_id is the unique id of a proposal.
_4
uint64 proposal_id = 1;
_4
}

QueryTallyResultResponse

QueryTallyResultResponse is the Query/TallyResult response type.

query.proto
Copy

_4
message QueryTallyResultResponse {
_4
// tally defines the requested tally.
_4
TallyResult tally = 1 [(gogoproto.nullable) = false];
_4
}