style: rename to ModuleInputs to fix lint issue (#15727)

This commit is contained in:
Mark Rushakoff 2023-04-07 11:27:23 -04:00 committed by GitHub
parent a008428ea1
commit 9ba03b015a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 10 deletions

View File

@ -217,7 +217,7 @@ func init() {
)
}
type DistrInputs struct {
type ModuleInputs struct {
depinject.In
Config *modulev1.Module
@ -232,7 +232,7 @@ type DistrInputs struct {
LegacySubspace exported.Subspace
}
type DistrOutputs struct {
type ModuleOutputs struct {
depinject.Out
DistrKeeper keeper.Keeper
@ -240,7 +240,7 @@ type DistrOutputs struct {
Hooks staking.StakingHooksWrapper
}
func ProvideModule(in DistrInputs) DistrOutputs {
func ProvideModule(in ModuleInputs) ModuleOutputs {
feeCollectorName := in.Config.FeeCollectorName
if feeCollectorName == "" {
feeCollectorName = authtypes.FeeCollectorName
@ -264,7 +264,7 @@ func ProvideModule(in DistrInputs) DistrOutputs {
m := NewAppModule(in.Cdc, k, in.AccountKeeper, in.BankKeeper, in.StakingKeeper, in.LegacySubspace)
return DistrOutputs{
return ModuleOutputs{
DistrKeeper: k,
Module: m,
Hooks: staking.StakingHooksWrapper{StakingHooks: k.Hooks()},

View File

@ -199,8 +199,7 @@ func init() {
)
}
//nolint:revive
type EvidenceInputs struct {
type ModuleInputs struct {
depinject.In
Key *store.KVStoreKey
@ -210,17 +209,16 @@ type EvidenceInputs struct {
SlashingKeeper types.SlashingKeeper
}
//nolint:revive
type EvidenceOutputs struct {
type ModuleOutputs struct {
depinject.Out
EvidenceKeeper keeper.Keeper
Module appmodule.AppModule
}
func ProvideModule(in EvidenceInputs) EvidenceOutputs {
func ProvideModule(in ModuleInputs) ModuleOutputs {
k := keeper.NewKeeper(in.Cdc, in.Key, in.StakingKeeper, in.SlashingKeeper)
m := NewAppModule(*k)
return EvidenceOutputs{EvidenceKeeper: *k, Module: m}
return ModuleOutputs{EvidenceKeeper: *k, Module: m}
}