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

Minimal v0.44 app, without deleting unupgraded packages #1029

Merged
merged 56 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
bdabd2c
remove migrations
rhuairahrighairidh Oct 19, 2021
038d711
remove incentive module
rhuairahrighairidh Oct 19, 2021
e92cc43
remove swap module
rhuairahrighairidh Oct 19, 2021
1450f06
remove committee module
rhuairahrighairidh Oct 19, 2021
63c9326
remove hard module
rhuairahrighairidh Oct 19, 2021
deb4e1e
remove bep3 module
rhuairahrighairidh Oct 19, 2021
03aa355
remove kavadist module
rhuairahrighairidh Oct 19, 2021
45b3833
remove cdp module
rhuairahrighairidh Oct 19, 2021
a797d65
remove issuance module
rhuairahrighairidh Oct 19, 2021
3fc21ac
remove auction module
rhuairahrighairidh Oct 19, 2021
65dce3a
remove pricefeed module
rhuairahrighairidh Oct 19, 2021
fb02168
remove validator-vesting module
rhuairahrighairidh Oct 19, 2021
b47c320
remove unused rest test spike
rhuairahrighairidh Oct 19, 2021
e742d84
remove missed module imports from antehandler
rhuairahrighairidh Oct 19, 2021
deaf002
app - remove alias from imports
rhuairahrighairidh Oct 19, 2021
e7f61bf
update cosmos-sdk version in go.mod
rhuairahrighairidh Oct 19, 2021
d01d1c1
app - replace supply module
rhuairahrighairidh Oct 19, 2021
a6d34dd
app - add vesting modulea
rhuairahrighairidh Oct 19, 2021
0a8b4d1
app - replace codec
rhuairahrighairidh Oct 19, 2021
94a9707
app - remove upgrade, remove antehandler
rhuairahrighairidh Oct 19, 2021
b7eba95
app - remove features until NewApp runs
rhuairahrighairidh Oct 20, 2021
09722ea
delete cmd, cli_test, migration cmd
rhuairahrighairidh Oct 20, 2021
e3c72ca
add new app binary
rhuairahrighairidh Oct 20, 2021
36e22f9
add rough copy of gaia cmds
rhuairahrighairidh Oct 20, 2021
5986f07
read from flags/config and create new app
rhuairahrighairidh Oct 20, 2021
e04a790
remove out of date contrib files
rhuairahrighairidh Oct 20, 2021
7ab71e9
add sdk config and other tweaks to get app running
rhuairahrighairidh Oct 20, 2021
49f2727
code tidying and checks against old kava and gaia
rhuairahrighairidh Oct 20, 2021
c829030
add modules packages back in
rhuairahrighairidh Oct 21, 2021
0cc924f
set go mod to ignore modules
rhuairahrighairidh Oct 21, 2021
8aea9c4
add ante package back in
rhuairahrighairidh Oct 21, 2021
e7119b9
set go mod to ignore ante
rhuairahrighairidh Oct 21, 2021
e5724e3
add cmd packages back in
rhuairahrighairidh Oct 21, 2021
6594432
set go mod to ignore cmd
rhuairahrighairidh Oct 21, 2021
6d66008
add migrate package back in
rhuairahrighairidh Oct 21, 2021
73a3d4c
set go mod to ignore migrate
rhuairahrighairidh Oct 21, 2021
a5df7f5
add app files back in, but ignored
rhuairahrighairidh Oct 21, 2021
1a1e978
revert commented out params file
rhuairahrighairidh Oct 21, 2021
567b7e9
add cli_test package back in
rhuairahrighairidh Oct 21, 2021
17d2107
set go mod to ignore cli_test
rhuairahrighairidh Oct 21, 2021
453ed88
remove unused makefile entry
rhuairahrighairidh Oct 21, 2021
b2635a9
add upgrade todo to go.mod
rhuairahrighairidh Oct 21, 2021
c05e705
update to go 1.16
rhuairahrighairidh Oct 21, 2021
e5494b8
fix CI
rhuairahrighairidh Oct 21, 2021
ad913f2
update replace directive for v0.44.x and run go mod tidy; removes
nddeluca Oct 21, 2021
4aa5df1
add ldflag for tendermint version, as tendermint now sets the version at
nddeluca Oct 22, 2021
313ee8c
add todo for settings version map in upgrade keeper
nddeluca Oct 22, 2021
9d938fc
upgrade antehandler package
rhuairahrighairidh Oct 25, 2021
94e8877
upgrade TestApp, add antehandler to app
rhuairahrighairidh Oct 25, 2021
0d6d145
register rest and grpc gateway routes
rhuairahrighairidh Oct 26, 2021
8898199
resolve TODO about funding community pool
rhuairahrighairidh Oct 26, 2021
8645874
move test methods to TestApp
rhuairahrighairidh Oct 26, 2021
dd6a95b
decouple default data dir configuration from app
rhuairahrighairidh Oct 26, 2021
b777597
refactor NewTestApp
rhuairahrighairidh Oct 26, 2021
b2e3fcb
remove ineffective cmd formatting
rhuairahrighairidh Oct 26, 2021
18a2266
move test helper for more accesibility
rhuairahrighairidh Oct 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1
executors:
golang:
docker:
- image: circleci/golang:1.13
- image: circleci/golang:1.16

