Skip to content

Commit a0505dc

Browse files
authored
Upgrade IBC to v4.2.0 (#3838)
* initial changes to migrate to ibc v4 * added checksum to proposal * begin and end block are now being called inside nextBlock * added changelog * linked pr on changelog * remove local replace * using error acks from osmoutils * osmoutils tagged * go sum * added checksum
1 parent 58dfab3 commit a0505dc

30 files changed

+222
-125
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4242

4343
## Unreleased
4444

45-
### Features
45+
* IBC features
46+
* Upgrade to IBC v4.2.0
47+
* Cosmwasm
48+
* Upgrade to wasmd v0.30.x
4649

50+
### Features
51+
* [#2387](https://github.com/osmosis-labs/osmosis/pull/3838) Upgrade to IBC v4.2.0, and as a requirement for it wasmd to 0.30.0
4752
* [#3609](https://github.com/osmosis-labs/osmosis/pull/3609) Add Downtime-detection module.
4853
* [#2788](https://github.com/osmosis-labs/osmosis/pull/2788) Add logarithm base 2 implementation.
4954
* [#3677](https://github.com/osmosis-labs/osmosis/pull/3677) Add methods for cloning and mutative multiplication on osmomath.BigDec.

app/ante.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package app
33
import (
44
wasm "github.com/CosmWasm/wasmd/x/wasm"
55
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
6-
ibcante "github.com/cosmos/ibc-go/v3/modules/core/ante"
7-
ibckeeper "github.com/cosmos/ibc-go/v3/modules/core/keeper"
6+
ibcante "github.com/cosmos/ibc-go/v4/modules/core/ante"
7+
ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"
88

99
servertypes "github.com/cosmos/cosmos-sdk/server/types"
1010
sdk "github.com/cosmos/cosmos-sdk/types"

app/keepers/keepers.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ import (
4444
"github.com/osmosis-labs/osmosis/v13/x/swaprouter"
4545
swaproutertypes "github.com/osmosis-labs/osmosis/v13/x/swaprouter/types"
4646

47-
icahost "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host"
48-
icahostkeeper "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/keeper"
49-
icahosttypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/types"
50-
ibctransferkeeper "github.com/cosmos/ibc-go/v3/modules/apps/transfer/keeper"
51-
ibctransfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
52-
ibcclient "github.com/cosmos/ibc-go/v3/modules/core/02-client"
53-
ibcclienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
54-
porttypes "github.com/cosmos/ibc-go/v3/modules/core/05-port/types"
55-
ibchost "github.com/cosmos/ibc-go/v3/modules/core/24-host"
56-
ibckeeper "github.com/cosmos/ibc-go/v3/modules/core/keeper"
47+
icahost "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host"
48+
icahostkeeper "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/keeper"
49+
icahosttypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/types"
50+
ibctransferkeeper "github.com/cosmos/ibc-go/v4/modules/apps/transfer/keeper"
51+
ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"
52+
ibcclient "github.com/cosmos/ibc-go/v4/modules/core/02-client"
53+
ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types"
54+
porttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types"
55+
ibchost "github.com/cosmos/ibc-go/v4/modules/core/24-host"
56+
ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"
5757

5858
// IBC Transfer: Defines the "transfer" IBC port
59-
transfer "github.com/cosmos/ibc-go/v3/modules/apps/transfer"
59+
transfer "github.com/cosmos/ibc-go/v4/modules/apps/transfer"
6060

6161
_ "github.com/osmosis-labs/osmosis/v13/client/docs/statik"
6262
owasm "github.com/osmosis-labs/osmosis/v13/wasmbinding"
@@ -401,7 +401,7 @@ func (appKeepers *AppKeepers) InitNormalKeepers(
401401
appKeepers.Ics20WasmHooks.ContractKeeper = appKeepers.ContractKeeper
402402

403403
// wire up x/wasm to IBC
404-
ibcRouter.AddRoute(wasm.ModuleName, wasm.NewIBCHandler(appKeepers.WasmKeeper, appKeepers.IBCKeeper.ChannelKeeper))
404+
ibcRouter.AddRoute(wasm.ModuleName, wasm.NewIBCHandler(appKeepers.WasmKeeper, appKeepers.IBCKeeper.ChannelKeeper, appKeepers.IBCKeeper.ChannelKeeper))
405405
appKeepers.IBCKeeper.SetRouter(ibcRouter)
406406

407407
// register the proposal types

app/keepers/modules.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package keepers
33
import (
44
"github.com/CosmWasm/wasmd/x/wasm"
55
wasmclient "github.com/CosmWasm/wasmd/x/wasm/client"
6-
transfer "github.com/cosmos/ibc-go/v3/modules/apps/transfer"
7-
ibc "github.com/cosmos/ibc-go/v3/modules/core"
8-
ibcclientclient "github.com/cosmos/ibc-go/v3/modules/core/02-client/client"
6+
transfer "github.com/cosmos/ibc-go/v4/modules/apps/transfer"
7+
ibc "github.com/cosmos/ibc-go/v4/modules/core"
8+
ibcclientclient "github.com/cosmos/ibc-go/v4/modules/core/02-client/client"
99

1010
"github.com/cosmos/cosmos-sdk/types/module"
1111
"github.com/cosmos/cosmos-sdk/x/auth"
@@ -25,7 +25,7 @@ import (
2525
"github.com/cosmos/cosmos-sdk/x/staking"
2626
"github.com/cosmos/cosmos-sdk/x/upgrade"
2727
upgradeclient "github.com/cosmos/cosmos-sdk/x/upgrade/client"
28-
ica "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts"
28+
ica "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts"
2929

3030
_ "github.com/osmosis-labs/osmosis/v13/client/docs/statik"
3131
downtimemodule "github.com/osmosis-labs/osmosis/v13/x/downtime-detector/module"

app/modules.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ import (
55
"github.com/cosmos/cosmos-sdk/client"
66
capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper"
77
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
8-
ibctransfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
9-
ibc "github.com/cosmos/ibc-go/v3/modules/core"
10-
ibchost "github.com/cosmos/ibc-go/v3/modules/core/24-host"
11-
ibckeeper "github.com/cosmos/ibc-go/v3/modules/core/keeper"
12-
8+
ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"
9+
ibc "github.com/cosmos/ibc-go/v4/modules/core"
10+
ibchost "github.com/cosmos/ibc-go/v4/modules/core/24-host"
11+
ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"
1312
ibchookstypes "github.com/osmosis-labs/osmosis/v13/x/ibc-hooks/types"
1413

15-
ica "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts"
16-
icatypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/types"
14+
ica "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts"
15+
icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types"
1716

1817
downtimemodule "github.com/osmosis-labs/osmosis/v13/x/downtime-detector/module"
1918
downtimetypes "github.com/osmosis-labs/osmosis/v13/x/downtime-detector/types"

app/upgrades/v12/upgrades.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
99
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
1010
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
11-
icahosttypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/types"
12-
ibctransfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
11+
icahosttypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/types"
12+
ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"
1313

1414
gammtypes "github.com/osmosis-labs/osmosis/v13/x/gamm/types"
1515
superfluidtypes "github.com/osmosis-labs/osmosis/v13/x/superfluid/types"

app/upgrades/v13/upgrades.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/cosmos/cosmos-sdk/types/module"
1212
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
1313
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
14-
transfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
14+
transfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"
1515

1616
"github.com/osmosis-labs/osmosis/v13/app/keepers"
1717
"github.com/osmosis-labs/osmosis/v13/app/upgrades"

app/upgrades/v5/upgrades.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package v5
22

33
import (
4-
ibcconnectiontypes "github.com/cosmos/ibc-go/v3/modules/core/03-connection/types"
4+
ibcconnectiontypes "github.com/cosmos/ibc-go/v4/modules/core/03-connection/types"
55
// bech32ibctypes "github.com/osmosis-labs/bech32-ibc/x/bech32ibc/types"
66

77
sdk "github.com/cosmos/cosmos-sdk/types"

app/upgrades/v9/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
store "github.com/cosmos/cosmos-sdk/store/types"
77

8-
icahosttypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/types"
8+
icahosttypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/types"
99

1010
tokenfactorytypes "github.com/osmosis-labs/osmosis/v13/x/tokenfactory/types"
1111
)

app/upgrades/v9/msg_filter_ante.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55

66
sdk "github.com/cosmos/cosmos-sdk/types"
7-
ibcchanneltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types"
7+
ibcchanneltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types"
88
)
99

1010
// MsgFilterDecorator defines an AnteHandler decorator for the v9 upgrade that

0 commit comments

Comments
 (0)