// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file evmos/epochs/v1/genesis.proto (package evmos.epochs.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; /** * EpochInfo defines the message interface containing the relevant informations * about an epoch. * * @generated from message evmos.epochs.v1.EpochInfo */ export class EpochInfo extends Message { /** * identifier of the epoch * * @generated from field: string identifier = 1; */ identifier = ""; /** * start_time of the epoch * * @generated from field: google.protobuf.Timestamp start_time = 2; */ startTime?: Timestamp; /** * duration of the epoch * * @generated from field: google.protobuf.Duration duration = 3; */ duration?: Duration; /** * current_epoch is the integer identifier of the epoch * * @generated from field: int64 current_epoch = 4; */ currentEpoch = protoInt64.zero; /** * current_epoch_start_time defines the timestamp of the start of the epoch * * @generated from field: google.protobuf.Timestamp current_epoch_start_time = 5; */ currentEpochStartTime?: Timestamp; /** * epoch_counting_started reflects if the counting for the epoch has started * * @generated from field: bool epoch_counting_started = 6; */ epochCountingStarted = false; /** * current_epoch_start_height of the epoch * * @generated from field: int64 current_epoch_start_height = 7; */ currentEpochStartHeight = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "evmos.epochs.v1.EpochInfo"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "start_time", kind: "message", T: Timestamp }, { no: 3, name: "duration", kind: "message", T: Duration }, { no: 4, name: "current_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 5, name: "current_epoch_start_time", kind: "message", T: Timestamp }, { no: 6, name: "epoch_counting_started", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 7, name: "current_epoch_start_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EpochInfo { return new EpochInfo().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EpochInfo { return new EpochInfo().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EpochInfo { return new EpochInfo().fromJsonString(jsonString, options); } static equals(a: EpochInfo | PlainMessage | undefined, b: EpochInfo | PlainMessage | undefined): boolean { return proto3.util.equals(EpochInfo, a, b); } } /** * GenesisState defines the epochs module's genesis state. * * @generated from message evmos.epochs.v1.GenesisState */ export class GenesisState extends Message { /** * epochs is a slice of EpochInfo that defines the epochs in the genesis state * * @generated from field: repeated evmos.epochs.v1.EpochInfo epochs = 1; */ epochs: EpochInfo[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "evmos.epochs.v1.GenesisState"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "epochs", kind: "message", T: EpochInfo, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { return new GenesisState().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { return new GenesisState().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GenesisState { return new GenesisState().fromJsonString(jsonString, options); } static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { return proto3.util.equals(GenesisState, a, b); } }