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.
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 |
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"]"
ChainIcon.tsx
usdc.ts#getUsdcAddress
.https://www.ssn-verify.com/generate
supabase gen types typescript --project-id xxxx > src/utils/supabase/database.types.ts