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
+3 -3
View File
@@ -4,11 +4,11 @@ import (
"errors"
"io"
dbm "github.com/cosmos/cosmos-db"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"cosmossdk.io/client/v2/offchain"
corestore "cosmossdk.io/core/store"
"cosmossdk.io/log"
"cosmossdk.io/simapp"
confixcmd "cosmossdk.io/tools/confix/cmd"
@@ -116,7 +116,7 @@ func txCommand() *cobra.Command {
// newApp creates the application
func newApp(
logger log.Logger,
db dbm.DB,
db corestore.KVStoreWithBatch,
traceStore io.Writer,
appOpts servertypes.AppOptions,
) servertypes.Application {
@@ -131,7 +131,7 @@ func newApp(
// appExport creates a new simapp (optionally at a given height) and exports state.
func appExport(
logger log.Logger,
db dbm.DB,
db corestore.KVStoreWithBatch,
traceStore io.Writer,
height int64,
forZeroHeight bool,