-
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.
Merge pull request #1 from deep-foundation/testnet
Testnet
- Loading branch information
Showing
198 changed files
with
2,736 additions
and
2,156 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
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,35 @@ | ||
run: | ||
# timeout for analysis, e.g. 30s, 5m, default is 1m | ||
timeout: 10m | ||
tests: true | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- bodyclose | ||
- depguard | ||
- dogsled | ||
- errcheck | ||
- goconst | ||
- gocritic | ||
- gofumpt | ||
- revive | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- nakedret | ||
- exportloopref | ||
- staticcheck | ||
- stylecheck | ||
- typecheck | ||
- unconvert | ||
- unused | ||
- unparam | ||
- misspell | ||
|
||
linters-settings: | ||
gosec: | ||
excludes: | ||
- G404 |
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 |
---|---|---|
|
@@ -37,7 +37,7 @@ nfpm: | |
description: Distributed search engine | ||
maintainer: Cyber Admin <[email protected]> | ||
license: MIT | ||
vendor: cyber.Congress | ||
vendor: deepchain | ||
formats: | ||
- deb | ||
- rpm | ||
|
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 |
---|---|---|
|
@@ -60,8 +60,8 @@ whitespace += $(whitespace) | |
comma := , | ||
build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags)) | ||
|
||
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=cyber \ | ||
-X github.com/cosmos/cosmos-sdk/version.AppName=cyber \ | ||
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=deepchain \ | ||
-X github.com/cosmos/cosmos-sdk/version.AppName=deepchain \ | ||
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \ | ||
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \ | ||
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \ | ||
|
@@ -80,27 +80,32 @@ all: build format lint test | |
############################################################################### | ||
|
||
build: go.sum | ||
go build $(BUILD_FLAGS) -o $(BUILDDIR) ./cmd/cyber | ||
go build $(BUILD_FLAGS) -o $(BUILDDIR) ./cmd/deepchain | ||
|
||
|
||
build-linux: go.sum | ||
LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE) build | ||
# mkdir -p ./build | ||
# docker build --tag cybercongress/cyber ./ | ||
# docker create --name temp cybercongress/cyber:latest | ||
# docker cp temp:/usr/bin/cyber ./build/ | ||
# docker build --tag cybercongress/deepchain ./ | ||
# docker create --name temp cybercongress/deepchain:latest | ||
# docker cp temp:/usr/bin/deepchain ./build/ | ||
# docker rm temp | ||
|
||
install: go.sum | ||
go install $(BUILD_FLAGS) ./cmd/cyber | ||
go install $(BUILD_FLAGS) ./cmd/deepchain | ||
|
||
run: | ||
$(BUILDDIR)/cyber --home $(BUILDDIR)/bostrom-dev start | ||
$(BUILDDIR)/cyber --home $(BUILDDIR)/deepchain-dev start | ||
|
||
############################################################################### | ||
### Tools / Dependencies ### | ||
############################################################################### | ||
|
||
format-tools: | ||
go install mvdan.cc/[email protected] | ||
go install github.com/client9/misspell/cmd/[email protected] | ||
go install golang.org/x/tools/cmd/goimports@latest | ||
|
||
go-mod-cache: go.sum | ||
@echo "--> Download go modules to local cache" | ||
@go mod download | ||
|
@@ -112,21 +117,20 @@ go.sum: go.mod | |
go mod tidy -compat=1.17 | ||
.PHONY: go.sum | ||
|
||
lint: | ||
$(BINDIR)/golangci-lint run | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" | xargs gofmt -d -s | ||
go mod verify | ||
lint: format-tools | ||
golangci-lint run --tests=false | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*_test.go" | xargs gofumpt -d | ||
.PHONY: lint | ||
|
||
statik: | ||
$(GO) get -u github.com/rakyll/statik | ||
$(GO) generate ./api/... | ||
.PHONY: statik | ||
|
||
format: | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" | xargs gofmt -w -s | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" | xargs misspell -w | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" | xargs goimports -w -local github.com/cybercongress/go-cyber | ||
format: format-tools | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" | xargs gofumpt -w | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" | xargs misspell -w | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" | xargs goimports -w -local github.com/deep-foundation/deep-chain | ||
.PHONY: format | ||
|
||
############################################################################### | ||
|
@@ -150,7 +154,7 @@ localnet-stop: | |
### Protobuf ### | ||
############################################################################### | ||
|
||
HTTPS_GIT := https://github.com/cybercongress/go-cyber.git | ||
HTTPS_GIT := https://github.com/deep-foundation/deep-chain.git | ||
DOCKER := $(shell which docker) | ||
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf | ||
|
||
|
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.