Skip to content

Commit

Permalink
Add timestamp (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos authored Jan 29, 2024
1 parent 37d7c01 commit 44bba95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions staking/app/scripts/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,15 @@ async function main() {
};
});

const date = Date.now();

fs.writeFileSync(
"snapshot.json",
`snapshot-${date.toString()}.json`,
JSON.stringify(stakersWithProfile, null, 2),
"utf-8"
);
fs.writeFileSync(
"snapshot.csv",
`snapshot-${date.toString()}.csv`,
Papa.unparse(stakersWithProfile, { header: true, skipEmptyLines: true }),
"utf-8"
);
Expand Down

2 comments on commit 44bba95

@vercel
Copy link

@vercel vercel bot commented on 44bba95 Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

staking-devnet – ./

governance-nu.vercel.app
staking-devnet-git-main-pyth-web.vercel.app
staking-devnet-pyth-web.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 44bba95 Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.