You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation to migrate an application from v0.50.x to server/v2 is available elsewhere.
9
-
It is additional to the changes described here.
10
8
11
9
### SimApp
12
10
@@ -33,7 +31,7 @@ clientCtx = clientCtx.
33
31
34
32
**When using `depinject` / `app_di`, the client codecs can be provided directly from application config.**
35
33
36
-
Refer to SimApp `root_v2.go` and `root.go` for an example with an app di and a legacy app.
34
+
Refer to SimApp `root.go` for an example with an app di and a legacy app.
37
35
38
36
Additionally, a simplification of the start command leads to the following change:
39
37
@@ -329,7 +327,7 @@ All modules (expect `auth`) were spun out into their own `go.mod`. Replace their
329
327
330
328
##### Core API
331
329
332
-
Core API has been introduced for modules since v0.47. With the deprecation of `sdk.Context`, we strongly recommend to use the `cosmossdk.io/core/appmodule` interfaces for the modules. This will allow the modules to work out of the box with server/v2 and baseapp, as well as limit their dependencies on the SDK.
330
+
Core API has been introduced for modules since v0.47. With the deprecation of `sdk.Context`, we strongly recommend to use the `cosmossdk.io/core/appmodule` interfaces for the modules. This will allow the modules to work out of the box with baseapp, as well as limit their dependencies on the SDK.
333
331
334
332
Additionally, the `appmodule.Environment` struct is introduced to fetch different services from the application.
335
333
This should be used as an alternative to using `sdk.UnwrapContext(ctx)` to fetch the services.
@@ -465,9 +463,6 @@ Existing chains using `x/distribution` module must add the new `x/protocolpool`
465
463
#### `x/gov`
466
464
467
465
Gov v1beta1 proposal handler has been changed to take in a `context.Context` instead of `sdk.Context`.
468
-
This change was made to allow legacy proposals to be compatible with server/v2.
469
-
If you wish to migrate to server/v2, you should update your proposal handler to take in a `context.Context` and use services.
470
-
On the other hand, if you wish to keep using baseapp, simply unwrap the sdk context in your proposal handler.
471
466
472
467
#### `x/mint`
473
468
@@ -510,7 +505,7 @@ storetypes.StoreUpgrades{
510
505
511
506
#### `x/validate`
512
507
513
-
Introducing `x/validate` a module that is solely used for registering default ante/post handlers and global tx validators when using runtime and runtime/v2. If you wish to set your custom ante/post handlers, no need to use this module.
508
+
Introducing `x/validate` a module that is solely used for registering default ante/post handlers and global tx validators when using runtime. If you wish to set your custom ante/post handlers, no need to use this module.
514
509
You can however always extend them by adding extra tx validators (see `x/validate` documentation).
0 commit comments