A widget for submitting Ether to the pool based on Lido Frontend Template.
- 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.localStep 2. Fill out the .env.local. You will need to provide RPC provider urls with keys included.
Step 3. Install dependencies
yarn installStep 4. Start the development server
yarn devfor IPFS mode below:
yarn dev:ipfs # will start with HMRNote! Avoid using NEXT_PUBLIC_ environment variables as it hinders our CI pipeline. Please use server-side environment variables and pass them to the client using getInitialProps in _app.js.
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 startfor IPFS mode below:
yarn build:ipfsDeprecated: do not add new endpoints to next api
- create a new file in
pages/api/folder - use
wrapRequestfunction from@lidofinance/next-api-wrapperpackage. - use default wrappers from
utilsApi/nextApiWrappers.tsif needed (e.g.defaultErrorHandlerfor handle errors)
Example:
const someRequest: API = async (req, res) => await fetch();
export default wrapRequest([defaultErrorHandler])(someRequest);To create a new release:
- Merge all changes to the
mainbranch. - After the merge, the
Prepare release draftaction 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.