cosmos/msg

Table of Contents

cosmos/msg/textual/v1/textual.proto

Top

File-level Extensions

ExtensionTypeBaseNumberDescription
expert_custom_renderer string .google.protobuf.MessageOptions 11110009

expert_custom_renderer is an informative identifier to reference the algorithm used to generate the custom textual representation of the protobuf message where this annotation is applied. We recommend to use a short, versioned name as this identifier, e.g. "replace_with_username_v1". We also recommand providing a human-readable description as protobuf comments on this annotation, for example a short specification or a link to the relevant documentation. Also see the section on Custom Message Renderers in ADR-050.

cosmos/msg/v1/msg.proto

Top

File-level Extensions

ExtensionTypeBaseNumberDescription
signer string .google.protobuf.MessageOptions 11110000

signer must be used in cosmos messages in order to signal to external clients which fields in a given cosmos message must be filled with signer information (address). The field must be the protobuf name of the message field extended with this MessageOption. The field must either be of string kind, or of message kind in case the signer information is contained within a message inside the cosmos message.

service bool .google.protobuf.ServiceOptions 11110000

service indicates that the service is a Msg service and that requests must be transported via blockchain transactions rather than gRPC. Tooling can use this annotation to distinguish between Msg services and other types of services via reflection.

Scalar Value Types

.proto Type Notes Python Type
double float
float float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int
int64 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int/long
uint32 Uses variable-length encoding. int/long
uint64 Uses variable-length encoding. int/long
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int/long
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. int
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. int/long
sfixed32 Always four bytes. int
sfixed64 Always eight bytes. int/long
bool boolean
string A string must always contain UTF-8 encoded or 7-bit ASCII text. str/unicode
bytes May contain any arbitrary sequence of bytes. str