vesting-pachacuy 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -19342,7 +19342,7 @@ function getStatusOfFundByRole(_role) {
19342
19342
  function formatDate(arrayDates) {
19343
19343
  return arrayDates.map(function (date) {
19344
19344
  var today = new Date(date.toNumber() * 1000);
19345
- return today.toLocaleDateString();
19345
+ return today.toDateString();
19346
19346
  });
19347
19347
  }
19348
19348
  function transform(vestingPerAccount) {
@@ -19350,7 +19350,8 @@ function transform(vestingPerAccount) {
19350
19350
  fundsToVestForThisAccount: (0,ethers_lib_utils__WEBPACK_IMPORTED_MODULE_2__.formatEther)(vestingPerAccount[0]),
19351
19351
  currentVestingPeriod: vestingPerAccount[1].toNumber(),
19352
19352
  totalFundsVested: (0,ethers_lib_utils__WEBPACK_IMPORTED_MODULE_2__.formatEther)(vestingPerAccount[2]),
19353
- datesForVesting: formatDate(vestingPerAccount[3]),
19353
+ datesForVestingString: formatDate(vestingPerAccount[3]),
19354
+ datesForVestingTimestamp: vestingPerAccount[3].map(function (date) { return date.toNumber(); }),
19354
19355
  roleOfAccount: vestingPerAccount[4],
19355
19356
  uuid: vestingPerAccount[5].toString(),
19356
19357
  vestingPeriods: vestingPerAccount[6].toNumber(),