refactor: x/group audit changes (#14278)
This commit is contained in:
@@ -12878,7 +12878,7 @@ type QueryGroupInfoResponse struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// info is the GroupInfo for the group.
|
||||
// info is the GroupInfo of the group.
|
||||
Info *GroupInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
|
||||
}
|
||||
|
||||
@@ -12952,7 +12952,7 @@ type QueryGroupPolicyInfoResponse struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// info is the GroupPolicyInfo for the group policy.
|
||||
// info is the GroupPolicyInfo of the group policy.
|
||||
Info *GroupPolicyInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
@@ -26,13 +26,13 @@ type QueryClient interface {
|
||||
GroupInfo(ctx context.Context, in *QueryGroupInfoRequest, opts ...grpc.CallOption) (*QueryGroupInfoResponse, error)
|
||||
// GroupPolicyInfo queries group policy info based on account address of group policy.
|
||||
GroupPolicyInfo(ctx context.Context, in *QueryGroupPolicyInfoRequest, opts ...grpc.CallOption) (*QueryGroupPolicyInfoResponse, error)
|
||||
// GroupMembers queries members of a group
|
||||
// GroupMembers queries members of a group by group id.
|
||||
GroupMembers(ctx context.Context, in *QueryGroupMembersRequest, opts ...grpc.CallOption) (*QueryGroupMembersResponse, error)
|
||||
// GroupsByAdmin queries groups by admin address.
|
||||
GroupsByAdmin(ctx context.Context, in *QueryGroupsByAdminRequest, opts ...grpc.CallOption) (*QueryGroupsByAdminResponse, error)
|
||||
// GroupPoliciesByGroup queries group policies by group id.
|
||||
GroupPoliciesByGroup(ctx context.Context, in *QueryGroupPoliciesByGroupRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByGroupResponse, error)
|
||||
// GroupsByAdmin queries group policies by admin address.
|
||||
// GroupPoliciesByAdmin queries group policies by admin address.
|
||||
GroupPoliciesByAdmin(ctx context.Context, in *QueryGroupPoliciesByAdminRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByAdminResponse, error)
|
||||
// Proposal queries a proposal based on proposal id.
|
||||
Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error)
|
||||
@@ -40,7 +40,7 @@ type QueryClient interface {
|
||||
ProposalsByGroupPolicy(ctx context.Context, in *QueryProposalsByGroupPolicyRequest, opts ...grpc.CallOption) (*QueryProposalsByGroupPolicyResponse, error)
|
||||
// VoteByProposalVoter queries a vote by proposal id and voter.
|
||||
VoteByProposalVoter(ctx context.Context, in *QueryVoteByProposalVoterRequest, opts ...grpc.CallOption) (*QueryVoteByProposalVoterResponse, error)
|
||||
// VotesByProposal queries a vote by proposal.
|
||||
// VotesByProposal queries a vote by proposal id.
|
||||
VotesByProposal(ctx context.Context, in *QueryVotesByProposalRequest, opts ...grpc.CallOption) (*QueryVotesByProposalResponse, error)
|
||||
// VotesByVoter queries a vote by voter.
|
||||
VotesByVoter(ctx context.Context, in *QueryVotesByVoterRequest, opts ...grpc.CallOption) (*QueryVotesByVoterResponse, error)
|
||||
@@ -187,13 +187,13 @@ type QueryServer interface {
|
||||
GroupInfo(context.Context, *QueryGroupInfoRequest) (*QueryGroupInfoResponse, error)
|
||||
// GroupPolicyInfo queries group policy info based on account address of group policy.
|
||||
GroupPolicyInfo(context.Context, *QueryGroupPolicyInfoRequest) (*QueryGroupPolicyInfoResponse, error)
|
||||
// GroupMembers queries members of a group
|
||||
// GroupMembers queries members of a group by group id.
|
||||
GroupMembers(context.Context, *QueryGroupMembersRequest) (*QueryGroupMembersResponse, error)
|
||||
// GroupsByAdmin queries groups by admin address.
|
||||
GroupsByAdmin(context.Context, *QueryGroupsByAdminRequest) (*QueryGroupsByAdminResponse, error)
|
||||
// GroupPoliciesByGroup queries group policies by group id.
|
||||
GroupPoliciesByGroup(context.Context, *QueryGroupPoliciesByGroupRequest) (*QueryGroupPoliciesByGroupResponse, error)
|
||||
// GroupsByAdmin queries group policies by admin address.
|
||||
// GroupPoliciesByAdmin queries group policies by admin address.
|
||||
GroupPoliciesByAdmin(context.Context, *QueryGroupPoliciesByAdminRequest) (*QueryGroupPoliciesByAdminResponse, error)
|
||||
// Proposal queries a proposal based on proposal id.
|
||||
Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
|
||||
@@ -201,7 +201,7 @@ type QueryServer interface {
|
||||
ProposalsByGroupPolicy(context.Context, *QueryProposalsByGroupPolicyRequest) (*QueryProposalsByGroupPolicyResponse, error)
|
||||
// VoteByProposalVoter queries a vote by proposal id and voter.
|
||||
VoteByProposalVoter(context.Context, *QueryVoteByProposalVoterRequest) (*QueryVoteByProposalVoterResponse, error)
|
||||
// VotesByProposal queries a vote by proposal.
|
||||
// VotesByProposal queries a vote by proposal id.
|
||||
VotesByProposal(context.Context, *QueryVotesByProposalRequest) (*QueryVotesByProposalResponse, error)
|
||||
// VotesByVoter queries a vote by voter.
|
||||
VotesByVoter(context.Context, *QueryVotesByVoterRequest) (*QueryVotesByVoterResponse, error)
|
||||
|
||||
@@ -14339,7 +14339,7 @@ type MsgUpdateGroupPolicyMetadata struct {
|
||||
Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
|
||||
// group_policy_address is the account address of group policy.
|
||||
GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"`
|
||||
// metadata is the updated group policy metadata.
|
||||
// metadata is the group policy metadata to be updated.
|
||||
Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
}
|
||||
|
||||
@@ -14422,7 +14422,7 @@ type MsgSubmitProposal struct {
|
||||
// proposers are the account addresses of the proposers.
|
||||
// Proposers signatures will be counted as yes votes.
|
||||
Proposers []string `protobuf:"bytes,2,rep,name=proposers,proto3" json:"proposers,omitempty"`
|
||||
// metadata is any arbitrary metadata to attached to the proposal.
|
||||
// metadata is any arbitrary metadata attached to the proposal.
|
||||
Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
// messages is a list of `sdk.Msg`s that will be executed if the proposal passes.
|
||||
Messages []*anypb.Any `protobuf:"bytes,4,rep,name=messages,proto3" json:"messages,omitempty"`
|
||||
@@ -14609,7 +14609,7 @@ type MsgVote struct {
|
||||
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
|
||||
// option is the voter's choice on the proposal.
|
||||
Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1.VoteOption" json:"option,omitempty"`
|
||||
// metadata is any arbitrary metadata to attached to the vote.
|
||||
// metadata is any arbitrary metadata attached to the vote.
|
||||
Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
// exec defines whether the proposal should be executed
|
||||
// immediately after voting or not.
|
||||
|
||||
@@ -7534,7 +7534,7 @@ func (x *MemberRequest) GetMetadata() string {
|
||||
|
||||
// ThresholdDecisionPolicy is a decision policy where a proposal passes when it
|
||||
// satisfies the two following conditions:
|
||||
// 1. The sum of all `YES` voters' weights is greater or equal than the defined
|
||||
// 1. The sum of all `YES` voter's weights is greater or equal than the defined
|
||||
// `threshold`.
|
||||
// 2. The voting and execution periods of the proposal respect the parameters
|
||||
// given by `windows`.
|
||||
@@ -7595,7 +7595,7 @@ type PercentageDecisionPolicy struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// percentage is the minimum percentage the weighted sum of `YES` votes must
|
||||
// percentage is the minimum percentage of the weighted sum of `YES` votes must
|
||||
// meet for a proposal to succeed.
|
||||
Percentage string `protobuf:"bytes,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
|
||||
// windows defines the different windows for voting and execution.
|
||||
@@ -7836,7 +7836,7 @@ type GroupPolicyInfo struct {
|
||||
GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
||||
// admin is the account address of the group admin.
|
||||
Admin string `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"`
|
||||
// metadata is any arbitrary metadata to attached to the group policy.
|
||||
// metadata is any arbitrary metadata attached to the group policy.
|
||||
Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
// version is used to track changes to a group's GroupPolicyInfo structure that
|
||||
// would create a different result on a running proposal.
|
||||
@@ -7929,7 +7929,7 @@ type Proposal struct {
|
||||
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// group_policy_address is the account address of group policy.
|
||||
GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"`
|
||||
// metadata is any arbitrary metadata to attached to the proposal.
|
||||
// metadata is any arbitrary metadata attached to the proposal.
|
||||
Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
// proposers are the account addresses of the proposers.
|
||||
Proposers []string `protobuf:"bytes,4,rep,name=proposers,proto3" json:"proposers,omitempty"`
|
||||
@@ -8142,7 +8142,7 @@ type Vote struct {
|
||||
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
|
||||
// option is the voter's choice on the proposal.
|
||||
Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1.VoteOption" json:"option,omitempty"`
|
||||
// metadata is any arbitrary metadata to attached to the vote.
|
||||
// metadata is any arbitrary metadata attached to the vote.
|
||||
Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||||
// submit_time is the timestamp when the vote was submitted.
|
||||
SubmitTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user