Skip to content

Commit

Permalink
appmodulev2 -> appmodule
Browse files Browse the repository at this point in the history
  • Loading branch information
technicallyty committed Jan 23, 2025
1 parent 1f838ac commit 2132fe5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions modules/apps/27-interchain-accounts/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

"cosmossdk.io/client/v2/autocli"
"cosmossdk.io/core/appmodule"
appmodulev2 "cosmossdk.io/core/appmodule/v2"
coreregistry "cosmossdk.io/core/registry"

"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -124,7 +123,7 @@ func (AppModule) GetQueryCmd() *cobra.Command {
return cli.GetQueryCmd()
}

func (am AppModule) RegisterMigrations(registrar appmodulev2.MigrationRegistrar) error {
func (am AppModule) RegisterMigrations(registrar appmodule.MigrationRegistrar) error {
controllerMigrator := controllerkeeper.NewMigrator(am.controllerKeeper)
hostMigrator := hostkeeper.NewMigrator(am.hostKeeper)
if err := registrar.Register(types.ModuleName, 2, func(ctx context.Context) error {
Expand Down
3 changes: 1 addition & 2 deletions modules/apps/29-fee/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

"cosmossdk.io/client/v2/autocli"
"cosmossdk.io/core/appmodule"
appmodulev2 "cosmossdk.io/core/appmodule/v2"
coreregistry "cosmossdk.io/core/registry"

"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -106,7 +105,7 @@ func (AppModule) GetQueryCmd() *cobra.Command {
return cli.GetQueryCmd()
}

func (am AppModule) RegisterMigrations(registrar appmodulev2.MigrationRegistrar) error {
func (am AppModule) RegisterMigrations(registrar appmodule.MigrationRegistrar) error {
m := keeper.NewMigrator(am.keeper)
if err := registrar.Register(types.ModuleName, 1, m.Migrate1to2); err != nil {
return fmt.Errorf("failed to migrate ibc-fee module from version 1 to 2 (refund leftover fees): %v", err)
Expand Down
3 changes: 1 addition & 2 deletions modules/apps/transfer/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

"cosmossdk.io/client/v2/autocli"
"cosmossdk.io/core/appmodule"
appmodulev2 "cosmossdk.io/core/appmodule/v2"
coreregistry "cosmossdk.io/core/registry"

"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -127,7 +126,7 @@ func (am AppModule) RegisterServices(cfg grpc.ServiceRegistrar) error {
return nil
}

func (am AppModule) RegisterMigrations(registrar appmodulev2.MigrationRegistrar) error {
func (am AppModule) RegisterMigrations(registrar appmodule.MigrationRegistrar) error {
m := keeper.NewMigrator(am.keeper)
if err := registrar.Register(types.ModuleName, 2, m.MigrateTotalEscrowForDenom); err != nil {
return fmt.Errorf("failed to migrate transfer app from version 2 to 3 (total escrow entry migration): %w", err)
Expand Down
3 changes: 1 addition & 2 deletions modules/core/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

"cosmossdk.io/client/v2/autocli"
"cosmossdk.io/core/appmodule"
appmodulev2 "cosmossdk.io/core/appmodule/v2"
coreregistry "cosmossdk.io/core/registry"

"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -123,7 +122,7 @@ func (AppModule) RegisterInterfaces(registry coreregistry.InterfaceRegistrar) {
types.RegisterInterfaces(registry)
}

func (am AppModule) RegisterMigrations(registrar appmodulev2.MigrationRegistrar) error {
func (am AppModule) RegisterMigrations(registrar appmodule.MigrationRegistrar) error {
clientMigrator := clientkeeper.NewMigrator(am.keeper.ClientKeeper)
if err := registrar.Register(exported.ModuleName, 2, clientMigrator.Migrate2to3); err != nil {
return err
Expand Down

0 comments on commit 2132fe5

Please sign in to comment.