docs: rename app v2 to app di when talking about runtime v0 (#21329)
This commit is contained in:
parent
e57a9370fa
commit
651868a177
12
UPGRADING.md
12
UPGRADING.md
@ -67,9 +67,9 @@ clientCtx = clientCtx.
|
||||
+ WithValidatorPrefix("cosmosvaloper")
|
||||
```
|
||||
|
||||
**When using `depinject` / `app v2`, the client codecs can be provided directly from application config.**
|
||||
**When using `depinject` / `app_di`, the client codecs can be provided directly from application config.**
|
||||
|
||||
Refer to SimApp `root_v2.go` and `root.go` for an example with an app v2 and a legacy app.
|
||||
Refer to SimApp `root_di.go` and `root.go` for an example with an app di and a legacy app.
|
||||
|
||||
Additionally, a simplification of the start command leads to the following change:
|
||||
|
||||
@ -467,7 +467,7 @@ for more info.
|
||||
A `SetPreBlocker` method has been added to BaseApp. This is essential for BaseApp to run `PreBlock` which runs before begin blocker other modules, and allows to modify consensus parameters, and the changes are visible to the following state machine logics.
|
||||
Read more about other use cases [here](https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-068-preblock.md).
|
||||
|
||||
`depinject` / app v2 users need to add `x/upgrade` in their `app_config.go` / `app.yml`:
|
||||
`depinject` / app di users need to add `x/upgrade` in their `app_config.go` / `app.yml`:
|
||||
|
||||
```diff
|
||||
+ PreBlockers: []string{
|
||||
@ -575,7 +575,7 @@ The following modules `NewKeeper` function now take a `KVStoreService` instead o
|
||||
* `x/slashing`
|
||||
* `x/upgrade`
|
||||
|
||||
**Users using `depinject` / app v2 do not need any changes, this is abstracted for them.**
|
||||
**Users using `depinject` / app di do not need any changes, this is abstracted for them.**
|
||||
|
||||
Users manually wiring their chain need to use the `runtime.NewKVStoreService` method to create a `KVStoreService` from a `StoreKey`:
|
||||
|
||||
@ -592,7 +592,7 @@ app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(
|
||||
|
||||
Replace all your CometBFT logger imports by `cosmossdk.io/log`.
|
||||
|
||||
Additionally, `depinject` / app v2 users must now supply a logger through the main `depinject.Supply` function instead of passing it to `appBuilder.Build`.
|
||||
Additionally, `depinject` / app di users must now supply a logger through the main `depinject.Supply` function instead of passing it to `appBuilder.Build`.
|
||||
|
||||
```diff
|
||||
appConfig = depinject.Configs(
|
||||
@ -616,7 +616,7 @@ User manually wiring their chain need to add the logger argument when creating t
|
||||
Previously, the `ModuleBasics` was a global variable that was used to register all modules' `AppModuleBasic` implementation.
|
||||
The global variable has been removed and the basic module manager can be now created from the module manager.
|
||||
|
||||
This is automatically done for `depinject` / app v2 users, however for supplying different app module implementation, pass them via `depinject.Supply` in the main `AppConfig` (`app_config.go`):
|
||||
This is automatically done for `depinject` / app di users, however for supplying different app module implementation, pass them via `depinject.Supply` in the main `AppConfig` (`app_config.go`):
|
||||
|
||||
```go
|
||||
depinject.Supply(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user