locker-labs / locker-ui

https://app.locker.money
1 stars 0 forks source link

Locker User Interface

The user interface for the Locker application

Getting Started with Development

The following are instructions to get a copy of the project running locally on your machine for developement and testing purposes.

Prerequisites

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.

Installing, Running, and Building

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.

Testing, Formatting, and Linting

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.

Contributing

Acceptable Commit Message Labels

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

Adding new chains

  1. 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"]"
  1. Update ChainIcon.tsx
  2. Update tailwind.config.ts: safelist and color
  3. getChainName
  4. getChainIconStyling
  5. Set usdc address in usdc.ts#getUsdcAddress.
  6. update next.config.js
  7. getBundler.ts
  8. getPaymaster.ts

https://www.ssn-verify.com/generate

supabase gen types typescript --project-id xxxx > src/utils/supabase/database.types.ts