@ledgerhq/live-common 21.14.1 → 21.15.0

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 (106) hide show
  1. package/lib/account/groupOperations.js +1 -1
  2. package/lib/account/groupOperations.js.map +1 -1
  3. package/lib/account/pending.d.ts +1 -0
  4. package/lib/account/pending.d.ts.map +1 -1
  5. package/lib/account/serialization.d.ts +6 -4
  6. package/lib/account/serialization.d.ts.map +1 -1
  7. package/lib/account/serialization.js +47 -9
  8. package/lib/account/serialization.js.map +1 -1
  9. package/lib/api/Ethereum.d.ts +22 -1
  10. package/lib/api/Ethereum.d.ts.map +1 -1
  11. package/lib/api/Ethereum.js +21 -1
  12. package/lib/api/Ethereum.js.map +1 -1
  13. package/lib/bridge/jsHelpers.d.ts +2 -1
  14. package/lib/bridge/jsHelpers.d.ts.map +1 -1
  15. package/lib/bridge/jsHelpers.js +27 -1
  16. package/lib/bridge/jsHelpers.js.map +1 -1
  17. package/lib/csvExport.d.ts.map +1 -1
  18. package/lib/csvExport.js +3 -1
  19. package/lib/csvExport.js.map +1 -1
  20. package/lib/env.d.ts +15 -5
  21. package/lib/env.d.ts.map +1 -1
  22. package/lib/env.js +11 -0
  23. package/lib/env.js.map +1 -1
  24. package/lib/env.react.d.ts +1 -1
  25. package/lib/env.react.d.ts.map +1 -1
  26. package/lib/families/bitcoin/test-dataset.js +2 -2
  27. package/lib/families/bitcoin/test-dataset.js.map +1 -1
  28. package/lib/families/ethereum/signOperation.d.ts.map +1 -1
  29. package/lib/families/ethereum/signOperation.js +7 -0
  30. package/lib/families/ethereum/signOperation.js.map +1 -1
  31. package/lib/families/ethereum/synchronisation.d.ts.map +1 -1
  32. package/lib/families/ethereum/synchronisation.js +175 -15
  33. package/lib/families/ethereum/synchronisation.js.map +1 -1
  34. package/lib/families/ethereum/versions.d.ts +2 -0
  35. package/lib/families/ethereum/versions.d.ts.map +1 -0
  36. package/lib/families/ethereum/versions.js +5 -0
  37. package/lib/families/ethereum/versions.js.map +1 -0
  38. package/lib/nft/NftMetadataProvider/index.d.ts +10 -0
  39. package/lib/nft/NftMetadataProvider/index.d.ts.map +1 -0
  40. package/lib/nft/NftMetadataProvider/index.js +244 -0
  41. package/lib/nft/NftMetadataProvider/index.js.map +1 -0
  42. package/lib/nft/NftMetadataProvider/logic.d.ts +3 -0
  43. package/lib/nft/NftMetadataProvider/logic.d.ts.map +1 -0
  44. package/lib/nft/NftMetadataProvider/logic.js +22 -0
  45. package/lib/nft/NftMetadataProvider/logic.js.map +1 -0
  46. package/lib/nft/NftMetadataProvider/types.d.ts +44 -0
  47. package/lib/nft/NftMetadataProvider/types.d.ts.map +1 -0
  48. package/lib/nft/NftMetadataProvider/types.js +3 -0
  49. package/lib/nft/NftMetadataProvider/types.js.map +1 -0
  50. package/lib/nft/helpers.d.ts +10 -0
  51. package/lib/nft/helpers.d.ts.map +1 -0
  52. package/lib/nft/helpers.js +85 -0
  53. package/lib/nft/helpers.js.map +1 -0
  54. package/lib/nft/index.d.ts +4 -0
  55. package/lib/nft/index.d.ts.map +1 -0
  56. package/lib/nft/index.js +16 -0
  57. package/lib/nft/index.js.map +1 -0
  58. package/lib/nft/nftId.d.ts +3 -0
  59. package/lib/nft/nftId.d.ts.map +1 -0
  60. package/lib/nft/nftId.js +33 -0
  61. package/lib/nft/nftId.js.map +1 -0
  62. package/lib/operation.d.ts +1 -1
  63. package/lib/operation.d.ts.map +1 -1
  64. package/lib/operation.js +19 -5
  65. package/lib/operation.js.map +1 -1
  66. package/lib/reconciliation.d.ts.map +1 -1
  67. package/lib/reconciliation.js +6 -0
  68. package/lib/reconciliation.js.map +1 -1
  69. package/lib/types/account.d.ts +3 -0
  70. package/lib/types/account.d.ts.map +1 -1
  71. package/lib/types/index.d.ts +1 -0
  72. package/lib/types/index.d.ts.map +1 -1
  73. package/lib/types/index.js +1 -0
  74. package/lib/types/index.js.map +1 -1
  75. package/lib/types/nft.d.ts +29 -0
  76. package/lib/types/nft.d.ts.map +1 -0
  77. package/lib/types/nft.js +3 -0
  78. package/lib/types/nft.js.map +1 -0
  79. package/lib/types/operation.d.ts +12 -1
  80. package/lib/types/operation.d.ts.map +1 -1
  81. package/package.json +5 -5
  82. package/src/__tests__/__snapshots__/all.libcore.ts.snap +59615 -52100
  83. package/src/account/groupOperations.ts +2 -2
  84. package/src/account/serialization.ts +52 -0
  85. package/src/api/Ethereum.ts +40 -2
  86. package/src/bridge/jsHelpers.ts +35 -0
  87. package/src/csvExport.ts +3 -2
  88. package/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +1351 -0
  89. package/src/env.ts +11 -0
  90. package/src/families/bitcoin/test-dataset.ts +2 -2
  91. package/src/families/ethereum/modules/__snapshots__/compound.resilience.test.ts.snap +2876 -0
  92. package/src/families/ethereum/signOperation.ts +8 -0
  93. package/src/families/ethereum/synchronisation.ts +185 -6
  94. package/src/families/ethereum/versions.ts +1 -0
  95. package/src/nft/NftMetadataProvider/index.tsx +205 -0
  96. package/src/nft/NftMetadataProvider/logic.ts +20 -0
  97. package/src/nft/NftMetadataProvider/types.ts +60 -0
  98. package/src/nft/helpers.ts +78 -0
  99. package/src/nft/index.ts +3 -0
  100. package/src/nft/nftId.ts +17 -0
  101. package/src/operation.ts +22 -3
  102. package/src/reconciliation.ts +7 -0
  103. package/src/types/account.ts +4 -0
  104. package/src/types/index.ts +1 -0
  105. package/src/types/nft.ts +38 -0
  106. package/src/types/operation.ts +23 -1
