@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
16 lines • 1.14 kB
TypeScript
import type { Account, AccountLike } from "@ledgerhq/types-live";
import type { CryptoCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets";
export { accountWithMandatoryTokens, findTokenAccountByCurrency, flattenAccounts, getMainAccount, getAccountCurrency, getAccountSpendableBalance, getFeesCurrency, getFeesUnit, getParentAccount, isAccount, isAccountBalanceUnconfirmed, isTokenAccount, listSubAccounts, shortAddressPreview, } from "@ledgerhq/ledger-wallet-framework/account/index";
export declare const isAccountEmpty: (a: AccountLike) => boolean;
export declare function clearAccount<T extends AccountLike>(account: T): T;
export declare const getVotesCount: (account: AccountLike, parentAccount?: Account | null | undefined) => number;
/**
* Load blacklisted tokens and organize them into sections by parent currency
* @param tokenIds - Array of token IDs to load
* @returns Array of sections with parent currency and tokens
*/
export declare function loadBlacklistedTokenSections(tokenIds: string[]): Promise<Array<{
parentCurrency: CryptoCurrency;
tokens: TokenCurrency[];
}>>;
//# sourceMappingURL=helpers.d.ts.map