Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ require (
cosmossdk.io/x/tx v0.14.0
cosmossdk.io/x/upgrade v0.2.0
github.com/cosmos/cosmos-db v1.1.1
github.com/cosmos/interchain-security/v6 v6.4.1
github.com/informalsystems/itf-go v0.0.1
github.com/spf13/viper v1.20.1
golang.org/x/mod v0.24.0
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -829,8 +829,6 @@ github.com/cosmos/ibc-go/v10 v10.2.0 h1:wlk/zqz2O0WRyE6UConoR1ci2HSW02P9ywamZCh5
github.com/cosmos/ibc-go/v10 v10.2.0/go.mod h1:ijeyJ1FDvXoc5w+rlhpMntjhZ558EF02SBFjroW1hPo=
github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5RtnU=
github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0=
github.com/cosmos/interchain-security/v6 v6.4.1 h1:DzBDjPQIYUJiF0ioNHkvmcS629htvCu9r5gFb+m7mms=
github.com/cosmos/interchain-security/v6 v6.4.1/go.mod h1:yTbAxgcNKQ+/x2obvnHtxnOjQ5AcML4gb9V0P0e1rds=
github.com/cosmos/ledger-cosmos-go v0.14.0 h1:WfCHricT3rPbkPSVKRH+L4fQGKYHuGOK9Edpel8TYpE=
github.com/cosmos/ledger-cosmos-go v0.14.0/go.mod h1:E07xCWSBl3mTGofZ2QnL4cIUzMbbGVyik84QYKbX3RA=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
Expand Down
28 changes: 1 addition & 27 deletions x/ccv/consumer/keeper/migrations.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
package keeper

import (
sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"

v2 "github.com/cosmos/interchain-security/v5/x/ccv/consumer/migrations/v2"
v3 "github.com/cosmos/interchain-security/v5/x/ccv/consumer/migrations/v3"
v4 "github.com/cosmos/interchain-security/v6/x/ccv/consumer/migrations/v4"
)

// Migrator is a struct for handling in-place store migrations.
// Note: This is a complete fork, so no migrations are implemented.
type Migrator struct {
keeper Keeper
paramSpace paramtypes.Subspace
Expand All @@ -19,25 +15,3 @@ type Migrator struct {
func NewMigrator(keeper Keeper, paramspace paramtypes.Subspace) Migrator {
return Migrator{keeper: keeper, paramSpace: paramspace}
}

// Migrate1to2 migrates x/ccvconsumer state from consensus version 1 to 2.
func (m Migrator) Migrate1to2(ctx sdk.Context) error {
store := ctx.KVStore(m.keeper.storeKey)
return v2.MigrateConsumerPacketData(ctx, store)
}

// Migrate2to3 migrates x/ccvconsumer from consensus version 2 to 3.
// This migration is necessary to move the consumer module legacy params.
func (m Migrator) Migrate2to3(ctx sdk.Context) error {
store := ctx.KVStore(m.keeper.storeKey)
cdc := m.keeper.cdc
return v3.MigrateLegacyParams(ctx, cdc, store, m.paramSpace)
}

// Migrate3to4 migrates x/ccvconsumer from consensus version 3 to 4.
func (m Migrator) Migrate3to4(ctx sdk.Context) error {
store := ctx.KVStore(m.keeper.storeKey)
v4.CleanupState(store)

return nil
}
58 changes: 0 additions & 58 deletions x/ccv/consumer/migrations/v2/migration.go

This file was deleted.

85 changes: 0 additions & 85 deletions x/ccv/consumer/migrations/v2/migration_test.go

This file was deleted.

107 changes: 0 additions & 107 deletions x/ccv/consumer/migrations/v3/legacy_params.go

This file was deleted.

27 changes: 0 additions & 27 deletions x/ccv/consumer/migrations/v3/migration.go

This file was deleted.

Loading
Loading