The user interface for the Locker application
The following are instructions to get a copy of the project running locally on your machine for developement and testing purposes.
The preferred package manager of the Chain Rule team is npm, so this README only references npm, but pmpm or yarn may be used alternatively.
Ensure that npm is installed globally on your machine.
Run npm install
to install the project's dependencies.
Run npm run dev
to start the app server locally.
Go to localhost:3000 in the web browser to view the app.
Run npm run build
to get a complete bundle of the app.
Run npm run test
to run all tests.
Run npm run format
to format all the code.
Run npm run lint:check
to run the linter.
- On a new branch, open a PR for a particular set of changes.
- Name the PR according to the Conventional Commits guidelines.
- All commits must be related to the PR name and commit messages must follow the Conventional Commits guidelines.
- To make the enforcement of these guidelines easier, husky, commitlint, commitizen, and GitHub Actions have been configured for this project.
- All PRs must be squashed and merged to keep a clean history on the main branch.
Label | Description |
---|---|
feat | A new feature |
fix | A bug fix |
docs | Documentation only changes |
style | Changes that do not affect the meaning of the code (white-space, formatting, etc) |
refactor | A code change that neither fixes a bug nor adds a feature |
perf | A code change that improves performance |
test | Adding missing tests or correcting existing tests |
build | Changes that affect the build system or external dependencies |
ci | Changes to our CI configuration files and scripts |
chore | Other changes that don't modify src or test files |
revert | Reverts a previous commit |
- Update
src/data/constants/supportedChains.ts
# Private RPC
LINEA_RPC_URL=your_linea_rpc_url
# ZeroDev
LINEA_PROJECT_ID=your_project_id
LINEA_BUNDLER_RPC_URL=your_bundler_url
LINEA_PAYMASTER_RPC_URL=your_paymaster_url
# Supported chains (different for dev and prod)
# Must be wagmi chain names.
SUPPORTED_CHAINS="["arbitrum", "optimism", "base", "polygon", "avalanche", "sepolia", "baseSepolia", "linea"]"
- Update
ChainIcon.tsx
- Update tailwind.config.ts: safelist and color
- getChainName
- getChainIconStyling
- Set usdc address in
usdc.ts#getUsdcAddress
. - update next.config.js
- getBundler.ts
- getPaymaster.ts
https://www.ssn-verify.com/generate
supabase gen types typescript --project-id xxxx > src/utils/supabase/database.types.ts