@@ -28,6 +28,7 @@ import (
2828 "github.com/cosmos/cosmos-sdk/x/group"
2929 groupmodule "github.com/cosmos/cosmos-sdk/x/group/module"
3030 "github.com/cosmos/cosmos-sdk/x/protocolpool"
31+ "github.com/cosmos/gaia/v25/x/liquid"
3132 "github.com/cosmos/gogoproto/proto"
3233 icacontroller "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts/controller"
3334 ibccallbacks "github.com/cosmos/ibc-go/v10/modules/apps/callbacks"
@@ -121,6 +122,8 @@ import (
121122 "github.com/cosmos/cosmos-sdk/x/staking"
122123 stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
123124 stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
125+ liquidkeeper "github.com/cosmos/gaia/v25/x/liquid/keeper"
126+ liquidtypes "github.com/cosmos/gaia/v25/x/liquid/types"
124127 ica "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts"
125128 icacontrollerkeeper "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts/controller/keeper"
126129 icacontrollertypes "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts/controller/types"
@@ -254,6 +257,7 @@ type App struct {
254257 SlashingKeeper slashingkeeper.Keeper
255258 MintKeeper mintkeeper.Keeper
256259 DistrKeeper distrkeeper.Keeper
260+ LiquidKeeper * liquidkeeper.Keeper
257261 GovKeeper govkeeper.Keeper
258262 UpgradeKeeper * upgradekeeper.Keeper
259263 EvidenceKeeper evidencekeeper.Keeper
@@ -283,7 +287,7 @@ type App struct {
283287 sm * module.SimulationManager
284288}
285289
286- // New returns a reference to an initialized App .
290+ // New returns a reference to an initialized Gaia .
287291// NewSimApp returns a reference to an initialized SimApp.
288292func New (
289293 logger log.Logger , db dbm.DB , traceStore io.Writer , loadLatest bool ,
@@ -345,6 +349,7 @@ func New(
345349 icacontrollertypes .StoreKey ,
346350 paramstypes .StoreKey ,
347351 CapabilityStoreKey ,
352+ liquidtypes .StoreKey ,
348353 )
349354 tkeys := storetypes .NewTransientStoreKeys (paramstypes .TStoreKey )
350355 memkeys := storetypes .NewMemoryStoreKeys (CapabilityMemStoreKey )
@@ -476,6 +481,16 @@ func New(
476481 authtypes .NewModuleAddress (govtypes .ModuleName ).String (),
477482 )
478483
484+ app .LiquidKeeper = liquidkeeper .NewKeeper (
485+ appCodec ,
486+ runtime .NewKVStoreService (keys [liquidtypes .StoreKey ]),
487+ app .AccountKeeper ,
488+ app .BankKeeper ,
489+ app .StakingKeeper ,
490+ app .DistrKeeper ,
491+ authtypes .NewModuleAddress (govtypes .ModuleName ).String (),
492+ )
493+
479494 app .FeeGrantKeeper = feegrantkeeper .NewKeeper (
480495 appCodec ,
481496 runtime .NewKVStoreService (keys [feegrant .StoreKey ]),
@@ -488,6 +503,7 @@ func New(
488503 stakingtypes .NewMultiStakingHooks (
489504 app .DistrKeeper .Hooks (),
490505 app .SlashingKeeper .Hooks (),
506+ app .LiquidKeeper .Hooks (),
491507 ),
492508 )
493509
@@ -567,7 +583,7 @@ func New(
567583
568584 app .GovKeeper = * govKeeper .SetHooks (
569585 govtypes .NewMultiGovHooks (
570- // register the governance hooks
586+ // register the governance hooks
571587 ),
572588 )
573589
@@ -597,7 +613,7 @@ func New(
597613
598614 app .EpochsKeeper .SetHooks (
599615 epochstypes .NewMultiEpochHooks (
600- // insert epoch hooks receivers here
616+ // insert epoch hooks receivers here
601617 ),
602618 )
603619
@@ -747,6 +763,7 @@ func New(
747763 transfer .NewAppModule (app .TransferKeeper ),
748764 ica .NewAppModule (& app .ICAControllerKeeper , & app .ICAHostKeeper ),
749765 ibctm .NewAppModule (tmLightClientModule ),
766+ liquid .NewAppModule (appCodec , app .LiquidKeeper , app .AccountKeeper , app .BankKeeper , app .StakingKeeper ),
750767 )
751768
752769 // BasicModuleManager defines the module BasicManager is in charge of setting up basic,
@@ -787,6 +804,7 @@ func New(
787804 ibctransfertypes .ModuleName ,
788805 ibcexported .ModuleName ,
789806 icatypes .ModuleName ,
807+ liquidtypes .ModuleName ,
790808 wasmtypes .ModuleName ,
791809 )
792810
@@ -839,6 +857,7 @@ func New(
839857 icatypes .ModuleName ,
840858 // wasm after ibc transfer
841859 wasmtypes .ModuleName ,
860+ liquidtypes .ModuleName ,
842861 }
843862
844863 exportModuleOrder := []string {
@@ -867,6 +886,7 @@ func New(
867886 icatypes .ModuleName ,
868887 // wasm after ibc transfer
869888 wasmtypes .ModuleName ,
889+ liquidtypes .ModuleName ,
870890 }
871891
872892 app .mm .SetOrderInitGenesis (genesisModuleOrder ... )
@@ -1046,15 +1066,15 @@ func (app *App) LegacyAmino() *codec.LegacyAmino {
10461066 return app .legacyAmino
10471067}
10481068
1049- // AppCodec returns app codec.
1069+ // AppCodec returns Gaia's app codec.
10501070//
10511071// NOTE: This is solely to be used for testing purposes as it may be desirable
10521072// for modules to register their own custom testing types.
10531073func (app * App ) AppCodec () codec.Codec {
10541074 return app .appCodec
10551075}
10561076
1057- // InterfaceRegistry returns InterfaceRegistry
1077+ // InterfaceRegistry returns Gaia's InterfaceRegistry
10581078func (app * App ) InterfaceRegistry () types.InterfaceRegistry {
10591079 return app .interfaceRegistry
10601080}
0 commit comments