-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/remove-invariants
- Loading branch information
Showing
83 changed files
with
623 additions
and
6,642 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
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 |
---|---|---|
|
@@ -114,46 +114,6 @@ jobs: | |
name: "${{ github.sha }}-integration-coverage" | ||
path: ./tests/integration-profile.out | ||
|
||
test-system: # v2 system tests are in v2-test.yml | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
check-latest: true | ||
cache: true | ||
cache-dependency-path: | | ||
simapp/go.sum | ||
systemtest/go.sum | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
**/*.go | ||
go.mod | ||
go.sum | ||
**/go.mod | ||
**/go.sum | ||
**/Makefile | ||
Makefile | ||
- name: Install musl lib for simd (docker) binary | ||
if: env.GIT_DIFF | ||
run: | | ||
sudo apt-get install -y musl | ||
- name: system tests v1 | ||
if: env.GIT_DIFF | ||
run: | | ||
make test-system | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: "testnet-setup" | ||
path: ./systemtests/testnet/ | ||
retention-days: 3 | ||
|
||
repo-analysis: | ||
runs-on: ubuntu-latest | ||
needs: [tests, test-integration] | ||
|
@@ -504,29 +464,6 @@ jobs: | |
with: | ||
projectBaseDir: indexer/postgres/ | ||
|
||
test-simapp: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
check-latest: true | ||
cache: true | ||
cache-dependency-path: simapp/go.sum | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
**/*.go | ||
simapp/go.mod | ||
simapp/go.sum | ||
- name: tests simapp | ||
if: env.GIT_DIFF | ||
run: | | ||
cd simapp | ||
go test -mod=readonly -timeout 30m -tags='norace ledger test_ledger_mock' ./... | ||
test-simapp-v2: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
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,50 @@ | ||
# Upgrading Cosmos SDK v2 [DRAFT, see #22531](https://github.com/cosmos/cosmos-sdk/issues/22531) | ||
|
||
This guide provides instructions for upgrading to specific versions of Cosmos SDK. | ||
Note, always read the **SimApp** section for more information on application wiring updates. | ||
|
||
## Upgrading from v0.52.x to v2. | ||
|
||
First and foremost, v2 uses [depinject](./depinject/README.md) to wire the module and application dependencies. | ||
This guide assumes that you have already made your modules depinject compatible, and that you made use of depinject in your application. | ||
|
||
### Modules | ||
|
||
### Server | ||
|
||
|
||
### SimApp | ||
|
||
With the migration to server/v2 and runtime/v2 some changes are required in the `root.go` and `app.go` of your application. | ||
|
||
#### `app.go` | ||
|
||
|
||
#### `root.go` | ||
|
||
Thanks to the more modular design of v2, the application developer is free to pick which server to use in their application: | ||
|
||
```go | ||
// wire server commands | ||
return serverv2.AddCommands[T]( | ||
rootCmd, | ||
logger, | ||
simApp, | ||
deps.GlobalConfig, | ||
initServerConfig(), | ||
deps.ConsensusServer, | ||
grpcServer, | ||
storeComponent, | ||
telemetryServer, | ||
restServer, | ||
grpcgatewayServer, | ||
) | ||
``` | ||
|
||
## Upgrading from v0.50.x to v2 | ||
|
||
Upgrading directly from v0.50.x to v2 is supported. | ||
Modules should be updated to support all the latest changes in the SDK. | ||
|
||
Read the module section from the v0.52 [UPGRADING.md](UPGRADING.md) file for more information. | ||
Then simply follow the instructions from the [v0.52 section](#upgrading-from-v052x-to-v200) from this file. |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.