Skip to content

User Interface instead of *baseapp.MsgServiceRouter in modules #15023

@alpe

Description

@alpe

Summary

There is a tight coupling when the *baseapp.MsgServiceRouter type is expected in the modules. In order to make this more extendable and future proof an interface would be better.

Proposal

ibc-go and wasmd modules are using interfaces already.

// MessageRouter ADR 031 request type routing
// https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-031-msg-service.md
type MessageRouter interface {
	Handler(msg sdk.Msg) baseapp.MsgServiceHandler
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions