@rabbitio/ui-kit 1.0.0-beta.80 → 1.0.0-beta.82

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.
Files changed (258) hide show
  1. package/coverage/clover.xml +1617 -3041
  2. package/coverage/coverage-final.json +101 -153
  3. package/coverage/index.html +113 -353
  4. package/coverage/{ui-kit → rabbit-ui-kit}/index.html +3 -3
  5. package/coverage/{ui-kit → rabbit-ui-kit}/index.js.html +3 -3
  6. package/coverage/rabbit-ui-kit/src/common-apis/adapters/analyticsAdapters/googleAnalyticsAdapter.js.html +148 -0
  7. package/coverage/rabbit-ui-kit/src/common-apis/adapters/analyticsAdapters/index.html +131 -0
  8. package/coverage/rabbit-ui-kit/src/common-apis/adapters/analyticsAdapters/mixpanelAdapter.js.html +199 -0
  9. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/adapters/axiosAdapter.js.html +3 -3
  10. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/adapters/index.html +3 -3
  11. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/adapters/qrUtils.js.html +3 -3
  12. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/amountUtils.js.html +3 -3
  13. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/errorUtils.js.html +3 -3
  14. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/external-apis/apiGroups.js.html +3 -3
  15. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/external-apis/index.html +3 -3
  16. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/external-apis/ipAddressProviders.js.html +3 -3
  17. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/fiatCurrenciesService.js.html +3 -3
  18. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/globalConstants.jsx.html +3 -3
  19. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/index.html +3 -3
  20. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/models/blockchain.js.html +3 -3
  21. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/models/coin.js.html +42 -42
  22. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/models/index.html +3 -3
  23. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/models/protocol.js.html +5 -5
  24. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/utils/cache.js.html +8 -8
  25. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/utils/emailAPI.js.html +3 -3
  26. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/utils/index.html +3 -3
  27. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/utils/logging/index.html +3 -3
  28. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/utils/logging/logger.js.html +6 -6
  29. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/utils/logging/logsStorage.js.html +5 -5
  30. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/utils/postponeExecution.js.html +3 -3
  31. package/coverage/{ui-kit → rabbit-ui-kit}/src/common-apis/utils/safeStringify.js.html +3 -3
  32. package/coverage/{ui-kit → rabbit-ui-kit}/src/index.html +7 -7
  33. package/coverage/{ui-kit → rabbit-ui-kit}/src/index.js.html +15 -6
  34. package/coverage/{ui-kit → rabbit-ui-kit}/src/robust-api-caller/cacheAndConcurrentRequestsResolver.js.html +3 -3
  35. package/coverage/{ui-kit → rabbit-ui-kit}/src/robust-api-caller/cachedRobustExternalApiCallerService.js.html +3 -3
  36. package/coverage/{ui-kit → rabbit-ui-kit}/src/robust-api-caller/cancelProcessing.js.html +3 -3
  37. package/coverage/{ui-kit → rabbit-ui-kit}/src/robust-api-caller/concurrentCalculationsMetadataHolder.js.html +3 -3
  38. package/coverage/{ui-kit → rabbit-ui-kit}/src/robust-api-caller/externalApiProvider.js.html +3 -3
  39. package/coverage/{ui-kit → rabbit-ui-kit}/src/robust-api-caller/externalServicesStatsCollector.js.html +3 -3
  40. package/coverage/{ui-kit → rabbit-ui-kit}/src/robust-api-caller/index.html +3 -3
  41. package/coverage/{ui-kit → rabbit-ui-kit}/src/robust-api-caller/robustExternalAPICallerService.js.html +3 -3
  42. package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/external-apis/index.html +30 -30
  43. package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/external-apis/letsExchangeSwapProvider.js.html +19 -19
  44. package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/external-apis/swapProvider.js.html +282 -177
  45. package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/external-apis/swapspaceSwapProvider.js.html +167 -149
  46. package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/models/baseSwapCreationInfo.js.html +3 -3
  47. package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/models/existingSwap.js.html +3 -3
  48. package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/models/existingSwapWithFiatData.js.html +3 -3
  49. package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/models/index.html +26 -11
  50. package/coverage/rabbit-ui-kit/src/swaps-lib/models/swapProviderCoinInfo.js.html +193 -0
  51. package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/services/index.html +7 -7
  52. package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/services/publicSwapService.js.html +15 -18
  53. package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/utils/index.html +3 -3
  54. package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/utils/swapUtils.js.html +3 -3
  55. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/assets/wrappedImages/arrowIcon.jsx.html +3 -3
  56. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/assets/wrappedImages/arrowTosca.jsx.html +3 -3
  57. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/assets/wrappedImages/arrowWhite.jsx.html +3 -3
  58. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/assets/wrappedImages/darkRectangle.jsx.html +3 -3
  59. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/assets/wrappedImages/determinedError.jsx.html +3 -3
  60. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/assets/wrappedImages/failedValidationIcon.jsx.html +3 -3
  61. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/assets/wrappedImages/index.html +3 -3
  62. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/assets/wrappedImages/infoIcon.jsx.html +3 -3
  63. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/assets/wrappedImages/noticeQuestionIcon.jsx.html +3 -3
  64. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/assets/wrappedImages/successfulValidationIcon.jsx.html +3 -3
  65. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/assets/wrappedImages/walletIcon.jsx.html +3 -3
  66. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/AssetIcon/AssetIcon.jsx.html +3 -3
  67. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/AssetIcon/index.html +3 -3
  68. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/AssetSelection/AssetSelection.jsx.html +3 -3
  69. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/AssetSelection/index.html +3 -3
  70. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/BackgroundTitle/BackgroundTitle.jsx.html +3 -3
  71. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/BackgroundTitle/index.html +3 -3
  72. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/InformationMessage/InformationMessage.jsx.html +3 -3
  73. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/InformationMessage/index.html +3 -3
  74. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/Input/Input.jsx.html +3 -3
  75. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/Input/index.html +3 -3
  76. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/LoadingDots/LoadingDots.jsx.html +3 -3
  77. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/LoadingDots/index.html +3 -3
  78. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/NoticeIcon/NoticeIcon.jsx.html +3 -3
  79. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/NoticeIcon/index.html +3 -3
  80. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/QrCode/QrCode.jsx.html +7 -25
  81. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/QrCode/index.html +7 -7
  82. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/RateSelector/RateSelector.jsx.html +3 -3
  83. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/RateSelector/index.html +3 -3
  84. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/SupportChat/SupportChat.jsx.html +3 -3
  85. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/SupportChat/index.html +3 -3
  86. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/Textarea/Textarea.jsx.html +3 -3
  87. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/Textarea/index.html +3 -3
  88. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/TitleBox/TitleBox.jsx.html +3 -3
  89. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/TitleBox/index.html +3 -3
  90. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/Tooltip/Tooltip.jsx.html +3 -3
  91. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/Tooltip/index.html +3 -3
  92. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/TwoLinesOfText/LinesOfText.jsx.html +3 -3
  93. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/TwoLinesOfText/index.html +3 -3
  94. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/Validation/Validation.jsx.html +3 -3
  95. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/Validation/index.html +3 -3
  96. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/buttons/Button/Button.jsx.html +3 -3
  97. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/buttons/Button/index.html +3 -3
  98. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/buttons/Close/Close.jsx.html +3 -3
  99. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/buttons/Close/index.html +3 -3
  100. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/buttons/LinkButton/LinkButton.jsx.html +3 -3
  101. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/buttons/LinkButton/index.html +3 -3
  102. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/buttons/RadioButtonWithText/RadioButtonWithText.jsx.html +3 -3
  103. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/atoms/buttons/RadioButtonWithText/index.html +3 -3
  104. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/molecules/AmountInput/AmountInput.jsx.html +4 -4
  105. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/molecules/AmountInput/index.html +3 -3
  106. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/molecules/CoinPicker/CoinPicker.jsx.html +3 -3
  107. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/molecules/CoinPicker/index.html +3 -3
  108. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/molecules/LineWithIconLink/LineWithIconLink.jsx.html +3 -3
  109. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/molecules/LineWithIconLink/index.html +3 -3
  110. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/molecules/TitledLineWithIconLink/TitledLineWithIconLink.jsx.html +3 -3
  111. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/molecules/TitledLineWithIconLink/index.html +3 -3
  112. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/organisms/CoinPickerDialogStep/CoinPickerDialogStep.jsx.html +3 -3
  113. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/organisms/CoinPickerDialogStep/index.html +3 -3
  114. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/organisms/Dialog/Dialog.jsx.html +3 -3
  115. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/organisms/Dialog/DialogButtons/DialogButtons.jsx.html +3 -3
  116. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/organisms/Dialog/DialogButtons/index.html +3 -3
  117. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/organisms/Dialog/DialogStep/DialogStep.jsx.html +3 -3
  118. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/organisms/Dialog/DialogStep/index.html +3 -3
  119. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/organisms/Dialog/index.html +3 -3
  120. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/organisms/SwapForm/SwapForm.jsx.html +42 -18
  121. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/organisms/SwapForm/index.html +7 -7
  122. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx.html +3 -3
  123. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/components/templates/DeterminedErrorDialogStep/index.html +3 -3
  124. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/hooks/index.html +3 -3
  125. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/hooks/useCallHandlingErrors.js.html +3 -3
  126. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/hooks/useIsHydrated.js.html +3 -3
  127. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/hooks/useReferredState.js.html +3 -3
  128. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/utils/index.html +3 -3
  129. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/utils/inputValueProviders.js.html +3 -3
  130. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/utils/textUtils.js.html +3 -3
  131. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/utils/uiUtils.js.html +3 -3
  132. package/coverage/{ui-kit → rabbit-ui-kit}/src/ui-kit/utils/urlQueryUtils.js.html +3 -3
  133. package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/BackgroundTitle.stories.jsx.html +3 -3
  134. package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/LinesOfText.stories.jsx.html +3 -3
  135. package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/LoadingDots.stories.jsx.html +3 -3
  136. package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/QrCode.stories.jsx.html +3 -3
  137. package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/RateSelector.stories.jsx.html +3 -3
  138. package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/Validation.stories.jsx.html +3 -3
  139. package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/buttons/Button.stories.jsx.html +3 -3
  140. package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/buttons/Close.stories.jsx.html +3 -3
  141. package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/buttons/LinkButton.stories.jsx.html +3 -3
  142. package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/buttons/index.html +3 -3
  143. package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/index.html +3 -3
  144. package/coverage/rabbit-ui-kit/stories/molecules/CoinPicker.stories.jsx.html +271 -0
  145. package/coverage/{ui-kit → rabbit-ui-kit}/stories/molecules/LineWithIconLink.stories.jsx.html +3 -3
  146. package/coverage/{ui-kit → rabbit-ui-kit}/stories/molecules/TitledLineWithIconLink.stories.jsx.html +3 -3
  147. package/coverage/{ui-kit → rabbit-ui-kit}/stories/molecules/index.html +22 -7
  148. package/coverage/{ui-kit → rabbit-ui-kit}/stories/organisms/Dialog/Dialog.stories.jsx.html +3 -3
  149. package/coverage/{ui-kit → rabbit-ui-kit}/stories/organisms/Dialog/DialogButtons/DialogButtons.stories.jsx.html +3 -3
  150. package/coverage/{ui-kit → rabbit-ui-kit}/stories/organisms/Dialog/DialogButtons/index.html +3 -3
  151. package/coverage/{ui-kit → rabbit-ui-kit}/stories/organisms/Dialog/DialogStep/DialogStep.stories.jsx.html +3 -3
  152. package/coverage/{ui-kit → rabbit-ui-kit}/stories/organisms/Dialog/DialogStep/index.html +3 -3
  153. package/coverage/{ui-kit → rabbit-ui-kit}/stories/organisms/Dialog/index.html +3 -3
  154. package/coverage/rabbit-ui-kit/stories/stubs/coins.jsx.html +6880 -0
  155. package/coverage/{ui-kit → rabbit-ui-kit}/stories/stubs/exampleContent.jsx.html +3 -3
  156. package/coverage/{ui-kit/storybook-static/sb-preview → rabbit-ui-kit/stories/stubs}/index.html +11 -11
  157. package/coverage/{ui-kit → rabbit-ui-kit}/stories/templates/DeterminedErrorDialogStep.stories.jsx.html +3 -3
  158. package/coverage/{ui-kit → rabbit-ui-kit}/stories/templates/index.html +3 -3
  159. package/dist/global.css.map +1 -1
  160. package/dist/index.cjs +183 -110
  161. package/dist/index.cjs.map +1 -1
  162. package/dist/index.modern.js +123 -62
  163. package/dist/index.modern.js.map +1 -1
  164. package/dist/index.module.js +182 -111
  165. package/dist/index.module.js.map +1 -1
  166. package/dist/index.umd.js +183 -110
  167. package/dist/index.umd.js.map +1 -1
  168. package/package.json +1 -1
  169. package/src/common-apis/adapters/analyticsAdapters/googleAnalyticsAdapter.js +21 -0
  170. package/src/common-apis/adapters/analyticsAdapters/mixpanelAdapter.js +38 -0
  171. package/src/index.js +3 -0
  172. package/src/swaps-lib/external-apis/letsExchangeSwapProvider.js +16 -16
  173. package/src/swaps-lib/external-apis/swapProvider.js +41 -6
  174. package/src/swaps-lib/external-apis/swapspaceSwapProvider.js +22 -16
  175. package/src/swaps-lib/models/swapProviderCoinInfo.js +36 -0
  176. package/src/swaps-lib/services/publicSwapService.js +9 -10
  177. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/_fetchSupportedCurrenciesIfNeeded.test.js +502 -501
  178. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/getSwapInfo.test.js +120 -120
  179. package/src/ui-kit/assets/styles/global.scss +10 -1
  180. package/src/ui-kit/components/atoms/QrCode/QrCode.jsx +0 -6
  181. package/src/ui-kit/components/molecules/AmountInput/AmountInput.jsx +1 -1
  182. package/src/ui-kit/components/organisms/SwapForm/SwapForm.jsx +20 -12
  183. package/stories/font.scss +40 -0
  184. package/stories/stubs/coins.jsx +2266 -0
  185. package/coverage/ui-kit/stories/stubs/index.html +0 -116
  186. package/coverage/ui-kit/storybook-static/138.56b7edc4.iframe.bundle.js.html +0 -85
  187. package/coverage/ui-kit/storybook-static/312.6f62bbd9.iframe.bundle.js.html +0 -85
  188. package/coverage/ui-kit/storybook-static/341.57a15f57.iframe.bundle.js.html +0 -85
  189. package/coverage/ui-kit/storybook-static/595.2e40d981.iframe.bundle.js.html +0 -85
  190. package/coverage/ui-kit/storybook-static/607.3ea32459.iframe.bundle.js.html +0 -85
  191. package/coverage/ui-kit/storybook-static/609.949af3f6.iframe.bundle.js.html +0 -85
  192. package/coverage/ui-kit/storybook-static/693.1acf0184.iframe.bundle.js.html +0 -85
  193. package/coverage/ui-kit/storybook-static/797.c87cdf19.iframe.bundle.js.html +0 -85
  194. package/coverage/ui-kit/storybook-static/862.c15e3c9c.iframe.bundle.js.html +0 -85
  195. package/coverage/ui-kit/storybook-static/87.0a1bfeb1.iframe.bundle.js.html +0 -85
  196. package/coverage/ui-kit/storybook-static/893.e21210d8.iframe.bundle.js.html +0 -85
  197. package/coverage/ui-kit/storybook-static/996.10688684.iframe.bundle.js.html +0 -85
  198. package/coverage/ui-kit/storybook-static/atoms-BackgroundTitle-stories.1a5386a1.iframe.bundle.js.html +0 -85
  199. package/coverage/ui-kit/storybook-static/atoms-LinesOfText-stories.7043a48b.iframe.bundle.js.html +0 -85
  200. package/coverage/ui-kit/storybook-static/atoms-LoadingDots-stories.662d6a83.iframe.bundle.js.html +0 -85
  201. package/coverage/ui-kit/storybook-static/atoms-QrCode-stories.e10363b6.iframe.bundle.js.html +0 -85
  202. package/coverage/ui-kit/storybook-static/atoms-RateSelector-stories.da7b9f1f.iframe.bundle.js.html +0 -85
  203. package/coverage/ui-kit/storybook-static/atoms-Validation-stories.d561b311.iframe.bundle.js.html +0 -85
  204. package/coverage/ui-kit/storybook-static/atoms-buttons-Button-stories.d336c1a5.iframe.bundle.js.html +0 -85
  205. package/coverage/ui-kit/storybook-static/atoms-buttons-Close-stories.0a902a7c.iframe.bundle.js.html +0 -85
  206. package/coverage/ui-kit/storybook-static/atoms-buttons-LinkButton-stories.ca93ab6b.iframe.bundle.js.html +0 -85
  207. package/coverage/ui-kit/storybook-static/index.html +0 -536
  208. package/coverage/ui-kit/storybook-static/main.75ff1c31.iframe.bundle.js.html +0 -85
  209. package/coverage/ui-kit/storybook-static/molecules-LineWithIconLink-stories.2d2d5753.iframe.bundle.js.html +0 -85
  210. package/coverage/ui-kit/storybook-static/molecules-TitledLineWithIconLink-stories.1383fe3f.iframe.bundle.js.html +0 -85
  211. package/coverage/ui-kit/storybook-static/organisms-Dialog-Dialog-stories.4e6da717.iframe.bundle.js.html +0 -85
  212. package/coverage/ui-kit/storybook-static/organisms-Dialog-DialogButtons-DialogButtons-stories.b79c32a3.iframe.bundle.js.html +0 -85
  213. package/coverage/ui-kit/storybook-static/organisms-Dialog-DialogStep-DialogStep-stories.74896048.iframe.bundle.js.html +0 -85
  214. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/@storybook/addon-backgrounds/dist/index.html +0 -116
  215. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/@storybook/addon-backgrounds/dist/preview.js.html +0 -118
  216. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/@storybook/components/dist/formatter-SWP5E3XI.mjs.html +0 -118
  217. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/@storybook/components/dist/index.html +0 -116
  218. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/buffer/index.html +0 -116
  219. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/buffer/index.js.html +0 -118
  220. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/markdown-to-jsx/dist/index.html +0 -116
  221. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/markdown-to-jsx/dist/index.modern.js.html +0 -118
  222. package/coverage/ui-kit/storybook-static/runtime~main.b108a22d.iframe.bundle.js.html +0 -85
  223. package/coverage/ui-kit/storybook-static/sb-addons/actions-9/index.html +0 -116
  224. package/coverage/ui-kit/storybook-static/sb-addons/actions-9/manager-bundle.js.html +0 -94
  225. package/coverage/ui-kit/storybook-static/sb-addons/essentials-backgrounds-2/index.html +0 -116
  226. package/coverage/ui-kit/storybook-static/sb-addons/essentials-backgrounds-2/manager-bundle.js.html +0 -121
  227. package/coverage/ui-kit/storybook-static/sb-addons/essentials-controls-1/index.html +0 -116
  228. package/coverage/ui-kit/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.html +0 -274
  229. package/coverage/ui-kit/storybook-static/sb-addons/essentials-measure-4/index.html +0 -116
  230. package/coverage/ui-kit/storybook-static/sb-addons/essentials-measure-4/manager-bundle.js.html +0 -94
  231. package/coverage/ui-kit/storybook-static/sb-addons/essentials-outline-5/index.html +0 -116
  232. package/coverage/ui-kit/storybook-static/sb-addons/essentials-outline-5/manager-bundle.js.html +0 -94
  233. package/coverage/ui-kit/storybook-static/sb-addons/essentials-toolbars-3/index.html +0 -116
  234. package/coverage/ui-kit/storybook-static/sb-addons/essentials-toolbars-3/manager-bundle.js.html +0 -94
  235. package/coverage/ui-kit/storybook-static/sb-addons/interactions-7/index.html +0 -116
  236. package/coverage/ui-kit/storybook-static/sb-addons/interactions-7/manager-bundle.js.html +0 -121
  237. package/coverage/ui-kit/storybook-static/sb-addons/links-0/index.html +0 -116
  238. package/coverage/ui-kit/storybook-static/sb-addons/links-0/manager-bundle.js.html +0 -94
  239. package/coverage/ui-kit/storybook-static/sb-addons/onboarding-6/index.html +0 -116
  240. package/coverage/ui-kit/storybook-static/sb-addons/onboarding-6/manager-bundle.js.html +0 -1588
  241. package/coverage/ui-kit/storybook-static/sb-addons/viewport-8/index.html +0 -116
  242. package/coverage/ui-kit/storybook-static/sb-addons/viewport-8/manager-bundle.js.html +0 -94
  243. package/coverage/ui-kit/storybook-static/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js.html +0 -88
  244. package/coverage/ui-kit/storybook-static/sb-manager/chunk-2IXBUOFS.js.html +0 -106
  245. package/coverage/ui-kit/storybook-static/sb-manager/chunk-INSKDKQB.js.html +0 -1129
  246. package/coverage/ui-kit/storybook-static/sb-manager/chunk-NGTUFCUO.js.html +0 -112
  247. package/coverage/ui-kit/storybook-static/sb-manager/chunk-UUEAOBSN.js.html +0 -1303
  248. package/coverage/ui-kit/storybook-static/sb-manager/chunk-ZEU7PDD3.js.html +0 -88
  249. package/coverage/ui-kit/storybook-static/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js.html +0 -553
  250. package/coverage/ui-kit/storybook-static/sb-manager/globals-module-info.js.html +0 -88
  251. package/coverage/ui-kit/storybook-static/sb-manager/globals.js.html +0 -88
  252. package/coverage/ui-kit/storybook-static/sb-manager/index.html +0 -281
  253. package/coverage/ui-kit/storybook-static/sb-manager/index.js.html +0 -88
  254. package/coverage/ui-kit/storybook-static/sb-manager/runtime.js.html +0 -88
  255. package/coverage/ui-kit/storybook-static/sb-manager/syntaxhighlighter-V7JZZA35-DXZCI2WR.js.html +0 -88
  256. package/coverage/ui-kit/storybook-static/sb-preview/globals.js.html +0 -88
  257. package/coverage/ui-kit/storybook-static/sb-preview/runtime.js.html +0 -421
  258. package/coverage/ui-kit/storybook-static/templates-DeterminedErrorDialogStep-stories.3cc14214.iframe.bundle.js.html +0 -85
