input-output-hk / lace

The Lace Wallet.

Home Page:https://lace.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lace

Quality Gate Status Security Rating Vulnerabilities

Project structure

Apps

Packages

Getting started

Authorize to GitHub Package Registry

Lace depends on @input-output-hk/lace-ui-toolkit package, which is published from lace-ui-toolkit repository to Github Package Registry. In order to install dependencies from GitHub Package Registry, Personal Access Token needs to be provided.

Important

It is required to generate Personal Access Token (PAT) to be able to authorize to Github Package Registry prior to installing projects dependencies. For more details follow this link: Working with the npm registry.

How to authorize to GitHub Package Registry

  1. Go to Profile/Settings/Developer Settings/Personal access tokens/Tokens (classic) to generate a new PAT
  2. Select at least read:packages permissions to be able to download packages from GitHub Package Registry
  3. Create ~/.yarnrc.yml file in your home directory and insert:
npmScopes:
  input-output-hk:
    npmAlwaysAuth: true
    npmAuthToken: YOUR_GITHUB_PAT
    npmRegistryServer: 'https://npm.pkg.github.com'

For more details check GitHub's guide: Authenticating with personal access token

Install dependencies

yarn install

Setup environment variables

cp ./apps/.env.defaults ./apps/.env

Once .env files is created adjust it to your needs, and update LACE_EXTENSION_KEY

Build packages and extension

yarn build

Install Lace extension in Chrome / MS Edge browser

  1. Go to chrome://extensions/ or edge://extensions/ in selected web browser
  2. Enable Developer mode
  3. Click Load unpacked and point out dist folder from apps/browser-extension-wallet which is built in previous step
  4. Extension should be visible in Extensions and ready to use.

Dev commands

yarn [app] [command]

Available [app] options:

Available [command] options:

  • build
  • build-deps - build only dependencies of a given app
  • watch - build and watch
  • watch-deps - build and watch only dependencies of a given app

You can mix them together.

Examples:

Working with UI Toolkit

In this workspace UI Toolkit is used in 4 places:

  • apps/browser-extension-wallet
  • packages/core
  • packages/shared-wallets
  • packages/staking

Based on the specific use case we can link it on:

Linking UI Toolkit on app level, allows you to see all changes in app and packages using it.

Linking UI Toolkit on package level, allows you to develop components in isolation using for example Storybook.

Audit

Lace has been independently audited and manually verified by external auditor, FYEO, so the Lace team can improve code quality and security – giving you greater peace of mind. You can view the full report at lace.io/lace-audit-report

About

The Lace Wallet.

https://lace.io

License:Apache License 2.0


Languages

Language:TypeScript 86.4%Language:Gherkin 7.8%Language:SCSS 4.8%Language:JavaScript 0.9%Language:HTML 0.1%Language:Shell 0.0%Language:Nix 0.0%Language:CSS 0.0%