UNPKG

@ledgerhq/coin-tron

Version:
20 lines 889 B
import type { AccountLike, Account } from "@ledgerhq/types-live"; import type { CommonDeviceTransactionField } from "@ledgerhq/coin-framework/transaction/common"; import type { Transaction, TransactionStatus } from "../types"; export type ExtraDeviceTransactionField = { type: "tron.resource"; label: string; value: string; } | { type: "tron.votes"; label: string; }; type DeviceTransactionField = CommonDeviceTransactionField | ExtraDeviceTransactionField; declare function getDeviceTransactionConfig({ transaction: { votes, resource, mode, recipient }, account, parentAccount, status: { amount }, }: { account: AccountLike; parentAccount: Account | null | undefined; transaction: Transaction; status: TransactionStatus; }): Array<DeviceTransactionField>; export default getDeviceTransactionConfig; //# sourceMappingURL=deviceTransactionConfig.d.ts.map