Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

BreadchainCoop/breadchain-crowdstaking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Breadchain Crowdstaking

Frontend for interacting with the Breadchain Crowdstaking contract.

Local Development

This project uses volta to pin specific versions of node and yarn. You can install it here.

Create an .env file based on .example.env.

Then run:

# install dependencies and run the dev server
$ yarn && yarn dev

# or build for production
$ yarn build

Hardhat

Run a chain locally and fund 3 wallets with DAI:

$ yarn hardhat:dev

Add a hardhat wallet to metamask to test application manually.

Ethernal

To connect to ethernal and inspect blocks/transactions on your local chain set ETHERNAL_EMAIL and ETHERNAL_PASSWORD variables in your .env.

Tests

Run e2e tests against local hardhat node. This script kills anything running on localhost:8545 so tests can be run against a fresh clone of the chain.

$ yarn e2e:local

Storybook

# run the book
$ yarn storybook