@ledgerhq/live-common 25.0.0-next.0 → 25.0.0-next.1

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.
Files changed (112) hide show
  1. package/lib/bot/specs.d.ts +1 -0
  2. package/lib/bot/specs.d.ts.map +1 -1
  3. package/lib/bot/specs.js +6 -1
  4. package/lib/bot/specs.js.map +1 -1
  5. package/lib/env.d.ts +10 -5
  6. package/lib/env.d.ts.map +1 -1
  7. package/lib/env.js +5 -0
  8. package/lib/env.js.map +1 -1
  9. package/lib/env.react.d.ts +1 -1
  10. package/lib/env.react.d.ts.map +1 -1
  11. package/lib/errors.d.ts +1 -2
  12. package/lib/errors.d.ts.map +1 -1
  13. package/lib/errors.js +3 -4
  14. package/lib/errors.js.map +1 -1
  15. package/lib/families/solana/api/chain/instruction/token/types.d.ts +3 -3
  16. package/lib/families/stellar/api/horizon.d.ts +29 -7
  17. package/lib/families/stellar/api/horizon.d.ts.map +1 -1
  18. package/lib/families/stellar/api/horizon.js +114 -58
  19. package/lib/families/stellar/api/horizon.js.map +1 -1
  20. package/lib/families/stellar/api/index.d.ts +1 -1
  21. package/lib/families/stellar/api/index.d.ts.map +1 -1
  22. package/lib/families/stellar/api/index.js +5 -1
  23. package/lib/families/stellar/api/index.js.map +1 -1
  24. package/lib/families/stellar/bridge/mock.d.ts.map +1 -1
  25. package/lib/families/stellar/bridge/mock.js +4 -1
  26. package/lib/families/stellar/bridge/mock.js.map +1 -1
  27. package/lib/families/stellar/bridge.integration.test.js +12 -4
  28. package/lib/families/stellar/bridge.integration.test.js.map +1 -1
  29. package/lib/families/stellar/cli-transaction.d.ts +3 -1
  30. package/lib/families/stellar/cli-transaction.d.ts.map +1 -1
  31. package/lib/families/stellar/cli-transaction.js +48 -2
  32. package/lib/families/stellar/cli-transaction.js.map +1 -1
  33. package/lib/families/stellar/deviceTransactionConfig.d.ts +7 -1
  34. package/lib/families/stellar/deviceTransactionConfig.d.ts.map +1 -1
  35. package/lib/families/stellar/deviceTransactionConfig.js +12 -1
  36. package/lib/families/stellar/deviceTransactionConfig.js.map +1 -1
  37. package/lib/families/stellar/errors.d.ts +12 -0
  38. package/lib/families/stellar/errors.d.ts.map +1 -0
  39. package/lib/families/stellar/errors.js +16 -0
  40. package/lib/families/stellar/errors.js.map +1 -0
  41. package/lib/families/stellar/js-buildTransaction.d.ts.map +1 -1
  42. package/lib/families/stellar/js-buildTransaction.js +34 -16
  43. package/lib/families/stellar/js-buildTransaction.js.map +1 -1
  44. package/lib/families/stellar/js-createTransaction.d.ts.map +1 -1
  45. package/lib/families/stellar/js-createTransaction.js +4 -1
  46. package/lib/families/stellar/js-createTransaction.js.map +1 -1
  47. package/lib/families/stellar/js-estimateMaxSpendable.js +2 -1
  48. package/lib/families/stellar/js-estimateMaxSpendable.js.map +1 -1
  49. package/lib/families/stellar/js-getTransactionStatus.d.ts.map +1 -1
  50. package/lib/families/stellar/js-getTransactionStatus.js +127 -57
  51. package/lib/families/stellar/js-getTransactionStatus.js.map +1 -1
  52. package/lib/families/stellar/js-prepareTransaction.d.ts.map +1 -1
  53. package/lib/families/stellar/js-prepareTransaction.js +25 -7
  54. package/lib/families/stellar/js-prepareTransaction.js.map +1 -1
  55. package/lib/families/stellar/js-signOperation.d.ts.map +1 -1
  56. package/lib/families/stellar/js-signOperation.js +33 -6
  57. package/lib/families/stellar/js-signOperation.js.map +1 -1
  58. package/lib/families/stellar/js-synchronization.d.ts +1 -1
  59. package/lib/families/stellar/js-synchronization.d.ts.map +1 -1
  60. package/lib/families/stellar/js-synchronization.js +42 -16
  61. package/lib/families/stellar/js-synchronization.js.map +1 -1
  62. package/lib/families/stellar/logic.d.ts +21 -14
  63. package/lib/families/stellar/logic.d.ts.map +1 -1
  64. package/lib/families/stellar/logic.js +158 -57
  65. package/lib/families/stellar/logic.js.map +1 -1
  66. package/lib/families/stellar/specs.d.ts.map +1 -1
  67. package/lib/families/stellar/specs.js +182 -7
  68. package/lib/families/stellar/specs.js.map +1 -1
  69. package/lib/families/stellar/speculos-deviceActions.d.ts.map +1 -1
  70. package/lib/families/stellar/speculos-deviceActions.js +60 -28
  71. package/lib/families/stellar/speculos-deviceActions.js.map +1 -1
  72. package/lib/families/stellar/tokens.d.ts +11 -0
  73. package/lib/families/stellar/tokens.d.ts.map +1 -0
  74. package/lib/families/stellar/tokens.js +82 -0
  75. package/lib/families/stellar/tokens.js.map +1 -0
  76. package/lib/families/stellar/transaction.d.ts +2 -2
  77. package/lib/families/stellar/transaction.d.ts.map +1 -1
  78. package/lib/families/stellar/transaction.js +32 -6
  79. package/lib/families/stellar/transaction.js.map +1 -1
  80. package/lib/families/stellar/types.d.ts +45 -0
  81. package/lib/families/stellar/types.d.ts.map +1 -1
  82. package/lib/families/stellar/types.js +7 -1
  83. package/lib/families/stellar/types.js.map +1 -1
  84. package/lib/generated/cli-transaction.d.ts +1 -0
  85. package/lib/generated/cli-transaction.d.ts.map +1 -1
  86. package/lib/generated/transaction.d.ts +1 -1
  87. package/package.json +3 -3
  88. package/src/bot/specs.ts +7 -1
  89. package/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +1 -0
  90. package/src/env.ts +5 -0
  91. package/src/errors.ts +1 -6
  92. package/src/families/stellar/__snapshots__/bridge.integration.test.ts.snap +765 -339
  93. package/src/families/stellar/api/horizon.ts +115 -33
  94. package/src/families/stellar/api/index.ts +4 -0
  95. package/src/families/stellar/bridge/mock.ts +3 -0
  96. package/src/families/stellar/bridge.integration.test.ts +10 -2
  97. package/src/families/stellar/cli-transaction.ts +75 -2
  98. package/src/families/stellar/deviceTransactionConfig.ts +22 -0
  99. package/src/families/stellar/errors.ts +34 -0
  100. package/src/families/stellar/js-buildTransaction.ts +56 -16
  101. package/src/families/stellar/js-createTransaction.ts +3 -0
  102. package/src/families/stellar/js-estimateMaxSpendable.ts +1 -1
  103. package/src/families/stellar/js-getTransactionStatus.ts +152 -60
  104. package/src/families/stellar/js-prepareTransaction.ts +4 -3
  105. package/src/families/stellar/js-signOperation.ts +37 -6
  106. package/src/families/stellar/js-synchronization.ts +53 -11
  107. package/src/families/stellar/logic.ts +198 -62
  108. package/src/families/stellar/specs.ts +227 -8
  109. package/src/families/stellar/speculos-deviceActions.ts +66 -22
  110. package/src/families/stellar/tokens.ts +118 -0
  111. package/src/families/stellar/transaction.ts +31 -3
  112. package/src/families/stellar/types.ts +52 -0
