Skip to content

Commit d513001

Browse files
authored
Merge pull request #287 from tendermint/release/v0.1.0
Release/v0.1.0
2 parents 5cc6253 + 14cf841 commit d513001

File tree

918 files changed

+403145
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

918 files changed

+403145
-6
lines changed

.codecov.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
coverage:
2+
range: 70...100
3+
round: down
4+
precision: 2
5+
status:
6+
patch: off
7+
changes: false
8+
project:
9+
default:
10+
threshold: 1% # allow this much decrease on project
11+
modules:
12+
if_ci_failed: error
13+
target: 70%
14+
flags:
15+
- modules
16+
client:
17+
if_ci_failed: error
18+
target: 70%
19+
flags:
20+
- client
21+
22+
comment:
23+
layout: "reach, diff, files"
24+
behavior: default
25+
require_changes: false
26+
27+
flags:
28+
modules:
29+
carryforward: true
30+
paths:
31+
- "x/"
32+
- "!x/**/client/**/*"
33+
client:
34+
carryforward: true
35+
paths:
36+
- "x/**/client/**/*"
37+
38+
ignore:
39+
- "x/**/client/cli/query.go"
40+
- "x/**/client/cli/query_params.go"
41+
- "x/**/client/cli/tx.go"
42+
- "x/**/client/cli/tx_*.go"
43+
- "x/**/keeper/keeper.go"
44+
- "x/**/keeper/msg_server.go"
45+
- "x/**/keeper/grpc_query_params.go"
46+
- "x/**/types/codec.go"
47+
- "x/**/types/errors.go"
48+
- "x/**/types/keys.go"
49+
- "x/**/types/key_*.go"
50+
- "x/**/types/types.go"
51+
- "x/**/module.go"
52+
- "x/**/handler.go"
53+
- "*.proto"
54+
- "*.md"
55+
- "*.yml"
56+
- "*.yaml"
57+
- "*.pb.go"
58+
- ".github/"
59+
- "app/"
60+
- "cmd/"
61+
- "docs/"
62+
- "pkg/errors/"
63+
- "proto/"
64+
- "scripts/"
65+
- "tests/"
66+
- "testutil/"
67+
- "dart/"
68+
- "vue/"

.github/CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# CODEOWNERS: https://help.github.com/articles/about-codeowners/
2+
3+
# Docs
4+
*.md @barriebyron
5+
6+
# Primary repo maintainers
7+
* @fadeev @ilgooz @lubtd @Pantani