package/src/env.ts CHANGED
@@ -376,6 +376,17 @@ const envDefinitions = {
376
376
  parser: stringParser,
377
377
  desc: "mock the server response for the exchange KYC check, options are 'open', 'pending', 'closed' or 'approved'.",
378
378
  },
379
+ NFT: {
380
+ def: false,
381
+ parser: boolParser,
382
+ desc: "synchronizing nfts",
383
+ },
384
+ NFT_ETH_METADATA_SERVICE: {
385
+ // FIXME LL-8001
386
+ def: "https://nft.staging.aws.ledger.fr/v1/ethereum/1/contracts/tokens/infos",
387
+ parser: stringParser,
388
+ desc: "service uri used to get the metadata of an nft",
389
+ },
379
390
  OPERATION_ADDRESSES_LIMIT: {
380
391
  def: 100,
381
392
  parser: intParser,
@@ -1,7 +1,7 @@
1
1
  import type { DatasetTest } from "../../types";
2
2
  import type { Transaction } from "./types";
3
3
  import bitcoin_cash from "./datasets/bitcoin_cash";
4
- import bitcoin_gold from "./datasets/bitcoin_gold";
4
+ // import bitcoin_gold from "./datasets/bitcoin_gold";
5
5
  import bitcoin from "./datasets/bitcoin";
6
6
  import dash from "./datasets/dash";
7
7
  // import decred from "./datasets/decred";
@@ -22,7 +22,7 @@ const dataset: DatasetTest<Transaction> = {
22
22
  currencies: {
23
23
  bitcoin,
24
24
  bitcoin_cash,
25
- bitcoin_gold,
25
+ // bitcoin_gold,
26
26
  dash,
27
27
  // decred, // BACK-2443
28
28
  digibyte,