@@ -1,16 +1,27 @@
1
+ import { ServerApi } from "stellar-sdk";
1
2
  import type { BigNumber } from "bignumber.js";
2
3
  import type { TransactionCommon, TransactionCommonRaw } from "../../types/transaction";
3
4
  export declare type NetworkInfo = {
4
5
  family: "stellar";
5
6
  fees: BigNumber;
7
+ baseFee: BigNumber;
6
8
  baseReserve: BigNumber;
9
+ networkCongestionLevel?: NetworkCongestionLevel;
7
10
  };
8
11
  export declare type NetworkInfoRaw = {
9
12
  family: "stellar";
10
13
  fees: string;
14
+ baseFee: string;
11
15
  baseReserve: string;
16
+ networkCongestionLevel?: NetworkCongestionLevel;
12
17
  };
18
+ export declare enum NetworkCongestionLevel {
19
+ LOW = "LOW",
20
+ MEDIUM = "MEDIUM",
21
+ HIGH = "HIGH"
22
+ }
13
23
  export declare const StellarMemoType: string[];
24
+ export declare type StellarTransactionMode = "send" | "changeTrust";
14
25
  export declare type Transaction = TransactionCommon & {
15
26
  family: "stellar";
16
27
  networkInfo: NetworkInfo | null | undefined;
@@ -18,6 +29,9 @@ export declare type Transaction = TransactionCommon & {
18
29
  baseReserve: BigNumber | null | undefined;
19
30
  memoType: string | null | undefined;
20
31
  memoValue: string | null | undefined;
32
+ mode: StellarTransactionMode;
33
+ assetCode: string | undefined;
34
+ assetIssuer: string | undefined;
21
35
  };
22
36
  export declare type TransactionRaw = TransactionCommonRaw & {
23
37
  family: "stellar";
@@ -26,5 +40,36 @@ export declare type TransactionRaw = TransactionCommonRaw & {
26
40
  baseReserve: string | null | undefined;
27
41
  memoType: string | null | undefined;
28
42
  memoValue: string | null | undefined;
43
+ mode: StellarTransactionMode;
44
+ assetCode: string | undefined;
45
+ assetIssuer: string | undefined;
46
+ };
47
+ export declare type BalanceAsset = {
48
+ balance: string;
49
+ limit: string;
50
+ buying_liabilities: string;
51
+ selling_liabilities: string;
52
+ last_modified_ledger: number;
53
+ is_authorized: boolean;
54
+ is_authorized_to_maintain_liabilities: boolean;
55
+ asset_type: string;
56
+ asset_code: string;
57
+ asset_issuer: string;
58
+ liquidity_pool_id?: string;
59
+ };
60
+ export declare type RawOperation = ServerApi.OperationRecord & {
61
+ asset_code?: string;
62
+ asset_issuer?: string;
63
+ from?: string;
64
+ to?: string;
65
+ funder?: string;
66
+ trustor?: string;
67
+ account?: string;
68
+ transaction_successful: boolean;
69
+ };
70
+ export declare type Signer = {
71
+ weight: number;
72
+ key: string;
73
+ type: string;
29
74
  };
30
75
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/families/stellar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC,oBAAY,WAAW,GAAG;IACxB,MAAM,EAAE,SAAS,CAAC;IAClB,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,MAAM,EAAE,SAAS,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,eAAO,MAAM,eAAe,UAM3B,CAAC;AAEF,oBAAY,WAAW,GAAG,iBAAiB,GAAG;IAC5C,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,WAAW,EAA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CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,qCAAqC,EAAE,OAAO,CAAC;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,oBAAY,YAAY,GAAG,SAAS,CAAC,eAAe,GAAG;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,oBAAY,MAAM,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
- exports.StellarMemoType = void 0;
3
+ exports.StellarMemoType = exports.NetworkCongestionLevel = void 0;
4
+ var NetworkCongestionLevel;
5
+ (function (NetworkCongestionLevel) {
6
+ NetworkCongestionLevel["LOW"] = "LOW";
7
+ NetworkCongestionLevel["MEDIUM"] = "MEDIUM";
8
+ NetworkCongestionLevel["HIGH"] = "HIGH";
9
+ })(NetworkCongestionLevel = exports.NetworkCongestionLevel || (exports.NetworkCongestionLevel = {}));
4
10
  exports.StellarMemoType = [
5
11
  "NO_MEMO",
6
12
  "MEMO_TEXT",
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/families/stellar/types.ts"],"names":[],"mappings":";;;AAiBa,QAAA,eAAe,GAAG;IAC7B,SAAS;IACT,WAAW;IACX,SAAS;IACT,WAAW;IACX,aAAa;CACd,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/families/stellar/types.ts"],"names":[],"mappings":";;;AAuBA,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,qCAAW,CAAA;IACX,2CAAiB,CAAA;IACjB,uCAAa,CAAA;AACf,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC;AAEY,QAAA,eAAe,GAAG;IAC7B,SAAS;IACT,WAAW;IACX,SAAS;IACT,WAAW;IACX,aAAa;CACd,CAAC"}
@@ -235,6 +235,7 @@ declare const _default: {
235
235
  type: StringConstructor;
236
236
  desc: string;
237
237
  }[];
238
+ inferAccounts: (account: import("../types").Account, opts: Record<string, any>) => import("../types").AccountLikeArray;
238
239
  inferTransactions: (transactions: {
239
240
  account: import("../types").AccountLike;
240
241
  transaction: import("./types").Transaction;
@@ -1 +1 @@
1
- {"version":3,"file":"cli-transaction.d.ts","sourceRoot":"","sources":["../../src/generated/cli-transaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,wBAiBE"}
1
+ {"version":3,"file":"cli-transaction.d.ts","sourceRoot":"","sources":["../../src/generated/cli-transaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,wBAiBE"}
@@ -70,7 +70,7 @@ declare const _default: {
70
70
  toTransactionRaw: (t: import("../families/solana/types").Transaction) => import("../families/solana/types").TransactionRaw;
71
71
  };
72
72
  stellar: {
73
- formatTransaction: ({ amount, recipient, fees, memoValue, useAllAmount }: import("../families/stellar/types").Transaction, account: import("../types").Account) => string;
73
+ formatTransaction: ({ amount, recipient, fees, memoValue, useAllAmount, subAccountId, }: import("../families/stellar/types").Transaction, mainAccount: import("../types").Account) => string;
74
74
  fromTransactionRaw: (tr: import("../families/stellar/types").TransactionRaw) => import("../families/stellar/types").Transaction;
75
75
  toTransactionRaw: (t: import("../families/stellar/types").Transaction) => import("../families/stellar/types").TransactionRaw;
76
76
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "name": "@ledgerhq/live-common",
6
6
  "description": "Common ground for the Ledger Live apps",
7
- "version": "25.0.0-next.0",
7
+ "version": "25.0.0-next.1",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/LedgerHQ/ledger-live.git"
@@ -108,13 +108,13 @@
108
108
  "@ethereumjs/tx": "^3.5.0",
109
109
  "@hashgraph/sdk": "^2.10.1",
110
110
  "@ledgerhq/compressjs": "github:LedgerHQ/compressjs#d9e8e4d994923e0ea76a32b97289bcccfe71b82e",
111
- "@ledgerhq/cryptoassets": "^6.30.0-next.0",
111
+ "@ledgerhq/cryptoassets": "^6.30.0-next.1",
112
112
  "@ledgerhq/devices": "^7.0.0-next.0",
113
113
  "@ledgerhq/errors": "^6.10.1-next.0",
114
114
  "@ledgerhq/hw-app-algorand": "^6.27.2-next.0",
115
115
  "@ledgerhq/hw-app-btc": "^8.0.0-next.0",
116
116
  "@ledgerhq/hw-app-cosmos": "^6.27.2-next.0",
117
- "@ledgerhq/hw-app-eth": "^6.29.2-next.0",
117
+ "@ledgerhq/hw-app-eth": "^6.29.2-next.1",
118
118
  "@ledgerhq/hw-app-polkadot": "^6.27.2-next.0",
119
119
  "@ledgerhq/hw-app-solana": "^6.27.2-next.0",
120
120
  "@ledgerhq/hw-app-str": "^6.27.2-next.0",
package/src/bot/specs.ts CHANGED
@@ -53,6 +53,7 @@ type Step<T extends Transaction> = {
53
53
  button?: string;
54
54
  // action to apply in term of button press
55
55
  final?: boolean; // tells if there is no step after that and action should terminate all further action (hack to do deboncing)
56
+ maxY?: number; // check if text is bellow a certains Y coordinate on the screen, it happened that two text have the same content but different positions
56
57
  };
57
58
  type FlowDesc<T extends Transaction> = {
58
59
  steps: Array<Step<T>>;
@@ -119,7 +120,12 @@ export function deviceActionFlow<T extends Transaction>(
119
120
 
120
121
  if (!finalState) {
121
122
  let possibleKnownStep: Step<T> | null | undefined =
122
- description.steps.find((s) => event.text.startsWith(s.title));
123
+ description.steps.find((s) => {
124
+ if (s.maxY) {
125
+ return event.text.startsWith(s.title) && event.y < s.maxY;
126
+ }
127
+ return event.text.startsWith(s.title);
128
+ });
123
129
 
124
130
  // if there is a fallback provided, we will run it to try to detect another possible known step
125
131
  if (!possibleKnownStep && description.fallback) {
@@ -6428,5 +6428,6 @@ Array [
6428
6428
  "algorand/asa/137594422",
6429
6429
  "elrond/esdt/555344432d633736663166",
6430
6430
  "elrond/esdt/524944452d376431386539",
6431
+ "stellar/asset/USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
6431
6432
  ]
6432
6433
  `;
package/src/env.ts CHANGED
@@ -105,6 +105,11 @@ const envDefinitions = {
105
105
  def: 200,
106
106
  desc: "Limit of operation that Horizon will fetch per page",
107
107
  },
108
+ API_STELLAR_HORIZON_STATIC_FEE: {
109
+ def: false,
110
+ parser: boolParser,
111
+ desc: "Static fee for Stellar account",
112
+ },
108
113
  API_TEZOS_BAKER: {
109
114
  parser: stringParser,
110
115
  def: "https://tezos-bakers.api.live.ledger.com",
package/src/errors.ts CHANGED
@@ -60,12 +60,6 @@ export const TronTransactionExpired = createCustomErrorClass(
60
60
  export const TronNotEnoughEnergy = createCustomErrorClass(
61
61
  "TronNotEnoughEnergy"
62
62
  );
63
- export const StellarMemoRecommended = createCustomErrorClass(
64
- "StellarMemoRecommended"
65
- );
66
- export const StellarWrongMemoFormat = createCustomErrorClass(
67
- "StellarWrongMemoFormat"
68
- );
69
63
  export const AccountAwaitingSendPendingOperations = createCustomErrorClass(
70
64
  "AccountAwaitingSendPendingOperations"
71
65
  );
@@ -213,5 +207,6 @@ export const UnsupportedDerivation = createCustomErrorClass(
213
207
  );
214
208
 
215
209
  export * from "./families/polkadot/errors";
210
+ export * from "./families/stellar/errors";
216
211
  export * from "./families/solana/errors";
217
212
  export * from "./families/cardano/errors";