@ledgerhq/live-common 34.35.0-nightly.5 → 34.35.0-nightly.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ import { AccountType } from "../enum/Account";
2
+
3
+ export interface Fiat {
4
+ locale: string;
5
+ currencyTicker: string;
6
+ }
7
+
8
+ export interface BuySell {
9
+ crypto: AccountType;
10
+ fiat: Fiat;
11
+ amount: string;
12
+ }
@@ -1,13 +1,13 @@
1
1
  import { Fee } from "../enum/Fee";
2
- import { Account } from "../enum/Account";
2
+ import { AccountType } from "../enum/Account";
3
3
  import { Nft } from "../enum/Nft";
4
4
 
5
5
  export type TransactionType = Transaction;
6
6
 
7
7
  export class Transaction {
8
8
  constructor(
9
- public accountToDebit: Account,
10
- public accountToCredit: Account,
9
+ public accountToDebit: AccountType,
10
+ public accountToCredit: AccountType,
11
11
  public amount: string,
12
12
  public speed?: Fee,
13
13
  public memoTag?: string,
@@ -16,8 +16,8 @@ export class Transaction {
16
16
 
17
17
  export class NFTTransaction extends Transaction {
18
18
  constructor(
19
- accountToDebit: Account,
20
- accountToCredit: Account,
19
+ accountToDebit: AccountType,
20
+ accountToCredit: AccountType,
21
21
  public nft: Nft,
22
22
  speed?: Fee,
23
23
  memoTag?: string,
@@ -534,7 +534,7 @@ export default function connectAppFactory(
534
534
  const deviceAction = new ConnectAppDeviceAction({
535
535
  input: {
536
536
  application: appNameToDependency(appName),
537
- dependencies: dependencies ? dependencies.map(name => appNameToDependency(name)) : [],
537
+ dependencies: dependencies ? dependencies.map(name => ({ name })) : [],
538
538
  requireLatestFirmware,
539
539
  allowMissingApplication: allowPartialDependencies,
540
540
  unlockTimeout: 0, // Expect to fail immediately when device is locked