From a4a9d24d8a6ea0d0fab7e618ee330c1a4d405d1f Mon Sep 17 00:00:00 2001 From: Daniel Wedul Date: Tue, 10 Oct 2023 16:06:49 -0600 Subject: [PATCH] [1658]: Reorg the module.go file a bit. --- x/exchange/module/module.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/x/exchange/module/module.go b/x/exchange/module/module.go index 646a1a8341..e25c059426 100644 --- a/x/exchange/module/module.go +++ b/x/exchange/module/module.go @@ -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 } @@ -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) {}