Skip to content

Commit

Permalink
Merge pull request #70
Browse files Browse the repository at this point in the history
Updated to Cosmos SDK v0.39.x
  • Loading branch information
bsrinivas8687 authored Jan 10, 2021
2 parents f1f01c7 + b62aee1 commit b06b3ee
Show file tree
Hide file tree
Showing 162 changed files with 3,519 additions and 2,535 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/bin/
/.idea/
/.idea/
.DS_Store*
29 changes: 18 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ BUILD_TAGS := netgo,ledger
BUILD_TAGS := $(strip ${BUILD_TAGS})

LD_FLAGS := -s -w \
-X github.com/cosmos/cosmos-sdk/version.Name=sentinel-hub \
-X github.com/cosmos/cosmos-sdk/version.ServerName=sentinel-hubd \
-X github.com/cosmos/cosmos-sdk/version.ClientName=sentinel-hub-cli \
-X github.com/cosmos/cosmos-sdk/version.Name=sentinelhub \
-X github.com/cosmos/cosmos-sdk/version.ServerName=sentinelhubd \
-X github.com/cosmos/cosmos-sdk/version.ClientName=sentinelhubcli \
-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}
Expand All @@ -20,16 +20,16 @@ all: install test benchmark

build: mod_verify
ifeq (${OS},Windows_NT)
go build -mod=readonly ${BUILD_FLAGS} -o bin/sentinel-hubd.exe ./cmd/sentinel-hubd
go build -mod=readonly ${BUILD_FLAGS} -o bin/sentinel-hub-cli.exe ./cmd/sentinel-hub-cli
go build -mod=readonly ${BUILD_FLAGS} -o bin/sentinelhubd.exe ./cmd/sentinelhubd
go build -mod=readonly ${BUILD_FLAGS} -o bin/sentinelhubcli.exe ./cmd/sentinelhubcli
else
go build -mod=readonly ${BUILD_FLAGS} -o bin/sentinel-hubd ./cmd/sentinel-hubd
go build -mod=readonly ${BUILD_FLAGS} -o bin/sentinel-hub-cli ./cmd/sentinel-hub-cli
go build -mod=readonly ${BUILD_FLAGS} -o bin/sentinelhubd ./cmd/sentinelhubd
go build -mod=readonly ${BUILD_FLAGS} -o bin/sentinelhubcli ./cmd/sentinelhubcli
endif

install: mod_verify
go install -mod=readonly ${BUILD_FLAGS} ./cmd/sentinel-hubd
go install -mod=readonly ${BUILD_FLAGS} ./cmd/sentinel-hub-cli
go install -mod=readonly ${BUILD_FLAGS} ./cmd/sentinelhubd
go install -mod=readonly ${BUILD_FLAGS} ./cmd/sentinelhubcli

test:
@go test -mod=readonly -v -cover ${PACKAGES}
Expand All @@ -41,8 +41,15 @@ simulate_short:
@go test -mod=readonly -v -timeout=1h -run TestFullAppSimulation \
-Enabled=true -Seed=4 -NumBlocks=50 -BlockSize=50 -Commit=true

simulate_multi:
@runsim -Jobs=4 -SimAppPkg=. 500 1 TestFullAppSimulation
simulate_long:
@go test -mod=readonly -v -timeout=1h -run TestFullAppSimulation \
-Enabled=true -Seed=4 -NumBlocks=2500 -BlockSize=50 -Commit=true

simulate_multi_short:
@runsim -Jobs=4 -SimAppPkg=. 5 1 TestFullAppSimulation

simulate_multi_long:
@runsim -Jobs=4 -SimAppPkg=. 250 1 TestFullAppSimulation

mod_verify:
@echo "Ensure dependencies have not been modified"
Expand Down
Loading

0 comments on commit b06b3ee

Please sign in to comment.