message: fix reclaimables export
diff: @@ -79,65 +79,65 @@ const export_log = (logs, filename) => {
  }
  -const download_snapshot = () => {
  +const download_reclaimable = () => {
  let headers = {
  eth: "eth_address"
  - ,eos: "eos_key"
  - ,balance: "balance"
  + ,tx: "tx"
  + ,balance: "amount"
  };
  - let filename = `eos-snapshot_${SNAPSHOT_ENV}_${SS_LAST_BLOCK}-${SS_FIRST_BLOCK}`;
  + let filename = `eos-reclaimable_tx_${SNAPSHOT_ENV}_${SS_LAST_BLOCK}-${SS_FIRST_BLOCK}`
  - export_csv(headers, output.snapshot, filename)
  + export_csv(headers, output.reclaimable, filename);
  }
  -
  -const download_rejects = () => {
  +const download_reclaimed = () => {
  let headers = {
  - rejected: "error"
  - ,eth: "eth_address"
  + eth: "eth_address"
  ,eos: "eos_key"
  - ,balance: "balance"
  + ,tx: "tx"
  + ,amount: "amount"
  };
  - let filename = `eos-rejections_${SNAPSHOT_ENV}_${SS_LAST_BLOCK}-${SS_FIRST_BLOCK}`
  + let filename = `eos-successfully_reclaimed_tx_${SNAPSHOT_ENV}_${SS_LAST_BLOCK}-${SS_FIRST_BLOCK}`
  +
  + let reclaimed = output.reclaimed
  +
  + export_csv(headers, reclaimed, filename);
  - export_csv(headers, output.rejects, filename)
  }
  -const download_reclaimable = () => {
  +const download_snapshot = () => {
  let headers = {
  eth: "eth_address"
  - ,tx: "tx"
  - ,balance: "amount"
  + ,eos: "eos_key"
  + ,balance: "balance"
  };
  - let filename = `eos-reclaimable_tx_${SNAPSHOT_ENV}_${SS_LAST_BLOCK}-${SS_FIRST_BLOCK}`
  + let filename = `eos-snapshot_${SNAPSHOT_ENV}_${SS_LAST_BLOCK}-${SS_FIRST_BLOCK}`;
  - export_csv(headers, output.reclaimable, filename);
  + export_csv(headers, output.snapshot, filename)
  }
  -const download_reclaimed = () => {
  +
  +const download_rejects = () => {
  let headers = {
  - eth: "eth_address"
  + rejected: "error"
  + ,eth: "eth_address"
  ,eos: "eos_key"
  - ,tx: "tx"
  - ,amount: "amount"
  + ,balance: "balance"
  };
  - let filename = `eos-successfully_reclaimed_tx_${SNAPSHOT_ENV}_${SS_LAST_BLOCK}-${SS_FIRST_BLOCK}`
  -
  - let reclaimed = output.reclaimed.map( tx => { return { eth: tx.eth, eos: tx.eos, tx: tx.hash, amount: formatEOS(web3.toBigNumber(tx.amount).div(WAD)) } } )
  -
  - export_csv(headers, reclaimed, filename);
  + let filename = `eos-rejections_${SNAPSHOT_ENV}_${SS_LAST_BLOCK}-${SS_FIRST_BLOCK}`
  + export_csv(headers, output.rejects, filename)
  }
  