evmos.proto.autogen.py.cosmos_proto
Classes
|
InterfaceDescriptor describes an interface type to be used with accepts_interface and implements_interface and declared by declare_interface. |
|
ScalarDescriptor describes an scalar type to be used with the scalar field option and declared by declare_scalar. |
|
- class evmos.proto.autogen.py.cosmos_proto.InterfaceDescriptor(name: str = <object object>, description: str = <object object>)[source]
Bases:
MessageInterfaceDescriptor describes an interface type to be used with accepts_interface and implements_interface and declared by declare_interface.
- class evmos.proto.autogen.py.cosmos_proto.ScalarDescriptor(name: str = <object object>, description: str = <object object>, field_type: ~typing.List[~evmos.proto.autogen.py.cosmos_proto.ScalarType] = <object object>)[source]
Bases:
MessageScalarDescriptor describes an scalar type to be used with the scalar field option and declared by declare_scalar. Scalars extend simple protobuf built-in types with additional syntax and semantics, for instance to represent big integers. Scalars should ideally define an encoding such that there is only one valid syntactical representation for a given semantic meaning, i.e. the encoding should be deterministic.
- description: str = <object object>
description is a human-readable description of the scalar and its encoding format. For instance a big integer or decimal scalar should specify precisely the expected encoding format.
- field_type: List[ScalarType] = <object object>
field_type is the type of field with which this scalar can be used. Scalars can be used with one and only one type of field so that encoding standards and simple and clear. Currently only string and bytes fields are supported for scalars.