@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
11 lines • 868 B
TypeScript
import type { Currency } from "@ledgerhq/types-cryptoassets";
export declare const sortCurrenciesByIds: <C extends Currency>(currencies: C[], ids: string[]) => C[];
/**
* @deprecated live-countervalues-react context unify a single fetch of this API data, so you may want to just use `useCurrenciesByMarketcap` instead OR get the marketcapIds from that context and directly use sortByCurrenciesById function
*/
export declare const fetchMarketcapIds: () => Promise<string[]>;
/**
* @deprecated live-countervalues-react context unify a single fetch of this API data, so you may want to just use `useCurrenciesByMarketcap` instead OR get the marketcapIds from that context and directly use sortByCurrenciesById function
*/
export declare const currenciesByMarketcap: <C extends Currency>(currencies: C[]) => Promise<C[]>;
//# sourceMappingURL=sortByMarketcap.d.ts.map