// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file osmosis/incentives/genesis.proto (package osmosis.incentives, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Params } from "./params_pb.js"; import { Gauge } from "./gauge_pb.js"; import { Group } from "./group_pb.js"; /** * GenesisState defines the incentives module's various parameters when first * initialized * * @generated from message osmosis.incentives.GenesisState */ export class GenesisState extends Message { /** * params are all the parameters of the module * * @generated from field: osmosis.incentives.Params params = 1; */ params?: Params; /** * gauges are all gauges (not including group gauges) that should exist at * genesis * * @generated from field: repeated osmosis.incentives.Gauge gauges = 2; */ gauges: Gauge[] = []; /** * lockable_durations are all lockup durations that gauges can be locked for * in order to receive incentives * * @generated from field: repeated google.protobuf.Duration lockable_durations = 3; */ lockableDurations: Duration[] = []; /** * last_gauge_id is what the gauge number will increment from when creating * the next gauge after genesis * * @generated from field: uint64 last_gauge_id = 4; */ lastGaugeId = protoInt64.zero; /** * gauges are all group gauges that should exist at genesis * * @generated from field: repeated osmosis.incentives.Gauge group_gauges = 5; */ groupGauges: Gauge[] = []; /** * groups are all the groups that should exist at genesis * * @generated from field: repeated osmosis.incentives.Group groups = 6; */ groups: Group[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.incentives.GenesisState"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "params", kind: "message", T: Params }, { no: 2, name: "gauges", kind: "message", T: Gauge, repeated: true }, { no: 3, name: "lockable_durations", kind: "message", T: Duration, repeated: true }, { no: 4, name: "last_gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 5, name: "group_gauges", kind: "message", T: Gauge, repeated: true }, { no: 6, name: "groups", kind: "message", T: Group, 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); } }