@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.
- package/lib/e2e/enum/DeviceLabels.d.ts +6 -5
- package/lib/e2e/enum/DeviceLabels.d.ts.map +1 -1
- package/lib/e2e/enum/DeviceLabels.js +6 -5
- package/lib/e2e/enum/DeviceLabels.js.map +1 -1
- package/lib/e2e/speculos.d.ts +1 -1
- package/lib/e2e/speculos.d.ts.map +1 -1
- package/lib/e2e/speculos.js +13 -15
- package/lib/e2e/speculos.js.map +1 -1
- package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/modules/useLeftApyModule.js +4 -20
- package/lib/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
- package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts +3 -0
- package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.js +23 -0
- package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.js.map +1 -0
- package/lib/modularDrawer/hooks/useLeftAccountsApy.d.ts +2 -4
- package/lib/modularDrawer/hooks/useLeftAccountsApy.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/useLeftAccountsApy.js +23 -12
- package/lib/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -1
- package/lib/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -1
- package/lib/modularDrawer/modules/createAssetConfiguration.js +8 -8
- package/lib/modularDrawer/modules/createAssetConfiguration.js.map +1 -1
- package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts +3 -3
- package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
- package/lib/modularDrawer/modules/createNetworkConfiguration.js +12 -14
- package/lib/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
- package/lib/modularDrawer/utils/__tests__/getInterestRateForAsset.test.d.ts +2 -0
- package/lib/modularDrawer/utils/__tests__/getInterestRateForAsset.test.d.ts.map +1 -0
- package/lib/modularDrawer/utils/__tests__/getInterestRateForAsset.test.js +36 -0
- package/lib/modularDrawer/utils/__tests__/getInterestRateForAsset.test.js.map +1 -0
- package/lib/modularDrawer/utils/getInterestRateForAsset.d.ts +13 -0
- package/lib/modularDrawer/utils/getInterestRateForAsset.d.ts.map +1 -0
- package/lib/modularDrawer/utils/getInterestRateForAsset.js +20 -0
- package/lib/modularDrawer/utils/getInterestRateForAsset.js.map +1 -0
- package/lib/modularDrawer/utils/type.d.ts +4 -3
- package/lib/modularDrawer/utils/type.d.ts.map +1 -1
- package/lib/wallet-api/ModularDrawer/types.d.ts +6 -6
- package/lib/wallet-api/ModularDrawer/types.d.ts.map +1 -1
- package/lib/wallet-api/ModularDrawer/types.js +1 -1
- package/lib/wallet-api/ModularDrawer/types.js.map +1 -1
- package/lib-es/e2e/enum/DeviceLabels.d.ts +6 -5
- package/lib-es/e2e/enum/DeviceLabels.d.ts.map +1 -1
- package/lib-es/e2e/enum/DeviceLabels.js +6 -5
- package/lib-es/e2e/enum/DeviceLabels.js.map +1 -1
- package/lib-es/e2e/speculos.d.ts +1 -1
- package/lib-es/e2e/speculos.d.ts.map +1 -1
- package/lib-es/e2e/speculos.js +13 -15
- package/lib-es/e2e/speculos.js.map +1 -1
- package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js +4 -20
- package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
- package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts +3 -0
- package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.js +19 -0
- package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.js.map +1 -0
- package/lib-es/modularDrawer/hooks/useLeftAccountsApy.d.ts +2 -4
- package/lib-es/modularDrawer/hooks/useLeftAccountsApy.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js +21 -10
- package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -1
- package/lib-es/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -1
- package/lib-es/modularDrawer/modules/createAssetConfiguration.js +8 -8
- package/lib-es/modularDrawer/modules/createAssetConfiguration.js.map +1 -1
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts +3 -3
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.js +13 -15
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
- package/lib-es/modularDrawer/utils/__tests__/getInterestRateForAsset.test.d.ts +2 -0
- package/lib-es/modularDrawer/utils/__tests__/getInterestRateForAsset.test.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/__tests__/getInterestRateForAsset.test.js +34 -0
- package/lib-es/modularDrawer/utils/__tests__/getInterestRateForAsset.test.js.map +1 -0
- package/lib-es/modularDrawer/utils/getInterestRateForAsset.d.ts +13 -0
- package/lib-es/modularDrawer/utils/getInterestRateForAsset.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/getInterestRateForAsset.js +16 -0
- package/lib-es/modularDrawer/utils/getInterestRateForAsset.js.map +1 -0
- package/lib-es/modularDrawer/utils/type.d.ts +4 -3
- package/lib-es/modularDrawer/utils/type.d.ts.map +1 -1
- package/lib-es/wallet-api/ModularDrawer/types.d.ts +6 -6
- package/lib-es/wallet-api/ModularDrawer/types.d.ts.map +1 -1
- package/lib-es/wallet-api/ModularDrawer/types.js +1 -1
- package/lib-es/wallet-api/ModularDrawer/types.js.map +1 -1
- package/package.json +71 -71
- package/src/e2e/enum/DeviceLabels.ts +6 -5
- package/src/e2e/speculos.ts +13 -16
- package/src/families/hedera/__snapshots__/bridge.integration.test.ts.snap +27 -7
- package/src/modularDrawer/hooks/modules/useLeftApyModule.tsx +7 -22
- package/src/modularDrawer/hooks/useInterestRatesByCurrencies.ts +23 -0
- package/src/modularDrawer/hooks/useLeftAccountsApy.tsx +32 -16
- package/src/modularDrawer/modules/createAssetConfiguration.ts +11 -10
- package/src/modularDrawer/modules/createNetworkConfiguration.ts +25 -17
- package/src/modularDrawer/utils/__tests__/getInterestRateForAsset.test.ts +58 -0
- package/src/modularDrawer/utils/getInterestRateForAsset.ts +32 -0
- package/src/modularDrawer/utils/type.ts +4 -3
- package/src/wallet-api/ModularDrawer/types.ts +1 -1
- package/lib/modularDrawer/hooks/useLeftApy.d.ts +0 -54
- package/lib/modularDrawer/hooks/useLeftApy.d.ts.map +0 -1
- package/lib/modularDrawer/hooks/useLeftApy.js +0 -15
- package/lib/modularDrawer/hooks/useLeftApy.js.map +0 -1
- package/lib-es/modularDrawer/hooks/useLeftApy.d.ts +0 -54
- package/lib-es/modularDrawer/hooks/useLeftApy.d.ts.map +0 -1
- package/lib-es/modularDrawer/hooks/useLeftApy.js +0 -11
- package/lib-es/modularDrawer/hooks/useLeftApy.js.map +0 -1
- 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
|
-
};
|