@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
11 lines • 1.01 kB
TypeScript
import { Account, AccountLike } from "@ledgerhq/types-live";
import { WalletState } from "@ledgerhq/live-wallet/store";
import type { Transaction } from "../generated/types";
import { WalletAPIAccount, WalletAPICurrency, WalletAPITransaction, WalletAPISupportedCurrency, GetWalletAPITransactionSignFlowInfos } from "./types";
export declare const getAccountIdFromWalletAccountId: (walletAccountId: string) => string | undefined;
export declare const getWalletApiIdFromAccountId: (id: string) => string;
export declare const setWalletApiIdForAccountId: (accountId: string) => void;
export declare function accountToWalletAPIAccount(walletState: WalletState, account: AccountLike, parentAccount?: Account | null): WalletAPIAccount;
export declare function currencyToWalletAPICurrency(currency: WalletAPISupportedCurrency): WalletAPICurrency;
export declare const getWalletAPITransactionSignFlowInfos: GetWalletAPITransactionSignFlowInfos<WalletAPITransaction, Transaction>;
//# sourceMappingURL=converters.d.ts.map