chore: cleanup core/app (#21368)

This commit is contained in:
Marko
2024-08-27 09:55:16 +00:00
committed by GitHub
parent 58af7ee027
commit 355f748add
28 changed files with 296 additions and 232 deletions
+20
View File
@@ -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)
}