A widget for participating in Lido CSM based on Lido Frontend Template.
Lido Community Staking Module (CSM) is a permissionless module allowing community stakers to operate Ethereum validators with lower entry costs. Stakers provide stETH bonds, serving as security collateral, and receive rewards in the form of bond rebase and staking rewards (including execution layer rewards), which are socialized across Lido’s staking modules.
More on CSM in the docs.
- Node.js v20+
- Yarn package manager v1
This project requires an .env
file which is distributed via private communication channels. A sample can be found in .env.example
Step 1. Copy the contents of .env.example
to .env.local
cp .env.example .env.local
Step 2. Fill out the .env.local
. You will need to provide RPC provider urls and CL API urls with keys included.
Step 3. Install dependencies
yarn install
Step 4. Start the development server
yarn dev
Step 5. Open http://localhost:3000 with your browser to see the result.
This project uses publicRuntimeConfig
in the next.config.js and getServerSideProps
on the pages (function may be empty, but it forces Next.js to switch to Server-Side Rendering mode). This is necessary to quickly start the docker container without rebuilding the application.
Read more about runtime configuration and automatic static optimization
Note! This repo uses automatic versioning, please follow the commit message conventions.
e.g.
git commit -m "fix: a bug in calculation"
git commit -m "feat: dark theme"
yarn build && yarn start
To create a new release:
- Merge all changes to the
main
branch. - After the merge, the
Prepare release draft
action will run automatically. When the action is complete, a release draft is created. - When you need to release, go to Repo → Releases.
- Publish the desired release draft manually by clicking the edit button - this release is now the
Latest Published
. - After publication, the action to create a release bump will be triggered automatically.
Learn more about App Release Flow.