import { MsgCreateSchedule, MsgTerminateSchedules } from "./tx";
export const registry = [["/mars.incentives.v1beta1.MsgCreateSchedule", MsgCreateSchedule], ["/mars.incentives.v1beta1.MsgTerminateSchedules", MsgTerminateSchedules]];
export const load = protoRegistry => {
  registry.forEach(([typeUrl, mod]) => {
    protoRegistry.register(typeUrl, mod);
  });
};
export const MessageComposer = {
  encoded: {
    createSchedule(value) {
      return {
        typeUrl: "/mars.incentives.v1beta1.MsgCreateSchedule",
        value: MsgCreateSchedule.encode(value).finish()
      };
    },
    terminateSchedules(value) {
      return {
        typeUrl: "/mars.incentives.v1beta1.MsgTerminateSchedules",
        value: MsgTerminateSchedules.encode(value).finish()
      };
    }
  },
  withTypeUrl: {
    createSchedule(value) {
      return {
        typeUrl: "/mars.incentives.v1beta1.MsgCreateSchedule",
        value
      };
    },
    terminateSchedules(value) {
      return {
        typeUrl: "/mars.incentives.v1beta1.MsgTerminateSchedules",
        value
      };
    }
  },
  fromPartial: {
    createSchedule(value) {
      return {
        typeUrl: "/mars.incentives.v1beta1.MsgCreateSchedule",
        value: MsgCreateSchedule.fromPartial(value)
      };
    },
    terminateSchedules(value) {
      return {
        typeUrl: "/mars.incentives.v1beta1.MsgTerminateSchedules",
        value: MsgTerminateSchedules.fromPartial(value)
      };
    }
  }
};