msgservice

package
v0.52.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 4,273

Documentation

Index

Constants

This section is empty.

Variables

View Source
var E_Service = &proto.ExtensionDesc{
	ExtendedType:  (*descriptorpb.ServiceOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         11110000,
	Name:          "cosmos.msg.v1.service",
	Tag:           "varint,11110000,opt,name=service",
	Filename:      "cosmos/msg/v1/msg.proto",
}
View Source
var E_Signer = &proto.ExtensionDesc{
	ExtendedType:  (*descriptorpb.MessageOptions)(nil),
	ExtensionType: ([]string)(nil),
	Field:         11110000,
	Name:          "cosmos.msg.v1.signer",
	Tag:           "bytes,11110000,rep,name=signer",
	Filename:      "cosmos/msg/v1/msg.proto",
}

Functions

func RegisterMsgServiceDesc

func RegisterMsgServiceDesc(registrar registry.InterfaceRegistrar, sd *grpc.ServiceDesc)

RegisterMsgServiceDesc registers all type_urls from Msg services described in `sd` into the registry. The ServiceDesc must be a standard gRPC ServiceDesc from a generated file as this function will use reflection to extract the concrete types and expects the HandlerType to follow the normal generated type conventions.

func ValidateProtoAnnotations added in v0.50.0

func ValidateProtoAnnotations(protoFiles signing.ProtoFileResolver) error

ValidateProtoAnnotations validates that the proto annotations are correct. More specifically, it verifies: - all services named "Msg" have `(cosmos.msg.v1.service) = true`,

More validations can be added here in the future.

If `protoFiles` is nil, then protoregistry.GlobalFile will be used.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL