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

Mar 19, 2020
4eb2d49 · Mar 19, 2020
Jan 25, 2020
Mar 2, 2020
Jan 7, 2020
Mar 18, 2020
Mar 4, 2020
Jul 5, 2019
Jan 7, 2020
Mar 12, 2020
Feb 19, 2020
Mar 19, 2020
Mar 12, 2020
Jan 13, 2020
Mar 9, 2020
Dec 17, 2019
Feb 26, 2020
Jan 13, 2020
Jan 13, 2020
Aug 19, 2019
Jan 7, 2020
Jan 8, 2018
Mar 6, 2020
Mar 6, 2020
Dec 23, 2019
Mar 19, 2020
Oct 12, 2018
Oct 12, 2018
Mar 18, 2020

Repository files navigation

“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