"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ConfigResponse = exports.ConfigRequest = void 0;
var _binary = require("../../../../binary");
var _helpers = require("../../../../helpers");
/** ConfigRequest defines the request structure for the Config gRPC query. */

/** ConfigRequest defines the request structure for the Config gRPC query. */

/** ConfigRequest defines the request structure for the Config gRPC query. */

/** ConfigResponse defines the response structure for the Config gRPC query. */

/** ConfigResponse defines the response structure for the Config gRPC query. */

/** ConfigResponse defines the response structure for the Config gRPC query. */

function createBaseConfigRequest() {
  return {};
}
var ConfigRequest = exports.ConfigRequest = {
  typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest",
  encode: function encode(_) {
    var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
    return writer;
  },
  fromJSON: function fromJSON(_) {
    return {};
  },
  fromPartial: function fromPartial(_) {
    var message = createBaseConfigRequest();
    return message;
  },
  fromAmino: function fromAmino(_) {
    var message = createBaseConfigRequest();
    return message;
  },
  toAmino: function toAmino(_) {
    var obj = {};
    return obj;
  },
  fromAminoMsg: function fromAminoMsg(object) {
    return ConfigRequest.fromAmino(object.value);
  },
  toAminoMsg: function toAminoMsg(message) {
    return {
      type: "cosmos-sdk/ConfigRequest",
      value: ConfigRequest.toAmino(message)
    };
  },
  fromProtoMsg: function fromProtoMsg(message) {
    return ConfigRequest.decode(message.value);
  },
  toProto: function toProto(message) {
    return ConfigRequest.encode(message).finish();
  },
  toProtoMsg: function toProtoMsg(message) {
    return {
      typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest",
      value: ConfigRequest.encode(message).finish()
    };
  }
};
function createBaseConfigResponse() {
  return {
    minimumGasPrice: ""
  };
}
var ConfigResponse = exports.ConfigResponse = {
  typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse",
  encode: function encode(message) {
    var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _binary.BinaryWriter.create();
    if (message.minimumGasPrice !== "") {
      writer.uint32(10).string(message.minimumGasPrice);
    }
    return writer;
  },
  fromJSON: function fromJSON(object) {
    return {
      minimumGasPrice: (0, _helpers.isSet)(object.minimumGasPrice) ? String(object.minimumGasPrice) : ""
    };
  },
  fromPartial: function fromPartial(object) {
    var _object$minimumGasPri;
    var message = createBaseConfigResponse();
    message.minimumGasPrice = (_object$minimumGasPri = object.minimumGasPrice) !== null && _object$minimumGasPri !== void 0 ? _object$minimumGasPri : "";
    return message;
  },
  fromAmino: function fromAmino(object) {
    var message = createBaseConfigResponse();
    if (object.minimum_gas_price !== undefined && object.minimum_gas_price !== null) {
      message.minimumGasPrice = object.minimum_gas_price;
    }
    return message;
  },
  toAmino: function toAmino(message) {
    var obj = {};
    obj.minimum_gas_price = message.minimumGasPrice === "" ? undefined : message.minimumGasPrice;
    return obj;
  },
  fromAminoMsg: function fromAminoMsg(object) {
    return ConfigResponse.fromAmino(object.value);
  },
  toAminoMsg: function toAminoMsg(message) {
    return {
      type: "cosmos-sdk/ConfigResponse",
      value: ConfigResponse.toAmino(message)
    };
  },
  fromProtoMsg: function fromProtoMsg(message) {
    return ConfigResponse.decode(message.value);
  },
  toProto: function toProto(message) {
    return ConfigResponse.encode(message).finish();
  },
  toProtoMsg: function toProtoMsg(message) {
    return {
      typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse",
      value: ConfigResponse.encode(message).finish()
    };
  }
};