@ledgerhq/live-common 34.47.0-nightly.9 → 34.48.0-nightly.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 (102) hide show
  1. package/lib/e2e/enum/DeviceLabels.d.ts +6 -5
  2. package/lib/e2e/enum/DeviceLabels.d.ts.map +1 -1
  3. package/lib/e2e/enum/DeviceLabels.js +6 -5
  4. package/lib/e2e/enum/DeviceLabels.js.map +1 -1
  5. package/lib/e2e/speculos.d.ts +1 -1
  6. package/lib/e2e/speculos.d.ts.map +1 -1
  7. package/lib/e2e/speculos.js +13 -15
  8. package/lib/e2e/speculos.js.map +1 -1
  9. package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
  10. package/lib/modularDrawer/hooks/modules/useLeftApyModule.js +4 -20
  11. package/lib/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
  12. package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts +3 -0
  13. package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts.map +1 -0
  14. package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.js +23 -0
  15. package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.js.map +1 -0
  16. package/lib/modularDrawer/hooks/useLeftAccountsApy.d.ts +2 -4
  17. package/lib/modularDrawer/hooks/useLeftAccountsApy.d.ts.map +1 -1
  18. package/lib/modularDrawer/hooks/useLeftAccountsApy.js +23 -12
  19. package/lib/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -1
  20. package/lib/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -1
  21. package/lib/modularDrawer/modules/createAssetConfiguration.js +8 -8
  22. package/lib/modularDrawer/modules/createAssetConfiguration.js.map +1 -1
  23. package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts +3 -3
  24. package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
  25. package/lib/modularDrawer/modules/createNetworkConfiguration.js +12 -14
  26. package/lib/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
  27. package/lib/modularDrawer/utils/__tests__/getInterestRateForAsset.test.d.ts +2 -0
  28. package/lib/modularDrawer/utils/__tests__/getInterestRateForAsset.test.d.ts.map +1 -0
  29. package/lib/modularDrawer/utils/__tests__/getInterestRateForAsset.test.js +36 -0
  30. package/lib/modularDrawer/utils/__tests__/getInterestRateForAsset.test.js.map +1 -0
  31. package/lib/modularDrawer/utils/getInterestRateForAsset.d.ts +13 -0
  32. package/lib/modularDrawer/utils/getInterestRateForAsset.d.ts.map +1 -0
  33. package/lib/modularDrawer/utils/getInterestRateForAsset.js +20 -0
  34. package/lib/modularDrawer/utils/getInterestRateForAsset.js.map +1 -0
  35. package/lib/modularDrawer/utils/type.d.ts +4 -3
  36. package/lib/modularDrawer/utils/type.d.ts.map +1 -1
  37. package/lib/wallet-api/ModularDrawer/types.d.ts +6 -6
  38. package/lib/wallet-api/ModularDrawer/types.d.ts.map +1 -1
  39. package/lib/wallet-api/ModularDrawer/types.js +1 -1
  40. package/lib/wallet-api/ModularDrawer/types.js.map +1 -1
  41. package/lib-es/e2e/enum/DeviceLabels.d.ts +6 -5
  42. package/lib-es/e2e/enum/DeviceLabels.d.ts.map +1 -1
  43. package/lib-es/e2e/enum/DeviceLabels.js +6 -5
  44. package/lib-es/e2e/enum/DeviceLabels.js.map +1 -1
  45. package/lib-es/e2e/speculos.d.ts +1 -1
  46. package/lib-es/e2e/speculos.d.ts.map +1 -1
  47. package/lib-es/e2e/speculos.js +13 -15
  48. package/lib-es/e2e/speculos.js.map +1 -1
  49. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
  50. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js +4 -20
  51. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
  52. package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts +3 -0
  53. package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts.map +1 -0
  54. package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.js +19 -0
  55. package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.js.map +1 -0
  56. package/lib-es/modularDrawer/hooks/useLeftAccountsApy.d.ts +2 -4
  57. package/lib-es/modularDrawer/hooks/useLeftAccountsApy.d.ts.map +1 -1
  58. package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js +21 -10
  59. package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -1
  60. package/lib-es/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -1
  61. package/lib-es/modularDrawer/modules/createAssetConfiguration.js +8 -8
  62. package/lib-es/modularDrawer/modules/createAssetConfiguration.js.map +1 -1
  63. package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts +3 -3
  64. package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
  65. package/lib-es/modularDrawer/modules/createNetworkConfiguration.js +13 -15
  66. package/lib-es/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
  67. package/lib-es/modularDrawer/utils/__tests__/getInterestRateForAsset.test.d.ts +2 -0
  68. package/lib-es/modularDrawer/utils/__tests__/getInterestRateForAsset.test.d.ts.map +1 -0
  69. package/lib-es/modularDrawer/utils/__tests__/getInterestRateForAsset.test.js +34 -0
  70. package/lib-es/modularDrawer/utils/__tests__/getInterestRateForAsset.test.js.map +1 -0
  71. package/lib-es/modularDrawer/utils/getInterestRateForAsset.d.ts +13 -0
  72. package/lib-es/modularDrawer/utils/getInterestRateForAsset.d.ts.map +1 -0
  73. package/lib-es/modularDrawer/utils/getInterestRateForAsset.js +16 -0
  74. package/lib-es/modularDrawer/utils/getInterestRateForAsset.js.map +1 -0
  75. package/lib-es/modularDrawer/utils/type.d.ts +4 -3
  76. package/lib-es/modularDrawer/utils/type.d.ts.map +1 -1
  77. package/lib-es/wallet-api/ModularDrawer/types.d.ts +6 -6
  78. package/lib-es/wallet-api/ModularDrawer/types.d.ts.map +1 -1
  79. package/lib-es/wallet-api/ModularDrawer/types.js +1 -1
  80. package/lib-es/wallet-api/ModularDrawer/types.js.map +1 -1
  81. package/package.json +71 -71
  82. package/src/e2e/enum/DeviceLabels.ts +6 -5
  83. package/src/e2e/speculos.ts +13 -16
  84. package/src/families/hedera/__snapshots__/bridge.integration.test.ts.snap +27 -7
  85. package/src/modularDrawer/hooks/modules/useLeftApyModule.tsx +7 -22
  86. package/src/modularDrawer/hooks/useInterestRatesByCurrencies.ts +23 -0
  87. package/src/modularDrawer/hooks/useLeftAccountsApy.tsx +32 -16
  88. package/src/modularDrawer/modules/createAssetConfiguration.ts +11 -10
  89. package/src/modularDrawer/modules/createNetworkConfiguration.ts +25 -17
  90. package/src/modularDrawer/utils/__tests__/getInterestRateForAsset.test.ts +58 -0
  91. package/src/modularDrawer/utils/getInterestRateForAsset.ts +32 -0
  92. package/src/modularDrawer/utils/type.ts +4 -3
  93. package/src/wallet-api/ModularDrawer/types.ts +1 -1
  94. package/lib/modularDrawer/hooks/useLeftApy.d.ts +0 -54
  95. package/lib/modularDrawer/hooks/useLeftApy.d.ts.map +0 -1
  96. package/lib/modularDrawer/hooks/useLeftApy.js +0 -15
  97. package/lib/modularDrawer/hooks/useLeftApy.js.map +0 -1
  98. package/lib-es/modularDrawer/hooks/useLeftApy.d.ts +0 -54
  99. package/lib-es/modularDrawer/hooks/useLeftApy.d.ts.map +0 -1
  100. package/lib-es/modularDrawer/hooks/useLeftApy.js +0 -11
  101. package/lib-es/modularDrawer/hooks/useLeftApy.js.map +0 -1
  102. package/src/modularDrawer/hooks/useLeftApy.tsx +0 -19
