Skip to content

Latest commit

 

History

History

staking_web

Roo Troop Staking V2 Frontend

Frontend for Roo Troop Staking V2

Initial Setup

Install Dependencies

npm install

Setup Environment

Create an .env.local file containing values for variables specified in `src/config.ts (See vite documentation for more info on modes)

VITE_BACKEND_BASE_URI=http://localhost:3000

VITE_INFURA_PROJECT_ID=<INFURA_PROJECT_ID>

VITE_ETHEREUM_NETWORK=rinkeby
VITE_ETHEREUM_CHAIN_ID=4

VITE_CONTRACTS_ROO_TROOP=<ROO_TROOP_ADDRESS>
VITE_CONTRACTS_JOEY=<JOEY_ADDRESS>
VITE_CONTRACTS_STAKING=<STAKING_ADDRESS>

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile, and Minify for Production

npm run build

Lint with ESLint

npm run lint

Run Type Checks

npm run typecheck