import * as _m0 from "protobufjs/minimal"; import { DeepPartial } from "../../helpers"; /** Params holds parameters for the incentives module */ export interface Params { /** * distr_epoch_identifier is what epoch type distribution will be triggered by * (day, week, etc.) */ distrEpochIdentifier: string; } /** Params holds parameters for the incentives module */ export interface ParamsSDKType { /** * distr_epoch_identifier is what epoch type distribution will be triggered by * (day, week, etc.) */ distr_epoch_identifier: string; } function createBaseParams(): Params { return { distrEpochIdentifier: "" }; } export const Params = { encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.distrEpochIdentifier !== "") { writer.uint32(10).string(message.distrEpochIdentifier); } return writer; }, decode(input: _m0.Reader | Uint8Array, length?: number): Params { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseParams(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.distrEpochIdentifier = reader.string(); break; default: reader.skipType(tag & 7); break; } } return message; }, fromPartial(object: DeepPartial): Params { const message = createBaseParams(); message.distrEpochIdentifier = object.distrEpochIdentifier ?? ""; return message; } };