evmos.proto.autogen.py.evmos.epochs.v1

Classes

EpochInfo(identifier, start_time, duration, ...)

EpochInfo defines the message interface containing the relevant informations about an epoch.

GenesisState(epochs)

GenesisState defines the epochs module's genesis state.

QueryBase()

QueryCurrentEpochRequest(identifier)

QueryCurrentEpochRequest is the request type for the Query/EpochInfos RPC method.

QueryCurrentEpochResponse(current_epoch)

QueryCurrentEpochResponse is the response type for the Query/EpochInfos RPC method.

QueryEpochsInfoRequest(pagination)

QueryEpochsInfoRequest is the request type for the Query/EpochInfos RPC method.

QueryEpochsInfoResponse(epochs, pagination)

QueryEpochsInfoResponse is the response type for the Query/EpochInfos RPC method.

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

class evmos.proto.autogen.py.evmos.epochs.v1.EpochInfo(identifier: str = <object object>, start_time: ~datetime.datetime = <object object>, duration: ~datetime.timedelta = <object object>, current_epoch: int = <object object>, current_epoch_start_time: ~datetime.datetime = <object object>, epoch_counting_started: bool = <object object>, current_epoch_start_height: int = <object object>)[source]

Bases: Message

EpochInfo defines the message interface containing the relevant informations about an epoch.

current_epoch: int = <object object>

current_epoch is the integer identifier of the epoch

current_epoch_start_height: int = <object object>

current_epoch_start_height of the epoch

current_epoch_start_time: datetime = <object object>

current_epoch_start_time defines the timestamp of the start of the epoch

duration: timedelta = <object object>

duration of the epoch

epoch_counting_started: bool = <object object>

epoch_counting_started reflects if the counting for the epoch has started

identifier: str = <object object>

identifier of the epoch

start_time: datetime = <object object>

start_time of the epoch

class evmos.proto.autogen.py.evmos.epochs.v1.GenesisState(epochs: ~typing.List[~evmos.proto.autogen.py.evmos.epochs.v1.EpochInfo] = <object object>)[source]

Bases: Message

GenesisState defines the epochs module’s genesis state.

epochs: List[EpochInfo] = <object object>

epochs is a slice of EpochInfo that defines the epochs in the genesis state

class evmos.proto.autogen.py.evmos.epochs.v1.QueryBase[source]

Bases: ServiceBase

async current_epoch(query_current_epoch_request: QueryCurrentEpochRequest) QueryCurrentEpochResponse[source]
async epoch_infos(query_epochs_info_request: QueryEpochsInfoRequest) QueryEpochsInfoResponse[source]
class evmos.proto.autogen.py.evmos.epochs.v1.QueryCurrentEpochRequest(identifier: str = <object object>)[source]

Bases: Message

QueryCurrentEpochRequest is the request type for the Query/EpochInfos RPC method.

identifier: str = <object object>

identifier of the current epoch

class evmos.proto.autogen.py.evmos.epochs.v1.QueryCurrentEpochResponse(current_epoch: int = <object object>)[source]

Bases: Message

QueryCurrentEpochResponse is the response type for the Query/EpochInfos RPC method.

current_epoch: int = <object object>

current_epoch is the number of the current epoch

class evmos.proto.autogen.py.evmos.epochs.v1.QueryEpochsInfoRequest(pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]

Bases: Message

QueryEpochsInfoRequest is the request type for the Query/EpochInfos RPC method.

pagination: PageRequest = <object object>

pagination defines an optional pagination for the request.

class evmos.proto.autogen.py.evmos.epochs.v1.QueryEpochsInfoResponse(epochs: ~typing.List[~evmos.proto.autogen.py.evmos.epochs.v1.EpochInfo] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]

Bases: Message

QueryEpochsInfoResponse is the response type for the Query/EpochInfos RPC method.

epochs: List[EpochInfo] = <object object>

epochs is a slice of all EpochInfos

pagination: PageResponse = <object object>

pagination defines an optional pagination for the request.

class evmos.proto.autogen.py.evmos.epochs.v1.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 current_epoch(query_current_epoch_request: QueryCurrentEpochRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryCurrentEpochResponse[source]
async epoch_infos(query_epochs_info_request: QueryEpochsInfoRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryEpochsInfoResponse[source]