@@ -112,8 +112,8 @@ describe("swapspaceSwapProvider", function () {
112
112
 
113
113
  it("should return a result of correct format when available exchanges are present", async () => {
114
114
  swapspaceSwapProvider._supportedCoins = [
115
- { coin: BTC, code: "btc", network: "btc", deposit: true },
116
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
115
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
116
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
117
117
  ];
118
118
  const mockData = [
119
119
  {
@@ -143,8 +143,8 @@ describe("swapspaceSwapProvider", function () {
143
143
 
144
144
  // it("should return a result of correct format when there are no available exchange options but some not relevant options have min/max amount", async () => {
145
145
  // swapspaceSwapProvider._supportedCoins = [
146
- // { coin: BTC, code: "btc", network: "btc", deposit: true },
147
- // { coin: ETH, code: "eth", network: "eth", withdrawal: true },
146
+ // { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
147
+ // { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
148
148
  // ];
149
149
  // axiosGetStub.resolves({
150
150
  // data: [
@@ -170,8 +170,8 @@ describe("swapspaceSwapProvider", function () {
170
170
 
171
171
  it("should use the exchange with the highest rate", async () => {
172
172
  swapspaceSwapProvider._supportedCoins = [
173
- { coin: BTC, code: "btc", network: "btc", deposit: true },
174
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
173
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
174
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
175
175
  ];
176
176
  const mockData = [
177
177
  {
@@ -202,8 +202,8 @@ describe("swapspaceSwapProvider", function () {
202
202
 
203
203
  it("should return result with proper rate calculation if the selected exchange has toAmount, fromAmount and the coin usd rate is successfully retrieved", async () => {
204
204
  swapspaceSwapProvider._supportedCoins = [
205
- { coin: BTC, code: "btc", network: "btc", deposit: true },
206
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
205
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
206
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
207
207
  ];
208
208
  const mockData = [
209
209
  {
@@ -225,8 +225,8 @@ describe("swapspaceSwapProvider", function () {
225
225
 
226
226
  it("should use the first best exchange option when multiple exchanges have the same toAmount", async () => {
227
227
  swapspaceSwapProvider._supportedCoins = [
228
- { coin: BTC, code: "btc", network: "btc", deposit: true },
229
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
228
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
229
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
230
230
  ];
231
231
  const mockData = [
232
232
  {
@@ -257,8 +257,8 @@ describe("swapspaceSwapProvider", function () {
257
257
 
258
258
  it("should return a rawSwapData object for available exchanges", async () => {
259
259
  swapspaceSwapProvider._supportedCoins = [
260
- { coin: BTC, code: "btc", network: "btc", deposit: true },
261
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
260
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
261
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
262
262
  ];
263
263
  const mockData = [
264
264
  {
@@ -280,8 +280,8 @@ describe("swapspaceSwapProvider", function () {
280
280
 
281
281
  it("should handle REQUESTS_LIMIT_EXCEEDED when axios returns a 429", async () => {
282
282
  swapspaceSwapProvider._supportedCoins = [
283
- { coin: BTC, code: "btc", network: "btc", deposit: true },
284
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
283
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
284
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
285
285
  ];
286
286
  axiosGetStub.throws({ response: { status: 429 } });
287
287
 
@@ -294,8 +294,8 @@ describe("swapspaceSwapProvider", function () {
294
294
 
295
295
  // it("should return TOO_HIGH when amount is above the greatest max and there are no available exchange option", async () => {
296
296
  // swapspaceSwapProvider._supportedCoins = [
297
- // { coin: BTC, code: "btc", network: "btc", deposit: true },
298
- // { coin: ETH, code: "eth", network: "eth", withdrawal: true },
297
+ // { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
298
+ // { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
299
299
  // ];
300
300
  // const mockData = [
301
301
  // {
@@ -327,8 +327,8 @@ describe("swapspaceSwapProvider", function () {
327
327
 
328
328
  it("should return NOT_SUPPORTED when no exchanges support the pair", async () => {
329
329
  swapspaceSwapProvider._supportedCoins = [
330
- { coin: BTC, code: "btc", network: "btc", deposit: true },
331
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
330
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
331
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
332
332
  ];
333
333
  axiosGetStub.returns(Promise.resolve({ data: [] }));
334
334
 
@@ -340,8 +340,8 @@ describe("swapspaceSwapProvider", function () {
340
340
 
341
341
  it("should return NOT_SUPPORTED when deposit is false for from currency", async () => {
342
342
  swapspaceSwapProvider._supportedCoins = [
343
- { coin: BTC, code: "btc", network: "btc", deposit: false },
344
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
343
+ { coin: BTC, code: "btc", network: "btc", deposit: false, isAvailable: true },
344
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
345
345
  ];
346
346
  axiosGetStub.returns(Promise.resolve({ data: [] }));
347
347
 
@@ -353,8 +353,8 @@ describe("swapspaceSwapProvider", function () {
353
353
 
354
354
  it("should return NOT_SUPPORTED when withdrawal is false for to currency", async () => {
355
355
  swapspaceSwapProvider._supportedCoins = [
356
- { coin: BTC, code: "btc", network: "btc", deposit: true },
357
- { coin: ETH, code: "eth", network: "eth", withdrawal: false },
356
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
357
+ { coin: ETH, code: "eth", network: "eth", withdrawal: false, isAvailable: true },
358
358
  ];
359
359
  axiosGetStub.returns(Promise.resolve({ data: [] }));
360
360
 
@@ -366,8 +366,8 @@ describe("swapspaceSwapProvider", function () {
366
366
 
367
367
  it("should return NO_FIXED_BUT_HAVE_FLOATING when fixed passed is true and there is no fixed option but there is floating option", async () => {
368
368
  swapspaceSwapProvider._supportedCoins = [
369
- { coin: BTC, code: "btc", network: "btc", deposit: true },
370
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
369
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
370
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
371
371
  ];
372
372
  axiosGetStub.returns(
373
373
  Promise.resolve({
@@ -393,8 +393,8 @@ describe("swapspaceSwapProvider", function () {
393
393
 
394
394
  it("should return NO_FLOATING_BUT_HAVE_FIXED when fixed passed is false and there is no floating option but there is fixed option", async () => {
395
395
  swapspaceSwapProvider._supportedCoins = [
396
- { coin: BTC, code: "btc", network: "btc", deposit: true },
397
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
396
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
397
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
398
398
  ];
399
399
  axiosGetStub.returns(
400
400
  Promise.resolve({
@@ -420,8 +420,8 @@ describe("swapspaceSwapProvider", function () {
420
420
 
421
421
  it("should return best option across both fixed and floating when fixed passed is null", async () => {
422
422
  swapspaceSwapProvider._supportedCoins = [
423
- { coin: BTC, code: "btc", network: "btc", deposit: true },
424
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
423
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
424
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
425
425
  ];
426
426
  const opts = [
427
427
  {
@@ -457,8 +457,8 @@ describe("swapspaceSwapProvider", function () {
457
457
 
458
458
  it("should correctly handle when there are available exchange options and no numeric min", async () => {
459
459
  swapspaceSwapProvider._supportedCoins = [
460
- { coin: BTC, code: "btc", network: "btc", deposit: true },
461
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
460
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
461
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
462
462
  ];
463
463
  axiosGetStub.resolves({
464
464
  data: [
@@ -482,8 +482,8 @@ describe("swapspaceSwapProvider", function () {
482
482
 
483
483
  it("should correctly handle when there are available exchange options and no numeric max", async () => {
484
484
  swapspaceSwapProvider._supportedCoins = [
485
- { coin: BTC, code: "btc", network: "btc", deposit: true },
486
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
485
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
486
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
487
487
  ];
488
488
  axiosGetStub.resolves({
489
489
  data: [
@@ -507,8 +507,8 @@ describe("swapspaceSwapProvider", function () {
507
507
 
508
508
  it("should increase the min with coinAmountForMinMaxSafety", async () => {
509
509
  swapspaceSwapProvider._supportedCoins = [
510
- { coin: BTC, code: "btc", network: "btc", deposit: true },
511
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
510
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
511
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
512
512
  ];
513
513
  const mockData = [
514
514
  {
@@ -531,8 +531,8 @@ describe("swapspaceSwapProvider", function () {
531
531
 
532
532
  it("should increase the smallestMin with coinAmountForMinMaxSafety", async () => {
533
533
  swapspaceSwapProvider._supportedCoins = [
534
- { coin: BTC, code: "btc", network: "btc", deposit: true },
535
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
534
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
535
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
536
536
  ];
537
537
  const mockData = [
538
538
  {
@@ -564,8 +564,8 @@ describe("swapspaceSwapProvider", function () {
564
564
 
565
565
  it("should set greatestMax to 0 if greatestMax - coinAmountForMinMaxSafety is negative", async () => {
566
566
  swapspaceSwapProvider._supportedCoins = [
567
- { coin: BTC, code: "btc", network: "btc", deposit: true },
568
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
567
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
568
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
569
569
  ];
570
570
  const mockData = [
571
571
  {
@@ -597,8 +597,8 @@ describe("swapspaceSwapProvider", function () {
597
597
 
598
598
  it("should decrease the max with coinAmountForMinMaxSafety", async () => {
599
599
  swapspaceSwapProvider._supportedCoins = [
600
- { coin: BTC, code: "btc", network: "btc", deposit: true },
601
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
600
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
601
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
602
602
  ];
603
603
  const mockData = [
604
604
  {
@@ -621,8 +621,8 @@ describe("swapspaceSwapProvider", function () {
621
621
 
622
622
  it("should decrease the greatestMax with coinAmountForMinMaxSafety", async () => {
623
623
  swapspaceSwapProvider._supportedCoins = [
624
- { coin: BTC, code: "btc", network: "btc", deposit: true },
625
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
624
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
625
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
626
626
  ];
627
627
  const mockData = [
628
628
  {
@@ -654,8 +654,8 @@ describe("swapspaceSwapProvider", function () {
654
654
 
655
655
  it("should set max to 0 if max - coinAmountForMinMaxSafety is negative", async () => {
656
656
  swapspaceSwapProvider._supportedCoins = [
657
- { coin: BTC, code: "btc", network: "btc", deposit: true },
658
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
657
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
658
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
659
659
  ];
660
660
  const mockData = [
661
661
  {
@@ -678,8 +678,8 @@ describe("swapspaceSwapProvider", function () {
678
678
 
679
679
  it("should filter out exchanges without toAmount", async () => {
680
680
  swapspaceSwapProvider._supportedCoins = [
681
- { coin: BTC, code: "btc", network: "btc", deposit: true },
682
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
681
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
682
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
683
683
  ];
684
684
  const mockData = [
685
685
  {
@@ -700,8 +700,8 @@ describe("swapspaceSwapProvider", function () {
700
700
 
701
701
  it("should filter out banned exchanges", async () => {
702
702
  swapspaceSwapProvider._supportedCoins = [
703
- { coin: BTC, code: "btc", network: "btc", deposit: true },
704
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
703
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
704
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
705
705
  ];
706
706
  const mockData = [
707
707
  {
@@ -731,8 +731,8 @@ describe("swapspaceSwapProvider", function () {
731
731
 
732
732
  it("should filter out exchanges where toAmount equals 0", async () => {
733
733
  swapspaceSwapProvider._supportedCoins = [
734
- { coin: BTC, code: "btc", network: "btc", deposit: true },
735
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
734
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
735
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
736
736
  ];
737
737
  const mockData = [
738
738
  {
@@ -754,8 +754,8 @@ describe("swapspaceSwapProvider", function () {
754
754
 
755
755
  it("should correctly compute smallestMin and greatestMax", async () => {
756
756
  swapspaceSwapProvider._supportedCoins = [
757
- { coin: BTC, code: "btc", network: "btc", deposit: true },
758
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
757
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
758
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
759
759
  ];
760
760
  const mockData = [
761
761
  {
@@ -787,8 +787,8 @@ describe("swapspaceSwapProvider", function () {
787
787
 
788
788
  it("should handle general axios error", async () => {
789
789
  swapspaceSwapProvider._supportedCoins = [
790
- { coin: BTC, code: "btc", network: "btc", deposit: true },
791
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
790
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
791
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
792
792
  ];
793
793
  const error = new Error();
794
794
  error.response = { status: 500 };
@@ -803,8 +803,8 @@ describe("swapspaceSwapProvider", function () {
803
803
 
804
804
  it("should handle missing data in axios response", async () => {
805
805
  swapspaceSwapProvider._supportedCoins = [
806
- { coin: BTC, code: "btc", network: "btc", deposit: true },
807
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
806
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
807
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
808
808
  ];
809
809
  axiosGetStub.returns(Promise.resolve({}));
810
810
 
@@ -816,8 +816,8 @@ describe("swapspaceSwapProvider", function () {
816
816
 
817
817
  it("should handle non-array axios response data", async () => {
818
818
  swapspaceSwapProvider._supportedCoins = [
819
- { coin: BTC, code: "btc", network: "btc", deposit: true },
820
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
819
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
820
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
821
821
  ];
822
822
  axiosGetStub.returns(Promise.resolve({ data: {} }));
823
823
 
@@ -829,8 +829,8 @@ describe("swapspaceSwapProvider", function () {
829
829
 
830
830
  it("should handle missing exists property in exchange data", async () => {
831
831
  swapspaceSwapProvider._supportedCoins = [
832
- { coin: BTC, code: "btc", network: "btc", deposit: true },
833
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
832
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
833
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
834
834
  ];
835
835
  const mockData = [
836
836
  {
@@ -852,8 +852,8 @@ describe("swapspaceSwapProvider", function () {
852
852
 
853
853
  it("should handle missing fixed property in exchange data", async () => {
854
854
  swapspaceSwapProvider._supportedCoins = [
855
- { coin: BTC, code: "btc", network: "btc", deposit: true },
856
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
855
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
856
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
857
857
  ];
858
858
  const mockData = [
859
859
  {
@@ -875,8 +875,8 @@ describe("swapspaceSwapProvider", function () {
875
875
 
876
876
  it("should capture exchanges with exist=false as not supporting the pair", async () => {
877
877
  swapspaceSwapProvider._supportedCoins = [
878
- { coin: BTC, code: "btc", network: "btc", deposit: true },
879
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
878
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
879
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
880
880
  ];
881
881
  const mockData = [
882
882
  {
@@ -917,8 +917,8 @@ describe("swapspaceSwapProvider", function () {
917
917
 
918
918
  it("should consider missing exists property as not supporting the pair", async () => {
919
919
  swapspaceSwapProvider._supportedCoins = [
920
- { coin: BTC, code: "btc", network: "btc", deposit: true },
921
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
920
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
921
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
922
922
  ];
923
923
  const mockData = [
924
924
  {
@@ -940,8 +940,8 @@ describe("swapspaceSwapProvider", function () {
940
940
 
941
941
  it("should return null rate when fromAmount is not number greater than 0", async () => {
942
942
  swapspaceSwapProvider._supportedCoins = [
943
- { coin: BTC, code: "btc", network: "btc", deposit: true },
944
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
943
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
944
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
945
945
  ];
946
946
  const mockData = [
947
947
  {
@@ -963,8 +963,8 @@ describe("swapspaceSwapProvider", function () {
963
963
 
964
964
  it("should return null rate when toAmount is not number greater than 0 in response", async () => {
965
965
  swapspaceSwapProvider._supportedCoins = [
966
- { coin: BTC, code: "btc", network: "btc", deposit: true },
967
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
966
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
967
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
968
968
  ];
969
969
  const mockData = [
970
970
  {
@@ -986,8 +986,8 @@ describe("swapspaceSwapProvider", function () {
986
986
 
987
987
  it("should use an exchange with min=0 as unlimited", async () => {
988
988
  swapspaceSwapProvider._supportedCoins = [
989
- { coin: BTC, code: "btc", network: "btc", deposit: true },
990
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
989
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
990
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
991
991
  ];
992
992
  const mockData = [
993
993
  {
@@ -1010,8 +1010,8 @@ describe("swapspaceSwapProvider", function () {
1010
1010
 
1011
1011
  it("should use an exchange with max=0 as unlimited", async () => {
1012
1012
  swapspaceSwapProvider._supportedCoins = [
1013
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1014
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1013
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1014
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1015
1015
  ];
1016
1016
  const mockData = [
1017
1017
  {
@@ -1034,8 +1034,8 @@ describe("swapspaceSwapProvider", function () {
1034
1034
 
1035
1035
  it("should set greatestMax based on availableExchanges when no exchange has max=0", async () => {
1036
1036
  swapspaceSwapProvider._supportedCoins = [
1037
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1038
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1037
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1038
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1039
1039
  ];
1040
1040
  const mockData = [
1041
1041
  {
@@ -1066,8 +1066,8 @@ describe("swapspaceSwapProvider", function () {
1066
1066
 
1067
1067
  it("should handle exchanges with non-numeric toAmount", async () => {
1068
1068
  swapspaceSwapProvider._supportedCoins = [
1069
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1070
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1069
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1070
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1071
1071
  ];
1072
1072
  const mockData = [
1073
1073
  {
@@ -1090,8 +1090,8 @@ describe("swapspaceSwapProvider", function () {
1090
1090
 
1091
1091
  it("should correct smallestMin and greatestMax using coinAmountForMinMaxSafety", async () => {
1092
1092
  swapspaceSwapProvider._supportedCoins = [
1093
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1094
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1093
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1094
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1095
1095
  ];
1096
1096
  const mockData = [
1097
1097
  {
@@ -1114,8 +1114,8 @@ describe("swapspaceSwapProvider", function () {
1114
1114
 
1115
1115
  it("should treat min=0 from an exchange as no limit", async () => {
1116
1116
  swapspaceSwapProvider._supportedCoins = [
1117
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1118
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1117
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1118
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1119
1119
  ];
1120
1120
  const mockData = [
1121
1121
  {
@@ -1137,8 +1137,8 @@ describe("swapspaceSwapProvider", function () {
1137
1137
 
1138
1138
  it("should treat max=0 from an exchange as no limit", async () => {
1139
1139
  swapspaceSwapProvider._supportedCoins = [
1140
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1141
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1140
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1141
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1142
1142
  ];
1143
1143
  const mockData = [
1144
1144
  {
@@ -1160,8 +1160,8 @@ describe("swapspaceSwapProvider", function () {
1160
1160
 
1161
1161
  it("should consider min > max as an invalid exchange option", async () => {
1162
1162
  swapspaceSwapProvider._supportedCoins = [
1163
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1164
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1163
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1164
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1165
1165
  ];
1166
1166
  const mockData = [
1167
1167
  {
@@ -1184,8 +1184,8 @@ describe("swapspaceSwapProvider", function () {
1184
1184
 
1185
1185
  it("should handle not null/undefined coin->usd rate - safety coin amount should be used as 0", async () => {
1186
1186
  swapspaceSwapProvider._supportedCoins = [
1187
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1188
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1187
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1188
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1189
1189
  ];
1190
1190
  const mockData = [
1191
1191
  {
@@ -1211,8 +1211,8 @@ describe("swapspaceSwapProvider", function () {
1211
1211
 
1212
1212
  it("should handle null coin->usd rate - safety coin amount should be used as 0", async () => {
1213
1213
  swapspaceSwapProvider._supportedCoins = [
1214
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1215
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1214
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1215
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1216
1216
  ];
1217
1217
  const mockData = [
1218
1218
  {
@@ -1238,8 +1238,8 @@ describe("swapspaceSwapProvider", function () {
1238
1238
 
1239
1239
  it("should consider an exchange with negative toAmount as not supporting the pair", async () => {
1240
1240
  swapspaceSwapProvider._supportedCoins = [
1241
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1242
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1241
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1242
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1243
1243
  ];
1244
1244
  const mockData = [
1245
1245
  {
@@ -1262,8 +1262,8 @@ describe("swapspaceSwapProvider", function () {
1262
1262
 
1263
1263
  it("should correctly account for coinAmountForMinMaxSafety in rate calculation", async () => {
1264
1264
  swapspaceSwapProvider._supportedCoins = [
1265
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1266
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1265
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1266
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1267
1267
  ];
1268
1268
  const mockData = [
1269
1269
  {
@@ -1285,8 +1285,8 @@ describe("swapspaceSwapProvider", function () {
1285
1285
 
1286
1286
  it("should handle scenario where all exchanges have negative toAmount", async () => {
1287
1287
  swapspaceSwapProvider._supportedCoins = [
1288
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1289
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1288
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1289
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1290
1290
  ];
1291
1291
  const mockData = [
1292
1292
  {
@@ -1318,8 +1318,8 @@ describe("swapspaceSwapProvider", function () {
1318
1318
 
1319
1319
  it("should use the best exchange option according to toAmount", async () => {
1320
1320
  swapspaceSwapProvider._supportedCoins = [
1321
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1322
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1321
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1322
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1323
1323
  ];
1324
1324
  const mockData = [
1325
1325
  {
@@ -1378,8 +1378,8 @@ describe("swapspaceSwapProvider", function () {
1378
1378
 
1379
1379
  it("should respect the estimated=false parameter in the axios request", async () => {
1380
1380
  swapspaceSwapProvider._supportedCoins = [
1381
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1382
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1381
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1382
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1383
1383
  ];
1384
1384
  axiosGetStub.callsFake(url => {
1385
1385
  url.includes("estimated=false").should.be.true();
@@ -1391,8 +1391,8 @@ describe("swapspaceSwapProvider", function () {
1391
1391
 
1392
1392
  it("should not convey float or fixed parameters in the axios request", async () => {
1393
1393
  swapspaceSwapProvider._supportedCoins = [
1394
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1395
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1394
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1395
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1396
1396
  ];
1397
1397
  axiosGetStub.callsFake(url => {
1398
1398
  url.should.not.containEql("float=");
@@ -1405,8 +1405,8 @@ describe("swapspaceSwapProvider", function () {
1405
1405
 
1406
1406
  it("should respect amount parameter in the axios request", async () => {
1407
1407
  swapspaceSwapProvider._supportedCoins = [
1408
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1409
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1408
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1409
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1410
1410
  ];
1411
1411
  axiosGetStub.callsFake(url => {
1412
1412
  url.should.containEql("amount=1");
@@ -1464,8 +1464,8 @@ describe("swapspaceSwapProvider", function () {
1464
1464
 
1465
1465
  it("should generate correct URL for BTC to ETH swap", async () => {
1466
1466
  swapspaceSwapProvider._supportedCoins = [
1467
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1468
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1467
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1468
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1469
1469
  ];
1470
1470
  axiosGetStub.callsFake(url => {
1471
1471
  url.should.containEql(`/api/v2/amounts`);
@@ -1483,8 +1483,8 @@ describe("swapspaceSwapProvider", function () {
1483
1483
 
1484
1484
  it("should generate correct URL for TRC20 USDC to BTC swap", async () => {
1485
1485
  swapspaceSwapProvider._supportedCoins = [
1486
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1487
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1486
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1487
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1488
1488
  { coin: USDCTRC20, code: "usdc", network: "trc20" },
1489
1489
  ];
1490
1490
  axiosGetStub.callsFake(url => {
@@ -1504,8 +1504,8 @@ describe("swapspaceSwapProvider", function () {
1504
1504
 
1505
1505
  it("should return null for durationMinutesRange if bestRateOption does not contain the duration property", async () => {
1506
1506
  swapspaceSwapProvider._supportedCoins = [
1507
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1508
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1507
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1508
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1509
1509
  ];
1510
1510
  const mockData = [
1511
1511
  {
@@ -1550,8 +1550,8 @@ describe("swapspaceSwapProvider", function () {
1550
1550
 
1551
1551
  it("should handle scenario where all exchanges have non-string toAmount and fromAmount", async () => {
1552
1552
  swapspaceSwapProvider._supportedCoins = [
1553
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1554
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1553
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1554
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1555
1555
  ];
1556
1556
  const mockData = [
1557
1557
  {
@@ -1585,8 +1585,8 @@ describe("swapspaceSwapProvider", function () {
1585
1585
  {
1586
1586
  description: "should return a result with isRefundAddressRequired true when partner is not found",
1587
1587
  supportedCoins: [
1588
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1589
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1588
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1589
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1590
1590
  ],
1591
1591
  mockData: [
1592
1592
  {
@@ -1611,8 +1611,8 @@ describe("swapspaceSwapProvider", function () {
1611
1611
  "should return a result with isRefundAddressRequired false for a fixed option with reqFixedRefund as false",
1612
1612
  isFixed: true,
1613
1613
  supportedCoins: [
1614
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1615
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1614
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1615
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1616
1616
  ],
1617
1617
  mockData: [
1618
1618
  {
@@ -1636,8 +1636,8 @@ describe("swapspaceSwapProvider", function () {
1636
1636
  description:
1637
1637
  "should return a result with isRefundAddressRequired true for a floating option with reqFloatRefund as true",
1638
1638
  supportedCoins: [
1639
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1640
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1639
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1640
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1641
1641
  ],
1642
1642
  mockData: [
1643
1643
  {
@@ -1673,8 +1673,8 @@ describe("swapspaceSwapProvider", function () {
1673
1673
  });
1674
1674
  it("should call _fetchPartnersListIfNeeded ones", async () => {
1675
1675
  swapspaceSwapProvider._supportedCoins = [
1676
- { coin: BTC, code: "btc", network: "btc", deposit: true },
1677
- { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1676
+ { coin: BTC, code: "btc", network: "btc", deposit: true, isAvailable: true },
1677
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true, isAvailable: true },
1678
1678
  ];
1679
1679
  const mockData = [
1680
1680
  {