yaqubxeo / dashboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

!!! REDESIGN NOTE

to toggle old design should create .env file with variable APP_DESIGN='old''

Harvest Dashboard

Check out the dashboard :)

Setup

Use NodeJS 12.x

$ npm install
$ cp .env.example .env # and populate with your variables

Updating for new vaults

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.

Tracking an address and logging to disk

$ node --experimental-modules scripts/track.js $ADDRESS $INFURA_PROJECT_ID

Storybook

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

Credits

This dashboard would not be possible without the efforts of countless contributors.

About


Languages

Language:TypeScript 71.3%Language:JavaScript 28.0%Language:HTML 0.6%Language:SCSS 0.1%Language:Shell 0.0%