Skip to content
dev
Switch branches/tags
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jan 18, 2022
Jan 13, 2022
Jul 26, 2021
Jan 13, 2022
Jan 13, 2022
Sep 23, 2021
Aug 20, 2020
Aug 18, 2020
Aug 20, 2020

Staking CI staking Discord Twitter Follow

Staking

Tech stack

  • Next.js
  • React
  • React Query
  • Recoil
  • Unstated-next
  • Styled-Components
  • Immer

Ethereum stack

Development

Install dependencies

npm i

Set up environment variables

Copy the .env.local.example file in this directory to .env.local (which will be ignored by Git):

cp .env.local.example .env.local

Then, open .env.local and add the missing environment variables:

  • NEXT_PUBLIC_PORTIS_APP_ID - Portis app id (get it from portis.io)
  • NEXT_PUBLIC_BN_ONBOARD_API_KEY - Blocknative Onboard API key (get it from blocknative.com)
  • NEXT_PUBLIC_INFURA_PROJECT_ID - Infura project id (get it from infura.io)

Run

npm run dev

Open http://localhost:3000 to view it in the browser.

Build

npm run build
npm start

Test

Before running e2e tests, you have to set environmental variable named SECRET_WORDS which can be imported as an account in metamask.

SECRET_WORDS="word1, word2, ..." npm run test:e2e