evmos.proto.autogen.py.cosmos.orm.v1alpha1

Classes

ModuleSchemaDescriptor(schema_file, prefix)

ModuleSchemaDescriptor describe's a module's ORM schema.

ModuleSchemaDescriptorFileEntry(id, ...)

FileEntry describes an ORM file used in a module.

StorageType(*values)

class evmos.proto.autogen.py.cosmos.orm.v1alpha1.ModuleSchemaDescriptor(schema_file: ~typing.List[~evmos.proto.autogen.py.cosmos.orm.v1alpha1.ModuleSchemaDescriptorFileEntry] = <object object>, prefix: bytes = <object object>)[source]

Bases: Message

ModuleSchemaDescriptor describe’s a module’s ORM schema.

prefix: bytes = <object object>

prefix is an optional prefix that precedes all keys in this module’s store.

schema_file: List[ModuleSchemaDescriptorFileEntry] = <object object>
class evmos.proto.autogen.py.cosmos.orm.v1alpha1.ModuleSchemaDescriptorFileEntry(id: int = <object object>, proto_file_name: str = <object object>, storage_type: ~evmos.proto.autogen.py.cosmos.orm.v1alpha1.StorageType = <object object>)[source]

Bases: Message

FileEntry describes an ORM file used in a module.

id: int = <object object>

id is a prefix that will be varint encoded and prepended to all the table keys specified in the file’s tables.

proto_file_name: str = <object object>

proto_file_name is the name of a file .proto in that contains table definitions. The .proto file must be in a package that the module has referenced using cosmos.app.v1.ModuleDescriptor.use_package.

storage_type: StorageType = <object object>

storage_type optionally indicates the type of storage this file’s tables should used. If it is left unspecified, the default KV-storage of the app will be used.

class evmos.proto.autogen.py.cosmos.orm.v1alpha1.StorageType(*values)[source]

Bases: Enum

STORAGE_TYPE_DEFAULT_UNSPECIFIED = 0

STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent storage where all data is stored in the regular Merkle-tree backed KV-store.

STORAGE_TYPE_MEMORY = 1

STORAGE_TYPE_MEMORY indicates in-memory storage that will be reloaded every time an app restarts. Tables with this type of storage will by default be ignored when importing and exporting a module’s state from JSON.

STORAGE_TYPE_TRANSIENT = 2

STORAGE_TYPE_TRANSIENT indicates transient storage that is reset at the end of every block. Tables with this type of storage will by default be ignored when importing and exporting a module’s state from JSON.