forked from shentufoundation/shentu
-
Notifications
You must be signed in to change notification settings - Fork 0
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
yoongbok lee
committed
Sep 9, 2020
0 parents
commit 0907cf9
Showing
405 changed files
with
125,332 additions
and
0 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,2 @@ | ||
vendor | ||
launch/localnet |
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,3 @@ | ||
LOCALNET_ROOT=./launch/localnet | ||
LOCALNET_SUBNET=192.168.10.0/16 | ||
LOCALNET_START_IP=192.168.10.2 |
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 @@ | ||
client/lcd/swagger-ui/* linguist-vendored |
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,26 @@ | ||
codecov: | ||
notify: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "70...100" | ||
|
||
status: | ||
project: yes | ||
patch: yes | ||
changes: no | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
comment: | ||
layout: "header, diff, tree, changes, sunburst" | ||
behavior: default | ||
require_changes: no |
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,128 @@ | ||
linters-settings: | ||
govet: | ||
check-shadowing: false | ||
settings: | ||
printf: | ||
funcs: | ||
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof | ||
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf | ||
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf | ||
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf | ||
disable: | ||
- shadow | ||
golint: | ||
min-confidence: 0.3 | ||
gocyclo: | ||
min-complexity: 15 | ||
maligned: | ||
suggest-new: true | ||
dupl: | ||
threshold: 100 | ||
goconst: | ||
min-len: 2 | ||
min-occurrences: 2 | ||
depguard: | ||
list-type: blacklist | ||
packages: | ||
# logging is allowed only by logutils.Log, logrus | ||
# is allowed to use only in logutils package | ||
- github.com/sirupsen/logrus | ||
packages-with-error-messages: | ||
github.com/sirupsen/logrus: "logging is allowed only by logutils.Log" | ||
misspell: | ||
locale: US | ||
auto-fix: true | ||
lll: | ||
line-length: 140 | ||
goimports: | ||
local-prefixes: github.com/certikfoundation/shentu | ||
gocritic: | ||
enabled-tags: | ||
- diagnostic | ||
- experimental | ||
- opinionated | ||
- performance | ||
- style | ||
disabled-checks: | ||
- dupImport # https://github.com/go-critic/go-critic/issues/845 | ||
- ifElseChain | ||
- octalLiteral | ||
- wrapperFunc | ||
- hugeParam # premature optimization | ||
- paramTypeCombine | ||
funlen: | ||
lines: 100 | ||
statements: 50 | ||
|
||
linters: | ||
# please, do not use `enable-all`: it's deprecated and will be removed soon. | ||
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint | ||
disable-all: true | ||
enable: | ||
- bodyclose | ||
- depguard | ||
- dogsled | ||
- goconst | ||
- gofmt | ||
- goimports | ||
- gosimple | ||
- ineffassign | ||
- lll | ||
- maligned | ||
- misspell | ||
- nakedret | ||
- prealloc | ||
- scopelint | ||
- structcheck | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- varcheck | ||
- whitespace | ||
# - dupl | ||
# - gochecknoglobals | ||
# - godox | ||
# - golint | ||
# - govet | ||
# - interfacer | ||
# - stylecheck | ||
# - funlen | ||
# - gochecknoinits | ||
# - deadcode | ||
# - errcheck | ||
# - gocritic | ||
# - gosec | ||
# - staticcheck | ||
# - unused | ||
# - gocognit | ||
# - gocyclo | ||
|
||
run: | ||
skip-dirs: | ||
- vm | ||
- vendor | ||
- x/*/internal/mocks | ||
|
||
issues: | ||
exclude-use-default: false | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- gocyclo | ||
- errcheck | ||
- dupl | ||
- gosec | ||
|
||
- path: internal/(cache|renameio)/ | ||
linters: | ||
- lll | ||
- gochecknoinits | ||
- gocyclo | ||
- funlen | ||
|
||
# golangci.com configuration | ||
# https://github.com/golangci/golangci/wiki/Configuration | ||
service: | ||
golangci-lint-version: 1.23.x # use the fixed version to not introduce new linters unexpectedly | ||
prepare: | ||
- echo "here I can run custom commands, but no preparation needed for this repo" |
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,86 @@ | ||
env: | ||
- GO111MODULE=on | ||
before: | ||
hooks: | ||
- go mod tidy | ||
builds: | ||
- | ||
id: "certikcli" | ||
|
||
main: ./cmd/certikcli | ||
|
||
binary: certikcli | ||
|
||
ldflags: | ||
- -X github.com/certikfoundation/shentu/version.Version={{ .Version }} | ||
- -X github.com/certikfoundation/shentu/version.Commit={{ .FullCommit }} | ||
- -X github.com/certikfoundation/shentu/version.BuildTags={{ .Tag }} | ||
|
||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
|
||
goarch: | ||
- amd64 | ||
# - 386 | ||
|
||
ignore: | ||
# - goos: windows | ||
# goarch: 386 | ||
# - goos: darwin | ||
# goarch: 386 | ||
|
||
|
||
- | ||
id: "certikd" | ||
|
||
main: ./cmd/certikd | ||
|
||
binary: certikd | ||
|
||
ldflags: | ||
- -X github.com/certikfoundation/shentu/version.Version={{ .Version }} | ||
- -X github.com/certikfoundation/shentu/version.Commit={{ .FullCommit }} | ||
- -X github.com/certikfoundation/shentu/version.BuildTags={{ .Tag }} | ||
|
||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
|
||
goarch: | ||
- amd64 | ||
# - 386 | ||
|
||
ignore: | ||
# - goos: windows | ||
# goarch: 386 | ||
# - goos: darwin | ||
# goarch: 386 | ||
archives: | ||
- | ||
id: certikcli-archives | ||
|
||
builds: | ||
- certikcli | ||
- certikd | ||
|
||
name_template: "{{ .Binary }}-{{ .Os }}" | ||
replacements: | ||
linux: '' | ||
windows: '' | ||
amd64: 64 | ||
# 386: 32 | ||
darwin: macos | ||
|
||
format: binary | ||
|
||
files: | ||
- none* | ||
|
||
checksum: | ||
|
||
name_template: "release-checksums" | ||
|
||
algorithm: sha256 |
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,25 @@ | ||
name: Release | ||
on: | ||
create: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
release: | ||
name: Release on GitHub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Validates Go releaser config | ||
uses: docker://goreleaser/goreleaser:latest | ||
with: | ||
args: check | ||
|
||
- name: Create release on GitHub | ||
uses: docker://goreleaser/goreleaser:latest | ||
with: | ||
args: release | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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,52 @@ | ||
--- | ||
name: Bug Report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺ | ||
v ✰ Thanks for opening an issue! ✰ | ||
v Before smashing the submit button please review the template. | ||
v Please also ensure that this is not a duplicate issue :) | ||
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --> | ||
|
||
## Summary of the Bug | ||
|
||
A clear and concise description of what the bug is. | ||
|
||
## Steps to Reproduce | ||
|
||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
## Expected behavior | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
## Screenshots | ||
|
||
If applicable, add screenshots to help explain your problem. | ||
|
||
## Environment (please complete the following information) | ||
|
||
- Chain Version: Git commit hash or release version. | ||
- Golang Version: | ||
- OS: | ||
|
||
## Additional Context | ||
|
||
Add any other context about the problem here. | ||
|
||
____ | ||
|
||
## For Admin Use | ||
|
||
- [ ] Not duplicate issue | ||
- [ ] Appropriate labels applied | ||
- [ ] Appropriate contributors tagged |
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,51 @@ | ||
--- | ||
name: Feature Request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺ | ||
v ✰ Thanks for opening an issue! ✰ | ||
v Before smashing the submit button please review the template. | ||
v Word of caution: poorly thought-out proposals may be rejected | ||
v without deliberation | ||
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --> | ||
|
||
## Summary | ||
|
||
Short, concise description of the proposed feature. | ||
|
||
## Problem Definition | ||
|
||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
Why do we need this feature? | ||
|
||
What problems may be addressed by introducing this feature? | ||
|
||
What benefits does the chain stand to gain by including this feature? | ||
|
||
Are there any disadvantages of including this feature? | ||
|
||
## Proposal | ||
|
||
A clear and concise description of the solution you'd like (what you want to happen). | ||
|
||
## Alternatives | ||
|
||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
## Additional context | ||
|
||
Add any other context or screenshots about the feature request here. | ||
|
||
____ | ||
|
||
#### For Admin Use | ||
|
||
- [ ] Not duplicate issue | ||
- [ ] Appropriate labels applied | ||
- [ ] Appropriate contributors tagged |
Oops, something went wrong.