Perpetual Protocol voting escrow contracts
npm install @perp/voting-escrowYou should have Node 12 installed. Use nvm to install it.
Clone this repository, install NodeJS dependencies, and build the source code:
``bash`
git clone git@github.com:perpetual-protocol/perp-voting-escrow.git
npm i
npm run build
Since there are some runtime environment dependencies, if the installation failed on your machine, please try a vanilla install instead:
`bash`
npm run clean
rm -rf node_modules/
rm package-lock.json
npm install
npm run build
To run all the test cases:
`bash`
npm run test
---
> If any features/functionalities described in the Perpetual Protocol documentation, code comments, marketing, community discussion or announcements, pre-production or testing code, or other non-production-code sources, vary or differ from the code used in production, in case of any dispute, the code used in production shall prevail.
bash
npm run coverage
`- Coverage html version
`bash
brew install lcovnpm run coverage:report
open coverage-out/index.html
`
$3
To query the latest snapshot info
`bash
npm run snapshot
`To query specific timestamp(in sec) info (eg.
1661990400 is 2021-09-01 00:00:00 UTC)
`bash
npm run snapshot 1661990400
``