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
090eb20
commit 086158b
Showing
583 changed files
with
174,472 additions
and
15,670 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 @@ | ||
build | ||
deploy/testnet |
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 |
---|---|---|
@@ -1,2 +1,7 @@ | ||
vendor | ||
build | ||
vue/node_modules | ||
vue/dist | ||
release/ | ||
/.idea/ | ||
/build/ | ||
/deploy/testnet/ | ||
.vscode |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,43 +1,32 @@ | ||
# build_linux_arm64: | ||
# env GOOS=linux GOARCH=arm64 go build -o build/shareledger_linux_arm64 -mod=readonly cmd/shareledger/main.go | ||
.PHONY: build_linux_amd64 build dbuild dinit dup ddown duprefresh run | ||
|
||
# build_linux_amd64: | ||
# env GOOS=linux GOARCH=amd64 go build -o build/shareledger_linux_amd64 -mod=readonly cmd/shareledger/main.go | ||
run: | ||
go run ./cmd/Shareledgerd/main.go start | ||
|
||
# build_windows_amd64: | ||
# env GOOS=windows GOARCH=amd64 go build -o build/shareledger_windows_amd64.exe -mod=readonly cmd/shareledger/main.go | ||
|
||
# build_darwin_amd64: | ||
# env GOOS=darwin GOARCH=amd64 go build -o build/shareledger_darwin_amd64 -mod=readonly cmd/shareledger/main.go | ||
|
||
# build_all: build_linux_arm64 build_linux_amd64 build_windows_amd64 build_darwin_amd64 | ||
|
||
# .PHONY: build build_linux_arm64 build_linux_amd64 build_windows_amd64 build_all | ||
|
||
# ------------------------------ | ||
|
||
|
||
VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//') | ||
COMMIT := $(shell git log -1 --format='%H') | ||
|
||
build_tags= cleveldb | ||
|
||
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=shareledger \ | ||
-X github.com/cosmos/cosmos-sdk/version.ServerName=shareledger \ | ||
-X github.com/cosmos/cosmos-sdk/version.ClientName=slcli \ | ||
-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)" | ||
build_linux_amd64: | ||
env GOOS=linux GOARCH=amd64 go build -o build/shareledger_linux_amd64 ./cmd/Shareledgerd | ||
|
||
build: | ||
go build -tags cleveldb -ldflags '$(ldflags)' -mod=readonly -o build/shareledger ./cmd/shareledger | ||
go build -tags cleveldb -ldflags '$(ldflags)' -mod=readonly -o build/slcli ./cmd/slcli | ||
go build -mod=readonly -o build/debug ./cmd/debug | ||
|
||
build-docker: | ||
$(MAKE) -C testnet/docker/ all | ||
|
||
clean: | ||
sudo rm -rf ./build | ||
|
||
.PHONY: build clean | ||
go build -o build/shareledger ./cmd/Shareledgerd | ||
|
||
dbuild: | ||
docker build -t sharering/shareledger -f ./deploy/docker/Dockerfile . | ||
|
||
dinit: | ||
rm -rf ./deploy/testnet && \ | ||
cp -r ./deploy/testnet_config ./deploy/testnet && \ | ||
cp ./deploy/testnet/genesis.json ./deploy/testnet/node0/config && \ | ||
cp ./deploy/testnet/genesis.json ./deploy/testnet/node1/config && \ | ||
cp ./deploy/testnet/genesis.json ./deploy/testnet/node2/config && \ | ||
cp ./deploy/testnet/genesis.json ./deploy/testnet/node3/config | ||
dup: | ||
cd ./deploy && \ | ||
docker-compose up -d --remove-orphans | ||
ddown: | ||
cd ./deploy && \ | ||
docker-compose down | ||
|
||
duprefresh: dinit dup | ||
|
||
test: | ||
go test ./... -v |
Oops, something went wrong.