Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ Live frontend:

## Install dependencies

`yarn`
1. Install nvm (node version manager) https://github.com/nvm-sh/nvm

2. Install the correct node version i.e. v14.21.1 via nvm.

3. `pnpm i`

## Developing on Public Network

Quick run on a public network (Mainnet and Kovan supported): `yarn dev`
Quick run on a public network (Mainnet and Kovan supported): `pnpm dev`

## Developing on Mainnet-fork

Expand All @@ -25,7 +29,7 @@ PRIV_KEY=0x123456789...

The following instructions will spin up a test chain forked off mainnet and also swap 10 ETH to DAI on Uniswap so that you have a healthy balance of ETH and DAI to test with. You can manually test the dapp with MetaMask in your browser this way.

1. Run `yarn chain`.
1. Run `pnpm chain`.
2. Copy the private key into MetaMask to access the account and connect to `localhost:8545`. Your balance should be ~990 ETH and a bunch of DAI.
3. Test.

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name": "emp-tools",
"version": "1.0.0",
"packageManager": "pnpm@6.31.0",
"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "next",
"build": "next build",
"start": "next start",
Expand Down Expand Up @@ -68,4 +70,4 @@
"lint-staged": {
"*.{ts,tsx,css,html,md}": "prettier --write"
}
}
}
2 changes: 1 addition & 1 deletion pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Document from "next/document";
import Head from "next/head";
import { ServerStyleSheet } from "styled-components";
import { ServerStyleSheets } from "@material-ui/styles";
import { ServerStyleSheets } from "@material-ui/core";

export default class MyDocument extends Document {
static async getInitialProps(ctx: any) {
Expand Down
Loading