Skip to content

Commit

Permalink
docs: migration docs for v7.3 (#4502)
Browse files Browse the repository at this point in the history
* docs: migration docs for v7.3

* formatting

* Update docs/migrations/v7_1-to-v7_3.md

Co-authored-by: Jim Fasarakis-Hilliard <[email protected]>

* address review feedback

* Update config.js

* migration docs for 06-solomachine

---------

Co-authored-by: Jim Fasarakis-Hilliard <[email protected]>
  • Loading branch information
crodriguezvega and DimitrisJim authored Aug 30, 2023
1 parent 4e0bea7 commit 40bb521
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,11 @@ module.exports = {
directory: false,
path: "/migrations/v7-to-v7_1.html",
},
{
title: "IBC-Go v7.2 to v7.3",
directory: false,
path: "/migrations/v7_2-to-v7_3.html",
},
],
},
{
Expand Down
43 changes: 43 additions & 0 deletions docs/migrations/v7_2-to-v7_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Migrating from v7.2 to v7.3

This guide provides instructions for migrating to version `v7.3.0` of ibc-go.

There are four sections based on the four potential user groups of this document:

- [Migrating from v7.2 to v7.3](#migrating-from-v72-to-v73)
- [Chains](#chains)
- [IBC Apps](#ibc-apps)
- [Relayers](#relayers)
- [IBC Light Clients](#ibc-light-clients)

**Note:** ibc-go supports golang semantic versioning and therefore all imports must be updated on major version releases.

## Chains

- No relevant changes were made in this release.

## IBC Apps

A set of interfaces have been added that IBC applications may optionally implement. Developers interested in integrating their applications with the [callbacks middleware](../middleware/callbacks/overview.md) should implement these interfaces so that the callbacks middleware can retrieve the desired callback addresses on the source and destination chains and execute actions on packet lifecycle events. The interfaces are [`PacketDataUnmarshaler`](https://github.com/cosmos/ibc-go/blob/v7.3.0-rc1/modules/core/05-port/types/module.go#L142-L147), [`PacketDataProvider`](https://github.com/cosmos/ibc-go/blob/v7.3.0-rc1/modules/core/exported/packet.go#L43-L52) and [`PacketData`](https://github.com/cosmos/ibc-go/blob/v7.3.0-rc1/modules/core/exported/packet.go#L36-L41).

Sample implementations are available for reference. For `transfer`:

- [`PacketDataUnmarshaler`](https://github.com/cosmos/ibc-go/blob/v7.3.0-rc1/modules/apps/transfer/ibc_module.go#L303-L313),
- [`PacketDataProvider`](https://github.com/cosmos/ibc-go/blob/v7.3.0-rc1/modules/apps/transfer/types/packet.go#L85-L105)
- and [`PacketData`](https://github.com/cosmos/ibc-go/blob/v7.3.0-rc1/modules/apps/transfer/types/packet.go#L74-L83).

For `27-interchain-accounts`:

- [`PacketDataUnmarshaler`](https://github.com/cosmos/ibc-go/blob/v7.3.0-rc1/modules/apps/27-interchain-accounts/controller/ibc_middleware.go#L258-L268),
- [`PacketDataProvider`](https://github.com/cosmos/ibc-go/blob/v7.3.0-rc1/modules/apps/27-interchain-accounts/types/packet.go#L94-L114)
- and [`PacketData`](https://github.com/cosmos/ibc-go/blob/v7.3.0-rc1/modules/apps/27-interchain-accounts/types/packet.go#L78-L92).

## Relayers

- No relevant changes were made in this release.

## IBC Light Clients

### 06-solomachine

Solo machines are now expected to sign data on a path that 1) does not include a connection prefix (e.g `ibc`) and 2) does not escape any characters. See PR [#4429](https://github.com/cosmos/ibc-go/pull/4429) for more details. We recommend __NOT__ using the solo machine light client of versions lower than v7.3.0.

0 comments on commit 40bb521

Please sign in to comment.