@rabbitio/ui-kit 1.0.0-beta.110 → 1.0.0-beta.112
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 -1
- package/.env.example +1 -1
- package/coverage/clover.xml +1411 -1410
- package/coverage/coverage-final.json +18 -18
- package/coverage/index.html +17 -17
- package/coverage/ui-kit/index.html +1 -1
- package/coverage/ui-kit/index.js.html +1 -1
- package/coverage/ui-kit/src/common-apis/adapters/analyticsAdapters/googleAnalyticsAdapter.js.html +1 -1
- package/coverage/ui-kit/src/common-apis/adapters/analyticsAdapters/index.html +1 -1
- package/coverage/ui-kit/src/common-apis/adapters/analyticsAdapters/metrikaAdapter.js.html +1 -1
- package/coverage/ui-kit/src/common-apis/adapters/analyticsAdapters/mixpanelAdapter.js.html +1 -1
- package/coverage/ui-kit/src/common-apis/adapters/axiosAdapter.js.html +1 -1
- package/coverage/ui-kit/src/common-apis/adapters/index.html +1 -1
- package/coverage/ui-kit/src/common-apis/adapters/qrUtils.js.html +1 -1
- package/coverage/ui-kit/src/common-apis/external-apis/apiGroups.js.html +1 -1
- package/coverage/ui-kit/src/common-apis/external-apis/emailAPI.js.html +1 -1
- package/coverage/ui-kit/src/common-apis/external-apis/index.html +1 -1
- package/coverage/ui-kit/src/common-apis/external-apis/ipAddressProviders.js.html +1 -1
- package/coverage/ui-kit/src/common-apis/globalConstants.jsx.html +1 -1
- package/coverage/ui-kit/src/common-apis/index.html +1 -1
- package/coverage/ui-kit/src/common-apis/models/blockchain.js.html +4 -4
- package/coverage/ui-kit/src/common-apis/models/coin.js.html +221 -221
- package/coverage/ui-kit/src/common-apis/models/index.html +1 -1
- package/coverage/ui-kit/src/common-apis/models/protocol.js.html +3 -3
- package/coverage/ui-kit/src/common-apis/services/fiatCurrenciesService.js.html +1 -1
- package/coverage/ui-kit/src/common-apis/services/index.html +1 -1
- package/coverage/ui-kit/src/common-apis/utils/amountUtils.js.html +21 -21
- package/coverage/ui-kit/src/common-apis/utils/cache.js.html +6 -6
- package/coverage/ui-kit/src/common-apis/utils/errorUtils.js.html +13 -13
- package/coverage/ui-kit/src/common-apis/utils/index.html +1 -1
- package/coverage/ui-kit/src/common-apis/utils/logging/index.html +1 -1
- package/coverage/ui-kit/src/common-apis/utils/logging/logger.js.html +22 -22
- package/coverage/ui-kit/src/common-apis/utils/logging/logsStorage.js.html +3 -3
- package/coverage/ui-kit/src/common-apis/utils/postponeExecution.js.html +1 -1
- package/coverage/ui-kit/src/common-apis/utils/rabbitTicker.js.html +10 -10
- package/coverage/ui-kit/src/common-apis/utils/safeStringify.js.html +27 -27
- package/coverage/ui-kit/src/index.html +1 -1
- package/coverage/ui-kit/src/index.js.html +1 -1
- package/coverage/ui-kit/src/robust-api-caller/cacheAndConcurrentRequestsResolver.js.html +1 -1
- package/coverage/ui-kit/src/robust-api-caller/cachedRobustExternalApiCallerService.js.html +1 -1
- package/coverage/ui-kit/src/robust-api-caller/cancelProcessing.js.html +1 -1
- package/coverage/ui-kit/src/robust-api-caller/concurrentCalculationsMetadataHolder.js.html +1 -1
- package/coverage/ui-kit/src/robust-api-caller/externalApiProvider.js.html +1 -1
- package/coverage/ui-kit/src/robust-api-caller/externalServicesStatsCollector.js.html +1 -1
- package/coverage/ui-kit/src/robust-api-caller/index.html +1 -1
- package/coverage/ui-kit/src/robust-api-caller/robustExternalAPICallerService.js.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/external-apis/exolixSwapProvider.js.html +66 -45
- package/coverage/ui-kit/src/swaps-lib/external-apis/goexmeSwapProvider.js.html +521 -545
- package/coverage/ui-kit/src/swaps-lib/external-apis/index.html +27 -27
- package/coverage/ui-kit/src/swaps-lib/external-apis/letsExchangeSwapProvider.js.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/external-apis/swapProvider.js.html +328 -328
- package/coverage/ui-kit/src/swaps-lib/external-apis/swapspaceSwapProvider.js.html +76 -52
- package/coverage/ui-kit/src/swaps-lib/external-apis/utils.js.html +14 -14
- package/coverage/ui-kit/src/swaps-lib/models/baseSwapCreationInfo.js.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/models/existingSwap.js.html +141 -141
- package/coverage/ui-kit/src/swaps-lib/models/existingSwapWithFiatData.js.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/models/index.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/models/partner.js.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/models/swapProviderCoinInfo.js.html +73 -73
- package/coverage/ui-kit/src/swaps-lib/services/index.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/services/publicSwapService.js.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/utils/index.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/utils/swapUtils.js.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/arrowIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/arrowTosca.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/arrowWhite.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/darkRectangle.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/determinedError.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/failedValidationIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/infoIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/messageIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/noticeQuestionIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/successfulValidationIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/supportDialogImage.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/assets/wrappedImages/walletIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/AssetIcon/AssetIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/AssetIcon/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/AssetSelection/AssetSelection.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/AssetSelection/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/BackgroundTitle/BackgroundTitle.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/BackgroundTitle/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/InformationMessage/InformationMessage.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/InformationMessage/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/Input/Input.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/Input/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/LoadingDots/LoadingDots.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/LoadingDots/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/NoticeIcon/NoticeIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/NoticeIcon/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/QrCode/QrCode.jsx.html +7 -25
- package/coverage/ui-kit/src/ui-kit/components/atoms/QrCode/index.html +5 -5
- package/coverage/ui-kit/src/ui-kit/components/atoms/RateSelector/RateSelector.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/RateSelector/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/SupportChat/SupportChat.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/SupportChat/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/Textarea/Textarea.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/Textarea/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/TitleBox/TitleBox.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/TitleBox/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/Tooltip/Tooltip.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/Tooltip/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/TwoLinesOfText/LinesOfText.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/TwoLinesOfText/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/Validation/Validation.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/Validation/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/buttons/Button/Button.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/buttons/Button/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/buttons/Close/Close.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/buttons/Close/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/buttons/LinkButton/LinkButton.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/buttons/LinkButton/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/buttons/RadioButtonWithText/RadioButtonWithText.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/atoms/buttons/RadioButtonWithText/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/AmountInput/AmountInput.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/AmountInput/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/CoinPicker/CoinPicker.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/CoinPicker/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/ColoredNotice/ColoredNotice.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/ColoredNotice/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/LineWithIconLink/LineWithIconLink.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/LineWithIconLink/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/LogoCarousel/LogoCarousel.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/LogoCarousel/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/SearchableCoinsList/SearchableCoinsList.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/SearchableCoinsList/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/TitledLineWithIconLink/TitledLineWithIconLink.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/molecules/TitledLineWithIconLink/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/organisms/CoinPickerDialogStep/CoinPickerDialogStep.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/organisms/CoinPickerDialogStep/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/organisms/Dialog/Dialog.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/organisms/Dialog/DialogButtons/DialogButtons.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/organisms/Dialog/DialogButtons/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/organisms/Dialog/DialogStep/DialogStep.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/organisms/Dialog/DialogStep/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/organisms/Dialog/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/organisms/SwapForm/SwapForm.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/organisms/SwapForm/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/organisms/WaitlistSubscription/WaitlistSubscription.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/organisms/WaitlistSubscription/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx.html +1 -1
- package/coverage/ui-kit/src/ui-kit/components/templates/DeterminedErrorDialogStep/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/hooks/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/hooks/useCallHandlingErrors.js.html +1 -1
- package/coverage/ui-kit/src/ui-kit/hooks/useIsHydrated.js.html +1 -1
- package/coverage/ui-kit/src/ui-kit/hooks/useReferredState.js.html +1 -1
- package/coverage/ui-kit/src/ui-kit/utils/index.html +1 -1
- package/coverage/ui-kit/src/ui-kit/utils/inputValueProviders.js.html +1 -1
- package/coverage/ui-kit/src/ui-kit/utils/searchCoins.js.html +1 -1
- package/coverage/ui-kit/src/ui-kit/utils/textUtils.js.html +1 -1
- package/coverage/ui-kit/src/ui-kit/utils/uiUtils.js.html +1 -1
- package/coverage/ui-kit/src/ui-kit/utils/urlQueryUtils.js.html +1 -1
- package/coverage/ui-kit/stories/atoms/BackgroundTitle.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/LinesOfText.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/LoadingDots.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/QrCode.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/RateSelector.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/Validation.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/buttons/Button.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/buttons/Close.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/buttons/LinkButton.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/buttons/index.html +1 -1
- package/coverage/ui-kit/stories/atoms/index.html +1 -1
- package/coverage/ui-kit/stories/molecules/AmountInput.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/molecules/CoinPicker.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/molecules/ColoredNotice.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/molecules/LineWithIconLink.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/molecules/LogoCarousel.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/molecules/TitledLineWithIconLink.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/molecules/index.html +1 -1
- package/coverage/ui-kit/stories/organisms/Dialog/Dialog.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/organisms/Dialog/DialogButtons/DialogButtons.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/organisms/Dialog/DialogButtons/index.html +1 -1
- package/coverage/ui-kit/stories/organisms/Dialog/DialogStep/DialogStep.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/organisms/Dialog/DialogStep/index.html +1 -1
- package/coverage/ui-kit/stories/organisms/Dialog/index.html +1 -1
- package/coverage/ui-kit/stories/organisms/WaitlistSubscription.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/organisms/index.html +1 -1
- package/coverage/ui-kit/stories/stubs/coins.jsx.html +1 -1
- package/coverage/ui-kit/stories/stubs/exampleContent.jsx.html +1 -1
- package/coverage/ui-kit/stories/stubs/index.html +1 -1
- package/coverage/ui-kit/stories/templates/DeterminedErrorDialogStep.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/templates/index.html +1 -1
- package/dist/index.cjs +94 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -12
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +82 -78
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +94 -92
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +94 -92
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/common-apis/tests/integration/external-apis/ipAddressProviders/getClientIpAddress.test.js +9 -5
- package/src/swaps-lib/external-apis/exolixSwapProvider.js +46 -39
- package/src/swaps-lib/external-apis/goexmeSwapProvider.js +29 -37
- package/src/swaps-lib/external-apis/swapspaceSwapProvider.js +54 -46
- 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/_ensurePairsLoaded.test.js +77 -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 +184 -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 +155 -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 +57 -57
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/integration/_fetchSupportedCurrenciesIfNeeded.int.test.js +289 -126
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/integration/createSwap.int.test.js +320 -225
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/integration/getSwapInfo.int.test.js +138 -127
- package/src/ui-kit/components/atoms/QrCode/QrCode.jsx +2 -8
- package/src/ui-kit/components/atoms/QrCode/qr-code.module.scss +4 -11
package/dist/index.module.js
CHANGED
|
@@ -5866,7 +5866,7 @@ var generateQrAndShowInCanvas = function generateQrAndShowInCanvas(encodingStrin
|
|
|
5866
5866
|
}
|
|
5867
5867
|
};
|
|
5868
5868
|
|
|
5869
|
-
var s$8 = {"qr-code":"_VZ0dT"
|
|
5869
|
+
var s$8 = {"qr-code":"_VZ0dT"};
|
|
5870
5870
|
|
|
5871
5871
|
/**
|
|
5872
5872
|
* QrCode component renders a QR code for a provided crypto address.
|
|
@@ -5874,7 +5874,6 @@ var s$8 = {"qr-code":"_VZ0dT","fill":"_hFE1l"};
|
|
|
5874
5874
|
* @component
|
|
5875
5875
|
* @param {Object} props - The props for the component.
|
|
5876
5876
|
* @param {string} props.address - The crypto address to generate the QR code for.
|
|
5877
|
-
* @param {boolean} [props.fill=false] - If true, applies additional CSS class to fill the container.
|
|
5878
5877
|
*
|
|
5879
5878
|
* @returns {JSX.Element} A div containing the generated QR code.
|
|
5880
5879
|
*/
|
|
@@ -5891,9 +5890,7 @@ function _catch$f(body, recover) {
|
|
|
5891
5890
|
return result;
|
|
5892
5891
|
}
|
|
5893
5892
|
var QrCode = function QrCode(_ref) {
|
|
5894
|
-
var address = _ref.address
|
|
5895
|
-
_ref$fill = _ref.fill,
|
|
5896
|
-
fill = _ref$fill === void 0 ? false : _ref$fill;
|
|
5893
|
+
var address = _ref.address;
|
|
5897
5894
|
var canvasRef = useRef();
|
|
5898
5895
|
useEffect(function () {
|
|
5899
5896
|
(function () {
|
|
@@ -5916,16 +5913,12 @@ var QrCode = function QrCode(_ref) {
|
|
|
5916
5913
|
})();
|
|
5917
5914
|
}, [address]);
|
|
5918
5915
|
return /*#__PURE__*/React.createElement("div", {
|
|
5919
|
-
className: s$8["qr-code"]
|
|
5916
|
+
className: s$8["qr-code"],
|
|
5920
5917
|
ref: canvasRef
|
|
5921
5918
|
});
|
|
5922
5919
|
};
|
|
5923
5920
|
QrCode.propTypes = {
|
|
5924
|
-
address: PropTypes.string.isRequired
|
|
5925
|
-
fill: PropTypes.bool
|
|
5926
|
-
};
|
|
5927
|
-
QrCode.defaultProps = {
|
|
5928
|
-
fill: false
|
|
5921
|
+
address: PropTypes.string.isRequired
|
|
5929
5922
|
};
|
|
5930
5923
|
|
|
5931
5924
|
var s$7 = {"first-line-text":"_IGz2I","wrap":"_eKd8P","break":"_mT5i4","full-text":"_PVKxC","shorted":"_wB5qV","horizontal":"_lqJz-","line":"_MGRy0","second-line-text":"_hdF64"};
|
|
@@ -10667,7 +10660,7 @@ var ExistingSwap = /** @type {string} The ID of the swap. */
|
|
|
10667
10660
|
* @param {number} expiresAt - The timestamp when the swap expires.
|
|
10668
10661
|
* @param {number|null} confirmations - The number of confirmations the swap has received, or null.
|
|
10669
10662
|
* @param {string} rate - The exchange rate for the swap.
|
|
10670
|
-
* @param {
|
|
10663
|
+
* @param {boolean} fixed - Indicates if the rate is fixed.
|
|
10671
10664
|
* @param {string|null} refundAddress - The address to refund to in case of failure, or null.
|
|
10672
10665
|
* @param {string} payToAddress - The address to send the funds to.
|
|
10673
10666
|
* @param {Coin} fromCoin - The coin that is being swapped from.
|
|
@@ -12036,32 +12029,43 @@ var SwapspaceSwapProvider = /*#__PURE__*/function (_SwapProvider) {
|
|
|
12036
12029
|
return getNotFailingOn404(swapId);
|
|
12037
12030
|
}))).then(function (responses) {
|
|
12038
12031
|
var wo404 = responses.flat();
|
|
12039
|
-
Logger.log("All swaps RAW: " + JSON.stringify(wo404.map(function (r) {
|
|
12032
|
+
Logger.log("All swaps RAW swapspace: " + JSON.stringify(wo404.map(function (r) {
|
|
12040
12033
|
return r.data;
|
|
12041
12034
|
})), loggerSource);
|
|
12042
12035
|
var swaps = wo404.map(function (r) {
|
|
12043
12036
|
return r.data;
|
|
12044
12037
|
}).map(function (swap, index) {
|
|
12045
|
-
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12038
|
+
try {
|
|
12039
|
+
var _this6$_supportedCoin, _this6$_supportedCoin2, _this6$_supportedCoin3, _this6$_supportedCoin4, _swap$blockExplorerTr, _swap$from$extraId, _swap$to$extraId, _swap$refundExtraId;
|
|
12040
|
+
var fromCoin = (_this6$_supportedCoin = (_this6$_supportedCoin2 = _this6._supportedCoins.find(function (i) {
|
|
12041
|
+
return i.code === swap.from.code && i.network === swap.from.network;
|
|
12042
|
+
})) == null ? void 0 : _this6$_supportedCoin2.coin) != null ? _this6$_supportedCoin : {
|
|
12043
|
+
ticker: toRabbitTicker(swap.from.code, swap.from.network),
|
|
12044
|
+
digits: 8
|
|
12045
|
+
};
|
|
12046
|
+
var toCoin = (_this6$_supportedCoin3 = (_this6$_supportedCoin4 = _this6._supportedCoins.find(function (i) {
|
|
12047
|
+
return i.code === swap.to.code && i.network === swap.to.network;
|
|
12048
|
+
})) == null ? void 0 : _this6$_supportedCoin4.coin) != null ? _this6$_supportedCoin3 : {
|
|
12049
|
+
ticker: toRabbitTicker(swap.to.code, swap.to.network),
|
|
12050
|
+
digits: 8
|
|
12051
|
+
};
|
|
12052
|
+
if (!fromCoin || !toCoin) {
|
|
12053
|
+
return []; // We skip swaps with not supported coins for now
|
|
12054
|
+
}
|
|
12055
|
+
var toUtcTimestamp = function toUtcTimestamp(timeStr) {
|
|
12056
|
+
return Date.parse(timeStr.match(/.+[Zz]$/) ? timeStr : timeStr + "Z");
|
|
12057
|
+
};
|
|
12058
|
+
var expiresAt = toUtcTimestamp(swap.timestamps.expiresAt);
|
|
12059
|
+
var isExpiredByTime = expiresAt < Date.now();
|
|
12060
|
+
var status = _this6._mapSwapspaceStatusToRabbitStatus(swap.status, isExpiredByTime);
|
|
12061
|
+
var toDigits = status === SwapProvider.SWAP_STATUSES.REFUNDED ? fromCoin.digits : toCoin.digits;
|
|
12062
|
+
var addressToSendCoinsToSwapspace = swap.from.address;
|
|
12063
|
+
var toUrl = ((_swap$blockExplorerTr = swap.blockExplorerTransactionUrl.to) != null ? _swap$blockExplorerTr : "").replace(/from=swapspace&?/g, "").replaceAll(/&&+/g, "&").replace("?&", "?").replace(/&$/, "").replace(/\?$/, "");
|
|
12064
|
+
return new ExistingSwap(swapIds[index], status, toUtcTimestamp(swap.timestamps.createdAt), expiresAt, swap.confirmations, AmountUtils.trim(swap.rate, _this6._maxRateDigits), swap.fixed, swap.refundAddress, addressToSendCoinsToSwapspace, fromCoin, AmountUtils.trim(swap.from.amount, fromCoin.digits), swap.from.transactionHash, swap.blockExplorerTransactionUrl.from, toCoin, AmountUtils.trim(swap.to.amount, toDigits), swap.to.transactionHash, toUrl, swap.to.address, swap.partner, (_swap$from$extraId = swap.from.extraId) != null ? _swap$from$extraId : null, (_swap$to$extraId = swap.to.extraId) != null ? _swap$to$extraId : null, (_swap$refundExtraId = swap.refundExtraId) != null ? _swap$refundExtraId : null);
|
|
12065
|
+
} catch (e) {
|
|
12066
|
+
console.log("Failed to parse loaded swap", e);
|
|
12067
|
+
return [];
|
|
12054
12068
|
}
|
|
12055
|
-
var toUtcTimestamp = function toUtcTimestamp(timeStr) {
|
|
12056
|
-
return Date.parse(timeStr.match(/.+[Zz]$/) ? timeStr : timeStr + "Z");
|
|
12057
|
-
};
|
|
12058
|
-
var expiresAt = toUtcTimestamp(swap.timestamps.expiresAt);
|
|
12059
|
-
var isExpiredByTime = expiresAt < Date.now();
|
|
12060
|
-
var status = _this6._mapSwapspaceStatusToRabbitStatus(swap.status, isExpiredByTime);
|
|
12061
|
-
var toDigits = status === SwapProvider.SWAP_STATUSES.REFUNDED ? fromCoin.digits : toCoin.digits;
|
|
12062
|
-
var addressToSendCoinsToSwapspace = swap.from.address;
|
|
12063
|
-
var toUrl = ((_swap$blockExplorerTr = swap.blockExplorerTransactionUrl.to) != null ? _swap$blockExplorerTr : "").replace(/from=swapspace&?/g, "").replaceAll(/&&+/g, "&").replace("?&", "?").replace(/&$/, "").replace(/\?$/, "");
|
|
12064
|
-
return new ExistingSwap(swapIds[index], status, toUtcTimestamp(swap.timestamps.createdAt), expiresAt, swap.confirmations, AmountUtils.trim(swap.rate, _this6._maxRateDigits), swap.fixed, swap.refundAddress, addressToSendCoinsToSwapspace, fromCoin, AmountUtils.trim(swap.from.amount, fromCoin.digits), swap.from.transactionHash, swap.blockExplorerTransactionUrl.from, toCoin, AmountUtils.trim(swap.to.amount, toDigits), swap.to.transactionHash, toUrl, swap.to.address, swap.partner, (_swap$from$extraId = swap.from.extraId) != null ? _swap$from$extraId : null, (_swap$to$extraId = swap.to.extraId) != null ? _swap$to$extraId : null, (_swap$refundExtraId = swap.refundExtraId) != null ? _swap$refundExtraId : null);
|
|
12065
12069
|
}).flat();
|
|
12066
12070
|
Logger.log("Swap details result " + safeStringify(swaps), loggerSource);
|
|
12067
12071
|
return {
|
|
@@ -13090,25 +13094,36 @@ var ExolixSwapProvider = /*#__PURE__*/function (_SwapProvider) {
|
|
|
13090
13094
|
var swaps = fetchedSwaps.map(function (r) {
|
|
13091
13095
|
return r.data;
|
|
13092
13096
|
}).map(function (swap, index) {
|
|
13093
|
-
|
|
13094
|
-
|
|
13095
|
-
|
|
13096
|
-
|
|
13097
|
-
|
|
13098
|
-
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
|
|
13097
|
+
try {
|
|
13098
|
+
var _this5$_supportedCoin, _this5$_supportedCoin2, _this5$_supportedCoin3, _this5$_supportedCoin4, _swap$depositExtraId, _swap$withdrawalExtra, _swap$refundExtraId;
|
|
13099
|
+
var fromCoin = (_this5$_supportedCoin = (_this5$_supportedCoin2 = _this5._supportedCoins.find(function (i) {
|
|
13100
|
+
return i.code === swap.coinFrom.coinCode && i.network === swap.coinFrom.network;
|
|
13101
|
+
})) == null ? void 0 : _this5$_supportedCoin2.coin) != null ? _this5$_supportedCoin : {
|
|
13102
|
+
ticker: toRabbitTicker(swap.coinFrom.coinCode, swap.coinFrom.network),
|
|
13103
|
+
digits: 8
|
|
13104
|
+
};
|
|
13105
|
+
var toCoin = (_this5$_supportedCoin3 = (_this5$_supportedCoin4 = _this5._supportedCoins.find(function (i) {
|
|
13106
|
+
return i.code === swap.coinTo.coinCode && i.network === swap.coinTo.network;
|
|
13107
|
+
})) == null ? void 0 : _this5$_supportedCoin4.coin) != null ? _this5$_supportedCoin3 : {
|
|
13108
|
+
ticker: toRabbitTicker(swap.coinTo.coinCode, swap.coinTo.network),
|
|
13109
|
+
digits: 8
|
|
13110
|
+
};
|
|
13111
|
+
if (!fromCoin || !toCoin) {
|
|
13112
|
+
return []; // We skip swaps with not supported coins for now
|
|
13113
|
+
}
|
|
13114
|
+
var toUtcTimestamp = function toUtcTimestamp(timeStr) {
|
|
13115
|
+
return Date.parse(timeStr.match(/.+[Zz]$/) ? timeStr : timeStr + "Z");
|
|
13116
|
+
};
|
|
13117
|
+
var createdAt = toUtcTimestamp(swap.createdAt);
|
|
13118
|
+
var expiresAt = createdAt + 25 * 60 * 1000; // Hack with hard-coded 25 minutes
|
|
13119
|
+
var isExpiredByTime = expiresAt < Date.now();
|
|
13120
|
+
var status = _this5._mapExolixStatusToRabbitStatus(swap.status, isExpiredByTime);
|
|
13121
|
+
var toDigits = status === SwapProvider.SWAP_STATUSES.REFUNDED ? fromCoin.digits : toCoin.digits;
|
|
13122
|
+
return new ExistingSwap(swapIds[index], status, createdAt, expiresAt, -1, AmountUtils.trim(swap.rate, _this5._maxRateDigits), (swap == null ? void 0 : swap.rateType) === "fixed", swap.refundAddress, swap.depositAddress, fromCoin, AmountUtils.trim(swap.amount, fromCoin.digits), swap.hashIn.hash, swap.hashIn.link, toCoin, AmountUtils.trim(swap.amountTo, toDigits), swap.hashOut.hash, swap.hashOut.link, swap.withdrawalAddress, _this5.id, (_swap$depositExtraId = swap.depositExtraId) != null ? _swap$depositExtraId : null, (_swap$withdrawalExtra = swap.withdrawalExtraId) != null ? _swap$withdrawalExtra : null, (_swap$refundExtraId = swap.refundExtraId) != null ? _swap$refundExtraId : null);
|
|
13123
|
+
} catch (e) {
|
|
13124
|
+
console.log("Failed to parse loaded swap", e);
|
|
13125
|
+
return [];
|
|
13102
13126
|
}
|
|
13103
|
-
var toUtcTimestamp = function toUtcTimestamp(timeStr) {
|
|
13104
|
-
return Date.parse(timeStr.match(/.+[Zz]$/) ? timeStr : timeStr + "Z");
|
|
13105
|
-
};
|
|
13106
|
-
var createdAt = toUtcTimestamp(swap.createdAt);
|
|
13107
|
-
var expiresAt = createdAt + 25 * 60 * 1000; // Hack with hard-coded 25 minutes
|
|
13108
|
-
var isExpiredByTime = expiresAt < Date.now();
|
|
13109
|
-
var status = _this5._mapExolixStatusToRabbitStatus(swap.status, isExpiredByTime);
|
|
13110
|
-
var toDigits = status === SwapProvider.SWAP_STATUSES.REFUNDED ? fromCoin.digits : toCoin.digits;
|
|
13111
|
-
return new ExistingSwap(swapIds[index], status, createdAt, expiresAt, -1, AmountUtils.trim(swap.rate, _this5._maxRateDigits), (swap == null ? void 0 : swap.rateType) === "fixed", swap.refundAddress, swap.depositAddress, fromCoin, AmountUtils.trim(swap.amount, fromCoin.digits), swap.hashIn.hash, swap.hashIn.link, toCoin, AmountUtils.trim(swap.amountTo, toDigits), swap.hashOut.hash, swap.hashOut.link, swap.withdrawalAddress, _this5.id, (_swap$depositExtraId = swap.depositExtraId) != null ? _swap$depositExtraId : null, (_swap$withdrawalExtra = swap.withdrawalExtraId) != null ? _swap$withdrawalExtra : null, (_swap$refundExtraId = swap.refundExtraId) != null ? _swap$refundExtraId : null);
|
|
13112
13127
|
}).flat();
|
|
13113
13128
|
Logger.log("Swap details result " + safeStringify(swaps), loggerSource);
|
|
13114
13129
|
return {
|
|
@@ -13466,10 +13481,7 @@ var GoexmeSwapProvider = /*#__PURE__*/function (_SwapProvider) {
|
|
|
13466
13481
|
};
|
|
13467
13482
|
}
|
|
13468
13483
|
|
|
13469
|
-
|
|
13470
|
-
* Convert amountTo → ratio so that downstream code can do
|
|
13471
|
-
* amountFrom * rate === amountTo
|
|
13472
|
-
* -------------------------------------------------------- */
|
|
13484
|
+
// Convert amountTo → ratio so that downstream code can do amountFrom * rate === amountTo
|
|
13473
13485
|
var rateRatio = null;
|
|
13474
13486
|
if (response.data.rate != null && BigNumber$1(amountCoins).gt(0)) {
|
|
13475
13487
|
rateRatio = AmountUtils.trim(BigNumber$1(response.data.rate).div(amountCoins).toString(), _this4._maxRateDigits);
|
|
@@ -13486,10 +13498,6 @@ var GoexmeSwapProvider = /*#__PURE__*/function (_SwapProvider) {
|
|
|
13486
13498
|
rawSwapData: response.data,
|
|
13487
13499
|
/**
|
|
13488
13500
|
* GoExme never requires a refund address.
|
|
13489
|
-
*
|
|
13490
|
-
* The official API documentation marks `destinationTag` / `refundTag` as **optional**.
|
|
13491
|
-
* Support chat confirmation (2025‑06‑27): "Yes, it's optional and can be omitted even for small amounts."
|
|
13492
|
-
*
|
|
13493
13501
|
*/
|
|
13494
13502
|
isRefundAddressRequired: false
|
|
13495
13503
|
};
|
|
@@ -13512,23 +13520,28 @@ var GoexmeSwapProvider = /*#__PURE__*/function (_SwapProvider) {
|
|
|
13512
13520
|
/**
|
|
13513
13521
|
* Creates a swap on GoExme.
|
|
13514
13522
|
*
|
|
13515
|
-
*
|
|
13516
|
-
* `
|
|
13517
|
-
*
|
|
13518
|
-
* •
|
|
13523
|
+
* The `proprietarySwapEstimationData` object **must** carry two distinct values
|
|
13524
|
+
* produced by a prior `/rate` call:
|
|
13525
|
+
*
|
|
13526
|
+
* • `rawSwapData.rate` – **amountTo**
|
|
13527
|
+
* (the exact number of coins GoExme will send to the user);
|
|
13528
|
+
* • `rate` – **ratio**
|
|
13529
|
+
* (`amountTo / amountFrom`, i.e. Rabbit‑style per‑coin rate).
|
|
13519
13530
|
*
|
|
13520
|
-
*
|
|
13521
|
-
*
|
|
13531
|
+
* Processing steps
|
|
13532
|
+
* ----------------
|
|
13533
|
+
* 1. Determine **amountTo** (`rawSwapData.rate`).
|
|
13534
|
+
* 2. Compute the canonical per‑coin **ratio**:
|
|
13522
13535
|
*
|
|
13523
|
-
*
|
|
13524
|
-
*
|
|
13525
|
-
*
|
|
13526
|
-
*
|
|
13527
|
-
*
|
|
13528
|
-
*
|
|
13529
|
-
*
|
|
13530
|
-
*
|
|
13531
|
-
*
|
|
13536
|
+
* ratio = amountTo / amountFrom
|
|
13537
|
+
*
|
|
13538
|
+
* 3. Return both numbers for downstream code:
|
|
13539
|
+
* • `rate` → ratio (Rabbit convention);
|
|
13540
|
+
* • `toAmount` → amountTo (final coins the user receives).
|
|
13541
|
+
*
|
|
13542
|
+
* This guarantees the invariant:
|
|
13543
|
+
*
|
|
13544
|
+
* amountFrom * rate === toAmount
|
|
13532
13545
|
*/
|
|
13533
13546
|
;
|
|
13534
13547
|
_proto.createSwap = function createSwap(fromCoin, toCoin, amount, toAddress, refundAddress, proprietarySwapEstimationData, clientIpAddress, fixed, toCurrencyExtraId, refundExtraId, amountIsToReceive) {
|
|
@@ -13562,6 +13575,11 @@ var GoexmeSwapProvider = /*#__PURE__*/function (_SwapProvider) {
|
|
|
13562
13575
|
fix: true
|
|
13563
13576
|
} : {});
|
|
13564
13577
|
params.amount = amount;
|
|
13578
|
+
|
|
13579
|
+
// Add refundAddress only if extraId is present:
|
|
13580
|
+
// GoExme documents these fields as optional, and support (2025‑06‑27) confirmed that.
|
|
13581
|
+
// Extract amountTo from estimation (first non-null source).
|
|
13582
|
+
// Derive ratio so that amountFrom * ratio = amountTo.
|
|
13565
13583
|
if (toCoinInfo.hasExtraId && toCurrencyExtraId) params.destinationTag = toCurrencyExtraId;
|
|
13566
13584
|
if (refundAddress) {
|
|
13567
13585
|
params.refundAddress = refundAddress;
|
|
@@ -13577,13 +13595,6 @@ var GoexmeSwapProvider = /*#__PURE__*/function (_SwapProvider) {
|
|
|
13577
13595
|
Logger.log(errMsg, loggerSource);
|
|
13578
13596
|
throw new Error(errMsg);
|
|
13579
13597
|
}
|
|
13580
|
-
|
|
13581
|
-
/*------------------------------------------------------------
|
|
13582
|
-
* Extract amountTo from estimation (first non-null source).
|
|
13583
|
-
*-----------------------------------------------------------*/
|
|
13584
|
-
/*------------------------------------------------------------
|
|
13585
|
-
* Derive ratio so that amountFrom * ratio = amountTo.
|
|
13586
|
-
*-----------------------------------------------------------*/
|
|
13587
13598
|
var amountToCandidate = (_ref4 = (_proprietarySwapEstim = proprietarySwapEstimationData == null || (_proprietarySwapEstim2 = proprietarySwapEstimationData.rawSwapData) == null ? void 0 : _proprietarySwapEstim2.rate) != null ? _proprietarySwapEstim : proprietarySwapEstimationData == null ? void 0 : proprietarySwapEstimationData.rate) != null ? _ref4 : null;
|
|
13588
13599
|
if (amountToCandidate == null) {
|
|
13589
13600
|
throw new Error("Estimation does not contain amountTo/rate");
|
|
@@ -13647,22 +13658,18 @@ var GoexmeSwapProvider = /*#__PURE__*/function (_SwapProvider) {
|
|
|
13647
13658
|
}
|
|
13648
13659
|
};
|
|
13649
13660
|
return Promise.resolve(Promise.all(swapIds.map(fetchOne))).then(function (statusResponses) {
|
|
13650
|
-
|
|
13661
|
+
// helper: normalize coin code using CODE_TRANSLATIONS
|
|
13651
13662
|
var normalize = function normalize(code) {
|
|
13652
13663
|
var _CODE_TRANSLATIONS$co2;
|
|
13653
13664
|
return (_CODE_TRANSLATIONS$co2 = CODE_TRANSLATIONS[code.toUpperCase()]) != null ? _CODE_TRANSLATIONS$co2 : code.toUpperCase();
|
|
13654
13665
|
};
|
|
13655
13666
|
var swaps = statusResponses.map(function (statusData, swapIndex) {
|
|
13656
|
-
var _ref5, _statusData$amountFro, _ref6, _statusData$amountTo, _statusData$refundAdd
|
|
13667
|
+
var _ref5, _statusData$amountFro, _ref6, _statusData$amountTo, _statusData$refundAdd;
|
|
13657
13668
|
if (!statusData) return null;
|
|
13658
|
-
|
|
13659
|
-
/* ------------------ coins ------------------ */
|
|
13660
13669
|
var fromCoinTicker = toRabbitTicker(normalize(statusData.from), "");
|
|
13661
13670
|
var toCoinTicker = toRabbitTicker(normalize(statusData.to), "");
|
|
13662
13671
|
var fromCoin = _this6.getCoinByTickerIfPresent(fromCoinTicker);
|
|
13663
13672
|
var toCoin = _this6.getCoinByTickerIfPresent(toCoinTicker);
|
|
13664
|
-
|
|
13665
|
-
/* fallback: look up by raw provider code if ticker lookup failed */
|
|
13666
13673
|
if (!fromCoin) {
|
|
13667
13674
|
var _byCode$coin;
|
|
13668
13675
|
var byCode = _this6._supportedCoins.find(function (c) {
|
|
@@ -13670,7 +13677,6 @@ var GoexmeSwapProvider = /*#__PURE__*/function (_SwapProvider) {
|
|
|
13670
13677
|
});
|
|
13671
13678
|
fromCoin = (_byCode$coin = byCode == null ? void 0 : byCode.coin) != null ? _byCode$coin : null;
|
|
13672
13679
|
}
|
|
13673
|
-
/* fallback: look up by raw provider code if ticker lookup failed */
|
|
13674
13680
|
if (!toCoin) {
|
|
13675
13681
|
var _byCode$coin2;
|
|
13676
13682
|
var _byCode = _this6._supportedCoins.find(function (c) {
|
|
@@ -13679,12 +13685,8 @@ var GoexmeSwapProvider = /*#__PURE__*/function (_SwapProvider) {
|
|
|
13679
13685
|
toCoin = (_byCode$coin2 = _byCode == null ? void 0 : _byCode.coin) != null ? _byCode$coin2 : null;
|
|
13680
13686
|
}
|
|
13681
13687
|
if (!fromCoin || !toCoin) return null;
|
|
13682
|
-
|
|
13683
|
-
/* timestamps */
|
|
13684
13688
|
var createdAt = GoexmeSwapProvider._parseGoexmeDate(statusData.date);
|
|
13685
13689
|
var expiresAt = createdAt + _this6.SWAP_EXPIRATION_TIME_MS;
|
|
13686
|
-
|
|
13687
|
-
/* amounts & rate */
|
|
13688
13690
|
var amountFromEffective = (_ref5 = (_statusData$amountFro = statusData.amountFrom) != null ? _statusData$amountFro : statusData.expectedAmountFrom) != null ? _ref5 : "0";
|
|
13689
13691
|
var amountToEffective = (_ref6 = (_statusData$amountTo = statusData.amountTo) != null ? _statusData$amountTo : statusData.expectedAmountTo) != null ? _ref6 : null;
|
|
13690
13692
|
var rateVal = statusData.rate;
|
|
@@ -13699,7 +13701,7 @@ var GoexmeSwapProvider = /*#__PURE__*/function (_SwapProvider) {
|
|
|
13699
13701
|
}
|
|
13700
13702
|
if (toAmountCalculated == null) toAmountCalculated = "0";
|
|
13701
13703
|
var toAmountTrimmed = AmountUtils.trim(toAmountCalculated, toCoin.digits);
|
|
13702
|
-
return new ExistingSwap(swapIds[swapIndex], _this6._mapGoexmeStatus(statusData.status), createdAt, expiresAt, -1, rateTrimmed, null, (_statusData$refundAdd = statusData.refundAddress) != null ? _statusData$refundAdd : "", statusData.depositAddress, fromCoin, AmountUtils.trim(amountFromEffective, fromCoin.digits),
|
|
13704
|
+
return new ExistingSwap(swapIds[swapIndex], _this6._mapGoexmeStatus(statusData.status), createdAt, expiresAt, -1, rateTrimmed, null, (_statusData$refundAdd = statusData.refundAddress) != null ? _statusData$refundAdd : "", statusData.depositAddress, fromCoin, AmountUtils.trim(amountFromEffective, fromCoin.digits), statusData.depositHash, null, toCoin, toAmountTrimmed, statusData.txId, null, statusData.destinationAddress, _this6.id, statusData.depositTag || null, statusData.destinationTag || null, statusData.refundTag || null);
|
|
13703
13705
|
}).filter(Boolean);
|
|
13704
13706
|
return {
|
|
13705
13707
|
result: true,
|