import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
import { Registry } from "@cosmjs/proto-signing";
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
import * as injectiveAuctionV1beta1TxRegistry from "./auction/v1beta1/tx.registry";
import * as injectiveExchangeV1beta1TxRegistry from "./exchange/v1beta1/tx.registry";
import * as injectiveInsuranceV1beta1TxRegistry from "./insurance/v1beta1/tx.registry";
import * as injectiveOcrV1beta1TxRegistry from "./ocr/v1beta1/tx.registry";
import * as injectiveOracleV1beta1TxRegistry from "./oracle/v1beta1/tx.registry";
import * as injectivePeggyV1MsgsRegistry from "./peggy/v1/msgs.registry";
import * as injectiveAuctionV1beta1TxAmino from "./auction/v1beta1/tx.amino";
import * as injectiveExchangeV1beta1TxAmino from "./exchange/v1beta1/tx.amino";
import * as injectiveInsuranceV1beta1TxAmino from "./insurance/v1beta1/tx.amino";
import * as injectiveOcrV1beta1TxAmino from "./ocr/v1beta1/tx.amino";
import * as injectiveOracleV1beta1TxAmino from "./oracle/v1beta1/tx.amino";
import * as injectivePeggyV1MsgsAmino from "./peggy/v1/msgs.amino";
export const injectiveAminoConverters = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, injectiveAuctionV1beta1TxAmino.AminoConverter), injectiveExchangeV1beta1TxAmino.AminoConverter), injectiveInsuranceV1beta1TxAmino.AminoConverter), injectiveOcrV1beta1TxAmino.AminoConverter), injectiveOracleV1beta1TxAmino.AminoConverter), injectivePeggyV1MsgsAmino.AminoConverter);
export const injectiveProtoRegistry = [...injectiveAuctionV1beta1TxRegistry.registry, ...injectiveExchangeV1beta1TxRegistry.registry, ...injectiveInsuranceV1beta1TxRegistry.registry, ...injectiveOcrV1beta1TxRegistry.registry, ...injectiveOracleV1beta1TxRegistry.registry, ...injectivePeggyV1MsgsRegistry.registry];
export const getSigningInjectiveClientOptions = ({
  defaultTypes = defaultRegistryTypes
} = {}) => {
  const registry = new Registry([...defaultTypes, ...injectiveProtoRegistry]);
  const aminoTypes = new AminoTypes(_objectSpread({}, injectiveAminoConverters));
  return {
    registry,
    aminoTypes
  };
};
export const getSigningInjectiveClient = async ({
  rpcEndpoint,
  signer,
  defaultTypes = defaultRegistryTypes
}) => {
  const {
    registry,
    aminoTypes
  } = getSigningInjectiveClientOptions({
    defaultTypes
  });
  const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
    registry,
    aminoTypes
  });
  return client;
};