Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

LedgerHQ/ledger-live-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 19, 2021
c2d8b68 · Nov 19, 2021
Jan 25, 2020
Nov 2, 2021
Nov 18, 2021
Aug 19, 2021
Sep 24, 2021
Sep 1, 2021
Nov 19, 2021
Mar 15, 2021
Nov 4, 2021
Oct 21, 2021
Jul 6, 2021
Sep 21, 2021
Feb 26, 2020
Jul 6, 2021
Jun 25, 2021
May 14, 2020
Jan 7, 2020
Jul 6, 2021
Sep 16, 2021
Oct 21, 2021
Jan 8, 2018
Mar 25, 2021
May 20, 2021
Jun 4, 2020
Oct 28, 2021
Aug 10, 2021
Nov 19, 2021
Aug 10, 2021
Aug 10, 2021
Aug 10, 2021
Nov 19, 2021

Repository files navigation

We are hiring, join us! 👨‍💻👩‍💻

“Ledger Live Common” @ledgerhq/live-common

                ````
           `.--:::::
        `.-:::::::::       ````
       .://///:-..``     `-/+++/-`
     `://///-`           -++++++o/.
    `/+++/:`            -+++++osss+`
   `:++++:`            ./++++-/osss/`
   .+++++`             `-://- .ooooo.
   -+ooo/`                ``  `/oooo-
   .oooo+` .::-.`             `+++++.
   `+oooo:./+++/.             -++++/`
    -ossso+++++:`            -/+++/.
     -ooo+++++:`           .://///.
      ./+++++/`       ``.-://///:`
        `---.`      -:::::///:-.
                    :::::::-.`
                    ....``

Ledger Live Common (@ledgerhq/live-common) is a JavaScript library available via a NPM package.

This library depends on a bunch of ledgerjs packages and put together the core business logic behind Ledger Live Desktop and Ledger Live Mobile.

The stack is pretty standard for a ES6 and FlowType library. The notable dependencies are libraries like RxJS and BigNumber.js. There is also a bit of React and Redux but exposed in agnostic ways (meaning it's not mandatory to use – there will be dedicated entry point for them to offer utilities like React Hooks).

Table of Contents

Developing with Ledger Live Common

  • Developing setup
  • The different test approaches
    • Unit test of live-common logic
    • End-to-end tests of the ledger-live command
    • Bridge dataset tests
    • Providing mocks to implement UI tests