Ledger's material for crypto currencies, tokens and fiats. Also includes signatures required by Nano devices for these tokens.
DO NOT EDIT because this library is generated.
There are two modes of usage of this library.
- The all-in way: you want to have all the data available (ERC20 token loaded,...). To do this, you simply import
@ledgerhq/cryptoassets
- The custom way: you can import individual data piece from
@ledgerhq/cryptoassets/data/*
. For instance, importing the ERC20 signatures can be done with@ledgerhq/cryptoassets/data/erc20-signatures
sub module.
- abandonSeedAddresses
- getAbandonSeedAddress
- registerCryptoCurrency
- listCryptoCurrencies
- findCryptoCurrency
- findCryptoCurrencyByScheme
- findCryptoCurrencyByTicker
- findCryptoCurrencyById
- findCryptoCurrencyByKeyword
- hasCryptoCurrencyId
- getCryptoCurrencyById
- findExchangeCurrencyConfig
- hasFiatCurrencyTicker
- findFiatCurrencyByTicker
- getFiatCurrencyByTicker
- listFiatCurrencies
- listTokens
- listTokensForCryptoCurrency
- listTokenTypesForCryptoCurrency
- findTokenByTicker
- findTokenById
- hasTokenId
- getTokenById
- findCompoundToken
these are either "dead"/"burn" addresses OR "abandon" seed addresses. These addresses are PUBLIC addresses We use them for tests and also for dry-run estimations DO NOT USE AS RECIPIENT OR SIGN TRANSACTIONS INTO THEM
Returns a valid address for a given currency. These addresses are PUBLIC addresses We use them for tests and also for dry-run estimations DO NOT USE AS RECIPIENT OR SIGN TRANSACTIONS INTO THEM
currencyId
any
Returns string
id
stringcurrency
CryptoCurrency
Returns void
withDevCrypto
any (optional, defaultfalse
)withTerminated
any (optional, defaultfalse
)
Returns Array<CryptoCurrency>
f
any
Returns (CryptoCurrency | null | undefined)
scheme
any
Returns (CryptoCurrency | null | undefined)
ticker
any
Returns (CryptoCurrency | null | undefined)
id
any
Returns (CryptoCurrency | null | undefined)
keyword
anytests
(optional, default["keywords","name","id","ticker","manager"]
)
Returns (CryptoCurrency | null | undefined)
id
any
Returns boolean
id
any
Returns CryptoCurrency
id
string
Returns ({config: string, signature: string} | null | undefined)
ticker
any
Returns boolean
ticker
any
Returns (FiatCurrency | null | undefined)
ticker
any
Returns FiatCurrency
Returns Array<FiatCurrency>
options
Partial<TokensListOptions>?
Returns Array<TokenCurrency>
currency
CryptoCurrencyoptions
Partial<TokensListOptions>?
Returns Array<TokenCurrency>
currency
CryptoCurrency
ticker
string
Returns (TokenCurrency | null | undefined)
id
string
Returns (TokenCurrency | null | undefined)
id
string
Returns boolean
id
string
Returns TokenCurrency
if a given token account is a token that can be used in compound, give the associated compound token (cToken)
token
any
Returns (TokenCurrency | null | undefined)
Import crypto assets data guide:
Regenerate data:
node script/crypto-assets-importer/index.js ~/dev/crypto-assets
node script/crypto-assets-importer/tron/sync-trc10-tokens.js
NB: currencies, trc20 and asa are currently manually maintained.
Update test and snapshots in the monorepo:
https://ledgerhq.atlassian.net/wiki/spaces/WALLETCO/pages/3740205141/CAL+updates