Skip to content

Commit

Permalink
bump ICS (#3317)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoke authored Sep 5, 2024
1 parent 0edb784 commit 495bbb7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
14 changes: 7 additions & 7 deletions app/upgrades/v20/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func MigrateConsumerAdditionProposal(
}
// first, create an Opt-In consumer chain
msgCreateConsumer := providertypes.MsgCreateConsumer{
Signer: govKeeper.GetAuthority(),
Submitter: govKeeper.GetAuthority(),
ChainId: msg.ChainId,
Metadata: metadata,
InitializationParameters: nil,
Expand All @@ -311,7 +311,7 @@ func MigrateConsumerAdditionProposal(
}
// second, update the consumer chain to be TopN
msgUpdateConsumer := providertypes.MsgUpdateConsumer{
Signer: govKeeper.GetAuthority(),
Owner: govKeeper.GetAuthority(),
ConsumerId: resp.ConsumerId,
Metadata: nil,
InitializationParameters: &initParams,
Expand Down Expand Up @@ -365,7 +365,7 @@ func MigrateConsumerAdditionProposal(

// first, create a new consumer chain to get a consumer ID
msgCreateConsumer := providertypes.MsgCreateConsumer{
Signer: govKeeper.GetAuthority(),
Submitter: govKeeper.GetAuthority(),
ChainId: msg.ChainId,
Metadata: metadata,
InitializationParameters: nil, // to be added to MsgUpdateConsumer
Expand All @@ -384,7 +384,7 @@ func MigrateConsumerAdditionProposal(

// second, replace the message in the proposal with a MsgUpdateConsumer
msgUpdateConsumer := providertypes.MsgUpdateConsumer{
Signer: govKeeper.GetAuthority(),
Owner: govKeeper.GetAuthority(),
ConsumerId: resp.ConsumerId,
Metadata: nil,
InitializationParameters: &initParams,
Expand Down Expand Up @@ -508,7 +508,7 @@ func MigrateConsumerRemovalProposal(

msgRemoveConsumer := providertypes.MsgRemoveConsumer{
ConsumerId: rmConsumerID,
Signer: govKeeper.GetAuthority(),
Owner: govKeeper.GetAuthority(),
}

if proposal.Status == govtypes.StatusPassed {
Expand Down Expand Up @@ -616,7 +616,7 @@ func MigrateConsumerModificationProposal(
return nil
}
msgUpdateConsumer := providertypes.MsgUpdateConsumer{
Signer: govKeeper.GetAuthority(),
Owner: govKeeper.GetAuthority(),
ConsumerId: modifyConsumerID,
Metadata: nil,
InitializationParameters: nil,
Expand Down Expand Up @@ -713,7 +713,7 @@ func MigrateChangeRewardDenomsProposal(
func SetICSConsumerMetadata(ctx sdk.Context, providerKeeper providerkeeper.Keeper) error {
for _, consumerID := range providerKeeper.GetAllActiveConsumerIds(ctx) {
phase := providerKeeper.GetConsumerPhase(ctx, consumerID)
if phase != providertypes.ConsumerPhase_CONSUMER_PHASE_LAUNCHED {
if phase != providertypes.CONSUMER_PHASE_LAUNCHED {
continue
}
chainID, err := providerKeeper.GetConsumerChainId(ctx, consumerID)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ require (
github.com/cosmos/ibc-apps/modules/rate-limiting/v8 v8.0.0
github.com/cosmos/ibc-go/modules/capability v1.0.1
github.com/cosmos/ibc-go/v8 v8.5.0
github.com/cosmos/interchain-security/v5 v5.0.0-20240904161413-954f77c8c6f2
github.com/cosmos/interchain-security/v5 v5.0.0-20240905162918-300530f18130
github.com/google/gofuzz v1.2.0
github.com/gorilla/mux v1.8.1
github.com/ory/dockertest/v3 v3.11.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5Rtn
github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0=
github.com/cosmos/interchain-security/v5 v5.0.0-20240904161413-954f77c8c6f2 h1:Z07VkkzgXyiboGTzCBCjlHfOZwdnq/pts3i+LCRn3Kc=
github.com/cosmos/interchain-security/v5 v5.0.0-20240904161413-954f77c8c6f2/go.mod h1:y3LdR1GPxF8SMFRb/V38OWGZNwEriJDFlka/hoH1GEk=
github.com/cosmos/interchain-security/v5 v5.0.0-20240905162918-300530f18130 h1:RKrwueaofyJhrlJ/57TxFpbf5unMG2BcX8kmmTDVRoc=
github.com/cosmos/interchain-security/v5 v5.0.0-20240905162918-300530f18130/go.mod h1:EYGBSusSaB9XgW5f5mFgN/sDW25hWn9shlZSKOe41ek=
github.com/cosmos/keyring v1.2.0 h1:8C1lBP9xhImmIabyXW4c3vFjjLiBdGCmfLUfeZlV1Yo=
github.com/cosmos/keyring v1.2.0/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA=
github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM=
Expand Down

0 comments on commit 495bbb7

Please sign in to comment.