@ledgerhq/live-common 34.50.0 → 34.51.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/__tests__/test-helpers/bridge.js +1 -1
- package/lib/__tests__/test-helpers/bridge.js.map +1 -1
- package/lib/__tests__/test-helpers/environment.js +1 -1
- package/lib/__tests__/test-helpers/environment.js.map +1 -1
- package/lib/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/alpaca/index.js +3 -0
- package/lib/bridge/generic-alpaca/alpaca/index.js.map +1 -1
- package/lib/bridge/generic-alpaca/buildSubAccounts.d.ts +4 -4
- package/lib/bridge/generic-alpaca/buildSubAccounts.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/buildSubAccounts.js +7 -9
- package/lib/bridge/generic-alpaca/buildSubAccounts.js.map +1 -1
- package/lib/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/createTransaction.js +11 -0
- package/lib/bridge/generic-alpaca/createTransaction.js.map +1 -1
- package/lib/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/getAccountShape.js +15 -9
- package/lib/bridge/generic-alpaca/getAccountShape.js.map +1 -1
- package/lib/bridge/generic-alpaca/getTransactionStatus.js +1 -1
- package/lib/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
- package/lib/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/prepareTransaction.js +29 -4
- package/lib/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
- package/lib/bridge/generic-alpaca/signer/index.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/signer/index.js +37 -0
- package/lib/bridge/generic-alpaca/signer/index.js.map +1 -1
- package/lib/bridge/generic-alpaca/signer/signTransaction.d.ts +2 -0
- package/lib/bridge/generic-alpaca/signer/signTransaction.d.ts.map +1 -1
- package/lib/bridge/generic-alpaca/signer/signTransaction.js +8 -1
- package/lib/bridge/generic-alpaca/signer/signTransaction.js.map +1 -1
- package/lib/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js +15 -1
- package/lib/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js.map +1 -1
- package/lib/bridge/generic-alpaca/tests/getAccountShape.test.js +5 -3
- package/lib/bridge/generic-alpaca/tests/getAccountShape.test.js.map +1 -1
- package/lib/bridge/generic-alpaca/tests/prepareTransaction.test.js +60 -0
- package/lib/bridge/generic-alpaca/tests/prepareTransaction.test.js.map +1 -1
- package/lib/bridge/generic-alpaca/tests/signOperation.test.js +1 -1
- package/lib/bridge/generic-alpaca/tests/signOperation.test.js.map +1 -1
- package/lib/bridge/generic-alpaca/types.d.ts +1 -2
- package/lib/bridge/generic-alpaca/types.d.ts.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 +23 -4
- package/lib/bridge/generic-alpaca/utils.js.map +1 -1
- package/lib/bridge/impl.d.ts.map +1 -1
- package/lib/bridge/impl.js +1 -0
- package/lib/bridge/impl.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 +2 -0
- package/lib/e2e/enum/Account.d.ts.map +1 -1
- package/lib/e2e/enum/Account.js +4 -0
- package/lib/e2e/enum/Account.js.map +1 -1
- package/lib/e2e/enum/AppInfos.d.ts +1 -0
- package/lib/e2e/enum/AppInfos.d.ts.map +1 -1
- package/lib/e2e/enum/AppInfos.js +1 -0
- package/lib/e2e/enum/AppInfos.js.map +1 -1
- package/lib/e2e/enum/Currency.d.ts +2 -0
- package/lib/e2e/enum/Currency.d.ts.map +1 -1
- package/lib/e2e/enum/Currency.js +4 -0
- package/lib/e2e/enum/Currency.js.map +1 -1
- package/lib/e2e/enum/Network.d.ts +2 -1
- package/lib/e2e/enum/Network.d.ts.map +1 -1
- package/lib/e2e/enum/Network.js +1 -0
- 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/families/hedera.d.ts +2 -0
- package/lib/e2e/families/hedera.d.ts.map +1 -0
- package/lib/e2e/families/hedera.js +11 -0
- package/lib/e2e/families/hedera.js.map +1 -0
- package/lib/e2e/speculos.d.ts.map +1 -1
- package/lib/e2e/speculos.js +12 -0
- 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/platform/types.d.ts +2 -0
- package/lib/exchange/platform/types.d.ts.map +1 -1
- package/lib/exchange/swap/completeExchange.d.ts.map +1 -1
- package/lib/exchange/swap/completeExchange.js +22 -1
- package/lib/exchange/swap/completeExchange.js.map +1 -1
- package/lib/exchange/swap/getIncompatibleCurrencyKeys.d.ts.map +1 -1
- package/lib/exchange/swap/getIncompatibleCurrencyKeys.js +8 -0
- package/lib/exchange/swap/getIncompatibleCurrencyKeys.js.map +1 -1
- package/lib/exchange/swap/postSwapState.d.ts.map +1 -1
- package/lib/exchange/swap/postSwapState.js +19 -23
- package/lib/exchange/swap/postSwapState.js.map +1 -1
- package/lib/exchange/swap/setBroadcastTransaction.d.ts +4 -4
- package/lib/exchange/swap/setBroadcastTransaction.js +7 -7
- package/lib/exchange/swap/setBroadcastTransaction.js.map +1 -1
- package/lib/exchange/swap/types.d.ts +3 -3
- package/lib/exchange/swap/types.d.ts.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/families/hedera/exchange.d.ts +9 -0
- package/lib/families/hedera/exchange.d.ts.map +1 -0
- package/lib/families/hedera/exchange.js +36 -0
- package/lib/families/hedera/exchange.js.map +1 -0
- package/lib/families/tezos/config.js +2 -2
- package/lib/families/tezos/react.d.ts +2 -1
- package/lib/families/tezos/react.d.ts.map +1 -1
- package/lib/families/tezos/react.js +19 -1
- package/lib/families/tezos/react.js.map +1 -1
- package/lib/families/tezos/setup.d.ts +1 -4
- package/lib/families/tezos/setup.d.ts.map +1 -1
- package/lib/families/tezos/setup.js +3 -11
- package/lib/families/tezos/setup.js.map +1 -1
- package/lib/generated/bridge/js.d.ts +0 -1
- package/lib/generated/bridge/js.d.ts.map +1 -1
- package/lib/generated/bridge/js.js +10 -12
- package/lib/generated/bridge/js.js.map +1 -1
- package/lib/hw/actions/completeExchange.d.ts +2 -0
- package/lib/hw/actions/completeExchange.d.ts.map +1 -1
- package/lib/hw/actions/completeExchange.js +1 -0
- package/lib/hw/actions/completeExchange.js.map +1 -1
- 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 +6 -3
- 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/useCurrenciesUnderFeatureFlag.d.ts +7 -0
- package/lib/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.d.ts.map +1 -0
- package/lib/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.js +224 -0
- package/lib/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.js.map +1 -0
- package/lib/modularDrawer/hooks/useLeftAccountsApy.js +1 -1
- package/lib/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -1
- package/lib/modularDrawer/hooks/useRightBalanceAsset.d.ts +8 -10
- package/lib/modularDrawer/hooks/useRightBalanceAsset.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/useRightBalanceAsset.js +21 -64
- package/lib/modularDrawer/hooks/useRightBalanceAsset.js.map +1 -1
- package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts +7 -28
- package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -1
- package/lib/modularDrawer/hooks/useRightBalanceNetwork.js +12 -56
- package/lib/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -1
- package/lib/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -1
- package/lib/modularDrawer/modules/createAssetConfiguration.js +2 -2
- package/lib/modularDrawer/modules/createAssetConfiguration.js.map +1 -1
- package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts +1 -1
- package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
- package/lib/modularDrawer/modules/createNetworkConfiguration.js +15 -4
- package/lib/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
- package/lib/modularDrawer/utils/__tests__/calculateProviderTotal.test.d.ts +2 -0
- package/lib/modularDrawer/utils/__tests__/calculateProviderTotal.test.d.ts.map +1 -0
- package/lib/modularDrawer/utils/__tests__/calculateProviderTotal.test.js +212 -0
- package/lib/modularDrawer/utils/__tests__/calculateProviderTotal.test.js.map +1 -0
- package/lib/modularDrawer/utils/__tests__/groupAccountsByAsset.test.d.ts +2 -0
- package/lib/modularDrawer/utils/__tests__/groupAccountsByAsset.test.d.ts.map +1 -0
- package/lib/modularDrawer/utils/__tests__/groupAccountsByAsset.test.js +202 -0
- package/lib/modularDrawer/utils/__tests__/groupAccountsByAsset.test.js.map +1 -0
- package/lib/modularDrawer/utils/calculateProviderTotal.d.ts +1 -0
- package/lib/modularDrawer/utils/calculateProviderTotal.d.ts.map +1 -1
- package/lib/modularDrawer/utils/calculateProviderTotal.js +10 -2
- package/lib/modularDrawer/utils/calculateProviderTotal.js.map +1 -1
- package/lib/modularDrawer/utils/currencyUtils.d.ts.map +1 -1
- package/lib/modularDrawer/utils/currencyUtils.js.map +1 -1
- package/lib/modularDrawer/utils/getBalanceAndFiatValueByAssets.d.ts +6 -4
- package/lib/modularDrawer/utils/getBalanceAndFiatValueByAssets.d.ts.map +1 -1
- package/lib/modularDrawer/utils/getBalanceAndFiatValueByAssets.js +9 -22
- package/lib/modularDrawer/utils/getBalanceAndFiatValueByAssets.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/groupAccountsByAsset.d.ts +4 -3
- package/lib/modularDrawer/utils/groupAccountsByAsset.d.ts.map +1 -1
- package/lib/modularDrawer/utils/groupAccountsByAsset.js +27 -11
- package/lib/modularDrawer/utils/groupAccountsByAsset.js.map +1 -1
- package/lib/modularDrawer/utils/index.d.ts +2 -6
- package/lib/modularDrawer/utils/index.d.ts.map +1 -1
- package/lib/modularDrawer/utils/index.js +2 -13
- package/lib/modularDrawer/utils/index.js.map +1 -1
- package/lib/modularDrawer/utils/index.test.js +0 -26
- package/lib/modularDrawer/utils/index.test.js.map +1 -1
- package/lib/modularDrawer/utils/sortByBalance.d.ts +1 -3
- package/lib/modularDrawer/utils/sortByBalance.d.ts.map +1 -1
- package/lib/modularDrawer/utils/sortByBalance.js +6 -18
- package/lib/modularDrawer/utils/sortByBalance.js.map +1 -1
- package/lib/modularDrawer/utils/type.d.ts +15 -17
- 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/wallet-api/Exchange/server.js +6 -6
- package/lib/wallet-api/Exchange/server.js.map +1 -1
- package/lib/wallet-api/constants.d.ts +1 -1
- package/lib/wallet-api/constants.d.ts.map +1 -1
- package/lib-es/__tests__/test-helpers/bridge.js +1 -1
- package/lib-es/__tests__/test-helpers/bridge.js.map +1 -1
- 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/alpaca/index.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/alpaca/index.js +3 -0
- package/lib-es/bridge/generic-alpaca/alpaca/index.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/buildSubAccounts.d.ts +4 -4
- package/lib-es/bridge/generic-alpaca/buildSubAccounts.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/buildSubAccounts.js +7 -9
- package/lib-es/bridge/generic-alpaca/buildSubAccounts.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/createTransaction.js +11 -0
- package/lib-es/bridge/generic-alpaca/createTransaction.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/getAccountShape.js +15 -9
- package/lib-es/bridge/generic-alpaca/getAccountShape.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/getTransactionStatus.js +1 -1
- package/lib-es/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/prepareTransaction.js +29 -4
- package/lib-es/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/signer/index.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/signer/index.js +38 -1
- package/lib-es/bridge/generic-alpaca/signer/index.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/signer/signTransaction.d.ts +2 -0
- package/lib-es/bridge/generic-alpaca/signer/signTransaction.d.ts.map +1 -1
- package/lib-es/bridge/generic-alpaca/signer/signTransaction.js +6 -0
- package/lib-es/bridge/generic-alpaca/signer/signTransaction.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js +15 -1
- package/lib-es/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.js +5 -3
- package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/tests/prepareTransaction.test.js +60 -0
- package/lib-es/bridge/generic-alpaca/tests/prepareTransaction.test.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/tests/signOperation.test.js +1 -1
- package/lib-es/bridge/generic-alpaca/tests/signOperation.test.js.map +1 -1
- package/lib-es/bridge/generic-alpaca/types.d.ts +1 -2
- package/lib-es/bridge/generic-alpaca/types.d.ts.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 +23 -4
- package/lib-es/bridge/generic-alpaca/utils.js.map +1 -1
- package/lib-es/bridge/impl.d.ts.map +1 -1
- package/lib-es/bridge/impl.js +1 -0
- package/lib-es/bridge/impl.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 +2 -0
- package/lib-es/e2e/enum/Account.d.ts.map +1 -1
- package/lib-es/e2e/enum/Account.js +4 -0
- package/lib-es/e2e/enum/Account.js.map +1 -1
- package/lib-es/e2e/enum/AppInfos.d.ts +1 -0
- package/lib-es/e2e/enum/AppInfos.d.ts.map +1 -1
- package/lib-es/e2e/enum/AppInfos.js +1 -0
- package/lib-es/e2e/enum/AppInfos.js.map +1 -1
- package/lib-es/e2e/enum/Currency.d.ts +2 -0
- package/lib-es/e2e/enum/Currency.d.ts.map +1 -1
- package/lib-es/e2e/enum/Currency.js +4 -0
- package/lib-es/e2e/enum/Currency.js.map +1 -1
- package/lib-es/e2e/enum/Network.d.ts +2 -1
- package/lib-es/e2e/enum/Network.d.ts.map +1 -1
- package/lib-es/e2e/enum/Network.js +1 -0
- 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/families/hedera.d.ts +2 -0
- package/lib-es/e2e/families/hedera.d.ts.map +1 -0
- package/lib-es/e2e/families/hedera.js +7 -0
- package/lib-es/e2e/families/hedera.js.map +1 -0
- package/lib-es/e2e/speculos.d.ts.map +1 -1
- package/lib-es/e2e/speculos.js +12 -0
- 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/platform/types.d.ts +2 -0
- package/lib-es/exchange/platform/types.d.ts.map +1 -1
- package/lib-es/exchange/swap/completeExchange.d.ts.map +1 -1
- package/lib-es/exchange/swap/completeExchange.js +22 -1
- package/lib-es/exchange/swap/completeExchange.js.map +1 -1
- package/lib-es/exchange/swap/getIncompatibleCurrencyKeys.d.ts.map +1 -1
- package/lib-es/exchange/swap/getIncompatibleCurrencyKeys.js +8 -0
- package/lib-es/exchange/swap/getIncompatibleCurrencyKeys.js.map +1 -1
- package/lib-es/exchange/swap/postSwapState.d.ts.map +1 -1
- package/lib-es/exchange/swap/postSwapState.js +19 -23
- package/lib-es/exchange/swap/postSwapState.js.map +1 -1
- package/lib-es/exchange/swap/setBroadcastTransaction.d.ts +4 -4
- package/lib-es/exchange/swap/setBroadcastTransaction.js +7 -7
- package/lib-es/exchange/swap/setBroadcastTransaction.js.map +1 -1
- package/lib-es/exchange/swap/types.d.ts +3 -3
- package/lib-es/exchange/swap/types.d.ts.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/families/hedera/exchange.d.ts +9 -0
- package/lib-es/families/hedera/exchange.d.ts.map +1 -0
- package/lib-es/families/hedera/exchange.js +29 -0
- package/lib-es/families/hedera/exchange.js.map +1 -0
- package/lib-es/families/tezos/config.js +2 -2
- package/lib-es/families/tezos/react.d.ts +2 -1
- package/lib-es/families/tezos/react.d.ts.map +1 -1
- package/lib-es/families/tezos/react.js +17 -0
- package/lib-es/families/tezos/react.js.map +1 -1
- package/lib-es/families/tezos/setup.d.ts +1 -4
- package/lib-es/families/tezos/setup.d.ts.map +1 -1
- package/lib-es/families/tezos/setup.js +2 -9
- package/lib-es/families/tezos/setup.js.map +1 -1
- package/lib-es/generated/bridge/js.d.ts +0 -1
- package/lib-es/generated/bridge/js.d.ts.map +1 -1
- package/lib-es/generated/bridge/js.js +0 -2
- package/lib-es/generated/bridge/js.js.map +1 -1
- package/lib-es/hw/actions/completeExchange.d.ts +2 -0
- package/lib-es/hw/actions/completeExchange.d.ts.map +1 -1
- package/lib-es/hw/actions/completeExchange.js +1 -0
- package/lib-es/hw/actions/completeExchange.js.map +1 -1
- 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 +2 -2
- 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/useCurrenciesUnderFeatureFlag.d.ts +7 -0
- package/lib-es/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.d.ts.map +1 -0
- package/lib-es/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.js +217 -0
- package/lib-es/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.js.map +1 -0
- package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js +1 -1
- package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -1
- package/lib-es/modularDrawer/hooks/useRightBalanceAsset.d.ts +8 -10
- package/lib-es/modularDrawer/hooks/useRightBalanceAsset.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/useRightBalanceAsset.js +21 -64
- package/lib-es/modularDrawer/hooks/useRightBalanceAsset.js.map +1 -1
- package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts +7 -28
- package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -1
- package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js +12 -56
- package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -1
- package/lib-es/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -1
- package/lib-es/modularDrawer/modules/createAssetConfiguration.js +2 -2
- package/lib-es/modularDrawer/modules/createAssetConfiguration.js.map +1 -1
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts +1 -1
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.js +15 -4
- package/lib-es/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
- package/lib-es/modularDrawer/utils/__tests__/calculateProviderTotal.test.d.ts +2 -0
- package/lib-es/modularDrawer/utils/__tests__/calculateProviderTotal.test.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/__tests__/calculateProviderTotal.test.js +207 -0
- package/lib-es/modularDrawer/utils/__tests__/calculateProviderTotal.test.js.map +1 -0
- package/lib-es/modularDrawer/utils/__tests__/currencyUtils.test.js +1 -1
- package/lib-es/modularDrawer/utils/__tests__/currencyUtils.test.js.map +1 -1
- package/lib-es/modularDrawer/utils/__tests__/groupAccountsByAsset.test.d.ts +2 -0
- package/lib-es/modularDrawer/utils/__tests__/groupAccountsByAsset.test.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/__tests__/groupAccountsByAsset.test.js +197 -0
- package/lib-es/modularDrawer/utils/__tests__/groupAccountsByAsset.test.js.map +1 -0
- package/lib-es/modularDrawer/utils/calculateProviderTotal.d.ts +1 -0
- package/lib-es/modularDrawer/utils/calculateProviderTotal.d.ts.map +1 -1
- package/lib-es/modularDrawer/utils/calculateProviderTotal.js +10 -2
- package/lib-es/modularDrawer/utils/calculateProviderTotal.js.map +1 -1
- package/lib-es/modularDrawer/utils/currencyUtils.d.ts.map +1 -1
- package/lib-es/modularDrawer/utils/currencyUtils.js.map +1 -1
- package/lib-es/modularDrawer/utils/getBalanceAndFiatValueByAssets.d.ts +6 -4
- package/lib-es/modularDrawer/utils/getBalanceAndFiatValueByAssets.d.ts.map +1 -1
- package/lib-es/modularDrawer/utils/getBalanceAndFiatValueByAssets.js +9 -22
- package/lib-es/modularDrawer/utils/getBalanceAndFiatValueByAssets.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/groupAccountsByAsset.d.ts +4 -3
- package/lib-es/modularDrawer/utils/groupAccountsByAsset.d.ts.map +1 -1
- package/lib-es/modularDrawer/utils/groupAccountsByAsset.js +27 -11
- package/lib-es/modularDrawer/utils/groupAccountsByAsset.js.map +1 -1
- package/lib-es/modularDrawer/utils/index.d.ts +2 -6
- package/lib-es/modularDrawer/utils/index.d.ts.map +1 -1
- package/lib-es/modularDrawer/utils/index.js +2 -10
- package/lib-es/modularDrawer/utils/index.js.map +1 -1
- package/lib-es/modularDrawer/utils/index.test.js +1 -27
- package/lib-es/modularDrawer/utils/index.test.js.map +1 -1
- package/lib-es/modularDrawer/utils/sortByBalance.d.ts +1 -3
- package/lib-es/modularDrawer/utils/sortByBalance.d.ts.map +1 -1
- package/lib-es/modularDrawer/utils/sortByBalance.js +5 -15
- package/lib-es/modularDrawer/utils/sortByBalance.js.map +1 -1
- package/lib-es/modularDrawer/utils/type.d.ts +15 -17
- 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/lib-es/wallet-api/Exchange/server.js +6 -6
- package/lib-es/wallet-api/Exchange/server.js.map +1 -1
- package/lib-es/wallet-api/constants.d.ts +1 -1
- package/lib-es/wallet-api/constants.d.ts.map +1 -1
- package/package.json +9 -7
- package/src/__tests__/test-helpers/bridge.ts +1 -1
- package/src/__tests__/test-helpers/environment.ts +1 -1
- package/src/bridge/generic-alpaca/alpaca/index.ts +4 -0
- package/src/bridge/generic-alpaca/buildSubAccounts.ts +28 -28
- package/src/bridge/generic-alpaca/createTransaction.ts +11 -0
- package/src/bridge/generic-alpaca/getAccountShape.ts +22 -15
- package/src/bridge/generic-alpaca/getTransactionStatus.ts +1 -1
- package/src/bridge/generic-alpaca/prepareTransaction.ts +47 -5
- package/src/bridge/generic-alpaca/signer/index.ts +44 -1
- package/src/bridge/generic-alpaca/signer/signTransaction.ts +10 -0
- package/src/bridge/generic-alpaca/tests/estimateMaxSpendable.test.ts +15 -1
- package/src/bridge/generic-alpaca/tests/getAccountShape.test.ts +5 -3
- package/src/bridge/generic-alpaca/tests/prepareTransaction.test.ts +78 -0
- package/src/bridge/generic-alpaca/tests/signOperation.test.ts +1 -1
- package/src/bridge/generic-alpaca/types.ts +10 -2
- package/src/bridge/generic-alpaca/utils.ts +25 -6
- package/src/bridge/impl.ts +1 -0
- 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 +10 -0
- package/src/e2e/enum/AppInfos.ts +2 -0
- package/src/e2e/enum/Currency.ts +11 -0
- package/src/e2e/enum/Network.ts +1 -0
- package/src/e2e/enum/Provider.ts +1 -0
- package/src/e2e/families/hedera.ts +7 -0
- package/src/e2e/speculos.ts +12 -0
- package/src/e2e/swap.ts +6 -6
- package/src/exchange/platform/types.ts +2 -0
- package/src/exchange/swap/completeExchange.ts +32 -2
- package/src/exchange/swap/getIncompatibleCurrencyKeys.ts +8 -0
- package/src/exchange/swap/postSwapState.ts +28 -32
- package/src/exchange/swap/setBroadcastTransaction.ts +12 -12
- package/src/exchange/swap/types.ts +3 -3
- 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/families/hedera/exchange.ts +48 -0
- package/src/families/tezos/config.ts +2 -2
- package/src/families/tezos/react.ts +20 -1
- package/src/families/tezos/setup.ts +3 -22
- package/src/generated/bridge/js.ts +0 -2
- package/src/hw/actions/completeExchange.ts +3 -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 +2 -2
- package/src/modularDrawer/hooks/useAssetAccountCounts.tsx +8 -10
- package/src/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.ts +231 -0
- package/src/modularDrawer/hooks/useLeftAccountsApy.tsx +1 -1
- package/src/modularDrawer/hooks/useRightBalanceAsset.tsx +26 -102
- package/src/modularDrawer/hooks/useRightBalanceNetwork.tsx +19 -100
- package/src/modularDrawer/modules/createAssetConfiguration.ts +3 -11
- package/src/modularDrawer/modules/createNetworkConfiguration.ts +26 -10
- package/src/modularDrawer/utils/__tests__/calculateProviderTotal.test.ts +237 -0
- package/src/modularDrawer/utils/__tests__/currencyUtils.test.ts +1 -1
- package/src/modularDrawer/utils/__tests__/getInterestRateForAsset.test.ts +1 -1
- package/src/modularDrawer/utils/__tests__/groupAccountsByAsset.test.ts +228 -0
- package/src/modularDrawer/utils/calculateProviderTotal.ts +13 -2
- package/src/modularDrawer/utils/currencyUtils.ts +0 -1
- package/src/modularDrawer/utils/getBalanceAndFiatValueByAssets.ts +13 -37
- package/src/modularDrawer/utils/getInterestRateForAsset.ts +1 -1
- package/src/modularDrawer/utils/groupAccountsByAsset.ts +38 -19
- package/src/modularDrawer/utils/index.test.ts +1 -32
- package/src/modularDrawer/utils/index.ts +2 -23
- package/src/modularDrawer/utils/sortByBalance.tsx +5 -18
- package/src/modularDrawer/utils/type.ts +18 -14
- package/src/wallet-api/CustomDeeplink/server.ts +23 -0
- package/src/wallet-api/Exchange/server.ts +6 -6
- 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/modularDrawer/utils/__tests__/counterValueFormatter.test.d.ts +0 -2
- package/lib/modularDrawer/utils/__tests__/counterValueFormatter.test.d.ts.map +0 -1
- package/lib/modularDrawer/utils/__tests__/counterValueFormatter.test.js +0 -496
- package/lib/modularDrawer/utils/__tests__/counterValueFormatter.test.js.map +0 -1
- package/lib/modularDrawer/utils/__tests__/haveOneCommonProvider.test.d.ts +0 -2
- package/lib/modularDrawer/utils/__tests__/haveOneCommonProvider.test.d.ts.map +0 -1
- package/lib/modularDrawer/utils/__tests__/haveOneCommonProvider.test.js +0 -28
- package/lib/modularDrawer/utils/__tests__/haveOneCommonProvider.test.js.map +0 -1
- package/lib/modularDrawer/utils/buildProviderCurrenciesMap.d.ts +0 -9
- package/lib/modularDrawer/utils/buildProviderCurrenciesMap.d.ts.map +0 -1
- package/lib/modularDrawer/utils/buildProviderCurrenciesMap.js +0 -17
- package/lib/modularDrawer/utils/buildProviderCurrenciesMap.js.map +0 -1
- package/lib/modularDrawer/utils/counterValueFormatter.d.ts +0 -14
- package/lib/modularDrawer/utils/counterValueFormatter.d.ts.map +0 -1
- package/lib/modularDrawer/utils/counterValueFormatter.js +0 -107
- package/lib/modularDrawer/utils/counterValueFormatter.js.map +0 -1
- package/lib/modularDrawer/utils/getBalanceAndFiatValue.d.ts +0 -20
- package/lib/modularDrawer/utils/getBalanceAndFiatValue.d.ts.map +0 -1
- package/lib/modularDrawer/utils/getBalanceAndFiatValue.js +0 -39
- package/lib/modularDrawer/utils/getBalanceAndFiatValue.js.map +0 -1
- package/lib/modularDrawer/utils/getProviderCurrency.d.ts +0 -3
- package/lib/modularDrawer/utils/getProviderCurrency.d.ts.map +0 -1
- package/lib/modularDrawer/utils/getProviderCurrency.js +0 -14
- package/lib/modularDrawer/utils/getProviderCurrency.js.map +0 -1
- package/lib/modularDrawer/utils/haveOneCommonProvider.d.ts +0 -11
- package/lib/modularDrawer/utils/haveOneCommonProvider.d.ts.map +0 -1
- package/lib/modularDrawer/utils/haveOneCommonProvider.js +0 -29
- package/lib/modularDrawer/utils/haveOneCommonProvider.js.map +0 -1
- package/lib/modularDrawer/utils/parseToBigNumber.d.ts +0 -9
- package/lib/modularDrawer/utils/parseToBigNumber.d.ts.map +0 -1
- package/lib/modularDrawer/utils/parseToBigNumber.js +0 -24
- package/lib/modularDrawer/utils/parseToBigNumber.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/lib-es/modularDrawer/utils/__tests__/counterValueFormatter.test.d.ts +0 -2
- package/lib-es/modularDrawer/utils/__tests__/counterValueFormatter.test.d.ts.map +0 -1
- package/lib-es/modularDrawer/utils/__tests__/counterValueFormatter.test.js +0 -494
- package/lib-es/modularDrawer/utils/__tests__/counterValueFormatter.test.js.map +0 -1
- package/lib-es/modularDrawer/utils/__tests__/haveOneCommonProvider.test.d.ts +0 -2
- package/lib-es/modularDrawer/utils/__tests__/haveOneCommonProvider.test.d.ts.map +0 -1
- package/lib-es/modularDrawer/utils/__tests__/haveOneCommonProvider.test.js +0 -26
- package/lib-es/modularDrawer/utils/__tests__/haveOneCommonProvider.test.js.map +0 -1
- package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.d.ts +0 -9
- package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.d.ts.map +0 -1
- package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.js +0 -13
- package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.js.map +0 -1
- package/lib-es/modularDrawer/utils/counterValueFormatter.d.ts +0 -14
- package/lib-es/modularDrawer/utils/counterValueFormatter.d.ts.map +0 -1
- package/lib-es/modularDrawer/utils/counterValueFormatter.js +0 -103
- package/lib-es/modularDrawer/utils/counterValueFormatter.js.map +0 -1
- package/lib-es/modularDrawer/utils/getBalanceAndFiatValue.d.ts +0 -20
- package/lib-es/modularDrawer/utils/getBalanceAndFiatValue.d.ts.map +0 -1
- package/lib-es/modularDrawer/utils/getBalanceAndFiatValue.js +0 -32
- package/lib-es/modularDrawer/utils/getBalanceAndFiatValue.js.map +0 -1
- package/lib-es/modularDrawer/utils/getProviderCurrency.d.ts +0 -3
- package/lib-es/modularDrawer/utils/getProviderCurrency.d.ts.map +0 -1
- package/lib-es/modularDrawer/utils/getProviderCurrency.js +0 -10
- package/lib-es/modularDrawer/utils/getProviderCurrency.js.map +0 -1
- package/lib-es/modularDrawer/utils/haveOneCommonProvider.d.ts +0 -11
- package/lib-es/modularDrawer/utils/haveOneCommonProvider.d.ts.map +0 -1
- package/lib-es/modularDrawer/utils/haveOneCommonProvider.js +0 -25
- package/lib-es/modularDrawer/utils/haveOneCommonProvider.js.map +0 -1
- package/lib-es/modularDrawer/utils/parseToBigNumber.d.ts +0 -9
- package/lib-es/modularDrawer/utils/parseToBigNumber.d.ts.map +0 -1
- package/lib-es/modularDrawer/utils/parseToBigNumber.js +0 -17
- package/lib-es/modularDrawer/utils/parseToBigNumber.js.map +0 -1
- package/src/modularDrawer/utils/__tests__/counterValueFormatter.test.ts +0 -549
- package/src/modularDrawer/utils/__tests__/haveOneCommonProvider.test.ts +0 -34
- package/src/modularDrawer/utils/buildProviderCurrenciesMap.tsx +0 -25
- package/src/modularDrawer/utils/counterValueFormatter.ts +0 -165
- package/src/modularDrawer/utils/getBalanceAndFiatValue.ts +0 -53
- package/src/modularDrawer/utils/getProviderCurrency.ts +0 -13
- package/src/modularDrawer/utils/haveOneCommonProvider.ts +0 -31
- package/src/modularDrawer/utils/parseToBigNumber.ts +0 -17
- /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
@@ -567,9 +567,9 @@ export const handlers = ({
|
|
567
567
|
targetCurrencyId: toCurrency?.id,
|
568
568
|
hardwareWalletType: deviceInfo?.modelId as DeviceModelId,
|
569
569
|
swapAppVersion,
|
570
|
-
|
571
|
-
|
572
|
-
|
570
|
+
fromAccountAddress,
|
571
|
+
toAccountAddress,
|
572
|
+
fromAmount,
|
573
573
|
});
|
574
574
|
|
575
575
|
resolve({ operationHash, swapId });
|
@@ -586,11 +586,11 @@ export const handlers = ({
|
|
586
586
|
hardwareWalletType: deviceInfo?.modelId as DeviceModelId,
|
587
587
|
swapType: quoteId ? "fixed" : "float",
|
588
588
|
swapAppVersion,
|
589
|
-
|
590
|
-
|
589
|
+
fromAccountAddress,
|
590
|
+
toAccountAddress,
|
591
591
|
refundAddress,
|
592
592
|
payoutAddress,
|
593
|
-
|
593
|
+
fromAmount,
|
594
594
|
seedIdFrom: mainFromAccount.seedIdentifier,
|
595
595
|
seedIdTo: toParentAccount?.seedIdentifier || (toAccount as Account)?.seedIdentifier,
|
596
596
|
});
|
@@ -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,E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 @@
|
|
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,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{"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"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useAssetsData.test.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/hooks/__test__/useAssetsData.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useAssetsData.test.js","sourceRoot":"","sources":["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,EAAC,GAAG,EAAE,CAAC,IAAA,6BAAa,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QAEzF,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,iCAAiC,CAAC,eAAe,CAAC;YAChD,GAAG,iBAAiB;SACrB,CAAC,CAAC;QAEH,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,kBAAU,EAAC,GAAG,EAAE,CAAC,IAAA,6BAAa,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QAEzF,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;QAC5C,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { AssetsDataWithPagination } from "../data/state-manager/types";
|
2
|
-
export declare function useAssetsData({ search, currencyIds, useCase, areCurrenciesFiltered, product, version, isStaging, }: {
|
3
|
-
search?: string;
|
4
|
-
currencyIds?: string[];
|
5
|
-
useCase?: string;
|
6
|
-
areCurrenciesFiltered?: boolean;
|
7
|
-
product: "llm" | "lld";
|
8
|
-
version: string;
|
9
|
-
isStaging?: boolean;
|
10
|
-
}): {
|
11
|
-
data: AssetsDataWithPagination | undefined;
|
12
|
-
isLoading: boolean;
|
13
|
-
error: import("@reduxjs/toolkit").SerializedError | undefined;
|
14
|
-
loadNext: (() => import("@reduxjs/toolkit/query").InfiniteQueryActionCreatorResult<import("@reduxjs/toolkit/query").InfiniteQueryDefinition<import("../data/state-manager/types").GetAssetsDataParams, import("../data/state-manager/types").PageParam, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, import("../data/state-manager/types").AssetsDataTags, AssetsDataWithPagination, "assetsDataApi", unknown>>) | undefined;
|
15
|
-
isSuccess: boolean;
|
16
|
-
isError: boolean;
|
17
|
-
refetch: () => import("@reduxjs/toolkit/query").InfiniteQueryActionCreatorResult<import("@reduxjs/toolkit/query").InfiniteQueryDefinition<import("../data/state-manager/types").GetAssetsDataParams, import("../data/state-manager/types").PageParam, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, import("../data/state-manager/types").AssetsDataTags, AssetsDataWithPagination, "assetsDataApi", unknown>>;
|
18
|
-
};
|
19
|
-
//# sourceMappingURL=useAssetsData.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useAssetsData.d.ts","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useAssetsData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAiBvE,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,OAAO,EACP,OAAO,EACP,SAAS,GACV,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,OAAO,EAAE,KAAK,GAAG,KAAK,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;;;;;;;;EAoDA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useAssetsData.js","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useAssetsData.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAChC,mDAA0E;AAG1E,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CAAC;IACvB,YAAY,EAAE,EAAE;IAChB,QAAQ,EAAE,EAAE;IACZ,uBAAuB,EAAE,EAAE;IAC3B,aAAa,EAAE,EAAE;IACjB,OAAO,EAAE,EAAE;IACX,eAAe,EAAE;QACf,aAAa,EAAE,EAAE;QACjB,eAAe,EAAE,EAAE;QACnB,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,EAAE;KACV;IACD,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;CAC/B,CAAC,CAAC;AAEH,SAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,OAAO,EACP,OAAO,EACP,SAAS,GASV;IACC,MAAM,EACJ,IAAI,EACJ,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,UAAU,EACV,OAAO,EACP,kBAAkB,GACnB,GAAG,IAAA,mCAA6B,EAAC;QAChC,MAAM;QACN,OAAO;QACP,WAAW,EAAE,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;QAC5D,OAAO;QACP,OAAO;QACP,SAAS;KACV,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC/B,OAAO,IAAI,EAAE,KAAK,CAAC,MAAM,CAA2B,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YAChE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;YACnD,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC3C,MAAM,C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RatesByCurrencies.d.ts","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useInterestRatesByCurrencies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAOrE,eAAO,MAAM,4BAA4B,eAAgB,qBAAqB,EAAE,QAc/E,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useInterestRatesByCurrencies.js","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useInterestRatesByCurrencies.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,kFAAsF;AAGtF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAmB,EAAE,CACvD,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,CAAC;AAE9C,MAAM,4BAA4B,GAAG,CAAC,UAAmC,EAAE,EAAE;IAClF,OAAO,IAAA,yBAAW,EAAC,KAAK,CAAC,EAAE;QACzB,MAAM,KAAK,GAAiE,EAAE,CAAC;QAC/E,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5B,MAAM,OAAO,GAAG,IAAA,oDAA4B,EAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;YACjE,IAAI,OAAO,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;gBAC3C,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG;oBACnB,KAAK,EAAE,OAAO,CAAC,IAAI;oBACnB,IAAI,EAAE,OAAO,CAAC,IAAI;iBACnB,CAAC;aACH;QACH,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAdW,QAAA,4BAA4B,gCAcvC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useMarketByCurrencies.d.ts","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useMarketByCurrencies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAGrE,eAAO,MAAM,qBAAqB,eAAgB,qBAAqB,EAAE,QAwBxE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useMarketByCurrencies.js","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useMarketByCurrencies.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,sEAA0E;AAEnE,MAAM,qBAAqB,GAAG,CAAC,UAAmC,EAAE,EAAE;IAC3E,OAAO,IAAA,yBAAW,EAAC,KAAK,CAAC,EAAE;QACzB,MAAM,kBAAkB,GAGpB,EAAE,CAAC;QACP,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5B,MAAM,cAAc,GAAG,IAAA,wCAAsB,EAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;YAClE,IACE,cAAc;gBACd,cAAc,CAAC,KAAK,KAAK,SAAS;gBAClC,cAAc,CAAC,wBAAwB,KAAK,SAAS,EACrD;gBACA,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG;oBAChC,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,CAAC;oBAC5D,GAAG,CAAC,cAAc,CAAC,wBAAwB,IAAI;wBAC7C,wBAAwB,EACtB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,wBAAwB,GAAG,GAAG,CAAC,GAAG,GAAG;qBAClE,CAAC;iBACH,CAAC;aACH;QACH,CAAC,CAAC,CAAC;QACH,OAAO,kBAAkB,CAAC;IAC5B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAxBW,QAAA,qBAAqB,yBAwBhC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"counterValueFormatter.test.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/utils/__tests__/counterValueFormatter.test.ts"],"names":[],"mappings":""}
|
@@ -1,496 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const counterValueFormatter_1 = require("../counterValueFormatter");
|
4
|
-
const translations = {
|
5
|
-
"numberCompactNotation.K": "K",
|
6
|
-
"numberCompactNotation.M": "M",
|
7
|
-
"numberCompactNotation.B": "B",
|
8
|
-
};
|
9
|
-
const mockT = jest.fn().mockImplementation((key) => {
|
10
|
-
return translations[key] || key;
|
11
|
-
});
|
12
|
-
describe("counterValueFormatter", () => {
|
13
|
-
it("should return '-' for NaN values", () => {
|
14
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
15
|
-
value: NaN,
|
16
|
-
locale: "en-US",
|
17
|
-
});
|
18
|
-
expect(result).toBe("-");
|
19
|
-
});
|
20
|
-
it("should format a number as currency", () => {
|
21
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
22
|
-
value: 1234.56,
|
23
|
-
currency: "USD",
|
24
|
-
locale: "en-US",
|
25
|
-
});
|
26
|
-
expect(result).toBe("$1,234.56");
|
27
|
-
});
|
28
|
-
it("should format a number as decimal when no currency is provided", () => {
|
29
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
30
|
-
value: 1234.56,
|
31
|
-
locale: "en-US",
|
32
|
-
});
|
33
|
-
expect(result).toBe("1,234.56");
|
34
|
-
});
|
35
|
-
it("should format a number in compact notation when shorten is true", () => {
|
36
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
37
|
-
value: 1234567,
|
38
|
-
locale: "en-US",
|
39
|
-
shorten: true,
|
40
|
-
});
|
41
|
-
expect(result).toContain("1.235M");
|
42
|
-
});
|
43
|
-
it("should include the ticker in the formatted value", () => {
|
44
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
45
|
-
value: 1234.56,
|
46
|
-
locale: "en-US",
|
47
|
-
ticker: "BTC",
|
48
|
-
});
|
49
|
-
expect(result).toBe("1,234.56 BTC");
|
50
|
-
});
|
51
|
-
it("should allow zero values when allowZeroValue is true", () => {
|
52
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
53
|
-
value: 0,
|
54
|
-
locale: "en-US",
|
55
|
-
allowZeroValue: true,
|
56
|
-
});
|
57
|
-
expect(result).toBe("0.00");
|
58
|
-
});
|
59
|
-
it("should format a number with specified decimal places set to 0", () => {
|
60
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
61
|
-
value: 10.231023213,
|
62
|
-
locale: "en-US",
|
63
|
-
decimalPlaces: 0,
|
64
|
-
allowZeroValue: true,
|
65
|
-
});
|
66
|
-
expect(result).toBe("10");
|
67
|
-
});
|
68
|
-
it("should format a number with specified decimal places set to 4", () => {
|
69
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
70
|
-
value: 10.231023213,
|
71
|
-
locale: "en-US",
|
72
|
-
decimalPlaces: 4,
|
73
|
-
allowZeroValue: true,
|
74
|
-
});
|
75
|
-
expect(result).toBe("10.2310");
|
76
|
-
});
|
77
|
-
it("should format a number in compact notation with translation", () => {
|
78
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
79
|
-
value: 1234567,
|
80
|
-
locale: "en-US",
|
81
|
-
shorten: true,
|
82
|
-
t: mockT,
|
83
|
-
});
|
84
|
-
expect(result).toContain("1.235 M");
|
85
|
-
expect(mockT).toHaveBeenCalledWith("numberCompactNotation.M");
|
86
|
-
});
|
87
|
-
it("should handle different locales for formatting", () => {
|
88
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
89
|
-
value: 1234.56,
|
90
|
-
locale: "fr-FR",
|
91
|
-
});
|
92
|
-
expect(result).toBe("1\u202f234,56");
|
93
|
-
});
|
94
|
-
it("should handle invalid currency gracefully", () => {
|
95
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
96
|
-
value: 1234.56,
|
97
|
-
currency: "INVALID",
|
98
|
-
locale: "en-US",
|
99
|
-
});
|
100
|
-
expect(result).toBe("1,234.56");
|
101
|
-
});
|
102
|
-
it("should return - if value is NaN and it's not discreet mode", () => {
|
103
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
104
|
-
value: NaN,
|
105
|
-
locale: "en-US",
|
106
|
-
});
|
107
|
-
expect(result).toBe("-");
|
108
|
-
});
|
109
|
-
it("should return sanitized value with *** in discreet mode for NaN", () => {
|
110
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
111
|
-
value: NaN,
|
112
|
-
locale: "en-US",
|
113
|
-
discreetMode: true,
|
114
|
-
});
|
115
|
-
expect(result).toBe("***");
|
116
|
-
});
|
117
|
-
it("should return sanitized value with *** in discreet mode for zero value", () => {
|
118
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
119
|
-
value: 0,
|
120
|
-
locale: "en-US",
|
121
|
-
discreetMode: true,
|
122
|
-
});
|
123
|
-
expect(result).toBe("***");
|
124
|
-
});
|
125
|
-
it("should return sanitized value with *** in discreet mode for non-zero value", () => {
|
126
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
127
|
-
value: 1234.56,
|
128
|
-
locale: "en-US",
|
129
|
-
discreetMode: true,
|
130
|
-
});
|
131
|
-
expect(result).toBe("***");
|
132
|
-
});
|
133
|
-
it("should return sanitized value with *** in discreet mode for zero value with allowZeroValue", () => {
|
134
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
135
|
-
value: 0,
|
136
|
-
locale: "en-US",
|
137
|
-
allowZeroValue: true,
|
138
|
-
discreetMode: true,
|
139
|
-
currency: "USD",
|
140
|
-
});
|
141
|
-
expect(result).toBe("$***");
|
142
|
-
});
|
143
|
-
describe("Multiple locales", () => {
|
144
|
-
it("should format German locale with EUR currency", () => {
|
145
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
146
|
-
value: 1234.56,
|
147
|
-
locale: "de-DE",
|
148
|
-
currency: "EUR",
|
149
|
-
});
|
150
|
-
expect(result).toBe("1.234,56\u00A0€");
|
151
|
-
});
|
152
|
-
it("should handle french locale", () => {
|
153
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
154
|
-
value: 10.23,
|
155
|
-
locale: "fr-FR",
|
156
|
-
allowZeroValue: true,
|
157
|
-
currency: "EUR",
|
158
|
-
});
|
159
|
-
expect(result).toBe("10,23\u00A0€");
|
160
|
-
});
|
161
|
-
it("should handle french locale with allowZeroValue", () => {
|
162
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
163
|
-
value: 0,
|
164
|
-
locale: "fr-FR",
|
165
|
-
allowZeroValue: true,
|
166
|
-
currency: "EUR",
|
167
|
-
});
|
168
|
-
expect(result).toBe("0,00\u00A0€");
|
169
|
-
});
|
170
|
-
it("should handle french locale with USD currency", () => {
|
171
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
172
|
-
value: 0,
|
173
|
-
locale: "fr-FR",
|
174
|
-
allowZeroValue: true,
|
175
|
-
currency: "USD",
|
176
|
-
});
|
177
|
-
expect(result).toBe("0,00\u00A0$US");
|
178
|
-
});
|
179
|
-
it("should format German locale with zero value", () => {
|
180
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
181
|
-
value: 0,
|
182
|
-
locale: "de-DE",
|
183
|
-
currency: "EUR",
|
184
|
-
allowZeroValue: true,
|
185
|
-
});
|
186
|
-
expect(result).toBe("0,00\u00A0€");
|
187
|
-
});
|
188
|
-
it("should format Japanese locale with JPY currency", () => {
|
189
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
190
|
-
value: 1234.56,
|
191
|
-
locale: "ja-JP",
|
192
|
-
currency: "JPY",
|
193
|
-
});
|
194
|
-
expect(result).toBe("¥1,235");
|
195
|
-
});
|
196
|
-
it("should format Japanese locale with zero value", () => {
|
197
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
198
|
-
value: 0,
|
199
|
-
locale: "ja-JP",
|
200
|
-
currency: "JPY",
|
201
|
-
allowZeroValue: true,
|
202
|
-
});
|
203
|
-
expect(result).toBe("¥0");
|
204
|
-
});
|
205
|
-
it("should format UK locale with GBP currency", () => {
|
206
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
207
|
-
value: 1234.56,
|
208
|
-
locale: "en-GB",
|
209
|
-
currency: "GBP",
|
210
|
-
});
|
211
|
-
expect(result).toBe("£1,234.56");
|
212
|
-
});
|
213
|
-
it("should format UK locale with zero value", () => {
|
214
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
215
|
-
value: 0,
|
216
|
-
locale: "en-GB",
|
217
|
-
currency: "GBP",
|
218
|
-
allowZeroValue: true,
|
219
|
-
});
|
220
|
-
expect(result).toBe("£0.00");
|
221
|
-
});
|
222
|
-
it("should format Italian locale with EUR currency", () => {
|
223
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
224
|
-
value: 1234.56,
|
225
|
-
locale: "it-IT",
|
226
|
-
currency: "EUR",
|
227
|
-
});
|
228
|
-
expect(result).toBe("1234,56\u00A0€");
|
229
|
-
});
|
230
|
-
it("should format Italian locale with zero value", () => {
|
231
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
232
|
-
value: 0,
|
233
|
-
locale: "it-IT",
|
234
|
-
currency: "EUR",
|
235
|
-
allowZeroValue: true,
|
236
|
-
});
|
237
|
-
expect(result).toBe("0,00\u00A0€");
|
238
|
-
});
|
239
|
-
it("should format Spanish locale with EUR currency", () => {
|
240
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
241
|
-
value: 1234.56,
|
242
|
-
locale: "es-ES",
|
243
|
-
currency: "EUR",
|
244
|
-
});
|
245
|
-
expect(result).toBe("1234,56\u00A0€");
|
246
|
-
});
|
247
|
-
it("should format Spanish locale with zero value", () => {
|
248
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
249
|
-
value: 0,
|
250
|
-
locale: "es-ES",
|
251
|
-
currency: "EUR",
|
252
|
-
allowZeroValue: true,
|
253
|
-
});
|
254
|
-
expect(result).toBe("0,00\u00A0€");
|
255
|
-
});
|
256
|
-
it("should format Chinese locale with CNY currency", () => {
|
257
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
258
|
-
value: 1234.56,
|
259
|
-
locale: "zh-CN",
|
260
|
-
currency: "CNY",
|
261
|
-
});
|
262
|
-
expect(result).toBe("¥1,234.56");
|
263
|
-
});
|
264
|
-
it("should format Chinese locale with zero value", () => {
|
265
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
266
|
-
value: 0,
|
267
|
-
locale: "zh-CN",
|
268
|
-
currency: "CNY",
|
269
|
-
allowZeroValue: true,
|
270
|
-
});
|
271
|
-
expect(result).toBe("¥0.00");
|
272
|
-
});
|
273
|
-
it("should format Canadian locale with CAD currency", () => {
|
274
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
275
|
-
value: 1234.56,
|
276
|
-
locale: "en-CA",
|
277
|
-
currency: "CAD",
|
278
|
-
});
|
279
|
-
expect(result).toBe("$1,234.56");
|
280
|
-
});
|
281
|
-
it("should format Canadian locale with zero value", () => {
|
282
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
283
|
-
value: 0,
|
284
|
-
locale: "en-CA",
|
285
|
-
currency: "CAD",
|
286
|
-
allowZeroValue: true,
|
287
|
-
});
|
288
|
-
expect(result).toBe("$0.00");
|
289
|
-
});
|
290
|
-
it("should format Brazilian locale with BRL currency", () => {
|
291
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
292
|
-
value: 1234.56,
|
293
|
-
locale: "pt-BR",
|
294
|
-
currency: "BRL",
|
295
|
-
});
|
296
|
-
expect(result).toBe("R$\u00A01.234,56");
|
297
|
-
});
|
298
|
-
it("should format Brazilian locale with zero value", () => {
|
299
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
300
|
-
value: 0,
|
301
|
-
locale: "pt-BR",
|
302
|
-
currency: "BRL",
|
303
|
-
allowZeroValue: true,
|
304
|
-
});
|
305
|
-
expect(result).toBe("R$\u00A00,00");
|
306
|
-
});
|
307
|
-
it("should format Thai locale with THB currency", () => {
|
308
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
309
|
-
value: 1234.56,
|
310
|
-
locale: "th-TH",
|
311
|
-
currency: "THB",
|
312
|
-
});
|
313
|
-
expect(result).toBe("฿1,234.56");
|
314
|
-
});
|
315
|
-
it("should format Thai locale with zero value", () => {
|
316
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
317
|
-
value: 0,
|
318
|
-
locale: "th-TH",
|
319
|
-
currency: "THB",
|
320
|
-
allowZeroValue: true,
|
321
|
-
});
|
322
|
-
expect(result).toBe("฿0.00");
|
323
|
-
});
|
324
|
-
it("should format Turkish locale with TRY currency", () => {
|
325
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
326
|
-
value: 1234.56,
|
327
|
-
locale: "tr-TR",
|
328
|
-
currency: "TRY",
|
329
|
-
});
|
330
|
-
expect(result).toBe("₺1.234,56");
|
331
|
-
});
|
332
|
-
it("should format Turkish locale with zero value", () => {
|
333
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
334
|
-
value: 0,
|
335
|
-
locale: "tr-TR",
|
336
|
-
currency: "TRY",
|
337
|
-
allowZeroValue: true,
|
338
|
-
});
|
339
|
-
expect(result).toBe("₺0,00");
|
340
|
-
});
|
341
|
-
it("should format Russian locale with RUB currency", () => {
|
342
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
343
|
-
value: 1234.56,
|
344
|
-
locale: "ru-RU",
|
345
|
-
currency: "RUB",
|
346
|
-
});
|
347
|
-
expect(result).toBe("1\u00A0234,56\u00A0₽");
|
348
|
-
});
|
349
|
-
it("should format Russian locale with zero value", () => {
|
350
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
351
|
-
value: 0,
|
352
|
-
locale: "ru-RU",
|
353
|
-
currency: "RUB",
|
354
|
-
allowZeroValue: true,
|
355
|
-
});
|
356
|
-
expect(result).toBe("0,00\u00A0₽");
|
357
|
-
});
|
358
|
-
it("should format Indian locale with INR currency", () => {
|
359
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
360
|
-
value: 1234.56,
|
361
|
-
locale: "hi-IN",
|
362
|
-
currency: "INR",
|
363
|
-
});
|
364
|
-
expect(result).toBe("₹1,234.56");
|
365
|
-
});
|
366
|
-
it("should format Indian locale with zero value", () => {
|
367
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
368
|
-
value: 0,
|
369
|
-
locale: "hi-IN",
|
370
|
-
currency: "INR",
|
371
|
-
allowZeroValue: true,
|
372
|
-
});
|
373
|
-
expect(result).toBe("₹0.00");
|
374
|
-
});
|
375
|
-
it("should format Korean locale with KRW currency", () => {
|
376
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
377
|
-
value: 1234.56,
|
378
|
-
locale: "ko-KR",
|
379
|
-
currency: "KRW",
|
380
|
-
});
|
381
|
-
expect(result).toBe("₩1,235");
|
382
|
-
});
|
383
|
-
it("should format Korean locale with zero value", () => {
|
384
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
385
|
-
value: 0,
|
386
|
-
locale: "ko-KR",
|
387
|
-
currency: "KRW",
|
388
|
-
allowZeroValue: true,
|
389
|
-
});
|
390
|
-
expect(result).toBe("₩0");
|
391
|
-
});
|
392
|
-
it("should format Mexican locale with MXN currency", () => {
|
393
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
394
|
-
value: 1234.56,
|
395
|
-
locale: "es-MX",
|
396
|
-
currency: "MXN",
|
397
|
-
});
|
398
|
-
expect(result).toBe("$1,234.56");
|
399
|
-
});
|
400
|
-
it("should format Mexican locale with zero value", () => {
|
401
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
402
|
-
value: 0,
|
403
|
-
locale: "es-MX",
|
404
|
-
currency: "MXN",
|
405
|
-
allowZeroValue: true,
|
406
|
-
});
|
407
|
-
expect(result).toBe("$0.00");
|
408
|
-
});
|
409
|
-
it("should format South African locale with ZAR currency", () => {
|
410
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
411
|
-
value: 1234.56,
|
412
|
-
locale: "en-ZA",
|
413
|
-
currency: "ZAR",
|
414
|
-
});
|
415
|
-
expect(result).toBe("R\u00A01\u00A0234,56");
|
416
|
-
});
|
417
|
-
it("should format South African locale with zero value", () => {
|
418
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
419
|
-
value: 0,
|
420
|
-
locale: "en-ZA",
|
421
|
-
currency: "ZAR",
|
422
|
-
allowZeroValue: true,
|
423
|
-
});
|
424
|
-
expect(result).toBe("R\u00A00,00");
|
425
|
-
});
|
426
|
-
it("should format Swedish locale with SEK currency", () => {
|
427
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
428
|
-
value: 1234.56,
|
429
|
-
locale: "sv-SE",
|
430
|
-
currency: "SEK",
|
431
|
-
});
|
432
|
-
expect(result).toBe("1\u00A0234,56\u00A0kr");
|
433
|
-
});
|
434
|
-
it("should format Swedish locale with zero value", () => {
|
435
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
436
|
-
value: 0,
|
437
|
-
locale: "sv-SE",
|
438
|
-
currency: "SEK",
|
439
|
-
allowZeroValue: true,
|
440
|
-
});
|
441
|
-
expect(result).toBe("0,00\u00A0kr");
|
442
|
-
});
|
443
|
-
it("should format Norwegian locale with NOK currency", () => {
|
444
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
445
|
-
value: 1234.56,
|
446
|
-
locale: "no-NO",
|
447
|
-
currency: "NOK",
|
448
|
-
});
|
449
|
-
expect(result).toBe("1\u00A0234,56\u00A0kr");
|
450
|
-
});
|
451
|
-
it("should format Norwegian locale with zero value", () => {
|
452
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
453
|
-
value: 0,
|
454
|
-
locale: "no-NO",
|
455
|
-
currency: "NOK",
|
456
|
-
allowZeroValue: true,
|
457
|
-
});
|
458
|
-
expect(result).toBe("0,00\u00A0kr");
|
459
|
-
});
|
460
|
-
it("should format Swiss locale with CHF currency", () => {
|
461
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
462
|
-
value: 1234.56,
|
463
|
-
locale: "de-CH",
|
464
|
-
currency: "CHF",
|
465
|
-
});
|
466
|
-
expect(result).toBe("CHF\u00A01’234.56");
|
467
|
-
});
|
468
|
-
it("should format Swiss locale with zero value", () => {
|
469
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
470
|
-
value: 0,
|
471
|
-
locale: "de-CH",
|
472
|
-
currency: "CHF",
|
473
|
-
allowZeroValue: true,
|
474
|
-
});
|
475
|
-
expect(result).toBe("CHF\u00A00.00");
|
476
|
-
});
|
477
|
-
it("should format Vietnamese locale with VND currency", () => {
|
478
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
479
|
-
value: 1234.56,
|
480
|
-
locale: "vi-VN",
|
481
|
-
currency: "VND",
|
482
|
-
});
|
483
|
-
expect(result).toBe("1.235\u00A0₫");
|
484
|
-
});
|
485
|
-
it("should format Vietnamese locale with zero value", () => {
|
486
|
-
const result = (0, counterValueFormatter_1.counterValueFormatter)({
|
487
|
-
value: 0,
|
488
|
-
locale: "vi-VN",
|
489
|
-
currency: "VND",
|
490
|
-
allowZeroValue: true,
|
491
|
-
});
|
492
|
-
expect(result).toBe("0\u00A0₫");
|
493
|
-
});
|
494
|
-
});
|
495
|
-
});
|
496
|
-
//# sourceMappingURL=counterValueFormatter.test.js.map
|