MCPcopy Index your code
hub / github.com/LedgerHQ/ledger-live

github.com/LedgerHQ/ledger-live @v22.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v22.0.1 ↗ · + Follow
2,700 symbols 8,064 edges 969 files 34 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Extension points exported contracts — how you extend this code

ICrypto (Interface)
(no doc) [2 implementers]
src/families/bitcoin/wallet-btc/crypto/types.ts
Expect (Interface)
(no doc)
src/jest.d.ts
CompleteExchangeInputCommon (Interface)
(no doc)
src/exchange/platform/types.ts
CurrencyBridge (Interface)
(no doc)
src/types/bridge.ts
GenericGlobalCatalogEntry (Interface)
(no doc)
src/platform/providers/GlobalCatalogProvider/types.ts
Global (Interface)
(no doc)
src/api/Manager.ts
Matchers (Interface)
(no doc)
src/__tests__/svg.ts
IStorage (Interface)
(no doc) [2 implementers]
src/families/bitcoin/wallet-btc/storage/types.ts

Core symbols most depended-on inside this repo

log
called by 208
src/families/solana/api/logged.ts
formatCurrencyUnit
called by 180
src/currencies/formatCurrencyUnit.ts
getEnv
called by 171
src/env.ts
createTransaction
called by 83
src/types/bridge.ts
genAccount
called by 71
src/mock/account.ts
getAccountCurrency
called by 60
src/account/helpers.ts
makeLRUCache
called by 58
src/cache.ts
fees
called by 54
src/families/solana/test-dataset.ts

Shape

Function 2,278
Method 232
Class 116
Interface 69
Enum 5

Languages

TypeScript99%
Java1%

Modules by API surface

src/api/Tron.ts30 symbols
src/families/polkadot/api/sidecar.ts29 symbols
tools/public/gif.worker.js24 symbols
src/families/polkadot/api/websocket.ts24 symbols
src/account/serialization.ts24 symbols
src/families/bitcoin/wallet-btc/xpub.ts23 symbols
src/families/polkadot/api/sidecar.types.ts22 symbols
src/families/ethereum/modules/compound.ts22 symbols
src/derivation.ts22 symbols
src/reactNativeSvg.d.ts20 symbols
src/families/polkadot/logic.ts20 symbols
src/families/bitcoin/wallet-btc/wallet.ts20 symbols

For agents

$ claude mcp add ledger-live \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page