cosmos-sdk/core/app/codec.go
Marko 83c4b9bfb4
chore: upstream stf to main (#20286)
Co-authored-by: testinginprod <98415576+testinginprod@users.noreply.github.com>
2024-05-08 14:50:52 +00:00

22 lines
527 B
Go

package app
import (
"github.com/cosmos/gogoproto/jsonpb"
gogoproto "github.com/cosmos/gogoproto/proto"
)
// MsgInterfaceProtoName defines the protobuf name of the cosmos Msg interface
const MsgInterfaceProtoName = "cosmos.base.v1beta1.Msg"
type ProtoCodec interface {
Marshal(v gogoproto.Message) ([]byte, error)
Unmarshal(data []byte, v gogoproto.Message) error
Name() string
}
type InterfaceRegistry interface {
jsonpb.AnyResolver
ListImplementations(ifaceTypeURL string) []string
ListAllInterfaces() []string
}