You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Gaëtan Renaudeau c30851120d
Update index.js
1 hour ago
.circleci.disabled run on push master too. disable circleci 4 months ago
.github/workflows bitcoin deviceAction 4 hours ago
cli update flow 4 hours ago
docs Update bot.md 5 days ago
flow major 2020 evolution models 4 months ago
flow-typed/npm update flow-typed 11 months ago
mobile-test-app cli dep 2 days ago
scripts introduce ledger-live bot 1 week ago
src Update index.js 1 hour ago
tools update flow 4 hours ago
.eslintignore LL-2326 cleanup after partners seciton removed 1 month ago
.eslintrc.js Rework BridgeSync 2 months ago
.flowconfig add useCosmosFormattedDelegations 2 weeks ago
.gitattributes update ci to run test on all platforms (#510) 3 months ago
.gitignore add a way to filter on one or more coin families for the bot 1 week ago
.nvmrc put all tests together 4 months ago
.prettierignore update speculos dep 2 weeks ago
.travis.yml major 2020 evolution models 4 months ago
LICENSE Initial commit 2 years ago
README.md Update README.md 2 months ago
appsVersions.txt update appsVersions.txt 2 weeks ago
babel.config.js es target 5 months ago
package.json update flow 4 hours ago
react.js Re-work the account types (seedIdentifier, derivationMode) (#84) 1 year ago
reactNative.js Re-work the account types (seedIdentifier, derivationMode) (#84) 1 year ago
yarn.lock update flow 4 hours ago

README.md

“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