//@ts-nocheck
import * as _m0 from "protobufjs/minimal";
import { isSet } from "../../../helpers";
/**
 * MintEpochProvisionsMintedEvent is triggered after a epoch is triggered
 * minting module for inflation.
 */

/**
 * MintEpochProvisionsMintedEvent is triggered after a epoch is triggered
 * minting module for inflation.
 */

function createBaseMintEpochProvisionsMintedEvent() {
  return {
    epochNumber: "",
    epochProvisions: "",
    amount: ""
  };
}
export const MintEpochProvisionsMintedEvent = {
  encode(message, writer = _m0.Writer.create()) {
    if (message.epochNumber !== "") {
      writer.uint32(10).string(message.epochNumber);
    }
    if (message.epochProvisions !== "") {
      writer.uint32(18).string(message.epochProvisions);
    }
    if (message.amount !== "") {
      writer.uint32(26).string(message.amount);
    }
    return writer;
  },
  decode(input, length) {
    const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
    let end = length === undefined ? reader.len : reader.pos + length;
    const message = createBaseMintEpochProvisionsMintedEvent();
    while (reader.pos < end) {
      const tag = reader.uint32();
      switch (tag >>> 3) {
        case 1:
          message.epochNumber = reader.string();
          break;
        case 2:
          message.epochProvisions = reader.string();
          break;
        case 3:
          message.amount = reader.string();
          break;
        default:
          reader.skipType(tag & 7);
          break;
      }
    }
    return message;
  },
  fromJSON(object) {
    return {
      epochNumber: isSet(object.epochNumber) ? String(object.epochNumber) : "",
      epochProvisions: isSet(object.epochProvisions) ? String(object.epochProvisions) : "",
      amount: isSet(object.amount) ? String(object.amount) : ""
    };
  },
  toJSON(message) {
    const obj = {};
    message.epochNumber !== undefined && (obj.epochNumber = message.epochNumber);
    message.epochProvisions !== undefined && (obj.epochProvisions = message.epochProvisions);
    message.amount !== undefined && (obj.amount = message.amount);
    return obj;
  },
  fromPartial(object) {
    var _object$epochNumber, _object$epochProvisio, _object$amount;
    const message = createBaseMintEpochProvisionsMintedEvent();
    message.epochNumber = (_object$epochNumber = object.epochNumber) !== null && _object$epochNumber !== void 0 ? _object$epochNumber : "";
    message.epochProvisions = (_object$epochProvisio = object.epochProvisions) !== null && _object$epochProvisio !== void 0 ? _object$epochProvisio : "";
    message.amount = (_object$amount = object.amount) !== null && _object$amount !== void 0 ? _object$amount : "";
    return message;
  }
};