-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
e88cf07
commit 415a7b5
Showing
249 changed files
with
126,138 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,9 @@ | ||
vue/node_modules | ||
vue/dist | ||
release/ | ||
.idea/ | ||
.vscode/ | ||
.DS_Store | ||
*.dot | ||
*.log | ||
*.ign |
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,62 @@ | ||
############################################################################### | ||
### Test ### | ||
############################################################################### | ||
test-all-module: | ||
go test ./x/.../ | ||
test-all-keepers: | ||
go test ./x/.../keeper | ||
test-all-types: | ||
go test ./x/.../types | ||
test-module-%: | ||
go test ./x/$*/.../ | ||
|
||
|
||
|
||
############################################################################### | ||
### GoLint ### | ||
############################################################################### | ||
golangci_lint_cmd=golangci-lint | ||
golangci_version=v1.55.2 | ||
|
||
lint: | ||
@echo "--> Running linter" | ||
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version) | ||
@$(golangci_lint_cmd) run --timeout=10m | ||
|
||
lint-fix: | ||
@echo "--> Running linter" | ||
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version) | ||
@$(golangci_lint_cmd) run --fix --out-format=tab --issues-exit-code=0 | ||
|
||
format: | ||
@go install mvdan.cc/gofumpt@latest | ||
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version) | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name "*.pb.go" -not -name "*.pb.gw.go" -not -name "*.pulsar.go" -not -path "./crypto/keys/secp256k1/*" | xargs gofumpt -w -l | ||
$(golangci_lint_cmd) run --fix | ||
.PHONY: format | ||
|
||
############################################################################### | ||
### Protobuf ### | ||
############################################################################### | ||
|
||
protoVer=0.14.0 | ||
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer) | ||
protoImage=docker run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) | ||
|
||
#? proto-all: Run make proto-format proto-lint proto-gen | ||
proto-all: proto-format proto-lint proto-gen | ||
|
||
#? proto-gen: Generate Protobuf files | ||
proto-gen: | ||
@echo "Generating Protobuf files" | ||
@$(protoImage) sh ./scripts/protocgen.sh | ||
|
||
#? proto-format: Format proto file | ||
proto-format: | ||
@$(protoImage) find ./ -name "*.proto" -exec clang-format -i {} \; | ||
|
||
#? proto-lint: Lint proto file | ||
proto-lint: | ||
@$(protoImage) buf lint --error-format=json | ||
|
||
.PHONY: proto-all proto-gen proto-format proto-lint |
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 @@ | ||
# mycel | ||
**mycel** is a blockchain built using Cosmos SDK and Tendermint and created with [Ignite CLI](https://ignite.com/cli). | ||
|
||
## Get started | ||
|
||
``` | ||
ignite chain serve | ||
``` | ||
|
||
`serve` command installs dependencies, builds, initializes, and starts your blockchain in development. | ||
|
||
### Configure | ||
|
||
Your blockchain in development can be configured with `config.yml`. To learn more, see the [Ignite CLI docs](https://docs.ignite.com). | ||
|
||
### Web Frontend | ||
|
||
Additionally, Ignite CLI offers both Vue and React options for frontend scaffolding: | ||
|
||
For a Vue frontend, use: `ignite scaffold vue` | ||
For a React frontend, use: `ignite scaffold react` | ||
These commands can be run within your scaffolded blockchain project. | ||
|
||
|
||
For more information see the [monorepo for Ignite front-end development](https://github.com/ignite/web). | ||
|
||
## Release | ||
To release a new version of your blockchain, create and push a new tag with `v` prefix. A new draft release with the configured targets will be created. | ||
|
||
``` | ||
git tag v0.1 | ||
git push origin v0.1 | ||
``` | ||
|
||
After a draft release is created, make your final changes from the release page and publish it. | ||
|
||
### Install | ||
To install the latest version of your blockchain node's binary, execute the following command on your machine: | ||
|
||
``` | ||
curl https://get.ignite.com/mycel-domain/mycel@latest! | sudo bash | ||
``` | ||
`mycel-domain/mycel` should match the `username` and `repo_name` of the Github repository to which the source code was pushed. Learn more about [the install process](https://github.com/allinbits/starport-installer). | ||
|
||
## Learn more | ||
|
||
- [Ignite CLI](https://ignite.com/cli) | ||
- [Tutorials](https://docs.ignite.com/guide) | ||
- [Ignite CLI docs](https://docs.ignite.com) | ||
- [Cosmos SDK docs](https://docs.cosmos.network) | ||
- [Developer Chat](https://discord.gg/ignite) |
Oops, something went wrong.