Skip to content

Commit

Permalink
!refactor: remove memstore (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
catShaark authored Jan 20, 2024
1 parent b552265 commit 9124cbe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions testing/simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func NewSimApp(
authzkeeper.StoreKey, ibcfeetypes.StoreKey,
)
tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey, multistakingtypes.MemStoreKey)
memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey)

app := &SimApp{
BaseApp: bApp,
Expand Down Expand Up @@ -359,7 +359,6 @@ func NewSimApp(
app.StakingKeeper,
app.BankKeeper,
keys[multistakingtypes.StoreKey],
tkeys[multistakingtypes.MemStoreKey],
)

app.AuthzKeeper = authzkeeper.NewKeeper(keys[authzkeeper.StoreKey], appCodec, app.MsgServiceRouter(), app.AccountKeeper)
Expand Down
3 changes: 0 additions & 3 deletions x/multi-staking/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (

type Keeper struct {
storeKey storetypes.StoreKey
memKey storetypes.StoreKey
cdc codec.BinaryCodec
stakingKeeper stakingkeeper.Keeper
bankKeeper types.BankKeeper
Expand All @@ -28,12 +27,10 @@ func NewKeeper(
stakingKeeper stakingkeeper.Keeper,
bankKeeper types.BankKeeper,
key storetypes.StoreKey,
memKey storetypes.StoreKey,
) *Keeper {
return &Keeper{
cdc: cdc,
storeKey: key,
memKey: memKey,
stakingKeeper: stakingKeeper,
bankKeeper: bankKeeper,
}
Expand Down
3 changes: 0 additions & 3 deletions x/multi-staking/types/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ const (

// QuerierRoute defines the module's query routing key
QuerierRoute = ModuleName

// MemStoreKey defines the in-memory store key
MemStoreKey = "memory:capability"
)

// KVStore keys
Expand Down

0 comments on commit 9124cbe

Please sign in to comment.