@multiversx/sdk-dapp-liquidity 0.2.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/README.md +186 -0
- package/all-networks-EJIVYZ_i.mjs +4 -0
- package/all-networks-NYACMyeN.js +4 -0
- package/api/confirmRate.d.ts +11 -0
- package/api/confirmRate.js +30 -0
- package/api/confirmRate.mjs +29 -0
- package/api/getChains.d.ts +6 -0
- package/api/getChains.js +12 -0
- package/api/getChains.mjs +11 -0
- package/api/getRate.d.ts +10 -0
- package/api/getRate.js +28 -0
- package/api/getRate.mjs +27 -0
- package/api/getTokens.d.ts +7 -0
- package/api/getTokens.js +14 -0
- package/api/getTokens.mjs +13 -0
- package/api/getTokensBalances.d.ts +8 -0
- package/api/getTokensBalances.js +17 -0
- package/api/getTokensBalances.mjs +16 -0
- package/api/getTransactions.d.ts +7 -0
- package/api/getTransactions.js +14 -0
- package/api/getTransactions.mjs +13 -0
- package/api/index.d.ts +7 -0
- package/api/index.js +17 -0
- package/api/index.mjs +16 -0
- package/api/sendTransactions.d.ts +11 -0
- package/api/sendTransactions.js +29 -0
- package/api/sendTransactions.mjs +28 -0
- package/api/tests/confirmRate.spec.d.ts +1 -0
- package/api/tests/confirmRate.spec.js +124 -0
- package/api/tests/confirmRate.spec.mjs +122 -0
- package/api/tests/getChains.spec.d.ts +1 -0
- package/api/tests/getChains.spec.js +37 -0
- package/api/tests/getChains.spec.mjs +35 -0
- package/api/tests/getRate.spec.d.ts +1 -0
- package/api/tests/getRate.spec.js +83 -0
- package/api/tests/getRate.spec.mjs +81 -0
- package/api/tests/getTokens.spec.d.ts +1 -0
- package/api/tests/getTokens.spec.js +60 -0
- package/api/tests/getTokens.spec.mjs +58 -0
- package/api/tests/getTransactions.spec.d.ts +1 -0
- package/api/tests/getTransactions.spec.js +89 -0
- package/api/tests/getTransactions.spec.mjs +87 -0
- package/api/tests/sendTransactions.spec.d.ts +1 -0
- package/api/tests/sendTransactions.spec.js +83 -0
- package/api/tests/sendTransactions.spec.mjs +81 -0
- package/bignumber-B8vjg9qn.js +1334 -0
- package/bignumber-CKZkoo0g.mjs +1334 -0
- package/constants/index.d.ts +1 -0
- package/constants/index.js +5 -0
- package/constants/index.mjs +4 -0
- package/default-BYtXv70Z.mjs +4 -0
- package/default-H3AbmzFV.js +4 -0
- package/dto/Chain.dto.d.ts +16 -0
- package/dto/Chain.dto.js +2 -0
- package/dto/Chain.dto.mjs +1 -0
- package/dto/ConfirmRate.dto.d.ts +11 -0
- package/dto/ConfirmRate.dto.js +2 -0
- package/dto/ConfirmRate.dto.mjs +1 -0
- package/dto/Token.dto.d.ts +14 -0
- package/dto/Token.dto.js +2 -0
- package/dto/Token.dto.mjs +1 -0
- package/dto/TokenBalance.dto.d.ts +4 -0
- package/dto/TokenBalance.dto.js +2 -0
- package/dto/TokenBalance.dto.mjs +1 -0
- package/dto/Transaction.dto.d.ts +14 -0
- package/dto/Transaction.dto.js +2 -0
- package/dto/Transaction.dto.mjs +1 -0
- package/dto/index.d.ts +5 -0
- package/dto/index.js +2 -0
- package/dto/index.mjs +1 -0
- package/helpers/base64Utils.d.ts +3 -0
- package/helpers/base64Utils.js +32 -0
- package/helpers/base64Utils.mjs +31 -0
- package/helpers/decodeLoginToken.d.ts +9 -0
- package/helpers/decodeLoginToken.js +28 -0
- package/helpers/decodeLoginToken.mjs +27 -0
- package/helpers/decodeToken.d.ts +11 -0
- package/helpers/decodeToken.js +40 -0
- package/helpers/decodeToken.mjs +39 -0
- package/helpers/getApiURL.d.ts +1 -0
- package/helpers/getApiURL.js +8 -0
- package/helpers/getApiURL.mjs +7 -0
- package/helpers/getBridgeURL.d.ts +1 -0
- package/helpers/getBridgeURL.js +8 -0
- package/helpers/getBridgeURL.mjs +7 -0
- package/helpers/getMvxApiURL.d.ts +1 -0
- package/helpers/getMvxApiURL.js +8 -0
- package/helpers/getMvxApiURL.mjs +7 -0
- package/helpers/getMvxChainId.d.ts +1 -0
- package/helpers/getMvxChainId.js +8 -0
- package/helpers/getMvxChainId.mjs +7 -0
- package/helpers/getMvxExplorerAddress.d.ts +1 -0
- package/helpers/getMvxExplorerAddress.js +8 -0
- package/helpers/getMvxExplorerAddress.mjs +7 -0
- package/helpers/index.d.ts +9 -0
- package/helpers/index.js +23 -0
- package/helpers/index.mjs +22 -0
- package/helpers/serializeTransaction.d.ts +3 -0
- package/helpers/serializeTransaction.js +9 -0
- package/helpers/serializeTransaction.mjs +8 -0
- package/helpers/tests/base64Utils.spec.d.ts +1 -0
- package/helpers/tests/base64Utils.spec.js +30 -0
- package/helpers/tests/base64Utils.spec.mjs +28 -0
- package/helpers/tests/decodeLoginToken.spec.d.ts +1 -0
- package/helpers/tests/decodeLoginToken.spec.js +35 -0
- package/helpers/tests/decodeLoginToken.spec.mjs +33 -0
- package/helpers/tests/decodeToken.spec.d.ts +1 -0
- package/helpers/tests/decodeToken.spec.js +28 -0
- package/helpers/tests/decodeToken.spec.mjs +26 -0
- package/index-B9WqxUXM.mjs +91 -0
- package/index-BXwpbIDQ.mjs +107 -0
- package/index-CnudU77V.js +329 -0
- package/index-DSnomXRI.mjs +68025 -0
- package/index-DZHiA1sX.js +107 -0
- package/index-cvy2-uZ_.js +67946 -0
- package/index.d.ts +6 -0
- package/index.js +189 -0
- package/index.mjs +185 -0
- package/package.json +107 -0
- package/react-B9sQBOh0.mjs +3040 -0
- package/react-BaXyw3AO.js +3040 -0
- package/react-CNXJSTCv.js +38 -0
- package/react-CSQpf1zk.mjs +38 -0
- package/reactjs/components/AccountAddress/AccountAddress.d.ts +6 -0
- package/reactjs/components/AccountAddress/AccountAddress.js +25 -0
- package/reactjs/components/AccountAddress/AccountAddress.mjs +24 -0
- package/reactjs/components/AccountAddress/index.d.ts +1 -0
- package/reactjs/components/AccountAddress/index.js +5 -0
- package/reactjs/components/AccountAddress/index.mjs +4 -0
- package/reactjs/components/AmountCard/AmountCard.d.ts +6 -0
- package/reactjs/components/AmountCard/AmountCard.js +33 -0
- package/reactjs/components/AmountCard/AmountCard.mjs +32 -0
- package/reactjs/components/AmountCard/index.d.ts +1 -0
- package/reactjs/components/AmountCard/index.js +5 -0
- package/reactjs/components/AmountCard/index.mjs +4 -0
- package/reactjs/components/AmountInput/AmountInput.d.ts +13 -0
- package/reactjs/components/AmountInput/AmountInput.js +61 -0
- package/reactjs/components/AmountInput/AmountInput.mjs +60 -0
- package/reactjs/components/AmountInput/index.d.ts +1 -0
- package/reactjs/components/AmountInput/index.js +5 -0
- package/reactjs/components/AmountInput/index.mjs +4 -0
- package/reactjs/components/BridgeForm/BridgeForm.d.ts +16 -0
- package/reactjs/components/BridgeForm/BridgeForm.js +680 -0
- package/reactjs/components/BridgeForm/BridgeForm.mjs +679 -0
- package/reactjs/components/BridgeForm/index.d.ts +1 -0
- package/reactjs/components/BridgeForm/index.js +5 -0
- package/reactjs/components/BridgeForm/index.mjs +4 -0
- package/reactjs/components/BridgeHistory/BridgeHistory.d.ts +4 -0
- package/reactjs/components/BridgeHistory/BridgeHistory.js +233 -0
- package/reactjs/components/BridgeHistory/BridgeHistory.mjs +232 -0
- package/reactjs/components/BridgeHistory/index.d.ts +1 -0
- package/reactjs/components/BridgeHistory/index.js +5 -0
- package/reactjs/components/BridgeHistory/index.mjs +4 -0
- package/reactjs/components/Connect/BridgeAccountDisplay.d.ts +6 -0
- package/reactjs/components/Connect/BridgeAccountDisplay.js +85 -0
- package/reactjs/components/Connect/BridgeAccountDisplay.mjs +84 -0
- package/reactjs/components/Connect/BridgeConnectButton.d.ts +7 -0
- package/reactjs/components/Connect/BridgeConnectButton.js +26 -0
- package/reactjs/components/Connect/BridgeConnectButton.mjs +25 -0
- package/reactjs/components/Connect/CustomConnectButton.d.ts +7 -0
- package/reactjs/components/Connect/CustomConnectButton.js +42 -0
- package/reactjs/components/Connect/CustomConnectButton.mjs +41 -0
- package/reactjs/components/Connect/MvxAccountDisplay.d.ts +9 -0
- package/reactjs/components/Connect/MvxAccountDisplay.js +75 -0
- package/reactjs/components/Connect/MvxAccountDisplay.mjs +74 -0
- package/reactjs/components/Connect/MvxConnectButton.d.ts +11 -0
- package/reactjs/components/Connect/MvxConnectButton.js +43 -0
- package/reactjs/components/Connect/MvxConnectButton.mjs +42 -0
- package/reactjs/components/Connect/SwitchChainButton.d.ts +7 -0
- package/reactjs/components/Connect/SwitchChainButton.js +33 -0
- package/reactjs/components/Connect/SwitchChainButton.mjs +32 -0
- package/reactjs/components/Connect/index.d.ts +6 -0
- package/reactjs/components/Connect/index.js +15 -0
- package/reactjs/components/Connect/index.mjs +14 -0
- package/reactjs/components/CopyButton/CopyButton.d.ts +6 -0
- package/reactjs/components/CopyButton/CopyButton.js +42 -0
- package/reactjs/components/CopyButton/CopyButton.mjs +41 -0
- package/reactjs/components/CopyButton/index.d.ts +1 -0
- package/reactjs/components/CopyButton/index.js +5 -0
- package/reactjs/components/CopyButton/index.mjs +4 -0
- package/reactjs/components/CopyButton/utils/copyToClipboard.d.ts +1 -0
- package/reactjs/components/CopyButton/utils/copyToClipboard.js +38 -0
- package/reactjs/components/CopyButton/utils/copyToClipboard.mjs +37 -0
- package/reactjs/components/CopyButton/utils/index.d.ts +1 -0
- package/reactjs/components/CopyButton/utils/index.js +5 -0
- package/reactjs/components/CopyButton/utils/index.mjs +4 -0
- package/reactjs/components/DisplayAmount/DisplayAmount.d.ts +21 -0
- package/reactjs/components/DisplayAmount/DisplayAmount.js +91 -0
- package/reactjs/components/DisplayAmount/DisplayAmount.mjs +90 -0
- package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.d.ts +7 -0
- package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.js +40 -0
- package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.mjs +39 -0
- package/reactjs/components/DisplayAmount/components/AnimateNumber/index.d.ts +0 -0
- package/reactjs/components/DisplayAmount/components/AnimateNumber/index.js +2 -0
- package/reactjs/components/DisplayAmount/components/AnimateNumber/index.mjs +1 -0
- package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.d.ts +14 -0
- package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.js +62 -0
- package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.mjs +61 -0
- package/reactjs/components/DisplayAmount/components/index.d.ts +0 -0
- package/reactjs/components/DisplayAmount/components/index.js +2 -0
- package/reactjs/components/DisplayAmount/components/index.mjs +1 -0
- package/reactjs/components/DisplayAmount/index.d.ts +1 -0
- package/reactjs/components/DisplayAmount/index.js +5 -0
- package/reactjs/components/DisplayAmount/index.mjs +4 -0
- package/reactjs/components/DisplayAmount/utils/index.d.ts +1 -0
- package/reactjs/components/DisplayAmount/utils/index.js +5 -0
- package/reactjs/components/DisplayAmount/utils/index.mjs +4 -0
- package/reactjs/components/DisplayAmount/utils/truncateAmount.d.ts +1 -0
- package/reactjs/components/DisplayAmount/utils/truncateAmount.js +22 -0
- package/reactjs/components/DisplayAmount/utils/truncateAmount.mjs +21 -0
- package/reactjs/components/SmallLoader/SmallLoader.d.ts +4 -0
- package/reactjs/components/SmallLoader/SmallLoader.js +22 -0
- package/reactjs/components/SmallLoader/SmallLoader.mjs +21 -0
- package/reactjs/components/SmallLoader/index.d.ts +1 -0
- package/reactjs/components/SmallLoader/index.js +5 -0
- package/reactjs/components/SmallLoader/index.mjs +4 -0
- package/reactjs/components/TokenSelector/TokenSelector.d.ts +16 -0
- package/reactjs/components/TokenSelector/TokenSelector.js +158 -0
- package/reactjs/components/TokenSelector/TokenSelector.mjs +157 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.d.ts +8 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.js +86 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.mjs +85 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.d.ts +11 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.js +45 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.mjs +44 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.d.ts +6 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.js +19 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.mjs +18 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.d.ts +3 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.js +7 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.mjs +6 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.d.ts +4 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.js +33 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.mjs +32 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/chainSelectOption.d.ts +10 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/chainSelectOption.js +2 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/chainSelectOption.mjs +1 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/partialChainOption.d.ts +10 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/partialChainOption.js +2 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/partialChainOption.mjs +1 -0
- package/reactjs/components/TokenSelector/components/SelectContainer.d.ts +7 -0
- package/reactjs/components/TokenSelector/components/SelectContainer.js +41 -0
- package/reactjs/components/TokenSelector/components/SelectContainer.mjs +40 -0
- package/reactjs/components/TokenSelector/components/SelectContent.d.ts +10 -0
- package/reactjs/components/TokenSelector/components/SelectContent.js +93 -0
- package/reactjs/components/TokenSelector/components/SelectContent.mjs +92 -0
- package/reactjs/components/TokenSelector/components/SelectedOption.d.ts +5 -0
- package/reactjs/components/TokenSelector/components/SelectedOption.js +29 -0
- package/reactjs/components/TokenSelector/components/SelectedOption.mjs +28 -0
- package/reactjs/components/TokenSelector/components/TokenIcon.d.ts +8 -0
- package/reactjs/components/TokenSelector/components/TokenIcon.js +82 -0
- package/reactjs/components/TokenSelector/components/TokenIcon.mjs +81 -0
- package/reactjs/components/TokenSelector/components/TokenItem.d.ts +7 -0
- package/reactjs/components/TokenSelector/components/TokenItem.js +69 -0
- package/reactjs/components/TokenSelector/components/TokenItem.mjs +68 -0
- package/reactjs/components/TokenSelector/components/TokenList.d.ts +7 -0
- package/reactjs/components/TokenSelector/components/TokenList.js +21 -0
- package/reactjs/components/TokenSelector/components/TokenList.mjs +20 -0
- package/reactjs/components/TokenSelector/components/TokenSymbol.d.ts +9 -0
- package/reactjs/components/TokenSelector/components/TokenSymbol.js +26 -0
- package/reactjs/components/TokenSelector/components/TokenSymbol.mjs +25 -0
- package/reactjs/components/TokenSelector/index.d.ts +1 -0
- package/reactjs/components/TokenSelector/index.js +5 -0
- package/reactjs/components/TokenSelector/index.mjs +4 -0
- package/reactjs/components/TransactionToast/TransactionToast.d.ts +9 -0
- package/reactjs/components/TransactionToast/TransactionToast.js +54 -0
- package/reactjs/components/TransactionToast/TransactionToast.mjs +53 -0
- package/reactjs/components/TransactionToast/TransactionToastContainer.d.ts +3 -0
- package/reactjs/components/TransactionToast/TransactionToastContainer.js +21 -0
- package/reactjs/components/TransactionToast/TransactionToastContainer.mjs +20 -0
- package/reactjs/components/TransactionToast/index.d.ts +2 -0
- package/reactjs/components/TransactionToast/index.js +7 -0
- package/reactjs/components/TransactionToast/index.mjs +6 -0
- package/reactjs/components/TrimAddress/TrimAddress.d.ts +8 -0
- package/reactjs/components/TrimAddress/TrimAddress.js +26 -0
- package/reactjs/components/TrimAddress/TrimAddress.mjs +25 -0
- package/reactjs/components/TrimAddress/index.d.ts +1 -0
- package/reactjs/components/TrimAddress/index.js +5 -0
- package/reactjs/components/TrimAddress/index.mjs +4 -0
- package/reactjs/components/base/MxButton/MxButton.d.ts +13 -0
- package/reactjs/components/base/MxButton/MxButton.js +72 -0
- package/reactjs/components/base/MxButton/MxButton.mjs +71 -0
- package/reactjs/components/base/MxButton/index.d.ts +1 -0
- package/reactjs/components/base/MxButton/index.js +5 -0
- package/reactjs/components/base/MxButton/index.mjs +4 -0
- package/reactjs/components/base/MxCard/MxCard.d.ts +10 -0
- package/reactjs/components/base/MxCard/MxCard.js +55 -0
- package/reactjs/components/base/MxCard/MxCard.mjs +54 -0
- package/reactjs/components/base/MxCard/index.d.ts +1 -0
- package/reactjs/components/base/MxCard/index.js +5 -0
- package/reactjs/components/base/MxCard/index.mjs +4 -0
- package/reactjs/components/base/MxLink/MxLink.d.ts +10 -0
- package/reactjs/components/base/MxLink/MxLink.js +71 -0
- package/reactjs/components/base/MxLink/MxLink.mjs +70 -0
- package/reactjs/components/base/MxLink/index.d.ts +1 -0
- package/reactjs/components/base/MxLink/index.js +5 -0
- package/reactjs/components/base/MxLink/index.mjs +4 -0
- package/reactjs/components/base/MxSearch/MxSearch.d.ts +10 -0
- package/reactjs/components/base/MxSearch/MxSearch.js +70 -0
- package/reactjs/components/base/MxSearch/MxSearch.mjs +69 -0
- package/reactjs/components/base/MxSearch/index.d.ts +1 -0
- package/reactjs/components/base/MxSearch/index.js +5 -0
- package/reactjs/components/base/MxSearch/index.mjs +4 -0
- package/reactjs/components/base/MxSlideover/MxSlideover.d.ts +10 -0
- package/reactjs/components/base/MxSlideover/MxSlideover.js +79 -0
- package/reactjs/components/base/MxSlideover/MxSlideover.mjs +78 -0
- package/reactjs/components/base/MxSlideover/index.d.ts +1 -0
- package/reactjs/components/base/MxSlideover/index.js +5 -0
- package/reactjs/components/base/MxSlideover/index.mjs +4 -0
- package/reactjs/components/base/MxTooltip/MxTooltip.d.ts +23 -0
- package/reactjs/components/base/MxTooltip/MxTooltip.js +163 -0
- package/reactjs/components/base/MxTooltip/MxTooltip.mjs +162 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.d.ts +11 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.js +34 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.mjs +33 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.d.ts +1 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.js +5 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.mjs +4 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.d.ts +13 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.js +28 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.mjs +27 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContent/index.d.ts +1 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContent/index.js +5 -0
- package/reactjs/components/base/MxTooltip/components/TooltipContent/index.mjs +4 -0
- package/reactjs/components/base/MxTooltip/components/index.d.ts +2 -0
- package/reactjs/components/base/MxTooltip/components/index.js +7 -0
- package/reactjs/components/base/MxTooltip/components/index.mjs +6 -0
- package/reactjs/components/base/MxTooltip/index.d.ts +1 -0
- package/reactjs/components/base/MxTooltip/index.js +5 -0
- package/reactjs/components/base/MxTooltip/index.mjs +4 -0
- package/reactjs/components/base/index.d.ts +6 -0
- package/reactjs/components/base/index.js +15 -0
- package/reactjs/components/base/index.mjs +14 -0
- package/reactjs/components/index.d.ts +13 -0
- package/reactjs/components/index.js +51 -0
- package/reactjs/components/index.mjs +50 -0
- package/reactjs/constants/chains.d.ts +35 -0
- package/reactjs/constants/chains.js +38 -0
- package/reactjs/constants/chains.mjs +37 -0
- package/reactjs/constants/index.d.ts +3 -0
- package/reactjs/constants/index.js +12 -0
- package/reactjs/constants/index.mjs +11 -0
- package/reactjs/context/Web3AppProvider.d.ts +12 -0
- package/reactjs/context/Web3AppProvider.js +29 -0
- package/reactjs/context/Web3AppProvider.mjs +28 -0
- package/reactjs/context/queryClient.d.ts +3 -0
- package/reactjs/context/queryClient.js +12 -0
- package/reactjs/context/queryClient.mjs +11 -0
- package/reactjs/context/useWeb3App.d.ts +1 -0
- package/reactjs/context/useWeb3App.js +13 -0
- package/reactjs/context/useWeb3App.mjs +12 -0
- package/reactjs/hooks/index.d.ts +11 -0
- package/reactjs/hooks/index.js +32 -0
- package/reactjs/hooks/index.mjs +31 -0
- package/reactjs/hooks/useAccount.d.ts +77 -0
- package/reactjs/hooks/useAccount.js +18 -0
- package/reactjs/hooks/useAccount.mjs +17 -0
- package/reactjs/hooks/useBalances.d.ts +10 -0
- package/reactjs/hooks/useBalances.js +7 -0
- package/reactjs/hooks/useBalances.mjs +6 -0
- package/reactjs/hooks/useBridgeFormik.d.ts +98 -0
- package/reactjs/hooks/useBridgeFormik.js +182 -0
- package/reactjs/hooks/useBridgeFormik.mjs +181 -0
- package/reactjs/hooks/useDebounce.d.ts +1 -0
- package/reactjs/hooks/useDebounce.js +14 -0
- package/reactjs/hooks/useDebounce.mjs +13 -0
- package/reactjs/hooks/useFetchBridgeData.d.ts +45 -0
- package/reactjs/hooks/useFetchBridgeData.js +44 -0
- package/reactjs/hooks/useFetchBridgeData.mjs +43 -0
- package/reactjs/hooks/useFetchTokens.d.ts +42 -0
- package/reactjs/hooks/useFetchTokens.js +105 -0
- package/reactjs/hooks/useFetchTokens.mjs +104 -0
- package/reactjs/hooks/useGetChainId.d.ts +1 -0
- package/reactjs/hooks/useGetChainId.js +12 -0
- package/reactjs/hooks/useGetChainId.mjs +11 -0
- package/reactjs/hooks/useResolveTokenChain.d.ts +9 -0
- package/reactjs/hooks/useResolveTokenChain.js +21 -0
- package/reactjs/hooks/useResolveTokenChain.mjs +20 -0
- package/reactjs/hooks/useSendTransactions.d.ts +3 -0
- package/reactjs/hooks/useSendTransactions.js +19 -0
- package/reactjs/hooks/useSendTransactions.mjs +18 -0
- package/reactjs/hooks/useSignTransaction.d.ts +69 -0
- package/reactjs/hooks/useSignTransaction.js +17 -0
- package/reactjs/hooks/useSignTransaction.mjs +16 -0
- package/reactjs/hooks/validation/index.d.ts +4 -0
- package/reactjs/hooks/validation/index.js +11 -0
- package/reactjs/hooks/validation/index.mjs +10 -0
- package/reactjs/hooks/validation/useAmountSchema.d.ts +2 -0
- package/reactjs/hooks/validation/useAmountSchema.js +31 -0
- package/reactjs/hooks/validation/useAmountSchema.mjs +13 -0
- package/reactjs/hooks/validation/useSecondAmountSchema.d.ts +2 -0
- package/reactjs/hooks/validation/useSecondAmountSchema.js +27 -0
- package/reactjs/hooks/validation/useSecondAmountSchema.mjs +9 -0
- package/reactjs/hooks/validation/useTestHasEnoughFunds.d.ts +3 -0
- package/reactjs/hooks/validation/useTestHasEnoughFunds.js +38 -0
- package/reactjs/hooks/validation/useTestHasEnoughFunds.mjs +37 -0
- package/reactjs/hooks/validation/useTestIsConnected.d.ts +3 -0
- package/reactjs/hooks/validation/useTestIsConnected.js +21 -0
- package/reactjs/hooks/validation/useTestIsConnected.mjs +20 -0
- package/reactjs/index.d.ts +10 -0
- package/reactjs/index.js +153 -0
- package/reactjs/index.mjs +149 -0
- package/reactjs/init/index.d.ts +1 -0
- package/reactjs/init/index.js +5 -0
- package/reactjs/init/index.mjs +4 -0
- package/reactjs/init/init.d.ts +48 -0
- package/reactjs/init/init.js +53 -0
- package/reactjs/init/init.mjs +35 -0
- package/reactjs/init/tests/init.spec.d.ts +1 -0
- package/reactjs/init/tests/init.spec.js +108 -0
- package/reactjs/init/tests/init.spec.mjs +106 -0
- package/reactjs/queries/index.d.ts +7 -0
- package/reactjs/queries/index.js +20 -0
- package/reactjs/queries/index.mjs +19 -0
- package/reactjs/queries/useGetAllTokens.query.d.ts +3 -0
- package/reactjs/queries/useGetAllTokens.query.js +31 -0
- package/reactjs/queries/useGetAllTokens.query.mjs +30 -0
- package/reactjs/queries/useGetChains.query.d.ts +3 -0
- package/reactjs/queries/useGetChains.query.js +31 -0
- package/reactjs/queries/useGetChains.query.mjs +30 -0
- package/reactjs/queries/useGetEvmTokensBalances.query.d.ts +22 -0
- package/reactjs/queries/useGetEvmTokensBalances.query.js +78 -0
- package/reactjs/queries/useGetEvmTokensBalances.query.mjs +77 -0
- package/reactjs/queries/useGetHistory.query.d.ts +4 -0
- package/reactjs/queries/useGetHistory.query.js +47 -0
- package/reactjs/queries/useGetHistory.query.mjs +46 -0
- package/reactjs/queries/useGetMvxTokensBalances.query.d.ts +23 -0
- package/reactjs/queries/useGetMvxTokensBalances.query.js +60 -0
- package/reactjs/queries/useGetMvxTokensBalances.query.mjs +59 -0
- package/reactjs/queries/useGetRate.mutation.d.ts +6 -0
- package/reactjs/queries/useGetRate.mutation.js +19 -0
- package/reactjs/queries/useGetRate.mutation.mjs +18 -0
- package/reactjs/queries/useGetTokens.query.d.ts +3 -0
- package/reactjs/queries/useGetTokens.query.js +34 -0
- package/reactjs/queries/useGetTokens.query.mjs +33 -0
- package/reactjs/reexports.d.ts +6 -0
- package/reactjs/reexports.js +21 -0
- package/reactjs/reexports.mjs +17 -0
- package/reactjs/utils/delay.d.ts +1 -0
- package/reactjs/utils/delay.js +7 -0
- package/reactjs/utils/delay.mjs +6 -0
- package/reactjs/utils/formatAmount.d.ts +7 -0
- package/reactjs/utils/formatAmount.js +24 -0
- package/reactjs/utils/formatAmount.mjs +23 -0
- package/reactjs/utils/getCleanStringAmount.d.ts +4 -0
- package/reactjs/utils/getCleanStringAmount.js +12 -0
- package/reactjs/utils/getCleanStringAmount.mjs +11 -0
- package/reactjs/utils/getCompletePathname.d.ts +1 -0
- package/reactjs/utils/getCompletePathname.js +6 -0
- package/reactjs/utils/getCompletePathname.mjs +5 -0
- package/reactjs/utils/getInitialTokens.d.ts +8 -0
- package/reactjs/utils/getInitialTokens.js +13 -0
- package/reactjs/utils/getInitialTokens.mjs +12 -0
- package/reactjs/utils/hasEnoughFunds.d.ts +5 -0
- package/reactjs/utils/hasEnoughFunds.js +20 -0
- package/reactjs/utils/hasEnoughFunds.mjs +19 -0
- package/reactjs/utils/index.d.ts +12 -0
- package/reactjs/utils/index.js +27 -0
- package/reactjs/utils/index.mjs +26 -0
- package/reactjs/utils/isStringFloat.d.ts +1 -0
- package/reactjs/utils/isStringFloat.js +22 -0
- package/reactjs/utils/isStringFloat.mjs +21 -0
- package/reactjs/utils/mxClsx.d.ts +3 -0
- package/reactjs/utils/mxClsx.js +21 -0
- package/reactjs/utils/mxClsx.mjs +20 -0
- package/reactjs/utils/pipe.d.ts +7 -0
- package/reactjs/utils/pipe.js +26 -0
- package/reactjs/utils/pipe.mjs +25 -0
- package/reactjs/utils/removeCommas.d.ts +1 -0
- package/reactjs/utils/removeCommas.js +7 -0
- package/reactjs/utils/removeCommas.mjs +6 -0
- package/reactjs/utils/roundAmount.d.ts +1 -0
- package/reactjs/utils/roundAmount.js +41 -0
- package/reactjs/utils/roundAmount.mjs +40 -0
- package/reactjs/utils/testNumber.d.ts +1 -0
- package/reactjs/utils/testNumber.js +5 -0
- package/reactjs/utils/testNumber.mjs +4 -0
- package/store/inMemoryStore.d.ts +12 -0
- package/store/inMemoryStore.js +40 -0
- package/store/inMemoryStore.mjs +39 -0
- package/types/batchTransactions.d.ts +6 -0
- package/types/batchTransactions.js +2 -0
- package/types/batchTransactions.mjs +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +2 -0
- package/types/index.mjs +1 -0
- package/types/rate.d.ts +11 -0
- package/types/rate.js +2 -0
- package/types/rate.mjs +1 -0
- package/types/token.d.ts +12 -0
- package/types/token.js +2 -0
- package/types/token.mjs +1 -0
- package/types/transaction.d.ts +14 -0
- package/types/transaction.js +2 -0
- package/types/transaction.mjs +1 -0
- package/useBalances-Bxtc4GNK.js +199 -0
- package/useBalances-DA3zEruz.mjs +199 -0
- package/w3m-modal-DCcF1qEB.js +356 -0
- package/w3m-modal-DK3G5GJp.mjs +356 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { AccountAddress } from "./components/AccountAddress/AccountAddress.mjs";
|
|
2
|
+
import { AmountCard } from "./components/AmountCard/AmountCard.mjs";
|
|
3
|
+
import { AmountInput } from "./components/AmountInput/AmountInput.mjs";
|
|
4
|
+
import { MxButton } from "./components/base/MxButton/MxButton.mjs";
|
|
5
|
+
import { MxCard } from "./components/base/MxCard/MxCard.mjs";
|
|
6
|
+
import { MxLink } from "./components/base/MxLink/MxLink.mjs";
|
|
7
|
+
import { MxSearch } from "./components/base/MxSearch/MxSearch.mjs";
|
|
8
|
+
import { MxSlideover } from "./components/base/MxSlideover/MxSlideover.mjs";
|
|
9
|
+
import { MxTooltip } from "./components/base/MxTooltip/MxTooltip.mjs";
|
|
10
|
+
import { BridgeForm } from "./components/BridgeForm/BridgeForm.mjs";
|
|
11
|
+
import { BridgeHistory } from "./components/BridgeHistory/BridgeHistory.mjs";
|
|
12
|
+
import { BridgeConnectButton } from "./components/Connect/BridgeConnectButton.mjs";
|
|
13
|
+
import { CustomConnectButton } from "./components/Connect/CustomConnectButton.mjs";
|
|
14
|
+
import { MvxConnectButton } from "./components/Connect/MvxConnectButton.mjs";
|
|
15
|
+
import { SwitchChainButton } from "./components/Connect/SwitchChainButton.mjs";
|
|
16
|
+
import { BridgeAccountDisplay } from "./components/Connect/BridgeAccountDisplay.mjs";
|
|
17
|
+
import { MvxAccountDisplay } from "./components/Connect/MvxAccountDisplay.mjs";
|
|
18
|
+
import { CopyButton } from "./components/CopyButton/CopyButton.mjs";
|
|
19
|
+
import { DisplayAmount } from "./components/DisplayAmount/DisplayAmount.mjs";
|
|
20
|
+
import { SmallLoader } from "./components/SmallLoader/SmallLoader.mjs";
|
|
21
|
+
import { TokenSelector } from "./components/TokenSelector/TokenSelector.mjs";
|
|
22
|
+
import { TransactionToastContainer } from "./components/TransactionToast/TransactionToastContainer.mjs";
|
|
23
|
+
import { TransactionToast } from "./components/TransactionToast/TransactionToast.mjs";
|
|
24
|
+
import { TrimAddress } from "./components/TrimAddress/TrimAddress.mjs";
|
|
25
|
+
import { safeDocument, safeWindow } from "./constants/index.mjs";
|
|
26
|
+
import { Web3AppContext, Web3AppProvider } from "./context/Web3AppProvider.mjs";
|
|
27
|
+
import { useWeb3App } from "./context/useWeb3App.mjs";
|
|
28
|
+
import { getQueryClient } from "./context/queryClient.mjs";
|
|
29
|
+
import { useAmountSchema } from "./hooks/validation/useAmountSchema.mjs";
|
|
30
|
+
import { useSecondAmountSchema } from "./hooks/validation/useSecondAmountSchema.mjs";
|
|
31
|
+
import { useTestHasEnoughFunds } from "./hooks/validation/useTestHasEnoughFunds.mjs";
|
|
32
|
+
import { useTestIsConnected } from "./hooks/validation/useTestIsConnected.mjs";
|
|
33
|
+
import { useAccount } from "./hooks/useAccount.mjs";
|
|
34
|
+
import { u } from "../useBalances-DA3zEruz.mjs";
|
|
35
|
+
import { BridgeFormikValuesEnum, useBridgeFormik } from "./hooks/useBridgeFormik.mjs";
|
|
36
|
+
import { useDebounce } from "./hooks/useDebounce.mjs";
|
|
37
|
+
import { useFetchBridgeData } from "./hooks/useFetchBridgeData.mjs";
|
|
38
|
+
import { useFetchTokens } from "./hooks/useFetchTokens.mjs";
|
|
39
|
+
import { useGetChainId } from "./hooks/useGetChainId.mjs";
|
|
40
|
+
import { useResolveTokenChain } from "./hooks/useResolveTokenChain.mjs";
|
|
41
|
+
import { useSendTransactions } from "./hooks/useSendTransactions.mjs";
|
|
42
|
+
import { useSignTransaction } from "./hooks/useSignTransaction.mjs";
|
|
43
|
+
import { init } from "./init/init.mjs";
|
|
44
|
+
import { useGetAllTokensQuery } from "./queries/useGetAllTokens.query.mjs";
|
|
45
|
+
import { useGetChainsQuery } from "./queries/useGetChains.query.mjs";
|
|
46
|
+
import { invalidateEvmTokensBalances, useGetEvmTokensBalancesQuery } from "./queries/useGetEvmTokensBalances.query.mjs";
|
|
47
|
+
import { invalidateHistoryQuery, useGetHistoryQuery } from "./queries/useGetHistory.query.mjs";
|
|
48
|
+
import { invalidateMvxTokensBalancesQuery, useGetMvxTokensBalancesQuery } from "./queries/useGetMvxTokensBalances.query.mjs";
|
|
49
|
+
import { useGetRateMutation } from "./queries/useGetRate.mutation.mjs";
|
|
50
|
+
import { useGetTokensQuery } from "./queries/useGetTokens.query.mjs";
|
|
51
|
+
import { delay } from "./utils/delay.mjs";
|
|
52
|
+
import { formatAmount } from "./utils/formatAmount.mjs";
|
|
53
|
+
import { getCleanStringAmount } from "./utils/getCleanStringAmount.mjs";
|
|
54
|
+
import { getCompletePathname } from "./utils/getCompletePathname.mjs";
|
|
55
|
+
import { getInitialTokens } from "./utils/getInitialTokens.mjs";
|
|
56
|
+
import { hasEnoughFunds } from "./utils/hasEnoughFunds.mjs";
|
|
57
|
+
import { isStringFloat } from "./utils/isStringFloat.mjs";
|
|
58
|
+
import { mxClsx } from "./utils/mxClsx.mjs";
|
|
59
|
+
import { pipe } from "./utils/pipe.mjs";
|
|
60
|
+
import { removeCommas } from "./utils/removeCommas.mjs";
|
|
61
|
+
import { roundAmount } from "./utils/roundAmount.mjs";
|
|
62
|
+
import { testNumber } from "./utils/testNumber.mjs";
|
|
63
|
+
import { u as u2 } from "../react-B9sQBOh0.mjs";
|
|
64
|
+
import { useWaitForTransactionReceipt } from "wagmi";
|
|
65
|
+
import { chainIdentifier } from "./constants/chains.mjs";
|
|
66
|
+
import { u as u3, a, e, b, c, d } from "../index-BXwpbIDQ.mjs";
|
|
67
|
+
import { u as u4, b as b2, a as a2 } from "../react-CSQpf1zk.mjs";
|
|
68
|
+
export {
|
|
69
|
+
AccountAddress,
|
|
70
|
+
AmountCard,
|
|
71
|
+
AmountInput,
|
|
72
|
+
BridgeAccountDisplay,
|
|
73
|
+
BridgeConnectButton,
|
|
74
|
+
BridgeForm,
|
|
75
|
+
BridgeFormikValuesEnum,
|
|
76
|
+
BridgeHistory,
|
|
77
|
+
CopyButton,
|
|
78
|
+
CustomConnectButton,
|
|
79
|
+
DisplayAmount,
|
|
80
|
+
MvxAccountDisplay,
|
|
81
|
+
MvxConnectButton,
|
|
82
|
+
MxButton,
|
|
83
|
+
MxCard,
|
|
84
|
+
MxLink,
|
|
85
|
+
MxSearch,
|
|
86
|
+
MxSlideover,
|
|
87
|
+
MxTooltip,
|
|
88
|
+
SmallLoader,
|
|
89
|
+
SwitchChainButton,
|
|
90
|
+
TokenSelector,
|
|
91
|
+
TransactionToast,
|
|
92
|
+
TransactionToastContainer,
|
|
93
|
+
TrimAddress,
|
|
94
|
+
Web3AppContext,
|
|
95
|
+
Web3AppProvider,
|
|
96
|
+
chainIdentifier,
|
|
97
|
+
delay,
|
|
98
|
+
formatAmount,
|
|
99
|
+
getCleanStringAmount,
|
|
100
|
+
getCompletePathname,
|
|
101
|
+
getInitialTokens,
|
|
102
|
+
getQueryClient,
|
|
103
|
+
hasEnoughFunds,
|
|
104
|
+
init,
|
|
105
|
+
invalidateEvmTokensBalances,
|
|
106
|
+
invalidateHistoryQuery,
|
|
107
|
+
invalidateMvxTokensBalancesQuery,
|
|
108
|
+
isStringFloat,
|
|
109
|
+
mxClsx,
|
|
110
|
+
pipe,
|
|
111
|
+
removeCommas,
|
|
112
|
+
roundAmount,
|
|
113
|
+
safeDocument,
|
|
114
|
+
safeWindow,
|
|
115
|
+
testNumber,
|
|
116
|
+
useAccount,
|
|
117
|
+
useAmountSchema,
|
|
118
|
+
u3 as useAppKit,
|
|
119
|
+
u4 as useAppKitAccount,
|
|
120
|
+
a as useAppKitEvents,
|
|
121
|
+
u2 as useAppKitNetwork,
|
|
122
|
+
b2 as useAppKitNetworkCore,
|
|
123
|
+
e as useAppKitProvider,
|
|
124
|
+
b as useAppKitState,
|
|
125
|
+
c as useAppKitTheme,
|
|
126
|
+
u as useBalances,
|
|
127
|
+
useBridgeFormik,
|
|
128
|
+
useDebounce,
|
|
129
|
+
a2 as useDisconnect,
|
|
130
|
+
useFetchBridgeData,
|
|
131
|
+
useFetchTokens,
|
|
132
|
+
useGetAllTokensQuery,
|
|
133
|
+
useGetChainId,
|
|
134
|
+
useGetChainsQuery,
|
|
135
|
+
useGetEvmTokensBalancesQuery,
|
|
136
|
+
useGetHistoryQuery,
|
|
137
|
+
useGetMvxTokensBalancesQuery,
|
|
138
|
+
useGetRateMutation,
|
|
139
|
+
useGetTokensQuery,
|
|
140
|
+
useResolveTokenChain,
|
|
141
|
+
useSecondAmountSchema,
|
|
142
|
+
useSendTransactions,
|
|
143
|
+
useSignTransaction,
|
|
144
|
+
useTestHasEnoughFunds,
|
|
145
|
+
useTestIsConnected,
|
|
146
|
+
useWaitForTransactionReceipt,
|
|
147
|
+
d as useWalletInfo,
|
|
148
|
+
useWeb3App
|
|
149
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './init';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CreateConfigParameters } from '@wagmi/core';
|
|
2
|
+
import { AppKitOptions } from '@reown/appkit';
|
|
3
|
+
|
|
4
|
+
export type InitOptions = {
|
|
5
|
+
/**
|
|
6
|
+
* @reown AppKit options
|
|
7
|
+
*/
|
|
8
|
+
appKitOptions: Omit<AppKitOptions, 'networks'>;
|
|
9
|
+
/**
|
|
10
|
+
* WagmiAdapter config
|
|
11
|
+
*/
|
|
12
|
+
adapterConfig: Partial<CreateConfigParameters>;
|
|
13
|
+
/**
|
|
14
|
+
* Accepted chain IDs. The chains with ids [31, 44, 54] will be ignored as these are mapped to the mvx networks as [1, D, T]
|
|
15
|
+
*/
|
|
16
|
+
acceptedChainIDs: number[];
|
|
17
|
+
/**
|
|
18
|
+
* Accepted connectors IDs
|
|
19
|
+
*/
|
|
20
|
+
acceptedConnectorsIDs?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Liquidity API URL
|
|
23
|
+
*/
|
|
24
|
+
apiURL: string;
|
|
25
|
+
/**
|
|
26
|
+
* Bridge URL. This is used to redirect the user to the bridge status page for tracking transactions (history). Will be removed in the next major release.
|
|
27
|
+
*/
|
|
28
|
+
bridgeURL: string;
|
|
29
|
+
/**
|
|
30
|
+
* MultiversX API URL
|
|
31
|
+
*/
|
|
32
|
+
mvxApiURL: string;
|
|
33
|
+
/**
|
|
34
|
+
* MultiversX Explorer URL
|
|
35
|
+
*/
|
|
36
|
+
mvxExplorerAddress: string;
|
|
37
|
+
/**
|
|
38
|
+
* MultiversX Chain ID
|
|
39
|
+
* Possible options 31 | 44 | 54 which are mapped to 1 | D | T
|
|
40
|
+
*/
|
|
41
|
+
mvxChainId: '31' | '44' | '54';
|
|
42
|
+
};
|
|
43
|
+
declare function init(options: InitOptions): {
|
|
44
|
+
config: import('@wagmi/core').Config;
|
|
45
|
+
appKit: import('@reown/appkit').AppKit;
|
|
46
|
+
options: InitOptions;
|
|
47
|
+
};
|
|
48
|
+
export { init };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const react = require("../../react-BaXyw3AO.js");
|
|
5
|
+
const appkitAdapterWagmi = require("@reown/appkit-adapter-wagmi");
|
|
6
|
+
const networks = require("viem/chains");
|
|
7
|
+
const constants_index = require("../../constants/index.js");
|
|
8
|
+
const store_inMemoryStore = require("../../store/inMemoryStore.js");
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
10
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
11
|
+
if (e) {
|
|
12
|
+
for (const k in e) {
|
|
13
|
+
if (k !== "default") {
|
|
14
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: () => e[k]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
const networks__namespace = /* @__PURE__ */ _interopNamespaceDefault(networks);
|
|
26
|
+
function init(options) {
|
|
27
|
+
const store = store_inMemoryStore.InMemoryStore.getInstance();
|
|
28
|
+
store.setItem("apiURL", options.apiURL);
|
|
29
|
+
store.setItem("bridgeURL", options.bridgeURL);
|
|
30
|
+
store.setItem("mvxApiURL", options.mvxApiURL);
|
|
31
|
+
store.setItem("mvxExplorerAddress", options.mvxExplorerAddress);
|
|
32
|
+
store.setItem("mvxChainId", options.mvxChainId);
|
|
33
|
+
const acceptedNetworks = Object.values(networks__namespace).filter(
|
|
34
|
+
(chain) => options.acceptedChainIDs.includes(Number(chain.id)) && !constants_index.MVX_CHAIN_IDS.includes(Number(chain.id))
|
|
35
|
+
).map((network) => network);
|
|
36
|
+
const wagmiAdapter = new appkitAdapterWagmi.WagmiAdapter({
|
|
37
|
+
...options.adapterConfig,
|
|
38
|
+
ssr: options.adapterConfig.ssr ?? true,
|
|
39
|
+
projectId: options.appKitOptions.projectId,
|
|
40
|
+
networks: acceptedNetworks
|
|
41
|
+
});
|
|
42
|
+
const appKit = react.createAppKit({
|
|
43
|
+
...options.appKitOptions,
|
|
44
|
+
adapters: [wagmiAdapter],
|
|
45
|
+
networks: [acceptedNetworks[0], ...acceptedNetworks.slice(1)]
|
|
46
|
+
});
|
|
47
|
+
return {
|
|
48
|
+
config: wagmiAdapter.wagmiConfig,
|
|
49
|
+
appKit,
|
|
50
|
+
options
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.init = init;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { c as createAppKit } from "../../react-B9sQBOh0.mjs";
|
|
2
|
+
import { WagmiAdapter } from "@reown/appkit-adapter-wagmi";
|
|
3
|
+
import * as networks from "viem/chains";
|
|
4
|
+
import { MVX_CHAIN_IDS } from "../../constants/index.mjs";
|
|
5
|
+
import { InMemoryStore } from "../../store/inMemoryStore.mjs";
|
|
6
|
+
function init(options) {
|
|
7
|
+
const store = InMemoryStore.getInstance();
|
|
8
|
+
store.setItem("apiURL", options.apiURL);
|
|
9
|
+
store.setItem("bridgeURL", options.bridgeURL);
|
|
10
|
+
store.setItem("mvxApiURL", options.mvxApiURL);
|
|
11
|
+
store.setItem("mvxExplorerAddress", options.mvxExplorerAddress);
|
|
12
|
+
store.setItem("mvxChainId", options.mvxChainId);
|
|
13
|
+
const acceptedNetworks = Object.values(networks).filter(
|
|
14
|
+
(chain) => options.acceptedChainIDs.includes(Number(chain.id)) && !MVX_CHAIN_IDS.includes(Number(chain.id))
|
|
15
|
+
).map((network) => network);
|
|
16
|
+
const wagmiAdapter = new WagmiAdapter({
|
|
17
|
+
...options.adapterConfig,
|
|
18
|
+
ssr: options.adapterConfig.ssr ?? true,
|
|
19
|
+
projectId: options.appKitOptions.projectId,
|
|
20
|
+
networks: acceptedNetworks
|
|
21
|
+
});
|
|
22
|
+
const appKit = createAppKit({
|
|
23
|
+
...options.appKitOptions,
|
|
24
|
+
adapters: [wagmiAdapter],
|
|
25
|
+
networks: [acceptedNetworks[0], ...acceptedNetworks.slice(1)]
|
|
26
|
+
});
|
|
27
|
+
return {
|
|
28
|
+
config: wagmiAdapter.wagmiConfig,
|
|
29
|
+
appKit,
|
|
30
|
+
options
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
init
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
const networks = require("viem/chains");
|
|
4
|
+
require("../../../index-cvy2-uZ_.js");
|
|
5
|
+
const react = require("../../../react-BaXyw3AO.js");
|
|
6
|
+
const appkitAdapterWagmi = require("@reown/appkit-adapter-wagmi");
|
|
7
|
+
const connectors = require("wagmi/connectors");
|
|
8
|
+
const reactjs_init_init = require("../init.js");
|
|
9
|
+
const projectID = "testProjectID";
|
|
10
|
+
describe("init", () => {
|
|
11
|
+
const mockMetadata = {
|
|
12
|
+
name: "mx-sdk-dapp-liquidity",
|
|
13
|
+
description: "mx-sdk-dapp-liquidity example",
|
|
14
|
+
url: "https://example.com",
|
|
15
|
+
icons: ["https://avatars.githubusercontent.com/u/179229932"]
|
|
16
|
+
};
|
|
17
|
+
const mockNetwork = networks.mainnet;
|
|
18
|
+
const mockAdapterConfig = {
|
|
19
|
+
ssr: true,
|
|
20
|
+
connectors: [
|
|
21
|
+
connectors.injected(),
|
|
22
|
+
connectors.walletConnect({
|
|
23
|
+
projectId: projectID,
|
|
24
|
+
metadata: mockMetadata,
|
|
25
|
+
showQrModal: false
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
};
|
|
29
|
+
beforeEach(() => {
|
|
30
|
+
appkitAdapterWagmi.WagmiAdapter.mockClear();
|
|
31
|
+
react.createAppKit.mockClear();
|
|
32
|
+
});
|
|
33
|
+
it("initializes with provided options", () => {
|
|
34
|
+
const options = {
|
|
35
|
+
adapterConfig: mockAdapterConfig,
|
|
36
|
+
appKitOptions: {
|
|
37
|
+
projectId: projectID,
|
|
38
|
+
metadata: mockMetadata,
|
|
39
|
+
debug: true
|
|
40
|
+
},
|
|
41
|
+
acceptedChainIDs: [1],
|
|
42
|
+
apiURL: "https://localhost:3000",
|
|
43
|
+
bridgeURL: "https://devnet-bridge.example.com",
|
|
44
|
+
mvxApiURL: "https://devnet-api.multiversx.com",
|
|
45
|
+
mvxExplorerAddress: "https://devnet-explorer.multiversx.com",
|
|
46
|
+
mvxChainId: "44"
|
|
47
|
+
};
|
|
48
|
+
const result = reactjs_init_init.init(options);
|
|
49
|
+
expect(appkitAdapterWagmi.WagmiAdapter).toHaveBeenCalledWith({
|
|
50
|
+
...mockAdapterConfig,
|
|
51
|
+
projectId: projectID,
|
|
52
|
+
networks: [mockNetwork],
|
|
53
|
+
ssr: true
|
|
54
|
+
});
|
|
55
|
+
expect(react.createAppKit).toHaveBeenCalledWith({
|
|
56
|
+
adapters: [expect.any(appkitAdapterWagmi.WagmiAdapter)],
|
|
57
|
+
networks: [mockNetwork],
|
|
58
|
+
projectId: projectID,
|
|
59
|
+
metadata: mockMetadata,
|
|
60
|
+
debug: true
|
|
61
|
+
});
|
|
62
|
+
expect(result).toHaveProperty("config");
|
|
63
|
+
expect(result).toHaveProperty("appKit");
|
|
64
|
+
});
|
|
65
|
+
it("sets ssr to true if not provided in adapterConfig", () => {
|
|
66
|
+
const options = {
|
|
67
|
+
adapterConfig: {},
|
|
68
|
+
appKitOptions: {
|
|
69
|
+
projectId: projectID,
|
|
70
|
+
metadata: mockMetadata
|
|
71
|
+
},
|
|
72
|
+
acceptedChainIDs: [1],
|
|
73
|
+
apiURL: "https://localhost:3000",
|
|
74
|
+
bridgeURL: "https://devnet-bridge.example.com",
|
|
75
|
+
mvxApiURL: "https://devnet-api.multiversx.com",
|
|
76
|
+
mvxExplorerAddress: "https://devnet-explorer.multiversx.com",
|
|
77
|
+
mvxChainId: "44"
|
|
78
|
+
};
|
|
79
|
+
reactjs_init_init.init(options);
|
|
80
|
+
expect(appkitAdapterWagmi.WagmiAdapter).toHaveBeenCalledWith({
|
|
81
|
+
projectId: projectID,
|
|
82
|
+
networks: [mockNetwork],
|
|
83
|
+
ssr: true
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
it("sets ssr to true if provided in adapterConfig", () => {
|
|
87
|
+
const options = {
|
|
88
|
+
adapterConfig: { ssr: true },
|
|
89
|
+
appKitOptions: {
|
|
90
|
+
projectId: projectID,
|
|
91
|
+
metadata: mockMetadata,
|
|
92
|
+
debug: false
|
|
93
|
+
},
|
|
94
|
+
acceptedChainIDs: [1],
|
|
95
|
+
apiURL: "https://localhost:3000",
|
|
96
|
+
bridgeURL: "https://devnet-bridge.example.com",
|
|
97
|
+
mvxApiURL: "https://devnet-api.multiversx.com",
|
|
98
|
+
mvxExplorerAddress: "https://devnet-explorer.multiversx.com",
|
|
99
|
+
mvxChainId: "44"
|
|
100
|
+
};
|
|
101
|
+
reactjs_init_init.init(options);
|
|
102
|
+
expect(appkitAdapterWagmi.WagmiAdapter).toHaveBeenCalledWith({
|
|
103
|
+
projectId: projectID,
|
|
104
|
+
networks: [mockNetwork],
|
|
105
|
+
ssr: true
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
});
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { mainnet } from "viem/chains";
|
|
2
|
+
import "../../../index-DSnomXRI.mjs";
|
|
3
|
+
import { c as createAppKit } from "../../../react-B9sQBOh0.mjs";
|
|
4
|
+
import { WagmiAdapter } from "@reown/appkit-adapter-wagmi";
|
|
5
|
+
import { injected, walletConnect } from "wagmi/connectors";
|
|
6
|
+
import { init } from "../init.mjs";
|
|
7
|
+
const projectID = "testProjectID";
|
|
8
|
+
describe("init", () => {
|
|
9
|
+
const mockMetadata = {
|
|
10
|
+
name: "mx-sdk-dapp-liquidity",
|
|
11
|
+
description: "mx-sdk-dapp-liquidity example",
|
|
12
|
+
url: "https://example.com",
|
|
13
|
+
icons: ["https://avatars.githubusercontent.com/u/179229932"]
|
|
14
|
+
};
|
|
15
|
+
const mockNetwork = mainnet;
|
|
16
|
+
const mockAdapterConfig = {
|
|
17
|
+
ssr: true,
|
|
18
|
+
connectors: [
|
|
19
|
+
injected(),
|
|
20
|
+
walletConnect({
|
|
21
|
+
projectId: projectID,
|
|
22
|
+
metadata: mockMetadata,
|
|
23
|
+
showQrModal: false
|
|
24
|
+
})
|
|
25
|
+
]
|
|
26
|
+
};
|
|
27
|
+
beforeEach(() => {
|
|
28
|
+
WagmiAdapter.mockClear();
|
|
29
|
+
createAppKit.mockClear();
|
|
30
|
+
});
|
|
31
|
+
it("initializes with provided options", () => {
|
|
32
|
+
const options = {
|
|
33
|
+
adapterConfig: mockAdapterConfig,
|
|
34
|
+
appKitOptions: {
|
|
35
|
+
projectId: projectID,
|
|
36
|
+
metadata: mockMetadata,
|
|
37
|
+
debug: true
|
|
38
|
+
},
|
|
39
|
+
acceptedChainIDs: [1],
|
|
40
|
+
apiURL: "https://localhost:3000",
|
|
41
|
+
bridgeURL: "https://devnet-bridge.example.com",
|
|
42
|
+
mvxApiURL: "https://devnet-api.multiversx.com",
|
|
43
|
+
mvxExplorerAddress: "https://devnet-explorer.multiversx.com",
|
|
44
|
+
mvxChainId: "44"
|
|
45
|
+
};
|
|
46
|
+
const result = init(options);
|
|
47
|
+
expect(WagmiAdapter).toHaveBeenCalledWith({
|
|
48
|
+
...mockAdapterConfig,
|
|
49
|
+
projectId: projectID,
|
|
50
|
+
networks: [mockNetwork],
|
|
51
|
+
ssr: true
|
|
52
|
+
});
|
|
53
|
+
expect(createAppKit).toHaveBeenCalledWith({
|
|
54
|
+
adapters: [expect.any(WagmiAdapter)],
|
|
55
|
+
networks: [mockNetwork],
|
|
56
|
+
projectId: projectID,
|
|
57
|
+
metadata: mockMetadata,
|
|
58
|
+
debug: true
|
|
59
|
+
});
|
|
60
|
+
expect(result).toHaveProperty("config");
|
|
61
|
+
expect(result).toHaveProperty("appKit");
|
|
62
|
+
});
|
|
63
|
+
it("sets ssr to true if not provided in adapterConfig", () => {
|
|
64
|
+
const options = {
|
|
65
|
+
adapterConfig: {},
|
|
66
|
+
appKitOptions: {
|
|
67
|
+
projectId: projectID,
|
|
68
|
+
metadata: mockMetadata
|
|
69
|
+
},
|
|
70
|
+
acceptedChainIDs: [1],
|
|
71
|
+
apiURL: "https://localhost:3000",
|
|
72
|
+
bridgeURL: "https://devnet-bridge.example.com",
|
|
73
|
+
mvxApiURL: "https://devnet-api.multiversx.com",
|
|
74
|
+
mvxExplorerAddress: "https://devnet-explorer.multiversx.com",
|
|
75
|
+
mvxChainId: "44"
|
|
76
|
+
};
|
|
77
|
+
init(options);
|
|
78
|
+
expect(WagmiAdapter).toHaveBeenCalledWith({
|
|
79
|
+
projectId: projectID,
|
|
80
|
+
networks: [mockNetwork],
|
|
81
|
+
ssr: true
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
it("sets ssr to true if provided in adapterConfig", () => {
|
|
85
|
+
const options = {
|
|
86
|
+
adapterConfig: { ssr: true },
|
|
87
|
+
appKitOptions: {
|
|
88
|
+
projectId: projectID,
|
|
89
|
+
metadata: mockMetadata,
|
|
90
|
+
debug: false
|
|
91
|
+
},
|
|
92
|
+
acceptedChainIDs: [1],
|
|
93
|
+
apiURL: "https://localhost:3000",
|
|
94
|
+
bridgeURL: "https://devnet-bridge.example.com",
|
|
95
|
+
mvxApiURL: "https://devnet-api.multiversx.com",
|
|
96
|
+
mvxExplorerAddress: "https://devnet-explorer.multiversx.com",
|
|
97
|
+
mvxChainId: "44"
|
|
98
|
+
};
|
|
99
|
+
init(options);
|
|
100
|
+
expect(WagmiAdapter).toHaveBeenCalledWith({
|
|
101
|
+
projectId: projectID,
|
|
102
|
+
networks: [mockNetwork],
|
|
103
|
+
ssr: true
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './useGetAllTokens.query';
|
|
2
|
+
export * from './useGetChains.query';
|
|
3
|
+
export * from './useGetEvmTokensBalances.query';
|
|
4
|
+
export * from './useGetHistory.query';
|
|
5
|
+
export * from './useGetMvxTokensBalances.query';
|
|
6
|
+
export * from './useGetRate.mutation';
|
|
7
|
+
export * from './useGetTokens.query';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const reactjs_queries_useGetAllTokens_query = require("./useGetAllTokens.query.js");
|
|
5
|
+
const reactjs_queries_useGetChains_query = require("./useGetChains.query.js");
|
|
6
|
+
const reactjs_queries_useGetEvmTokensBalances_query = require("./useGetEvmTokensBalances.query.js");
|
|
7
|
+
const reactjs_queries_useGetHistory_query = require("./useGetHistory.query.js");
|
|
8
|
+
const reactjs_queries_useGetMvxTokensBalances_query = require("./useGetMvxTokensBalances.query.js");
|
|
9
|
+
const reactjs_queries_useGetRate_mutation = require("./useGetRate.mutation.js");
|
|
10
|
+
const reactjs_queries_useGetTokens_query = require("./useGetTokens.query.js");
|
|
11
|
+
exports.useGetAllTokensQuery = reactjs_queries_useGetAllTokens_query.useGetAllTokensQuery;
|
|
12
|
+
exports.useGetChainsQuery = reactjs_queries_useGetChains_query.useGetChainsQuery;
|
|
13
|
+
exports.invalidateEvmTokensBalances = reactjs_queries_useGetEvmTokensBalances_query.invalidateEvmTokensBalances;
|
|
14
|
+
exports.useGetEvmTokensBalancesQuery = reactjs_queries_useGetEvmTokensBalances_query.useGetEvmTokensBalancesQuery;
|
|
15
|
+
exports.invalidateHistoryQuery = reactjs_queries_useGetHistory_query.invalidateHistoryQuery;
|
|
16
|
+
exports.useGetHistoryQuery = reactjs_queries_useGetHistory_query.useGetHistoryQuery;
|
|
17
|
+
exports.invalidateMvxTokensBalancesQuery = reactjs_queries_useGetMvxTokensBalances_query.invalidateMvxTokensBalancesQuery;
|
|
18
|
+
exports.useGetMvxTokensBalancesQuery = reactjs_queries_useGetMvxTokensBalances_query.useGetMvxTokensBalancesQuery;
|
|
19
|
+
exports.useGetRateMutation = reactjs_queries_useGetRate_mutation.useGetRateMutation;
|
|
20
|
+
exports.useGetTokensQuery = reactjs_queries_useGetTokens_query.useGetTokensQuery;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useGetAllTokensQuery } from "./useGetAllTokens.query.mjs";
|
|
2
|
+
import { useGetChainsQuery } from "./useGetChains.query.mjs";
|
|
3
|
+
import { invalidateEvmTokensBalances, useGetEvmTokensBalancesQuery } from "./useGetEvmTokensBalances.query.mjs";
|
|
4
|
+
import { invalidateHistoryQuery, useGetHistoryQuery } from "./useGetHistory.query.mjs";
|
|
5
|
+
import { invalidateMvxTokensBalancesQuery, useGetMvxTokensBalancesQuery } from "./useGetMvxTokensBalances.query.mjs";
|
|
6
|
+
import { useGetRateMutation } from "./useGetRate.mutation.mjs";
|
|
7
|
+
import { useGetTokensQuery } from "./useGetTokens.query.mjs";
|
|
8
|
+
export {
|
|
9
|
+
invalidateEvmTokensBalances,
|
|
10
|
+
invalidateHistoryQuery,
|
|
11
|
+
invalidateMvxTokensBalancesQuery,
|
|
12
|
+
useGetAllTokensQuery,
|
|
13
|
+
useGetChainsQuery,
|
|
14
|
+
useGetEvmTokensBalancesQuery,
|
|
15
|
+
useGetHistoryQuery,
|
|
16
|
+
useGetMvxTokensBalancesQuery,
|
|
17
|
+
useGetRateMutation,
|
|
18
|
+
useGetTokensQuery
|
|
19
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const reactQuery = require("@tanstack/react-query");
|
|
5
|
+
const api_getTokens = require("../../api/getTokens.js");
|
|
6
|
+
const helpers_getApiURL = require("../../helpers/getApiURL.js");
|
|
7
|
+
const useGetAllTokensQuery = () => {
|
|
8
|
+
const queryFn = async () => {
|
|
9
|
+
try {
|
|
10
|
+
const { data } = await api_getTokens.getTokens({
|
|
11
|
+
url: helpers_getApiURL.getApiURL()
|
|
12
|
+
});
|
|
13
|
+
return data;
|
|
14
|
+
} catch (error) {
|
|
15
|
+
throw error;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const retry = (_failureCount, error) => {
|
|
19
|
+
var _a;
|
|
20
|
+
return ((_a = error.response) == null ? void 0 : _a.status) === 404;
|
|
21
|
+
};
|
|
22
|
+
return reactQuery.useQuery({
|
|
23
|
+
queryKey: ["all-tokens"],
|
|
24
|
+
queryFn,
|
|
25
|
+
retry,
|
|
26
|
+
refetchOnWindowFocus: false,
|
|
27
|
+
gcTime: 5 * 60 * 1e3,
|
|
28
|
+
staleTime: 0
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
exports.useGetAllTokensQuery = useGetAllTokensQuery;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { getTokens } from "../../api/getTokens.mjs";
|
|
3
|
+
import { getApiURL } from "../../helpers/getApiURL.mjs";
|
|
4
|
+
const useGetAllTokensQuery = () => {
|
|
5
|
+
const queryFn = async () => {
|
|
6
|
+
try {
|
|
7
|
+
const { data } = await getTokens({
|
|
8
|
+
url: getApiURL()
|
|
9
|
+
});
|
|
10
|
+
return data;
|
|
11
|
+
} catch (error) {
|
|
12
|
+
throw error;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const retry = (_failureCount, error) => {
|
|
16
|
+
var _a;
|
|
17
|
+
return ((_a = error.response) == null ? void 0 : _a.status) === 404;
|
|
18
|
+
};
|
|
19
|
+
return useQuery({
|
|
20
|
+
queryKey: ["all-tokens"],
|
|
21
|
+
queryFn,
|
|
22
|
+
retry,
|
|
23
|
+
refetchOnWindowFocus: false,
|
|
24
|
+
gcTime: 5 * 60 * 1e3,
|
|
25
|
+
staleTime: 0
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
useGetAllTokensQuery
|
|
30
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const reactQuery = require("@tanstack/react-query");
|
|
5
|
+
const api_getChains = require("../../api/getChains.js");
|
|
6
|
+
const helpers_getApiURL = require("../../helpers/getApiURL.js");
|
|
7
|
+
const useGetChainsQuery = () => {
|
|
8
|
+
const queryFn = async () => {
|
|
9
|
+
try {
|
|
10
|
+
const { data } = await api_getChains.getChains({
|
|
11
|
+
url: helpers_getApiURL.getApiURL()
|
|
12
|
+
});
|
|
13
|
+
return data;
|
|
14
|
+
} catch (error) {
|
|
15
|
+
throw error;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const retry = (_failureCount, error) => {
|
|
19
|
+
var _a;
|
|
20
|
+
return ((_a = error.response) == null ? void 0 : _a.status) === 404;
|
|
21
|
+
};
|
|
22
|
+
return reactQuery.useQuery({
|
|
23
|
+
queryKey: ["chains"],
|
|
24
|
+
queryFn,
|
|
25
|
+
retry,
|
|
26
|
+
refetchOnWindowFocus: false,
|
|
27
|
+
gcTime: 5 * 60 * 1e3,
|
|
28
|
+
staleTime: 0
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
exports.useGetChainsQuery = useGetChainsQuery;
|