Skip to content

Commit 57d3051

Browse files
damiannolanmergify[bot]
authored andcommitted
docs: adding migration doc info for sdk v0.47 (#3107)
* adding migration doc info for sdk v0.47 * code alignment * title formatting * chore: preemptively apply changes from #3149 * chore: apply changes from #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> (cherry picked from commit f034e6b) # Conflicts: # docs/migrations/v6-to-v7.md
1 parent d859ad1 commit 57d3051

File tree

1 file changed

+65
-3
lines changed

1 file changed

+65
-3
lines changed

docs/migrations/v6-to-v7.md

+65-3
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ if err := clientState.VerifyMembership(
168168

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

171-
### Client Keeper
171+
### Client keeper
172172

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

175-
### SDK Message
175+
### SDK message
176176

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

@@ -290,4 +290,66 @@ import (
290290

291291
- host.RouterKey
292292
+ ibcexported.RouterKey
293-
```
293+
<<<<<<< HEAD
294+
```
295+
=======
296+
```
297+
298+
## Upgrading to Cosmos SDK 0.47
299+
300+
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).
301+
302+
### Protobuf
303+
304+
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).
305+
306+
### App modules
307+
308+
Legacy APIs of the `AppModule` interface have been removed from ibc-go modules. For example, for
309+
310+
```diff
311+
- // Route implements the AppModule interface
312+
- func (am AppModule) Route() sdk.Route {
313+
- return sdk.Route{}
314+
- }
315+
-
316+
- // QuerierRoute implements the AppModule interface
317+
- func (AppModule) QuerierRoute() string {
318+
- return types.QuerierRoute
319+
- }
320+
-
321+
- // LegacyQuerierHandler implements the AppModule interface
322+
- func (am AppModule) LegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier {
323+
- return nil
324+
- }
325+
-
326+
- // ProposalContents doesn't return any content functions for governance proposals.
327+
- func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent {
328+
- return nil
329+
- }
330+
```
331+
332+
### Imports
333+
334+
Imports for ics23 have been updated as the repository have been migrated from confio to cosmos.
335+
336+
```diff
337+
import (
338+
// ...
339+
- ics23 "github.com/confio/ics23/go"
340+
+ ics23 "github.com/cosmos/ics23/go"
341+
// ...
342+
)
343+
```
344+
345+
Imports for gogoproto have been updated.
346+
347+
```diff
348+
import (
349+
// ...
350+
- "github.com/gogo/protobuf/proto"
351+
+ "github.com/cosmos/gogoproto/proto"
352+
// ...
353+
)
354+
```
355+
>>>>>>> f034e6b8 (docs: adding migration doc info for sdk v0.47 (#3107))

0 commit comments

Comments
 (0)