@@ -1,54 +0,0 @@
1
- import type { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
2
- import { ReactNode } from "react";
3
- import { ApyType } from "../utils/type";
4
- export declare const createUseLeftApyModule: ({ ApyIndicator, }: {
5
- ApyIndicator: (args: {
6
- value: number;
7
- type: ApyType;
8
- }) => ReactNode;
9
- }) => (assets: CryptoOrTokenCurrency[]) => ({
10
- leftElement: ReactNode;
11
- name: string;
12
- ticker: string;
13
- units: import("@ledgerhq/types-cryptoassets").Unit[];
14
- symbol?: string | undefined;
15
- disableCountervalue?: boolean | undefined;
16
- delisted?: boolean | undefined;
17
- keywords?: string[] | undefined;
18
- type: "CryptoCurrency";
19
- id: import("@ledgerhq/types-cryptoassets").CryptoCurrencyId | "LBRY" | "groestcoin" | "osmo";
20
- forkedFrom?: string | undefined;
21
- managerAppName: string;
22
- coinType: import("@ledgerhq/types-cryptoassets").CoinType;
23
- scheme: string;
24
- color: string;
25
- family: string;
26
- blockAvgTime?: number | undefined;
27
- supportsSegwit?: boolean | undefined;
28
- supportsNativeSegwit?: boolean | undefined;
29
- isTestnetFor?: string | undefined;
30
- bitcoinLikeInfo?: import("@ledgerhq/types-cryptoassets").BitcoinLikeInfo | undefined;
31
- ethereumLikeInfo?: import("@ledgerhq/types-cryptoassets").EthereumLikeInfo | undefined;
32
- explorerViews: import("@ledgerhq/types-cryptoassets").ExplorerView[];
33
- terminated?: {
34
- link: string;
35
- } | undefined;
36
- deviceTicker?: string | undefined;
37
- explorerId?: import("@ledgerhq/types-cryptoassets").LedgerExplorerId | undefined;
38
- } | {
39
- leftElement: ReactNode;
40
- name: string;
41
- ticker: string;
42
- units: import("@ledgerhq/types-cryptoassets").Unit[];
43
- symbol?: string | undefined;
44
- disableCountervalue?: boolean | undefined;
45
- delisted?: boolean | undefined;
46
- keywords?: string[] | undefined;
47
- type: "TokenCurrency";
48
- id: string;
49
- ledgerSignature?: string | undefined;
50
- contractAddress: string;
51
- parentCurrency: import("@ledgerhq/types-cryptoassets").CryptoCurrency;
52
- tokenType: string;
53
- })[];
54
- //# sourceMappingURL=useLeftApy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLeftApy.d.ts","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useLeftApy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,eAAO,MAAM,sBAAsB;yBAGZ;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,SAAS;eAEnD,qBAAqB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASxC,CAAC"}
@@ -1,11 +0,0 @@
1
- export const createUseLeftApyModule = ({ ApyIndicator, }) => {
2
- return (assets) => {
3
- const value = 5.11; // TODO: fetch DADA
4
- const type = "APY"; // TODO: fetch DADA
5
- return assets.map(asset => ({
6
- ...asset,
7
- leftElement: ApyIndicator({ value, type }),
8
- }));
9
- };
10
- };
11
- //# sourceMappingURL=useLeftApy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLeftApy.js","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useLeftApy.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACrC,YAAY,GAGb,EAAE,EAAE;IACH,OAAO,CAAC,MAA+B,EAAE,EAAE;QACzC,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,mBAAmB;QACvC,MAAM,IAAI,GAAY,KAAK,CAAC,CAAC,mBAAmB;QAEhD,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC1B,GAAG,KAAK;YACR,WAAW,EAAE,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;SAC3C,CAAC,CAAC,CAAC;IACN,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
2
- import { ReactNode } from "react";
3
- import { ApyType } from "../utils/type";
4
-
5
- export const createUseLeftApyModule = ({
6
- ApyIndicator,
7
- }: {
8
- ApyIndicator: (args: { value: number; type: ApyType }) => ReactNode;
9
- }) => {
10
- return (assets: CryptoOrTokenCurrency[]) => {
11
- const value = 5.11; // TODO: fetch DADA
12
- const type: ApyType = "APY"; // TODO: fetch DADA
13
-
14
- return assets.map(asset => ({
15
- ...asset,
16
- leftElement: ApyIndicator({ value, type }),
17
- }));
18
- };
19
- };