@multiversx/sdk-dapp-liquidity 2.3.0 → 2.4.0-alpha.0
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/BridgeHistory-BU-L_w0l.js +2 -0
- package/BridgeHistory-CInRkJ6T.mjs +275 -0
- package/ToggleDirection-BLDXxUlN.mjs +16 -0
- package/ToggleDirection-CZ9-ZD7Y.js +2 -0
- package/all-networks-De_MBUh1.js +2 -0
- package/all-networks-hdZt5Hcc.mjs +4 -0
- package/api/checkAccount.d.ts +1 -2
- package/api/checkAccount.js +1 -1
- package/api/checkAccount.mjs +10 -20
- package/api/confirmRate.d.ts +2 -3
- package/api/confirmRate.js +1 -1
- package/api/confirmRate.mjs +16 -23
- package/api/getChains.d.ts +1 -2
- package/api/getChains.js +1 -1
- package/api/getChains.mjs +10 -16
- package/api/getRate.d.ts +1 -2
- package/api/getRate.js +1 -1
- package/api/getRate.mjs +16 -23
- package/api/getTokens.d.ts +1 -2
- package/api/getTokens.js +1 -1
- package/api/getTokens.mjs +10 -20
- package/api/getTokensBalances.d.ts +1 -2
- package/api/getTokensBalances.js +1 -1
- package/api/getTokensBalances.mjs +10 -20
- package/api/getTransactions.d.ts +2 -3
- package/api/getTransactions.js +1 -1
- package/api/getTransactions.mjs +19 -31
- package/api/index.js +1 -1
- package/api/index.mjs +9 -18
- package/api/sendTransactions.d.ts +3 -4
- package/api/sendTransactions.js +1 -1
- package/api/sendTransactions.mjs +19 -31
- package/api/tests/confirmRate.spec.js +1 -1
- package/api/tests/confirmRate.spec.mjs +98 -112
- package/api/tests/getChains.spec.js +1 -1
- package/api/tests/getChains.spec.mjs +38 -36
- package/api/tests/getRate.spec.js +1 -1
- package/api/tests/getRate.spec.mjs +73 -69
- package/api/tests/getTokens.spec.js +1 -1
- package/api/tests/getTokens.spec.mjs +58 -58
- package/api/tests/getTransactions.spec.js +1 -1
- package/api/tests/getTransactions.spec.mjs +84 -74
- package/api/tests/sendTransactions.spec.js +1 -1
- package/api/tests/sendTransactions.spec.mjs +74 -84
- package/chains-Bmeag21l.js +2 -0
- package/chains-DQACurVn.mjs +33 -0
- package/chunk-oiTVcehM.js +2 -0
- package/constants/index.js +1 -1
- package/constants/index.mjs +8 -4
- package/default-CqGeN438.js +2 -0
- package/default-DuNFRYAj.mjs +4 -0
- package/dto/Chain.dto.d.ts +0 -1
- package/dto/Chain.dto.js +0 -1
- package/dto/Chain.dto.mjs +0 -1
- package/dto/CheckAccount.dto.js +0 -1
- package/dto/CheckAccount.dto.mjs +0 -1
- package/dto/ConfirmRate.dto.d.ts +0 -1
- package/dto/ConfirmRate.dto.js +0 -1
- package/dto/ConfirmRate.dto.mjs +0 -1
- package/dto/Token.dto.js +0 -1
- package/dto/Token.dto.mjs +0 -1
- package/dto/TokenBalance.dto.js +0 -1
- package/dto/TokenBalance.dto.mjs +0 -1
- package/dto/Transaction.dto.d.ts +0 -1
- package/dto/Transaction.dto.js +0 -1
- package/dto/Transaction.dto.mjs +0 -1
- package/dto/index.js +0 -1
- package/dto/index.mjs +0 -1
- package/helpers/assertConfirmRateData.js +1 -1
- package/helpers/assertConfirmRateData.mjs +11 -28
- package/helpers/assertRateConfirmationMatchesIntent.d.ts +0 -1
- package/helpers/assertRateConfirmationMatchesIntent.js +1 -1
- package/helpers/assertRateConfirmationMatchesIntent.mjs +9 -18
- package/helpers/base64Utils.js +1 -1
- package/helpers/base64Utils.mjs +15 -18
- package/helpers/decodeLoginToken.js +1 -1
- package/helpers/decodeLoginToken.mjs +19 -21
- package/helpers/decodeToken.js +1 -1
- package/helpers/decodeToken.mjs +22 -27
- package/helpers/getApiURL.js +1 -1
- package/helpers/getApiURL.mjs +5 -5
- package/helpers/getBridgeURL.js +1 -1
- package/helpers/getBridgeURL.mjs +4 -4
- package/helpers/getDisplayName.d.ts +0 -1
- package/helpers/getDisplayName.js +1 -1
- package/helpers/getDisplayName.mjs +5 -5
- package/helpers/getMvxApiURL.js +1 -1
- package/helpers/getMvxApiURL.mjs +5 -5
- package/helpers/getMvxChainId.js +1 -1
- package/helpers/getMvxChainId.mjs +5 -5
- package/helpers/getMvxExplorerAddress.js +1 -1
- package/helpers/getMvxExplorerAddress.mjs +4 -4
- package/helpers/index.js +1 -1
- package/helpers/index.mjs +12 -27
- package/helpers/isValidAddressForChainType.d.ts +0 -1
- package/helpers/isValidAddressForChainType.js +1 -1
- package/helpers/isValidAddressForChainType.mjs +37 -48
- package/helpers/safeImageUrl.js +1 -1
- package/helpers/safeImageUrl.mjs +14 -12
- package/helpers/serializeTransaction.d.ts +0 -1
- package/helpers/serializeTransaction.js +1 -1
- package/helpers/serializeTransaction.mjs +5 -5
- package/helpers/tests/assertConfirmRateData.spec.js +1 -1
- package/helpers/tests/assertConfirmRateData.spec.mjs +86 -74
- package/helpers/tests/assertRateConfirmationMatchesIntent.spec.js +1 -1
- package/helpers/tests/assertRateConfirmationMatchesIntent.spec.mjs +61 -49
- package/helpers/tests/base64Utils.spec.js +1 -1
- package/helpers/tests/base64Utils.spec.mjs +15 -13
- package/helpers/tests/decodeLoginToken.spec.js +1 -1
- package/helpers/tests/decodeLoginToken.spec.mjs +20 -19
- package/helpers/tests/decodeToken.spec.js +1 -1
- package/helpers/tests/decodeToken.spec.mjs +18 -19
- package/helpers/tests/isValidAddressForChainType.spec.js +1 -1
- package/helpers/tests/isValidAddressForChainType.spec.mjs +59 -134
- package/helpers/tests/safeImageUrl.spec.js +1 -1
- package/helpers/tests/safeImageUrl.spec.mjs +30 -30
- package/helpers/tests/serializeTransaction.spec.js +1 -1
- package/helpers/tests/serializeTransaction.spec.mjs +35 -21
- package/index.js +1 -1
- package/index.mjs +91 -200
- package/package.json +23 -32
- package/react.esm-JNqTldrP.mjs +8927 -0
- package/react.esm-kvI07ZPd.js +59 -0
- package/reactjs/adapters/SuiAdapter.d.ts +2 -2
- package/reactjs/adapters/SuiAdapter.js +1 -1
- package/reactjs/adapters/SuiAdapter.mjs +254 -323
- package/reactjs/components/AccountAddress/AccountAddress.d.ts +1 -1
- package/reactjs/components/AccountAddress/AccountAddress.js +1 -1
- package/reactjs/components/AccountAddress/AccountAddress.mjs +20 -30
- package/reactjs/components/AccountAddress/index.js +1 -1
- package/reactjs/components/AccountAddress/index.mjs +2 -4
- package/reactjs/components/AmountCard/AmountCard.d.ts +1 -2
- package/reactjs/components/AmountCard/AmountCard.js +1 -1
- package/reactjs/components/AmountCard/AmountCard.mjs +13 -31
- package/reactjs/components/AmountCard/index.js +1 -1
- package/reactjs/components/AmountCard/index.mjs +2 -4
- package/reactjs/components/AmountInput/AmountInput.d.ts +1 -2
- package/reactjs/components/AmountInput/AmountInput.js +1 -1
- package/reactjs/components/AmountInput/AmountInput.mjs +48 -66
- package/reactjs/components/AmountInput/index.js +1 -1
- package/reactjs/components/AmountInput/index.mjs +2 -4
- package/reactjs/components/BridgeForm/BridgeForm.d.ts +1 -1
- package/reactjs/components/BridgeForm/BridgeForm.js +1 -1
- package/reactjs/components/BridgeForm/BridgeForm.mjs +53 -81
- package/reactjs/components/BridgeForm/Deposit.d.ts +1 -1
- package/reactjs/components/BridgeForm/Deposit.js +1 -1
- package/reactjs/components/BridgeForm/Deposit.mjs +457 -573
- package/reactjs/components/BridgeForm/Transfer.d.ts +1 -1
- package/reactjs/components/BridgeForm/Transfer.js +1 -1
- package/reactjs/components/BridgeForm/Transfer.mjs +358 -470
- package/reactjs/components/BridgeForm/hooks/useBridgeAmounts.d.ts +0 -1
- package/reactjs/components/BridgeForm/hooks/useBridgeAmounts.js +1 -1
- package/reactjs/components/BridgeForm/hooks/useBridgeAmounts.mjs +52 -54
- package/reactjs/components/BridgeForm/hooks/useBridgeRateFetching.d.ts +0 -1
- package/reactjs/components/BridgeForm/hooks/useBridgeRateFetching.js +1 -1
- package/reactjs/components/BridgeForm/hooks/useBridgeRateFetching.mjs +35 -46
- package/reactjs/components/BridgeForm/hooks/useBridgeTokenSelection.d.ts +1 -2
- package/reactjs/components/BridgeForm/hooks/useBridgeTokenSelection.js +1 -1
- package/reactjs/components/BridgeForm/hooks/useBridgeTokenSelection.mjs +131 -197
- package/reactjs/components/BridgeForm/index.js +1 -1
- package/reactjs/components/BridgeForm/index.mjs +1 -3
- package/reactjs/components/BridgeForm/utils/bridgeFormHelpers.d.ts +3 -4
- package/reactjs/components/BridgeForm/utils/bridgeFormHelpers.js +1 -1
- package/reactjs/components/BridgeForm/utils/bridgeFormHelpers.mjs +26 -43
- package/reactjs/components/BridgeHistory/BridgeHistory.d.ts +1 -1
- package/reactjs/components/BridgeHistory/BridgeHistory.js +1 -1
- package/reactjs/components/BridgeHistory/BridgeHistory.mjs +2 -353
- package/reactjs/components/BridgeHistory/index.js +1 -1
- package/reactjs/components/BridgeHistory/index.mjs +2 -4
- package/reactjs/components/Connect/BridgeAccountDisplay.d.ts +1 -2
- package/reactjs/components/Connect/BridgeAccountDisplay.js +1 -1
- package/reactjs/components/Connect/BridgeAccountDisplay.mjs +125 -134
- package/reactjs/components/Connect/BridgeConnectButton.d.ts +1 -2
- package/reactjs/components/Connect/BridgeConnectButton.js +1 -1
- package/reactjs/components/Connect/BridgeConnectButton.mjs +42 -44
- package/reactjs/components/Connect/ChainSelectConnect.d.ts +1 -2
- package/reactjs/components/Connect/ChainSelectConnect.js +1 -1
- package/reactjs/components/Connect/ChainSelectConnect.mjs +100 -129
- package/reactjs/components/Connect/CustomConnectButton.d.ts +2 -3
- package/reactjs/components/Connect/CustomConnectButton.js +1 -1
- package/reactjs/components/Connect/CustomConnectButton.mjs +23 -35
- package/reactjs/components/Connect/MvxAccountDisplay.d.ts +1 -1
- package/reactjs/components/Connect/MvxAccountDisplay.js +1 -1
- package/reactjs/components/Connect/MvxAccountDisplay.mjs +74 -94
- package/reactjs/components/Connect/MvxConnectButton.d.ts +1 -1
- package/reactjs/components/Connect/MvxConnectButton.js +1 -1
- package/reactjs/components/Connect/MvxConnectButton.mjs +27 -38
- package/reactjs/components/Connect/SwitchChainButton.d.ts +2 -3
- package/reactjs/components/Connect/SwitchChainButton.js +1 -1
- package/reactjs/components/Connect/SwitchChainButton.mjs +20 -30
- package/reactjs/components/Connect/index.js +1 -1
- package/reactjs/components/Connect/index.mjs +6 -14
- package/reactjs/components/CopyButton/CopyButton.d.ts +2 -1
- package/reactjs/components/CopyButton/CopyButton.js +1 -1
- package/reactjs/components/CopyButton/CopyButton.mjs +35 -42
- package/reactjs/components/CopyButton/index.js +1 -1
- package/reactjs/components/CopyButton/index.mjs +2 -4
- package/reactjs/components/CopyButton/utils/copyToClipboard.js +1 -1
- package/reactjs/components/CopyButton/utils/copyToClipboard.mjs +20 -24
- package/reactjs/components/CopyButton/utils/index.js +1 -1
- package/reactjs/components/CopyButton/utils/index.mjs +2 -4
- package/reactjs/components/DisplayAmount/DisplayAmount.d.ts +2 -3
- package/reactjs/components/DisplayAmount/DisplayAmount.js +1 -1
- package/reactjs/components/DisplayAmount/DisplayAmount.mjs +74 -82
- package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.d.ts +1 -1
- package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.js +1 -1
- package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.mjs +22 -31
- package/reactjs/components/DisplayAmount/components/AnimateNumber/index.js +0 -1
- package/reactjs/components/DisplayAmount/components/AnimateNumber/index.mjs +0 -1
- package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.d.ts +1 -2
- package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.js +1 -1
- package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.mjs +46 -52
- package/reactjs/components/DisplayAmount/components/index.js +0 -1
- package/reactjs/components/DisplayAmount/components/index.mjs +0 -1
- package/reactjs/components/DisplayAmount/index.js +1 -1
- package/reactjs/components/DisplayAmount/index.mjs +2 -4
- package/reactjs/components/DisplayAmount/utils/index.js +1 -1
- package/reactjs/components/DisplayAmount/utils/index.mjs +2 -4
- package/reactjs/components/DisplayAmount/utils/truncateAmount.js +1 -1
- package/reactjs/components/DisplayAmount/utils/truncateAmount.mjs +14 -16
- package/reactjs/components/Error/Error.d.ts +1 -2
- package/reactjs/components/Error/Error.js +1 -1
- package/reactjs/components/Error/Error.mjs +44 -66
- package/reactjs/components/Error/index.js +1 -1
- package/reactjs/components/Error/index.mjs +1 -3
- package/reactjs/components/SmallLoader/SmallLoader.d.ts +1 -1
- package/reactjs/components/SmallLoader/SmallLoader.js +1 -1
- package/reactjs/components/SmallLoader/SmallLoader.mjs +12 -15
- package/reactjs/components/SmallLoader/index.js +1 -1
- package/reactjs/components/SmallLoader/index.mjs +2 -4
- package/reactjs/components/ToggleDirection/ToggleDirection.d.ts +1 -1
- package/reactjs/components/ToggleDirection/ToggleDirection.js +1 -1
- package/reactjs/components/ToggleDirection/ToggleDirection.mjs +2 -24
- package/reactjs/components/TokenSelector/TokenSelector.d.ts +1 -2
- package/reactjs/components/TokenSelector/TokenSelector.js +1 -1
- package/reactjs/components/TokenSelector/TokenSelector.mjs +94 -151
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.d.ts +1 -2
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.js +1 -1
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.mjs +75 -83
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.d.ts +1 -1
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.js +1 -1
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.mjs +40 -51
- package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.d.ts +2 -3
- package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.js +1 -1
- package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.mjs +16 -12
- package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.js +1 -1
- package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.mjs +4 -4
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.d.ts +2 -3
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.js +1 -1
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.mjs +29 -41
- package/reactjs/components/TokenSelector/components/ChainSelect/types/chainSelectOption.js +0 -1
- package/reactjs/components/TokenSelector/components/ChainSelect/types/chainSelectOption.mjs +0 -1
- package/reactjs/components/TokenSelector/components/ChainSelect/types/partialChainOption.js +0 -1
- package/reactjs/components/TokenSelector/components/ChainSelect/types/partialChainOption.mjs +0 -1
- package/reactjs/components/TokenSelector/components/SelectContainer.d.ts +1 -2
- package/reactjs/components/TokenSelector/components/SelectContainer.js +1 -1
- package/reactjs/components/TokenSelector/components/SelectContainer.mjs +32 -37
- package/reactjs/components/TokenSelector/components/SelectContent.d.ts +2 -3
- package/reactjs/components/TokenSelector/components/SelectContent.js +1 -1
- package/reactjs/components/TokenSelector/components/SelectContent.mjs +78 -110
- package/reactjs/components/TokenSelector/components/SelectedOption.d.ts +1 -2
- package/reactjs/components/TokenSelector/components/SelectedOption.js +1 -1
- package/reactjs/components/TokenSelector/components/SelectedOption.mjs +26 -26
- package/reactjs/components/TokenSelector/components/TokenIcon.d.ts +1 -2
- package/reactjs/components/TokenSelector/components/TokenIcon.js +1 -1
- package/reactjs/components/TokenSelector/components/TokenIcon.mjs +54 -74
- package/reactjs/components/TokenSelector/components/TokenItem.d.ts +1 -2
- package/reactjs/components/TokenSelector/components/TokenItem.js +1 -1
- package/reactjs/components/TokenSelector/components/TokenItem.mjs +53 -66
- package/reactjs/components/TokenSelector/components/TokenList.d.ts +1 -2
- package/reactjs/components/TokenSelector/components/TokenList.js +1 -1
- package/reactjs/components/TokenSelector/components/TokenList.mjs +13 -21
- package/reactjs/components/TokenSelector/components/TokenSymbol.d.ts +1 -2
- package/reactjs/components/TokenSelector/components/TokenSymbol.js +1 -1
- package/reactjs/components/TokenSelector/components/TokenSymbol.mjs +15 -23
- package/reactjs/components/TokenSelector/index.js +1 -1
- package/reactjs/components/TokenSelector/index.mjs +2 -4
- package/reactjs/components/TransactionToast/TransactionToast.d.ts +1 -2
- package/reactjs/components/TransactionToast/TransactionToast.js +1 -1
- package/reactjs/components/TransactionToast/TransactionToast.mjs +43 -51
- package/reactjs/components/TransactionToast/TransactionToastContainer.d.ts +1 -2
- package/reactjs/components/TransactionToast/TransactionToastContainer.js +1 -1
- package/reactjs/components/TransactionToast/TransactionToastContainer.mjs +15 -18
- package/reactjs/components/TransactionToast/index.js +1 -1
- package/reactjs/components/TransactionToast/index.mjs +3 -6
- package/reactjs/components/TrimAddress/TrimAddress.d.ts +1 -1
- package/reactjs/components/TrimAddress/TrimAddress.js +1 -1
- package/reactjs/components/TrimAddress/TrimAddress.mjs +13 -22
- package/reactjs/components/TrimAddress/index.js +1 -1
- package/reactjs/components/TrimAddress/index.mjs +1 -3
- package/reactjs/components/base/MxButton/MxButton.d.ts +1 -2
- package/reactjs/components/base/MxButton/MxButton.js +1 -1
- package/reactjs/components/base/MxButton/MxButton.mjs +43 -70
- package/reactjs/components/base/MxButton/index.js +1 -1
- package/reactjs/components/base/MxButton/index.mjs +2 -4
- package/reactjs/components/base/MxCard/MxCard.d.ts +0 -1
- package/reactjs/components/base/MxCard/MxCard.js +1 -1
- package/reactjs/components/base/MxCard/MxCard.mjs +33 -54
- package/reactjs/components/base/MxCard/index.js +1 -1
- package/reactjs/components/base/MxCard/index.mjs +2 -4
- package/reactjs/components/base/MxCircleLoader/MxCircleLoader.d.ts +1 -1
- package/reactjs/components/base/MxCircleLoader/MxCircleLoader.js +1 -1
- package/reactjs/components/base/MxCircleLoader/MxCircleLoader.mjs +9 -26
- package/reactjs/components/base/MxCircleLoader/index.js +1 -1
- package/reactjs/components/base/MxCircleLoader/index.mjs +2 -4
- package/reactjs/components/base/MxLink/MxLink.d.ts +0 -1
- package/reactjs/components/base/MxLink/MxLink.js +1 -1
- package/reactjs/components/base/MxLink/MxLink.mjs +42 -68
- package/reactjs/components/base/MxLink/index.js +1 -1
- package/reactjs/components/base/MxLink/index.mjs +2 -4
- package/reactjs/components/base/MxSearch/MxSearch.js +1 -1
- package/reactjs/components/base/MxSearch/MxSearch.mjs +35 -65
- package/reactjs/components/base/MxSearch/index.js +1 -1
- package/reactjs/components/base/MxSearch/index.mjs +2 -4
- package/reactjs/components/base/MxSlideover/MxSlideover.d.ts +1 -2
- package/reactjs/components/base/MxSlideover/MxSlideover.js +1 -1
- package/reactjs/components/base/MxSlideover/MxSlideover.mjs +70 -76
- package/reactjs/components/base/MxSlideover/index.js +1 -1
- package/reactjs/components/base/MxSlideover/index.mjs +2 -4
- package/reactjs/components/base/MxTooltip/MxTooltip.d.ts +2 -3
- package/reactjs/components/base/MxTooltip/MxTooltip.js +1 -1
- package/reactjs/components/base/MxTooltip/MxTooltip.mjs +79 -119
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.d.ts +0 -1
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.js +1 -1
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.mjs +23 -31
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.js +1 -1
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.mjs +2 -4
- package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.d.ts +1 -2
- package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.js +1 -1
- package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.mjs +13 -25
- package/reactjs/components/base/MxTooltip/components/TooltipContent/index.js +1 -1
- package/reactjs/components/base/MxTooltip/components/TooltipContent/index.mjs +1 -3
- package/reactjs/components/base/MxTooltip/components/index.js +1 -1
- package/reactjs/components/base/MxTooltip/components/index.mjs +5 -6
- package/reactjs/components/base/MxTooltip/index.js +1 -1
- package/reactjs/components/base/MxTooltip/index.mjs +2 -4
- package/reactjs/components/base/index.js +1 -1
- package/reactjs/components/base/index.mjs +12 -13
- package/reactjs/components/index.js +1 -1
- package/reactjs/components/index.mjs +40 -53
- package/reactjs/constants/chains.js +1 -1
- package/reactjs/constants/chains.mjs +2 -35
- package/reactjs/constants/index.js +1 -1
- package/reactjs/constants/index.mjs +5 -12
- package/reactjs/context/Web3AppProvider.d.ts +6 -7
- package/reactjs/context/Web3AppProvider.js +1 -1
- package/reactjs/context/Web3AppProvider.mjs +41 -40
- package/reactjs/context/queryClient.d.ts +0 -1
- package/reactjs/context/queryClient.js +1 -1
- package/reactjs/context/queryClient.mjs +6 -6
- package/reactjs/context/useWeb3App.js +1 -1
- package/reactjs/context/useWeb3App.mjs +9 -10
- package/reactjs/helpers/index.js +1 -1
- package/reactjs/helpers/index.mjs +2 -6
- package/reactjs/helpers/resolveBridgeApiChainId.js +1 -1
- package/reactjs/helpers/resolveBridgeApiChainId.mjs +22 -23
- package/reactjs/hooks/index.js +1 -1
- package/reactjs/hooks/index.mjs +16 -35
- package/reactjs/hooks/tests/useGenericSignMessage.spec.js +1 -1
- package/reactjs/hooks/tests/useGenericSignMessage.spec.mjs +43 -50
- package/reactjs/hooks/tests/useSignTransaction.spec.js +1 -1
- package/reactjs/hooks/tests/useSignTransaction.spec.mjs +123 -150
- package/reactjs/hooks/useAccount.js +1 -1
- package/reactjs/hooks/useAccount.mjs +11 -11
- package/reactjs/hooks/useBalances.d.ts +0 -1
- package/reactjs/hooks/useBalances.js +1 -1
- package/reactjs/hooks/useBalances.mjs +31 -39
- package/reactjs/hooks/useBridgeApiChainId.js +1 -1
- package/reactjs/hooks/useBridgeApiChainId.mjs +8 -11
- package/reactjs/hooks/useBridgeFormik.d.ts +4 -5
- package/reactjs/hooks/useBridgeFormik.js +1 -1
- package/reactjs/hooks/useBridgeFormik.mjs +117 -143
- package/reactjs/hooks/useDebounce.js +1 -1
- package/reactjs/hooks/useDebounce.mjs +10 -10
- package/reactjs/hooks/useDisconnectOnChainTypeChange.d.ts +0 -1
- package/reactjs/hooks/useDisconnectOnChainTypeChange.js +1 -1
- package/reactjs/hooks/useDisconnectOnChainTypeChange.mjs +12 -12
- package/reactjs/hooks/useFetchBridgeData.d.ts +2 -2
- package/reactjs/hooks/useFetchBridgeData.js +1 -1
- package/reactjs/hooks/useFetchBridgeData.mjs +2 -44
- package/reactjs/hooks/useFetchTokens.d.ts +1 -1
- package/reactjs/hooks/useFetchTokens.js +1 -1
- package/reactjs/hooks/useFetchTokens.mjs +2 -92
- package/reactjs/hooks/useGenericSignMessage.js +1 -1
- package/reactjs/hooks/useGenericSignMessage.mjs +37 -54
- package/reactjs/hooks/useGetChainId.js +1 -1
- package/reactjs/hooks/useGetChainId.mjs +9 -9
- package/reactjs/hooks/useNamespaceAddress.d.ts +0 -1
- package/reactjs/hooks/useNamespaceAddress.js +1 -1
- package/reactjs/hooks/useNamespaceAddress.mjs +12 -15
- package/reactjs/hooks/useResolveTokenChain.d.ts +0 -1
- package/reactjs/hooks/useResolveTokenChain.js +1 -1
- package/reactjs/hooks/useResolveTokenChain.mjs +13 -15
- package/reactjs/hooks/useSendTransactions.d.ts +0 -1
- package/reactjs/hooks/useSendTransactions.js +1 -1
- package/reactjs/hooks/useSendTransactions.mjs +11 -20
- package/reactjs/hooks/useSignTransaction.d.ts +509 -0
- package/reactjs/hooks/useSignTransaction.js +1 -1
- package/reactjs/hooks/useSignTransaction.mjs +59 -85
- package/reactjs/hooks/useSuiConnect.js +1 -1
- package/reactjs/hooks/useSuiConnect.mjs +68 -67
- package/reactjs/hooks/validation/index.js +1 -1
- package/reactjs/hooks/validation/index.mjs +5 -10
- package/reactjs/hooks/validation/useAmountSchema.js +1 -1
- package/reactjs/hooks/validation/useAmountSchema.mjs +9 -11
- package/reactjs/hooks/validation/useSecondAmountSchema.js +1 -1
- package/reactjs/hooks/validation/useSecondAmountSchema.mjs +5 -8
- package/reactjs/hooks/validation/useTestHasEnoughFunds.d.ts +0 -1
- package/reactjs/hooks/validation/useTestHasEnoughFunds.js +1 -1
- package/reactjs/hooks/validation/useTestHasEnoughFunds.mjs +20 -27
- package/reactjs/hooks/validation/useTestIsConnected.d.ts +0 -1
- package/reactjs/hooks/validation/useTestIsConnected.js +1 -1
- package/reactjs/hooks/validation/useTestIsConnected.mjs +15 -20
- package/reactjs/index.d.ts +0 -1
- package/reactjs/index.js +1 -1
- package/reactjs/index.mjs +70 -157
- package/reactjs/init/index.js +1 -1
- package/reactjs/init/index.mjs +2 -5
- package/reactjs/init/init.d.ts +2 -3
- package/reactjs/init/init.js +1 -1
- package/reactjs/init/init.mjs +113 -112
- package/reactjs/init/isMobileInjectedDappBrowser.js +1 -1
- package/reactjs/init/isMobileInjectedDappBrowser.mjs +6 -7
- package/reactjs/queries/index.js +1 -1
- package/reactjs/queries/index.mjs +7 -17
- package/reactjs/queries/useCheckAccount.query.d.ts +1 -2
- package/reactjs/queries/useCheckAccount.query.js +1 -1
- package/reactjs/queries/useCheckAccount.query.mjs +35 -34
- package/reactjs/queries/useGetAllTokens.query.d.ts +1 -2
- package/reactjs/queries/useGetAllTokens.query.js +1 -1
- package/reactjs/queries/useGetAllTokens.query.mjs +24 -30
- package/reactjs/queries/useGetChains.query.d.ts +1 -2
- package/reactjs/queries/useGetChains.query.js +1 -1
- package/reactjs/queries/useGetChains.query.mjs +28 -31
- package/reactjs/queries/useGetHistory.query.d.ts +2 -3
- package/reactjs/queries/useGetHistory.query.js +1 -1
- package/reactjs/queries/useGetHistory.query.mjs +50 -64
- package/reactjs/queries/useGetMvxTokensBalances.query.d.ts +3 -4
- package/reactjs/queries/useGetMvxTokensBalances.query.js +1 -1
- package/reactjs/queries/useGetMvxTokensBalances.query.mjs +44 -56
- package/reactjs/queries/useGetNonMvxTokensBalances.query.d.ts +3 -4
- package/reactjs/queries/useGetNonMvxTokensBalances.query.js +1 -1
- package/reactjs/queries/useGetNonMvxTokensBalances.query.mjs +2 -75
- package/reactjs/queries/useGetRate.mutation.d.ts +0 -1
- package/reactjs/queries/useGetRate.mutation.js +1 -1
- package/reactjs/queries/useGetRate.mutation.mjs +12 -14
- package/reactjs/reexports.d.ts +2 -3
- package/reactjs/reexports.js +1 -1
- package/reactjs/reexports.mjs +3 -15
- package/reactjs/utils/delay.js +1 -1
- package/reactjs/utils/delay.mjs +5 -5
- package/reactjs/utils/formatAmount.js +1 -1
- package/reactjs/utils/formatAmount.mjs +11 -22
- package/reactjs/utils/getCleanStringAmount.js +1 -1
- package/reactjs/utils/getCleanStringAmount.mjs +11 -8
- package/reactjs/utils/getCompletePathname.js +1 -1
- package/reactjs/utils/getCompletePathname.mjs +5 -5
- package/reactjs/utils/getInitialTokens.js +1 -1
- package/reactjs/utils/getInitialTokens.mjs +10 -10
- package/reactjs/utils/hasEnoughFunds.js +1 -1
- package/reactjs/utils/hasEnoughFunds.mjs +9 -15
- package/reactjs/utils/index.js +1 -1
- package/reactjs/utils/index.mjs +12 -25
- package/reactjs/utils/isStringFloat.js +1 -1
- package/reactjs/utils/isStringFloat.mjs +10 -13
- package/reactjs/utils/mxClsx.d.ts +0 -1
- package/reactjs/utils/mxClsx.js +1 -1
- package/reactjs/utils/mxClsx.mjs +5 -5
- package/reactjs/utils/pipe.js +1 -1
- package/reactjs/utils/pipe.mjs +13 -20
- package/reactjs/utils/removeCommas.js +1 -1
- package/reactjs/utils/removeCommas.mjs +4 -4
- package/reactjs/utils/roundAmount.js +1 -1
- package/reactjs/utils/roundAmount.mjs +15 -19
- package/reactjs/utils/testNumber.js +1 -1
- package/reactjs/utils/testNumber.mjs +4 -4
- package/store/inMemoryStore.js +1 -1
- package/store/inMemoryStore.mjs +30 -34
- package/style.css +2 -1
- package/types/batchTransactions.d.ts +0 -1
- package/types/batchTransactions.js +0 -1
- package/types/batchTransactions.mjs +0 -1
- package/types/chainType.js +1 -1
- package/types/chainType.mjs +6 -4
- package/types/errors.js +1 -1
- package/types/errors.mjs +15 -19
- package/types/index.js +0 -1
- package/types/index.mjs +0 -1
- package/types/providerType.js +1 -1
- package/types/providerType.mjs +6 -4
- package/types/rate.d.ts +0 -1
- package/types/rate.js +0 -1
- package/types/rate.mjs +0 -1
- package/types/token.d.ts +0 -1
- package/types/token.js +0 -1
- package/types/token.mjs +0 -1
- package/types/transaction.d.ts +3 -4
- package/types/transaction.js +0 -1
- package/types/transaction.mjs +0 -1
- package/types/utxo.js +0 -1
- package/types/utxo.mjs +0 -1
- package/useFetchBridgeData-B5xt9GbW.js +2 -0
- package/useFetchBridgeData-C_hZjzd_.mjs +142 -0
- package/all-networks--dfVLHLJ.js +0 -2
- package/all-networks-Czd8zS1n.mjs +0 -4
- package/default-D0Jk5ROI.mjs +0 -4
- package/default-DbU6vPaB.js +0 -2
- package/react.esm-B0AMOHxa.js +0 -73
- package/react.esm-BxvJJ86Q.mjs +0 -9949
|
@@ -1,471 +1,359 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import "
|
|
11
|
-
import {
|
|
12
|
-
import "
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import "
|
|
20
|
-
import "
|
|
21
|
-
import "
|
|
22
|
-
import {
|
|
23
|
-
import "
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import "
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import "
|
|
31
|
-
import "
|
|
32
|
-
import "
|
|
33
|
-
import
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import "
|
|
42
|
-
import "
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
),
|
|
359
|
-
/* @__PURE__ */ r("div", { className: "liq-absolute liq-left-[6%] liq-top-[40%] -liq-mt-1 liq-z-10", children: je && /* @__PURE__ */ r(Pi, { onChangeDirection: ke }) }),
|
|
360
|
-
/* @__PURE__ */ l(
|
|
361
|
-
be,
|
|
362
|
-
{
|
|
363
|
-
className: ve(
|
|
364
|
-
"liq-pb-8 liq-pt-6 hover:liq-bg-neutral-700/50 sm:liq-pb-6",
|
|
365
|
-
{
|
|
366
|
-
"liq-pointer-events-none": W
|
|
367
|
-
}
|
|
368
|
-
),
|
|
369
|
-
children: [
|
|
370
|
-
/* @__PURE__ */ l("div", { className: "liq-flex liq-items-center liq-gap-1", children: [
|
|
371
|
-
/* @__PURE__ */ r("span", { children: "To" }),
|
|
372
|
-
/* @__PURE__ */ r(
|
|
373
|
-
Ui,
|
|
374
|
-
{
|
|
375
|
-
disabled: y,
|
|
376
|
-
activeChain: o
|
|
377
|
-
}
|
|
378
|
-
)
|
|
379
|
-
] }),
|
|
380
|
-
k && /* @__PURE__ */ r("div", { className: "liq-text-red-400 liq-text-xs liq-mt-1", children: k }),
|
|
381
|
-
S && /* @__PURE__ */ r("div", { className: "liq-text-red-400 liq-text-xs liq-mt-1", children: S }),
|
|
382
|
-
/* @__PURE__ */ l("div", { className: "liq-flex liq-justify-between liq-gap-1", children: [
|
|
383
|
-
/* @__PURE__ */ r(
|
|
384
|
-
Ce,
|
|
385
|
-
{
|
|
386
|
-
inputName: "secondAmount",
|
|
387
|
-
inputValue: f.values.secondAmount,
|
|
388
|
-
amountError: ci,
|
|
389
|
-
disabled: !1,
|
|
390
|
-
onInputDebounceChange: v,
|
|
391
|
-
onInputChange: pe,
|
|
392
|
-
onBlur: U
|
|
393
|
-
}
|
|
394
|
-
),
|
|
395
|
-
/* @__PURE__ */ r(
|
|
396
|
-
Ie,
|
|
397
|
-
{
|
|
398
|
-
name: "secondToken",
|
|
399
|
-
disabled: y,
|
|
400
|
-
omitDisableClass: !0,
|
|
401
|
-
options: Xe,
|
|
402
|
-
areOptionsLoading: z,
|
|
403
|
-
isMvxSelector: ei,
|
|
404
|
-
color: "neutral-850",
|
|
405
|
-
onChange: Je,
|
|
406
|
-
onBlur: U,
|
|
407
|
-
selectedOption: t
|
|
408
|
-
}
|
|
409
|
-
)
|
|
410
|
-
] })
|
|
411
|
-
]
|
|
412
|
-
}
|
|
413
|
-
),
|
|
414
|
-
/* @__PURE__ */ l("div", { className: "liq-flex liq-items-center liq-justify-center", children: [
|
|
415
|
-
!a && /* @__PURE__ */ r(
|
|
416
|
-
Fi,
|
|
417
|
-
{
|
|
418
|
-
mvxAccountAddress: a,
|
|
419
|
-
icon: T(g == null ? void 0 : g.pngUrl),
|
|
420
|
-
onClick: ie
|
|
421
|
-
}
|
|
422
|
-
),
|
|
423
|
-
a && !de && /* @__PURE__ */ r(
|
|
424
|
-
Li,
|
|
425
|
-
{
|
|
426
|
-
className: "liq-w-full liq-rounded-xl liq-bg-neutral-850/50 liq-px-8 liq-py-3 liq-font-semibold liq-text-primary-200 liq-transition-colors liq-duration-200 hover:enabled:liq-bg-primary-700/80 disabled:liq-opacity-50",
|
|
427
|
-
disabled: y,
|
|
428
|
-
activeChain: o
|
|
429
|
-
}
|
|
430
|
-
),
|
|
431
|
-
a && de && /* @__PURE__ */ l(
|
|
432
|
-
Ri,
|
|
433
|
-
{
|
|
434
|
-
"data-testid": "submit-button",
|
|
435
|
-
type: "submit",
|
|
436
|
-
variant: "neutral-850",
|
|
437
|
-
className: "liq-w-full disabled:liq-bg-neutral-850/50 liq-py-3 hover:enabled:liq-bg-primary !liq-text-primary-200",
|
|
438
|
-
disabled: !H || y || !a || !s || si,
|
|
439
|
-
children: [
|
|
440
|
-
H && /* @__PURE__ */ l("div", { className: "liq-flex liq-justify-center liq-items-center liq-gap-2", children: [
|
|
441
|
-
/* @__PURE__ */ r("div", { children: "Transfer to " }),
|
|
442
|
-
/* @__PURE__ */ r(
|
|
443
|
-
"img",
|
|
444
|
-
{
|
|
445
|
-
src: T(o == null ? void 0 : o.pngUrl),
|
|
446
|
-
alt: "",
|
|
447
|
-
className: "liq-h-[1.5rem] liq-w-[1.5rem] liq-rounded-lg"
|
|
448
|
-
}
|
|
449
|
-
),
|
|
450
|
-
/* @__PURE__ */ r("div", { children: o == null ? void 0 : o.networkName })
|
|
451
|
-
] }),
|
|
452
|
-
!H && /* @__PURE__ */ r("span", { className: "liq-text-neutral-100", children: "Enter amount" })
|
|
453
|
-
]
|
|
454
|
-
}
|
|
455
|
-
)
|
|
456
|
-
] }),
|
|
457
|
-
s && G > 0 && /* @__PURE__ */ r("div", { className: "liq-flex liq-items-center liq-justify-center liq-text-neutral-300 liq-text-sm", children: /* @__PURE__ */ l("div", { children: [
|
|
458
|
-
"You will be asked to sign ",
|
|
459
|
-
G,
|
|
460
|
-
" ",
|
|
461
|
-
G > 1 ? "transactions" : "transaction",
|
|
462
|
-
" ",
|
|
463
|
-
"on your wallet"
|
|
464
|
-
] }) })
|
|
465
|
-
]
|
|
466
|
-
}
|
|
467
|
-
) });
|
|
468
|
-
};
|
|
469
|
-
export {
|
|
470
|
-
Qt as Transfer
|
|
1
|
+
import { MVX_CHAIN_IDS as e } from "../../../constants/index.mjs";
|
|
2
|
+
import { getApiURL as t } from "../../../helpers/getApiURL.mjs";
|
|
3
|
+
import { safeImageUrl as n } from "../../../helpers/safeImageUrl.mjs";
|
|
4
|
+
import { ChainType as ee } from "../../../types/chainType.mjs";
|
|
5
|
+
import "../../../helpers/index.mjs";
|
|
6
|
+
import { mxClsx as te } from "../../utils/mxClsx.mjs";
|
|
7
|
+
import { MxButton as ne } from "../base/MxButton/MxButton.mjs";
|
|
8
|
+
import "../base/index.mjs";
|
|
9
|
+
import { AmountCard as re } from "../AmountCard/AmountCard.mjs";
|
|
10
|
+
import "../AmountCard/index.mjs";
|
|
11
|
+
import { AmountInput as ie } from "../AmountInput/AmountInput.mjs";
|
|
12
|
+
import "../AmountInput/index.mjs";
|
|
13
|
+
import { sameBridgeApiChainId as r, toBridgeApiChainId as ae } from "../../helpers/resolveBridgeApiChainId.mjs";
|
|
14
|
+
import { useBridgeTokenSelection as oe } from "./hooks/useBridgeTokenSelection.mjs";
|
|
15
|
+
import { useWeb3App as se } from "../../context/useWeb3App.mjs";
|
|
16
|
+
import { useAccount as ce } from "../../hooks/useAccount.mjs";
|
|
17
|
+
import { useBridgeApiChainId as le } from "../../hooks/useBridgeApiChainId.mjs";
|
|
18
|
+
import { ProviderType as ue } from "../../../types/providerType.mjs";
|
|
19
|
+
import { BridgeFormikValuesEnum as i, useBridgeFormik as de } from "../../hooks/useBridgeFormik.mjs";
|
|
20
|
+
import { useDisconnectOnChainTypeChange as fe } from "../../hooks/useDisconnectOnChainTypeChange.mjs";
|
|
21
|
+
import { useGetChainId as pe } from "../../hooks/useGetChainId.mjs";
|
|
22
|
+
import { useSendTransactions as me } from "../../hooks/useSendTransactions.mjs";
|
|
23
|
+
import { t as he } from "../../../useFetchBridgeData-C_hZjzd_.mjs";
|
|
24
|
+
import { useNamespaceAddress as ge } from "../../hooks/useNamespaceAddress.mjs";
|
|
25
|
+
import { useInvalidateHistoryQuery as _e } from "../../queries/useGetHistory.query.mjs";
|
|
26
|
+
import { useGetRateMutation as ve } from "../../queries/useGetRate.mutation.mjs";
|
|
27
|
+
import { t as ye } from "../../../BridgeHistory-CInRkJ6T.mjs";
|
|
28
|
+
import "../BridgeHistory/index.mjs";
|
|
29
|
+
import { BridgeConnectButton as be } from "../Connect/BridgeConnectButton.mjs";
|
|
30
|
+
import { MvxConnectButton as xe } from "../Connect/MvxConnectButton.mjs";
|
|
31
|
+
import { BridgeAccountDisplay as Se } from "../Connect/BridgeAccountDisplay.mjs";
|
|
32
|
+
import { MvxAccountDisplay as Ce } from "../Connect/MvxAccountDisplay.mjs";
|
|
33
|
+
import "../Connect/index.mjs";
|
|
34
|
+
import { t as we } from "../../../ToggleDirection-BLDXxUlN.mjs";
|
|
35
|
+
import { TokenSelector as Te } from "../TokenSelector/TokenSelector.mjs";
|
|
36
|
+
import "../TokenSelector/index.mjs";
|
|
37
|
+
import { Fragment as Ee, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
38
|
+
import { useCallback as s, useEffect as c, useMemo as l, useRef as De, useState as u } from "react";
|
|
39
|
+
import { formatAmount as Oe } from "@multiversx/sdk-dapp-utils/out/helpers/formatAmount";
|
|
40
|
+
import { useAppKitNetwork as ke } from "@reown/appkit/react";
|
|
41
|
+
import Ae from "lodash/debounce";
|
|
42
|
+
import { toast as je } from "react-toastify";
|
|
43
|
+
//#region src/reactjs/components/BridgeForm/Transfer.tsx
|
|
44
|
+
var d, f = ({ mvxChainId: f, mvxAddress: p, username: Me, callbackRoute: Ne = "/", firstTokenIdentifier: Pe, secondTokenIdentifier: Fe, firstTokenAmount: m, secondTokenAmount: h, refetchTrigger: Ie, showHistory: Le, forcedDestinationTokenSymbol: Re, onSuccessfullySentTransaction: g, onFailedSentTransaction: _, onHistoryClose: v, onMvxConnect: ze, onMvxDisconnect: Be, onNavigate: Ve, onChangeDirection: He }) => {
|
|
45
|
+
let Ue = De(null), [y, We] = u(!1), [Ge, Ke] = u(1), [b, qe] = u(0), [Je, Ye] = u([]), Xe = ce(), { switchNetwork: Ze } = ke(), Qe = _e(), { options: $e, supportedChains: x, nativeAuthToken: S, bridgeOnly: et } = se(), C = pe(), tt = le(), nt = me(), { signMvxTransactions: w, resetMvxTransactionHash: rt, latestMvxTransactionHash: T } = se(), { evmTokensWithBalances: it, mvxTokensWithBalances: at, isTokensLoading: ot, isLoadingEvmTokensBalances: st, isLoadingMvxTokensBalances: ct, chains: E = [], isChainsLoading: lt } = he({
|
|
46
|
+
refetchTrigger: Ie,
|
|
47
|
+
mvxAddress: p,
|
|
48
|
+
mvxApiURL: $e.mvxApiURL
|
|
49
|
+
}), D = ot || st || ct || lt, ut = l(() => x.find((e) => r(e.id, C)), [C, x]), dt = l(() => E.find((e) => e.chainId.toString() === f.toString()), [C, E]), { mutate: O, data: k, isPending: A, error: ft } = ve(), j = ft?.response?.status === 400 ? ft?.response?.data.message : void 0, { firstToken: M, secondToken: N, fromOptions: pt, toOptions: mt, selectedChainOption: P, onChangeFirstSelect: ht, onChangeSecondSelect: gt, handleChangeDirection: _t } = oe({
|
|
50
|
+
chains: E,
|
|
51
|
+
activeChain: ut,
|
|
52
|
+
sdkChains: x,
|
|
53
|
+
switchNetwork: s((e) => {
|
|
54
|
+
let t = x.find((t) => r(t.id, e.id));
|
|
55
|
+
t && Ze(t);
|
|
56
|
+
}, [x, Ze]),
|
|
57
|
+
fromTokens: at,
|
|
58
|
+
toTokens: it,
|
|
59
|
+
firstTokenIdentifier: Pe,
|
|
60
|
+
secondTokenIdentifier: Fe,
|
|
61
|
+
forcedDestinationTokenSymbol: Re,
|
|
62
|
+
isTokensLoading: D,
|
|
63
|
+
mvxChainId: f,
|
|
64
|
+
callbackRoute: Ne,
|
|
65
|
+
onNavigate: Ve
|
|
66
|
+
}), vt = () => {
|
|
67
|
+
_t(), He();
|
|
68
|
+
}, [F, yt] = u(m ?? ""), [I, L] = u(h ?? ""), bt = l(() => M ? e.includes(M.chainId.toString()) : !1, [M?.chainId]), xt = l(() => N ? e.includes(N.chainId.toString()) : !1, [N?.chainId]), R = l(() => N ? E.find((e) => r(e.chainId, N.chainId)) ?? P : P, [
|
|
69
|
+
N?.chainId,
|
|
70
|
+
E,
|
|
71
|
+
P
|
|
72
|
+
]), z = l(() => ae(N?.chainId) ?? tt, [N?.chainId, tt]);
|
|
73
|
+
fe(R?.chainType);
|
|
74
|
+
let B = ge(R?.chainType), St = B, Ct = Xe.isConnected && !!B, V = F !== "" && I !== "", H = s(Ae(async (e) => {
|
|
75
|
+
!e || !Number(e) || !B || !M?.address || !N?.address || !P || !z || O({
|
|
76
|
+
nativeAuthToken: S ?? "",
|
|
77
|
+
body: {
|
|
78
|
+
tokenIn: M.address,
|
|
79
|
+
amountIn: e,
|
|
80
|
+
fromChainId: f,
|
|
81
|
+
tokenOut: N.address,
|
|
82
|
+
toChainId: z
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}, 500), [
|
|
86
|
+
B,
|
|
87
|
+
z,
|
|
88
|
+
M?.address,
|
|
89
|
+
N?.address,
|
|
90
|
+
P,
|
|
91
|
+
f,
|
|
92
|
+
S,
|
|
93
|
+
O
|
|
94
|
+
]), U = s((e) => {
|
|
95
|
+
yt(() => e);
|
|
96
|
+
}, []), W = s((e) => {
|
|
97
|
+
L(() => e);
|
|
98
|
+
}, []), wt = s(() => {
|
|
99
|
+
v?.();
|
|
100
|
+
}, [v]), Tt = s(() => {
|
|
101
|
+
let e = Oe({
|
|
102
|
+
decimals: M?.decimals,
|
|
103
|
+
input: M?.balance ?? "0",
|
|
104
|
+
addCommas: !1,
|
|
105
|
+
digits: 4
|
|
106
|
+
});
|
|
107
|
+
G.setFieldValue("firstAmount", e), U(e);
|
|
108
|
+
}, [
|
|
109
|
+
M?.balance,
|
|
110
|
+
M?.decimals,
|
|
111
|
+
U
|
|
112
|
+
]), Et = s(async ({ transactions: e }) => {
|
|
113
|
+
qe(() => e.length);
|
|
114
|
+
try {
|
|
115
|
+
if (!w) throw Error("signMvxTransactions function is not provided");
|
|
116
|
+
await w(e), Ye(e);
|
|
117
|
+
} catch (e) {
|
|
118
|
+
console.error(e), je.dismiss(), je.error("Transaction cancelled"), _?.("Transaction cancelled"), qe(0), Ot(), U(""), W("");
|
|
119
|
+
}
|
|
120
|
+
}, [
|
|
121
|
+
St,
|
|
122
|
+
U,
|
|
123
|
+
W,
|
|
124
|
+
S,
|
|
125
|
+
s(async (e) => {
|
|
126
|
+
U(""), W(""), Qe(), Qe(), g?.(e);
|
|
127
|
+
}, [
|
|
128
|
+
U,
|
|
129
|
+
W,
|
|
130
|
+
g
|
|
131
|
+
]),
|
|
132
|
+
w
|
|
133
|
+
]), { formik: G, firstAmountError: K, secondAmountError: q, fromChainError: J, senderAddressError: Y, receiverAddressError: X, confirmRateError: Z, handleBlur: Q, handleChange: $, handleSubmit: Dt, resetSwapForm: Ot } = de({
|
|
134
|
+
isMvxConnected: !!p,
|
|
135
|
+
rate: k,
|
|
136
|
+
sender: p ?? "",
|
|
137
|
+
receiver: B ?? "",
|
|
138
|
+
firstToken: M,
|
|
139
|
+
firstAmount: F,
|
|
140
|
+
fromChainId: f,
|
|
141
|
+
toChainId: z,
|
|
142
|
+
secondToken: N,
|
|
143
|
+
secondAmount: I,
|
|
144
|
+
setForceRefetchRate: Ke,
|
|
145
|
+
senderChainType: ee.mvx,
|
|
146
|
+
receiverChainType: R?.chainType,
|
|
147
|
+
onSubmit: Et
|
|
148
|
+
}), kt = !!(K || q || J || j || Y || X || Z), At = l(() => F === "" ? void 0 : j ?? K, [
|
|
149
|
+
K,
|
|
150
|
+
F,
|
|
151
|
+
j
|
|
152
|
+
]), jt = l(() => I === "" ? void 0 : J ?? q, [
|
|
153
|
+
J,
|
|
154
|
+
q,
|
|
155
|
+
I
|
|
156
|
+
]);
|
|
157
|
+
return c(() => (F || L(""), H(F), d && clearInterval(d), d = setInterval(() => {
|
|
158
|
+
H(F);
|
|
159
|
+
}, 50 * 1e3), () => clearInterval(d)), [
|
|
160
|
+
F,
|
|
161
|
+
Ge,
|
|
162
|
+
H
|
|
163
|
+
]), c(() => {
|
|
164
|
+
k?.amountOut && (G.setFieldValue(i.secondAmount, k.amountOut), L(k.amountOut));
|
|
165
|
+
}, [k?.amountOut]), c(() => {
|
|
166
|
+
j && (G.setFieldValue(i.secondAmount, "0"), L("0"));
|
|
167
|
+
}, [j]), c(() => {
|
|
168
|
+
m && (G.setFieldValue(i.firstAmount, m), U(m));
|
|
169
|
+
}, []), c(() => {
|
|
170
|
+
h && (G.setFieldValue(i.secondAmount, h), W(h));
|
|
171
|
+
}, [h]), c(() => {
|
|
172
|
+
if (T) try {
|
|
173
|
+
let e = T;
|
|
174
|
+
nt({
|
|
175
|
+
transactions: Je.map((t) => ({
|
|
176
|
+
...t,
|
|
177
|
+
txHash: e,
|
|
178
|
+
receiver: B
|
|
179
|
+
})),
|
|
180
|
+
provider: k?.provider ?? ue.None,
|
|
181
|
+
url: t() ?? "",
|
|
182
|
+
token: S ?? ""
|
|
183
|
+
}), g?.([e]);
|
|
184
|
+
} catch (e) {
|
|
185
|
+
console.error("Error while sending transactions:", e), _?.("An error occurred while sending the transaction");
|
|
186
|
+
return;
|
|
187
|
+
} finally {
|
|
188
|
+
rt?.(), Ye([]);
|
|
189
|
+
}
|
|
190
|
+
}, [
|
|
191
|
+
T,
|
|
192
|
+
Je,
|
|
193
|
+
B,
|
|
194
|
+
S,
|
|
195
|
+
_,
|
|
196
|
+
g,
|
|
197
|
+
k?.provider,
|
|
198
|
+
rt,
|
|
199
|
+
nt
|
|
200
|
+
]), /* @__PURE__ */ a(Ee, { children: /* @__PURE__ */ o("form", {
|
|
201
|
+
ref: Ue,
|
|
202
|
+
noValidate: !0,
|
|
203
|
+
className: "liq-flex liq-flex-col liq-gap-1 liq-relative",
|
|
204
|
+
autoComplete: "off",
|
|
205
|
+
onSubmit: Dt,
|
|
206
|
+
children: [
|
|
207
|
+
Le && /* @__PURE__ */ a(ye, {
|
|
208
|
+
mvxAddress: p,
|
|
209
|
+
onClose: wt
|
|
210
|
+
}),
|
|
211
|
+
/* @__PURE__ */ o(re, {
|
|
212
|
+
className: te("liq-pb-8 liq-pt-6 hover:liq-bg-neutral-700/50 sm:liq-pb-6", {
|
|
213
|
+
"liq-pointer-events-none": y,
|
|
214
|
+
"focus-within:liq-outline-neutral-700/75 hover:liq-outline-neutral-700/55 hover:focus-within:liq-outline-neutral-700/80": !y
|
|
215
|
+
}),
|
|
216
|
+
children: [
|
|
217
|
+
/* @__PURE__ */ o("div", {
|
|
218
|
+
className: "liq-flex liq-items-center liq-gap-1",
|
|
219
|
+
children: [/* @__PURE__ */ a("span", { children: "From" }), /* @__PURE__ */ a(Ce, {
|
|
220
|
+
accountAddress: p,
|
|
221
|
+
chainIcon: n(dt?.pngUrl),
|
|
222
|
+
username: Me,
|
|
223
|
+
accountExplorerUrl: `${$e.mvxExplorerAddress}/accounts/${p}`,
|
|
224
|
+
showTag: !0,
|
|
225
|
+
onDisconnect: Be,
|
|
226
|
+
onConnect: ze
|
|
227
|
+
})]
|
|
228
|
+
}),
|
|
229
|
+
Y && /* @__PURE__ */ a("div", {
|
|
230
|
+
className: "liq-text-red-400 liq-text-xs liq-mt-1",
|
|
231
|
+
children: Y
|
|
232
|
+
}),
|
|
233
|
+
/* @__PURE__ */ o("div", {
|
|
234
|
+
className: "liq-flex liq-justify-between liq-gap-1",
|
|
235
|
+
children: [/* @__PURE__ */ a(ie, {
|
|
236
|
+
inputName: "firstAmount",
|
|
237
|
+
inputValue: G.values.firstAmount,
|
|
238
|
+
amountError: At,
|
|
239
|
+
disabled: !1,
|
|
240
|
+
onInputDebounceChange: U,
|
|
241
|
+
onInputChange: $,
|
|
242
|
+
onBlur: Q
|
|
243
|
+
}), /* @__PURE__ */ a(Te, {
|
|
244
|
+
name: "firstToken",
|
|
245
|
+
disabled: A,
|
|
246
|
+
options: pt,
|
|
247
|
+
areOptionsLoading: D,
|
|
248
|
+
isMvxSelector: bt,
|
|
249
|
+
isDestination: !1,
|
|
250
|
+
color: "neutral-850",
|
|
251
|
+
onChange: ht,
|
|
252
|
+
onBlur: Q,
|
|
253
|
+
onMaxBtnClick: Tt,
|
|
254
|
+
selectedOption: M,
|
|
255
|
+
onTokenSelectorDisplay: (e) => We(e)
|
|
256
|
+
})]
|
|
257
|
+
})
|
|
258
|
+
]
|
|
259
|
+
}),
|
|
260
|
+
/* @__PURE__ */ a("div", {
|
|
261
|
+
className: "liq-absolute liq-left-[6%] liq-top-[40%] -liq-mt-1 liq-z-10",
|
|
262
|
+
children: et && /* @__PURE__ */ a(we, { onChangeDirection: vt })
|
|
263
|
+
}),
|
|
264
|
+
/* @__PURE__ */ o(re, {
|
|
265
|
+
className: te("liq-pb-8 liq-pt-6 hover:liq-bg-neutral-700/50 sm:liq-pb-6", { "liq-pointer-events-none": y }),
|
|
266
|
+
children: [
|
|
267
|
+
/* @__PURE__ */ o("div", {
|
|
268
|
+
className: "liq-flex liq-items-center liq-gap-1",
|
|
269
|
+
children: [/* @__PURE__ */ a("span", { children: "To" }), /* @__PURE__ */ a(Se, {
|
|
270
|
+
disabled: A,
|
|
271
|
+
activeChain: R
|
|
272
|
+
})]
|
|
273
|
+
}),
|
|
274
|
+
X && /* @__PURE__ */ a("div", {
|
|
275
|
+
className: "liq-text-red-400 liq-text-xs liq-mt-1",
|
|
276
|
+
children: X
|
|
277
|
+
}),
|
|
278
|
+
Z && /* @__PURE__ */ a("div", {
|
|
279
|
+
className: "liq-text-red-400 liq-text-xs liq-mt-1",
|
|
280
|
+
children: Z
|
|
281
|
+
}),
|
|
282
|
+
/* @__PURE__ */ o("div", {
|
|
283
|
+
className: "liq-flex liq-justify-between liq-gap-1",
|
|
284
|
+
children: [/* @__PURE__ */ a(ie, {
|
|
285
|
+
inputName: "secondAmount",
|
|
286
|
+
inputValue: G.values.secondAmount,
|
|
287
|
+
amountError: jt,
|
|
288
|
+
disabled: !1,
|
|
289
|
+
onInputDebounceChange: W,
|
|
290
|
+
onInputChange: $,
|
|
291
|
+
onBlur: Q
|
|
292
|
+
}), /* @__PURE__ */ a(Te, {
|
|
293
|
+
name: "secondToken",
|
|
294
|
+
disabled: A,
|
|
295
|
+
omitDisableClass: !0,
|
|
296
|
+
options: mt,
|
|
297
|
+
areOptionsLoading: D,
|
|
298
|
+
isMvxSelector: xt,
|
|
299
|
+
color: "neutral-850",
|
|
300
|
+
onChange: gt,
|
|
301
|
+
onBlur: Q,
|
|
302
|
+
selectedOption: N
|
|
303
|
+
})]
|
|
304
|
+
})
|
|
305
|
+
]
|
|
306
|
+
}),
|
|
307
|
+
/* @__PURE__ */ o("div", {
|
|
308
|
+
className: "liq-flex liq-items-center liq-justify-center",
|
|
309
|
+
children: [
|
|
310
|
+
!p && /* @__PURE__ */ a(xe, {
|
|
311
|
+
mvxAccountAddress: p,
|
|
312
|
+
icon: n(dt?.pngUrl),
|
|
313
|
+
onClick: ze
|
|
314
|
+
}),
|
|
315
|
+
p && !Ct && /* @__PURE__ */ a(be, {
|
|
316
|
+
className: "liq-w-full liq-rounded-xl liq-bg-neutral-850/50 liq-px-8 liq-py-3 liq-font-semibold liq-text-primary-200 liq-transition-colors liq-duration-200 hover:enabled:liq-bg-primary-700/80 disabled:liq-opacity-50",
|
|
317
|
+
disabled: A,
|
|
318
|
+
activeChain: R
|
|
319
|
+
}),
|
|
320
|
+
p && Ct && /* @__PURE__ */ o(ne, {
|
|
321
|
+
"data-testid": "submit-button",
|
|
322
|
+
type: "submit",
|
|
323
|
+
variant: "neutral-850",
|
|
324
|
+
className: "liq-w-full disabled:liq-bg-neutral-850/50 liq-py-3 hover:enabled:liq-bg-primary !liq-text-primary-200",
|
|
325
|
+
disabled: !V || A || !p || !B || kt,
|
|
326
|
+
children: [V && /* @__PURE__ */ o("div", {
|
|
327
|
+
className: "liq-flex liq-justify-center liq-items-center liq-gap-2",
|
|
328
|
+
children: [
|
|
329
|
+
/* @__PURE__ */ a("div", { children: "Transfer to " }),
|
|
330
|
+
/* @__PURE__ */ a("img", {
|
|
331
|
+
src: n(R?.pngUrl),
|
|
332
|
+
alt: "",
|
|
333
|
+
className: "liq-h-[1.5rem] liq-w-[1.5rem] liq-rounded-lg"
|
|
334
|
+
}),
|
|
335
|
+
/* @__PURE__ */ a("div", { children: R?.networkName })
|
|
336
|
+
]
|
|
337
|
+
}), !V && /* @__PURE__ */ a("span", {
|
|
338
|
+
className: "liq-text-neutral-100",
|
|
339
|
+
children: "Enter amount"
|
|
340
|
+
})]
|
|
341
|
+
})
|
|
342
|
+
]
|
|
343
|
+
}),
|
|
344
|
+
B && b > 0 && /* @__PURE__ */ a("div", {
|
|
345
|
+
className: "liq-flex liq-items-center liq-justify-center liq-text-neutral-300 liq-text-sm",
|
|
346
|
+
children: /* @__PURE__ */ o("div", { children: [
|
|
347
|
+
"You will be asked to sign ",
|
|
348
|
+
b,
|
|
349
|
+
" ",
|
|
350
|
+
b > 1 ? "transactions" : "transaction",
|
|
351
|
+
" ",
|
|
352
|
+
"on your wallet"
|
|
353
|
+
] })
|
|
354
|
+
})
|
|
355
|
+
]
|
|
356
|
+
}) });
|
|
471
357
|
};
|
|
358
|
+
//#endregion
|
|
359
|
+
export { f as Transfer };
|