@ledgerhq/live-common 34.47.0 → 34.48.0-nightly.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.
- package/lib/bridge/crypto-assets/cal-integration.d.ts +4 -0
- package/lib/bridge/crypto-assets/cal-integration.d.ts.map +1 -0
- package/lib/bridge/crypto-assets/cal-integration.js +26 -0
- package/lib/bridge/crypto-assets/cal-integration.js.map +1 -0
- package/lib/bridge/crypto-assets/cal-integration.test.d.ts +2 -0
- package/lib/bridge/crypto-assets/cal-integration.test.d.ts.map +1 -0
- package/lib/bridge/crypto-assets/cal-integration.test.js +45 -0
- package/lib/bridge/crypto-assets/cal-integration.test.js.map +1 -0
- package/lib/bridge/crypto-assets/cal-store.d.ts +14 -0
- package/lib/bridge/crypto-assets/cal-store.d.ts.map +1 -0
- package/lib/bridge/crypto-assets/cal-store.js +58 -0
- package/lib/bridge/crypto-assets/cal-store.js.map +1 -0
- package/lib/bridge/crypto-assets/cal-store.test.d.ts +2 -0
- package/lib/bridge/crypto-assets/cal-store.test.d.ts.map +1 -0
- package/lib/bridge/crypto-assets/cal-store.test.js +70 -0
- package/lib/bridge/crypto-assets/cal-store.test.js.map +1 -0
- package/lib/bridge/crypto-assets/index.d.ts.map +1 -1
- package/lib/bridge/crypto-assets/index.js +4 -0
- package/lib/bridge/crypto-assets/index.js.map +1 -1
- package/lib/bridge/crypto-assets/index.test.js +36 -0
- package/lib/bridge/crypto-assets/index.test.js.map +1 -1
- package/lib/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/alpaca/index.js +6 -1
- package/lib/bridge/generic-alpaca/alpaca/index.js.map +1 -1
- package/lib/bridge/generic-alpaca/alpaca/index.unit.test.d.ts +2 -0
- package/lib/bridge/generic-alpaca/alpaca/index.unit.test.d.ts.map +1 -0
- package/lib/bridge/generic-alpaca/alpaca/index.unit.test.js +89 -0
- package/lib/bridge/generic-alpaca/alpaca/index.unit.test.js.map +1 -0
- package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts +2 -2
- package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.js +2 -2
- package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.js.map +1 -1
- package/lib/bridge/generic-alpaca/buildSubAccounts.d.ts +2 -3
- package/lib/bridge/generic-alpaca/buildSubAccounts.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/buildSubAccounts.js +4 -14
- package/lib/bridge/generic-alpaca/buildSubAccounts.js.map +1 -1
- package/lib/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/getAccountShape.js +4 -4
- package/lib/bridge/generic-alpaca/getAccountShape.js.map +1 -1
- package/lib/bridge/generic-alpaca/getTransactionStatus.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/getTransactionStatus.js +0 -1
- package/lib/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
- package/lib/bridge/generic-alpaca/prepareTransaction.d.ts +14 -3
- package/lib/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/prepareTransaction.js +21 -5
- package/lib/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
- package/lib/bridge/generic-alpaca/signOperation.js +1 -1
- package/lib/bridge/generic-alpaca/signOperation.js.map +1 -1
- package/lib/bridge/generic-alpaca/utils.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/utils.js +6 -5
- package/lib/bridge/generic-alpaca/utils.js.map +1 -1
- package/lib/bridge/generic-alpaca/utils.test.d.ts.map +1 -0
- package/lib/bridge/generic-alpaca/utils.test.js +123 -0
- package/lib/bridge/generic-alpaca/utils.test.js.map +1 -0
- package/lib/e2e/enum/DeviceLabels.d.ts +9 -6
- package/lib/e2e/enum/DeviceLabels.d.ts.map +1 -1
- package/lib/e2e/enum/DeviceLabels.js +8 -5
- package/lib/e2e/enum/DeviceLabels.js.map +1 -1
- package/lib/e2e/families/tezos.d.ts.map +1 -1
- package/lib/e2e/families/tezos.js +2 -0
- package/lib/e2e/families/tezos.js.map +1 -1
- package/lib/e2e/index.d.ts +7 -6
- package/lib/e2e/index.d.ts.map +1 -1
- package/lib/e2e/speculos.d.ts +2 -1
- package/lib/e2e/speculos.d.ts.map +1 -1
- package/lib/e2e/speculos.js +25 -17
- package/lib/e2e/speculos.js.map +1 -1
- package/lib/env.react.d.ts +1 -1
- package/lib/env.react.d.ts.map +1 -1
- package/lib/exchange/platform/transfer/completeExchange.d.ts.map +1 -1
- package/lib/exchange/platform/transfer/completeExchange.js +3 -5
- package/lib/exchange/platform/transfer/completeExchange.js.map +1 -1
- package/lib/exchange/swap/completeExchange.d.ts.map +1 -1
- package/lib/exchange/swap/completeExchange.js +5 -2
- package/lib/exchange/swap/completeExchange.js.map +1 -1
- package/lib/exchange/swap/initSwap.d.ts.map +1 -1
- package/lib/exchange/swap/initSwap.js +5 -2
- package/lib/exchange/swap/initSwap.js.map +1 -1
- package/lib/families/canton/config.d.ts.map +1 -1
- package/lib/families/canton/config.js +4 -0
- package/lib/families/canton/config.js.map +1 -1
- package/lib/families/solana/setup.d.ts.map +1 -1
- package/lib/families/solana/setup.js +9 -0
- package/lib/families/solana/setup.js.map +1 -1
- package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib/featureFlags/defaultFeatures.js +1 -2
- package/lib/featureFlags/defaultFeatures.js.map +1 -1
- package/lib/featureFlags/useFeature.d.ts +1 -1
- package/lib/featureFlags/useFeature.d.ts.map +1 -1
- package/lib/modularDrawer/__mocks__/dada.mock.d.ts +3336 -0
- package/lib/modularDrawer/__mocks__/dada.mock.d.ts.map +1 -0
- package/lib/modularDrawer/__mocks__/dada.mock.js +3879 -0
- package/lib/modularDrawer/__mocks__/dada.mock.js.map +1 -0
- package/lib/modularDrawer/data/entities/interestRateSelectors.d.ts +16 -0
- package/lib/modularDrawer/data/entities/interestRateSelectors.d.ts.map +1 -0
- package/lib/modularDrawer/data/entities/interestRateSelectors.js +21 -0
- package/lib/modularDrawer/data/entities/interestRateSelectors.js.map +1 -0
- package/lib/modularDrawer/data/state-manager/api.d.ts +727 -37
- package/lib/modularDrawer/data/state-manager/api.d.ts.map +1 -1
- package/lib/modularDrawer/data/state-manager/api.js +38 -17
- package/lib/modularDrawer/data/state-manager/api.js.map +1 -1
- package/lib/modularDrawer/data/state-manager/types.d.ts +24 -0
- package/lib/modularDrawer/data/state-manager/types.d.ts.map +1 -0
- package/lib/modularDrawer/data/state-manager/types.js +13 -0
- package/lib/modularDrawer/data/state-manager/types.js.map +1 -0
- package/lib/modularDrawer/hooks/__test__/useAssetsData.test.js +134 -78
- package/lib/modularDrawer/hooks/__test__/useAssetsData.test.js.map +1 -1
- package/lib/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.d.ts +2 -0
- package/lib/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.js +206 -0
- package/lib/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.js.map +1 -0
- package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts +3 -3
- package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/modules/useLeftApyModule.js +43 -10
- package/lib/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
- package/lib/modularDrawer/hooks/{modules/useAssetAccountCounts.d.ts → useAssetAccountCounts.d.ts} +1 -1
- package/lib/modularDrawer/hooks/useAssetAccountCounts.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/{modules/useAssetAccountCounts.js → useAssetAccountCounts.js} +1 -1
- package/lib/modularDrawer/hooks/useAssetAccountCounts.js.map +1 -0
- package/lib/modularDrawer/hooks/useAssetsData.d.ts +10 -6
- package/lib/modularDrawer/hooks/useAssetsData.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/useAssetsData.js +40 -17
- package/lib/modularDrawer/hooks/useAssetsData.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/useLeftAccounts.d.ts +13 -0
- package/lib/modularDrawer/hooks/useLeftAccounts.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/useLeftAccounts.js +15 -0
- package/lib/modularDrawer/hooks/useLeftAccounts.js.map +1 -0
- package/lib/modularDrawer/hooks/useLeftAccountsApy.d.ts +4 -0
- package/lib/modularDrawer/hooks/useLeftAccountsApy.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/useLeftAccountsApy.js +30 -0
- package/lib/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -0
- package/lib/modularDrawer/hooks/useModularDrawerConfiguration.d.ts +13 -0
- package/lib/modularDrawer/hooks/useModularDrawerConfiguration.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/useModularDrawerConfiguration.js +29 -0
- package/lib/modularDrawer/hooks/useModularDrawerConfiguration.js.map +1 -0
- package/lib/modularDrawer/hooks/useRightBalanceAsset.d.ts +57 -0
- package/lib/modularDrawer/hooks/useRightBalanceAsset.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/useRightBalanceAsset.js +87 -0
- package/lib/modularDrawer/hooks/useRightBalanceAsset.js.map +1 -0
- package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts +63 -0
- package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/useRightBalanceNetwork.js +66 -0
- package/lib/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -0
- package/lib/modularDrawer/modules/createAssetConfiguration.d.ts +4 -0
- package/lib/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -0
- package/lib/modularDrawer/modules/createAssetConfiguration.js +41 -0
- package/lib/modularDrawer/modules/createAssetConfiguration.js.map +1 -0
- package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts +6 -0
- package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -0
- package/lib/modularDrawer/modules/createNetworkConfiguration.js +54 -0
- package/lib/modularDrawer/modules/createNetworkConfiguration.js.map +1 -0
- 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/buildProviderCurrenciesMap.d.ts +9 -0
- package/lib/modularDrawer/utils/buildProviderCurrenciesMap.d.ts.map +1 -0
- package/lib/modularDrawer/utils/buildProviderCurrenciesMap.js +17 -0
- package/lib/modularDrawer/utils/buildProviderCurrenciesMap.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/getLoadingStatus.d.ts +9 -0
- package/lib/modularDrawer/utils/getLoadingStatus.d.ts.map +1 -0
- package/lib/modularDrawer/utils/getLoadingStatus.js +18 -0
- package/lib/modularDrawer/utils/getLoadingStatus.js.map +1 -0
- package/lib/modularDrawer/utils/sortByBalance.d.ts +6 -0
- package/lib/modularDrawer/utils/sortByBalance.d.ts.map +1 -0
- package/lib/modularDrawer/utils/sortByBalance.js +32 -0
- package/lib/modularDrawer/utils/sortByBalance.js.map +1 -0
- package/lib/modularDrawer/utils/type.d.ts +90 -1
- package/lib/modularDrawer/utils/type.d.ts.map +1 -1
- package/lib/wallet-api/Exchange/server.js +2 -2
- package/lib/wallet-api/Exchange/server.js.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/wallet-api/react.d.ts +2 -0
- package/lib/wallet-api/react.d.ts.map +1 -1
- package/lib/wallet-api/react.js +3 -1
- package/lib/wallet-api/react.js.map +1 -1
- package/lib-es/bridge/crypto-assets/cal-integration.d.ts +4 -0
- package/lib-es/bridge/crypto-assets/cal-integration.d.ts.map +1 -0
- package/lib-es/bridge/crypto-assets/cal-integration.js +21 -0
- package/lib-es/bridge/crypto-assets/cal-integration.js.map +1 -0
- package/lib-es/bridge/crypto-assets/cal-integration.test.d.ts +2 -0
- package/lib-es/bridge/crypto-assets/cal-integration.test.d.ts.map +1 -0
- package/lib-es/bridge/crypto-assets/cal-integration.test.js +43 -0
- package/lib-es/bridge/crypto-assets/cal-integration.test.js.map +1 -0
- package/lib-es/bridge/crypto-assets/cal-store.d.ts +14 -0
- package/lib-es/bridge/crypto-assets/cal-store.d.ts.map +1 -0
- package/lib-es/bridge/crypto-assets/cal-store.js +54 -0
- package/lib-es/bridge/crypto-assets/cal-store.js.map +1 -0
- package/lib-es/bridge/crypto-assets/cal-store.test.d.ts +2 -0
- package/lib-es/bridge/crypto-assets/cal-store.test.d.ts.map +1 -0
- package/lib-es/bridge/crypto-assets/cal-store.test.js +68 -0
- package/lib-es/bridge/crypto-assets/cal-store.test.js.map +1 -0
- package/lib-es/bridge/crypto-assets/index.d.ts.map +1 -1
- package/lib-es/bridge/crypto-assets/index.js +4 -0
- package/lib-es/bridge/crypto-assets/index.js.map +1 -1
- package/lib-es/bridge/crypto-assets/index.test.js +36 -0
- package/lib-es/bridge/crypto-assets/index.test.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/alpaca/index.js +6 -1
- package/lib-es/bridge/generic-alpaca/alpaca/index.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.d.ts +2 -0
- package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.d.ts.map +1 -0
- package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.js +64 -0
- package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.js.map +1 -0
- package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts +2 -2
- package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.js +2 -2
- package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/buildSubAccounts.d.ts +2 -3
- package/lib-es/bridge/generic-alpaca/buildSubAccounts.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/buildSubAccounts.js +4 -12
- package/lib-es/bridge/generic-alpaca/buildSubAccounts.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/getAccountShape.js +3 -3
- package/lib-es/bridge/generic-alpaca/getAccountShape.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/getTransactionStatus.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/getTransactionStatus.js +0 -1
- package/lib-es/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/prepareTransaction.d.ts +14 -3
- package/lib-es/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/prepareTransaction.js +21 -5
- package/lib-es/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/signOperation.js +1 -1
- package/lib-es/bridge/generic-alpaca/signOperation.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/utils.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/utils.js +6 -5
- package/lib-es/bridge/generic-alpaca/utils.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/utils.test.d.ts.map +1 -0
- package/lib-es/bridge/generic-alpaca/utils.test.js +118 -0
- package/lib-es/bridge/generic-alpaca/utils.test.js.map +1 -0
- package/lib-es/e2e/enum/DeviceLabels.d.ts +9 -6
- package/lib-es/e2e/enum/DeviceLabels.d.ts.map +1 -1
- package/lib-es/e2e/enum/DeviceLabels.js +8 -5
- package/lib-es/e2e/enum/DeviceLabels.js.map +1 -1
- package/lib-es/e2e/families/tezos.d.ts.map +1 -1
- package/lib-es/e2e/families/tezos.js +2 -0
- package/lib-es/e2e/families/tezos.js.map +1 -1
- package/lib-es/e2e/index.d.ts +7 -6
- package/lib-es/e2e/index.d.ts.map +1 -1
- package/lib-es/e2e/speculos.d.ts +2 -1
- package/lib-es/e2e/speculos.d.ts.map +1 -1
- package/lib-es/e2e/speculos.js +23 -16
- package/lib-es/e2e/speculos.js.map +1 -1
- package/lib-es/env.react.d.ts +1 -1
- package/lib-es/env.react.d.ts.map +1 -1
- package/lib-es/exchange/platform/transfer/completeExchange.d.ts.map +1 -1
- package/lib-es/exchange/platform/transfer/completeExchange.js +3 -2
- package/lib-es/exchange/platform/transfer/completeExchange.js.map +1 -1
- package/lib-es/exchange/swap/completeExchange.d.ts.map +1 -1
- package/lib-es/exchange/swap/completeExchange.js +5 -2
- package/lib-es/exchange/swap/completeExchange.js.map +1 -1
- package/lib-es/exchange/swap/initSwap.d.ts.map +1 -1
- package/lib-es/exchange/swap/initSwap.js +5 -2
- package/lib-es/exchange/swap/initSwap.js.map +1 -1
- package/lib-es/families/canton/config.d.ts.map +1 -1
- package/lib-es/families/canton/config.js +4 -0
- package/lib-es/families/canton/config.js.map +1 -1
- package/lib-es/families/solana/setup.d.ts.map +1 -1
- package/lib-es/families/solana/setup.js +9 -0
- package/lib-es/families/solana/setup.js.map +1 -1
- package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib-es/featureFlags/defaultFeatures.js +1 -2
- package/lib-es/featureFlags/defaultFeatures.js.map +1 -1
- package/lib-es/featureFlags/useFeature.d.ts +1 -1
- package/lib-es/featureFlags/useFeature.d.ts.map +1 -1
- package/lib-es/modularDrawer/__mocks__/dada.mock.d.ts +3336 -0
- package/lib-es/modularDrawer/__mocks__/dada.mock.d.ts.map +1 -0
- package/lib-es/modularDrawer/__mocks__/dada.mock.js +3876 -0
- package/lib-es/modularDrawer/__mocks__/dada.mock.js.map +1 -0
- package/lib-es/modularDrawer/data/entities/interestRateSelectors.d.ts +16 -0
- package/lib-es/modularDrawer/data/entities/interestRateSelectors.d.ts.map +1 -0
- package/lib-es/modularDrawer/data/entities/interestRateSelectors.js +18 -0
- package/lib-es/modularDrawer/data/entities/interestRateSelectors.js.map +1 -0
- package/lib-es/modularDrawer/data/state-manager/api.d.ts +727 -37
- package/lib-es/modularDrawer/data/state-manager/api.d.ts.map +1 -1
- package/lib-es/modularDrawer/data/state-manager/api.js +35 -14
- package/lib-es/modularDrawer/data/state-manager/api.js.map +1 -1
- package/lib-es/modularDrawer/data/state-manager/types.d.ts +24 -0
- package/lib-es/modularDrawer/data/state-manager/types.d.ts.map +1 -0
- package/lib-es/modularDrawer/data/state-manager/types.js +10 -0
- package/lib-es/modularDrawer/data/state-manager/types.js.map +1 -0
- package/lib-es/modularDrawer/hooks/__test__/useAssetsData.test.js +135 -79
- package/lib-es/modularDrawer/hooks/__test__/useAssetsData.test.js.map +1 -1
- package/lib-es/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.d.ts +2 -0
- package/lib-es/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.js +204 -0
- package/lib-es/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.js.map +1 -0
- package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts +3 -3
- package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js +21 -8
- package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
- package/lib-es/modularDrawer/hooks/{modules/useAssetAccountCounts.d.ts → useAssetAccountCounts.d.ts} +1 -1
- package/lib-es/modularDrawer/hooks/useAssetAccountCounts.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/{modules/useAssetAccountCounts.js → useAssetAccountCounts.js} +1 -1
- package/lib-es/modularDrawer/hooks/useAssetAccountCounts.js.map +1 -0
- package/lib-es/modularDrawer/hooks/useAssetsData.d.ts +10 -6
- package/lib-es/modularDrawer/hooks/useAssetsData.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/useAssetsData.js +42 -19
- package/lib-es/modularDrawer/hooks/useAssetsData.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/useLeftAccounts.d.ts +13 -0
- package/lib-es/modularDrawer/hooks/useLeftAccounts.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/useLeftAccounts.js +11 -0
- package/lib-es/modularDrawer/hooks/useLeftAccounts.js.map +1 -0
- package/lib-es/modularDrawer/hooks/useLeftAccountsApy.d.ts +4 -0
- package/lib-es/modularDrawer/hooks/useLeftAccountsApy.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js +26 -0
- package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -0
- package/lib-es/modularDrawer/hooks/useModularDrawerConfiguration.d.ts +13 -0
- package/lib-es/modularDrawer/hooks/useModularDrawerConfiguration.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/useModularDrawerConfiguration.js +25 -0
- package/lib-es/modularDrawer/hooks/useModularDrawerConfiguration.js.map +1 -0
- package/lib-es/modularDrawer/hooks/useRightBalanceAsset.d.ts +57 -0
- package/lib-es/modularDrawer/hooks/useRightBalanceAsset.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/useRightBalanceAsset.js +83 -0
- package/lib-es/modularDrawer/hooks/useRightBalanceAsset.js.map +1 -0
- package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts +63 -0
- package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js +62 -0
- package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -0
- package/lib-es/modularDrawer/modules/createAssetConfiguration.d.ts +4 -0
- package/lib-es/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -0
- package/lib-es/modularDrawer/modules/createAssetConfiguration.js +39 -0
- package/lib-es/modularDrawer/modules/createAssetConfiguration.js.map +1 -0
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts +6 -0
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -0
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.js +48 -0
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.js.map +1 -0
- 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/buildProviderCurrenciesMap.d.ts +9 -0
- package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.js +13 -0
- package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.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/getLoadingStatus.d.ts +9 -0
- package/lib-es/modularDrawer/utils/getLoadingStatus.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/getLoadingStatus.js +14 -0
- package/lib-es/modularDrawer/utils/getLoadingStatus.js.map +1 -0
- package/lib-es/modularDrawer/utils/sortByBalance.d.ts +6 -0
- package/lib-es/modularDrawer/utils/sortByBalance.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/sortByBalance.js +25 -0
- package/lib-es/modularDrawer/utils/sortByBalance.js.map +1 -0
- package/lib-es/modularDrawer/utils/type.d.ts +90 -1
- package/lib-es/modularDrawer/utils/type.d.ts.map +1 -1
- package/lib-es/wallet-api/Exchange/server.js +2 -2
- package/lib-es/wallet-api/Exchange/server.js.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/lib-es/wallet-api/react.d.ts +2 -0
- package/lib-es/wallet-api/react.d.ts.map +1 -1
- package/lib-es/wallet-api/react.js +3 -1
- package/lib-es/wallet-api/react.js.map +1 -1
- package/package.json +51 -51
- package/src/bridge/crypto-assets/cal-integration.test.ts +53 -0
- package/src/bridge/crypto-assets/cal-integration.ts +23 -0
- package/src/bridge/crypto-assets/cal-store.test.ts +93 -0
- package/src/bridge/crypto-assets/cal-store.ts +63 -0
- package/src/bridge/crypto-assets/index.test.ts +47 -0
- package/src/bridge/crypto-assets/index.ts +5 -0
- package/src/bridge/generic-alpaca/alpaca/index.ts +14 -1
- package/src/bridge/generic-alpaca/alpaca/index.unit.test.ts +78 -0
- package/src/bridge/generic-alpaca/alpaca/network/network-alpaca.ts +5 -4
- package/src/bridge/generic-alpaca/buildSubAccounts.ts +5 -14
- package/src/bridge/generic-alpaca/getAccountShape.ts +3 -4
- package/src/bridge/generic-alpaca/getTransactionStatus.ts +0 -1
- package/src/bridge/generic-alpaca/prepareTransaction.ts +44 -17
- package/src/bridge/generic-alpaca/signOperation.ts +1 -1
- package/src/bridge/generic-alpaca/utils.test.ts +133 -0
- package/src/bridge/generic-alpaca/utils.ts +7 -5
- package/src/e2e/enum/DeviceLabels.ts +8 -5
- package/src/e2e/families/tezos.ts +2 -0
- package/src/e2e/speculos.ts +24 -17
- package/src/exchange/platform/transfer/completeExchange.ts +3 -2
- package/src/exchange/swap/completeExchange.ts +5 -2
- package/src/exchange/swap/initSwap.ts +5 -4
- package/src/families/canton/config.ts +5 -0
- package/src/families/hedera/__snapshots__/bridge.integration.test.ts.snap +27 -7
- package/src/families/solana/setup.ts +9 -0
- package/src/featureFlags/defaultFeatures.ts +1 -2
- package/src/modularDrawer/__mocks__/dada.mock.ts +3890 -0
- package/src/modularDrawer/data/entities/interestRateSelectors.ts +39 -0
- package/src/modularDrawer/data/state-manager/api.ts +42 -27
- package/src/modularDrawer/data/state-manager/types.ts +28 -0
- package/src/modularDrawer/hooks/__test__/useAssetsData.test.ts +141 -80
- package/src/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.ts +251 -0
- package/src/modularDrawer/hooks/modules/useLeftApyModule.tsx +27 -9
- package/src/modularDrawer/hooks/{modules/useAssetAccountCounts.tsx → useAssetAccountCounts.tsx} +2 -2
- package/src/modularDrawer/hooks/useAssetsData.ts +59 -22
- package/src/modularDrawer/hooks/useInterestRatesByCurrencies.ts +23 -0
- package/src/modularDrawer/hooks/useLeftAccounts.tsx +23 -0
- package/src/modularDrawer/hooks/useLeftAccountsApy.tsx +44 -0
- package/src/modularDrawer/hooks/useModularDrawerConfiguration.ts +33 -0
- package/src/modularDrawer/hooks/useRightBalanceAsset.tsx +140 -0
- package/src/modularDrawer/hooks/useRightBalanceNetwork.tsx +116 -0
- package/src/modularDrawer/modules/createAssetConfiguration.ts +62 -0
- package/src/modularDrawer/modules/createNetworkConfiguration.ts +87 -0
- package/src/modularDrawer/utils/__tests__/getInterestRateForAsset.test.ts +58 -0
- package/src/modularDrawer/utils/buildProviderCurrenciesMap.tsx +25 -0
- package/src/modularDrawer/utils/getInterestRateForAsset.ts +32 -0
- package/src/modularDrawer/utils/getLoadingStatus.ts +24 -0
- package/src/modularDrawer/utils/sortByBalance.tsx +32 -0
- package/src/modularDrawer/utils/type.ts +98 -0
- package/src/wallet-api/Exchange/server.ts +2 -2
- package/src/wallet-api/ModularDrawer/types.ts +1 -1
- package/src/wallet-api/react.ts +5 -1
- package/lib/bridge/generic-alpaca/tests/utils.test.d.ts.map +0 -1
- package/lib/bridge/generic-alpaca/tests/utils.test.js +0 -20
- package/lib/bridge/generic-alpaca/tests/utils.test.js.map +0 -1
- package/lib/modularDrawer/hooks/modules/useAssetAccountCounts.d.ts.map +0 -1
- package/lib/modularDrawer/hooks/modules/useAssetAccountCounts.js.map +0 -1
- package/lib/modularDrawer/types.d.ts +0 -2
- package/lib/modularDrawer/types.d.ts.map +0 -1
- package/lib/modularDrawer/types.js +0 -3
- package/lib/modularDrawer/types.js.map +0 -1
- package/lib-es/bridge/generic-alpaca/tests/utils.test.d.ts.map +0 -1
- package/lib-es/bridge/generic-alpaca/tests/utils.test.js +0 -18
- package/lib-es/bridge/generic-alpaca/tests/utils.test.js.map +0 -1
- package/lib-es/modularDrawer/hooks/modules/useAssetAccountCounts.d.ts.map +0 -1
- package/lib-es/modularDrawer/hooks/modules/useAssetAccountCounts.js.map +0 -1
- package/lib-es/modularDrawer/types.d.ts +0 -2
- package/lib-es/modularDrawer/types.d.ts.map +0 -1
- package/lib-es/modularDrawer/types.js +0 -2
- package/lib-es/modularDrawer/types.js.map +0 -1
- package/src/bridge/generic-alpaca/tests/utils.test.ts +0 -19
- package/src/modularDrawer/types.ts +0 -1
- /package/lib/bridge/generic-alpaca/{tests/utils.test.d.ts → utils.test.d.ts} +0 -0
- /package/lib-es/bridge/generic-alpaca/{tests/utils.test.d.ts → utils.test.d.ts} +0 -0
@@ -6,6 +6,7 @@ export enum DeviceLabels {
|
|
6
6
|
SIGN = "Sign",
|
7
7
|
APPROVE = "Approve",
|
8
8
|
ACCEPT = "Accept",
|
9
|
+
ACCEPT_RISK = "Accept risk",
|
9
10
|
TRANSFER = "Transfer",
|
10
11
|
RECIPIENT = "Recipient",
|
11
12
|
DEST = "Dest",
|
@@ -33,10 +34,11 @@ export enum DeviceLabels {
|
|
33
34
|
DELEGATE_FROM = "Delegate from",
|
34
35
|
PLEASE_REVIEW = "Please",
|
35
36
|
VALUE = "Value",
|
36
|
-
|
37
|
-
|
38
|
-
|
37
|
+
CONNECT_TO = "Connect to",
|
38
|
+
CONNECT = "Connect",
|
39
|
+
LEDGER_LIVE_WILL_BE = "Ledger Live will be",
|
39
40
|
TURN_ON_SYNC = "Turn on sync",
|
41
|
+
TURN_ON_SYNC2 = "Turn On sync",
|
40
42
|
NEW_ORDINARY = "New ordinary",
|
41
43
|
SEND_TO_ADDRESS_2 = "Send to address (2/2)",
|
42
44
|
REVIEW_OPERATION = "Review",
|
@@ -46,12 +48,13 @@ export enum DeviceLabels {
|
|
46
48
|
DELEGATE_STAKE = "Delegate stake",
|
47
49
|
SETTINGS = "Settings",
|
48
50
|
CONTRACT_DATA = "Contract data",
|
49
|
-
|
50
|
-
|
51
|
+
REMOVE_FROM_LEDGER_SYNC = "Remove from",
|
52
|
+
REMOVE = "Remove",
|
51
53
|
VERIFY_ETHEREUM = "Verify Ethereum",
|
52
54
|
VERIFY_BSC = "Verify BSC",
|
53
55
|
SIGN_TRANSACTION = "Sign transaction",
|
54
56
|
VERIFY_POLYGON = "Verify Polygon",
|
55
57
|
VERIFY_SOLANA_ADDRESS = "Verify Solana address",
|
56
58
|
REVIEW_TRANSACTION = "Review transaction",
|
59
|
+
I_UNDERSTAND = "I understand",
|
57
60
|
}
|
@@ -3,6 +3,8 @@ import { DeviceLabels } from "../enum/DeviceLabels";
|
|
3
3
|
|
4
4
|
export async function delegateTezos() {
|
5
5
|
await waitFor(DeviceLabels.REVIEW_OPERATION);
|
6
|
+
await pressUntilTextFound(DeviceLabels.ACCEPT_RISK);
|
7
|
+
await pressBoth();
|
6
8
|
await pressUntilTextFound(DeviceLabels.ACCEPT);
|
7
9
|
await pressBoth();
|
8
10
|
}
|
package/src/e2e/speculos.ts
CHANGED
@@ -460,7 +460,7 @@ async function retryAxiosRequest<T>(
|
|
460
460
|
throw lastError!;
|
461
461
|
}
|
462
462
|
|
463
|
-
export async function waitFor(text: string, maxAttempts =
|
463
|
+
export async function waitFor(text: string, maxAttempts = 60): Promise<string[]> {
|
464
464
|
const port = getEnv("SPECULOS_API_PORT");
|
465
465
|
const address = getSpeculosAddress();
|
466
466
|
const url = `${address}:${port}/events?stream=false¤tscreenonly=true`;
|
@@ -491,14 +491,14 @@ export async function pressBoth() {
|
|
491
491
|
|
492
492
|
export async function pressUntilTextFound(
|
493
493
|
targetText: string,
|
494
|
-
|
494
|
+
strictMatch: boolean = false,
|
495
495
|
): Promise<string[]> {
|
496
|
+
const maxAttempts = 15;
|
496
497
|
const speculosApiPort = getEnv("SPECULOS_API_PORT");
|
497
498
|
|
498
499
|
for (let attempts = 0; attempts < maxAttempts; attempts++) {
|
499
500
|
const texts = await fetchCurrentScreenTexts(speculosApiPort);
|
500
|
-
|
501
|
-
if (texts.includes(targetText)) {
|
501
|
+
if (strictMatch ? texts === targetText : texts.includes(targetText)) {
|
502
502
|
return await fetchAllEvents(speculosApiPort);
|
503
503
|
}
|
504
504
|
|
@@ -575,28 +575,25 @@ export async function waitForTimeOut(ms: number) {
|
|
575
575
|
}
|
576
576
|
|
577
577
|
export async function removeMemberLedgerSync() {
|
578
|
-
await waitFor(DeviceLabels.
|
579
|
-
await pressUntilTextFound(DeviceLabels.
|
580
|
-
await pressUntilTextFound(DeviceLabels.CONNECT_WITH);
|
578
|
+
await waitFor(DeviceLabels.CONNECT_TO);
|
579
|
+
await pressUntilTextFound(DeviceLabels.CONNECT, true);
|
581
580
|
await pressBoth();
|
582
|
-
await waitFor(DeviceLabels.
|
583
|
-
await pressUntilTextFound(DeviceLabels.
|
584
|
-
await pressUntilTextFound(DeviceLabels.REMOVE_PHONE_OR_COMPUTER);
|
581
|
+
await waitFor(DeviceLabels.REMOVE_FROM_LEDGER_SYNC);
|
582
|
+
await pressUntilTextFound(DeviceLabels.REMOVE, true);
|
585
583
|
await pressBoth();
|
586
584
|
await waitFor(DeviceLabels.TURN_ON_SYNC);
|
587
|
-
await pressUntilTextFound(DeviceLabels.
|
588
|
-
await pressUntilTextFound(DeviceLabels.
|
585
|
+
await pressUntilTextFound(DeviceLabels.LEDGER_LIVE_WILL_BE);
|
586
|
+
await pressUntilTextFound(DeviceLabels.TURN_ON_SYNC2);
|
589
587
|
await pressBoth();
|
590
588
|
}
|
591
589
|
|
592
590
|
export async function activateLedgerSync() {
|
593
|
-
await waitFor(DeviceLabels.
|
594
|
-
await pressUntilTextFound(DeviceLabels.
|
595
|
-
await pressUntilTextFound(DeviceLabels.CONNECT_WITH);
|
591
|
+
await waitFor(DeviceLabels.CONNECT_TO);
|
592
|
+
await pressUntilTextFound(DeviceLabels.CONNECT, true);
|
596
593
|
await pressBoth();
|
597
594
|
await waitFor(DeviceLabels.TURN_ON_SYNC);
|
598
|
-
await pressUntilTextFound(DeviceLabels.
|
599
|
-
await pressUntilTextFound(DeviceLabels.
|
595
|
+
await pressUntilTextFound(DeviceLabels.LEDGER_LIVE_WILL_BE);
|
596
|
+
await pressUntilTextFound(DeviceLabels.TURN_ON_SYNC2);
|
600
597
|
await pressBoth();
|
601
598
|
}
|
602
599
|
|
@@ -731,12 +728,22 @@ export async function signDelegationTransaction(delegatingAccount: Delegate) {
|
|
731
728
|
}
|
732
729
|
|
733
730
|
export async function verifyAmountsAndAcceptSwap(swap: Swap, amount: string) {
|
731
|
+
await waitFor(DeviceLabels.REVIEW_TRANSACTION);
|
732
|
+
const events = await pressUntilTextFound(DeviceLabels.SIGN_TRANSACTION);
|
733
|
+
await verifySwapData(swap, events, amount);
|
734
|
+
await pressBoth();
|
735
|
+
}
|
736
|
+
|
737
|
+
export async function verifyAmountsAndAcceptSwapForDifferentSeed(swap: Swap, amount: string) {
|
738
|
+
await pressUntilTextFound(DeviceLabels.I_UNDERSTAND);
|
739
|
+
await pressBoth();
|
734
740
|
const events = await pressUntilTextFound(DeviceLabels.SIGN_TRANSACTION);
|
735
741
|
await verifySwapData(swap, events, amount);
|
736
742
|
await pressBoth();
|
737
743
|
}
|
738
744
|
|
739
745
|
export async function verifyAmountsAndRejectSwap(swap: Swap, amount: string) {
|
746
|
+
await waitFor(DeviceLabels.REVIEW_TRANSACTION);
|
740
747
|
const events = await pressUntilTextFound(DeviceLabels.REJECT);
|
741
748
|
await verifySwapData(swap, events, amount);
|
742
749
|
await pressBoth();
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import secp256k1 from "secp256k1";
|
1
|
+
import { secp256k1 } from "@noble/curves/secp256k1";
|
2
2
|
import { firstValueFrom, from, Observable } from "rxjs";
|
3
3
|
import { TransportStatusError, WrongDeviceForAccount } from "@ledgerhq/errors";
|
4
4
|
|
@@ -187,7 +187,8 @@ function convertSignature(signature: string, exchangeType: ExchangeTypes): Buffe
|
|
187
187
|
return Buffer.from(base64Signature, "base64");
|
188
188
|
}
|
189
189
|
if (exchangeType === ExchangeTypes.Sell) return Buffer.from(signature, "hex");
|
190
|
-
|
190
|
+
const sig = secp256k1.Signature.fromCompact(Buffer.from(signature, "hex"));
|
191
|
+
return Buffer.from(sig.toDERRawBytes());
|
191
192
|
}
|
192
193
|
|
193
194
|
export default completeExchange;
|
@@ -14,7 +14,7 @@ import { getDefaultAccountName } from "@ledgerhq/live-wallet/accountName";
|
|
14
14
|
import { log } from "@ledgerhq/logs";
|
15
15
|
import BigNumber from "bignumber.js";
|
16
16
|
import { Observable } from "rxjs";
|
17
|
-
import secp256k1 from "secp256k1";
|
17
|
+
import { secp256k1 } from "@noble/curves/secp256k1";
|
18
18
|
import { getCurrencyExchangeConfig } from "../";
|
19
19
|
import { getAccountCurrency, getMainAccount } from "../../account";
|
20
20
|
import { getAccountBridge } from "../../bridge";
|
@@ -271,7 +271,10 @@ const completeExchange = (
|
|
271
271
|
function convertSignature(signature: string, exchangeType: ExchangeTypes): Buffer {
|
272
272
|
return exchangeType === ExchangeTypes.SwapNg
|
273
273
|
? base64UrlDecode(signature)
|
274
|
-
:
|
274
|
+
: (() => {
|
275
|
+
const sig = secp256k1.Signature.fromCompact(Buffer.from(signature, "hex"));
|
276
|
+
return Buffer.from(sig.toDERRawBytes());
|
277
|
+
})();
|
275
278
|
}
|
276
279
|
|
277
280
|
function base64UrlDecode(base64Url: string): Buffer {
|
@@ -14,7 +14,7 @@ import { log } from "@ledgerhq/logs";
|
|
14
14
|
import { BigNumber } from "bignumber.js";
|
15
15
|
import invariant from "invariant";
|
16
16
|
import { firstValueFrom, from, Observable } from "rxjs";
|
17
|
-
import secp256k1 from "secp256k1";
|
17
|
+
import { secp256k1 } from "@noble/curves/secp256k1";
|
18
18
|
import { getCurrencyExchangeConfig } from "../";
|
19
19
|
import { getAccountCurrency, getMainAccount } from "../../account";
|
20
20
|
import { getAccountBridge } from "../../bridge";
|
@@ -184,9 +184,10 @@ const initSwap = (input: InitSwapInput): Observable<SwapRequestEvent> => {
|
|
184
184
|
|
185
185
|
await swap.processTransaction(Buffer.from(swapResult.binaryPayload, "hex"), estimatedFees);
|
186
186
|
if (unsubscribed) return;
|
187
|
-
const goodSign = <Buffer>(
|
188
|
-
secp256k1.
|
189
|
-
|
187
|
+
const goodSign = <Buffer>(() => {
|
188
|
+
const sig = secp256k1.Signature.fromCompact(Buffer.from(swapResult.signature, "hex"));
|
189
|
+
return Buffer.from(sig.toDERRawBytes());
|
190
|
+
})();
|
190
191
|
await swap.checkTransactionSignature(goodSign);
|
191
192
|
if (unsubscribed) return;
|
192
193
|
const mainPayoutCurrency = getAccountCurrency(payoutAccount);
|
@@ -9,6 +9,7 @@ export const cantonConfig: Record<string, ConfigInfo> = {
|
|
9
9
|
},
|
10
10
|
// TBC
|
11
11
|
nodeUrl: "https://wallet-validator-canton.ledger.com",
|
12
|
+
nodeId: "figment",
|
12
13
|
// TBC
|
13
14
|
gatewayUrl: "https://canton-gateway.api.live.ledger.com",
|
14
15
|
minReserve: 0,
|
@@ -22,9 +23,12 @@ export const cantonConfig: Record<string, ConfigInfo> = {
|
|
22
23
|
type: "active",
|
23
24
|
},
|
24
25
|
nodeUrl: "https://wallet-validator-devnet-canton.ledger-test.com",
|
26
|
+
nodeId: "ledger-live-devnet-prd",
|
25
27
|
gatewayUrl: "https://canton-gateway.api.live.ledger-test.com",
|
26
28
|
minReserve: 0,
|
27
29
|
useGateway: true,
|
30
|
+
nativeInstrumentId:
|
31
|
+
"6e9fc50fb94e56751b49f09ba2dc84da53a9d7cff08115ebb4f6b7a12d0c990c:Splice.Amulet:Amulet",
|
28
32
|
},
|
29
33
|
},
|
30
34
|
config_currency_canton_network_localnet: {
|
@@ -34,6 +38,7 @@ export const cantonConfig: Record<string, ConfigInfo> = {
|
|
34
38
|
type: "active",
|
35
39
|
},
|
36
40
|
nodeUrl: "http://localhost:2975/v2",
|
41
|
+
nodeId: undefined,
|
37
42
|
gatewayUrl: undefined,
|
38
43
|
minReserve: 0,
|
39
44
|
useGateway: false,
|
@@ -3,7 +3,7 @@
|
|
3
3
|
exports[`hedera currency bridge scanAccounts hedera seed 1 1`] = `
|
4
4
|
[
|
5
5
|
{
|
6
|
-
"balance": "
|
6
|
+
"balance": "942076781",
|
7
7
|
"currencyId": "hedera",
|
8
8
|
"derivationMode": "hederaBip44",
|
9
9
|
"freshAddress": "0.0.1040977",
|
@@ -14,22 +14,22 @@ exports[`hedera currency bridge scanAccounts hedera seed 1 1`] = `
|
|
14
14
|
},
|
15
15
|
"id": "js:2:hedera:0.0.1040977:hederaBip44",
|
16
16
|
"index": 0,
|
17
|
-
"operationsCount":
|
17
|
+
"operationsCount": 41,
|
18
18
|
"pendingOperations": [],
|
19
19
|
"seedIdentifier": "9e92a312233d5fd6b5a723875aeea2cea81a8e48ffc00341cff6dffcfd3ab7f2",
|
20
|
-
"spendableBalance": "
|
20
|
+
"spendableBalance": "942076781",
|
21
21
|
"subAccounts": [],
|
22
22
|
"swapHistory": [],
|
23
23
|
"syncHash": "0x30c71e3f",
|
24
24
|
"used": true,
|
25
25
|
},
|
26
26
|
{
|
27
|
-
"balance": "
|
27
|
+
"balance": "20000000",
|
28
28
|
"id": "js:2:hedera:0.0.1040977:hederaBip44+hedera%2Fhts%2Ftune~!underscore!~fm~!underscore!~0.0.127877",
|
29
29
|
"operationsCount": 0,
|
30
30
|
"parentId": "js:2:hedera:0.0.1040977:hederaBip44",
|
31
31
|
"pendingOperations": [],
|
32
|
-
"spendableBalance": "
|
32
|
+
"spendableBalance": "20000000",
|
33
33
|
"swapHistory": [],
|
34
34
|
"tokenId": "hedera/hts/tune_fm_0.0.127877",
|
35
35
|
"type": "TokenAccountRaw",
|
@@ -141,12 +141,12 @@ exports[`hedera currency bridge scanAccounts hedera seed 1 1`] = `
|
|
141
141
|
"used": true,
|
142
142
|
},
|
143
143
|
{
|
144
|
-
"balance": "
|
144
|
+
"balance": "338000000",
|
145
145
|
"id": "js:2:hedera:0.0.8313485:hederaBip44+hedera%2Fhts%2Ftune~!underscore!~fm~!underscore!~0.0.127877",
|
146
146
|
"operationsCount": 0,
|
147
147
|
"parentId": "js:2:hedera:0.0.8313485:hederaBip44",
|
148
148
|
"pendingOperations": [],
|
149
|
-
"spendableBalance": "
|
149
|
+
"spendableBalance": "338000000",
|
150
150
|
"swapHistory": [],
|
151
151
|
"tokenId": "hedera/hts/tune_fm_0.0.127877",
|
152
152
|
"type": "TokenAccountRaw",
|
@@ -724,6 +724,26 @@ exports[`hedera currency bridge scanAccounts hedera seed 1 2`] = `
|
|
724
724
|
"type": "OUT",
|
725
725
|
"value": "1000054816",
|
726
726
|
},
|
727
|
+
{
|
728
|
+
"accountId": "js:2:hedera:0.0.1040977:hederaBip44",
|
729
|
+
"blockHash": null,
|
730
|
+
"blockHeight": 5,
|
731
|
+
"extra": {
|
732
|
+
"consensusTimestamp": "1756718310.549818000",
|
733
|
+
},
|
734
|
+
"fee": "452531",
|
735
|
+
"hasFailed": false,
|
736
|
+
"hash": "QDUwQqgrOgB4aPkMprRe3yiux277A7_PJVfpbv-P4GBMT33ahyXp8NQXbblLDA0c",
|
737
|
+
"id": "js:2:hedera:0.0.1040977:hederaBip44-QDUwQqgrOgB4aPkMprRe3yiux277A7_PJVfpbv-P4GBMT33ahyXp8NQXbblLDA0c-FEES",
|
738
|
+
"recipients": [
|
739
|
+
"0.0.8313485",
|
740
|
+
],
|
741
|
+
"senders": [
|
742
|
+
"0.0.1040977",
|
743
|
+
],
|
744
|
+
"type": "FEES",
|
745
|
+
"value": "452531",
|
746
|
+
},
|
727
747
|
{
|
728
748
|
"accountId": "js:2:hedera:0.0.1040977:hederaBip44",
|
729
749
|
"blockHash": null,
|
@@ -19,6 +19,8 @@ import { SolanaCoinConfig } from "@ledgerhq/coin-solana/config";
|
|
19
19
|
import { getCryptoCurrencyById } from "../../currencies";
|
20
20
|
import { signMessage } from "@ledgerhq/coin-solana/hw-signMessage";
|
21
21
|
import { LegacySignerSolana } from "@ledgerhq/live-signer-solana";
|
22
|
+
import { setShouldSkipTokenLoading } from "@ledgerhq/coin-solana/preload";
|
23
|
+
import { LiveConfig } from "@ledgerhq/live-config/LiveConfig";
|
22
24
|
import { getCryptoAssetsStore } from "../../bridge/crypto-assets";
|
23
25
|
|
24
26
|
const createSigner: CreateSigner<SolanaSigner> = (transport: Transport) =>
|
@@ -28,6 +30,13 @@ const getCurrencyConfig = () => {
|
|
28
30
|
return getCurrencyConfiguration<SolanaCoinConfig>(getCryptoCurrencyById("solana"));
|
29
31
|
};
|
30
32
|
|
33
|
+
try {
|
34
|
+
const isCALLazyLoadingEnabled = LiveConfig.getValueByKey("feature_cal_lazy_loading");
|
35
|
+
setShouldSkipTokenLoading(Boolean(isCALLazyLoadingEnabled));
|
36
|
+
} catch (error) {
|
37
|
+
setShouldSkipTokenLoading(false);
|
38
|
+
}
|
39
|
+
|
31
40
|
const bridge: Bridge<Transaction, SolanaAccount, TransactionStatus> = createBridges(
|
32
41
|
executeWithSigner(createSigner),
|
33
42
|
getCurrencyConfig,
|
@@ -108,6 +108,7 @@ export const DEFAULT_FEATURES: Features = {
|
|
108
108
|
postOnboardingAssetsTransfer: DEFAULT_FEATURE,
|
109
109
|
counterValue: DEFAULT_FEATURE,
|
110
110
|
mockFeature: DEFAULT_FEATURE,
|
111
|
+
calLedgerService: DEFAULT_FEATURE,
|
111
112
|
ptxServiceCtaExchangeDrawer: DEFAULT_FEATURE,
|
112
113
|
ptxServiceCtaScreens: DEFAULT_FEATURE,
|
113
114
|
ptxSwapReceiveTRC20WithoutTrx: DEFAULT_FEATURE,
|
@@ -624,8 +625,6 @@ export const DEFAULT_FEATURES: Features = {
|
|
624
625
|
enableModularization: false,
|
625
626
|
},
|
626
627
|
},
|
627
|
-
lldModularDrawerBackendData: DEFAULT_FEATURE,
|
628
|
-
llmModularDrawerBackendData: DEFAULT_FEATURE,
|
629
628
|
llmModularDrawer: {
|
630
629
|
...DEFAULT_FEATURE,
|
631
630
|
params: {
|