// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file osmosis/epochs/query.proto (package dymensionxyz.dymension.epochs.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { EpochInfo } from "./genesis_pb.js"; /** * @generated from message dymensionxyz.dymension.epochs.v1beta1.QueryEpochsInfoRequest */ export class QueryEpochsInfoRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.epochs.v1beta1.QueryEpochsInfoRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochsInfoRequest { return new QueryEpochsInfoRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochsInfoRequest { return new QueryEpochsInfoRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryEpochsInfoRequest { return new QueryEpochsInfoRequest().fromJsonString(jsonString, options); } static equals(a: QueryEpochsInfoRequest | PlainMessage | undefined, b: QueryEpochsInfoRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryEpochsInfoRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.epochs.v1beta1.QueryEpochsInfoResponse */ export class QueryEpochsInfoResponse extends Message { /** * @generated from field: repeated dymensionxyz.dymension.epochs.v1beta1.EpochInfo epochs = 1; */ epochs: EpochInfo[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.epochs.v1beta1.QueryEpochsInfoResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "epochs", kind: "message", T: EpochInfo, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochsInfoResponse { return new QueryEpochsInfoResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochsInfoResponse { return new QueryEpochsInfoResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryEpochsInfoResponse { return new QueryEpochsInfoResponse().fromJsonString(jsonString, options); } static equals(a: QueryEpochsInfoResponse | PlainMessage | undefined, b: QueryEpochsInfoResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryEpochsInfoResponse, a, b); } } /** * @generated from message dymensionxyz.dymension.epochs.v1beta1.QueryCurrentEpochRequest */ export class QueryCurrentEpochRequest extends Message { /** * @generated from field: string identifier = 1; */ identifier = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.epochs.v1beta1.QueryCurrentEpochRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentEpochRequest { return new QueryCurrentEpochRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentEpochRequest { return new QueryCurrentEpochRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCurrentEpochRequest { return new QueryCurrentEpochRequest().fromJsonString(jsonString, options); } static equals(a: QueryCurrentEpochRequest | PlainMessage | undefined, b: QueryCurrentEpochRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCurrentEpochRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.epochs.v1beta1.QueryCurrentEpochResponse */ export class QueryCurrentEpochResponse extends Message { /** * @generated from field: int64 current_epoch = 1; */ currentEpoch = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.epochs.v1beta1.QueryCurrentEpochResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "current_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentEpochResponse { return new QueryCurrentEpochResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentEpochResponse { return new QueryCurrentEpochResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCurrentEpochResponse { return new QueryCurrentEpochResponse().fromJsonString(jsonString, options); } static equals(a: QueryCurrentEpochResponse | PlainMessage | undefined, b: QueryCurrentEpochResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCurrentEpochResponse, a, b); } }