to toggle old design should create .env file with variable APP_DESIGN='old''
Use NodeJS 12.x
$ npm install
$ cp .env.example .env # and populate with your variables
This repo must be manually kept-in-sync with Harvest.finance so that it shows the correct vault names, and which vaults are earning farm rewards. Thankfully, we have an endpoint on ethparser that can provide most of this data for us.
In this repo, we have a static file that maps contract addresses to human-readable vault names. This file is populated by ethparser, but then edited manually by us.
To grab the list of vaults from ethparser, run:
$ node scripts/getvaultsfromethparser.js
Notice that the result will be in alphabetical order.
Now you can edit src/static/vaultsName.json
manually to adjust the name of the vault. When you are done, run
$ node scripts/getVaultsFromEthparser.js
again to re-alphabetize the file.
$ node --experimental-modules scripts/track.js $ADDRESS $INFURA_PROJECT_ID
Starts Storybook in development mode.
npm
$ npm run storybook
yarn
$ yarn storybook
It will start Storybook locally.
Depending on your system configuration, it will automatically open the address http://localhost:6006/
in a new browser tab and you'll be greeted by a welcome screen.
For build and using locally
$ npm run build-storybook
yarn
$ yarn build-storybook
This dashboard would not be possible without the efforts of countless contributors.