UNPKG

@ledgerhq/live-common

Version:
16 lines 845 B
import type { CryptoCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets"; import type { Operation, SyncConfig, TokenAccount } from "@ledgerhq/types-live"; import { AssetInfo, Balance } from "@ledgerhq/coin-framework/api/types"; export interface OperationCommon extends Operation { extra: Record<string, any>; } export declare const getAssetIdFromTokenId: (tokenId: string) => string; export declare function buildSubAccounts({ currency, accountId, allTokenAssetsBalances, syncConfig, operations, getTokenFromAsset, }: { currency: CryptoCurrency; accountId: string; allTokenAssetsBalances: Balance[]; syncConfig: SyncConfig; operations: OperationCommon[]; getTokenFromAsset?: (asset: AssetInfo) => Promise<TokenCurrency | undefined>; }): Promise<TokenAccount[]>; //# sourceMappingURL=buildSubAccounts.d.ts.map