chore: cleanup core/app (#21368)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"cosmossdk.io/core/transaction"
|
||||
)
|
||||
|
||||
// InterfaceRegistry defines the interface for resolving interfaces
|
||||
// The interface registry is used to resolve interfaces from type URLs,
|
||||
// this is only used for the server and not for modules
|
||||
type InterfaceRegistry interface {
|
||||
AnyResolver
|
||||
ListImplementations(ifaceTypeURL string) []string
|
||||
ListAllInterfaces() []string
|
||||
}
|
||||
|
||||
// AnyResolver defines the interface for resolving interfaces
|
||||
// This is used to avoid the gogoproto import in core
|
||||
type AnyResolver = interface {
|
||||
Resolve(typeUrl string) (transaction.Msg, error)
|
||||
}
|
||||
Reference in New Issue
Block a user