Skip to content

Commit

Permalink
[1658]: Reorg the module.go file a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpicyLemon committed Oct 10, 2023
1 parent d22f41a commit a4a9d24
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions x/exchange/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,11 @@ import (
)

var (
_ module.AppModule = AppModule{}
_ module.AppModuleBasic = AppModuleBasic{}
_ module.AppModule = AppModule{}
_ module.AppModuleSimulation = AppModule{}
)

type AppModule struct {
AppModuleBasic
keeper keeper.Keeper
}

func NewAppModule(cdc codec.Codec, exchangeKeeper keeper.Keeper) AppModule {
return AppModule{
AppModuleBasic: AppModuleBasic{cdc: cdc},
keeper: exchangeKeeper,
}
}

type AppModuleBasic struct {
cdc codec.Codec
}
Expand Down Expand Up @@ -89,6 +77,18 @@ func (AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
// RegisterLegacyAminoCodec registers the exchange module's types for the given codec.
func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) {}

type AppModule struct {
AppModuleBasic
keeper keeper.Keeper
}

func NewAppModule(cdc codec.Codec, exchangeKeeper keeper.Keeper) AppModule {
return AppModule{
AppModuleBasic: AppModuleBasic{cdc: cdc},
keeper: exchangeKeeper,
}
}

// RegisterInvariants registers the invariants for the exchange module.
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {}

Expand Down

0 comments on commit a4a9d24

Please sign in to comment.