chore: use message router interface (#15213)
This commit is contained in:
parent
82e7ed1f08
commit
17ba80df7c
@ -147,7 +147,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||
* [#14406](https://github.com/cosmos/cosmos-sdk/issues/14406) Migrate usage of types/store.go to store/types/..
|
||||
* (x/staking) [#14590](https://github.com/cosmos/cosmos-sdk/pull/14590) Return undelegate amount in MsgUndelegateResponse
|
||||
* (cli) [#14953](https://github.com/cosmos/cosmos-sdk/pull/14953) Enable profiling block replay during abci handshake with `--cpu-profile`.
|
||||
* (baseapp) [#15023](https://github.com/cosmos/cosmos-sdk/pull/15023) Add `MessageRouter` interface to baseapp and pass it to authz instead of concrete type.
|
||||
* (baseapp) [#15023](https://github.com/cosmos/cosmos-sdk/pull/15023) & [#15213](https://github.com/cosmos/cosmos-sdk/pull/15213) Add `MessageRouter` interface to baseapp and pass it to authz, gov and groups instead of concrete type.
|
||||
|
||||
### State Machine Breaking
|
||||
|
||||
|
||||
@ -61,7 +61,7 @@ func (k Keeper) GetAuthority() string {
|
||||
func NewKeeper(
|
||||
cdc codec.BinaryCodec, key storetypes.StoreKey, authKeeper types.AccountKeeper,
|
||||
bankKeeper types.BankKeeper, sk types.StakingKeeper, distrkeeper types.DistributionKeeper,
|
||||
router *baseapp.MsgServiceRouter, config types.Config, authority string,
|
||||
router baseapp.MessageRouter, config types.Config, authority string,
|
||||
) *Keeper {
|
||||
// ensure governance module account is set
|
||||
if addr := authKeeper.GetModuleAddress(types.ModuleName); addr == nil {
|
||||
|
||||
@ -169,7 +169,7 @@ type GovInputs struct {
|
||||
Cdc codec.Codec
|
||||
Key *store.KVStoreKey
|
||||
ModuleKey depinject.OwnModuleKey
|
||||
MsgServiceRouter *baseapp.MsgServiceRouter
|
||||
MsgServiceRouter baseapp.MessageRouter
|
||||
|
||||
AccountKeeper govtypes.AccountKeeper
|
||||
BankKeeper govtypes.BankKeeper
|
||||
|
||||
@ -207,7 +207,7 @@ type GroupInputs struct {
|
||||
AccountKeeper group.AccountKeeper
|
||||
BankKeeper group.BankKeeper
|
||||
Registry cdctypes.InterfaceRegistry
|
||||
MsgServiceRouter *baseapp.MsgServiceRouter
|
||||
MsgServiceRouter baseapp.MessageRouter
|
||||
}
|
||||
|
||||
type GroupOutputs struct {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user