Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f956248

Browse files
damiannolancrodriguezvegacolin-axner
authored andcommittedMar 13, 2023
docs: adding migration doc info for sdk v0.47 (cosmos#3107)
* adding migration doc info for sdk v0.47 * code alignment * title formatting * chore: preemptively apply changes from cosmos#3149 * chore: apply changes from cosmos#3150 * chore: formatting * chore: combine proposal contents removal into existing section --------- Co-authored-by: Carlos Rodriguez <carlos@interchain.io> Co-authored-by: Colin Axnér <25233464+colin-axner@users.noreply.github.com>
1 parent aae5a8d commit f956248

File tree

1 file changed

+60
-2
lines changed

1 file changed

+60
-2
lines changed
 

‎docs/migrations/v6-to-v7.md

+60-2
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ if err := clientState.VerifyMembership(
169169

170170
The `GetRoot` function has been removed from consensus state interface since it was not used by core IBC.
171171

172-
### Client Keeper
172+
### Client keeper
173173

174174
Keeper function `CheckMisbehaviourAndUpdateState` has been removed since function `UpdateClient` can now handle updating `ClientState` on `ClientMessage` type which can be any `Misbehaviour` implementations.
175175

176-
### SDK Message
176+
### SDK message
177177

178178
`MsgSubmitMisbehaviour` is deprecated since `MsgUpdateClient` can now submit a `ClientMessage` type which can be any `Misbehaviour` implementations.
179179

@@ -291,3 +291,61 @@ import (
291291
- host.RouterKey
292292
+ ibcexported.RouterKey
293293
```
294+
295+
## Upgrading to Cosmos SDK 0.47
296+
297+
The following should be considered as complementary to [Cosmos SDK v0.47 UPGRADING.md](https://github.com/cosmos/cosmos-sdk/blob/v0.47.0-rc2/UPGRADING.md).
298+
299+
### Protobuf
300+
301+
Protobuf code generation, linting and formatting have been updated to leverage the `ghcr.io/cosmos/proto-builder:0.11.5` docker container. IBC protobuf definitions are now packaged and published to [buf.build/cosmos/ibc](https://buf.build/cosmos/ibc) via CI workflows. The `third_party/proto` directory has been removed in favour of dependency management using [buf.build](https://docs.buf.build/introduction).
302+
303+
### App modules
304+
305+
Legacy APIs of the `AppModule` interface have been removed from ibc-go modules. For example, for
306+
307+
```diff
308+
- // Route implements the AppModule interface
309+
- func (am AppModule) Route() sdk.Route {
310+
- return sdk.Route{}
311+
- }
312+
-
313+
- // QuerierRoute implements the AppModule interface
314+
- func (AppModule) QuerierRoute() string {
315+
- return types.QuerierRoute
316+
- }
317+
-
318+
- // LegacyQuerierHandler implements the AppModule interface
319+
- func (am AppModule) LegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier {
320+
- return nil
321+
- }
322+
-
323+
- // ProposalContents doesn't return any content functions for governance proposals.
324+
- func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent {
325+
- return nil
326+
- }
327+
```
328+
329+
### Imports
330+
331+
Imports for ics23 have been updated as the repository have been migrated from confio to cosmos.
332+
333+
```diff
334+
import (
335+
// ...
336+
- ics23 "github.com/confio/ics23/go"
337+
+ ics23 "github.com/cosmos/ics23/go"
338+
// ...
339+
)
340+
```
341+
342+
Imports for gogoproto have been updated.
343+
344+
```diff
345+
import (
346+
// ...
347+
- "github.com/gogo/protobuf/proto"
348+
+ "github.com/cosmos/gogoproto/proto"
349+
// ...
350+
)
351+
```

0 commit comments

Comments
 (0)
Please sign in to comment.