Skip to content

Commit

Permalink
feat(#237): Added keeper for encounters
Browse files Browse the repository at this point in the history
  • Loading branch information
lxgr-linux committed Dec 10, 2024
1 parent d2f255c commit a32dae7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/cardchain/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type Keeper struct {
RunningAverages gtk.KeywordedGenericTypeKeeper[*types.RunningAverage]
Pools gtk.KeywordedGenericTypeKeeper[*sdk.Coin]
Images gtk.GenericTypeKeeper[*types.Image]
Encounters gtk.GenericTypeKeeper[*types.Encounter]

FeatureFlagModuleInstance ffKeeper.ModuleInstance
BankKeeper types.BankKeeper
Expand All @@ -55,6 +56,7 @@ func NewKeeper(
imagesStorekey storetypes.StoreKey,
serversStoreKey storetypes.StoreKey,
zealyStoreKey storetypes.StoreKey,
encountersStoreKey storetypes.StoreKey,
internalStoreKey storetypes.StoreKey,
ps paramtypes.Subspace,

Expand Down Expand Up @@ -82,6 +84,7 @@ func NewKeeper(
Pools: gtk.NewKGTK[*sdk.Coin](poolsStoreKey, internalStoreKey, cdc, gtk.GetEmpty[sdk.Coin], []string{PublicPoolKey, WinnersPoolKey, BalancersPoolKey}),
Images: gtk.NewGTK[*types.Image](imagesStorekey, internalStoreKey, cdc, gtk.GetEmpty[types.Image]),
Servers: gtk.NewGTK[*types.Server](serversStoreKey, internalStoreKey, cdc, gtk.GetEmpty[types.Server]),
Encounters: gtk.NewGTK[*types.Encounter](encountersStoreKey, internalStoreKey, cdc, gtk.GetEmpty[types.Encounter]),

FeatureFlagModuleInstance: featureFlagKeeper.GetModuleInstance(types.ModuleName, []string{string(types.FeatureFlagName_Council), string(types.FeatureFlagName_Matches)}),
BankKeeper: bankKeeper,
Expand Down
1 change: 1 addition & 0 deletions x/cardchain/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const (
CouncilsStoreKey = "Councils"
ServersStoreKey = "Servers"
ZealyStoreKey = "Zealy"
EncountersStoreKey = "Encounters"
InternalStoreKey = "Internal"
RunningAveragesStoreKey = "RunningAverages"
ImagesStoreKey = "Images"
Expand Down

0 comments on commit a32dae7

Please sign in to comment.