-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add server implementation of Group module (#10570)
<!-- The default pull request template is for types feat, fix, or refactor. For other templates, add one of the following parameters to the url: - template=docs.md - template=other.md --> ## Description Closes: #9897 Closes: #9905 Adds server implementation of Group module and wires it up in simapp --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) - [x] provided a link to the relevant issue or specification - [x] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules) - [x] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [x] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [x] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable)
- Loading branch information
1 parent
fec3577
commit 3495691
Showing
31 changed files
with
7,014 additions
and
725 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
syntax = "proto3"; | ||
|
||
package cosmos.group.v1beta1; | ||
|
||
import "cosmos_proto/cosmos.proto"; | ||
|
||
option go_package = "github.com/cosmos/cosmos-sdk/x/group"; | ||
|
||
// EventCreateGroup is an event emitted when a group is created. | ||
message EventCreateGroup { | ||
|
||
// group_id is the unique ID of the group. | ||
uint64 group_id = 1; | ||
} | ||
|
||
// EventUpdateGroup is an event emitted when a group is updated. | ||
message EventUpdateGroup { | ||
|
||
// group_id is the unique ID of the group. | ||
uint64 group_id = 1; | ||
} | ||
|
||
// EventCreateGroupAccount is an event emitted when a group account is created. | ||
message EventCreateGroupAccount { | ||
|
||
// address is the address of the group account. | ||
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];; | ||
} | ||
|
||
// EventUpdateGroupAccount is an event emitted when a group account is updated. | ||
message EventUpdateGroupAccount { | ||
|
||
// address is the address of the group account. | ||
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];; | ||
} | ||
|
||
// EventCreateProposal is an event emitted when a proposal is created. | ||
message EventCreateProposal { | ||
|
||
// proposal_id is the unique ID of the proposal. | ||
uint64 proposal_id = 1; | ||
} | ||
|
||
// EventVote is an event emitted when a voter votes on a proposal. | ||
message EventVote { | ||
|
||
// proposal_id is the unique ID of the proposal. | ||
uint64 proposal_id = 1; | ||
} | ||
|
||
// EventExec is an event emitted when a proposal is executed. | ||
message EventExec { | ||
|
||
// proposal_id is the unique ID of the proposal. | ||
uint64 proposal_id = 1; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.