feat: replace the cosmos-db.DB interface with core/store interface (backport #21450) (#21490)

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
mergify[bot]
2024-09-06 10:30:01 +00:00
committed by GitHub
co-authored by Julien Robert
parent 8ce77cbb24
commit 889becd2c0
78 changed files with 996 additions and 981 deletions
+2 -2
View File
@@ -3,9 +3,9 @@ package mock
import (
"io"
dbm "github.com/cosmos/cosmos-db"
protoio "github.com/cosmos/gogoproto/io"
corestore "cosmossdk.io/core/store"
"cosmossdk.io/store/metrics"
pruningtypes "cosmossdk.io/store/pruning/types"
snapshottypes "cosmossdk.io/store/snapshots/types"
@@ -90,7 +90,7 @@ func (ms multiStore) GetCommitStore(key storetypes.StoreKey) storetypes.CommitSt
panic("not implemented")
}
func (ms multiStore) MountStoreWithDB(key storetypes.StoreKey, typ storetypes.StoreType, db dbm.DB) {
func (ms multiStore) MountStoreWithDB(key storetypes.StoreKey, typ storetypes.StoreType, db corestore.KVStoreWithBatch) {
ms.kv[key] = kvStore{store: make(map[string][]byte)}
}