Documentation ¶
Index ¶
- func IsServiceMsg(typeURL string) bool
- func RegisterMsgServiceDesc(registry codectypes.InterfaceRegistry, sd *grpc.ServiceDesc)
- type ServiceMsgClientConn
- func (t *ServiceMsgClientConn) GetMsgs() []sdk.Msg
- func (t *ServiceMsgClientConn) Invoke(_ context.Context, method string, args, _ interface{}, _ ...grpc.CallOption) error
- func (t *ServiceMsgClientConn) NewStream(context.Context, *grpc.StreamDesc, string, ...grpc.CallOption) (grpc.ClientStream, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsServiceMsg ¶
IsServiceMsg checks if a type URL corresponds to a service method name, i.e. /cosmos.bank.Msg/Send vs /cosmos.bank.MsgSend
func RegisterMsgServiceDesc ¶
func RegisterMsgServiceDesc(registry codectypes.InterfaceRegistry, sd *grpc.ServiceDesc)
RegisterMsgServiceDesc registers all type_urls from Msg services described in `sd` into the registry.
Types ¶
type ServiceMsgClientConn ¶
type ServiceMsgClientConn struct {
// contains filtered or unexported fields
}
ServiceMsgClientConn is an instance of grpc.ClientConn that is used to test building transactions with MsgClient's. It is intended to be replaced by the work in https://github.com/cosmos/cosmos-sdk/issues/7541 when that is ready.
func (*ServiceMsgClientConn) GetMsgs ¶
func (t *ServiceMsgClientConn) GetMsgs() []sdk.Msg
GetMsgs returns ServiceMsgClientConn.msgs
func (*ServiceMsgClientConn) Invoke ¶
func (t *ServiceMsgClientConn) Invoke(_ context.Context, method string, args, _ interface{}, _ ...grpc.CallOption) error
Invoke implements the grpc ClientConn.Invoke method
func (*ServiceMsgClientConn) NewStream ¶
func (t *ServiceMsgClientConn) NewStream(context.Context, *grpc.StreamDesc, string, ...grpc.CallOption) (grpc.ClientStream, error)
NewStream implements the grpc ClientConn.NewStream method
Click to show internal directories.
Click to hide internal directories.