Skip to content

Commit ad0c311

Browse files
nicolaslaraczarcas7ic
authored andcommitted
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 40e5320 commit ad0c311

30 files changed

+1112
-126
lines changed

CHANGELOG.md

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

4343
## Unreleased
4444

45-
### Misc Improvements
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
52+
* [#3609](https://github.com/osmosis-labs/osmosis/pull/3609) Add Downtime-detection module.
53+
* [#2788](https://github.com/osmosis-labs/osmosis/pull/2788) Add logarithm base 2 implementation.
4754
* [#3677](https://github.com/osmosis-labs/osmosis/pull/3677) Add methods for cloning and mutative multiplication on osmomath.BigDec.
4855
* [#3676](https://github.com/osmosis-labs/osmosis/pull/3676) implement `PowerInteger` function on `osmomath.BigDec`
4956
* [#3678](https://github.com/osmosis-labs/osmosis/pull/3678) implement mutative `PowerIntegerMut` function on `osmomath.BigDec`.
@@ -84,12 +91,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8491

8592
* [#3611](https://github.com/osmosis-labs/osmosis/pull/3611),[#3647](https://github.com/osmosis-labs/osmosis/pull/3647) Introduce osmocli, to automate thousands of lines of CLI boilerplate
8693
* [#3634](https://github.com/osmosis-labs/osmosis/pull/3634) (Makefile) Ensure correct golang version in make build and make install. (Thank you @jhernandezb )
87-
<<<<<<< HEAD
88-
* [#3712](https://github.com/osmosis-labs/osmosis/pull/3712) replace `osmomath.BigDec` `Power` with `PowerInteger`
89-
90-
=======
94+
* [#3712](https://github.com/osmosis-labs/osmosis/pull/3712) replace `osmomath.BigDec` `Power` with `PowerInteger`
9195
* [#3711](https://github.com/osmosis-labs/osmosis/pull/3711) Use Dec instead of Int for additive `ErrTolerace` in `osmoutils`.
92-
>>>>>>> 5ab7ebf6 (refactor(osmoutils): use Dec for additive tolerance instead of Int (#3711))
9396

9497
## v13.0.0
9598

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
@@ -38,19 +38,19 @@ import (
3838
ibcratelimit "github.com/osmosis-labs/osmosis/v13/x/ibc-rate-limit"
3939
ibcratelimittypes "github.com/osmosis-labs/osmosis/v13/x/ibc-rate-limit/types"
4040

41-
icahost "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host"
42-
icahostkeeper "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/keeper"
43-
icahosttypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/types"
44-
ibctransferkeeper "github.com/cosmos/ibc-go/v3/modules/apps/transfer/keeper"
45-
ibctransfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
46-
ibcclient "github.com/cosmos/ibc-go/v3/modules/core/02-client"
47-
ibcclienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
48-
porttypes "github.com/cosmos/ibc-go/v3/modules/core/05-port/types"
49-
ibchost "github.com/cosmos/ibc-go/v3/modules/core/24-host"
50-
ibckeeper "github.com/cosmos/ibc-go/v3/modules/core/keeper"
41+
icahost "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host"
42+
icahostkeeper "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/keeper"
43+
icahosttypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/types"
44+
ibctransferkeeper "github.com/cosmos/ibc-go/v4/modules/apps/transfer/keeper"
45+
ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"
46+
ibcclient "github.com/cosmos/ibc-go/v4/modules/core/02-client"
47+
ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types"
48+
porttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types"
49+
ibchost "github.com/cosmos/ibc-go/v4/modules/core/24-host"
50+
ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"
5151

5252
// IBC Transfer: Defines the "transfer" IBC port
53-
transfer "github.com/cosmos/ibc-go/v3/modules/apps/transfer"
53+
transfer "github.com/cosmos/ibc-go/v4/modules/apps/transfer"
5454

5555
_ "github.com/osmosis-labs/osmosis/v13/client/docs/statik"
5656
owasm "github.com/osmosis-labs/osmosis/v13/wasmbinding"
@@ -349,7 +349,7 @@ func (appKeepers *AppKeepers) InitNormalKeepers(
349349
appKeepers.Ics20WasmHooks.ContractKeeper = appKeepers.ContractKeeper
350350

351351
// wire up x/wasm to IBC
352-
ibcRouter.AddRoute(wasm.ModuleName, wasm.NewIBCHandler(appKeepers.WasmKeeper, appKeepers.IBCKeeper.ChannelKeeper))
352+
ibcRouter.AddRoute(wasm.ModuleName, wasm.NewIBCHandler(appKeepers.WasmKeeper, appKeepers.IBCKeeper.ChannelKeeper, appKeepers.IBCKeeper.ChannelKeeper))
353353
appKeepers.IBCKeeper.SetRouter(ibcRouter)
354354

355355
// 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
"github.com/osmosis-labs/osmosis/v13/x/epochs"

app/modules.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ 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"
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"
1212

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

1616
ibc_hooks "github.com/osmosis-labs/osmosis/v13/x/ibc-hooks"
1717

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)