Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev stargate slashing #48

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
aa9fb66
Add protobuf tools and dependencies
alpe Feb 8, 2021
5c25501
Generate authority example
alpe Feb 8, 2021
f07c691
Make tests pass
alpe Feb 9, 2021
6b72c74
Add modules proto definitions
alpe Feb 8, 2021
2ed93c9
Update proto definitions
alpe Feb 9, 2021
ac1f30b
Hack: remove x/slashing module
alpe Feb 9, 2021
029a4c6
Start upgrade to sdk v0.41.0
alpe Feb 9, 2021
f44ad86
More updates
alpe Feb 10, 2021
234349e
Remove obsolete auth proxy
alpe Feb 10, 2021
cc52fb4
Test bank notifiications
alpe Feb 11, 2021
d812980
Modules
alpe Feb 11, 2021
4e8a301
Make unit test pass
alpe Feb 12, 2021
fa01d24
Start work on BDD tests
alpe Feb 15, 2021
a90c4d3
WIP BDD tests
alpe Feb 16, 2021
0419903
Deactivate failing tests
alpe Feb 16, 2021
b8ab0e0
Enable more BDD tests
alpe Feb 17, 2021
96543a0
Event listeners
alpe Feb 17, 2021
065eeac
Upgrade cosmos sdk to v0.41.1
alpe Feb 17, 2021
edb2f3e
Upgrade cosmos sdk to v0.41.3
alpe Feb 19, 2021
862ed42
Wip slashing
alpe Feb 22, 2021
e55231e
Slashing module
alpe Feb 23, 2021
dd95ce9
Fix Proto lint and minor updates
alpe Feb 24, 2021
cbe44ff
Run proto-format
alpe Feb 24, 2021
95d1945
Remove obsolete minter module
alpe Feb 24, 2021
9a80af9
Add docker-compose.yaml ports for rest server
blewater Feb 24, 2021
d330f05
Add 1317 rest to Dockerfile
blewater Feb 24, 2021
b86c0ce
Review feedback
alpe Feb 25, 2021
d19131e
Upgrade aws CI to Go 1.15
alpe Feb 25, 2021
b41ef97
Buyback configuration is now in genesis. Fixed buyback integration test
haasted Feb 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/build
/config
/keys
/emd

# Used for temporarily adding local dependencies during debugging.
/tmpvendor
/tmpvendor
46 changes: 37 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,18 @@ build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))

# process linker flags
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=e-money \
-X github.com/cosmos/cosmos-sdk/version.ServerName=emd \
-X github.com/cosmos/cosmos-sdk/version.ClientName=emcli \
-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)"
-X github.com/cosmos/cosmos-sdk/version.AppName=emd \
-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)"

BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)'

install:
go install -mod=readonly $(BUILD_FLAGS) ./cmd/emd
go install -mod=readonly $(BUILD_FLAGS) ./cmd/emcli

build:
go build -mod=readonly $(BUILD_FLAGS) -o build/emd$(BIN_PREFIX) ./cmd/emd
go build -mod=readonly $(BUILD_FLAGS) -o build/emcli$(BIN_PREFIX) ./cmd/emcli

build-linux:
# Linux images for docker-compose
Expand All @@ -74,7 +71,7 @@ test:
go test -mod=readonly ./...

bdd-test:
go test -mod=readonly -v -p 1 --tags="bdd" bdd_test.go staking_test.go restricted_denom_test.go multisigauthority_test.go authority_test.go capacity_test.go market_test.go buyback_test.go
go test -mod=readonly -v -p 1 --tags="bdd" bdd_test.go restricted_denom_test.go multisigauthority_test.go authority_test.go market_test.go buyback_test.go capacity_test.go staking_test.go

local-testnet:
go test -mod=readonly -v --tags="bdd" bdd_test.go localnet_test.go
Expand All @@ -92,5 +89,36 @@ license:
GO111MODULE=off go get github.com/google/addlicense/
addlicense -f LICENSE .

.PHONY: build build-linux clean test bdd-test build-docker license

###############################################################################
### Protobuf ###
###############################################################################
DOCKER := $(shell which docker)
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf

proto-all: proto-format proto-lint proto-gen

proto-gen:
@echo "Generating Protobuf files"
$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace tendermintdev/sdk-proto-gen sh ./scripts/protocgen.sh

proto-format:
@echo "Formatting Protobuf files"
$(DOCKER) run --rm -v $(CURDIR):/workspace \
--workdir /workspace tendermintdev/docker-build-proto \
find ./ -not -path "./third_party/*" -name *.proto -exec clang-format -i {} \;

# TODO (Alex): add and test with grpc server generation
#proto-swagger-gen:
@#./scripts/protoc-swagger-gen.sh

proto-lint:
@$(DOCKER_BUF) lint --error-format=json

proto-check-breaking:
@$(DOCKER_BUF) breaking --against-input $(HTTPS_GIT)#branch=master

.PHONY: proto-all proto-gen proto-swagger-gen proto-format proto-lint proto-check-breaking


.PHONY: build build-linux clean test bdd-test build-docker license
Loading