@multiversx/sdk-dapp-liquidity 2.0.0 → 2.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all-networks--dfVLHLJ.js +2 -0
- package/all-networks-Czd8zS1n.mjs +4 -0
- package/api/checkAccount.js +1 -21
- package/api/checkAccount.mjs +13 -13
- package/api/confirmRate.js +1 -29
- package/api/confirmRate.mjs +17 -22
- package/api/getChains.js +1 -17
- package/api/getChains.mjs +10 -10
- package/api/getRate.js +1 -27
- package/api/getRate.mjs +17 -20
- package/api/getTokens.js +1 -22
- package/api/getTokens.mjs +14 -15
- package/api/getTokensBalances.js +1 -21
- package/api/getTokensBalances.mjs +13 -13
- package/api/getTransactions.js +1 -38
- package/api/getTransactions.mjs +25 -31
- package/api/index.js +1 -18
- package/api/index.mjs +16 -16
- package/api/sendTransactions.js +1 -32
- package/api/sendTransactions.mjs +19 -19
- package/api/tests/confirmRate.spec.js +1 -130
- package/api/tests/confirmRate.spec.mjs +44 -58
- package/api/tests/getChains.spec.js +1 -43
- package/api/tests/getChains.spec.mjs +15 -18
- package/api/tests/getRate.spec.js +1 -87
- package/api/tests/getRate.spec.mjs +35 -49
- package/api/tests/getTokens.spec.js +1 -68
- package/api/tests/getTokens.spec.mjs +23 -29
- package/api/tests/getTransactions.spec.js +1 -94
- package/api/tests/getTransactions.spec.mjs +35 -51
- package/api/tests/sendTransactions.spec.js +1 -96
- package/api/tests/sendTransactions.spec.mjs +44 -52
- package/constants/index.js +1 -4
- package/constants/index.mjs +2 -2
- package/default-D0Jk5ROI.mjs +4 -0
- package/default-DbU6vPaB.js +2 -0
- package/helpers/assertRateConfirmationMatchesIntent.d.ts +8 -0
- package/helpers/assertRateConfirmationMatchesIntent.js +2 -0
- package/helpers/assertRateConfirmationMatchesIntent.mjs +20 -0
- package/helpers/base64Utils.js +1 -31
- package/helpers/base64Utils.mjs +14 -24
- package/helpers/decodeLoginToken.js +1 -27
- package/helpers/decodeLoginToken.mjs +13 -18
- package/helpers/decodeToken.js +1 -39
- package/helpers/decodeToken.mjs +20 -31
- package/helpers/getApiURL.js +1 -7
- package/helpers/getApiURL.mjs +3 -5
- package/helpers/getBridgeURL.js +1 -7
- package/helpers/getBridgeURL.mjs +3 -5
- package/helpers/getDisplayName.js +1 -11
- package/helpers/getDisplayName.mjs +3 -8
- package/helpers/getMvxApiURL.js +1 -7
- package/helpers/getMvxApiURL.mjs +3 -5
- package/helpers/getMvxChainId.js +1 -7
- package/helpers/getMvxChainId.mjs +3 -5
- package/helpers/getMvxExplorerAddress.js +1 -7
- package/helpers/getMvxExplorerAddress.mjs +3 -5
- package/helpers/index.d.ts +2 -0
- package/helpers/index.js +1 -22
- package/helpers/index.mjs +24 -20
- package/helpers/safeImageUrl.d.ts +1 -0
- package/helpers/safeImageUrl.js +2 -0
- package/helpers/safeImageUrl.mjs +13 -0
- package/helpers/serializeTransaction.js +1 -8
- package/helpers/serializeTransaction.mjs +3 -5
- package/helpers/tests/assertRateConfirmationMatchesIntent.spec.d.ts +1 -0
- package/helpers/tests/assertRateConfirmationMatchesIntent.spec.js +2 -0
- package/helpers/tests/assertRateConfirmationMatchesIntent.spec.mjs +52 -0
- package/helpers/tests/base64Utils.spec.js +1 -29
- package/helpers/tests/base64Utils.spec.mjs +11 -24
- package/helpers/tests/decodeLoginToken.spec.js +1 -34
- package/helpers/tests/decodeLoginToken.spec.mjs +13 -24
- package/helpers/tests/decodeToken.spec.js +1 -27
- package/helpers/tests/decodeToken.spec.mjs +7 -12
- package/helpers/tests/safeImageUrl.spec.d.ts +1 -0
- package/helpers/tests/safeImageUrl.spec.js +2 -0
- package/helpers/tests/safeImageUrl.spec.mjs +32 -0
- package/helpers/tests/serializeTransaction.spec.d.ts +1 -0
- package/helpers/tests/serializeTransaction.spec.js +2 -0
- package/helpers/tests/serializeTransaction.spec.mjs +24 -0
- package/index.js +1 -228
- package/index.mjs +196 -192
- package/package.json +14 -9
- package/react.esm-B0AMOHxa.js +73 -0
- package/react.esm-BxvJJ86Q.mjs +9949 -0
- package/reactjs/adapters/SuiAdapter.d.ts +14 -0
- package/reactjs/adapters/SuiAdapter.js +1 -349
- package/reactjs/adapters/SuiAdapter.mjs +171 -199
- package/reactjs/components/AccountAddress/AccountAddress.js +1 -31
- package/reactjs/components/AccountAddress/AccountAddress.mjs +16 -16
- package/reactjs/components/AccountAddress/index.js +1 -4
- package/reactjs/components/AccountAddress/index.mjs +2 -2
- package/reactjs/components/AmountCard/AmountCard.js +1 -33
- package/reactjs/components/AmountCard/AmountCard.mjs +19 -21
- package/reactjs/components/AmountCard/index.js +1 -4
- package/reactjs/components/AmountCard/index.mjs +2 -2
- package/reactjs/components/AmountInput/AmountInput.js +1 -71
- package/reactjs/components/AmountInput/AmountInput.mjs +42 -46
- package/reactjs/components/AmountInput/index.js +1 -4
- package/reactjs/components/AmountInput/index.mjs +2 -2
- package/reactjs/components/BridgeForm/BridgeForm.d.ts +9 -0
- package/reactjs/components/BridgeForm/BridgeForm.js +1 -89
- package/reactjs/components/BridgeForm/BridgeForm.mjs +72 -79
- package/reactjs/components/BridgeForm/Deposit.js +1 -673
- package/reactjs/components/BridgeForm/Deposit.mjs +381 -503
- package/reactjs/components/BridgeForm/Transfer.js +1 -559
- package/reactjs/components/BridgeForm/Transfer.mjs +316 -427
- package/reactjs/components/BridgeForm/hooks/useBridgeAmounts.js +1 -78
- package/reactjs/components/BridgeForm/hooks/useBridgeAmounts.mjs +47 -70
- package/reactjs/components/BridgeForm/hooks/useBridgeRateFetching.js +1 -58
- package/reactjs/components/BridgeForm/hooks/useBridgeRateFetching.mjs +36 -47
- package/reactjs/components/BridgeForm/hooks/useBridgeTokenSelection.js +1 -266
- package/reactjs/components/BridgeForm/hooks/useBridgeTokenSelection.mjs +163 -231
- package/reactjs/components/BridgeForm/index.js +1 -4
- package/reactjs/components/BridgeForm/index.mjs +2 -2
- package/reactjs/components/BridgeForm/utils/bridgeFormHelpers.js +1 -76
- package/reactjs/components/BridgeForm/utils/bridgeFormHelpers.mjs +35 -65
- package/reactjs/components/BridgeHistory/BridgeHistory.js +1 -367
- package/reactjs/components/BridgeHistory/BridgeHistory.mjs +177 -193
- package/reactjs/components/BridgeHistory/index.js +1 -4
- package/reactjs/components/BridgeHistory/index.mjs +2 -2
- package/reactjs/components/Connect/BridgeAccountDisplay.js +1 -150
- package/reactjs/components/Connect/BridgeAccountDisplay.mjs +99 -115
- package/reactjs/components/Connect/BridgeConnectButton.js +1 -34
- package/reactjs/components/Connect/BridgeConnectButton.mjs +20 -19
- package/reactjs/components/Connect/ChainSelectConnect.js +1 -144
- package/reactjs/components/Connect/ChainSelectConnect.mjs +70 -83
- package/reactjs/components/Connect/CustomConnectButton.js +1 -40
- package/reactjs/components/Connect/CustomConnectButton.mjs +24 -30
- package/reactjs/components/Connect/MvxAccountDisplay.js +1 -97
- package/reactjs/components/Connect/MvxAccountDisplay.mjs +47 -50
- package/reactjs/components/Connect/MvxConnectButton.js +1 -43
- package/reactjs/components/Connect/MvxConnectButton.mjs +35 -40
- package/reactjs/components/Connect/SwitchChainButton.js +1 -29
- package/reactjs/components/Connect/SwitchChainButton.mjs +15 -18
- package/reactjs/components/Connect/index.js +1 -16
- package/reactjs/components/Connect/index.mjs +14 -14
- package/reactjs/components/CopyButton/CopyButton.js +1 -46
- package/reactjs/components/CopyButton/CopyButton.mjs +33 -36
- package/reactjs/components/CopyButton/index.js +1 -4
- package/reactjs/components/CopyButton/index.mjs +2 -2
- package/reactjs/components/CopyButton/utils/copyToClipboard.js +1 -38
- package/reactjs/components/CopyButton/utils/copyToClipboard.mjs +20 -32
- package/reactjs/components/CopyButton/utils/index.js +1 -4
- package/reactjs/components/CopyButton/utils/index.mjs +2 -2
- package/reactjs/components/DisplayAmount/DisplayAmount.js +1 -90
- package/reactjs/components/DisplayAmount/DisplayAmount.mjs +68 -75
- package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.js +1 -39
- package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.mjs +26 -33
- package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.js +1 -61
- package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.mjs +38 -46
- package/reactjs/components/DisplayAmount/index.js +1 -4
- package/reactjs/components/DisplayAmount/index.mjs +2 -2
- package/reactjs/components/DisplayAmount/utils/index.js +1 -4
- package/reactjs/components/DisplayAmount/utils/index.mjs +2 -2
- package/reactjs/components/DisplayAmount/utils/truncateAmount.js +1 -21
- package/reactjs/components/DisplayAmount/utils/truncateAmount.mjs +9 -13
- package/reactjs/components/Error/Error.js +1 -66
- package/reactjs/components/Error/Error.mjs +29 -29
- package/reactjs/components/Error/index.js +1 -4
- package/reactjs/components/Error/index.mjs +2 -2
- package/reactjs/components/SmallLoader/SmallLoader.js +1 -21
- package/reactjs/components/SmallLoader/SmallLoader.mjs +13 -18
- package/reactjs/components/SmallLoader/index.js +1 -4
- package/reactjs/components/SmallLoader/index.mjs +2 -2
- package/reactjs/components/ToggleDirection/ToggleDirection.js +1 -30
- package/reactjs/components/ToggleDirection/ToggleDirection.mjs +22 -28
- package/reactjs/components/TokenSelector/TokenSelector.js +1 -172
- package/reactjs/components/TokenSelector/TokenSelector.mjs +98 -118
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.js +1 -94
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.mjs +48 -57
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.js +1 -51
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.mjs +45 -44
- package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.js +1 -18
- package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.mjs +9 -14
- package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.js +1 -6
- package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.mjs +2 -4
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.js +1 -39
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.mjs +22 -18
- package/reactjs/components/TokenSelector/components/SelectContainer.js +1 -40
- package/reactjs/components/TokenSelector/components/SelectContainer.mjs +36 -38
- package/reactjs/components/TokenSelector/components/SelectContent.js +1 -136
- package/reactjs/components/TokenSelector/components/SelectContent.mjs +79 -103
- package/reactjs/components/TokenSelector/components/SelectedOption.js +1 -28
- package/reactjs/components/TokenSelector/components/SelectedOption.mjs +22 -24
- package/reactjs/components/TokenSelector/components/TokenIcon.js +1 -81
- package/reactjs/components/TokenSelector/components/TokenIcon.mjs +52 -57
- package/reactjs/components/TokenSelector/components/TokenItem.js +1 -80
- package/reactjs/components/TokenSelector/components/TokenItem.mjs +41 -54
- package/reactjs/components/TokenSelector/components/TokenList.js +1 -23
- package/reactjs/components/TokenSelector/components/TokenList.mjs +19 -21
- package/reactjs/components/TokenSelector/components/TokenSymbol.js +1 -25
- package/reactjs/components/TokenSelector/components/TokenSymbol.mjs +14 -15
- package/reactjs/components/TokenSelector/index.js +1 -4
- package/reactjs/components/TokenSelector/index.mjs +2 -2
- package/reactjs/components/TransactionToast/TransactionToast.js +1 -53
- package/reactjs/components/TransactionToast/TransactionToast.mjs +27 -28
- package/reactjs/components/TransactionToast/TransactionToastContainer.js +1 -20
- package/reactjs/components/TransactionToast/TransactionToastContainer.mjs +16 -18
- package/reactjs/components/TransactionToast/index.js +1 -6
- package/reactjs/components/TransactionToast/index.mjs +4 -4
- package/reactjs/components/TrimAddress/TrimAddress.js +1 -27
- package/reactjs/components/TrimAddress/TrimAddress.mjs +19 -24
- package/reactjs/components/TrimAddress/index.js +1 -4
- package/reactjs/components/TrimAddress/index.mjs +2 -2
- package/reactjs/components/base/MxButton/MxButton.js +1 -71
- package/reactjs/components/base/MxButton/MxButton.mjs +46 -46
- package/reactjs/components/base/MxButton/index.js +1 -4
- package/reactjs/components/base/MxButton/index.mjs +2 -2
- package/reactjs/components/base/MxCard/MxCard.js +1 -54
- package/reactjs/components/base/MxCard/MxCard.mjs +34 -34
- package/reactjs/components/base/MxCard/index.js +1 -4
- package/reactjs/components/base/MxCard/index.mjs +2 -2
- package/reactjs/components/base/MxCircleLoader/MxCircleLoader.js +1 -28
- package/reactjs/components/base/MxCircleLoader/MxCircleLoader.mjs +24 -26
- package/reactjs/components/base/MxCircleLoader/index.js +1 -4
- package/reactjs/components/base/MxCircleLoader/index.mjs +2 -2
- package/reactjs/components/base/MxLink/MxLink.js +1 -70
- package/reactjs/components/base/MxLink/MxLink.mjs +44 -46
- package/reactjs/components/base/MxLink/index.js +1 -4
- package/reactjs/components/base/MxLink/index.mjs +2 -2
- package/reactjs/components/base/MxSearch/MxSearch.js +1 -69
- package/reactjs/components/base/MxSearch/MxSearch.mjs +37 -41
- package/reactjs/components/base/MxSearch/index.js +1 -4
- package/reactjs/components/base/MxSearch/index.mjs +2 -2
- package/reactjs/components/base/MxSlideover/MxSlideover.js +1 -78
- package/reactjs/components/base/MxSlideover/MxSlideover.mjs +72 -74
- package/reactjs/components/base/MxSlideover/index.js +1 -4
- package/reactjs/components/base/MxSlideover/index.mjs +2 -2
- package/reactjs/components/base/MxTooltip/MxTooltip.js +1 -163
- package/reactjs/components/base/MxTooltip/MxTooltip.mjs +92 -135
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.js +1 -33
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.mjs +29 -31
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.js +1 -4
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.mjs +2 -2
- package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.js +1 -27
- package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.mjs +23 -25
- package/reactjs/components/base/MxTooltip/components/TooltipContent/index.js +1 -4
- package/reactjs/components/base/MxTooltip/components/TooltipContent/index.mjs +2 -2
- package/reactjs/components/base/MxTooltip/components/index.js +1 -6
- package/reactjs/components/base/MxTooltip/components/index.mjs +4 -4
- package/reactjs/components/base/MxTooltip/index.js +1 -4
- package/reactjs/components/base/MxTooltip/index.mjs +2 -2
- package/reactjs/components/base/index.js +1 -14
- package/reactjs/components/base/index.mjs +12 -12
- package/reactjs/components/index.js +1 -54
- package/reactjs/components/index.mjs +52 -52
- package/reactjs/constants/chains.js +1 -54
- package/reactjs/constants/chains.mjs +33 -52
- package/reactjs/constants/index.js +1 -13
- package/reactjs/constants/index.mjs +9 -10
- package/reactjs/context/Web3AppProvider.js +1 -40
- package/reactjs/context/Web3AppProvider.mjs +34 -34
- package/reactjs/context/queryClient.js +1 -11
- package/reactjs/context/queryClient.mjs +5 -8
- package/reactjs/context/useWeb3App.js +1 -12
- package/reactjs/context/useWeb3App.mjs +7 -8
- package/reactjs/helpers/index.js +1 -6
- package/reactjs/helpers/index.mjs +4 -4
- package/reactjs/helpers/resolveBridgeApiChainId.js +1 -40
- package/reactjs/helpers/resolveBridgeApiChainId.mjs +21 -34
- package/reactjs/hooks/index.js +1 -35
- package/reactjs/hooks/index.mjs +33 -33
- package/reactjs/hooks/tests/useGenericSignMessage.spec.d.ts +1 -0
- package/reactjs/hooks/tests/useGenericSignMessage.spec.js +2 -0
- package/reactjs/hooks/tests/useGenericSignMessage.spec.mjs +52 -0
- package/reactjs/hooks/tests/useSignTransaction.spec.d.ts +1 -0
- package/reactjs/hooks/tests/useSignTransaction.spec.js +2 -0
- package/reactjs/hooks/tests/useSignTransaction.spec.mjs +156 -0
- package/reactjs/hooks/useAccount.js +1 -13
- package/reactjs/hooks/useAccount.mjs +7 -8
- package/reactjs/hooks/useBalances.js +1 -53
- package/reactjs/hooks/useBalances.mjs +28 -40
- package/reactjs/hooks/useBridgeApiChainId.js +1 -13
- package/reactjs/hooks/useBridgeApiChainId.mjs +9 -9
- package/reactjs/hooks/useBridgeFormik.js +1 -162
- package/reactjs/hooks/useBridgeFormik.mjs +110 -150
- package/reactjs/hooks/useDebounce.js +1 -13
- package/reactjs/hooks/useDebounce.mjs +8 -10
- package/reactjs/hooks/useFetchBridgeData.js +1 -45
- package/reactjs/hooks/useFetchBridgeData.mjs +37 -38
- package/reactjs/hooks/useFetchTokens.js +1 -113
- package/reactjs/hooks/useFetchTokens.mjs +80 -106
- package/reactjs/hooks/useGenericSignMessage.js +1 -55
- package/reactjs/hooks/useGenericSignMessage.mjs +47 -47
- package/reactjs/hooks/useGetChainId.js +1 -11
- package/reactjs/hooks/useGetChainId.mjs +7 -8
- package/reactjs/hooks/useResolveTokenChain.js +1 -20
- package/reactjs/hooks/useResolveTokenChain.mjs +11 -14
- package/reactjs/hooks/useSendTransactions.js +1 -25
- package/reactjs/hooks/useSendTransactions.mjs +19 -23
- package/reactjs/hooks/useSignTransaction.js +1 -86
- package/reactjs/hooks/useSignTransaction.mjs +59 -59
- package/reactjs/hooks/useSuiConnect.js +1 -86
- package/reactjs/hooks/useSuiConnect.mjs +52 -70
- package/reactjs/hooks/validation/index.js +1 -10
- package/reactjs/hooks/validation/index.mjs +8 -8
- package/reactjs/hooks/validation/useAmountSchema.js +1 -32
- package/reactjs/hooks/validation/useAmountSchema.mjs +8 -11
- package/reactjs/hooks/validation/useSecondAmountSchema.js +1 -26
- package/reactjs/hooks/validation/useSecondAmountSchema.mjs +5 -6
- package/reactjs/hooks/validation/useTestHasEnoughFunds.js +1 -37
- package/reactjs/hooks/validation/useTestHasEnoughFunds.mjs +20 -29
- package/reactjs/hooks/validation/useTestIsConnected.js +1 -27
- package/reactjs/hooks/validation/useTestIsConnected.mjs +13 -19
- package/reactjs/index.js +1 -190
- package/reactjs/index.mjs +154 -154
- package/reactjs/init/index.js +1 -5
- package/reactjs/init/index.mjs +3 -3
- package/reactjs/init/init.d.ts +1 -0
- package/reactjs/init/init.js +1 -139
- package/reactjs/init/init.mjs +59 -72
- package/reactjs/queries/index.js +1 -17
- package/reactjs/queries/index.mjs +15 -15
- package/reactjs/queries/useCheckAccount.query.js +1 -39
- package/reactjs/queries/useCheckAccount.query.mjs +29 -33
- package/reactjs/queries/useGetAllTokens.query.js +1 -35
- package/reactjs/queries/useGetAllTokens.query.mjs +26 -30
- package/reactjs/queries/useGetChains.query.js +1 -34
- package/reactjs/queries/useGetChains.query.mjs +26 -28
- package/reactjs/queries/useGetHistory.query.d.ts +1 -1
- package/reactjs/queries/useGetHistory.query.js +1 -68
- package/reactjs/queries/useGetHistory.query.mjs +55 -58
- package/reactjs/queries/useGetMvxTokensBalances.query.d.ts +1 -1
- package/reactjs/queries/useGetMvxTokensBalances.query.js +1 -71
- package/reactjs/queries/useGetMvxTokensBalances.query.mjs +40 -53
- package/reactjs/queries/useGetNonMvxTokensBalances.query.d.ts +1 -1
- package/reactjs/queries/useGetNonMvxTokensBalances.query.js +1 -81
- package/reactjs/queries/useGetNonMvxTokensBalances.query.mjs +51 -59
- package/reactjs/queries/useGetRate.mutation.js +1 -18
- package/reactjs/queries/useGetRate.mutation.mjs +12 -15
- package/reactjs/reexports.js +1 -48
- package/reactjs/reexports.mjs +13 -13
- package/reactjs/utils/delay.js +1 -6
- package/reactjs/utils/delay.mjs +3 -3
- package/reactjs/utils/formatAmount.js +1 -23
- package/reactjs/utils/formatAmount.mjs +16 -17
- package/reactjs/utils/getCleanStringAmount.js +1 -11
- package/reactjs/utils/getCleanStringAmount.mjs +6 -8
- package/reactjs/utils/getCompletePathname.js +1 -5
- package/reactjs/utils/getCompletePathname.mjs +3 -3
- package/reactjs/utils/getInitialTokens.js +1 -12
- package/reactjs/utils/getInitialTokens.mjs +6 -7
- package/reactjs/utils/hasEnoughFunds.js +1 -19
- package/reactjs/utils/hasEnoughFunds.mjs +11 -14
- package/reactjs/utils/index.js +1 -26
- package/reactjs/utils/index.mjs +24 -24
- package/reactjs/utils/isStringFloat.js +1 -21
- package/reactjs/utils/isStringFloat.mjs +11 -18
- package/reactjs/utils/mxClsx.js +1 -8
- package/reactjs/utils/mxClsx.mjs +4 -6
- package/reactjs/utils/pipe.js +1 -25
- package/reactjs/utils/pipe.mjs +13 -17
- package/reactjs/utils/removeCommas.js +1 -6
- package/reactjs/utils/removeCommas.mjs +2 -4
- package/reactjs/utils/roundAmount.js +1 -40
- package/reactjs/utils/roundAmount.mjs +16 -36
- package/reactjs/utils/testNumber.js +1 -4
- package/reactjs/utils/testNumber.mjs +2 -2
- package/store/inMemoryStore.js +1 -39
- package/store/inMemoryStore.mjs +17 -21
- package/style.css +1 -2274
- package/types/chainType.js +1 -11
- package/types/chainType.mjs +2 -9
- package/types/errors.d.ts +3 -0
- package/types/errors.js +2 -0
- package/types/errors.mjs +8 -0
- package/types/providerType.js +1 -9
- package/types/providerType.mjs +2 -7
- package/types/transaction.d.ts +2 -0
- package/all-networks-EJIVYZ_i.mjs +0 -4
- package/all-networks-NYACMyeN.js +0 -4
- package/default-BYtXv70Z.mjs +0 -4
- package/default-H3AbmzFV.js +0 -4
- package/reactjs/hooks/useSignTransaction.d.ts +0 -511
|
@@ -1,80 +1,67 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useAppKitNetwork } from "@reown/appkit/react";
|
|
3
|
-
import { useMemo, useCallback } from "react";
|
|
4
|
-
import { TokenIcon } from "./TokenIcon.mjs";
|
|
5
|
-
import { ChainType } from "../../../../types/chainType.mjs";
|
|
6
|
-
import { useWeb3App } from "../../../context/useWeb3App.mjs";
|
|
7
|
-
import { useGetChainId } from "../../../hooks/useGetChainId.mjs";
|
|
8
|
-
import { useResolveTokenChain } from "../../../hooks/useResolveTokenChain.mjs";
|
|
9
|
-
const
|
|
10
|
-
token,
|
|
11
|
-
onClick,
|
|
12
|
-
selected
|
|
1
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { useAppKitNetwork as u } from "@reown/appkit/react";
|
|
3
|
+
import { useMemo as g, useCallback as b } from "react";
|
|
4
|
+
import { TokenIcon as x } from "./TokenIcon.mjs";
|
|
5
|
+
import { ChainType as N } from "../../../../types/chainType.mjs";
|
|
6
|
+
import { useWeb3App as v } from "../../../context/useWeb3App.mjs";
|
|
7
|
+
import { useGetChainId as w } from "../../../hooks/useGetChainId.mjs";
|
|
8
|
+
import { useResolveTokenChain as y } from "../../../hooks/useResolveTokenChain.mjs";
|
|
9
|
+
const G = ({
|
|
10
|
+
token: e,
|
|
11
|
+
onClick: a,
|
|
12
|
+
selected: p
|
|
13
13
|
}) => {
|
|
14
|
-
var
|
|
15
|
-
const { tokenChain, chainIcon } =
|
|
16
|
-
token
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
var o, d;
|
|
15
|
+
const { tokenChain: i, chainIcon: m } = y({
|
|
16
|
+
token: e
|
|
17
|
+
}), { supportedChains: l } = v(), { switchNetwork: q } = u(), s = w(), r = g(() => l == null ? void 0 : l.find(
|
|
18
|
+
(c) => c.id.toString() === (s == null ? void 0 : s.toString())
|
|
19
|
+
), [s, l]), f = b(() => {
|
|
20
|
+
(i == null ? void 0 : i.chainType) === N.evm && r && i != null && i.chainId && (r == null ? void 0 : r.id.toString()) !== (i == null ? void 0 : i.chainId.toString()) && q(
|
|
21
|
+
(l == null ? void 0 : l.find(
|
|
22
|
+
(c) => c.id.toString() === (i == null ? void 0 : i.chainId.toString())
|
|
23
|
+
)) ?? r
|
|
24
24
|
);
|
|
25
|
-
}, [chainId, sdkChains]);
|
|
26
|
-
const handleSwitchChain = useCallback(() => {
|
|
27
|
-
if ((tokenChain == null ? void 0 : tokenChain.chainType) !== ChainType.evm) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
if (activeChain && (tokenChain == null ? void 0 : tokenChain.chainId) && (activeChain == null ? void 0 : activeChain.id.toString()) !== (tokenChain == null ? void 0 : tokenChain.chainId.toString())) {
|
|
31
|
-
switchNetwork(
|
|
32
|
-
(sdkChains == null ? void 0 : sdkChains.find(
|
|
33
|
-
(chain) => chain.id.toString() === (tokenChain == null ? void 0 : tokenChain.chainId.toString())
|
|
34
|
-
)) ?? activeChain
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
25
|
}, [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
26
|
+
r,
|
|
27
|
+
l,
|
|
28
|
+
q,
|
|
29
|
+
i == null ? void 0 : i.chainId,
|
|
30
|
+
i == null ? void 0 : i.chainType
|
|
43
31
|
]);
|
|
44
|
-
return /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ t(
|
|
45
33
|
"div",
|
|
46
34
|
{
|
|
47
|
-
"data-testid": `token-item-${(
|
|
48
|
-
className: `token-item ${
|
|
35
|
+
"data-testid": `token-item-${(d = (o = e.symbol) == null ? void 0 : o.toLowerCase) == null ? void 0 : d.call(o)}`,
|
|
36
|
+
className: `token-item ${p ? "liq-selected" : ""} liq-flex liq-cursor-pointer liq-items-center liq-justify-between liq-rounded-lg liq-p-2 hover:liq-bg-neutral-700 liq-bg-neutral-850`,
|
|
49
37
|
onClick: () => {
|
|
50
|
-
|
|
51
|
-
onClick(token);
|
|
38
|
+
f(), a(e);
|
|
52
39
|
},
|
|
53
|
-
children: /* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
40
|
+
children: /* @__PURE__ */ n("div", { className: "liq-flex liq-w-full liq-items-center liq-relative", children: [
|
|
41
|
+
/* @__PURE__ */ t(
|
|
42
|
+
x,
|
|
56
43
|
{
|
|
57
44
|
size: "lg",
|
|
58
|
-
token,
|
|
45
|
+
token: e,
|
|
59
46
|
className: "liq-flex liq-items-center liq-justify-center"
|
|
60
47
|
}
|
|
61
48
|
),
|
|
62
|
-
|
|
49
|
+
m && /* @__PURE__ */ t(
|
|
63
50
|
"img",
|
|
64
51
|
{
|
|
65
|
-
src:
|
|
52
|
+
src: m,
|
|
66
53
|
alt: "",
|
|
67
54
|
className: "liq-absolute liq-left-4 liq-bottom-[-2px] liq-chain-icon liq-sm liq-w-6 liq-h-6 liq-border-[3px] liq-border-neutral-850 liq-rounded-lg"
|
|
68
55
|
}
|
|
69
56
|
),
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ n("div", { className: "liq-ml-2", children: [
|
|
58
|
+
/* @__PURE__ */ t("div", { className: "liq-text-sm liq-font-bold", children: e.symbol }),
|
|
59
|
+
/* @__PURE__ */ t("div", { className: "liq-text-xs liq-text-gray-400", children: e.name })
|
|
73
60
|
] })
|
|
74
61
|
] })
|
|
75
62
|
}
|
|
76
63
|
);
|
|
77
64
|
};
|
|
78
65
|
export {
|
|
79
|
-
TokenItem
|
|
66
|
+
G as TokenItem
|
|
80
67
|
};
|
|
@@ -1,24 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
-
const reactjs_components_TokenSelector_components_TokenItem = require("./TokenItem.js");
|
|
6
|
-
const TokenList = ({
|
|
7
|
-
tokens,
|
|
8
|
-
onSelect,
|
|
9
|
-
selectedToken
|
|
10
|
-
}) => {
|
|
11
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "token-list liq-flex liq-flex-col liq-gap-1", children: tokens.map((token) => {
|
|
12
|
-
var _a;
|
|
13
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14
|
-
reactjs_components_TokenSelector_components_TokenItem.TokenItem,
|
|
15
|
-
{
|
|
16
|
-
token,
|
|
17
|
-
onClick: onSelect,
|
|
18
|
-
selected: ((_a = selectedToken == null ? void 0 : selectedToken.address) == null ? void 0 : _a.toLowerCase()) === token.address.toLowerCase()
|
|
19
|
-
},
|
|
20
|
-
`${token.address}-${token.chainId}`
|
|
21
|
-
);
|
|
22
|
-
}) });
|
|
23
|
-
};
|
|
24
|
-
exports.TokenList = TokenList;
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("./TokenItem.js"),a=({tokens:i,onSelect:t,selectedToken:s})=>o.jsx("div",{className:"token-list liq-flex liq-flex-col liq-gap-1",children:i.map(e=>{var r;return o.jsx(n.TokenItem,{token:e,onClick:t,selected:((r=s==null?void 0:s.address)==null?void 0:r.toLowerCase())===e.address.toLowerCase()},`${e.address}-${e.chainId}`)})});exports.TokenList=a;
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { TokenItem } from "./TokenItem.mjs";
|
|
3
|
-
const
|
|
4
|
-
tokens,
|
|
5
|
-
onSelect,
|
|
6
|
-
selectedToken
|
|
7
|
-
}) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}) });
|
|
20
|
-
};
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { TokenItem as m } from "./TokenItem.mjs";
|
|
3
|
+
const t = ({
|
|
4
|
+
tokens: o,
|
|
5
|
+
onSelect: l,
|
|
6
|
+
selectedToken: i
|
|
7
|
+
}) => /* @__PURE__ */ a("div", { className: "token-list liq-flex liq-flex-col liq-gap-1", children: o.map((r) => {
|
|
8
|
+
var s;
|
|
9
|
+
return /* @__PURE__ */ a(
|
|
10
|
+
m,
|
|
11
|
+
{
|
|
12
|
+
token: r,
|
|
13
|
+
onClick: l,
|
|
14
|
+
selected: ((s = i == null ? void 0 : i.address) == null ? void 0 : s.toLowerCase()) === r.address.toLowerCase()
|
|
15
|
+
},
|
|
16
|
+
`${r.address}-${r.chainId}`
|
|
17
|
+
);
|
|
18
|
+
}) });
|
|
21
19
|
export {
|
|
22
|
-
TokenList
|
|
20
|
+
t as TokenList
|
|
23
21
|
};
|
|
@@ -1,26 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
-
const reactjs_utils_mxClsx = require("../../../utils/mxClsx.js");
|
|
6
|
-
const TokenSymbol = ({
|
|
7
|
-
token,
|
|
8
|
-
className = "",
|
|
9
|
-
wrapperClassName = ""
|
|
10
|
-
}) => {
|
|
11
|
-
if (!token) {
|
|
12
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "..." });
|
|
13
|
-
}
|
|
14
|
-
const { symbol } = token;
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16
|
-
"div",
|
|
17
|
-
{
|
|
18
|
-
className: reactjs_utils_mxClsx.mxClsx(
|
|
19
|
-
"liq-flex liq-items-center liq-gap-2",
|
|
20
|
-
wrapperClassName
|
|
21
|
-
),
|
|
22
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className, children: symbol })
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
};
|
|
26
|
-
exports.TokenSymbol = TokenSymbol;
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../../utils/mxClsx.js"),t=({token:s,className:n="",wrapperClassName:r=""})=>{if(!s)return e.jsx(e.Fragment,{children:"..."});const{symbol:i}=s;return e.jsx("div",{className:l.mxClsx("liq-flex liq-items-center liq-gap-2",r),children:e.jsx("span",{className:n,children:i})})};exports.TokenSymbol=t;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { mxClsx } from "../../../utils/mxClsx.mjs";
|
|
3
|
-
const
|
|
4
|
-
token,
|
|
5
|
-
className = "",
|
|
6
|
-
wrapperClassName = ""
|
|
1
|
+
import { jsx as r, Fragment as n } from "react/jsx-runtime";
|
|
2
|
+
import { mxClsx as o } from "../../../utils/mxClsx.mjs";
|
|
3
|
+
const c = ({
|
|
4
|
+
token: e,
|
|
5
|
+
className: i = "",
|
|
6
|
+
wrapperClassName: l = ""
|
|
7
7
|
}) => {
|
|
8
|
-
if (!
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return /* @__PURE__ */ jsx(
|
|
8
|
+
if (!e)
|
|
9
|
+
return /* @__PURE__ */ r(n, { children: "..." });
|
|
10
|
+
const { symbol: m } = e;
|
|
11
|
+
return /* @__PURE__ */ r(
|
|
13
12
|
"div",
|
|
14
13
|
{
|
|
15
|
-
className:
|
|
14
|
+
className: o(
|
|
16
15
|
"liq-flex liq-items-center liq-gap-2",
|
|
17
|
-
|
|
16
|
+
l
|
|
18
17
|
),
|
|
19
|
-
children: /* @__PURE__ */
|
|
18
|
+
children: /* @__PURE__ */ r("span", { className: i, children: m })
|
|
20
19
|
}
|
|
21
20
|
);
|
|
22
21
|
};
|
|
23
22
|
export {
|
|
24
|
-
TokenSymbol
|
|
23
|
+
c as TokenSymbol
|
|
25
24
|
};
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const reactjs_components_TokenSelector_TokenSelector = require("./TokenSelector.js");
|
|
5
|
-
exports.TokenSelector = reactjs_components_TokenSelector_TokenSelector.TokenSelector;
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TokenSelector.js");exports.TokenSelector=e.TokenSelector;
|
|
@@ -1,54 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
-
const faArrowUpRightFromSquare = require("@fortawesome/free-solid-svg-icons/faArrowUpRightFromSquare");
|
|
6
|
-
const reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
7
|
-
const reactjs_context_useWeb3App = require("../../context/useWeb3App.js");
|
|
8
|
-
const reactjs_components_CopyButton_CopyButton = require("../CopyButton/CopyButton.js");
|
|
9
|
-
const TransactionToast = ({
|
|
10
|
-
data,
|
|
11
|
-
TrimAddressComponent
|
|
12
|
-
}) => {
|
|
13
|
-
const hashes = data.hashes;
|
|
14
|
-
const { options } = reactjs_context_useWeb3App.useWeb3App();
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "liq-flex liq-flex-col liq-gap-2", children: [
|
|
16
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "liq-text-sm liq-font-semibold liq-text-zinc-300", children: "Transactions sent" }),
|
|
17
|
-
hashes.map((hash) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "liq-flex liq-w-full", children: [
|
|
18
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "liq-m-w-[11rem] liq-mr-1 liq-whitespace-nowrap", children: [
|
|
19
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "liq-mb-1" }),
|
|
20
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21
|
-
TrimAddressComponent,
|
|
22
|
-
{
|
|
23
|
-
className: "liq-flex liq-items-center liq-justify-center liq-text-sm",
|
|
24
|
-
text: hash
|
|
25
|
-
}
|
|
26
|
-
)
|
|
27
|
-
] }),
|
|
28
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29
|
-
reactjs_components_CopyButton_CopyButton.CopyButton,
|
|
30
|
-
{
|
|
31
|
-
text: hash,
|
|
32
|
-
className: "liq-flex liq-items-center liq-justify-center liq-text-neutral-200"
|
|
33
|
-
}
|
|
34
|
-
),
|
|
35
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36
|
-
"a",
|
|
37
|
-
{
|
|
38
|
-
href: `${options.bridgeURL}/status/${hash}`,
|
|
39
|
-
target: "_blank",
|
|
40
|
-
className: "liq-ml-auto liq-mr-0 liq-flex liq-items-center",
|
|
41
|
-
rel: "noreferrer",
|
|
42
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
43
|
-
reactFontawesome.FontAwesomeIcon,
|
|
44
|
-
{
|
|
45
|
-
icon: faArrowUpRightFromSquare.faArrowUpRightFromSquare,
|
|
46
|
-
className: "liq-color-neutral-500"
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
] }, hash))
|
|
52
|
-
] });
|
|
53
|
-
};
|
|
54
|
-
exports.TransactionToast = TransactionToast;
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("@fortawesome/free-solid-svg-icons/faArrowUpRightFromSquare"),a=require("@fortawesome/react-fontawesome"),o=require("../../context/useWeb3App.js"),c=require("../CopyButton/CopyButton.js"),q=({data:t,TrimAddressComponent:i})=>{const l=t.hashes,{options:r}=o.useWeb3App();return e.jsxs("div",{className:"liq-flex liq-flex-col liq-gap-2",children:[e.jsx("h3",{className:"liq-text-sm liq-font-semibold liq-text-zinc-300",children:"Transactions sent"}),l.map(s=>e.jsxs("div",{className:"liq-flex liq-w-full",children:[e.jsxs("span",{className:"liq-m-w-[11rem] liq-mr-1 liq-whitespace-nowrap",children:[e.jsx("div",{className:"liq-mb-1"}),e.jsx(i,{className:"liq-flex liq-items-center liq-justify-center liq-text-sm",text:s})]}),e.jsx(c.CopyButton,{text:s,className:"liq-flex liq-items-center liq-justify-center liq-text-neutral-200"}),e.jsx("a",{href:`${r.bridgeURL}/status/${s}`,target:"_blank",className:"liq-ml-auto liq-mr-0 liq-flex liq-items-center",rel:"noreferrer",children:e.jsx(a.FontAwesomeIcon,{icon:n.faArrowUpRightFromSquare,className:"liq-color-neutral-500"})})]},s))]})};exports.TransactionToast=q;
|
|
@@ -1,53 +1,52 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { faArrowUpRightFromSquare } from "@fortawesome/free-solid-svg-icons/faArrowUpRightFromSquare";
|
|
3
|
-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
-
import { useWeb3App } from "../../context/useWeb3App.mjs";
|
|
5
|
-
import { CopyButton } from "../CopyButton/CopyButton.mjs";
|
|
6
|
-
const
|
|
7
|
-
data,
|
|
8
|
-
TrimAddressComponent
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { faArrowUpRightFromSquare as o } from "@fortawesome/free-solid-svg-icons/faArrowUpRightFromSquare";
|
|
3
|
+
import { FontAwesomeIcon as m } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { useWeb3App as n } from "../../context/useWeb3App.mjs";
|
|
5
|
+
import { CopyButton as c } from "../CopyButton/CopyButton.mjs";
|
|
6
|
+
const d = ({
|
|
7
|
+
data: t,
|
|
8
|
+
TrimAddressComponent: s
|
|
9
9
|
}) => {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
|
|
18
|
-
TrimAddressComponent,
|
|
10
|
+
const r = t.hashes, { options: a } = n();
|
|
11
|
+
return /* @__PURE__ */ i("div", { className: "liq-flex liq-flex-col liq-gap-2", children: [
|
|
12
|
+
/* @__PURE__ */ e("h3", { className: "liq-text-sm liq-font-semibold liq-text-zinc-300", children: "Transactions sent" }),
|
|
13
|
+
r.map((l) => /* @__PURE__ */ i("div", { className: "liq-flex liq-w-full", children: [
|
|
14
|
+
/* @__PURE__ */ i("span", { className: "liq-m-w-[11rem] liq-mr-1 liq-whitespace-nowrap", children: [
|
|
15
|
+
/* @__PURE__ */ e("div", { className: "liq-mb-1" }),
|
|
16
|
+
/* @__PURE__ */ e(
|
|
17
|
+
s,
|
|
19
18
|
{
|
|
20
19
|
className: "liq-flex liq-items-center liq-justify-center liq-text-sm",
|
|
21
|
-
text:
|
|
20
|
+
text: l
|
|
22
21
|
}
|
|
23
22
|
)
|
|
24
23
|
] }),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
24
|
+
/* @__PURE__ */ e(
|
|
25
|
+
c,
|
|
27
26
|
{
|
|
28
|
-
text:
|
|
27
|
+
text: l,
|
|
29
28
|
className: "liq-flex liq-items-center liq-justify-center liq-text-neutral-200"
|
|
30
29
|
}
|
|
31
30
|
),
|
|
32
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ e(
|
|
33
32
|
"a",
|
|
34
33
|
{
|
|
35
|
-
href: `${
|
|
34
|
+
href: `${a.bridgeURL}/status/${l}`,
|
|
36
35
|
target: "_blank",
|
|
37
36
|
className: "liq-ml-auto liq-mr-0 liq-flex liq-items-center",
|
|
38
37
|
rel: "noreferrer",
|
|
39
|
-
children: /* @__PURE__ */
|
|
40
|
-
|
|
38
|
+
children: /* @__PURE__ */ e(
|
|
39
|
+
m,
|
|
41
40
|
{
|
|
42
|
-
icon:
|
|
41
|
+
icon: o,
|
|
43
42
|
className: "liq-color-neutral-500"
|
|
44
43
|
}
|
|
45
44
|
)
|
|
46
45
|
}
|
|
47
46
|
)
|
|
48
|
-
] },
|
|
47
|
+
] }, l))
|
|
49
48
|
] });
|
|
50
49
|
};
|
|
51
50
|
export {
|
|
52
|
-
TransactionToast
|
|
51
|
+
d as TransactionToast
|
|
53
52
|
};
|
|
@@ -1,21 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
-
const reactToastify = require("react-toastify");
|
|
6
|
-
const TransactionToastContainer = (props) => {
|
|
7
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8
|
-
reactToastify.ToastContainer,
|
|
9
|
-
{
|
|
10
|
-
position: "top-right",
|
|
11
|
-
autoClose: 1e4,
|
|
12
|
-
hideProgressBar: true,
|
|
13
|
-
closeOnClick: false,
|
|
14
|
-
rtl: false,
|
|
15
|
-
draggable: false,
|
|
16
|
-
transition: reactToastify.Bounce,
|
|
17
|
-
...props
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
exports.TransactionToastContainer = TransactionToastContainer;
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),e=require("react-toastify"),n=t=>o.jsx(e.ToastContainer,{position:"top-right",autoClose:1e4,hideProgressBar:!0,closeOnClick:!1,rtl:!1,draggable:!1,transition:e.Bounce,...t});exports.TransactionToastContainer=n;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ToastContainer, Bounce } from "react-toastify";
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
);
|
|
17
|
-
};
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { ToastContainer as t, Bounce as e } from "react-toastify";
|
|
3
|
+
const n = (o) => /* @__PURE__ */ r(
|
|
4
|
+
t,
|
|
5
|
+
{
|
|
6
|
+
position: "top-right",
|
|
7
|
+
autoClose: 1e4,
|
|
8
|
+
hideProgressBar: !0,
|
|
9
|
+
closeOnClick: !1,
|
|
10
|
+
rtl: !1,
|
|
11
|
+
draggable: !1,
|
|
12
|
+
transition: e,
|
|
13
|
+
...o
|
|
14
|
+
}
|
|
15
|
+
);
|
|
18
16
|
export {
|
|
19
|
-
TransactionToastContainer
|
|
17
|
+
n as TransactionToastContainer
|
|
20
18
|
};
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const reactjs_components_TransactionToast_TransactionToastContainer = require("./TransactionToastContainer.js");
|
|
5
|
-
const reactjs_components_TransactionToast_TransactionToast = require("./TransactionToast.js");
|
|
6
|
-
exports.TransactionToastContainer = reactjs_components_TransactionToast_TransactionToastContainer.TransactionToastContainer;
|
|
7
|
-
exports.TransactionToast = reactjs_components_TransactionToast_TransactionToast.TransactionToast;
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./TransactionToastContainer.js"),a=require("./TransactionToast.js");exports.TransactionToastContainer=n.TransactionToastContainer;exports.TransactionToast=a.TransactionToast;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TransactionToastContainer } from "./TransactionToastContainer.mjs";
|
|
2
|
-
import { TransactionToast } from "./TransactionToast.mjs";
|
|
1
|
+
import { TransactionToastContainer as r } from "./TransactionToastContainer.mjs";
|
|
2
|
+
import { TransactionToast as n } from "./TransactionToast.mjs";
|
|
3
3
|
export {
|
|
4
|
-
TransactionToast,
|
|
5
|
-
TransactionToastContainer
|
|
4
|
+
n as TransactionToast,
|
|
5
|
+
r as TransactionToastContainer
|
|
6
6
|
};
|
|
@@ -1,28 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
-
const TrimAddress = ({
|
|
6
|
-
"data-testid": dataTestId,
|
|
7
|
-
address,
|
|
8
|
-
startLength = 4,
|
|
9
|
-
endLength = 5,
|
|
10
|
-
className = ""
|
|
11
|
-
}) => {
|
|
12
|
-
if (!address) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16
|
-
"div",
|
|
17
|
-
{
|
|
18
|
-
"data-testid": dataTestId,
|
|
19
|
-
className: `liq-truncate liq-text-left liq-text-neutral-100 liq-flex liq-gap-1 ${className}`,
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: address.slice(0, startLength) }),
|
|
22
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "..." }),
|
|
23
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: address.slice(-endLength) })
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
exports.TrimAddress = TrimAddress;
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=({"data-testid":i,address:t,startLength:l=4,endLength:n=5,className:s=""})=>t?e.jsxs("div",{"data-testid":i,className:`liq-truncate liq-text-left liq-text-neutral-100 liq-flex liq-gap-1 ${s}`,children:[e.jsx("span",{children:t.slice(0,l)}),e.jsx("span",{children:"..."}),e.jsx("span",{children:t.slice(-n)})]}):null;exports.TrimAddress=r;
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
const
|
|
3
|
-
"data-testid":
|
|
4
|
-
address,
|
|
5
|
-
startLength = 4,
|
|
6
|
-
endLength = 5,
|
|
7
|
-
className = ""
|
|
8
|
-
}) =>
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const c = ({
|
|
3
|
+
"data-testid": i,
|
|
4
|
+
address: t,
|
|
5
|
+
startLength: l = 4,
|
|
6
|
+
endLength: n = 5,
|
|
7
|
+
className: r = ""
|
|
8
|
+
}) => t ? /* @__PURE__ */ s(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
"data-testid": i,
|
|
12
|
+
className: `liq-truncate liq-text-left liq-text-neutral-100 liq-flex liq-gap-1 ${r}`,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ e("span", { children: t.slice(0, l) }),
|
|
15
|
+
/* @__PURE__ */ e("span", { children: "..." }),
|
|
16
|
+
/* @__PURE__ */ e("span", { children: t.slice(-n) })
|
|
17
|
+
]
|
|
11
18
|
}
|
|
12
|
-
|
|
13
|
-
"div",
|
|
14
|
-
{
|
|
15
|
-
"data-testid": dataTestId,
|
|
16
|
-
className: `liq-truncate liq-text-left liq-text-neutral-100 liq-flex liq-gap-1 ${className}`,
|
|
17
|
-
children: [
|
|
18
|
-
/* @__PURE__ */ jsx("span", { children: address.slice(0, startLength) }),
|
|
19
|
-
/* @__PURE__ */ jsx("span", { children: "..." }),
|
|
20
|
-
/* @__PURE__ */ jsx("span", { children: address.slice(-endLength) })
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
};
|
|
19
|
+
) : null;
|
|
25
20
|
export {
|
|
26
|
-
TrimAddress
|
|
21
|
+
c as TrimAddress
|
|
27
22
|
};
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const reactjs_components_TrimAddress_TrimAddress = require("./TrimAddress.js");
|
|
5
|
-
exports.TrimAddress = reactjs_components_TrimAddress_TrimAddress.TrimAddress;
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TrimAddress.js");exports.TrimAddress=e.TrimAddress;
|