forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
951 changed files
with
24,286 additions
and
110,448 deletions.
There are no files selected for viewing
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,40 @@ | ||
--- | ||
name: Module Readiness Checklist | ||
about: Pre-flight checklist that modules must pass in order to be included in a release of the Cosmos SDK | ||
labels: 'module-readiness-checklist' | ||
--- | ||
|
||
## x/{MODULE_NAME} Module Readiness Checklist | ||
|
||
This checklist is to be used for tracking the final internal audit of new Cosmos SDK modules prior to inclusion in a published release. | ||
|
||
### Release Candidate Checklist | ||
|
||
The following checklist should be gone through once the module has been fully implemented. This audit should be performed directly on `master`, or preferably on a `alpha` or `beta` release tag that includes the module. | ||
|
||
The module **should not** be included in any Release Candidate tag until it has passed this checklist. | ||
|
||
- [ ] API audit (at least 1 person) (@assignee) | ||
- [ ] Are Msg and Query methods and types well-named and organized? | ||
- [ ] Is everything well documented (inline godoc as well as [`/spec/` folder](https://github.com/cosmos/cosmos-sdk/blob/master/docs/spec/SPEC-SPEC.md) in module directory) | ||
- [ ] State machine audit (at least 2 people) (@assignee1, @assignee2) | ||
- [ ] Read through MsgServer code and verify correctness upon visual inspection | ||
- [ ] Ensure all state machine code which could be confusing is properly commented | ||
- [ ] Make sure state machine logic matches Msg method documentation | ||
- [ ] Ensure that all state machine edge cases are covered with tests and that test coverage is sufficient (at least 90% coverage on module code) | ||
- [ ] Assess potential threats for each method including spam attacks and ensure that threats have been addressed sufficiently. This should be done by writing up threat assessment for each method | ||
- [ ] Assess potential risks of any new third party dependencies and decide whether a dependency audit is needed | ||
- [ ] Completeness audit, fully implemented with tests (at least 1 person) (@assignee) | ||
- [ ] Genesis import and export of all state | ||
- [ ] Query services | ||
- [ ] CLI methods | ||
- [ ] All necessary migration scripts are present (if this is an upgrade of existing module) | ||
|
||
### Published Release Checklist | ||
|
||
After the above checks have been audited and the module is included in a tagged Release Candidate, the following additional checklist should be undertaken for live testing, and potentially a 3rd party audit (if deemed necessary): | ||
|
||
- [ ] Testnet / devnet testing (2-3 people) (@assignee1, @assignee2, @assignee3) | ||
- [ ] All Msg methods have been tested especially in light of any potential threats identified | ||
- [ ] Genesis import and export has been tested | ||
- [ ] Nice to have (and needed in some cases if threats could be high): Official 3rd party audit |
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,58 @@ | ||
name: Atlas | ||
# Atlas checks if a modules atlas manifest has been touched, if so it publishes the updated version | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "x/**/atlas/*" | ||
pull_request: | ||
paths: | ||
- "x/**/atlas/*" | ||
|
||
jobs: | ||
auth: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: technote-space/get-diff-action@v4 | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
x/auth/atlas/** | ||
- uses: marbar3778/atlas_action@main | ||
with: | ||
token: ${{ secrets.ATLAS_TOKEN }} | ||
path: ./x/auth/atlas/atlas.toml | ||
dry-run: ${{ github.event_name != 'pull_request' }} | ||
if: env.GIT_DIFF | ||
bank: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: technote-space/get-diff-action@v4 | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
x/bank/atlas/** | ||
- uses: marbar3778/atlas_action@main | ||
with: | ||
token: ${{ secrets.ATLAS_TOKEN }} | ||
path: ./x/bank/atlas/atlas.toml | ||
dry-run: ${{ github.event_name != 'pull_request' }} | ||
if: env.GIT_DIFF | ||
evidence: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: technote-space/get-diff-action@v4 | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
x/evidence/atlas/** | ||
- uses: marbar3778/atlas_action@main | ||
with: | ||
token: ${{ secrets.ATLAS_TOKEN }} | ||
path: ./x/evidence/atlas/manifest.toml | ||
dry-run: ${{ github.event_name != 'pull_request' }} | ||
if: env.GIT_DIFF |
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
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
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.