@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
12 lines • 761 B
TypeScript
import { Account, AccountLike } from "@ledgerhq/types-live";
import type { Transaction } from "../generated/types";
import { PlatformAccount, PlatformCurrency, PlatformSupportedCurrency, PlatformTransaction } from "./types";
import { WalletState } from "@ledgerhq/live-wallet/store";
export declare function accountToPlatformAccount(walletState: WalletState, account: AccountLike, parentAccount?: Account): PlatformAccount;
export declare function currencyToPlatformCurrency(currency: PlatformSupportedCurrency): PlatformCurrency;
export declare const getPlatformTransactionSignFlowInfos: (platformTx: PlatformTransaction) => {
canEditFees: boolean;
hasFeesProvided: boolean;
liveTx: Partial<Transaction>;
};
//# sourceMappingURL=converters.d.ts.map