evmos/epochs

Table of Contents

evmos/epochs/v1/query.proto

Top

QueryCurrentEpochRequest

FieldTypeLabelDescription
identifier string

QueryCurrentEpochResponse

FieldTypeLabelDescription
current_epoch int64

QueryEpochsInfoRequest

FieldTypeLabelDescription
pagination cosmos.base.query.v1beta1.PageRequest

QueryEpochsInfoResponse

FieldTypeLabelDescription
epochs EpochInfo repeated

pagination cosmos.base.query.v1beta1.PageResponse

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

evmos/epochs/v1/genesis.proto

Top

EpochInfo

FieldTypeLabelDescription
identifier string

start_time google.protobuf.Timestamp

duration google.protobuf.Duration

current_epoch int64

current_epoch_start_time google.protobuf.Timestamp

epoch_counting_started bool

current_epoch_start_height int64

GenesisState

GenesisState defines the epochs module's genesis state.

FieldTypeLabelDescription
epochs EpochInfo repeated

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