@rabbitio/ui-kit 1.0.0-beta.111 → 1.0.0-beta.113
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/.env +1 -0
- package/.env.example +1 -1
- package/coverage/clover.xml +1686 -1723
- package/coverage/coverage-final.json +118 -118
- package/coverage/index.html +86 -86
- package/coverage/{rabbit-ui-kit → ui-kit}/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/index.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/adapters/analyticsAdapters/googleAnalyticsAdapter.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/adapters/analyticsAdapters/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/adapters/analyticsAdapters/metrikaAdapter.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/adapters/analyticsAdapters/mixpanelAdapter.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/adapters/axiosAdapter.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/adapters/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/adapters/qrUtils.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/external-apis/apiGroups.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/external-apis/emailAPI.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/external-apis/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/external-apis/ipAddressProviders.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/globalConstants.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/models/blockchain.js.html +6 -6
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/models/coin.js.html +223 -223
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/models/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/models/protocol.js.html +5 -5
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/services/fiatCurrenciesService.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/services/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/amountUtils.js.html +51 -51
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/cache.js.html +8 -8
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/errorUtils.js.html +15 -15
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/logging/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/logging/logger.js.html +24 -24
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/logging/logsStorage.js.html +5 -5
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/postponeExecution.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/rabbitTicker.js.html +12 -12
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/safeStringify.js.html +29 -29
- package/coverage/{rabbit-ui-kit → ui-kit}/src/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/index.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/cacheAndConcurrentRequestsResolver.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/cachedRobustExternalApiCallerService.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/cancelProcessing.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/concurrentCalculationsMetadataHolder.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/externalApiProvider.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/externalServicesStatsCollector.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/robustExternalAPICallerService.js.html +14 -14
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/external-apis/exolixSwapProvider.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/external-apis/goexmeSwapProvider.js.html +566 -677
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/external-apis/index.html +29 -29
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/external-apis/letsExchangeSwapProvider.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/external-apis/swapProvider.js.html +349 -349
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/external-apis/swapspaceSwapProvider.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/external-apis/utils.js.html +16 -16
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/baseSwapCreationInfo.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/existingSwap.js.html +143 -143
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/existingSwapWithFiatData.js.html +103 -103
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/index.html +16 -16
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/partner.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/swapProviderCoinInfo.js.html +75 -75
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/services/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/services/publicSwapService.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/utils/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/utils/swapUtils.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/arrowIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/arrowTosca.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/arrowWhite.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/darkRectangle.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/determinedError.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/failedValidationIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/infoIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/messageIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/noticeQuestionIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/successfulValidationIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/supportDialogImage.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/walletIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/AssetIcon/AssetIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/AssetIcon/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/AssetSelection/AssetSelection.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/AssetSelection/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/BackgroundTitle/BackgroundTitle.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/BackgroundTitle/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/InformationMessage/InformationMessage.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/InformationMessage/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Input/Input.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Input/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/LoadingDots/LoadingDots.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/LoadingDots/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/NoticeIcon/NoticeIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/NoticeIcon/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/QrCode/QrCode.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/QrCode/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/RateSelector/RateSelector.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/RateSelector/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/SupportChat/SupportChat.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/SupportChat/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Textarea/Textarea.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Textarea/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/TitleBox/TitleBox.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/TitleBox/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Tooltip/Tooltip.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Tooltip/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/TwoLinesOfText/LinesOfText.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/TwoLinesOfText/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Validation/Validation.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Validation/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/Button/Button.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/Button/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/Close/Close.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/Close/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/LinkButton/LinkButton.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/LinkButton/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/RadioButtonWithText/RadioButtonWithText.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/RadioButtonWithText/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/AmountInput/AmountInput.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/AmountInput/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/CoinPicker/CoinPicker.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/CoinPicker/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/ColoredNotice/ColoredNotice.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/ColoredNotice/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/LineWithIconLink/LineWithIconLink.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/LineWithIconLink/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/LogoCarousel/LogoCarousel.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/LogoCarousel/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/SearchableCoinsList/SearchableCoinsList.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/SearchableCoinsList/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/TitledLineWithIconLink/TitledLineWithIconLink.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/TitledLineWithIconLink/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/CoinPickerDialogStep/CoinPickerDialogStep.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/CoinPickerDialogStep/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/Dialog/Dialog.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/Dialog/DialogButtons/DialogButtons.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/Dialog/DialogButtons/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/Dialog/DialogStep/DialogStep.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/Dialog/DialogStep/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/Dialog/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/SwapForm/SwapForm.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/SwapForm/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/WaitlistSubscription/WaitlistSubscription.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/WaitlistSubscription/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/templates/DeterminedErrorDialogStep/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/hooks/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/hooks/useCallHandlingErrors.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/hooks/useIsHydrated.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/hooks/useReferredState.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/utils/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/utils/inputValueProviders.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/utils/searchCoins.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/utils/textUtils.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/utils/uiUtils.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/utils/urlQueryUtils.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/BackgroundTitle.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/LinesOfText.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/LoadingDots.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/QrCode.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/RateSelector.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/Validation.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/buttons/Button.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/buttons/Close.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/buttons/LinkButton.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/buttons/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/AmountInput.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/CoinPicker.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/ColoredNotice.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/LineWithIconLink.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/LogoCarousel.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/TitledLineWithIconLink.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/Dialog.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/DialogButtons/DialogButtons.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/DialogButtons/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/DialogStep/DialogStep.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/DialogStep/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/WaitlistSubscription.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/stubs/coins.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/stubs/exampleContent.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/stubs/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/templates/DeterminedErrorDialogStep.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/templates/index.html +3 -3
- package/dist/index.cjs +120 -169
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +36 -71
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +120 -169
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +120 -169
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/swaps-lib/external-apis/goexmeSwapProvider.js +40 -77
- package/src/swaps-lib/models/existingSwap.js +1 -1
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/_convertCurrencyMeta.test.js +80 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/_fetchSupportedCurrenciesIfNeeded.test.js +50 -123
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/createSwap.test.js +177 -72
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/getExistingSwapsDetailsAndStatus.test.js +151 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/getSwapInfo.test.js +140 -104
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/helpers.test.js +26 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/integration/PairSupport.int.test.js +31 -60
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/integration/_fetchSupportedCurrenciesIfNeeded.int.test.js +261 -126
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/integration/createSwap.int.test.js +319 -225
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/integration/getSwapInfo.int.test.js +137 -127
package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/existingSwapWithFiatData.js.html
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for
|
|
6
|
+
<title>Code coverage report for ui-kit/src/swaps-lib/models/existingSwapWithFiatData.js</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../../../base.css" />
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../../index.html">All files</a> / <a href="index.html">
|
|
22
|
+
<h1><a href="../../../../index.html">All files</a> / <a href="index.html">ui-kit/src/swaps-lib/models</a> existingSwapWithFiatData.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">5.4% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>8/148</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/
|
|
42
|
+
<span class='fraction'>0/1</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">5.4% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>8/148</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -219,8 +219,6 @@
|
|
|
219
219
|
<span class="cline-any cline-yes">1x</span>
|
|
220
220
|
<span class="cline-any cline-yes">1x</span>
|
|
221
221
|
<span class="cline-any cline-yes">1x</span>
|
|
222
|
-
<span class="cline-any cline-yes">1x</span>
|
|
223
|
-
<span class="cline-any cline-yes">1x</span>
|
|
224
222
|
<span class="cline-any cline-no"> </span>
|
|
225
223
|
<span class="cline-any cline-no"> </span>
|
|
226
224
|
<span class="cline-any cline-no"> </span>
|
|
@@ -229,38 +227,6 @@
|
|
|
229
227
|
<span class="cline-any cline-no"> </span>
|
|
230
228
|
<span class="cline-any cline-no"> </span>
|
|
231
229
|
<span class="cline-any cline-no"> </span>
|
|
232
|
-
<span class="cline-any cline-yes">1x</span>
|
|
233
|
-
<span class="cline-any cline-yes">1x</span>
|
|
234
|
-
<span class="cline-any cline-yes">1x</span>
|
|
235
|
-
<span class="cline-any cline-yes">1x</span>
|
|
236
|
-
<span class="cline-any cline-yes">1x</span>
|
|
237
|
-
<span class="cline-any cline-yes">1x</span>
|
|
238
|
-
<span class="cline-any cline-yes">1x</span>
|
|
239
|
-
<span class="cline-any cline-yes">1x</span>
|
|
240
|
-
<span class="cline-any cline-yes">1x</span>
|
|
241
|
-
<span class="cline-any cline-yes">1x</span>
|
|
242
|
-
<span class="cline-any cline-yes">1x</span>
|
|
243
|
-
<span class="cline-any cline-yes">1x</span>
|
|
244
|
-
<span class="cline-any cline-yes">1x</span>
|
|
245
|
-
<span class="cline-any cline-yes">1x</span>
|
|
246
|
-
<span class="cline-any cline-yes">1x</span>
|
|
247
|
-
<span class="cline-any cline-yes">1x</span>
|
|
248
|
-
<span class="cline-any cline-yes">1x</span>
|
|
249
|
-
<span class="cline-any cline-yes">1x</span>
|
|
250
|
-
<span class="cline-any cline-yes">1x</span>
|
|
251
|
-
<span class="cline-any cline-yes">1x</span>
|
|
252
|
-
<span class="cline-any cline-yes">1x</span>
|
|
253
|
-
<span class="cline-any cline-yes">1x</span>
|
|
254
|
-
<span class="cline-any cline-yes">1x</span>
|
|
255
|
-
<span class="cline-any cline-yes">1x</span>
|
|
256
|
-
<span class="cline-any cline-yes">1x</span>
|
|
257
|
-
<span class="cline-any cline-yes">1x</span>
|
|
258
|
-
<span class="cline-any cline-yes">1x</span>
|
|
259
|
-
<span class="cline-any cline-yes">1x</span>
|
|
260
|
-
<span class="cline-any cline-yes">1x</span>
|
|
261
|
-
<span class="cline-any cline-yes">1x</span>
|
|
262
|
-
<span class="cline-any cline-yes">1x</span>
|
|
263
|
-
<span class="cline-any cline-yes">1x</span>
|
|
264
230
|
<span class="cline-any cline-no"> </span>
|
|
265
231
|
<span class="cline-any cline-no"> </span>
|
|
266
232
|
<span class="cline-any cline-no"> </span>
|
|
@@ -317,18 +283,6 @@
|
|
|
317
283
|
<span class="cline-any cline-no"> </span>
|
|
318
284
|
<span class="cline-any cline-no"> </span>
|
|
319
285
|
<span class="cline-any cline-no"> </span>
|
|
320
|
-
<span class="cline-any cline-yes">1x</span>
|
|
321
|
-
<span class="cline-any cline-yes">1x</span>
|
|
322
|
-
<span class="cline-any cline-yes">1x</span>
|
|
323
|
-
<span class="cline-any cline-yes">1x</span>
|
|
324
|
-
<span class="cline-any cline-yes">1x</span>
|
|
325
|
-
<span class="cline-any cline-yes">1x</span>
|
|
326
|
-
<span class="cline-any cline-yes">1x</span>
|
|
327
|
-
<span class="cline-any cline-yes">1x</span>
|
|
328
|
-
<span class="cline-any cline-yes">1x</span>
|
|
329
|
-
<span class="cline-any cline-yes">1x</span>
|
|
330
|
-
<span class="cline-any cline-yes">1x</span>
|
|
331
|
-
<span class="cline-any cline-yes">1x</span>
|
|
332
286
|
<span class="cline-any cline-no"> </span>
|
|
333
287
|
<span class="cline-any cline-no"> </span>
|
|
334
288
|
<span class="cline-any cline-no"> </span>
|
|
@@ -358,7 +312,53 @@
|
|
|
358
312
|
<span class="cline-any cline-no"> </span>
|
|
359
313
|
<span class="cline-any cline-no"> </span>
|
|
360
314
|
<span class="cline-any cline-no"> </span>
|
|
361
|
-
<span class="cline-any cline-
|
|
315
|
+
<span class="cline-any cline-no"> </span>
|
|
316
|
+
<span class="cline-any cline-no"> </span>
|
|
317
|
+
<span class="cline-any cline-no"> </span>
|
|
318
|
+
<span class="cline-any cline-no"> </span>
|
|
319
|
+
<span class="cline-any cline-no"> </span>
|
|
320
|
+
<span class="cline-any cline-no"> </span>
|
|
321
|
+
<span class="cline-any cline-no"> </span>
|
|
322
|
+
<span class="cline-any cline-no"> </span>
|
|
323
|
+
<span class="cline-any cline-no"> </span>
|
|
324
|
+
<span class="cline-any cline-no"> </span>
|
|
325
|
+
<span class="cline-any cline-no"> </span>
|
|
326
|
+
<span class="cline-any cline-no"> </span>
|
|
327
|
+
<span class="cline-any cline-no"> </span>
|
|
328
|
+
<span class="cline-any cline-no"> </span>
|
|
329
|
+
<span class="cline-any cline-no"> </span>
|
|
330
|
+
<span class="cline-any cline-no"> </span>
|
|
331
|
+
<span class="cline-any cline-no"> </span>
|
|
332
|
+
<span class="cline-any cline-no"> </span>
|
|
333
|
+
<span class="cline-any cline-no"> </span>
|
|
334
|
+
<span class="cline-any cline-no"> </span>
|
|
335
|
+
<span class="cline-any cline-no"> </span>
|
|
336
|
+
<span class="cline-any cline-no"> </span>
|
|
337
|
+
<span class="cline-any cline-no"> </span>
|
|
338
|
+
<span class="cline-any cline-no"> </span>
|
|
339
|
+
<span class="cline-any cline-no"> </span>
|
|
340
|
+
<span class="cline-any cline-no"> </span>
|
|
341
|
+
<span class="cline-any cline-no"> </span>
|
|
342
|
+
<span class="cline-any cline-no"> </span>
|
|
343
|
+
<span class="cline-any cline-no"> </span>
|
|
344
|
+
<span class="cline-any cline-no"> </span>
|
|
345
|
+
<span class="cline-any cline-no"> </span>
|
|
346
|
+
<span class="cline-any cline-no"> </span>
|
|
347
|
+
<span class="cline-any cline-no"> </span>
|
|
348
|
+
<span class="cline-any cline-no"> </span>
|
|
349
|
+
<span class="cline-any cline-no"> </span>
|
|
350
|
+
<span class="cline-any cline-no"> </span>
|
|
351
|
+
<span class="cline-any cline-no"> </span>
|
|
352
|
+
<span class="cline-any cline-no"> </span>
|
|
353
|
+
<span class="cline-any cline-no"> </span>
|
|
354
|
+
<span class="cline-any cline-no"> </span>
|
|
355
|
+
<span class="cline-any cline-no"> </span>
|
|
356
|
+
<span class="cline-any cline-no"> </span>
|
|
357
|
+
<span class="cline-any cline-no"> </span>
|
|
358
|
+
<span class="cline-any cline-no"> </span>
|
|
359
|
+
<span class="cline-any cline-no"> </span>
|
|
360
|
+
<span class="cline-any cline-no"> </span>
|
|
361
|
+
<span class="cline-any cline-no"> </span>
|
|
362
362
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { ExistingSwap } from "./existingSwap.js";
|
|
363
363
|
|
|
364
364
|
/**
|
|
@@ -366,9 +366,9 @@
|
|
|
366
366
|
* @extends {ExistingSwap}
|
|
367
367
|
* @description Represents a swap with additional fiat currency data.
|
|
368
368
|
*/
|
|
369
|
-
export class ExistingSwapWithFiatData extends ExistingSwap {
|
|
370
|
-
/** @type {number|null} The fiat equivalent of the fromAmount.
|
|
371
|
-
<span class="
|
|
369
|
+
export <span class="fstat-no" title="function not covered" ><span class="branch-0 cbranch-no" title="branch not covered" >class ExistingSwapWithFiatData extends ExistingSwap {</span></span>
|
|
370
|
+
<span class="cstat-no" title="statement not covered" > /** @type {number|null} The fiat equivalent of the fromAmount. */</span>
|
|
371
|
+
<span class="cstat-no" title="statement not covered" > fromAmountFiat;</span>
|
|
372
372
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
373
373
|
<span class="cstat-no" title="statement not covered" > /** @type {number|null} The fiat equivalent of the toAmount. */</span>
|
|
374
374
|
<span class="cstat-no" title="statement not covered" > toAmountFiat;</span>
|
|
@@ -377,38 +377,38 @@ export class ExistingSwapWithFiatData extends ExistingSwap {
|
|
|
377
377
|
<span class="cstat-no" title="statement not covered" > fiatCurrencyCode;</span>
|
|
378
378
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
379
379
|
<span class="cstat-no" title="statement not covered" > /** @type {number} The number of decimals for the fiat currency. */</span>
|
|
380
|
-
fiatCurrencyDecimals
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
* @constructor
|
|
384
|
-
* @param {string} swapId - The ID of the swap
|
|
385
|
-
* @param {SwapProvider.SWAP_STATUSES} status - The status of the swap
|
|
386
|
-
* @param {number} createdAt - The timestamp when the swap was created
|
|
387
|
-
* @param {number} expiresAt - The timestamp when the swap expires
|
|
388
|
-
* @param {number|null} confirmations - The number of confirmations the swap has received
|
|
389
|
-
* @param {string} rate - The exchange rate for the swap
|
|
390
|
-
* @param {boolean} fixed - Indicates if the rate is fixed
|
|
391
|
-
* @param {string|null} refundAddress - The address to refund to in case of failure
|
|
392
|
-
* @param {string} payToAddress - The address to send the funds to
|
|
393
|
-
* @param {Coin} fromCoin - The coin that is being swapped from
|
|
394
|
-
* @param {string} fromAmount - The amount of the coin being swapped from
|
|
395
|
-
* @param {string|null} fromTransactionId - The transaction ID for the fromCoin
|
|
396
|
-
* @param {string|null} fromTransactionLink - The link to view the fromCoin transaction
|
|
397
|
-
* @param {Coin} toCoin - The coin that is being swapped to
|
|
398
|
-
* @param {string} toAmount - The amount of the coin being swapped to
|
|
399
|
-
* @param {string|null} toTransactionId - The transaction ID for the toCoin
|
|
400
|
-
* @param {string|null} toTransactionLink - The link to view the toCoin transaction
|
|
401
|
-
* @param {string} toAddress - The address to send the swapped coin to
|
|
402
|
-
* @param {string|null} partner - The partner id associated with the swap
|
|
403
|
-
* @param {string|null} fromExtraId - Any extra ID related to the fromCoin
|
|
404
|
-
* @param {string|null} toExtraId - Any extra ID related to the toCoin
|
|
405
|
-
* @param {string|null} refundExtraId - Any extra ID related to the refund
|
|
406
|
-
* @param {number|null} fromAmountFiat - The fiat equivalent of the fromAmount
|
|
407
|
-
* @param {number|null} toAmountFiat - The fiat equivalent of the toAmount
|
|
408
|
-
* @param {string} fiatCurrencyCode - The fiat currency code (e.g., USD, EUR)
|
|
409
|
-
* @param {number} fiatCurrencyDecimals - The number of decimals for the fiat currency
|
|
410
|
-
|
|
411
|
-
<span class="
|
|
380
|
+
<span class="cstat-no" title="statement not covered" > fiatCurrencyDecimals;</span>
|
|
381
|
+
<span class="cstat-no" title="statement not covered" ></span>
|
|
382
|
+
<span class="cstat-no" title="statement not covered" > /**</span>
|
|
383
|
+
<span class="cstat-no" title="statement not covered" > * @constructor</span>
|
|
384
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} swapId - The ID of the swap.</span>
|
|
385
|
+
<span class="cstat-no" title="statement not covered" > * @param {SwapProvider.SWAP_STATUSES} status - The status of the swap.</span>
|
|
386
|
+
<span class="cstat-no" title="statement not covered" > * @param {number} createdAt - The timestamp when the swap was created.</span>
|
|
387
|
+
<span class="cstat-no" title="statement not covered" > * @param {number} expiresAt - The timestamp when the swap expires.</span>
|
|
388
|
+
<span class="cstat-no" title="statement not covered" > * @param {number|null} confirmations - The number of confirmations the swap has received.</span>
|
|
389
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} rate - The exchange rate for the swap.</span>
|
|
390
|
+
<span class="cstat-no" title="statement not covered" > * @param {boolean} fixed - Indicates if the rate is fixed.</span>
|
|
391
|
+
<span class="cstat-no" title="statement not covered" > * @param {string|null} refundAddress - The address to refund to in case of failure.</span>
|
|
392
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} payToAddress - The address to send the funds to.</span>
|
|
393
|
+
<span class="cstat-no" title="statement not covered" > * @param {Coin} fromCoin - The coin that is being swapped from.</span>
|
|
394
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} fromAmount - The amount of the coin being swapped from.</span>
|
|
395
|
+
<span class="cstat-no" title="statement not covered" > * @param {string|null} fromTransactionId - The transaction ID for the fromCoin.</span>
|
|
396
|
+
<span class="cstat-no" title="statement not covered" > * @param {string|null} fromTransactionLink - The link to view the fromCoin transaction.</span>
|
|
397
|
+
<span class="cstat-no" title="statement not covered" > * @param {Coin} toCoin - The coin that is being swapped to.</span>
|
|
398
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} toAmount - The amount of the coin being swapped to.</span>
|
|
399
|
+
<span class="cstat-no" title="statement not covered" > * @param {string|null} toTransactionId - The transaction ID for the toCoin.</span>
|
|
400
|
+
<span class="cstat-no" title="statement not covered" > * @param {string|null} toTransactionLink - The link to view the toCoin transaction.</span>
|
|
401
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} toAddress - The address to send the swapped coin to.</span>
|
|
402
|
+
<span class="cstat-no" title="statement not covered" > * @param {string|null} partner - The partner id associated with the swap.</span>
|
|
403
|
+
<span class="cstat-no" title="statement not covered" > * @param {string|null} fromExtraId - Any extra ID related to the fromCoin.</span>
|
|
404
|
+
<span class="cstat-no" title="statement not covered" > * @param {string|null} toExtraId - Any extra ID related to the toCoin.</span>
|
|
405
|
+
<span class="cstat-no" title="statement not covered" > * @param {string|null} refundExtraId - Any extra ID related to the refund.</span>
|
|
406
|
+
<span class="cstat-no" title="statement not covered" > * @param {number|null} fromAmountFiat - The fiat equivalent of the fromAmount.</span>
|
|
407
|
+
<span class="cstat-no" title="statement not covered" > * @param {number|null} toAmountFiat - The fiat equivalent of the toAmount.</span>
|
|
408
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} fiatCurrencyCode - The fiat currency code (e.g., USD, EUR).</span>
|
|
409
|
+
<span class="cstat-no" title="statement not covered" > * @param {number} fiatCurrencyDecimals - The number of decimals for the fiat currency.</span>
|
|
410
|
+
<span class="cstat-no" title="statement not covered" > */</span>
|
|
411
|
+
<span class="cstat-no" title="statement not covered" > constructor(</span>
|
|
412
412
|
<span class="cstat-no" title="statement not covered" > swapId,</span>
|
|
413
413
|
<span class="cstat-no" title="statement not covered" > status,</span>
|
|
414
414
|
<span class="cstat-no" title="statement not covered" > createdAt,</span>
|
|
@@ -465,18 +465,18 @@ export class ExistingSwapWithFiatData extends ExistingSwap {
|
|
|
465
465
|
<span class="cstat-no" title="statement not covered" > this.fiatCurrencyCode = fiatCurrencyCode;</span>
|
|
466
466
|
<span class="cstat-no" title="statement not covered" > this.fiatCurrencyDecimals = fiatCurrencyDecimals;</span>
|
|
467
467
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
* Creates an instance of ExistingSwapWithFiatData from an ExistingSwap
|
|
471
|
-
* @static
|
|
472
|
-
* @param {ExistingSwap} existingSwap - The existing swap data
|
|
473
|
-
* @param {number|null} fromAmountFiat - The fiat equivalent of the fromAmount
|
|
474
|
-
* @param {number|null} toAmountFiat - The fiat equivalent of the toAmount
|
|
475
|
-
* @param {string} fiatCurrencyCode - The fiat currency code (e.g., USD, EUR)
|
|
476
|
-
* @param {number} fiatCurrencyDecimals - The number of decimals for the fiat currency
|
|
477
|
-
* @returns {ExistingSwapWithFiatData} A new instance of ExistingSwapWithFiatData
|
|
478
|
-
|
|
479
|
-
|
|
468
|
+
<span class="cstat-no" title="statement not covered" ></span>
|
|
469
|
+
<span class="cstat-no" title="statement not covered" > /**</span>
|
|
470
|
+
<span class="cstat-no" title="statement not covered" > * Creates an instance of ExistingSwapWithFiatData from an ExistingSwap.</span>
|
|
471
|
+
<span class="cstat-no" title="statement not covered" > * @static</span>
|
|
472
|
+
<span class="cstat-no" title="statement not covered" > * @param {ExistingSwap} existingSwap - The existing swap data.</span>
|
|
473
|
+
<span class="cstat-no" title="statement not covered" > * @param {number|null} fromAmountFiat - The fiat equivalent of the fromAmount.</span>
|
|
474
|
+
<span class="cstat-no" title="statement not covered" > * @param {number|null} toAmountFiat - The fiat equivalent of the toAmount.</span>
|
|
475
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} fiatCurrencyCode - The fiat currency code (e.g., USD, EUR).</span>
|
|
476
|
+
<span class="cstat-no" title="statement not covered" > * @param {number} fiatCurrencyDecimals - The number of decimals for the fiat currency.</span>
|
|
477
|
+
<span class="cstat-no" title="statement not covered" > * @returns {ExistingSwapWithFiatData} A new instance of ExistingSwapWithFiatData.</span>
|
|
478
|
+
<span class="cstat-no" title="statement not covered" > */</span>
|
|
479
|
+
<span class="cstat-no" title="statement not covered" > static fromExistingSwap(existingSwap, fromAmountFiat, toAmountFiat, fiatCurrencyCode, fiatCurrencyDecimals) {</span>
|
|
480
480
|
<span class="cstat-no" title="statement not covered" > return new ExistingSwapWithFiatData(</span>
|
|
481
481
|
<span class="cstat-no" title="statement not covered" > existingSwap.swapId,</span>
|
|
482
482
|
<span class="cstat-no" title="statement not covered" > existingSwap.status,</span>
|
|
@@ -506,7 +506,7 @@ export class ExistingSwapWithFiatData extends ExistingSwap {
|
|
|
506
506
|
<span class="cstat-no" title="statement not covered" > fiatCurrencyDecimals</span>
|
|
507
507
|
<span class="cstat-no" title="statement not covered" > );</span>
|
|
508
508
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
509
|
-
}
|
|
509
|
+
<span class="cstat-no" title="statement not covered" >}</span>
|
|
510
510
|
</pre></td></tr></table></pre>
|
|
511
511
|
|
|
512
512
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -514,7 +514,7 @@ export class ExistingSwapWithFiatData extends ExistingSwap {
|
|
|
514
514
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
515
515
|
Code coverage generated by
|
|
516
516
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
517
|
-
at 2025-
|
|
517
|
+
at 2025-08-04T10:53:12.397Z
|
|
518
518
|
</div>
|
|
519
519
|
<script src="../../../../prettify.js"></script>
|
|
520
520
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for
|
|
6
|
+
<title>Code coverage report for ui-kit/src/swaps-lib/models</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../../../base.css" />
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../../index.html">All files</a>
|
|
22
|
+
<h1><a href="../../../../index.html">All files</a> ui-kit/src/swaps-lib/models</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">54.39% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>260/478</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">75% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>6/
|
|
42
|
+
<span class='fraction'>6/8</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">54.39% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>260/478</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -110,17 +110,17 @@
|
|
|
110
110
|
|
|
111
111
|
<tr>
|
|
112
112
|
<td class="file low" data-value="existingSwapWithFiatData.js"><a href="existingSwapWithFiatData.js.html">existingSwapWithFiatData.js</a></td>
|
|
113
|
-
<td data-value="
|
|
114
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
113
|
+
<td data-value="5.4" class="pic low">
|
|
114
|
+
<div class="chart"><div class="cover-fill" style="width: 5%"></div><div class="cover-empty" style="width: 95%"></div></div>
|
|
115
115
|
</td>
|
|
116
|
-
<td data-value="
|
|
117
|
-
<td data-value="148" class="abs low">
|
|
116
|
+
<td data-value="5.4" class="pct low">5.4%</td>
|
|
117
|
+
<td data-value="148" class="abs low">8/148</td>
|
|
118
118
|
<td data-value="0" class="pct low">0%</td>
|
|
119
119
|
<td data-value="1" class="abs low">0/1</td>
|
|
120
120
|
<td data-value="0" class="pct low">0%</td>
|
|
121
|
-
<td data-value="
|
|
122
|
-
<td data-value="
|
|
123
|
-
<td data-value="148" class="abs low">
|
|
121
|
+
<td data-value="1" class="abs low">0/1</td>
|
|
122
|
+
<td data-value="5.4" class="pct low">5.4%</td>
|
|
123
|
+
<td data-value="148" class="abs low">8/148</td>
|
|
124
124
|
</tr>
|
|
125
125
|
|
|
126
126
|
<tr>
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
162
162
|
Code coverage generated by
|
|
163
163
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
164
|
-
at 2025-
|
|
164
|
+
at 2025-08-04T10:53:12.397Z
|
|
165
165
|
</div>
|
|
166
166
|
<script src="../../../../prettify.js"></script>
|
|
167
167
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for
|
|
6
|
+
<title>Code coverage report for ui-kit/src/swaps-lib/models/partner.js</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../../../base.css" />
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../../index.html">All files</a> / <a href="index.html">
|
|
22
|
+
<h1><a href="../../../../index.html">All files</a> / <a href="index.html">ui-kit/src/swaps-lib/models</a> partner.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -151,7 +151,7 @@ export const KYC_LEVELS = {
|
|
|
151
151
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
152
152
|
Code coverage generated by
|
|
153
153
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
154
|
-
at 2025-
|
|
154
|
+
at 2025-08-04T10:53:12.397Z
|
|
155
155
|
</div>
|
|
156
156
|
<script src="../../../../prettify.js"></script>
|
|
157
157
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for
|
|
6
|
+
<title>Code coverage report for ui-kit/src/swaps-lib/models/swapProviderCoinInfo.js</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../../../base.css" />
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../../index.html">All files</a> / <a href="index.html">
|
|
22
|
+
<h1><a href="../../../../index.html">All files</a> / <a href="index.html">ui-kit/src/swaps-lib/models</a> swapProviderCoinInfo.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -155,78 +155,78 @@
|
|
|
155
155
|
<span class="cline-any cline-yes">1x</span>
|
|
156
156
|
<span class="cline-any cline-yes">1x</span>
|
|
157
157
|
<span class="cline-any cline-yes">1x</span>
|
|
158
|
-
<span class="cline-any cline-yes">
|
|
159
|
-
<span class="cline-any cline-yes">
|
|
160
|
-
<span class="cline-any cline-yes">
|
|
161
|
-
<span class="cline-any cline-yes">
|
|
162
|
-
<span class="cline-any cline-yes">
|
|
163
|
-
<span class="cline-any cline-yes">
|
|
164
|
-
<span class="cline-any cline-yes">
|
|
165
|
-
<span class="cline-any cline-yes">
|
|
166
|
-
<span class="cline-any cline-yes">
|
|
167
|
-
<span class="cline-any cline-yes">
|
|
168
|
-
<span class="cline-any cline-yes">
|
|
169
|
-
<span class="cline-any cline-yes">
|
|
170
|
-
<span class="cline-any cline-yes">
|
|
171
|
-
<span class="cline-any cline-yes">
|
|
172
|
-
<span class="cline-any cline-yes">
|
|
173
|
-
<span class="cline-any cline-yes">
|
|
174
|
-
<span class="cline-any cline-yes">
|
|
175
|
-
<span class="cline-any cline-yes">
|
|
176
|
-
<span class="cline-any cline-yes">
|
|
177
|
-
<span class="cline-any cline-yes">
|
|
178
|
-
<span class="cline-any cline-yes">
|
|
179
|
-
<span class="cline-any cline-yes">
|
|
180
|
-
<span class="cline-any cline-yes">
|
|
181
|
-
<span class="cline-any cline-yes">
|
|
182
|
-
<span class="cline-any cline-yes">
|
|
183
|
-
<span class="cline-any cline-yes">
|
|
184
|
-
<span class="cline-any cline-yes">
|
|
185
|
-
<span class="cline-any cline-yes">
|
|
186
|
-
<span class="cline-any cline-yes">
|
|
187
|
-
<span class="cline-any cline-yes">
|
|
188
|
-
<span class="cline-any cline-yes">
|
|
189
|
-
<span class="cline-any cline-yes">
|
|
190
|
-
<span class="cline-any cline-yes">
|
|
191
|
-
<span class="cline-any cline-yes">
|
|
192
|
-
<span class="cline-any cline-yes">
|
|
193
|
-
<span class="cline-any cline-yes">
|
|
194
|
-
<span class="cline-any cline-yes">
|
|
195
|
-
<span class="cline-any cline-yes">
|
|
196
|
-
<span class="cline-any cline-yes">
|
|
197
|
-
<span class="cline-any cline-yes">
|
|
198
|
-
<span class="cline-any cline-yes">
|
|
199
|
-
<span class="cline-any cline-yes">
|
|
200
|
-
<span class="cline-any cline-yes">
|
|
201
|
-
<span class="cline-any cline-yes">
|
|
202
|
-
<span class="cline-any cline-yes">
|
|
203
|
-
<span class="cline-any cline-yes">
|
|
204
|
-
<span class="cline-any cline-yes">
|
|
205
|
-
<span class="cline-any cline-yes">
|
|
206
|
-
<span class="cline-any cline-yes">
|
|
207
|
-
<span class="cline-any cline-yes">
|
|
208
|
-
<span class="cline-any cline-yes">
|
|
209
|
-
<span class="cline-any cline-yes">
|
|
210
|
-
<span class="cline-any cline-yes">
|
|
211
|
-
<span class="cline-any cline-yes">
|
|
212
|
-
<span class="cline-any cline-yes">
|
|
213
|
-
<span class="cline-any cline-yes">
|
|
214
|
-
<span class="cline-any cline-yes">
|
|
215
|
-
<span class="cline-any cline-yes">
|
|
216
|
-
<span class="cline-any cline-yes">
|
|
217
|
-
<span class="cline-any cline-yes">
|
|
218
|
-
<span class="cline-any cline-yes">
|
|
219
|
-
<span class="cline-any cline-yes">
|
|
220
|
-
<span class="cline-any cline-yes">
|
|
221
|
-
<span class="cline-any cline-yes">
|
|
222
|
-
<span class="cline-any cline-yes">
|
|
223
|
-
<span class="cline-any cline-yes">
|
|
224
|
-
<span class="cline-any cline-yes">
|
|
225
|
-
<span class="cline-any cline-yes">
|
|
226
|
-
<span class="cline-any cline-yes">
|
|
227
|
-
<span class="cline-any cline-yes">
|
|
228
|
-
<span class="cline-any cline-yes">
|
|
229
|
-
<span class="cline-any cline-yes">
|
|
158
|
+
<span class="cline-any cline-yes">465x</span>
|
|
159
|
+
<span class="cline-any cline-yes">465x</span>
|
|
160
|
+
<span class="cline-any cline-yes">465x</span>
|
|
161
|
+
<span class="cline-any cline-yes">465x</span>
|
|
162
|
+
<span class="cline-any cline-yes">465x</span>
|
|
163
|
+
<span class="cline-any cline-yes">465x</span>
|
|
164
|
+
<span class="cline-any cline-yes">465x</span>
|
|
165
|
+
<span class="cline-any cline-yes">465x</span>
|
|
166
|
+
<span class="cline-any cline-yes">465x</span>
|
|
167
|
+
<span class="cline-any cline-yes">465x</span>
|
|
168
|
+
<span class="cline-any cline-yes">465x</span>
|
|
169
|
+
<span class="cline-any cline-yes">465x</span>
|
|
170
|
+
<span class="cline-any cline-yes">465x</span>
|
|
171
|
+
<span class="cline-any cline-yes">465x</span>
|
|
172
|
+
<span class="cline-any cline-yes">465x</span>
|
|
173
|
+
<span class="cline-any cline-yes">465x</span>
|
|
174
|
+
<span class="cline-any cline-yes">465x</span>
|
|
175
|
+
<span class="cline-any cline-yes">465x</span>
|
|
176
|
+
<span class="cline-any cline-yes">465x</span>
|
|
177
|
+
<span class="cline-any cline-yes">465x</span>
|
|
178
|
+
<span class="cline-any cline-yes">465x</span>
|
|
179
|
+
<span class="cline-any cline-yes">465x</span>
|
|
180
|
+
<span class="cline-any cline-yes">465x</span>
|
|
181
|
+
<span class="cline-any cline-yes">465x</span>
|
|
182
|
+
<span class="cline-any cline-yes">465x</span>
|
|
183
|
+
<span class="cline-any cline-yes">465x</span>
|
|
184
|
+
<span class="cline-any cline-yes">465x</span>
|
|
185
|
+
<span class="cline-any cline-yes">465x</span>
|
|
186
|
+
<span class="cline-any cline-yes">465x</span>
|
|
187
|
+
<span class="cline-any cline-yes">465x</span>
|
|
188
|
+
<span class="cline-any cline-yes">465x</span>
|
|
189
|
+
<span class="cline-any cline-yes">465x</span>
|
|
190
|
+
<span class="cline-any cline-yes">465x</span>
|
|
191
|
+
<span class="cline-any cline-yes">465x</span>
|
|
192
|
+
<span class="cline-any cline-yes">465x</span>
|
|
193
|
+
<span class="cline-any cline-yes">465x</span>
|
|
194
|
+
<span class="cline-any cline-yes">465x</span>
|
|
195
|
+
<span class="cline-any cline-yes">465x</span>
|
|
196
|
+
<span class="cline-any cline-yes">465x</span>
|
|
197
|
+
<span class="cline-any cline-yes">465x</span>
|
|
198
|
+
<span class="cline-any cline-yes">465x</span>
|
|
199
|
+
<span class="cline-any cline-yes">465x</span>
|
|
200
|
+
<span class="cline-any cline-yes">465x</span>
|
|
201
|
+
<span class="cline-any cline-yes">465x</span>
|
|
202
|
+
<span class="cline-any cline-yes">465x</span>
|
|
203
|
+
<span class="cline-any cline-yes">465x</span>
|
|
204
|
+
<span class="cline-any cline-yes">465x</span>
|
|
205
|
+
<span class="cline-any cline-yes">465x</span>
|
|
206
|
+
<span class="cline-any cline-yes">465x</span>
|
|
207
|
+
<span class="cline-any cline-yes">465x</span>
|
|
208
|
+
<span class="cline-any cline-yes">465x</span>
|
|
209
|
+
<span class="cline-any cline-yes">465x</span>
|
|
210
|
+
<span class="cline-any cline-yes">465x</span>
|
|
211
|
+
<span class="cline-any cline-yes">465x</span>
|
|
212
|
+
<span class="cline-any cline-yes">465x</span>
|
|
213
|
+
<span class="cline-any cline-yes">465x</span>
|
|
214
|
+
<span class="cline-any cline-yes">465x</span>
|
|
215
|
+
<span class="cline-any cline-yes">465x</span>
|
|
216
|
+
<span class="cline-any cline-yes">465x</span>
|
|
217
|
+
<span class="cline-any cline-yes">465x</span>
|
|
218
|
+
<span class="cline-any cline-yes">465x</span>
|
|
219
|
+
<span class="cline-any cline-yes">465x</span>
|
|
220
|
+
<span class="cline-any cline-yes">465x</span>
|
|
221
|
+
<span class="cline-any cline-yes">465x</span>
|
|
222
|
+
<span class="cline-any cline-yes">465x</span>
|
|
223
|
+
<span class="cline-any cline-yes">465x</span>
|
|
224
|
+
<span class="cline-any cline-yes">465x</span>
|
|
225
|
+
<span class="cline-any cline-yes">465x</span>
|
|
226
|
+
<span class="cline-any cline-yes">465x</span>
|
|
227
|
+
<span class="cline-any cline-yes">465x</span>
|
|
228
|
+
<span class="cline-any cline-yes">465x</span>
|
|
229
|
+
<span class="cline-any cline-yes">465x</span>
|
|
230
230
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { FALLBACK_ASSET_ICON_URL } from "../../common-apis/globalConstants.jsx";
|
|
231
231
|
|
|
232
232
|
/**
|
|
@@ -316,7 +316,7 @@ export class SwapProviderCoinInfo {
|
|
|
316
316
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
317
317
|
Code coverage generated by
|
|
318
318
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
319
|
-
at 2025-
|
|
319
|
+
at 2025-08-04T10:53:12.397Z
|
|
320
320
|
</div>
|
|
321
321
|
<script src="../../../../prettify.js"></script>
|
|
322
322
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for
|
|
6
|
+
<title>Code coverage report for ui-kit/src/swaps-lib/services</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../../../base.css" />
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../../index.html">All files</a>
|
|
22
|
+
<h1><a href="../../../../index.html">All files</a> ui-kit/src/swaps-lib/services</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2025-
|
|
104
|
+
at 2025-08-04T10:53:12.397Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../../prettify.js"></script>
|
|
107
107
|
<script>
|