"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.AminoConverter = void 0;
var _helpers = require("../../../helpers");
var AminoConverter = {
  "/injective.peggy.v1.MsgValsetConfirm": {
    aminoType: "/injective.peggy.v1.MsgValsetConfirm",
    toAmino: function toAmino(_ref) {
      var nonce = _ref.nonce,
        orchestrator = _ref.orchestrator,
        ethAddress = _ref.ethAddress,
        signature = _ref.signature;
      return {
        nonce: nonce.toString(),
        orchestrator: orchestrator,
        eth_address: ethAddress,
        signature: signature
      };
    },
    fromAmino: function fromAmino(_ref2) {
      var nonce = _ref2.nonce,
        orchestrator = _ref2.orchestrator,
        eth_address = _ref2.eth_address,
        signature = _ref2.signature;
      return {
        nonce: _helpers.Long.fromString(nonce),
        orchestrator: orchestrator,
        ethAddress: eth_address,
        signature: signature
      };
    }
  },
  "/injective.peggy.v1.MsgSendToEth": {
    aminoType: "/injective.peggy.v1.MsgSendToEth",
    toAmino: function toAmino(_ref3) {
      var sender = _ref3.sender,
        ethDest = _ref3.ethDest,
        amount = _ref3.amount,
        bridgeFee = _ref3.bridgeFee;
      return {
        sender: sender,
        eth_dest: ethDest,
        amount: {
          denom: amount.denom,
          amount: _helpers.Long.fromValue(amount.amount).toString()
        },
        bridge_fee: {
          denom: bridgeFee.denom,
          amount: _helpers.Long.fromValue(bridgeFee.amount).toString()
        }
      };
    },
    fromAmino: function fromAmino(_ref4) {
      var sender = _ref4.sender,
        eth_dest = _ref4.eth_dest,
        amount = _ref4.amount,
        bridge_fee = _ref4.bridge_fee;
      return {
        sender: sender,
        ethDest: eth_dest,
        amount: {
          denom: amount.denom,
          amount: amount.amount
        },
        bridgeFee: {
          denom: bridge_fee.denom,
          amount: bridge_fee.amount
        }
      };
    }
  },
  "/injective.peggy.v1.MsgRequestBatch": {
    aminoType: "/injective.peggy.v1.MsgRequestBatch",
    toAmino: function toAmino(_ref5) {
      var orchestrator = _ref5.orchestrator,
        denom = _ref5.denom;
      return {
        orchestrator: orchestrator,
        denom: denom
      };
    },
    fromAmino: function fromAmino(_ref6) {
      var orchestrator = _ref6.orchestrator,
        denom = _ref6.denom;
      return {
        orchestrator: orchestrator,
        denom: denom
      };
    }
  },
  "/injective.peggy.v1.MsgConfirmBatch": {
    aminoType: "/injective.peggy.v1.MsgConfirmBatch",
    toAmino: function toAmino(_ref7) {
      var nonce = _ref7.nonce,
        tokenContract = _ref7.tokenContract,
        ethSigner = _ref7.ethSigner,
        orchestrator = _ref7.orchestrator,
        signature = _ref7.signature;
      return {
        nonce: nonce.toString(),
        token_contract: tokenContract,
        eth_signer: ethSigner,
        orchestrator: orchestrator,
        signature: signature
      };
    },
    fromAmino: function fromAmino(_ref8) {
      var nonce = _ref8.nonce,
        token_contract = _ref8.token_contract,
        eth_signer = _ref8.eth_signer,
        orchestrator = _ref8.orchestrator,
        signature = _ref8.signature;
      return {
        nonce: _helpers.Long.fromString(nonce),
        tokenContract: token_contract,
        ethSigner: eth_signer,
        orchestrator: orchestrator,
        signature: signature
      };
    }
  },
  "/injective.peggy.v1.MsgDepositClaim": {
    aminoType: "/injective.peggy.v1.MsgDepositClaim",
    toAmino: function toAmino(_ref9) {
      var eventNonce = _ref9.eventNonce,
        blockHeight = _ref9.blockHeight,
        tokenContract = _ref9.tokenContract,
        amount = _ref9.amount,
        ethereumSender = _ref9.ethereumSender,
        cosmosReceiver = _ref9.cosmosReceiver,
        orchestrator = _ref9.orchestrator,
        data = _ref9.data;
      return {
        event_nonce: eventNonce.toString(),
        block_height: blockHeight.toString(),
        token_contract: tokenContract,
        amount: amount,
        ethereum_sender: ethereumSender,
        cosmos_receiver: cosmosReceiver,
        orchestrator: orchestrator,
        data: data
      };
    },
    fromAmino: function fromAmino(_ref10) {
      var event_nonce = _ref10.event_nonce,
        block_height = _ref10.block_height,
        token_contract = _ref10.token_contract,
        amount = _ref10.amount,
        ethereum_sender = _ref10.ethereum_sender,
        cosmos_receiver = _ref10.cosmos_receiver,
        orchestrator = _ref10.orchestrator,
        data = _ref10.data;
      return {
        eventNonce: _helpers.Long.fromString(event_nonce),
        blockHeight: _helpers.Long.fromString(block_height),
        tokenContract: token_contract,
        amount: amount,
        ethereumSender: ethereum_sender,
        cosmosReceiver: cosmos_receiver,
        orchestrator: orchestrator,
        data: data
      };
    }
  },
  "/injective.peggy.v1.MsgWithdrawClaim": {
    aminoType: "/injective.peggy.v1.MsgWithdrawClaim",
    toAmino: function toAmino(_ref11) {
      var eventNonce = _ref11.eventNonce,
        blockHeight = _ref11.blockHeight,
        batchNonce = _ref11.batchNonce,
        tokenContract = _ref11.tokenContract,
        orchestrator = _ref11.orchestrator;
      return {
        event_nonce: eventNonce.toString(),
        block_height: blockHeight.toString(),
        batch_nonce: batchNonce.toString(),
        token_contract: tokenContract,
        orchestrator: orchestrator
      };
    },
    fromAmino: function fromAmino(_ref12) {
      var event_nonce = _ref12.event_nonce,
        block_height = _ref12.block_height,
        batch_nonce = _ref12.batch_nonce,
        token_contract = _ref12.token_contract,
        orchestrator = _ref12.orchestrator;
      return {
        eventNonce: _helpers.Long.fromString(event_nonce),
        blockHeight: _helpers.Long.fromString(block_height),
        batchNonce: _helpers.Long.fromString(batch_nonce),
        tokenContract: token_contract,
        orchestrator: orchestrator
      };
    }
  },
  "/injective.peggy.v1.MsgValsetUpdatedClaim": {
    aminoType: "/injective.peggy.v1.MsgValsetUpdatedClaim",
    toAmino: function toAmino(_ref13) {
      var eventNonce = _ref13.eventNonce,
        valsetNonce = _ref13.valsetNonce,
        blockHeight = _ref13.blockHeight,
        members = _ref13.members,
        rewardAmount = _ref13.rewardAmount,
        rewardToken = _ref13.rewardToken,
        orchestrator = _ref13.orchestrator;
      return {
        event_nonce: eventNonce.toString(),
        valset_nonce: valsetNonce.toString(),
        block_height: blockHeight.toString(),
        members: members.map(function (el0) {
          return {
            power: el0.power.toString(),
            ethereum_address: el0.ethereumAddress
          };
        }),
        reward_amount: rewardAmount,
        reward_token: rewardToken,
        orchestrator: orchestrator
      };
    },
    fromAmino: function fromAmino(_ref14) {
      var event_nonce = _ref14.event_nonce,
        valset_nonce = _ref14.valset_nonce,
        block_height = _ref14.block_height,
        members = _ref14.members,
        reward_amount = _ref14.reward_amount,
        reward_token = _ref14.reward_token,
        orchestrator = _ref14.orchestrator;
      return {
        eventNonce: _helpers.Long.fromString(event_nonce),
        valsetNonce: _helpers.Long.fromString(valset_nonce),
        blockHeight: _helpers.Long.fromString(block_height),
        members: members.map(function (el0) {
          return {
            power: _helpers.Long.fromString(el0.power),
            ethereumAddress: el0.ethereum_address
          };
        }),
        rewardAmount: reward_amount,
        rewardToken: reward_token,
        orchestrator: orchestrator
      };
    }
  },
  "/injective.peggy.v1.MsgERC20DeployedClaim": {
    aminoType: "/injective.peggy.v1.MsgERC20DeployedClaim",
    toAmino: function toAmino(_ref15) {
      var eventNonce = _ref15.eventNonce,
        blockHeight = _ref15.blockHeight,
        cosmosDenom = _ref15.cosmosDenom,
        tokenContract = _ref15.tokenContract,
        name = _ref15.name,
        symbol = _ref15.symbol,
        decimals = _ref15.decimals,
        orchestrator = _ref15.orchestrator;
      return {
        event_nonce: eventNonce.toString(),
        block_height: blockHeight.toString(),
        cosmos_denom: cosmosDenom,
        token_contract: tokenContract,
        name: name,
        symbol: symbol,
        decimals: decimals.toString(),
        orchestrator: orchestrator
      };
    },
    fromAmino: function fromAmino(_ref16) {
      var event_nonce = _ref16.event_nonce,
        block_height = _ref16.block_height,
        cosmos_denom = _ref16.cosmos_denom,
        token_contract = _ref16.token_contract,
        name = _ref16.name,
        symbol = _ref16.symbol,
        decimals = _ref16.decimals,
        orchestrator = _ref16.orchestrator;
      return {
        eventNonce: _helpers.Long.fromString(event_nonce),
        blockHeight: _helpers.Long.fromString(block_height),
        cosmosDenom: cosmos_denom,
        tokenContract: token_contract,
        name: name,
        symbol: symbol,
        decimals: _helpers.Long.fromString(decimals),
        orchestrator: orchestrator
      };
    }
  },
  "/injective.peggy.v1.MsgSetOrchestratorAddresses": {
    aminoType: "/injective.peggy.v1.MsgSetOrchestratorAddresses",
    toAmino: function toAmino(_ref17) {
      var sender = _ref17.sender,
        orchestrator = _ref17.orchestrator,
        ethAddress = _ref17.ethAddress;
      return {
        sender: sender,
        orchestrator: orchestrator,
        eth_address: ethAddress
      };
    },
    fromAmino: function fromAmino(_ref18) {
      var sender = _ref18.sender,
        orchestrator = _ref18.orchestrator,
        eth_address = _ref18.eth_address;
      return {
        sender: sender,
        orchestrator: orchestrator,
        ethAddress: eth_address
      };
    }
  },
  "/injective.peggy.v1.MsgCancelSendToEth": {
    aminoType: "/injective.peggy.v1.MsgCancelSendToEth",
    toAmino: function toAmino(_ref19) {
      var transactionId = _ref19.transactionId,
        sender = _ref19.sender;
      return {
        transaction_id: transactionId.toString(),
        sender: sender
      };
    },
    fromAmino: function fromAmino(_ref20) {
      var transaction_id = _ref20.transaction_id,
        sender = _ref20.sender;
      return {
        transactionId: _helpers.Long.fromString(transaction_id),
        sender: sender
      };
    }
  },
  "/injective.peggy.v1.MsgSubmitBadSignatureEvidence": {
    aminoType: "/injective.peggy.v1.MsgSubmitBadSignatureEvidence",
    toAmino: function toAmino(_ref21) {
      var subject = _ref21.subject,
        signature = _ref21.signature,
        sender = _ref21.sender;
      return {
        subject: {
          type_url: subject.typeUrl,
          value: subject.value
        },
        signature: signature,
        sender: sender
      };
    },
    fromAmino: function fromAmino(_ref22) {
      var subject = _ref22.subject,
        signature = _ref22.signature,
        sender = _ref22.sender;
      return {
        subject: {
          typeUrl: subject.type_url,
          value: subject.value
        },
        signature: signature,
        sender: sender
      };
    }
  }
};
exports.AminoConverter = AminoConverter;