@ledgerhq/live-common 34.50.0-nightly.4 → 34.50.0-nightly.6
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/__tests__/test-helpers/environment.js +1 -1
- package/lib/__tests__/test-helpers/environment.js.map +1 -1
- package/lib/bridge/generic-alpaca/utils.d.ts +2 -2
- package/lib/bridge/generic-alpaca/utils.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/utils.js +18 -2
- package/lib/bridge/generic-alpaca/utils.js.map +1 -1
- package/lib/dada-client/entities/index.d.ts.map +1 -0
- package/lib/dada-client/entities/index.js.map +1 -0
- package/lib/{modularDrawer/data → dada-client}/entities/interestRateSelectors.d.ts +1 -1
- package/lib/dada-client/entities/interestRateSelectors.d.ts.map +1 -0
- package/lib/dada-client/entities/interestRateSelectors.js.map +1 -0
- package/lib/{modularDrawer/data → dada-client}/entities/marketSelectors.d.ts +1 -1
- package/lib/dada-client/entities/marketSelectors.d.ts.map +1 -0
- package/lib/dada-client/entities/marketSelectors.js.map +1 -0
- package/lib/dada-client/entities/selectorUtils.d.ts.map +1 -0
- package/lib/dada-client/entities/selectorUtils.js.map +1 -0
- package/lib/dada-client/hooks/__tests__/useAssetsData.test.d.ts.map +1 -0
- package/lib/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.js +2 -2
- package/lib/dada-client/hooks/__tests__/useAssetsData.test.js.map +1 -0
- package/lib/dada-client/hooks/useAssetData.d.ts +10 -0
- package/lib/dada-client/hooks/useAssetData.d.ts.map +1 -0
- package/lib/dada-client/hooks/useAssetData.js +23 -0
- package/lib/dada-client/hooks/useAssetData.js.map +1 -0
- package/lib/dada-client/hooks/useAssetsData.d.ts +19 -0
- package/lib/dada-client/hooks/useAssetsData.d.ts.map +1 -0
- package/lib/{modularDrawer → dada-client}/hooks/useAssetsData.js +1 -1
- package/lib/dada-client/hooks/useAssetsData.js.map +1 -0
- package/lib/dada-client/hooks/useInterestRatesByCurrencies.d.ts.map +1 -0
- package/lib/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.js +3 -3
- package/lib/dada-client/hooks/useInterestRatesByCurrencies.js.map +1 -0
- package/lib/dada-client/hooks/useMarketByCurrencies.d.ts.map +1 -0
- package/lib/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.js +5 -6
- package/lib/dada-client/hooks/useMarketByCurrencies.js.map +1 -0
- package/lib/{modularDrawer/data → dada-client}/state-manager/api.d.ts +134 -1
- package/lib/{modularDrawer/data → dada-client}/state-manager/api.d.ts.map +1 -1
- package/lib/{modularDrawer/data → dada-client}/state-manager/api.js +21 -2
- package/lib/dada-client/state-manager/api.js.map +1 -0
- package/lib/dada-client/state-manager/types.d.ts.map +1 -0
- package/lib/dada-client/state-manager/types.js.map +1 -0
- package/lib/dada-client/types/trend.d.ts +2 -0
- package/lib/dada-client/types/trend.d.ts.map +1 -0
- package/lib/dada-client/types/trend.js +3 -0
- package/lib/dada-client/types/trend.js.map +1 -0
- package/lib/deposit/useGroupedCurrenciesByProvider.hook.d.ts.map +1 -1
- package/lib/deposit/useGroupedCurrenciesByProvider.hook.js +6 -1
- package/lib/deposit/useGroupedCurrenciesByProvider.hook.js.map +1 -1
- package/lib/e2e/enum/Account.d.ts +0 -4
- package/lib/e2e/enum/Account.d.ts.map +1 -1
- package/lib/e2e/enum/Account.js +0 -4
- package/lib/e2e/enum/Account.js.map +1 -1
- package/lib/e2e/enum/AppInfos.d.ts +0 -1
- package/lib/e2e/enum/AppInfos.d.ts.map +1 -1
- package/lib/e2e/enum/AppInfos.js +0 -1
- package/lib/e2e/enum/AppInfos.js.map +1 -1
- package/lib/e2e/enum/Currency.d.ts +0 -2
- package/lib/e2e/enum/Currency.d.ts.map +1 -1
- package/lib/e2e/enum/Currency.js +0 -2
- package/lib/e2e/enum/Currency.js.map +1 -1
- package/lib/e2e/enum/Network.d.ts +0 -1
- package/lib/e2e/enum/Network.d.ts.map +1 -1
- package/lib/e2e/enum/Network.js +0 -1
- package/lib/e2e/enum/Network.js.map +1 -1
- package/lib/e2e/enum/Provider.d.ts +1 -0
- package/lib/e2e/enum/Provider.d.ts.map +1 -1
- package/lib/e2e/enum/Provider.js +1 -0
- package/lib/e2e/enum/Provider.js.map +1 -1
- package/lib/e2e/enum/TokenType.d.ts +1 -2
- package/lib/e2e/enum/TokenType.d.ts.map +1 -1
- package/lib/e2e/enum/TokenType.js +0 -1
- package/lib/e2e/enum/TokenType.js.map +1 -1
- package/lib/e2e/enum/TransactionStatus.d.ts +1 -4
- package/lib/e2e/enum/TransactionStatus.d.ts.map +1 -1
- package/lib/e2e/enum/TransactionStatus.js +0 -3
- package/lib/e2e/enum/TransactionStatus.js.map +1 -1
- package/lib/e2e/speculos.d.ts +0 -1
- package/lib/e2e/speculos.d.ts.map +1 -1
- package/lib/e2e/speculos.js +1 -23
- package/lib/e2e/speculos.js.map +1 -1
- package/lib/e2e/swap.d.ts +1 -1
- package/lib/e2e/swap.d.ts.map +1 -1
- package/lib/e2e/swap.js +6 -5
- package/lib/e2e/swap.js.map +1 -1
- package/lib/exchange/swap/updateAccountSwapStatus.d.ts.map +1 -1
- package/lib/exchange/swap/updateAccountSwapStatus.js +6 -4
- package/lib/exchange/swap/updateAccountSwapStatus.js.map +1 -1
- package/lib/families/canton/config.js +10 -10
- package/lib/families/canton/config.js.map +1 -1
- package/lib/families/evm/shouldUseReceiveOptions.d.ts +3 -0
- package/lib/families/evm/shouldUseReceiveOptions.d.ts.map +1 -0
- package/lib/families/evm/shouldUseReceiveOptions.js +5 -0
- package/lib/families/evm/shouldUseReceiveOptions.js.map +1 -0
- package/lib/families/evm/shouldUseReceiveOptions.test.d.ts +2 -0
- package/lib/families/evm/shouldUseReceiveOptions.test.d.ts.map +1 -0
- package/lib/families/evm/shouldUseReceiveOptions.test.js +26 -0
- package/lib/families/evm/shouldUseReceiveOptions.test.js.map +1 -0
- package/lib/hw/signMessage/index.d.ts.map +1 -1
- package/lib/hw/signMessage/index.js +7 -0
- package/lib/hw/signMessage/index.js.map +1 -1
- package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts +1 -1
- package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/modules/useLeftApyModule.js +1 -1
- package/lib/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
- package/lib/modularDrawer/hooks/modules/useLeftMarketTrendModule.js +1 -1
- package/lib/modularDrawer/hooks/modules/useLeftMarketTrendModule.js.map +1 -1
- package/lib/modularDrawer/hooks/modules/useRightMarketTrendModule.js +1 -1
- package/lib/modularDrawer/hooks/modules/useRightMarketTrendModule.js.map +1 -1
- package/lib/modularDrawer/hooks/useAssetAccountCounts.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/useAssetAccountCounts.js +2 -4
- package/lib/modularDrawer/hooks/useAssetAccountCounts.js.map +1 -1
- package/lib/modularDrawer/hooks/useLeftAccountsApy.js +1 -1
- package/lib/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -1
- package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts +2 -0
- package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/useRightBalanceNetwork.js +4 -9
- package/lib/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -1
- package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
- package/lib/modularDrawer/modules/createNetworkConfiguration.js +10 -1
- package/lib/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
- package/lib/modularDrawer/utils/getInterestRateForAsset.d.ts +1 -1
- package/lib/modularDrawer/utils/getInterestRateForAsset.d.ts.map +1 -1
- package/lib/modularDrawer/utils/type.d.ts +6 -3
- package/lib/modularDrawer/utils/type.d.ts.map +1 -1
- package/lib/wallet-api/CustomDeeplink/server.d.ts +16 -0
- package/lib/wallet-api/CustomDeeplink/server.d.ts.map +1 -0
- package/lib/wallet-api/CustomDeeplink/server.js +10 -0
- package/lib/wallet-api/CustomDeeplink/server.js.map +1 -0
- package/lib-es/__tests__/test-helpers/environment.js +1 -1
- package/lib-es/__tests__/test-helpers/environment.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/utils.d.ts +2 -2
- package/lib-es/bridge/generic-alpaca/utils.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/utils.js +18 -2
- package/lib-es/bridge/generic-alpaca/utils.js.map +1 -1
- package/lib-es/dada-client/entities/index.d.ts.map +1 -0
- package/lib-es/dada-client/entities/index.js.map +1 -0
- package/lib-es/{modularDrawer/data → dada-client}/entities/interestRateSelectors.d.ts +1 -1
- package/lib-es/dada-client/entities/interestRateSelectors.d.ts.map +1 -0
- package/lib-es/dada-client/entities/interestRateSelectors.js.map +1 -0
- package/lib-es/{modularDrawer/data → dada-client}/entities/marketSelectors.d.ts +1 -1
- package/lib-es/dada-client/entities/marketSelectors.d.ts.map +1 -0
- package/lib-es/dada-client/entities/marketSelectors.js.map +1 -0
- package/lib-es/dada-client/entities/selectorUtils.d.ts.map +1 -0
- package/lib-es/dada-client/entities/selectorUtils.js.map +1 -0
- package/lib-es/dada-client/hooks/__tests__/useAssetsData.test.d.ts.map +1 -0
- package/lib-es/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.js +2 -2
- package/lib-es/dada-client/hooks/__tests__/useAssetsData.test.js.map +1 -0
- package/lib-es/dada-client/hooks/useAssetData.d.ts +10 -0
- package/lib-es/dada-client/hooks/useAssetData.d.ts.map +1 -0
- package/lib-es/dada-client/hooks/useAssetData.js +19 -0
- package/lib-es/dada-client/hooks/useAssetData.js.map +1 -0
- package/lib-es/dada-client/hooks/useAssetsData.d.ts +19 -0
- package/lib-es/dada-client/hooks/useAssetsData.d.ts.map +1 -0
- package/lib-es/{modularDrawer → dada-client}/hooks/useAssetsData.js +1 -1
- package/lib-es/dada-client/hooks/useAssetsData.js.map +1 -0
- package/lib-es/dada-client/hooks/useInterestRatesByCurrencies.d.ts.map +1 -0
- package/lib-es/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.js +3 -3
- package/lib-es/dada-client/hooks/useInterestRatesByCurrencies.js.map +1 -0
- package/lib-es/dada-client/hooks/useMarketByCurrencies.d.ts.map +1 -0
- package/lib-es/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.js +5 -6
- package/lib-es/dada-client/hooks/useMarketByCurrencies.js.map +1 -0
- package/lib-es/{modularDrawer/data → dada-client}/state-manager/api.d.ts +134 -1
- package/lib-es/{modularDrawer/data → dada-client}/state-manager/api.d.ts.map +1 -1
- package/lib-es/{modularDrawer/data → dada-client}/state-manager/api.js +20 -1
- package/lib-es/dada-client/state-manager/api.js.map +1 -0
- package/lib-es/dada-client/state-manager/types.d.ts.map +1 -0
- package/lib-es/dada-client/state-manager/types.js.map +1 -0
- package/lib-es/dada-client/types/trend.d.ts +2 -0
- package/lib-es/dada-client/types/trend.d.ts.map +1 -0
- package/lib-es/dada-client/types/trend.js +2 -0
- package/lib-es/dada-client/types/trend.js.map +1 -0
- package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.d.ts.map +1 -1
- package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.js +6 -1
- package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.js.map +1 -1
- package/lib-es/e2e/enum/Account.d.ts +0 -4
- package/lib-es/e2e/enum/Account.d.ts.map +1 -1
- package/lib-es/e2e/enum/Account.js +0 -4
- package/lib-es/e2e/enum/Account.js.map +1 -1
- package/lib-es/e2e/enum/AppInfos.d.ts +0 -1
- package/lib-es/e2e/enum/AppInfos.d.ts.map +1 -1
- package/lib-es/e2e/enum/AppInfos.js +0 -1
- package/lib-es/e2e/enum/AppInfos.js.map +1 -1
- package/lib-es/e2e/enum/Currency.d.ts +0 -2
- package/lib-es/e2e/enum/Currency.d.ts.map +1 -1
- package/lib-es/e2e/enum/Currency.js +0 -2
- package/lib-es/e2e/enum/Currency.js.map +1 -1
- package/lib-es/e2e/enum/Network.d.ts +0 -1
- package/lib-es/e2e/enum/Network.d.ts.map +1 -1
- package/lib-es/e2e/enum/Network.js +0 -1
- package/lib-es/e2e/enum/Network.js.map +1 -1
- package/lib-es/e2e/enum/Provider.d.ts +1 -0
- package/lib-es/e2e/enum/Provider.d.ts.map +1 -1
- package/lib-es/e2e/enum/Provider.js +1 -0
- package/lib-es/e2e/enum/Provider.js.map +1 -1
- package/lib-es/e2e/enum/TokenType.d.ts +1 -2
- package/lib-es/e2e/enum/TokenType.d.ts.map +1 -1
- package/lib-es/e2e/enum/TokenType.js +0 -1
- package/lib-es/e2e/enum/TokenType.js.map +1 -1
- package/lib-es/e2e/enum/TransactionStatus.d.ts +1 -4
- package/lib-es/e2e/enum/TransactionStatus.d.ts.map +1 -1
- package/lib-es/e2e/enum/TransactionStatus.js +0 -3
- package/lib-es/e2e/enum/TransactionStatus.js.map +1 -1
- package/lib-es/e2e/speculos.d.ts +0 -1
- package/lib-es/e2e/speculos.d.ts.map +1 -1
- package/lib-es/e2e/speculos.js +0 -21
- package/lib-es/e2e/speculos.js.map +1 -1
- package/lib-es/e2e/swap.d.ts +1 -1
- package/lib-es/e2e/swap.d.ts.map +1 -1
- package/lib-es/e2e/swap.js +6 -5
- package/lib-es/e2e/swap.js.map +1 -1
- package/lib-es/exchange/swap/updateAccountSwapStatus.d.ts.map +1 -1
- package/lib-es/exchange/swap/updateAccountSwapStatus.js +6 -4
- package/lib-es/exchange/swap/updateAccountSwapStatus.js.map +1 -1
- package/lib-es/families/canton/config.js +10 -10
- package/lib-es/families/canton/config.js.map +1 -1
- package/lib-es/families/evm/shouldUseReceiveOptions.d.ts +3 -0
- package/lib-es/families/evm/shouldUseReceiveOptions.d.ts.map +1 -0
- package/lib-es/families/evm/shouldUseReceiveOptions.js +3 -0
- package/lib-es/families/evm/shouldUseReceiveOptions.js.map +1 -0
- package/lib-es/families/evm/shouldUseReceiveOptions.test.d.ts +2 -0
- package/lib-es/families/evm/shouldUseReceiveOptions.test.d.ts.map +1 -0
- package/lib-es/families/evm/shouldUseReceiveOptions.test.js +21 -0
- package/lib-es/families/evm/shouldUseReceiveOptions.test.js.map +1 -0
- package/lib-es/hw/signMessage/index.d.ts.map +1 -1
- package/lib-es/hw/signMessage/index.js +7 -0
- package/lib-es/hw/signMessage/index.js.map +1 -1
- package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts +1 -1
- package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js +1 -1
- package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
- package/lib-es/modularDrawer/hooks/modules/useLeftMarketTrendModule.js +1 -1
- package/lib-es/modularDrawer/hooks/modules/useLeftMarketTrendModule.js.map +1 -1
- package/lib-es/modularDrawer/hooks/modules/useRightMarketTrendModule.js +1 -1
- package/lib-es/modularDrawer/hooks/modules/useRightMarketTrendModule.js.map +1 -1
- package/lib-es/modularDrawer/hooks/useAssetAccountCounts.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/useAssetAccountCounts.js +2 -4
- package/lib-es/modularDrawer/hooks/useAssetAccountCounts.js.map +1 -1
- package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js +1 -1
- package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -1
- package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts +2 -0
- package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js +4 -9
- package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -1
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.js +10 -1
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
- package/lib-es/modularDrawer/utils/getInterestRateForAsset.d.ts +1 -1
- package/lib-es/modularDrawer/utils/getInterestRateForAsset.d.ts.map +1 -1
- package/lib-es/modularDrawer/utils/type.d.ts +6 -3
- package/lib-es/modularDrawer/utils/type.d.ts.map +1 -1
- package/lib-es/wallet-api/CustomDeeplink/server.d.ts +16 -0
- package/lib-es/wallet-api/CustomDeeplink/server.d.ts.map +1 -0
- package/lib-es/wallet-api/CustomDeeplink/server.js +6 -0
- package/lib-es/wallet-api/CustomDeeplink/server.js.map +1 -0
- package/package.json +39 -39
- package/src/__tests__/test-helpers/environment.ts +1 -1
- package/src/bridge/generic-alpaca/utils.ts +20 -4
- package/src/dada-client/README.md +93 -0
- package/src/{modularDrawer/data → dada-client}/entities/interestRateSelectors.ts +1 -1
- package/src/{modularDrawer/data → dada-client}/entities/marketSelectors.ts +1 -1
- package/src/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.ts +2 -2
- package/src/dada-client/hooks/useAssetData.ts +22 -0
- package/src/{modularDrawer → dada-client}/hooks/useAssetsData.ts +2 -2
- package/src/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.ts +4 -4
- package/src/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.ts +5 -6
- package/src/{modularDrawer/data → dada-client}/state-manager/api.ts +22 -1
- package/src/dada-client/types/trend.ts +1 -0
- package/src/deposit/useGroupedCurrenciesByProvider.hook.ts +8 -2
- package/src/e2e/enum/Account.ts +0 -31
- package/src/e2e/enum/AppInfos.ts +0 -2
- package/src/e2e/enum/Currency.ts +0 -10
- package/src/e2e/enum/Network.ts +0 -1
- package/src/e2e/enum/Provider.ts +1 -0
- package/src/e2e/enum/TokenType.ts +0 -1
- package/src/e2e/enum/TransactionStatus.ts +0 -3
- package/src/e2e/speculos.ts +0 -22
- package/src/e2e/swap.ts +6 -6
- package/src/exchange/swap/updateAccountSwapStatus.ts +8 -6
- package/src/families/canton/config.ts +10 -10
- package/src/families/evm/shouldUseReceiveOptions.test.ts +25 -0
- package/src/families/evm/shouldUseReceiveOptions.ts +4 -0
- package/src/hw/signMessage/index.ts +10 -0
- package/src/modularDrawer/hooks/modules/useLeftApyModule.tsx +2 -2
- package/src/modularDrawer/hooks/modules/useLeftMarketTrendModule.tsx +1 -1
- package/src/modularDrawer/hooks/modules/useRightMarketTrendModule.tsx +1 -1
- package/src/modularDrawer/hooks/useAssetAccountCounts.tsx +8 -10
- package/src/modularDrawer/hooks/useLeftAccountsApy.tsx +1 -1
- package/src/modularDrawer/hooks/useRightBalanceNetwork.tsx +4 -13
- package/src/modularDrawer/modules/createNetworkConfiguration.ts +20 -2
- package/src/modularDrawer/utils/__tests__/getInterestRateForAsset.test.ts +1 -1
- package/src/modularDrawer/utils/getInterestRateForAsset.ts +1 -1
- package/src/modularDrawer/utils/type.ts +5 -4
- package/src/wallet-api/CustomDeeplink/server.ts +23 -0
- package/lib/e2e/families/sui.d.ts +0 -2
- package/lib/e2e/families/sui.d.ts.map +0 -1
- package/lib/e2e/families/sui.js +0 -11
- package/lib/e2e/families/sui.js.map +0 -1
- package/lib/modularDrawer/data/entities/index.d.ts.map +0 -1
- package/lib/modularDrawer/data/entities/index.js.map +0 -1
- package/lib/modularDrawer/data/entities/interestRateSelectors.d.ts.map +0 -1
- package/lib/modularDrawer/data/entities/interestRateSelectors.js.map +0 -1
- package/lib/modularDrawer/data/entities/marketSelectors.d.ts.map +0 -1
- package/lib/modularDrawer/data/entities/marketSelectors.js.map +0 -1
- package/lib/modularDrawer/data/entities/selectorUtils.d.ts.map +0 -1
- package/lib/modularDrawer/data/entities/selectorUtils.js.map +0 -1
- package/lib/modularDrawer/data/state-manager/api.js.map +0 -1
- package/lib/modularDrawer/data/state-manager/types.d.ts.map +0 -1
- package/lib/modularDrawer/data/state-manager/types.js.map +0 -1
- package/lib/modularDrawer/hooks/__test__/useAssetsData.test.d.ts.map +0 -1
- package/lib/modularDrawer/hooks/__test__/useAssetsData.test.js.map +0 -1
- package/lib/modularDrawer/hooks/useAssetsData.d.ts +0 -19
- package/lib/modularDrawer/hooks/useAssetsData.d.ts.map +0 -1
- package/lib/modularDrawer/hooks/useAssetsData.js.map +0 -1
- package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts.map +0 -1
- package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.js.map +0 -1
- package/lib/modularDrawer/hooks/useMarketByCurrencies.d.ts.map +0 -1
- package/lib/modularDrawer/hooks/useMarketByCurrencies.js.map +0 -1
- package/lib-es/e2e/families/sui.d.ts +0 -2
- package/lib-es/e2e/families/sui.d.ts.map +0 -1
- package/lib-es/e2e/families/sui.js +0 -7
- package/lib-es/e2e/families/sui.js.map +0 -1
- package/lib-es/modularDrawer/data/entities/index.d.ts.map +0 -1
- package/lib-es/modularDrawer/data/entities/index.js.map +0 -1
- package/lib-es/modularDrawer/data/entities/interestRateSelectors.d.ts.map +0 -1
- package/lib-es/modularDrawer/data/entities/interestRateSelectors.js.map +0 -1
- package/lib-es/modularDrawer/data/entities/marketSelectors.d.ts.map +0 -1
- package/lib-es/modularDrawer/data/entities/marketSelectors.js.map +0 -1
- package/lib-es/modularDrawer/data/entities/selectorUtils.d.ts.map +0 -1
- package/lib-es/modularDrawer/data/entities/selectorUtils.js.map +0 -1
- package/lib-es/modularDrawer/data/state-manager/api.js.map +0 -1
- package/lib-es/modularDrawer/data/state-manager/types.d.ts.map +0 -1
- package/lib-es/modularDrawer/data/state-manager/types.js.map +0 -1
- package/lib-es/modularDrawer/hooks/__test__/useAssetsData.test.d.ts.map +0 -1
- package/lib-es/modularDrawer/hooks/__test__/useAssetsData.test.js.map +0 -1
- package/lib-es/modularDrawer/hooks/useAssetsData.d.ts +0 -19
- package/lib-es/modularDrawer/hooks/useAssetsData.d.ts.map +0 -1
- package/lib-es/modularDrawer/hooks/useAssetsData.js.map +0 -1
- package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts.map +0 -1
- package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.js.map +0 -1
- package/lib-es/modularDrawer/hooks/useMarketByCurrencies.d.ts.map +0 -1
- package/lib-es/modularDrawer/hooks/useMarketByCurrencies.js.map +0 -1
- package/src/e2e/families/sui.ts +0 -7
- /package/lib/{modularDrawer/data → dada-client}/entities/index.d.ts +0 -0
- /package/lib/{modularDrawer/data → dada-client}/entities/index.js +0 -0
- /package/lib/{modularDrawer/data → dada-client}/entities/interestRateSelectors.js +0 -0
- /package/lib/{modularDrawer/data → dada-client}/entities/marketSelectors.js +0 -0
- /package/lib/{modularDrawer/data → dada-client}/entities/selectorUtils.d.ts +0 -0
- /package/lib/{modularDrawer/data → dada-client}/entities/selectorUtils.js +0 -0
- /package/lib/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.d.ts +0 -0
- /package/lib/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.d.ts +0 -0
- /package/lib/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.d.ts +0 -0
- /package/lib/{modularDrawer/data → dada-client}/state-manager/types.d.ts +0 -0
- /package/lib/{modularDrawer/data → dada-client}/state-manager/types.js +0 -0
- /package/lib-es/{modularDrawer/data → dada-client}/entities/index.d.ts +0 -0
- /package/lib-es/{modularDrawer/data → dada-client}/entities/index.js +0 -0
- /package/lib-es/{modularDrawer/data → dada-client}/entities/interestRateSelectors.js +0 -0
- /package/lib-es/{modularDrawer/data → dada-client}/entities/marketSelectors.js +0 -0
- /package/lib-es/{modularDrawer/data → dada-client}/entities/selectorUtils.d.ts +0 -0
- /package/lib-es/{modularDrawer/data → dada-client}/entities/selectorUtils.js +0 -0
- /package/lib-es/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.d.ts +0 -0
- /package/lib-es/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.d.ts +0 -0
- /package/lib-es/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.d.ts +0 -0
- /package/lib-es/{modularDrawer/data → dada-client}/state-manager/types.d.ts +0 -0
- /package/lib-es/{modularDrawer/data → dada-client}/state-manager/types.js +0 -0
- /package/src/{modularDrawer/data → dada-client}/entities/index.ts +0 -0
- /package/src/{modularDrawer/data → dada-client}/entities/selectorUtils.ts +0 -0
- /package/src/{modularDrawer/data → dada-client}/state-manager/types.ts +0 -0
@@ -3,6 +3,7 @@ import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
|
|
3
3
|
import { useEffect, useMemo, useState } from "react";
|
4
4
|
import { isCurrencySupported, listSupportedCurrencies, listTokens } from "../currencies";
|
5
5
|
import { loadCurrenciesByProvider } from "./helper";
|
6
|
+
import { useCurrenciesUnderFeatureFlag } from "../modularDrawer/hooks/useCurrenciesUnderFeatureFlag";
|
6
7
|
|
7
8
|
// FIXME(LIVE-10505): bad performane & shared utility to move to coin-framework
|
8
9
|
const listSupportedTokens = () => listTokens().filter(t => isCurrencySupported(t.parentCurrency));
|
@@ -16,11 +17,16 @@ export const useGroupedCurrenciesByProvider = (
|
|
16
17
|
withLoading?: boolean,
|
17
18
|
): GroupedCurrencies | LoadingBasedGroupedCurrencies => {
|
18
19
|
const [result, setResult] = useState(initialResult);
|
20
|
+
// the import is from MAD but as this hook will be removed, it's fine to keep it here
|
21
|
+
const { deactivatedCurrencyIds } = useCurrenciesUnderFeatureFlag();
|
19
22
|
|
20
23
|
const [loadingStatus, setLoadingStatus] = useState<LoadingStatus>(LoadingStatus.Idle);
|
21
24
|
const coinsAndTokensSupported = useMemo(
|
22
|
-
() =>
|
23
|
-
|
25
|
+
() =>
|
26
|
+
(listSupportedCurrencies() as CryptoOrTokenCurrency[])
|
27
|
+
.concat(listSupportedTokens())
|
28
|
+
.filter(c => !deactivatedCurrencyIds.has(c.id)),
|
29
|
+
[deactivatedCurrencyIds],
|
24
30
|
);
|
25
31
|
|
26
32
|
// Get mapped assets filtered by supported & sorted currencies, grouped by provider id
|
package/src/e2e/enum/Account.ts
CHANGED
@@ -526,19 +526,6 @@ export class Account {
|
|
526
526
|
1,
|
527
527
|
);
|
528
528
|
|
529
|
-
static readonly SUI_1 = new Account(
|
530
|
-
Currency.SUI,
|
531
|
-
"Sui 1",
|
532
|
-
"0xc6169bcce8718609e43d179b087e6c1e2ac28e5325660af34d22fb5ce284031e",
|
533
|
-
0,
|
534
|
-
);
|
535
|
-
static readonly SUI_2 = new Account(
|
536
|
-
Currency.SUI,
|
537
|
-
"Sui 2",
|
538
|
-
"0x6644c1ce77c5e5ef8d8bd3ae2a4e18239e5d418a5e0800ed5037818399e3a7f6",
|
539
|
-
1,
|
540
|
-
);
|
541
|
-
|
542
529
|
static readonly EMPTY = new Account(Currency.BTC, "Empty", "", 0);
|
543
530
|
}
|
544
531
|
|
@@ -653,24 +640,6 @@ export class TokenAccount extends Account {
|
|
653
640
|
TokenType.TRC20,
|
654
641
|
Account.TRX_1,
|
655
642
|
);
|
656
|
-
|
657
|
-
static readonly SUI_USDC_1 = new TokenAccount(
|
658
|
-
Currency.SUI_USDC,
|
659
|
-
"SUI USDC 1",
|
660
|
-
Account.SUI_1.address,
|
661
|
-
0,
|
662
|
-
TokenType.ERC20,
|
663
|
-
Account.SUI_1,
|
664
|
-
);
|
665
|
-
|
666
|
-
static readonly SUI_USDC_2 = new TokenAccount(
|
667
|
-
Currency.SUI_USDC,
|
668
|
-
"SUI USDC 2",
|
669
|
-
Account.SUI_2.address,
|
670
|
-
1,
|
671
|
-
TokenType.ERC20,
|
672
|
-
Account.SUI_2,
|
673
|
-
);
|
674
643
|
}
|
675
644
|
|
676
645
|
export type AccountType = Account | TokenAccount;
|
package/src/e2e/enum/AppInfos.ts
CHANGED
package/src/e2e/enum/Currency.ts
CHANGED
@@ -83,7 +83,6 @@ export class Currency {
|
|
83
83
|
static readonly XLM = new Currency("Stellar", "XLM", "stellar", AppInfos.STELLAR, [
|
84
84
|
Network.STELLAR,
|
85
85
|
]);
|
86
|
-
static readonly SUI = new Currency("Sui", "SUI", "sui", AppInfos.SUI, [Network.SUI]);
|
87
86
|
static readonly BCH = new Currency("Bitcoin Cash", "BCH", "bitcoin_cash", AppInfos.BITCOIN_CASH, [
|
88
87
|
Network.BITCOIN_CASH,
|
89
88
|
]);
|
@@ -208,13 +207,4 @@ export class Currency {
|
|
208
207
|
static readonly OP = new Currency("OP Mainnet", "OP", "optimism", AppInfos.ETHEREUM, [
|
209
208
|
Network.OPTIMISM,
|
210
209
|
]);
|
211
|
-
|
212
|
-
static readonly SUI_USDC = new Currency(
|
213
|
-
"USDC",
|
214
|
-
"USDC",
|
215
|
-
"sui/coin/usdc_0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::usdc",
|
216
|
-
AppInfos.SUI,
|
217
|
-
[Network.SUI],
|
218
|
-
"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7",
|
219
|
-
);
|
220
210
|
}
|
package/src/e2e/enum/Network.ts
CHANGED
package/src/e2e/enum/Provider.ts
CHANGED
@@ -20,6 +20,7 @@ export class Provider {
|
|
20
20
|
static readonly STADER_LABS = new Provider("stader-eth", "Stader Labs", false, true, true);
|
21
21
|
static readonly LIDO = new Provider("lido", "Lido", false, true, true);
|
22
22
|
static readonly TRANSAK = new Provider("transak", "Transak", false, true, true);
|
23
|
+
static readonly NEAR_INTENTS = new Provider("nearintents", "NEAR Intents", false, true, true);
|
23
24
|
|
24
25
|
static getNameByUiName(uiName: string): string {
|
25
26
|
const provider = Object.values(Provider).find(p => p.uiName === uiName);
|
@@ -2,11 +2,8 @@ export enum TransactionStatus {
|
|
2
2
|
RECEIVED = "Received",
|
3
3
|
DELEGATED = "Delegated",
|
4
4
|
NFT_RECEIVED = "NFT Received",
|
5
|
-
SEND = "Send",
|
6
5
|
SENT = "Sent",
|
7
6
|
FEES = "Fees",
|
8
7
|
STAKED = "Staked",
|
9
8
|
SENDING = "Sending",
|
10
|
-
TRANSACTION_SENT = "Transaction sent",
|
11
|
-
CONFIRMED = "Confirmed",
|
12
9
|
}
|
package/src/e2e/speculos.ts
CHANGED
@@ -42,7 +42,6 @@ import { Swap } from "./models/Swap";
|
|
42
42
|
import { delegateOsmosis } from "./families/osmosis";
|
43
43
|
import { AppInfos } from "./enum/AppInfos";
|
44
44
|
import { DEVICE_LABELS_CONFIG } from "./data/deviceLabelsData";
|
45
|
-
import { sendSui } from "./families/sui";
|
46
45
|
|
47
46
|
const isSpeculosRemote = process.env.REMOTE_SPECULOS === "true";
|
48
47
|
|
@@ -224,14 +223,6 @@ export const specs: Specs = {
|
|
224
223
|
},
|
225
224
|
dependency: "",
|
226
225
|
},
|
227
|
-
Sui: {
|
228
|
-
currency: getCryptoCurrencyById("sui"),
|
229
|
-
appQuery: {
|
230
|
-
model: getSpeculosModel(),
|
231
|
-
appName: "Sui",
|
232
|
-
},
|
233
|
-
dependency: "",
|
234
|
-
},
|
235
226
|
Bitcoin_Cash: {
|
236
227
|
currency: getCryptoCurrencyById("bitcoin_cash"),
|
237
228
|
appQuery: {
|
@@ -641,10 +632,6 @@ export async function goToSettings() {
|
|
641
632
|
await pressBoth();
|
642
633
|
}
|
643
634
|
|
644
|
-
export async function providePublicKey() {
|
645
|
-
await pressRightButton();
|
646
|
-
}
|
647
|
-
|
648
635
|
type DeviceLabelsReturn = {
|
649
636
|
delegateConfirmLabel: string;
|
650
637
|
delegateVerifyLabel: string;
|
@@ -673,9 +660,6 @@ export function getDeviceLabels(appInfo: AppInfos): DeviceLabelsReturn {
|
|
673
660
|
}
|
674
661
|
|
675
662
|
export async function expectValidAddressDevice(account: Account, addressDisplayed: string) {
|
676
|
-
if (account.currency === Currency.SUI_USDC) {
|
677
|
-
providePublicKey();
|
678
|
-
}
|
679
663
|
const { receiveVerifyLabel, receiveConfirmLabel } = getDeviceLabels(account.currency.speculosApp);
|
680
664
|
|
681
665
|
await waitFor(receiveVerifyLabel);
|
@@ -737,12 +721,6 @@ export async function signSendTransaction(tx: Transaction) {
|
|
737
721
|
case Currency.HBAR:
|
738
722
|
await sendHedera();
|
739
723
|
break;
|
740
|
-
case Currency.SUI:
|
741
|
-
await sendSui();
|
742
|
-
break;
|
743
|
-
case Currency.SUI_USDC:
|
744
|
-
await sendSui();
|
745
|
-
break;
|
746
724
|
default:
|
747
725
|
throw new Error(`Unsupported currency: ${currencyName.ticker}`);
|
748
726
|
}
|
package/src/e2e/swap.ts
CHANGED
@@ -30,16 +30,16 @@ export async function getMinimumSwapAmount(AccountFrom: Account, AccountTo: Acco
|
|
30
30
|
|
31
31
|
const minimumAmounts = data
|
32
32
|
.filter((item: any) => item.parameter?.minAmount !== undefined)
|
33
|
-
.map((item: any) => parseFloat(item.parameter.minAmount))
|
33
|
+
.map((item: any) => parseFloat(item.parameter.minAmount))
|
34
|
+
.filter((amount: number) => !isNaN(amount));
|
34
35
|
|
35
|
-
|
36
|
-
|
37
|
-
if (validMinimumAmounts.length === 0) {
|
36
|
+
if (minimumAmounts.length === 0) {
|
38
37
|
throw new Error("No valid minimum amounts returned from swap quote API.");
|
39
38
|
}
|
40
39
|
|
41
|
-
return Math.max(...
|
40
|
+
return Math.max(...minimumAmounts);
|
42
41
|
} catch (error) {
|
43
|
-
console.error(error);
|
42
|
+
console.error("Error fetching swap minimum amount:", error);
|
43
|
+
throw error;
|
44
44
|
}
|
45
45
|
}
|
@@ -4,6 +4,8 @@ import type { TokenAccount, Account, SwapOperation, Operation } from "@ledgerhq/
|
|
4
4
|
import type { SwapStatus, SwapStatusRequest, UpdateAccountSwapStatus } from "./types";
|
5
5
|
import { log } from "@ledgerhq/logs";
|
6
6
|
|
7
|
+
const PROVIDERS_REQUIRING_OPERATION_ID = ["thorswap", "lifi", "nearintents"];
|
8
|
+
|
7
9
|
const maybeGetUpdatedSwapHistory = async (
|
8
10
|
swapHistory: SwapOperation[] | null | undefined,
|
9
11
|
operations: Operation[] | null | undefined,
|
@@ -38,15 +40,15 @@ const maybeGetUpdatedSwapHistory = async (
|
|
38
40
|
}
|
39
41
|
} else {
|
40
42
|
// Collect all others swaps that need status update via getMultipleStatus
|
41
|
-
const
|
42
|
-
|
43
|
-
|
44
|
-
|
43
|
+
const requiresOperationId = PROVIDERS_REQUIRING_OPERATION_ID.includes(provider);
|
44
|
+
const relatedTransactionId = requiresOperationId
|
45
|
+
? operations?.find(op => op.id.includes(operationId))?.hash
|
46
|
+
: undefined;
|
45
47
|
pendingSwapIds.push({
|
46
48
|
provider,
|
47
49
|
swapId,
|
48
|
-
transactionId,
|
49
|
-
...(
|
50
|
+
transactionId: relatedTransactionId,
|
51
|
+
...(requiresOperationId && { operationId }),
|
50
52
|
});
|
51
53
|
}
|
52
54
|
}
|
@@ -7,8 +7,8 @@ export const cantonConfig: Record<string, ConfigInfo> = {
|
|
7
7
|
status: {
|
8
8
|
type: "active",
|
9
9
|
},
|
10
|
-
nodeUrl: "https://canton-gateway.api.live.ledger.com/v1/node/ledger-mainnet
|
11
|
-
nodeId: "ledger-live-mainnet
|
10
|
+
nodeUrl: "https://canton-gateway.api.live.ledger.com/v1/node/ledger-live-mainnet",
|
11
|
+
nodeId: "ledger-live-mainnet",
|
12
12
|
gatewayUrl: "https://canton-gateway.api.live.ledger.com",
|
13
13
|
minReserve: 0,
|
14
14
|
useGateway: true,
|
@@ -22,8 +22,8 @@ export const cantonConfig: Record<string, ConfigInfo> = {
|
|
22
22
|
status: {
|
23
23
|
type: "active",
|
24
24
|
},
|
25
|
-
nodeUrl: "https://
|
26
|
-
nodeId: "ledger-devnet
|
25
|
+
nodeUrl: "https://canton-gateway.api.live.ledger.com/v1/node/ledger-live-devnet",
|
26
|
+
nodeId: "ledger-live-devnet",
|
27
27
|
gatewayUrl: "https://canton-gateway.api.live.ledger-test.com",
|
28
28
|
minReserve: 0,
|
29
29
|
useGateway: true,
|
@@ -31,19 +31,19 @@ export const cantonConfig: Record<string, ConfigInfo> = {
|
|
31
31
|
nativeInstrumentId: "Amulet",
|
32
32
|
},
|
33
33
|
},
|
34
|
-
|
34
|
+
config_currency_canton_network_testnet: {
|
35
35
|
type: "object",
|
36
36
|
default: {
|
37
37
|
status: {
|
38
38
|
type: "active",
|
39
39
|
},
|
40
|
-
nodeUrl: "
|
41
|
-
nodeId:
|
42
|
-
gatewayUrl:
|
40
|
+
nodeUrl: "https://canton-gateway.api.live.ledger.com/v1/node/ledger-live-testnet",
|
41
|
+
nodeId: "ledger-live-testnet",
|
42
|
+
gatewayUrl: "https://canton-gateway.api.live.ledger-test.com",
|
43
43
|
minReserve: 0,
|
44
|
-
useGateway: false,
|
45
|
-
networkType: "localnet",
|
46
44
|
nativeInstrumentId: "Amulet",
|
45
|
+
useGateway: true,
|
46
|
+
networkType: "testnet",
|
47
47
|
},
|
48
48
|
},
|
49
49
|
};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import shouldUseReceiveOptions from "./shouldUseReceiveOptions";
|
2
|
+
|
3
|
+
describe("shouldUseReceiveOptions", () => {
|
4
|
+
it("returns true for 'ethereum/erc20/usd__coin'", () => {
|
5
|
+
expect(shouldUseReceiveOptions("ethereum/erc20/usd__coin")).toBe(true);
|
6
|
+
});
|
7
|
+
|
8
|
+
it("returns true for 'ethereum'", () => {
|
9
|
+
expect(shouldUseReceiveOptions("ethereum")).toBe(true);
|
10
|
+
});
|
11
|
+
|
12
|
+
it("returns false for undefined", () => {
|
13
|
+
expect(shouldUseReceiveOptions(undefined)).toBe(false);
|
14
|
+
});
|
15
|
+
|
16
|
+
it("returns false for empty string", () => {
|
17
|
+
expect(shouldUseReceiveOptions("")).toBe(false);
|
18
|
+
});
|
19
|
+
|
20
|
+
it("returns false for other currency ids", () => {
|
21
|
+
expect(shouldUseReceiveOptions("bitcoin")).toBe(false);
|
22
|
+
expect(shouldUseReceiveOptions("ethereum/erc20/other_token")).toBe(false);
|
23
|
+
expect(shouldUseReceiveOptions("usd__coin")).toBe(false);
|
24
|
+
});
|
25
|
+
});
|
@@ -13,6 +13,7 @@ import type { ConnectAppEvent, Input as ConnectAppInput } from "../connectApp";
|
|
13
13
|
import { withDevice } from "../deviceAccess";
|
14
14
|
import type { SignMessage, Result } from "./types";
|
15
15
|
import { messageSigner as ACREMessageSigner } from "../../families/bitcoin/ACRESetup";
|
16
|
+
import { decodeAccountId } from "../../account";
|
16
17
|
|
17
18
|
export const prepareMessageToSign = (account: Account, message: string): AnyMessage => {
|
18
19
|
const utf8Message = Buffer.from(message, "hex").toString();
|
@@ -91,6 +92,15 @@ export const signMessageExec = ({ request, deviceId }: Input): Observable<Result
|
|
91
92
|
throw new Error("account is required");
|
92
93
|
}
|
93
94
|
|
95
|
+
const { type } = decodeAccountId(request.account.id);
|
96
|
+
if (type === "mock") {
|
97
|
+
return from(
|
98
|
+
Promise.resolve({
|
99
|
+
signature: "mockedSignature",
|
100
|
+
}),
|
101
|
+
);
|
102
|
+
}
|
103
|
+
|
94
104
|
const result: Observable<Result> = withDevice(deviceId)(transport =>
|
95
105
|
from(signMessage(transport, request.account!, request.message)),
|
96
106
|
);
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useMemo } from "react";
|
2
2
|
import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
|
3
|
-
import { ApyType } from "
|
4
|
-
import { useInterestRatesByCurrencies } from "
|
3
|
+
import { ApyType } from "../../../dada-client/types/trend";
|
4
|
+
import { useInterestRatesByCurrencies } from "../../../dada-client/hooks/useInterestRatesByCurrencies";
|
5
5
|
import { getInterestRateForAsset } from "../../utils/getInterestRateForAsset";
|
6
6
|
|
7
7
|
const createApyItem = ({
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useMemo } from "react";
|
2
2
|
import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
|
3
|
-
import { useMarketByCurrencies } from "
|
3
|
+
import { useMarketByCurrencies } from "../../../dada-client/hooks/useMarketByCurrencies";
|
4
4
|
|
5
5
|
const createMarketTrendItem = ({
|
6
6
|
percent,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useMemo } from "react";
|
2
2
|
import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
|
3
|
-
import { useMarketByCurrencies } from "
|
3
|
+
import { useMarketByCurrencies } from "../../../dada-client/hooks/useMarketByCurrencies";
|
4
4
|
import { counterValueFormatter } from "../../utils/counterValueFormatter";
|
5
5
|
import { UseBalanceDeps } from "../../utils/type";
|
6
6
|
|
@@ -24,13 +24,11 @@ export const useAssetAccountCounts = ({
|
|
24
24
|
accountIds,
|
25
25
|
formatLabel,
|
26
26
|
}: AccountModuleParams): AssetCountItem[] =>
|
27
|
-
assets
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
})
|
36
|
-
.sort((a, b) => b.count - a.count);
|
27
|
+
assets.map(asset => {
|
28
|
+
const { length } = getAccountTuplesForCurrency(asset, nestedAccounts, accountIds);
|
29
|
+
return {
|
30
|
+
asset,
|
31
|
+
label: formatLabel(length),
|
32
|
+
count: length,
|
33
|
+
};
|
34
|
+
});
|
@@ -4,7 +4,7 @@ import {
|
|
4
4
|
CreateAccountsCountAndApy,
|
5
5
|
NetworkWithCount,
|
6
6
|
} from "../utils/type";
|
7
|
-
import { useInterestRatesByCurrencies } from "
|
7
|
+
import { useInterestRatesByCurrencies } from "../../dada-client/hooks/useInterestRatesByCurrencies";
|
8
8
|
import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
|
9
9
|
import { getInterestRateForAsset } from "../utils/getInterestRateForAsset";
|
10
10
|
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { type ReactNode } from "react";
|
2
2
|
import type { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
|
3
|
-
import { compareByBalanceThenFiat } from "../utils/sortByBalance";
|
4
3
|
import { UseBalanceDeps } from "../utils/type";
|
5
4
|
import { getBalanceAndFiatValueByAssets } from "../utils/getBalanceAndFiatValueByAssets";
|
6
5
|
|
@@ -28,21 +27,13 @@ export function createUseRightBalanceNetwork({ useBalanceDeps, balanceItem }: Ne
|
|
28
27
|
|
29
28
|
const balanceMap = new Map(networkBalanceData.map(b => [b.id, b]));
|
30
29
|
|
31
|
-
|
30
|
+
return networks.map(network => {
|
32
31
|
const balanceData = balanceMap.get(network.id) || {};
|
33
32
|
return {
|
34
|
-
network,
|
35
|
-
balanceData,
|
33
|
+
...network,
|
34
|
+
rightElement: balanceItem(balanceData),
|
35
|
+
balanceData: balanceData,
|
36
36
|
};
|
37
37
|
});
|
38
|
-
|
39
|
-
networksWithBalance.sort((a, b) =>
|
40
|
-
compareByBalanceThenFiat(a.balanceData, b.balanceData, discreet),
|
41
|
-
);
|
42
|
-
|
43
|
-
return networksWithBalance.map(({ network, balanceData }) => ({
|
44
|
-
...network,
|
45
|
-
rightElement: balanceItem(balanceData),
|
46
|
-
}));
|
47
38
|
};
|
48
39
|
}
|
@@ -10,8 +10,10 @@ import {
|
|
10
10
|
NetworkHook,
|
11
11
|
RightElementKind,
|
12
12
|
AccountModuleParams,
|
13
|
+
BalanceUI,
|
13
14
|
} from "../utils/type";
|
14
15
|
import { composeHooks } from "../../utils/composeHooks";
|
16
|
+
import { compareByBalanceThenFiat } from "../utils/sortByBalance";
|
15
17
|
|
16
18
|
export const getLeftElement =
|
17
19
|
(NetworkConfigurationDeps: NetworkConfigurationDeps) =>
|
@@ -65,7 +67,10 @@ export const createNetworkConfigurationHook =
|
|
65
67
|
assets: CryptoOrTokenCurrency[],
|
66
68
|
networks: CryptoOrTokenCurrency[],
|
67
69
|
): Array<CryptoOrTokenCurrency & Network> => {
|
68
|
-
const composedHook = composeHooks<
|
70
|
+
const composedHook = composeHooks<
|
71
|
+
CryptoOrTokenCurrency,
|
72
|
+
Network & { balanceData?: BalanceUI; count?: number }
|
73
|
+
>(
|
69
74
|
...hooks.map(
|
70
75
|
hook => () =>
|
71
76
|
hook({
|
@@ -75,6 +80,19 @@ export const createNetworkConfigurationHook =
|
|
75
80
|
}),
|
76
81
|
),
|
77
82
|
);
|
78
|
-
|
83
|
+
|
84
|
+
const result = composedHook(assets);
|
85
|
+
|
86
|
+
if (leftElement === "numberOfAccounts" || leftElement === "numberOfAccountsAndApy") {
|
87
|
+
result.sort((a, b) => (b?.count || 0) - (a?.count || 0));
|
88
|
+
}
|
89
|
+
|
90
|
+
if (rightElement === "balance") {
|
91
|
+
const { discreet } = NetworkConfigurationDeps.useBalanceDeps();
|
92
|
+
|
93
|
+
result.sort((a, b) => compareByBalanceThenFiat(a?.balanceData, b?.balanceData, discreet));
|
94
|
+
}
|
95
|
+
|
96
|
+
return result;
|
79
97
|
};
|
80
98
|
};
|
@@ -4,7 +4,7 @@ import {
|
|
4
4
|
mockScrollCryptoCurrency,
|
5
5
|
usdcToken,
|
6
6
|
} from "../../__mocks__/currencies.mock";
|
7
|
-
import { ApyType } from "
|
7
|
+
import { ApyType } from "../../../dada-client/types/trend";
|
8
8
|
|
9
9
|
describe("getInterestRateForAsset", () => {
|
10
10
|
const networks = [mockEthCryptoCurrency, usdcToken];
|
@@ -5,10 +5,9 @@ import { ReactNode } from "react";
|
|
5
5
|
import { Observable } from "rxjs";
|
6
6
|
import { WalletAPIAccount } from "../../wallet-api/types";
|
7
7
|
import { EnhancedModularDrawerConfiguration } from "../../wallet-api/ModularDrawer/types";
|
8
|
-
import { InterestRate } from "
|
8
|
+
import { InterestRate } from "../../dada-client/entities";
|
9
9
|
import { MarketItemResponse } from "../../market/utils/types";
|
10
|
-
|
11
|
-
export type ApyType = "NRR" | "APY" | "APR";
|
10
|
+
import { ApyType } from "../../dada-client/types/trend";
|
12
11
|
|
13
12
|
export type AssetType = {
|
14
13
|
name: string;
|
@@ -75,7 +74,9 @@ export type NetworkHookParams = {
|
|
75
74
|
networks: CryptoOrTokenCurrency[];
|
76
75
|
accounts$?: Observable<WalletAPIAccount[]>;
|
77
76
|
};
|
78
|
-
export type NetworkHook = (
|
77
|
+
export type NetworkHook = (
|
78
|
+
params: NetworkHookParams,
|
79
|
+
) => Array<CryptoOrTokenCurrency & Network & { balanceData?: BalanceUI; count?: number }>;
|
79
80
|
|
80
81
|
export type NetworkConfigurationDeps = {
|
81
82
|
useAccountData: UseAccountData;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/* eslint-disable no-console */
|
2
|
+
import { RPCHandler, customWrapper } from "@ledgerhq/wallet-api-server";
|
3
|
+
|
4
|
+
export type DeeplinkOpenParams = {
|
5
|
+
url: string;
|
6
|
+
};
|
7
|
+
|
8
|
+
type Handlers = Record<"custom.deeplink.open", RPCHandler<void, DeeplinkOpenParams>>;
|
9
|
+
|
10
|
+
type DeeplinkUiHooks = {
|
11
|
+
"custom.deeplink.open": (params?: { url: string }) => void;
|
12
|
+
};
|
13
|
+
|
14
|
+
export const handlers = ({
|
15
|
+
uiHooks: { "custom.deeplink.open": uiDeeplinkOpen },
|
16
|
+
}: {
|
17
|
+
uiHooks: DeeplinkUiHooks;
|
18
|
+
}) =>
|
19
|
+
({
|
20
|
+
"custom.deeplink.open": customWrapper<DeeplinkOpenParams, void>(params =>
|
21
|
+
uiDeeplinkOpen(params),
|
22
|
+
),
|
23
|
+
}) as const satisfies Handlers;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sui.d.ts","sourceRoot":"","sources":["../../../src/e2e/families/sui.ts"],"names":[],"mappings":"AAGA,wBAAsB,OAAO,kBAG5B"}
|
package/lib/e2e/families/sui.js
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.sendSui = void 0;
|
4
|
-
const speculos_1 = require("../speculos");
|
5
|
-
const DeviceLabels_1 = require("../enum/DeviceLabels");
|
6
|
-
async function sendSui() {
|
7
|
-
await (0, speculos_1.pressUntilTextFound)(DeviceLabels_1.DeviceLabels.ACCEPT);
|
8
|
-
await (0, speculos_1.pressBoth)();
|
9
|
-
}
|
10
|
-
exports.sendSui = sendSui;
|
11
|
-
//# sourceMappingURL=sui.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sui.js","sourceRoot":"","sources":["../../../src/e2e/families/sui.ts"],"names":[],"mappings":";;;AAAA,0CAA6D;AAC7D,uDAAoD;AAE7C,KAAK,UAAU,OAAO;IAC3B,MAAM,IAAA,8BAAmB,EAAC,2BAAY,CAAC,MAAM,CAAC,CAAC;IAC/C,MAAM,IAAA,oBAAS,GAAE,CAAC;AACpB,CAAC;AAHD,0BAGC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAGrF,MAAM,WAAW,eAAe;IAC9B,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAGD,MAAM,WAAW,WAAW;IAC1B,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,MAAM,WAAW,YAAY;IAC3B,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,eAAe;IAC9B,sCAAsC;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,wCAAwC;IACxC,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAGD,MAAM,WAAW,cAAc;IAC7B,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC9C,0BAA0B;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACtC,0DAA0D;IAC1D,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAClD,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC5C,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACnD,oCAAoC;IACpC,eAAe,EAAE,eAAe,CAAC;CAClC;AAGD,MAAM,WAAW,UAAU;IACzB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC9C,0BAA0B;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACtC,qFAAqF;IACrF,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAC/D,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC5C,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACnD,oCAAoC;IACpC,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/index.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"interestRateSelectors.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/interestRateSelectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEvE,eAAO,MAAM,4BAA4B,EAAE,CACzC,KAAK,EAAE,QAAQ,EACf,UAAU,EAAE,MAAM,KACf,YAAY,GAAG,SAAqE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"interestRateSelectors.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/interestRateSelectors.ts"],"names":[],"mappings":";;;AACA,mDAAuE;AAE1D,QAAA,4BAA4B,GAGT,IAAA,0CAA0B,EAAe,eAAe,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"marketSelectors.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/marketSelectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEvE,eAAO,MAAM,sBAAsB,EAAE,CACnC,KAAK,EAAE,QAAQ,EACf,UAAU,EAAE,MAAM,KACf,yBAAyB,GAAG,SACiC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"marketSelectors.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/marketSelectors.ts"],"names":[],"mappings":";;;AACA,mDAAuE;AAE1D,QAAA,sBAAsB,GAIjC,IAAA,0CAA0B,EAA4B,SAAS,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"selectorUtils.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/selectorUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,WAAW,QAAQ;IACvB,aAAa,CAAC,EAAE;QACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;KAC3C,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;KACxC,CAAC;CACH;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAC1C,OAAO,EAAE,MAAM,GACd,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC,CAoB7C"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"selectorUtils.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/selectorUtils.ts"],"names":[],"mappings":";;;AAAA,8CAA4D;AAc5D;;;;GAIG;AACH,SAAgB,0BAA0B,CACxC,OAAe;IAEf,OAAO,IAAA,wBAAc,EACnB;QACE,CAAC,KAAe,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,OAAO,IAAI,EAAE;QACvD,CAAC,MAAgB,EAAE,UAAkB,EAAE,EAAE,CAAC,UAAU;KACrD,EACD,CAAC,OAAO,EAAE,UAAU,EAAiB,EAAE;QACrC,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;YAC1C,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC;YAChC,IAAI,CAAC,KAAK;gBAAE,SAAS;YAErB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;gBACxB,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;gBACzC,IAAI,IAAI;oBAAE,OAAO,IAAI,CAAC;aACvB;SACF;QAED,OAAO,SAAS,CAAC;IACnB,CAAC,CACF,CAAC;AACJ,CAAC;AAtBD,gEAsBC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/state-manager/api.ts"],"names":[],"mappings":";;;AAAA,wDAA6F;AAC7F,yDAA0D;AAE1D,iDAA4C;AAC5C,mCAMiB;AAEjB,SAAS,uBAAuB,CAC9B,QAAwB,EACxB,IAAyB;IAEzB,MAAM,+BAA+B,GAAG,IAAA,+BAAgB,EAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;IAE3F,MAAM,UAAU,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,SAAS,CAAC;IAE7E,OAAO;QACL,GAAG,QAAQ;QACX,uBAAuB,EAAE,+BAA+B;QACxD,UAAU,EAAE;YACV,UAAU;SACX;KACF,CAAC;AACJ,CAAC;AAEY,QAAA,aAAa,GAAG,IAAA,iBAAS,EAAC;IACrC,WAAW,EAAE,eAAe;IAC5B,SAAS,EAAE,IAAA,sBAAc,EAAC;QACxB,OAAO,EAAE,EAAE,EAAE,8BAA8B;KAC5C,CAAC;IACF,QAAQ,EAAE,CAAC,sBAAc,CAAC,MAAM,CAAC;IACjC,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;QACnB,aAAa,EAAE,KAAK,CAAC,aAAa,CAA2D;YAC3F,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;gBACjC,MAAM,MAAM,GAAG;oBACb,QAAQ,EAAE,GAAG;oBACb,GAAG,CAAC,SAAS,EAAE,MAAM,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC;oBACtD,GAAG,CAAC,QAAQ,EAAE,OAAO,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;oBAC3D,GAAG,CAAC,QAAQ,EAAE,WAAW;wBACvB,QAAQ,EAAE,WAAW,CAAC,MAAM,GAAG,CAAC;wBAChC,CAAC,QAAQ,EAAE,OAAO,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC;oBAC9D,GAAG,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;oBACpD,OAAO,EAAE,QAAQ,CAAC,OAAO;oBACzB,UAAU,EAAE,QAAQ,CAAC,OAAO;oBAC5B,cAAc,EAAE,CAAC,4BAAoB,CAAC,GAAG,EAAE,4BAAoB,CAAC,WAAW,CAAC;iBAC7E,CAAC;gBAEF,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,iBAAM,EAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,IAAA,iBAAM,EAAC,eAAe,CAAC,CAAC;gBAE1F,OAAO;oBACL,GAAG,EAAE,GAAG,OAAO,QAAQ;oBACvB,MAAM;iBACP,CAAC;YACJ,CAAC;YACD,YAAY,EAAE,CAAC,sBAAc,CAAC,MAAM,CAAC;YACrC,iBAAiB,EAAE,uBAAuB;YAC1C,oBAAoB,EAAE;gBACpB,gBAAgB,EAAE;oBAChB,MAAM,EAAE,EAAE;iBACX;gBACD,gBAAgB,EAAE,QAAQ,CAAC,EAAE;oBAC3B,IAAI,QAAQ,CAAC,UAAU,CAAC,UAAU,EAAE;wBAClC,OAAO;4BACL,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU;yBACvC,CAAC;qBACH;yBAAM;wBACL,OAAO,SAAS,CAAC;qBAClB;gBACH,CAAC;aACF;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAEY,qCAA6B,GAAK,qBAAa,+BAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/state-manager/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,oBAAY,cAAc;IACxB,MAAM,WAAW;CAClB;AAED,oBAAY,oBAAoB;IAC9B,GAAG,QAAQ;IACX,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,GAAG,KAAK,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,UAAU,EAAE;QACV,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/state-manager/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,mCAAiB,CAAA;AACnB,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,mCAAW,CAAA;IACX,mDAA2B,CAAA;AAC7B,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}
|