-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove dependency x/module -> sdk in InterfaceRegistry
- refactor modules to use core/registry/LegacyRegistry - update `HasRegisterInterfaces` definition - fix core_module.go usage - rm unused import in mock code - cd simapp/v2 && go mod tidy - mv HasRegisterInterfaces interface to core - fix failing test to conform with mock - use protoiface.MessageV1 in interface registry
- Loading branch information
1 parent
e8c9cd2
commit f127cd4
Showing
55 changed files
with
282 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package registry | ||
|
||
import ( | ||
"google.golang.org/protobuf/runtime/protoiface" | ||
) | ||
|
||
type LegacyRegistry interface { | ||
// RegisterInterface associates protoName as the public name for the | ||
// interface passed in as iface. This is to be used primarily to create | ||
// a public facing registry of interface implementations for clients. | ||
// protoName should be a well-chosen public facing name that remains stable. | ||
// RegisterInterface takes an optional list of impls to be registered | ||
// as implementations of iface. | ||
// | ||
// Ex: | ||
// registry.RegisterInterface("cosmos.base.v1beta1.Msg", (*sdk.Msg)(nil)) | ||
RegisterInterface(protoName string, iface interface{}, impls ...protoiface.MessageV1) | ||
|
||
// RegisterImplementations registers impls as concrete implementations of | ||
// the interface iface. | ||
// | ||
// Ex: | ||
// registry.RegisterImplementations((*sdk.Msg)(nil), &MsgSend{}, &MsgMultiSend{}) | ||
RegisterImplementations(iface interface{}, impls ...protoiface.MessageV1) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.