commands:
make:
Expand Down
24 changes: 12 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/make -f

VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//')
TM_VERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::')
COMMIT := $(shell git log -1 --format='%H')
LEDGER_ENABLED ?= true
export GO111MODULE = on
Expand Down Expand Up @@ -45,11 +46,11 @@ build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))
# process linker flags

ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=kava \
-X github.com/cosmos/cosmos-sdk/version.ServerName=kvd \
-X github.com/cosmos/cosmos-sdk/version.ClientName=kvcli \
-X github.com/cosmos/cosmos-sdk/version.AppName=kava \
-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.BuildTags=$(build_tags_comma_sep)" \
-X github.com/tendermint/tendermint/version.TMCoreSemVer=$(TM_VERSION)

ifeq ($(WITH_CLEVELDB),yes)
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=cleveldb
Expand All @@ -64,19 +65,16 @@ all: install

build: go.sum
ifeq ($(OS), Windows_NT)
go build -mod=readonly $(BUILD_FLAGS) -o build/$(shell go env GOOS)/kvd.exe ./cmd/kvd
go build -mod=readonly $(BUILD_FLAGS) -o build/$(shell go env GOOS)/kvcli.exe ./cmd/kvcli
go build -mod=readonly $(BUILD_FLAGS) -o build/$(shell go env GOOS)/kava.exe ./cmd/kava
else
go build -mod=readonly $(BUILD_FLAGS) -o build/$(shell go env GOOS)/kvd ./cmd/kvd
go build -mod=readonly $(BUILD_FLAGS) -o build/$(shell go env GOOS)/kvcli ./cmd/kvcli
go build -mod=readonly $(BUILD_FLAGS) -o build/$(shell go env GOOS)/kava ./cmd/kava
endif

build-linux: go.sum
LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE) build

install: go.sum
go install -mod=readonly $(BUILD_FLAGS) ./cmd/kvd
go install -mod=readonly $(BUILD_FLAGS) ./cmd/kvcli
go install -mod=readonly $(BUILD_FLAGS) ./cmd/kava

########################################
### Tools & dependencies
Expand Down Expand Up @@ -133,6 +131,11 @@ localnet-start: build-linux localnet-stop
localnet-stop:
docker-compose down

# Launch a new single validator chain
start:
./contrib/devnet/init-new-chain.sh
kava start

########################################
### Testing

Expand Down Expand Up @@ -162,9 +165,6 @@ test-basic: test
test:
@go test $$(go list ./... | grep -v 'migrate\|contrib')

test-rest:
rest_test/run_all_tests_from_make.sh

# Run cli integration tests
# `-p 4` to use 4 cores, `-tags cli_test` to tell go not to ignore the cli package
# These tests use the `kvd` or `kvcli` binaries in the build dir, or in `$BUILDDIR` if that env var is set.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions app/ante/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// This file exists to make the go mod tools ignore this directory.
// Without it, go mod will try and download the old sdk v0.39 imports in this directory.
Loading