- 为了添加对 IBC v2 的支持,链需要接入一个新的 IBC v2 Transfer 栈
- 链需要接入新的轻客户端模块
- 链需要更新 Keeper 构造调用,以符合新的函数签名
- 链需要从其
app/app.go中移除 02-client 旧版 proposal handler 的路由 - 链需要从其
app/app.go中移除 capability keeper 及所有相关设置,包括 scoped keepers - 链需要移除 ibc fee 中间件(29-fee)
- 如果使用该模块,链需要将
github.com/cosmos/ibc-go/modules/light-clients/08-wasm/的导入和用法更新为github.com/cosmos/ibc-go/modules/light-clients/08-wasm/v10 - 如果使用该模块,链需要将
github.com/cosmos/ibc-go/modules/apps/callbacks的导入和用法更新为github.com/cosmos/ibc-go/v10/modules/apps/callbacks
CapabilityKeeper、IBCFeeKeeper 以及所有 capabilitykeeper.ScopedKeeper 类型的 Scoped keepers:
NewKVStoreKeys 调用中移除 capability 和 ibc fee 中间件的 store key:
WithQueryRouter 调用:
noAuthzModule):
SetOrderBeginBlockers、SetOrderEndBlockers、SetOrderInitGenesis 和 SetOrderExportGenesis 中移除 capability 模块和 ibc fee 中间件:
QueryPlugins 和 AcceptListStargateQuerier 的 go module:
This guide provides instructions for migrating to a new version of ibc-go. Note: ibc-go supports golang semantic versioning and therefore all imports must be updated on major version releases. In addition, for this release, the 08-wasm module has been released as v10, and the callbacks middleware has been moved into the ibc-go module itself. Diff examples are shown after the list of overall changes:
- To add support for IBC v2, Chains will need to wire up a new IBC v2 Transfer stack
- Chains will need to wire up the new light client modules
- Chains will need to update Keeper construction calls to comply with the new signatures
- Chains will need to remove the route for the legacy proposal handler for 02-client from their
app/app.go - Chains will need to remove the capability keeper and all related setup, including the scoped keepers from their
app/app.go - Chains will need to remove ibc fee middleware (29-fee)
- Chains will need, if using this module, to update their imports and usage of
github.com/cosmos/ibc-go/modules/light-clients/08-wasm/togithub.com/cosmos/ibc-go/modules/light-clients/08-wasm/v10 - Chains will need, if using this module, to update their imports and usage of
github.com/cosmos/ibc-go/modules/apps/callbackstogithub.com/cosmos/ibc-go/v10/modules/apps/callbacks
CapabilityKeeper, IBCFeeKeeper and all capabilitykeeper.ScopedKeeper Scoped keepers from the App struct:
NewKVStoreKeys call:
WithQueryRouter call in particular:
noAuthzModule) from the ICA Controller stack creation:
SetOrderBeginBlockers, SetOrderEndBlockers, SetOrderInitGenesis and SetOrderExportGenesis:
QueryPlugins and AcceptListStargateQuerier.