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

feat: cosmos v0.50 upgrade + app-wiring #169

Merged
merged 80 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
7913414
chore: upgrade to cosmos sdk v0.50.5
shifty11 Mar 18, 2024
f0808c6
chore: change signature of Begin- and EndBlock
shifty11 Mar 18, 2024
304ff46
chore: update app.go and dependencies
shifty11 Mar 18, 2024
aada01d
chore: change protobuf 'types.Dec' to 'types.DecProto'
shifty11 Mar 19, 2024
3b18902
fix: typo
shifty11 Mar 19, 2024
9e9465b
chore: update cosmos-sdk
shifty11 Mar 19, 2024
f96f66c
chore: change protobuf types from `DecProto` to `Coin`
shifty11 Mar 19, 2024
c81792e
chore: change to math.Legacy decimals
shifty11 Mar 19, 2024
a4563b8
chore: change `sdk.KVStorePrefixIterator` to `storeTypes.KVStorePrefi…
shifty11 Mar 19, 2024
e3462c4
chore: change logger import
shifty11 Mar 19, 2024
48e7d22
chore: change NewDecFromStr
shifty11 Mar 19, 2024
4342fb3
chore: renamings
shifty11 Mar 19, 2024
b339aab
chore: more renamings
shifty11 Mar 19, 2024
77ed413
chore: even more renamings
shifty11 Mar 19, 2024
9fd888c
chore: comment modules implementations
shifty11 Mar 19, 2024
b86e752
fix: export.go
shifty11 Mar 19, 2024
fedfeb0
fix: app.go and test_helpers.go
shifty11 Mar 19, 2024
c5b651e
chore: replace 'github.com/cometbft/cometbft-db' with 'github.com/cos…
shifty11 Mar 19, 2024
ef0be52
chore: comment unknown cmd code
shifty11 Mar 19, 2024
ce525c0
chore: use new project created with 0.50.x as base
shifty11 Mar 20, 2024
cc67c68
chore: update protobufs
shifty11 Mar 20, 2024
483de5a
fix: module basic implementations
shifty11 Mar 20, 2024
2fe5fc1
fix: genesis validation error
shifty11 Mar 20, 2024
eb6026c
chore: remove packet-forward-middleware
shifty11 Mar 20, 2024
e429838
fix: typo
shifty11 Mar 20, 2024
227bd41
fix: tests
shifty11 Mar 20, 2024
c3cd1f1
chore: use go 1.22
shifty11 Mar 20, 2024
566c3aa
chore: add queryTypes module
shifty11 Mar 21, 2024
db4d57c
fix: test setup
shifty11 Mar 21, 2024
73a0200
refactor: rename keepers
shifty11 Mar 21, 2024
0ad1447
feat: add new protobuf generation (draft)
shifty11 Mar 25, 2024
d50beb0
feat: add app wiring to kyve modules (draft)
shifty11 Mar 25, 2024
bd6740a
feat: implement app-wiring for bundles module
shifty11 Mar 25, 2024
0a884bf
feat: implement app-wiring for delegation module
shifty11 Mar 26, 2024
45eb25d
feat: implement app-wiring for global module
shifty11 Mar 26, 2024
aca764b
feat: implement app-wiring for pool module
shifty11 Mar 26, 2024
49bf22a
feat: implement app-wiring for stakers module
shifty11 Mar 26, 2024
f4c44b2
feat: implement app-wiring for team module
shifty11 Mar 26, 2024
dfe784c
feat: implement app-wiring for funders module
shifty11 Mar 26, 2024
2d0fbd6
chore: remove unused stuff in query keeper
shifty11 Mar 26, 2024
35d019d
feat: add app-wiring in app
shifty11 Mar 26, 2024
50e7e70
fix: config.yml
shifty11 Mar 26, 2024
2841ac5
fix: gov keeper in query module
shifty11 Mar 26, 2024
b279b33
refactor: util
shifty11 Mar 26, 2024
47f62dc
refactor: bundles tests
shifty11 Mar 27, 2024
ec45d43
fix: app-wiring
shifty11 Mar 27, 2024
1473417
fix: pool account issue
shifty11 Mar 27, 2024
0ac0c5f
fix: testutils
shifty11 Mar 27, 2024
8f5ca31
chore: remove unused code
shifty11 Mar 27, 2024
5f07d81
chore: remove store keys, fix app-wiring
shifty11 Mar 27, 2024
af15d05
fix: test suite
shifty11 Mar 28, 2024
29471ce
chore: update ginkgo version
shifty11 Mar 28, 2024
a8a5b52
fix: funders tests
shifty11 Mar 28, 2024
3e21b5e
fix: tests
shifty11 Mar 28, 2024
3364248
fix: begin blocker order
shifty11 Mar 28, 2024
54db3f7
fix: pass delegation store key to query module
shifty11 Apr 1, 2024
84af1a1
fix: more tests
shifty11 Apr 1, 2024
a537685
chore: remove simulation
shifty11 Apr 1, 2024
417b8f8
chore: update buf dependencies to cosmos-sdk 0.50
shifty11 Apr 2, 2024
815da26
chore: change begin/end blockers order
shifty11 Apr 2, 2024
1cc11ca
fix: typo in pool test
shifty11 Apr 2, 2024
e956dfe
fix: stakers leave-pool-entry access
shifty11 Apr 2, 2024
97f43be
chore: reference stakingKeeper vai pointer everywhere
shifty11 Apr 2, 2024
a3c0f42
chore: remove unused code
shifty11 Apr 2, 2024
f765dc0
chore: update deps
shifty11 Apr 2, 2024
d239cb4
chore: run formatter
shifty11 Apr 2, 2024
407c436
chore: fix linter errors
shifty11 Apr 2, 2024
3976963
chore: use latest cosmos-sdk
shifty11 Apr 2, 2024
e923c0c
chore: remove unused begin/end blockers
shifty11 Apr 3, 2024
e6e71c4
chore: add todo for x/global/abci_test
shifty11 Apr 4, 2024
50911db
fix: tests
shifty11 Apr 4, 2024
ee87f4b
chore: update dependencies
shifty11 Apr 4, 2024
5238cab
chore: cleanup protobuf generation
shifty11 Apr 15, 2024
af50dcd
fix: docs
shifty11 Apr 15, 2024
9cb82d8
fix: proto format/lint
shifty11 Apr 15, 2024
34e171c
chore: remove circuit breaker
shifty11 Apr 15, 2024
e0ab54e
chore: remove circuit breaker from app_config.go
shifty11 Apr 15, 2024
7dc5c08
chore: update change version to v1.5.0
shifty11 Apr 16, 2024
07ed8af
chore: handle v1.5 upgrade boilerplate
shifty11 Apr 18, 2024
cf84909
feat: interchain tests (#170)
shifty11 Apr 22, 2024
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
23 changes: 22 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,25 @@ jobs:
go-version-file: 'go.mod'
# Test & coverage report creation
- name: Test & coverage report creation
run: go test -cover -mod=readonly ./x/...
run: go test -cover -mod=readonly ./x/...

interchaintest:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Check out repository code
uses: actions/checkout@v4
# Setup Golang
- name: 🐿 Setup Golang
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
# Setup heighliner
- name: Setup heighliner
run: make heighliner-setup
# Run heighliner
- name: Run heighliner
run: make heighliner
# Run interchaintest
- name: Run interchaintest
run: make interchaintest
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ release
.DS_Store
/scripts/
test/.env
chain
tmp-*

build
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG IMG_TAG=latest

# Compile the kyved binary
FROM golang:1.20-alpine AS kyved-builder
FROM golang:1.22-alpine AS kyved-builder

# Install make
RUN apk add --no-cache make
Expand Down
27 changes: 16 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ COMMIT := $(shell git log -1 --format='%H')
GO_VERSION := $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1,2)

# VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//')
VERSION := v1.4.0
VERSION := v1.5.0

TEAM_ALLOCATION := 165000000000000
ifeq ($(ENV),kaon)
Expand Down Expand Up @@ -34,8 +34,8 @@ ldflags := $(strip $(ldflags))
BUILD_FLAGS := -ldflags '$(ldflags)' -tags 'ledger' -trimpath

.PHONY: proto-setup proto-format proto-lint proto-gen \
format lint vet test build release dev
all: ensure_environment ensure_version proto-all format lint test build
format lint vet test build release dev interchaintest
all: ensure_environment ensure_version proto-all format lint test interchaintest build

###############################################################################
### Build ###
Expand Down Expand Up @@ -115,8 +115,8 @@ ifndef ENV
endif

ensure_version:
ifneq ($(GO_VERSION),1.20)
$(error ❌ Please run Go v1.20.x..)
ifneq ($(GO_VERSION),1.22)
$(error ❌ Please run Go v1.22.x..)
endif

###############################################################################
Expand Down Expand Up @@ -179,23 +179,28 @@ proto-setup:
### Tests & Simulation ###
###############################################################################

ensure_heighliner:
@which heighliner > /dev/null || (echo "❌ Heighliner not found. Please install it by running 'make heighliner-setup'." && exit 1)
@docker inspect kaon:local > /dev/null || (echo "❌ Kaon image not found. Please build it by running 'make heighliner'." && exit 1)

heighliner:
@echo "🤖 Building Kaon image..."
@heighliner build --chain kaon --local 1> /dev/null
@echo "✅ Completed build!"

@echo "🤖 Building KYVE image..."
@heighliner build --chain kyve --local 1> /dev/null
@echo "✅ Completed build!"

heighliner-setup:
@echo "🤖 Installing Heighliner..."
@git clone https://github.com/strangelove-ventures/heighliner.git
@cd heighliner && go install && cd ..
@git clone https://github.com/strangelove-ventures/heighliner.git /tmp/heighliner
@cd /tmp/heighliner && go install && cd ..
@rm -rf heighliner
@echo "✅ Completed installation!"

test:
@echo "🤖 Running tests..."
@go test -cover -mod=readonly ./x/...
@echo "✅ Completed tests!"

interchaintest: ensure_heighliner
@echo "🤖 Running interchain tests..."
@go test -mod=readonly ./interchaintest/...
@echo "✅ Completed interchain tests!"
Loading
Loading