evmos/epochs

Table of Contents

evmos/epochs/v1/genesis.proto

Top

Copyright Tharsis Labs Ltd.(Evmos)

SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)

EpochInfo

EpochInfo defines the message interface containing the relevant informations about

an epoch.

FieldTypeLabelDescription
identifier string

identifier of the epoch

start_time google.protobuf.Timestamp

start_time of the epoch

duration google.protobuf.Duration

duration of the epoch

current_epoch int64

current_epoch is the integer identifier of the epoch

current_epoch_start_time google.protobuf.Timestamp

current_epoch_start_time defines the timestamp of the start of the epoch

epoch_counting_started bool

epoch_counting_started reflects if the counting for the epoch has started

current_epoch_start_height int64

current_epoch_start_height of the epoch

GenesisState

GenesisState defines the epochs module's genesis state.

FieldTypeLabelDescription
epochs EpochInfo repeated

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

evmos/epochs/v1/query.proto

Top

Copyright Tharsis Labs Ltd.(Evmos)

SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)

QueryCurrentEpochRequest

QueryCurrentEpochRequest is the request type for the Query/EpochInfos RPC

method.

FieldTypeLabelDescription
identifier string

identifier of the current epoch

QueryCurrentEpochResponse

QueryCurrentEpochResponse is the response type for the Query/EpochInfos RPC

method.

FieldTypeLabelDescription
current_epoch int64

current_epoch is the number of the current epoch

QueryEpochsInfoRequest

QueryEpochsInfoRequest is the request type for the Query/EpochInfos RPC

method.

FieldTypeLabelDescription
pagination cosmos.base.query.v1beta1.PageRequest

pagination defines an optional pagination for the request.

QueryEpochsInfoResponse

QueryEpochsInfoResponse is the response type for the Query/EpochInfos RPC

method.

FieldTypeLabelDescription
epochs EpochInfo repeated

epochs is a slice of all EpochInfos

pagination cosmos.base.query.v1beta1.PageResponse

pagination defines an optional pagination for the request.

Query

Query defines the gRPC querier service.

Method NameRequest TypeResponse TypeDescription
EpochInfos QueryEpochsInfoRequest QueryEpochsInfoResponse

EpochInfos provide running epochInfos

CurrentEpoch QueryCurrentEpochRequest QueryCurrentEpochResponse

CurrentEpoch provide current epoch of specified identifier

Methods with HTTP bindings

Method Name Method Pattern Body
EpochInfos GET /evmos/epochs/v1/epochs
CurrentEpoch GET /evmos/epochs/v1/current_epoch

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