import { Long } from "../../../helpers";
export const AminoConverter = {
  "/injective.oracle.v1beta1.MsgRelayProviderPrices": {
    aminoType: "/injective.oracle.v1beta1.MsgRelayProviderPrices",
    toAmino: ({
      sender,
      provider,
      symbols,
      prices
    }) => {
      return {
        sender,
        provider,
        symbols,
        prices
      };
    },
    fromAmino: ({
      sender,
      provider,
      symbols,
      prices
    }) => {
      return {
        sender,
        provider,
        symbols,
        prices
      };
    }
  },
  "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice": {
    aminoType: "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice",
    toAmino: ({
      sender,
      base,
      quote,
      price
    }) => {
      return {
        sender,
        base,
        quote,
        price
      };
    },
    fromAmino: ({
      sender,
      base,
      quote,
      price
    }) => {
      return {
        sender,
        base,
        quote,
        price
      };
    }
  },
  "/injective.oracle.v1beta1.MsgRelayBandRates": {
    aminoType: "/injective.oracle.v1beta1.MsgRelayBandRates",
    toAmino: ({
      relayer,
      symbols,
      rates,
      resolveTimes,
      requestIDs
    }) => {
      return {
        relayer,
        symbols,
        rates: rates.map(el0 => el0.toString()),
        resolve_times: resolveTimes.map(el0 => el0.toString()),
        requestIDs: requestIDs.map(el0 => el0.toString())
      };
    },
    fromAmino: ({
      relayer,
      symbols,
      rates,
      resolve_times,
      requestIDs
    }) => {
      return {
        relayer,
        symbols,
        rates: rates.map(el0 => Long.fromString(el0)),
        resolveTimes: resolve_times.map(el0 => Long.fromString(el0)),
        requestIDs: requestIDs.map(el0 => Long.fromString(el0))
      };
    }
  },
  "/injective.oracle.v1beta1.MsgRequestBandIBCRates": {
    aminoType: "/injective.oracle.v1beta1.MsgRequestBandIBCRates",
    toAmino: ({
      sender,
      requestId
    }) => {
      return {
        sender,
        request_id: requestId.toString()
      };
    },
    fromAmino: ({
      sender,
      request_id
    }) => {
      return {
        sender,
        requestId: Long.fromString(request_id)
      };
    }
  },
  "/injective.oracle.v1beta1.MsgRelayCoinbaseMessages": {
    aminoType: "/injective.oracle.v1beta1.MsgRelayCoinbaseMessages",
    toAmino: ({
      sender,
      messages,
      signatures
    }) => {
      return {
        sender,
        messages,
        signatures
      };
    },
    fromAmino: ({
      sender,
      messages,
      signatures
    }) => {
      return {
        sender,
        messages,
        signatures
      };
    }
  }
};