Skip to content

Commit

Permalink
remove alias
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Aug 9, 2024
1 parent ffc11b8 commit 1b18aac
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions core/app/codec.go
Original file line number Diff line number Diff line change
@@ -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
}

Expand All @@ -20,5 +20,5 @@ type InterfaceRegistry interface {
}

type AnyResolver = interface {
Resolve(typeUrl string) (gogoproto.Msg, error)
Resolve(typeUrl string) (transaction.Msg, error)
}
4 changes: 2 additions & 2 deletions core/event/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
//
Expand Down
6 changes: 3 additions & 3 deletions core/registry/legacy.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package registry

import (
gogoproto "cosmossdk.io/core/transaction"
"cosmossdk.io/core/transaction"
)

type InterfaceRegistrar interface {
Expand All @@ -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)
}
6 changes: 3 additions & 3 deletions core/router/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
}

0 comments on commit 1b18aac

Please sign in to comment.