-
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 technicallyty/22715-grpc-auto-registration
- Loading branch information
Showing
19 changed files
with
239 additions
and
89 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
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 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 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 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 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 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 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 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 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,27 @@ | ||
<!-- | ||
Guiding Principles: | ||
Changelogs are for humans, not machines. | ||
There should be an entry for every single version. | ||
The same types of changes should be grouped. | ||
Versions and sections should be linkable. | ||
The latest version comes first. | ||
The release date of each version is displayed. | ||
Mention whether you follow Semantic Versioning. | ||
Usage: | ||
Change log entries are to be added to the Unreleased section from newest to oldest. | ||
Each entry must include the Github issue reference in the following format: | ||
* [#<issue-number>] Changelog message. | ||
--> | ||
|
||
# Changelog | ||
|
||
## [Unreleased] | ||
|
||
## [v1.0.0-beta.1](https://github.com/cosmos/cosmos-sdk/releases/tag/server/v2/appmanager%2Fv1.0.0-beta.1) | ||
|
||
Initial tag of `cosmossdk.io/server/v2/appmanager`. |
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,27 @@ | ||
<!-- | ||
Guiding Principles: | ||
Changelogs are for humans, not machines. | ||
There should be an entry for every single version. | ||
The same types of changes should be grouped. | ||
Versions and sections should be linkable. | ||
The latest version comes first. | ||
The release date of each version is displayed. | ||
Mention whether you follow Semantic Versioning. | ||
Usage: | ||
Change log entries are to be added to the Unreleased section from newest to oldest. | ||
Each entry must include the Github issue reference in the following format: | ||
* [#<issue-number>] Changelog message. | ||
--> | ||
|
||
# Changelog | ||
|
||
## [Unreleased] | ||
|
||
## [v1.0.0-beta.1](https://github.com/cosmos/cosmos-sdk/releases/tag/server/v2/cometbft%2Fv1.0.0-beta.1) | ||
|
||
Initial tag of `cosmossdk.io/server/v2/cometbft`. |
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 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 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 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,27 @@ | ||
<!-- | ||
Guiding Principles: | ||
Changelogs are for humans, not machines. | ||
There should be an entry for every single version. | ||
The same types of changes should be grouped. | ||
Versions and sections should be linkable. | ||
The latest version comes first. | ||
The release date of each version is displayed. | ||
Mention whether you follow Semantic Versioning. | ||
Usage: | ||
Change log entries are to be added to the Unreleased section from newest to oldest. | ||
Each entry must include the Github issue reference in the following format: | ||
* [#<issue-number>] Changelog message. | ||
--> | ||
|
||
# Changelog | ||
|
||
## [Unreleased] | ||
|
||
## [v1.0.0-beta.1](https://github.com/cosmos/cosmos-sdk/releases/tag/server/v2/stf%2Fv1.0.0-beta.1) | ||
|
||
Initial tag of `cosmossdk.io/server/v2/stf`. |
Oops, something went wrong.