.github/CONTRIBUTING.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Contributing guidelines
2+
3+
If you're willing to create a new PR on Starport Network, make sure that you read and comply with this document.
4+
5+
Start a new [Discussion](https://github.com/tendermint/spn/discussions/new) if you want to propose changes to this document.
6+
7+
Thank you for your contribution!
8+
9+
## Providing Feedback
10+
11+
* Before you open an issue, do a web search, and check for [existing open and closed GitHub Issues](https://github.com/tendermint/spn/issues) to see if your question has already been asked and answered. If you find a relevant topic, you can comment on that issue.
12+
* To provide feedback or ask a question, create a [GitHub issue](https://github.com/tendermint/spn/issues/new/choose). Be sure to provide the relevant information, case study, or informative links as suggested by the Pull Request template.
13+
* We recommend using GitHub issues for issues and feedback. However, you can ask quick questions on the [#🔨cosmos-sdk-starport](https://discord.com/channels/669268347736686612/737461683588431924) channel in Discord.
14+
15+
## Opening pull requests
16+
17+
### Choose a good PR title
18+
19+
Avoid long names in your PR titles. Make sure your title has fewer than 60 characters.
20+
21+
Follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) guidelines and keywords to find the best title.
22+
23+
Use parentheses to identify the package or feature that you worked on. For example: `feat(services/chain)`, `fix(scaffolding)`.
24+
25+
### Review your own code
26+
27+
Make sure that you manually tested the changes you're introducing before creating a PR or pushing another commit.
28+
29+
Monitor your PR to make sure that all CI checks pass and the PR shows **All checks have passed** (the checkmark is green).
30+
31+
### Avoid rebasing commits in your branch
32+
33+
Avoid rebasing after you open your PRs to reviews. Instead, add more commits to your PR. It's OK to do force pushes if the PR is still in draft mode and was never opened to reviews before.
34+
35+
A reviewer likes to see a linear commit history while reviewing. If you tend to force push from an older commit, reviewer might lose track in your recent changes and will have to start reviewing from scratch.
36+
37+
Don't worry about adding too many commits. The commits are squashed into a single commit while merging. Your PR title is used as the commit message.
38+
39+
### Ask for help
40+
41+
If you started a PR but couldn't finish it for whatever reason, don't give up. Instead, just ask for help. Someone else can take over and assume the ownership.
42+
43+
We appreciate every bit of your work!
44+
45+
## Coding style
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Starport Network bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: report
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1.
16+
17+
**Please provide output of commands**
18+
- `spn version`
19+
- `go version`
20+
- `uname -a`
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Starport Network feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: request
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!-- 🎉 Thank you for the PR!!! 🎉 -->
2+
3+
Closes #<issue number>. _in case of a bug fix, this should point to a bug or any other related issue(s)_
4+
5+
### What does this PR does?
6+
7+
<!-- Describe your changes here - ideally you can get that description straight from
8+
your descriptive commit message(s)! -->
9+
10+
### How to test?
11+
12+
<!-- What steps in order should someone run to test -->
13+
14+
## Checklist
15+
16+
These are the criteria that every PR should meet, please check them off as you
17+
review them:
18+
19+
- [ ] Include tests
20+
- [ ] Respect code style and lint
21+
- [ ] Update documentation (*.md) (if needed)

.github/workflows/generate.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on: push
2+
3+
jobs:
4+
generate:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v2
9+
10+
- name: Generate Vuex
11+
uses: tendermint/starport/actions/cli@develop
12+
with:
13+
args: g vuex
14+
15+
- name: Generate OpenAPI Docs
16+
uses: tendermint/starport/actions/cli@develop
17+
with:
18+
args: g openapi
19+
20+
# TODO: fix file perm issue
21+
#- name: Create Pull Request
22+
# uses: peter-evans/create-pull-request@v3
23+
# with:
24+
# title: "feat(generate): add generated code"
25+
# commit-message: "feat(generate): add generated code"
26+
# body: ""
27+
# branch: feat/generated
28+
# draft: true

.github/workflows/release.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This workflow is useful if you want to automate the process of:
2+
#
3+
# a) Creating a new prelease when you push a new tag with a "v" prefix (version).
4+
#
5+
# This type of prerelease is meant to be used for production: alpha, beta, rc, etc. types of releases.
6+
# After the prerelease is created, you need to make your changes on the release page at the relevant
7+
# Github page and publish your release.
8+
#
9+
# b) Creating/updating the "latest" prerelease when you push to your default branch.
10+
#
11+
# This type of prelease is useful to make your bleeding-edge binaries available to advanced users.
12+
#
13+
# The workflow will not run if there is no tag pushed with a "v" prefix and no change pushed to your
14+
# default branch.
15+
on: push
16+
17+
jobs:
18+
might_release:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Prepare Release Variables
25+
id: vars
26+
uses: tendermint/starport/actions/release/vars@develop
27+
28+
- name: Issue Release Assets
29+
uses: tendermint/starport/actions/cli@develop
30+
if: ${{ steps.vars.outputs.should_release == 'true' }}
31+
with:
32+
args: chain build --release --release.prefix ${{ steps.vars.outputs.tarball_prefix }} -t linux:amd64 -t darwin:amd64
33+
34+
- name: Delete the "latest" Release
35+
uses: dev-drprasad/delete-tag-and-release@v0.2.0
36+
if: ${{ steps.vars.outputs.is_release_type_latest == 'true' }}
37+
with:
38+
tag_name: ${{ steps.vars.outputs.tag_name }}
39+
delete_release: true
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
43+
- name: Publish the Release
44+
uses: softprops/action-gh-release@v1
45+
if: ${{ steps.vars.outputs.should_release == 'true' }}
46+
with:
47+
tag_name: ${{ steps.vars.outputs.tag_name }}
48+
files: release/*
49+
prerelease: true
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test-lint.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Lint
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
jobs:
9+
lint:
10+
name: golangci-lint
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 6
13+
steps:
14+
- name: Set up Go
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: 1.16
18+
- uses: actions/checkout@v2
19+
- uses: technote-space/get-diff-action@v4
20+
with:
21+
PATTERNS: |
22+
**/**.go
23+
go.mod
24+
go.sum
25+
- uses: golangci/golangci-lint-action@master
26+
with:
27+
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
28+
version: v1.37
29+
args: --issues-exit-code=0 -e SA1019 --timeout 10m
30+
github-token: ${{ secrets.github_token }}
31+
if: env.GIT_DIFF

.github/workflows/test-semantic.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: PR Semantic
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
semantic_pr:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: amannn/action-semantic-pull-request@v1.2.0
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Unit Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
- develop
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: 1.16
18+
19+
- name: Run unit tests
20+
run: go test -v -coverprofile=coverage.out -covermode=atomic ./...
21+
22+
- name: Upload coverage to Codecov
23+
uses: codecov/codecov-action@v2
24+
with:
25+
fail_ci_if_error: true
26+
verbose: true

.gitignore

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
frontend/node_modules
2-
frontend/dist
3-
frontend/.cache
4-
secret.yml
1+
# Code generation
2+
vue/node_modules
3+
vue/dist
4+
release/
5+
6+
# IDE
57
.idea
6-
.envrc
7-
ansible.cfg
8+
.envrc

Makefile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#! /usr/bin/make -f
2+
3+
## govet: Run go vet.
4+
govet:
5+
@echo Running go vet...
6+
@go vet ./...
7+
8+
## format: Run gofmt.
9+
format:
10+
@echo Formatting...
11+
@find . -name '*.go' -type f | xargs gofmt -d -s
12+
13+
## lint: Run Golang CI Lint.
14+
lint:
15+
@echo Running gocilint...
16+
@golangci-lint run --out-format=tab --issues-exit-code=0
17+
18+
## test-unit: Run the unit tests.
19+
test-unit:
20+
@echo Running unit tests...
21+
@go test -v ./...
22+
23+
## test: Run unit and integration tests.
24+
test: govet test-unit
25+
26+
help: Makefile
27+
@echo
28+
@echo " Choose a command run in "$(PROJECT_NAME)", or just run 'make' for install"
29+
@echo
30+
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
31+
@echo
32+
33+
.DEFAULT_GOAL := install

0 commit comments

Comments
 (0)