Skip to content

Commit

Permalink
docs: adding migration doc info for sdk v0.47 (#3107)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: Colin Axnér <[email protected]>
(cherry picked from commit f034e6b)

# Conflicts:
#	docs/migrations/v6-to-v7.md
  • Loading branch information
damiannolan authored and mergify[bot] committed Feb 15, 2023
1 parent d859ad1 commit 57d3051
Showing 1 changed file with 65 additions and 3 deletions.
68 changes: 65 additions & 3 deletions docs/migrations/v6-to-v7.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ if err := clientState.VerifyMembership(

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

### Client Keeper
### Client keeper

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

### SDK Message
### SDK message

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

Expand Down Expand Up @@ -290,4 +290,66 @@ import (

- host.RouterKey
+ ibcexported.RouterKey
```
<<<<<<< HEAD
```
=======
```
## Upgrading to Cosmos SDK 0.47
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).
### Protobuf
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).
### App modules
Legacy APIs of the `AppModule` interface have been removed from ibc-go modules. For example, for
```diff
- // Route implements the AppModule interface
- func (am AppModule) Route() sdk.Route {
- return sdk.Route{}
- }
-
- // QuerierRoute implements the AppModule interface
- func (AppModule) QuerierRoute() string {
- return types.QuerierRoute
- }
-
- // LegacyQuerierHandler implements the AppModule interface
- func (am AppModule) LegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier {
- return nil
- }
-
- // ProposalContents doesn't return any content functions for governance proposals.
- func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent {
- return nil
- }
```

### Imports

Imports for ics23 have been updated as the repository have been migrated from confio to cosmos.

```diff
import (
// ...
- ics23 "github.com/confio/ics23/go"
+ ics23 "github.com/cosmos/ics23/go"
// ...
)
```

Imports for gogoproto have been updated.

```diff
import (
// ...
- "github.com/gogo/protobuf/proto"
+ "github.com/cosmos/gogoproto/proto"
// ...
)
```
>>>>>>> f034e6b8 (docs: adding migration doc info for sdk v0.47 (#3107))

0 comments on commit 57d3051

Please sign in to comment.