@@ -99,6 +99,9 @@ import (
9999 monitoringptypes "github.com/tendermint/spn/x/monitoringp/types"
100100
101101 "github.com/YazzyYaz/wordle/docs"
102+ wordlemodule "github.com/YazzyYaz/wordle/x/wordle"
103+ wordlemodulekeeper "github.com/YazzyYaz/wordle/x/wordle/keeper"
104+ wordlemoduletypes "github.com/YazzyYaz/wordle/x/wordle/types"
102105 // this line is used by starport scaffolding # stargate/app/moduleImport
103106)
104107
@@ -153,6 +156,7 @@ var (
153156 transfer.AppModuleBasic {},
154157 vesting.AppModuleBasic {},
155158 monitoringp.AppModuleBasic {},
159+ wordlemodule.AppModuleBasic {},
156160 // this line is used by starport scaffolding # stargate/app/moduleBasic
157161 )
158162
@@ -165,6 +169,7 @@ var (
165169 stakingtypes .NotBondedPoolName : {authtypes .Burner , authtypes .Staking },
166170 govtypes .ModuleName : {authtypes .Burner },
167171 ibctransfertypes .ModuleName : {authtypes .Minter , authtypes .Burner },
172+ wordlemoduletypes .ModuleName : {authtypes .Minter , authtypes .Burner , authtypes .Staking },
168173 // this line is used by starport scaffolding # stargate/app/maccPerms
169174 }
170175)
@@ -225,6 +230,7 @@ type App struct {
225230 ScopedTransferKeeper capabilitykeeper.ScopedKeeper
226231 ScopedMonitoringKeeper capabilitykeeper.ScopedKeeper
227232
233+ WordleKeeper wordlemodulekeeper.Keeper
228234 // this line is used by starport scaffolding # stargate/app/keeperDeclaration
229235
230236 // mm is the module manager
@@ -261,6 +267,7 @@ func New(
261267 minttypes .StoreKey , distrtypes .StoreKey , slashingtypes .StoreKey ,
262268 govtypes .StoreKey , paramstypes .StoreKey , ibchost .StoreKey , upgradetypes .StoreKey , feegrant .StoreKey ,
263269 evidencetypes .StoreKey , ibctransfertypes .StoreKey , capabilitytypes .StoreKey , monitoringptypes .StoreKey ,
270+ wordlemoduletypes .StoreKey ,
264271 // this line is used by starport scaffolding # stargate/app/storeKey
265272 )
266273 tkeys := sdk .NewTransientStoreKeys (paramstypes .TStoreKey )
@@ -382,6 +389,16 @@ func New(
382389 )
383390 monitoringModule := monitoringp .NewAppModule (appCodec , app .MonitoringKeeper )
384391
392+ app .WordleKeeper = * wordlemodulekeeper .NewKeeper (
393+ appCodec ,
394+ keys [wordlemoduletypes .StoreKey ],
395+ keys [wordlemoduletypes .MemStoreKey ],
396+ app .GetSubspace (wordlemoduletypes .ModuleName ),
397+
398+ app .BankKeeper ,
399+ )
400+ wordleModule := wordlemodule .NewAppModule (appCodec , app .WordleKeeper , app .AccountKeeper , app .BankKeeper )
401+
385402 // this line is used by starport scaffolding # stargate/app/keeperDefinition
386403
387404 // Create static IBC router, add transfer route, then set and seal it
@@ -423,6 +440,7 @@ func New(
423440 params .NewAppModule (app .ParamsKeeper ),
424441 transferModule ,
425442 monitoringModule ,
443+ wordleModule ,
426444 // this line is used by starport scaffolding # stargate/app/appModule
427445 )
428446
@@ -450,6 +468,7 @@ func New(
450468 feegrant .ModuleName ,
451469 paramstypes .ModuleName ,
452470 monitoringptypes .ModuleName ,
471+ wordlemoduletypes .ModuleName ,
453472 // this line is used by starport scaffolding # stargate/app/beginBlockers
454473 )
455474
@@ -473,6 +492,7 @@ func New(
473492 ibchost .ModuleName ,
474493 ibctransfertypes .ModuleName ,
475494 monitoringptypes .ModuleName ,
495+ wordlemoduletypes .ModuleName ,
476496 // this line is used by starport scaffolding # stargate/app/endBlockers
477497 )
478498
@@ -501,6 +521,7 @@ func New(
501521 ibctransfertypes .ModuleName ,
502522 feegrant .ModuleName ,
503523 monitoringptypes .ModuleName ,
524+ wordlemoduletypes .ModuleName ,
504525 // this line is used by starport scaffolding # stargate/app/initGenesis
505526 )
506527
@@ -525,6 +546,7 @@ func New(
525546 ibc .NewAppModule (app .IBCKeeper ),
526547 transferModule ,
527548 monitoringModule ,
549+ wordleModule ,
528550 // this line is used by starport scaffolding # stargate/app/appModule
529551 )
530552 app .sm .RegisterStoreDecoders ()
@@ -714,6 +736,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
714736 paramsKeeper .Subspace (ibctransfertypes .ModuleName )
715737 paramsKeeper .Subspace (ibchost .ModuleName )
716738 paramsKeeper .Subspace (monitoringptypes .ModuleName )
739+ paramsKeeper .Subspace (wordlemoduletypes .ModuleName )
717740 // this line is used by starport scaffolding # stargate/app/paramSubspace
718741
719742 return paramsKeeper
0 commit comments