refactor(server)!: continue server v1 removal (#23238)

This commit is contained in:
Julien Robert
2025-01-08 12:18:19 +00:00
committed by GitHub
parent 597c176900
commit c5b3033b3a
50 changed files with 182 additions and 3217 deletions
+2 -2
View File
@@ -11,6 +11,7 @@ import (
cmtjson "github.com/cometbft/cometbft/libs/json"
cmttypes "github.com/cometbft/cometbft/types"
"cosmossdk.io/core/server"
corestore "cosmossdk.io/core/store"
coretesting "cosmossdk.io/core/testing"
"cosmossdk.io/depinject"
@@ -24,7 +25,6 @@ import (
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
"github.com/cosmos/cosmos-sdk/runtime"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
"github.com/cosmos/cosmos-sdk/testutil/mock"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
@@ -312,7 +312,7 @@ func (m AppOptionsMap) GetString(key string) string {
return v.(string)
}
func NewAppOptionsWithFlagHome(homePath string) servertypes.AppOptions {
func NewAppOptionsWithFlagHome(homePath string) server.DynamicConfig {
return AppOptionsMap{
flags.FlagHome: homePath,
}