diff --git a/core/app/codec.go b/core/app/codec.go index 41d415d676a0..6b24b7ccb499 100644 --- a/core/app/codec.go +++ b/core/app/codec.go @@ -1,15 +1,15 @@ package app import ( - gogoproto "cosmossdk.io/core/transaction" + "cosmossdk.io/core/transaction" ) // MsgInterfaceProtoName defines the protobuf name of the cosmos Msg interface const MsgInterfaceProtoName = "cosmos.base.v1beta1.Msg" type ProtoCodec interface { - Marshal(v gogoproto.Msg) ([]byte, error) - Unmarshal(data []byte, v gogoproto.Msg) error + Marshal(v transaction.Msg) ([]byte, error) + Unmarshal(data []byte, v transaction.Msg) error Name() string } @@ -20,5 +20,5 @@ type InterfaceRegistry interface { } type AnyResolver = interface { - Resolve(typeUrl string) (gogoproto.Msg, error) + Resolve(typeUrl string) (transaction.Msg, error) } diff --git a/core/event/service.go b/core/event/service.go index 5b1f685bbace..9011bcc1ff67 100644 --- a/core/event/service.go +++ b/core/event/service.go @@ -4,7 +4,7 @@ package event import ( "context" - gogoproto "cosmossdk.io/core/transaction" + "cosmossdk.io/core/transaction" ) // Service represents an event service which can retrieve and set an event manager in a context. @@ -19,7 +19,7 @@ type Manager interface { // Emit emits events represented as a protobuf message (as described in ADR 032). // // Callers SHOULD assume that these events will not be included in consensus. - Emit(event gogoproto.Msg) error + Emit(event transaction.Msg) error // EmitKV emits an event based on an event and kv-pair attributes. // diff --git a/core/registry/legacy.go b/core/registry/legacy.go index 8364bc8bde35..c0f45883ef92 100644 --- a/core/registry/legacy.go +++ b/core/registry/legacy.go @@ -1,7 +1,7 @@ package registry import ( - gogoproto "cosmossdk.io/core/transaction" + "cosmossdk.io/core/transaction" ) type InterfaceRegistrar interface { @@ -14,12 +14,12 @@ type InterfaceRegistrar interface { // // Ex: // registry.RegisterInterface("cosmos.base.v1beta1.Msg", (*sdk.Msg)(nil)) - RegisterInterface(protoName string, iface interface{}, impls ...gogoproto.Msg) + RegisterInterface(protoName string, iface interface{}, impls ...transaction.Msg) // RegisterImplementations registers impls as concrete implementations of // the interface iface. // // Ex: // registry.RegisterImplementations((*sdk.Msg)(nil), &MsgSend{}, &MsgMultiSend{}) - RegisterImplementations(iface interface{}, impls ...gogoproto.Msg) + RegisterImplementations(iface interface{}, impls ...transaction.Msg) } diff --git a/core/router/service.go b/core/router/service.go index 765e41489016..50b1865e6800 100644 --- a/core/router/service.go +++ b/core/router/service.go @@ -3,7 +3,7 @@ package router import ( "context" - gogoproto "cosmossdk.io/core/transaction" + "cosmossdk.io/core/transaction" ) // Service is the interface that wraps the basic methods for a router. @@ -12,7 +12,7 @@ type Service interface { // CanInvoke returns an error if the given request cannot be invoked. CanInvoke(ctx context.Context, typeURL string) error // InvokeTyped execute a message or query. It should be used when the called knows the type of the response. - InvokeTyped(ctx context.Context, req, res gogoproto.Msg) error + InvokeTyped(ctx context.Context, req, res transaction.Msg) error // InvokeUntyped execute a Msg or query. It should be used when the called doesn't know the type of the response. - InvokeUntyped(ctx context.Context, req gogoproto.Msg) (res gogoproto.Msg, err error) + InvokeUntyped(ctx context.Context, req transaction.Msg) (res transaction.Msg, err error) }