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

Classes

GetRequest(message_name, index, values)

GetRequest is the Query/Get request type.

GetResponse(result)

GetResponse is the Query/Get response type.

IndexValue(uint, int, str, bytes, enum, ...)

IndexValue represents the value of a field in an ORM index expression.

ListRequest(message_name, index, prefix, ...)

ListRequest is the Query/List request type.

ListRequestPrefix(values)

Prefix specifies the arguments to a prefix query.

ListRequestRange(start, end)

Range specifies the arguments to a range query.

ListResponse(results, pagination)

ListResponse is the Query/List response type.

QueryBase()

QueryStub(channel, *[, timeout, deadline, ...])

class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.GetRequest(message_name: str = <object object>, index: str = <object object>, values: ~typing.List[~evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.IndexValue] = <object object>)[source]

Bases: Message

GetRequest is the Query/Get request type.

index: str = <object object>

index is the index fields expression used in orm definitions. If it is empty, the table’s primary key is assumed. If it is non-empty, it must refer to an unique index.

message_name: str = <object object>

message_name is the fully-qualified message name of the ORM table being queried.

values: List[IndexValue] = <object object>

values are the values of the fields corresponding to the requested index. There must be as many values provided as there are fields in the index and these values must correspond to the index field types.

class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.GetResponse(result: ~betterproto.lib.google.protobuf.Any = <object object>)[source]

Bases: Message

GetResponse is the Query/Get response type.

result: Any = <object object>

result is the result of the get query. If no value is found, the gRPC status code NOT_FOUND will be returned.

class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.IndexValue(uint: int = <object object>, int: int = <object object>, str: str = <object object>, bytes: bytes = <object object>, enum: str = <object object>, bool: bool = <object object>, timestamp: ~datetime.datetime = <object object>, duration: ~datetime.timedelta = <object object>)[source]

Bases: Message

IndexValue represents the value of a field in an ORM index expression.

bool: bool = <object object>

bool specifies a value for a bool index field.

bytes: bytes = <object object>

bytes specifies a value for a bytes index field.

duration: timedelta = <object object>

duration specifies a value for a duration index field.

enum: str = <object object>

enum specifies a value for an enum index field.

int: int = <object object>

int64 specifies a value for an int32, sfixed32, int64, or sfixed64 index field.

str: str = <object object>

str specifies a value for a string index field.

timestamp: datetime = <object object>

timestamp specifies a value for a timestamp index field.

uint: int = <object object>

uint specifies a value for an uint32, fixed32, uint64, or fixed64 index field.

class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.ListRequest(message_name: str = <object object>, index: str = <object object>, prefix: ~evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.ListRequestPrefix = <object object>, range: ~evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.ListRequestRange = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]

Bases: Message

ListRequest is the Query/List request type.

index: str = <object object>

index is the index fields expression used in orm definitions. If it is empty, the table’s primary key is assumed.

message_name: str = <object object>

message_name is the fully-qualified message name of the ORM table being queried.

pagination: PageRequest = <object object>

pagination is the pagination request.

prefix: ListRequestPrefix = <object object>

prefix defines a prefix query.

range: ListRequestRange = <object object>

range defines a range query.

class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.ListRequestPrefix(values: ~typing.List[~evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.IndexValue] = <object object>)[source]

Bases: Message

Prefix specifies the arguments to a prefix query.

values: List[IndexValue] = <object object>

values specifies the index values for the prefix query. It is valid to special a partial prefix with fewer values than the number of fields in the index.

class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.ListRequestRange(start: ~typing.List[~evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.IndexValue] = <object object>, end: ~typing.List[~evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.IndexValue] = <object object>)[source]

Bases: Message

Range specifies the arguments to a range query.

end: List[IndexValue] = <object object>

end specifies the inclusive ending index values for the range query. It is valid to provide fewer values than the number of fields in the index.

start: List[IndexValue] = <object object>

start specifies the starting index values for the range query. It is valid to provide fewer values than the number of fields in the index.

class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.ListResponse(results: ~typing.List[~betterproto.lib.google.protobuf.Any] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]

Bases: Message

ListResponse is the Query/List response type.

pagination: PageResponse = <object object>

pagination is the pagination response.

results: List[Any] = <object object>

results are the results of the query.

class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.QueryBase[source]

Bases: ServiceBase

async get(get_request: GetRequest) GetResponse[source]
async list(list_request: ListRequest) ListResponse[source]
class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.QueryStub(channel: Channel, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: Mapping[str, str | bytes] | Collection[Tuple[str, str | bytes]] | None = None)[source]

Bases: ServiceStub

async get(get_request: GetRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) GetResponse[source]
async list(list_request: ListRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) ListResponse[source]