Skip to content

Commit

Permalink
feat(group): add group event tally result (backport cosmos#16191) (co…
Browse files Browse the repository at this point in the history
…smos#16306)

Co-authored-by: Jeancarlo Barrios <[email protected]>
Co-authored-by: marbar3778 <[email protected]>
Co-authored-by: Julien Robert <[email protected]>
  • Loading branch information
4 people authored and ryanchristo committed Jun 8, 2023
1 parent 58d2f5a commit 1a23477
Show file tree
Hide file tree
Showing 8 changed files with 400 additions and 32 deletions.
13 changes: 13 additions & 0 deletions proto/cosmos/group/v1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,16 @@ message EventLeaveGroup {
// address is the account address of the group member.
string address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
}

// EventProposalPruned is an event emitted when a proposal is pruned.
message EventProposalPruned {

// proposal_id is the unique ID of the proposal.
uint64 proposal_id = 1;

// status is the proposal status (UNSPECIFIED, SUBMITTED, ACCEPTED, REJECTED, ABORTED, WITHDRAWN).
ProposalStatus status = 2;

// tally_result is the proposal tally result (when applicable).
TallyResult tally_result = 3;
}
5 changes: 0 additions & 5 deletions proto/cosmos/group/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import "google/protobuf/any.proto";
// Member represents a group member with an account address,
// non-zero weight, metadata and added_at timestamp.
message Member {

// address is the member's account address.
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

Expand All @@ -32,7 +31,6 @@ message Member {
// Contrary to `Member`, it doesn't have any `added_at` field
// since this field cannot be set as part of requests.
message MemberRequest {

// address is the member's account address.
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

Expand Down Expand Up @@ -120,7 +118,6 @@ enum VoteOption {

// GroupInfo represents the high-level on-chain information for a group.
message GroupInfo {

// id is the unique ID of the group.
uint64 id = 1;

Expand All @@ -145,7 +142,6 @@ message GroupInfo {

// GroupMember represents the relationship between a group and a member.
message GroupMember {

// group_id is the unique ID of the group.
uint64 group_id = 1;

Expand Down Expand Up @@ -299,7 +295,6 @@ message TallyResult {

// Vote represents a vote for a proposal.
message Vote {

// proposal is the unique ID of the proposal.
uint64 proposal_id = 1;

Expand Down
Loading

0 comments on commit 1a23477

Please sign in to comment.