"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.registry = exports.load = exports.MessageComposer = void 0;
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _tx = require("./tx");
var registry = exports.registry = [["/gitopia.gitopia.rewards.MsgClaim", _tx.MsgClaim], ["/gitopia.gitopia.rewards.MsgCreateReward", _tx.MsgCreateReward], ["/gitopia.gitopia.rewards.MsgUpdateParams", _tx.MsgUpdateParams]];
var load = exports.load = function load(protoRegistry) {
  registry.forEach(function (_ref) {
    var _ref2 = (0, _slicedToArray2["default"])(_ref, 2),
      typeUrl = _ref2[0],
      mod = _ref2[1];
    protoRegistry.register(typeUrl, mod);
  });
};
var MessageComposer = exports.MessageComposer = {
  encoded: {
    claim: function claim(value) {
      return {
        typeUrl: "/gitopia.gitopia.rewards.MsgClaim",
        value: _tx.MsgClaim.encode(value).finish()
      };
    },
    createReward: function createReward(value) {
      return {
        typeUrl: "/gitopia.gitopia.rewards.MsgCreateReward",
        value: _tx.MsgCreateReward.encode(value).finish()
      };
    },
    updateParams: function updateParams(value) {
      return {
        typeUrl: "/gitopia.gitopia.rewards.MsgUpdateParams",
        value: _tx.MsgUpdateParams.encode(value).finish()
      };
    }
  },
  withTypeUrl: {
    claim: function claim(value) {
      return {
        typeUrl: "/gitopia.gitopia.rewards.MsgClaim",
        value: value
      };
    },
    createReward: function createReward(value) {
      return {
        typeUrl: "/gitopia.gitopia.rewards.MsgCreateReward",
        value: value
      };
    },
    updateParams: function updateParams(value) {
      return {
        typeUrl: "/gitopia.gitopia.rewards.MsgUpdateParams",
        value: value
      };
    }
  },
  fromJSON: {
    claim: function claim(value) {
      return {
        typeUrl: "/gitopia.gitopia.rewards.MsgClaim",
        value: _tx.MsgClaim.fromJSON(value)
      };
    },
    createReward: function createReward(value) {
      return {
        typeUrl: "/gitopia.gitopia.rewards.MsgCreateReward",
        value: _tx.MsgCreateReward.fromJSON(value)
      };
    },
    updateParams: function updateParams(value) {
      return {
        typeUrl: "/gitopia.gitopia.rewards.MsgUpdateParams",
        value: _tx.MsgUpdateParams.fromJSON(value)
      };
    }
  },
  fromPartial: {
    claim: function claim(value) {
      return {
        typeUrl: "/gitopia.gitopia.rewards.MsgClaim",
        value: _tx.MsgClaim.fromPartial(value)
      };
    },
    createReward: function createReward(value) {
      return {
        typeUrl: "/gitopia.gitopia.rewards.MsgCreateReward",
        value: _tx.MsgCreateReward.fromPartial(value)
      };
    },
    updateParams: function updateParams(value) {
      return {
        typeUrl: "/gitopia.gitopia.rewards.MsgUpdateParams",
        value: _tx.MsgUpdateParams.fromPartial(value)
      };
    }
  }
};