Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
f25bf6d4f6
commit
0ce6feabb8
@ -8,7 +8,6 @@ import (
|
||||
abci "github.com/cometbft/cometbft/api/cometbft/abci/v1"
|
||||
|
||||
runtimev1alpha1 "cosmossdk.io/api/cosmos/app/runtime/v1alpha1"
|
||||
appv1alpha1 "cosmossdk.io/api/cosmos/app/v1alpha1"
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/log"
|
||||
@ -51,7 +50,6 @@ type App struct {
|
||||
baseAppOptions []BaseAppOption
|
||||
msgServiceRouter *baseapp.MsgServiceRouter
|
||||
grpcQueryRouter *baseapp.GRPCQueryRouter
|
||||
appConfig *appv1alpha1.Config
|
||||
logger log.Logger
|
||||
// initChainer is the init chainer function defined by the app config.
|
||||
// this is only required if the chain wants to add special InitChainer logic.
|
||||
|
||||
@ -10,7 +10,6 @@ import (
|
||||
"google.golang.org/protobuf/reflect/protoregistry"
|
||||
|
||||
runtimev1alpha1 "cosmossdk.io/api/cosmos/app/runtime/v1alpha1"
|
||||
appv1alpha1 "cosmossdk.io/api/cosmos/app/v1alpha1"
|
||||
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
|
||||
reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1"
|
||||
"cosmossdk.io/core/app"
|
||||
@ -155,7 +154,6 @@ type AppInputs struct {
|
||||
depinject.In
|
||||
|
||||
Logger log.Logger
|
||||
AppConfig *appv1alpha1.Config
|
||||
Config *runtimev1alpha1.Module
|
||||
AppBuilder *AppBuilder
|
||||
ModuleManager *module.Manager
|
||||
@ -168,7 +166,6 @@ func SetupAppBuilder(inputs AppInputs) {
|
||||
app := inputs.AppBuilder.app
|
||||
app.baseAppOptions = inputs.BaseAppOptions
|
||||
app.config = inputs.Config
|
||||
app.appConfig = inputs.AppConfig
|
||||
app.logger = inputs.Logger
|
||||
app.ModuleManager = inputs.ModuleManager
|
||||
app.ModuleManager.RegisterInterfaces(inputs.InterfaceRegistry)
|
||||
|
||||
@ -8,7 +8,6 @@ import (
|
||||
"golang.org/x/exp/slices"
|
||||
|
||||
runtimev2 "cosmossdk.io/api/cosmos/app/runtime/v2"
|
||||
appv1alpha1 "cosmossdk.io/api/cosmos/app/v1alpha1"
|
||||
"cosmossdk.io/core/legacy"
|
||||
"cosmossdk.io/core/log"
|
||||
"cosmossdk.io/core/registry"
|
||||
@ -36,9 +35,8 @@ type App[T transaction.Tx] struct {
|
||||
db Store
|
||||
|
||||
// app configuration
|
||||
logger log.Logger
|
||||
config *runtimev2.Module
|
||||
appConfig *appv1alpha1.Config
|
||||
logger log.Logger
|
||||
config *runtimev2.Module
|
||||
|
||||
// modules configuration
|
||||
storeKeys []string
|
||||
|
||||
@ -144,7 +144,6 @@ func ProvideAppBuilder[T transaction.Tx](
|
||||
type AppInputs struct {
|
||||
depinject.In
|
||||
|
||||
AppConfig *appv1alpha1.Config
|
||||
Config *runtimev2.Module
|
||||
AppBuilder *AppBuilder[transaction.Tx]
|
||||
ModuleManager *MM[transaction.Tx]
|
||||
@ -157,7 +156,6 @@ type AppInputs struct {
|
||||
func SetupAppBuilder(inputs AppInputs) {
|
||||
app := inputs.AppBuilder.app
|
||||
app.config = inputs.Config
|
||||
app.appConfig = inputs.AppConfig
|
||||
app.logger = inputs.Logger
|
||||
app.moduleManager = inputs.ModuleManager
|
||||
app.moduleManager.RegisterInterfaces(inputs.InterfaceRegistrar)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user