@layerswap/widget 1.0.6 → 1.1.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/dist/esm/Models/LayerSwapSettings.js +0 -1
- package/dist/esm/Models/Theme.js +39 -0
- package/dist/esm/components/Buttons/submitButton.js +2 -1
- package/dist/esm/components/Common/ConnectWalletButton.js +9 -3
- package/dist/esm/components/Common/CountDownTimer.js +0 -1
- package/dist/esm/components/Common/WarningMessage.js +4 -2
- package/dist/esm/components/Common/guideLink.js +4 -6
- package/dist/esm/components/ErrorFallback.js +12 -12
- package/dist/esm/components/HeaderWithMenu.js +1 -1
- package/dist/esm/components/Icons/CircularLoader.js +5 -0
- package/dist/esm/components/Icons/FailIcon.js +2 -2
- package/dist/esm/components/Icons/GlobeIcon.js +3 -0
- package/dist/esm/components/Icons/MenuIcon.js +5 -0
- package/dist/esm/components/Icons/TokenIcon.js +1 -1
- package/dist/esm/components/Icons/Wallets/index.js +0 -1
- package/dist/esm/components/Input/Address/AddressNote.js +2 -2
- package/dist/esm/components/Input/Address/AddressPicker/AddressWithIcon.js +5 -2
- package/dist/esm/components/Input/Address/AddressPicker/index.js +15 -12
- package/dist/esm/components/Input/Address/ContractAddressNote.js +17 -0
- package/dist/esm/components/Input/Address/UrlAddressNote.js +10 -0
- package/dist/esm/components/Input/Amount/Balance.js +1 -1
- package/dist/esm/components/Input/Amount/ExchangeReceiveAmount.js +8 -0
- package/dist/esm/components/Input/Amount/MinMax.js +1 -1
- package/dist/esm/components/Input/Amount/PriceImpact.js +5 -40
- package/dist/esm/components/Input/Amount/ReceiveAmount.js +2 -2
- package/dist/esm/components/Input/Amount/index.js +3 -3
- package/dist/esm/components/Input/DestinationPicker.js +2 -2
- package/dist/esm/components/Input/RoutePicker/Content.js +19 -3
- package/dist/esm/components/Input/RoutePicker/RouteTokenSwitch.js +4 -4
- package/dist/esm/components/Input/RoutePicker/RouterPickerWalletConnect.js +5 -5
- package/dist/esm/components/Input/RoutePicker/Routes.js +27 -26
- package/dist/esm/components/Input/RoutePicker/Rows/CollapsableHeader.js +2 -2
- package/dist/esm/components/Input/RoutePicker/Rows/CollapsibleRow.js +3 -3
- package/dist/esm/components/Input/RoutePicker/Rows/StickyHeader.js +2 -2
- package/dist/esm/components/Input/RoutePicker/Rows/SuggestionsHeader.js +55 -0
- package/dist/esm/components/Input/RoutePicker/Rows/TitleRow.js +11 -0
- package/dist/esm/components/Input/RoutePicker/Rows/index.js +5 -6
- package/dist/esm/components/Input/RoutePicker/TokenTitleDetails.js +10 -0
- package/dist/esm/components/Input/RoutePicker/index.js +2 -2
- package/dist/esm/components/Input/SourceWalletPicker.js +6 -4
- package/dist/esm/components/Menu/MenuList.js +11 -19
- package/dist/esm/components/Menu/index.js +16 -7
- package/dist/esm/components/Modal/modalWithoutAnimation.js +3 -3
- package/dist/esm/components/Pages/Campaigns/Details/Leaderboard.js +2 -2
- package/dist/esm/components/Pages/Campaigns/Details/Rewards.js +2 -2
- package/dist/esm/components/Pages/Campaigns/Details/index.js +3 -4
- package/dist/esm/components/Pages/Campaigns/index.js +3 -4
- package/dist/esm/components/Pages/Swap/Form/ExchangeForm.js +21 -19
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/Rate.js +6 -4
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/Refuel.js +8 -3
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/SwapQuote/DetailedEstimates.js +51 -14
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/SwapQuote/SummaryRow.js +1 -1
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/SwapQuote/index.js +3 -3
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/index.js +10 -11
- package/dist/esm/components/Pages/Swap/Form/Form.js +27 -3
- package/dist/esm/components/Pages/Swap/Form/FormWrapper.js +35 -10
- package/dist/esm/components/Pages/Swap/Form/NetworkForm.js +13 -22
- package/dist/esm/components/Pages/Swap/Form/SecondaryComponents/FormButton.js +1 -1
- package/dist/esm/components/Pages/Swap/Form/SecondaryComponents/ReserveGasNote.js +8 -6
- package/dist/esm/components/Pages/Swap/Form/SecondaryComponents/validationError/ContractAddressValidationCache.js +19 -0
- package/dist/esm/components/Pages/Swap/Withdraw/Failed.js +12 -8
- package/dist/esm/components/Pages/Swap/Withdraw/ManualWithdraw.js +28 -9
- package/dist/esm/components/Pages/Swap/Withdraw/NotFound.js +15 -4
- package/dist/esm/components/Pages/Swap/Withdraw/Processing/Processing.js +44 -45
- package/dist/esm/components/Pages/Swap/Withdraw/Summary/Summary.js +2 -3
- package/dist/esm/components/Pages/Swap/Withdraw/Summary/index.js +2 -2
- package/dist/esm/components/Pages/Swap/Withdraw/SwapDetails.js +9 -7
- package/dist/esm/components/Pages/Swap/Withdraw/Wallet/Common/actionMessage.js +43 -0
- package/dist/esm/components/Pages/Swap/Withdraw/Wallet/Common/buttons.js +125 -71
- package/dist/esm/components/Pages/Swap/Withdraw/Wallet/index.js +56 -65
- package/dist/esm/components/Pages/Swap/Withdraw/WalletTransferButton.js +2 -2
- package/dist/esm/components/Pages/Swap/Withdraw/WalletTransferContent.js +2 -2
- package/dist/esm/components/Pages/Swap/Withdraw/Withdraw.js +3 -3
- package/dist/esm/components/Pages/Swap/Withdraw/index.js +5 -4
- package/dist/esm/components/Pages/Swap/Withdraw/messages/Message.js +4 -4
- package/dist/esm/components/Pages/Swap/Withdraw/messages/TransactionMessages.js +14 -15
- package/dist/esm/components/Pages/SwapHistory/History.js +2 -2
- package/dist/esm/components/Pages/SwapHistory/HistorySummary.js +1 -1
- package/dist/esm/components/Pages/SwapHistory/index.js +4 -4
- package/dist/esm/components/Select/Selector/SelectItem.js +1 -1
- package/dist/esm/components/Wallet/WalletComponents/ConnectedWallets.js +4 -4
- package/dist/esm/components/Wallet/WalletComponents/WalletsList.js +1 -1
- package/dist/esm/components/Wallet/WalletModal/Connector.js +2 -2
- package/dist/esm/components/Wallet/WalletModal/ConnectorsList.js +78 -125
- package/dist/esm/components/Wallet/WalletModal/InstalledExtensionNotFound.js +16 -0
- package/dist/esm/components/Wallet/WalletModal/LoadingConnect.js +27 -0
- package/dist/esm/components/Wallet/WalletModal/MultichainConnectorPicker.js +23 -0
- package/dist/esm/components/Wallet/WalletModal/ProviderPicker.js +26 -0
- package/dist/esm/components/Wallet/WalletModal/WalletQrCode.js +18 -0
- package/dist/esm/components/Wallet/WalletModal/index.js +4 -2
- package/dist/esm/components/Wallet/WalletProviders/index.js +4 -2
- package/dist/esm/components/Widget/Content.js +2 -2
- package/dist/esm/components/Widget/Footer.js +21 -21
- package/dist/esm/components/Widget/Index.js +2 -2
- package/dist/esm/components/WidgetLoading.js +9 -2
- package/dist/esm/components/shadcn/checkbox.js +1 -1
- package/dist/esm/context/ErrorProvider.js +14 -0
- package/dist/esm/context/LayerswapProvider.js +6 -5
- package/dist/esm/context/callbackProvider.js +60 -52
- package/dist/esm/context/resolverContext.js +11 -2
- package/dist/esm/context/swap.js +10 -13
- package/dist/esm/context/{balanceAccounts.js → swapAccounts.js} +17 -17
- package/dist/esm/context/validationContext.js +1 -1
- package/dist/esm/context/walletProviders.js +7 -1
- package/dist/esm/context/withdrawalContext.js +2 -2
- package/dist/esm/exports/internal.js +4 -3
- package/dist/esm/helpers/filterSourceNetworks.js +23 -0
- package/dist/esm/helpers/getSettings/getSettings.js +18 -13
- package/dist/esm/helpers/routes.js +4 -1
- package/dist/esm/hooks/useAllWithdrawalBalances.js +11 -5
- package/dist/esm/hooks/useConnectors.js +72 -0
- package/dist/esm/hooks/useFormRoutes.js +16 -8
- package/dist/esm/hooks/useFormValidation.js +5 -4
- package/dist/esm/hooks/useRouteValidation.js +1 -1
- package/dist/esm/hooks/useSwrSwaps.js +1 -1
- package/dist/esm/hooks/useTransfer.js +9 -0
- package/dist/esm/hooks/useWallet.js +7 -7
- package/dist/esm/lib/AppSettings.js +27 -16
- package/dist/esm/lib/ErrorHandler.js +6 -0
- package/dist/esm/lib/address/contractAddressResolver.js +12 -0
- package/dist/esm/lib/apiClients/layerSwapApiClient.js +19 -35
- package/dist/esm/lib/balances/balanceResolver.js +57 -11
- package/dist/esm/lib/balances/errorUtils.js +13 -0
- package/dist/esm/lib/balances/nodeErrorClassifier.js +22 -0
- package/dist/esm/lib/fees.js +50 -0
- package/dist/esm/lib/generateSwapInitialValues.js +2 -2
- package/dist/esm/lib/isNewListed.js +8 -0
- package/dist/esm/lib/knownIds.js +1 -0
- package/dist/esm/lib/resolvers/resolverService.js +19 -1
- package/dist/esm/lib/transfers/index.js +1 -0
- package/dist/esm/lib/transfers/transferResolver.js +14 -0
- package/dist/esm/stores/balanceStore.js +39 -18
- package/dist/esm/stores/contractAddressStore.js +178 -0
- package/dist/esm/stores/logStore.js +11 -0
- package/dist/esm/types/balance.js +23 -11
- package/dist/esm/types/contract.js +1 -0
- package/dist/esm/types/index.js +2 -0
- package/dist/esm/types/logEvents.js +1 -0
- package/dist/index.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/Models/Balance.d.ts +14 -2
- package/dist/types/Models/Balance.d.ts.map +1 -1
- package/dist/types/Models/LayerSwapSettings.d.ts +7 -0
- package/dist/types/Models/LayerSwapSettings.d.ts.map +1 -1
- package/dist/types/Models/Theme.d.ts.map +1 -1
- package/dist/types/components/Buttons/submitButton.d.ts +1 -1
- package/dist/types/components/Buttons/submitButton.d.ts.map +1 -1
- package/dist/types/components/Common/ConnectWalletButton.d.ts +1 -1
- package/dist/types/components/Common/ConnectWalletButton.d.ts.map +1 -1
- package/dist/types/components/Common/CountDownTimer.d.ts.map +1 -1
- package/dist/types/components/Common/WarningMessage.d.ts.map +1 -1
- package/dist/types/components/Common/guideLink.d.ts.map +1 -1
- package/dist/types/components/ErrorFallback.d.ts.map +1 -1
- package/dist/types/components/HeaderWithMenu.d.ts.map +1 -1
- package/dist/types/components/Icons/CircularLoader.d.ts +4 -0
- package/dist/types/components/Icons/CircularLoader.d.ts.map +1 -0
- package/dist/types/components/Icons/FailIcon.d.ts.map +1 -1
- package/dist/types/components/Icons/GasIcon.d.ts.map +1 -1
- package/dist/types/components/Icons/GlobeIcon.d.ts +4 -0
- package/dist/types/components/Icons/GlobeIcon.d.ts.map +1 -0
- package/dist/types/components/Icons/MenuIcon.d.ts +4 -0
- package/dist/types/components/Icons/MenuIcon.d.ts.map +1 -0
- package/dist/types/components/Icons/TokenIcon.d.ts.map +1 -1
- package/dist/types/components/Icons/Wallets/index.d.ts +0 -1
- package/dist/types/components/Icons/Wallets/index.d.ts.map +1 -1
- package/dist/types/components/Input/Address/AddressNote.d.ts +5 -5
- package/dist/types/components/Input/Address/AddressNote.d.ts.map +1 -1
- package/dist/types/components/Input/Address/AddressPicker/AddressBook.d.ts +3 -3
- package/dist/types/components/Input/Address/AddressPicker/AddressButton.d.ts +3 -3
- package/dist/types/components/Input/Address/AddressPicker/AddressWithIcon.d.ts +3 -2
- package/dist/types/components/Input/Address/AddressPicker/AddressWithIcon.d.ts.map +1 -1
- package/dist/types/components/Input/Address/AddressPicker/ConnectedWallets.d.ts +2 -2
- package/dist/types/components/Input/Address/AddressPicker/ManualAddressInput.d.ts +4 -4
- package/dist/types/components/Input/Address/AddressPicker/index.d.ts +4 -4
- package/dist/types/components/Input/Address/AddressPicker/index.d.ts.map +1 -1
- package/dist/types/components/Input/Address/ContractAddressNote.d.ts +9 -0
- package/dist/types/components/Input/Address/ContractAddressNote.d.ts.map +1 -0
- package/dist/types/components/Input/Address/UrlAddressNote.d.ts +10 -0
- package/dist/types/components/Input/Address/UrlAddressNote.d.ts.map +1 -0
- package/dist/types/components/Input/Address/index.d.ts +1 -1
- package/dist/types/components/Input/Amount/Balance.d.ts +1 -1
- package/dist/types/components/Input/Amount/Balance.d.ts.map +1 -1
- package/dist/types/components/Input/Amount/ExchangeReceiveAmount.d.ts +11 -0
- package/dist/types/components/Input/Amount/ExchangeReceiveAmount.d.ts.map +1 -0
- package/dist/types/components/Input/Amount/MinMax.d.ts +1 -1
- package/dist/types/components/Input/Amount/PriceImpact.d.ts +3 -6
- package/dist/types/components/Input/Amount/PriceImpact.d.ts.map +1 -1
- package/dist/types/components/Input/Amount/ReceiveAmount.d.ts +2 -3
- package/dist/types/components/Input/Amount/ReceiveAmount.d.ts.map +1 -1
- package/dist/types/components/Input/Amount/helpers.d.ts +2 -2
- package/dist/types/components/Input/Amount/index.d.ts +1 -1
- package/dist/types/components/Input/CexPicker.d.ts +1 -1
- package/dist/types/components/Input/DestinationPicker.d.ts +1 -1
- package/dist/types/components/Input/DestinationPicker.d.ts.map +1 -1
- package/dist/types/components/Input/RoutePicker/Content.d.ts +5 -5
- package/dist/types/components/Input/RoutePicker/Content.d.ts.map +1 -1
- package/dist/types/components/Input/RoutePicker/RouterPickerWalletConnect.d.ts +1 -1
- package/dist/types/components/Input/RoutePicker/RouterPickerWalletConnect.d.ts.map +1 -1
- package/dist/types/components/Input/RoutePicker/Routes.d.ts +4 -8
- package/dist/types/components/Input/RoutePicker/Routes.d.ts.map +1 -1
- package/dist/types/components/Input/RoutePicker/Rows/CollapsableHeader.d.ts +3 -4
- package/dist/types/components/Input/RoutePicker/Rows/CollapsableHeader.d.ts.map +1 -1
- package/dist/types/components/Input/RoutePicker/Rows/CollapsibleRow.d.ts +6 -5
- package/dist/types/components/Input/RoutePicker/Rows/CollapsibleRow.d.ts.map +1 -1
- package/dist/types/components/Input/RoutePicker/Rows/StickyHeader.d.ts +3 -4
- package/dist/types/components/Input/RoutePicker/Rows/StickyHeader.d.ts.map +1 -1
- package/dist/types/components/Input/RoutePicker/Rows/SuggestionsHeader.d.ts +7 -0
- package/dist/types/components/Input/RoutePicker/Rows/SuggestionsHeader.d.ts.map +1 -0
- package/dist/types/components/Input/RoutePicker/Rows/TitleRow.d.ts +7 -0
- package/dist/types/components/Input/RoutePicker/Rows/TitleRow.d.ts.map +1 -0
- package/dist/types/components/Input/RoutePicker/Rows/index.d.ts +5 -5
- package/dist/types/components/Input/RoutePicker/Rows/index.d.ts.map +1 -1
- package/dist/types/components/Input/RoutePicker/TokenTitleDetails.d.ts +18 -0
- package/dist/types/components/Input/RoutePicker/TokenTitleDetails.d.ts.map +1 -0
- package/dist/types/components/Input/RoutePicker/index.d.ts +1 -1
- package/dist/types/components/Input/RoutePicker/index.d.ts.map +1 -1
- package/dist/types/components/Input/SourcePicker.d.ts +1 -1
- package/dist/types/components/Input/SourceWalletPicker.d.ts.map +1 -1
- package/dist/types/components/Menu/MenuList.d.ts.map +1 -1
- package/dist/types/components/Menu/index.d.ts.map +1 -1
- package/dist/types/components/Modal/modalWithoutAnimation.d.ts +4 -2
- package/dist/types/components/Modal/modalWithoutAnimation.d.ts.map +1 -1
- package/dist/types/components/Pages/Campaigns/Details/Leaderboard.d.ts +1 -1
- package/dist/types/components/Pages/Campaigns/Details/Rewards.d.ts +1 -1
- package/dist/types/components/Pages/Campaigns/Details/index.d.ts +1 -2
- package/dist/types/components/Pages/Campaigns/Details/index.d.ts.map +1 -1
- package/dist/types/components/Pages/Campaigns/index.d.ts +2 -3
- package/dist/types/components/Pages/Campaigns/index.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/ExchangeForm.d.ts +3 -1
- package/dist/types/components/Pages/Swap/Form/ExchangeForm.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/FeeDetails/Rate.d.ts +7 -6
- package/dist/types/components/Pages/Swap/Form/FeeDetails/Rate.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/FeeDetails/ReceiveAmounts.d.ts +2 -2
- package/dist/types/components/Pages/Swap/Form/FeeDetails/Refuel.d.ts +1 -2
- package/dist/types/components/Pages/Swap/Form/FeeDetails/Refuel.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/FeeDetails/RefuelModal.d.ts +1 -1
- package/dist/types/components/Pages/Swap/Form/FeeDetails/Slippage.d.ts +1 -1
- package/dist/types/components/Pages/Swap/Form/FeeDetails/SwapQuote/DetailedEstimates.d.ts +3 -2
- package/dist/types/components/Pages/Swap/Form/FeeDetails/SwapQuote/DetailedEstimates.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/FeeDetails/SwapQuote/SummaryRow.d.ts +4 -4
- package/dist/types/components/Pages/Swap/Form/FeeDetails/SwapQuote/index.d.ts +4 -4
- package/dist/types/components/Pages/Swap/Form/FeeDetails/SwapQuote/index.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/FeeDetails/SwapQuote/utils.d.ts +2 -2
- package/dist/types/components/Pages/Swap/Form/FeeDetails/index.d.ts +7 -4
- package/dist/types/components/Pages/Swap/Form/FeeDetails/index.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/Form.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/FormWrapper.d.ts +1 -1
- package/dist/types/components/Pages/Swap/Form/FormWrapper.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/NetworkForm.d.ts +1 -1
- package/dist/types/components/Pages/Swap/Form/NetworkForm.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/SecondaryComponents/FormButton.d.ts +1 -1
- package/dist/types/components/Pages/Swap/Form/SecondaryComponents/FormButton.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/SecondaryComponents/ReserveGasNote.d.ts +2 -2
- package/dist/types/components/Pages/Swap/Form/SecondaryComponents/ReserveGasNote.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Form/SecondaryComponents/validationError/ContractAddressValidationCache.d.ts +10 -0
- package/dist/types/components/Pages/Swap/Form/SecondaryComponents/validationError/ContractAddressValidationCache.d.ts.map +1 -0
- package/dist/types/components/Pages/Swap/Form/SecondaryComponents/validationError/ErrorDisplay.d.ts +1 -1
- package/dist/types/components/Pages/Swap/Form/SwapFormValues.d.ts +2 -2
- package/dist/types/components/Pages/Swap/Withdraw/Failed.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/ManualWithdraw.d.ts +4 -3
- package/dist/types/components/Pages/Swap/Withdraw/ManualWithdraw.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/NotFound.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/Processing/Processing.d.ts +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/Processing/Processing.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/QuoteUpdate.d.ts +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/Summary/Summary.d.ts +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/Summary/Summary.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/SwapDetails.d.ts +2 -1
- package/dist/types/components/Pages/Swap/Withdraw/SwapDetails.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/SwapQuoteDetails.d.ts +3 -3
- package/dist/types/components/Pages/Swap/Withdraw/Wallet/Common/actionMessage.d.ts +6 -0
- package/dist/types/components/Pages/Swap/Withdraw/Wallet/Common/actionMessage.d.ts.map +1 -0
- package/dist/types/components/Pages/Swap/Withdraw/Wallet/Common/buttons.d.ts +4 -3
- package/dist/types/components/Pages/Swap/Withdraw/Wallet/Common/buttons.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/Wallet/Common/sharedTypes.d.ts +2 -1
- package/dist/types/components/Pages/Swap/Withdraw/Wallet/Common/sharedTypes.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/Wallet/index.d.ts +2 -1
- package/dist/types/components/Pages/Swap/Withdraw/Wallet/index.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/WalletTransferButton.d.ts +2 -1
- package/dist/types/components/Pages/Swap/Withdraw/WalletTransferButton.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/WalletTransferContent.d.ts +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/Withdraw.d.ts +2 -1
- package/dist/types/components/Pages/Swap/Withdraw/Withdraw.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/index.d.ts +1 -2
- package/dist/types/components/Pages/Swap/Withdraw/index.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/messages/Message.d.ts.map +1 -1
- package/dist/types/components/Pages/Swap/Withdraw/messages/TransactionMessages.d.ts +3 -4
- package/dist/types/components/Pages/Swap/Withdraw/messages/TransactionMessages.d.ts.map +1 -1
- package/dist/types/components/Pages/SwapHistory/HistorySummary.d.ts +2 -2
- package/dist/types/components/Pages/SwapHistory/HistorySummary.d.ts.map +1 -1
- package/dist/types/components/Pages/SwapHistory/StatusIcons.d.ts +1 -1
- package/dist/types/components/Pages/SwapHistory/SwapDetailsComponent.d.ts +1 -1
- package/dist/types/components/Pages/SwapHistory/index.d.ts +3 -1
- package/dist/types/components/Pages/SwapHistory/index.d.ts.map +1 -1
- package/dist/types/components/Select/Command/commandSelect.d.ts.map +1 -1
- package/dist/types/components/Select/Selector/SelectItem.d.ts.map +1 -1
- package/dist/types/components/Wallet/WalletComponents/WalletsList.d.ts +3 -3
- package/dist/types/components/Wallet/WalletComponents/WalletsList.d.ts.map +1 -1
- package/dist/types/components/Wallet/WalletModal/Connector.d.ts +2 -1
- package/dist/types/components/Wallet/WalletModal/Connector.d.ts.map +1 -1
- package/dist/types/components/Wallet/WalletModal/ConnectorsList.d.ts +1 -1
- package/dist/types/components/Wallet/WalletModal/ConnectorsList.d.ts.map +1 -1
- package/dist/types/components/Wallet/WalletModal/InstalledExtensionNotFound.d.ts +7 -0
- package/dist/types/components/Wallet/WalletModal/InstalledExtensionNotFound.d.ts.map +1 -0
- package/dist/types/components/Wallet/WalletModal/LoadingConnect.d.ts +8 -0
- package/dist/types/components/Wallet/WalletModal/LoadingConnect.d.ts.map +1 -0
- package/dist/types/components/Wallet/WalletModal/MultichainConnectorPicker.d.ts +12 -0
- package/dist/types/components/Wallet/WalletModal/MultichainConnectorPicker.d.ts.map +1 -0
- package/dist/types/components/Wallet/WalletModal/ProviderPicker.d.ts +8 -0
- package/dist/types/components/Wallet/WalletModal/ProviderPicker.d.ts.map +1 -0
- package/dist/types/components/Wallet/WalletModal/WalletQrCode.d.ts +6 -0
- package/dist/types/components/Wallet/WalletModal/WalletQrCode.d.ts.map +1 -0
- package/dist/types/components/Wallet/WalletModal/index.d.ts +2 -1
- package/dist/types/components/Wallet/WalletModal/index.d.ts.map +1 -1
- package/dist/types/components/Wallet/WalletProviders/index.d.ts +3 -1
- package/dist/types/components/Wallet/WalletProviders/index.d.ts.map +1 -1
- package/dist/types/components/Widget/Content.d.ts +2 -1
- package/dist/types/components/Widget/Content.d.ts.map +1 -1
- package/dist/types/components/Widget/Footer.d.ts +2 -1
- package/dist/types/components/Widget/Footer.d.ts.map +1 -1
- package/dist/types/components/Widget/Index.d.ts +3 -2
- package/dist/types/components/Widget/Index.d.ts.map +1 -1
- package/dist/types/components/WidgetLoading.d.ts.map +1 -1
- package/dist/types/components/shadcn/command.d.ts +9 -52
- package/dist/types/components/shadcn/command.d.ts.map +1 -1
- package/dist/types/context/ErrorProvider.d.ts +3 -0
- package/dist/types/context/ErrorProvider.d.ts.map +1 -0
- package/dist/types/context/LayerswapProvider.d.ts +22 -4
- package/dist/types/context/LayerswapProvider.d.ts.map +1 -1
- package/dist/types/context/callbackProvider.d.ts +7 -10
- package/dist/types/context/callbackProvider.d.ts.map +1 -1
- package/dist/types/context/resolverContext.d.ts.map +1 -1
- package/dist/types/context/swap.d.ts +7 -7
- package/dist/types/context/swap.d.ts.map +1 -1
- package/dist/types/context/{balanceAccounts.d.ts → swapAccounts.d.ts} +9 -9
- package/dist/types/context/swapAccounts.d.ts.map +1 -0
- package/dist/types/context/walletProviders.d.ts.map +1 -1
- package/dist/types/context/withdrawalContext.d.ts +2 -0
- package/dist/types/context/withdrawalContext.d.ts.map +1 -1
- package/dist/types/exports/internal.d.ts +9 -7
- package/dist/types/exports/internal.d.ts.map +1 -1
- package/dist/types/helpers/accountSelectHelper.d.ts +1 -1
- package/dist/types/helpers/balanceHelper.d.ts +2 -2
- package/dist/types/helpers/filterSourceNetworks.d.ts +4 -0
- package/dist/types/helpers/filterSourceNetworks.d.ts.map +1 -0
- package/dist/types/helpers/getSettings/getSettings.d.ts +1 -1
- package/dist/types/helpers/getSettings/getSettings.d.ts.map +1 -1
- package/dist/types/helpers/routes.d.ts +1 -1
- package/dist/types/helpers/routes.d.ts.map +1 -1
- package/dist/types/helpers/tokenHelper.d.ts +2 -2
- package/dist/types/hooks/useAllWithdrawalBalances.d.ts +2 -1
- package/dist/types/hooks/useAllWithdrawalBalances.d.ts.map +1 -1
- package/dist/types/hooks/useConnectors.d.ts +28 -0
- package/dist/types/hooks/useConnectors.d.ts.map +1 -0
- package/dist/types/hooks/useFee.d.ts +1 -1
- package/dist/types/hooks/useFormRoutes.d.ts +2 -3
- package/dist/types/hooks/useFormRoutes.d.ts.map +1 -1
- package/dist/types/hooks/useFormValidation.d.ts +2 -1
- package/dist/types/hooks/useFormValidation.d.ts.map +1 -1
- package/dist/types/hooks/useSwapHistoryData.d.ts +2 -2
- package/dist/types/hooks/useTransfer.d.ts +5 -0
- package/dist/types/hooks/useTransfer.d.ts.map +1 -0
- package/dist/types/hooks/useWallet.d.ts +3 -3
- package/dist/types/hooks/useWallet.d.ts.map +1 -1
- package/dist/types/lib/AppSettings.d.ts +25 -16
- package/dist/types/lib/AppSettings.d.ts.map +1 -1
- package/dist/types/lib/ErrorHandler.d.ts +3 -0
- package/dist/types/lib/ErrorHandler.d.ts.map +1 -0
- package/dist/types/lib/address/contractAddressResolver.d.ts +7 -0
- package/dist/types/lib/address/contractAddressResolver.d.ts.map +1 -0
- package/dist/types/lib/apiClients/layerSwapApiClient.d.ts +1 -9
- package/dist/types/lib/apiClients/layerSwapApiClient.d.ts.map +1 -1
- package/dist/types/lib/balances/balanceResolver.d.ts +3 -3
- package/dist/types/lib/balances/balanceResolver.d.ts.map +1 -1
- package/dist/types/lib/balances/errorUtils.d.ts +12 -0
- package/dist/types/lib/balances/errorUtils.d.ts.map +1 -0
- package/dist/types/lib/balances/helpers.d.ts +1 -1
- package/dist/types/lib/balances/nodeErrorClassifier.d.ts +4 -0
- package/dist/types/lib/balances/nodeErrorClassifier.d.ts.map +1 -0
- package/dist/types/lib/balances/useBalance.d.ts +1 -1
- package/dist/types/lib/fees.d.ts +16 -0
- package/dist/types/lib/fees.d.ts.map +1 -1
- package/dist/types/lib/gases/gasResolver.d.ts +2 -2
- package/dist/types/lib/gases/useSWRGas.d.ts +3 -3
- package/dist/types/lib/generateSwapInitialValues.d.ts +1 -1
- package/dist/types/lib/isNewListed.d.ts +4 -0
- package/dist/types/lib/isNewListed.d.ts.map +1 -0
- package/dist/types/lib/knownIds.d.ts +1 -0
- package/dist/types/lib/knownIds.d.ts.map +1 -1
- package/dist/types/lib/nft/nftBalanceResolver.d.ts +1 -1
- package/dist/types/lib/resolvers/resolverService.d.ts +11 -5
- package/dist/types/lib/resolvers/resolverService.d.ts.map +1 -1
- package/dist/types/lib/transfers/index.d.ts +2 -0
- package/dist/types/lib/transfers/index.d.ts.map +1 -0
- package/dist/types/lib/transfers/transferResolver.d.ts +7 -0
- package/dist/types/lib/transfers/transferResolver.d.ts.map +1 -0
- package/dist/types/stores/balanceStore.d.ts +3 -0
- package/dist/types/stores/balanceStore.d.ts.map +1 -1
- package/dist/types/stores/contractAddressStore.d.ts +43 -0
- package/dist/types/stores/contractAddressStore.d.ts.map +1 -0
- package/dist/types/stores/logStore.d.ts +8 -0
- package/dist/types/stores/logStore.d.ts.map +1 -0
- package/dist/types/stores/walletStore.d.ts +1 -1
- package/dist/types/types/balance.d.ts +2 -2
- package/dist/types/types/balance.d.ts.map +1 -1
- package/dist/types/types/contract.d.ts +6 -0
- package/dist/types/types/contract.d.ts.map +1 -0
- package/dist/types/types/gas.d.ts +2 -2
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/logEvents.d.ts +59 -0
- package/dist/types/types/logEvents.d.ts.map +1 -0
- package/dist/types/types/nft.d.ts +1 -1
- package/dist/types/types/transfer.d.ts +7 -2
- package/dist/types/types/transfer.d.ts.map +1 -1
- package/dist/types/types/wallet.d.ts +29 -8
- package/dist/types/types/wallet.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/esm/components/Icons/Wallets/Keplr.js +0 -3
- package/dist/esm/components/Modal/popover.js +0 -15
- package/dist/esm/components/Wallet/WalletModal/utils.js +0 -23
- package/dist/esm/helpers/querryHelper.js +0 -13
- package/dist/esm/lib/logError.js +0 -17
- package/dist/esm/lib/sorting.js +0 -63
- package/dist/types/components/Icons/Wallets/Keplr.d.ts +0 -4
- package/dist/types/components/Icons/Wallets/Keplr.d.ts.map +0 -1
- package/dist/types/components/Modal/popover.d.ts +0 -12
- package/dist/types/components/Modal/popover.d.ts.map +0 -1
- package/dist/types/components/Wallet/WalletModal/utils.d.ts +0 -2
- package/dist/types/components/Wallet/WalletModal/utils.d.ts.map +0 -1
- package/dist/types/context/balanceAccounts.d.ts.map +0 -1
- package/dist/types/helpers/querryHelper.d.ts +0 -3
- package/dist/types/helpers/querryHelper.d.ts.map +0 -1
- package/dist/types/lib/logError.d.ts +0 -3
- package/dist/types/lib/logError.d.ts.map +0 -1
- package/dist/types/lib/sorting.d.ts +0 -22
- package/dist/types/lib/sorting.d.ts.map +0 -1
|
@@ -1,56 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
loop?: boolean;
|
|
12
|
-
vimBindings?: boolean;
|
|
13
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const CommandWrapper: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
} & React.HTMLAttributes<HTMLDivElement> & {
|
|
17
|
-
label?: string;
|
|
18
|
-
shouldFilter?: boolean;
|
|
19
|
-
filter?: (value: string, search: string) => number;
|
|
20
|
-
defaultValue?: string;
|
|
21
|
-
value?: string;
|
|
22
|
-
onValueChange?: (value: string) => void;
|
|
23
|
-
loop?: boolean;
|
|
24
|
-
vimBindings?: boolean;
|
|
25
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> & {
|
|
27
|
-
value?: string;
|
|
28
|
-
onValueChange?: (search: string) => void;
|
|
29
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
30
|
-
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
31
|
-
children?: React.ReactNode;
|
|
32
|
-
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
34
|
-
children?: React.ReactNode;
|
|
35
|
-
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
-
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
37
|
-
children?: React.ReactNode;
|
|
38
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "heading"> & {
|
|
39
|
-
heading?: React.ReactNode;
|
|
40
|
-
value?: string;
|
|
41
|
-
forceMount?: boolean;
|
|
42
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
-
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & {
|
|
44
|
-
alwaysRender?: boolean;
|
|
45
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
-
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
47
|
-
children?: React.ReactNode;
|
|
48
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "onSelect" | "disabled"> & {
|
|
49
|
-
disabled?: boolean;
|
|
50
|
-
onSelect?: (value: string) => void;
|
|
51
|
-
value?: string;
|
|
52
|
-
forceMount?: boolean;
|
|
53
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
3
|
+
declare const Command: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof CommandPrimitive> & React.RefAttributes<React.ElementRef<typeof CommandPrimitive>>>;
|
|
4
|
+
declare const CommandWrapper: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof Command> & React.RefAttributes<React.ElementRef<typeof Command>>>;
|
|
5
|
+
declare const CommandInput: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input> & React.RefAttributes<React.ElementRef<typeof CommandPrimitive.Input>>>;
|
|
6
|
+
declare const CommandList: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof CommandPrimitive.List> & React.RefAttributes<React.ElementRef<typeof CommandPrimitive.List>>>;
|
|
7
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty> & React.RefAttributes<React.ElementRef<typeof CommandPrimitive.Empty>>>;
|
|
8
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group> & React.RefAttributes<React.ElementRef<typeof CommandPrimitive.Group>>>;
|
|
9
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator> & React.RefAttributes<React.ElementRef<typeof CommandPrimitive.Separator>>>;
|
|
10
|
+
declare const CommandItem: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item> & React.RefAttributes<React.ElementRef<typeof CommandPrimitive.Item>>>;
|
|
54
11
|
declare const CommandShortcut: {
|
|
55
12
|
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
56
13
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/components/shadcn/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/components/shadcn/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAA;AAGlD,QAAA,MAAM,OAAO,EAYP,KAAK,CAAC,yBAAyB,CACnC,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CACzH,CAAA;AAID,QAAA,MAAM,cAAc,EASd,KAAK,CAAC,yBAAyB,CACnC,KAAK,CAAC,wBAAwB,CAAC,OAAO,OAAO,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CACvG,CAAA;AAED,QAAA,MAAM,YAAY,EAYZ,KAAK,CAAC,yBAAyB,CACnC,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC,CACrI,CAAA;AAID,QAAA,MAAM,WAAW,EASX,KAAK,CAAC,yBAAyB,CACnC,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAA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@@
|
|
|
1
|
+
{"version":3,"file":"ErrorProvider.d.ts","sourceRoot":"","sources":["../../../src/context/ErrorProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAC;AAMxD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAS3D,CAAC"}
|
|
@@ -11,10 +11,7 @@ export type LayerswapWidgetConfig = {
|
|
|
11
11
|
settings?: LayerSwapSettings;
|
|
12
12
|
theme?: ThemeData | null;
|
|
13
13
|
initialValues?: InitialSettings;
|
|
14
|
-
|
|
15
|
-
imtblPassport?: typeof AppSettings.ImtblPassportConfig;
|
|
16
|
-
tonConfigs?: typeof AppSettings.TonClientConfig;
|
|
17
|
-
};
|
|
14
|
+
} & WalletsConfigs;
|
|
18
15
|
export type LayerswapContextProps = {
|
|
19
16
|
children?: ReactNode;
|
|
20
17
|
callbacks?: CallbacksContextType;
|
|
@@ -23,5 +20,26 @@ export type LayerswapContextProps = {
|
|
|
23
20
|
};
|
|
24
21
|
declare const LayerswapProviderComponent: FC<LayerswapContextProps>;
|
|
25
22
|
export declare const LayerswapProvider: typeof LayerswapProviderComponent;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Pass wallet configurations directly to the wallet provider factories instead.
|
|
25
|
+
* - For walletConnect: use `createEVMProvider({ walletConnectConfigs })`, `createSVMProvider({ walletConnectConfigs })`, etc.
|
|
26
|
+
* - For imtblPassport: use `createImmutablePassportProvider({ imtblPassportConfig })`
|
|
27
|
+
* - For tonConfigs: use `createTONProvider({ tonConfigs })`
|
|
28
|
+
* This type will be removed in a future version.
|
|
29
|
+
*/
|
|
30
|
+
type WalletsConfigs = {
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Pass `walletConnectConfigs` directly to wallet provider factories
|
|
33
|
+
*/
|
|
34
|
+
walletConnect?: typeof AppSettings.WalletConnectConfig;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Pass `imtblPassportConfig` to `createImmutablePassportProvider({ imtblPassportConfig })`
|
|
37
|
+
*/
|
|
38
|
+
imtblPassport?: typeof AppSettings.ImtblPassportConfig;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Pass `tonConfigs` to `createTONProvider({ tonConfigs })`
|
|
41
|
+
*/
|
|
42
|
+
tonConfigs?: typeof AppSettings.TonClientConfig;
|
|
43
|
+
};
|
|
26
44
|
export {};
|
|
27
45
|
//# sourceMappingURL=LayerswapProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerswapProvider.d.ts","sourceRoot":"","sources":["../../../src/context/LayerswapProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAA;AAK1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LayerswapProvider.d.ts","sourceRoot":"","sources":["../../../src/context/LayerswapProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAA;AAK1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAgB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGzD,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAM5C,OAAO,EAAoB,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIzC,MAAM,MAAM,qBAAqB,GAAG;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC/B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACzB,aAAa,CAAC,EAAE,eAAe,CAAC;CACnC,GAAG,cAAc,CAAA;AAElB,MAAM,MAAM,qBAAqB,GAAG;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,oBAAoB,CAAA;IAChC,MAAM,CAAC,EAAE,qBAAqB,CAAA;IAC9B,eAAe,CAAC,EAAE,cAAc,EAAE,CAAA;CACrC,CAAA;AAGD,QAAA,MAAM,0BAA0B,EAAE,EAAE,CAAC,qBAAqB,CAsDzD,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,OAAO,0BActC,CAAA;AAED;;;;;;GAMG;AACH,KAAK,cAAc,GAAG;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,WAAW,CAAC,mBAAmB,CAAA;IACtD;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,WAAW,CAAC,mBAAmB,CAAA;IACtD;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,WAAW,CAAC,eAAe,CAAA;CAClD,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { SwapFormValues } from '
|
|
2
|
-
import { SwapResponse } from '
|
|
1
|
+
import { SwapFormValues } from '../components/Pages/Swap/Form/SwapFormValues';
|
|
2
|
+
import { SwapResponse } from '../lib/apiClients/layerSwapApiClient';
|
|
3
|
+
import { ErrorEventType, SwapStatusEvent } from '../../types';
|
|
3
4
|
import { ReactNode } from 'react';
|
|
4
5
|
export interface CallbacksContextType {
|
|
5
6
|
onFormChange?: (formData: SwapFormValues) => void;
|
|
@@ -7,18 +8,14 @@ export interface CallbacksContextType {
|
|
|
7
8
|
onSwapComplete?: (swapData: SwapResponse) => void;
|
|
8
9
|
onSwapModalStateChange?: (open: boolean) => void;
|
|
9
10
|
onBackClick?: () => void;
|
|
10
|
-
onError?: (error:
|
|
11
|
+
onError?: (error: ErrorEventType) => void;
|
|
12
|
+
onSwapStatusChange?: (event: SwapStatusEvent) => void;
|
|
13
|
+
onMenuNavigationChange?: (path: string) => void;
|
|
11
14
|
}
|
|
12
15
|
export interface CallbackProviderProps {
|
|
13
16
|
children: ReactNode;
|
|
14
17
|
callbacks?: CallbacksContextType;
|
|
15
18
|
}
|
|
16
19
|
export declare function CallbackProvider({ children, callbacks }: CallbackProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare function useCallbacks(): CallbacksContextType
|
|
18
|
-
export declare function useFormChangeCallback(): (formData: SwapFormValues) => void;
|
|
19
|
-
export declare function useSwapCreateCallback(): (swapData: SwapResponse) => void;
|
|
20
|
-
export declare function useSwapCompleteCallback(): (swapData: SwapResponse) => void;
|
|
21
|
-
export declare function useSwapModalStateChangeCallback(): (open: boolean) => void;
|
|
22
|
-
export declare function useBackClickCallback(): () => void;
|
|
23
|
-
export declare function useErrorCallback(): (error: any) => void;
|
|
20
|
+
export declare function useCallbacks(): Required<CallbacksContextType>;
|
|
24
21
|
//# sourceMappingURL=callbackProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callbackProvider.d.ts","sourceRoot":"","sources":["../../../src/context/callbackProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAClE,OAAO,EAA6B,SAAS,
|
|
1
|
+
{"version":3,"file":"callbackProvider.d.ts","sourceRoot":"","sources":["../../../src/context/callbackProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzD,OAAO,EAA6B,SAAS,EAAwB,MAAM,OAAO,CAAA;AAGlF,MAAM,WAAW,oBAAoB;IACjC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAA;IACjD,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAA;IAC/C,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAA;IACjD,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;IACzC,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAA;IACrD,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAClD;AAED,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,oBAAoB,CAAA;CACnC;AAID,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,qBAAqB,2CAkB9E;AAED,wBAAgB,YAAY,IAAI,QAAQ,CAAC,oBAAoB,CAAC,CAM7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolverContext.d.ts","sourceRoot":"","sources":["../../../src/context/resolverContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"resolverContext.d.ts","sourceRoot":"","sources":["../../../src/context/resolverContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,cAAc,EAAqH,MAAM,SAAS,CAAC;AAG5J,KAAK,mBAAmB,GAAG;IACvB,aAAa,EAAE,OAAO,CAAC;CAC1B,CAAC;AAIF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC;IAAE,eAAe,EAAE,cAAc,EAAE,CAAA;CAAE,CAAC,CAkDtG,CAAC;AAEF,eAAO,MAAM,YAAY,2BAMxB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Context } from 'react';
|
|
2
|
-
import { SwapTransaction, WithdrawType, SwapResponse, DepositAction, SwapBasicData, SwapQuote, Refuel, SwapDetails } from '
|
|
3
|
-
import { InitialSettings } from '
|
|
2
|
+
import { SwapTransaction, WithdrawType, SwapResponse, DepositAction, SwapBasicData, SwapQuote, Refuel, SwapDetails } from '../lib/apiClients/layerSwapApiClient';
|
|
3
|
+
import { InitialSettings } from '../Models/InitialSettings';
|
|
4
4
|
import { KeyedMutator } from 'swr';
|
|
5
|
-
import { ApiResponse } from '
|
|
6
|
-
import { Partner } from '
|
|
7
|
-
import { ApiError } from '
|
|
8
|
-
import { QuoteError } from '
|
|
9
|
-
import { SwapFormValues } from '
|
|
5
|
+
import { ApiResponse } from '../Models/ApiResponse';
|
|
6
|
+
import { Partner } from '../Models/Partner';
|
|
7
|
+
import { ApiError } from '../Models/ApiError';
|
|
8
|
+
import { QuoteError } from '../hooks/useFee';
|
|
9
|
+
import { SwapFormValues } from '../components/Pages/Swap/Form/SwapFormValues';
|
|
10
10
|
export declare const SwapDataStateContext: Context<SwapContextData>;
|
|
11
11
|
export declare const SwapDataUpdateContext: Context<UpdateSwapInterface | null>;
|
|
12
12
|
export type UpdateSwapInterface = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap.d.ts","sourceRoot":"","sources":["../../../src/context/swap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAwE,MAAM,OAAO,CAAA;AACrG,OAA2B,EAA+C,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAmB,MAAM,qCAAqC,CAAC;AAClP,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAe,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAC3C,OA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E,OAAO,CAAA;KAAE,GAAG,SAAS,CAAC;IAC/D,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,UAAU,GAAG,SAAS,CAAC;IACnC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IACrC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE;;CAAA,2CAsN5C;AAED,wBAAgB,gBAAgB,oBAO/B;AAED,wBAAgB,iBAAiB,wBAOhC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Wallet, WalletConnectionProvider } from '
|
|
2
|
-
import { SwapDirection } from '
|
|
3
|
-
import { BalanceEntry } from '
|
|
1
|
+
import { Wallet, WalletConnectionProvider } from '../types/wallet';
|
|
2
|
+
import { SwapDirection } from '../components/Pages/Swap/Form/SwapFormValues';
|
|
3
|
+
import { BalanceEntry } from '../stores/balanceStore';
|
|
4
4
|
type PickerAccountsProviderProps = {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
};
|
|
@@ -20,15 +20,15 @@ export type AccountIdentityWithSupportedNetworks = AccountIdentity & {
|
|
|
20
20
|
walletAutofillSupportedNetworks: Wallet['autofillSupportedNetworks'];
|
|
21
21
|
walletAsSourceSupportedNetworks: Wallet['asSourceSupportedNetworks'];
|
|
22
22
|
};
|
|
23
|
-
export declare function
|
|
24
|
-
export declare function
|
|
25
|
-
export declare function
|
|
26
|
-
export declare function
|
|
23
|
+
export declare function SwapAccountsProvider({ children }: PickerAccountsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function useSwapAccounts(direction: "from"): AccountIdentityWithSupportedNetworks[];
|
|
25
|
+
export declare function useSwapAccounts(direction: "to"): AccountIdentity[];
|
|
26
|
+
export declare function useSwapAccounts(direction: SwapDirection): (AccountIdentity | AccountIdentityWithSupportedNetworks)[];
|
|
27
27
|
export declare function useSelectedAccount(direction: "from", networkName: string | undefined): AccountIdentityWithSupportedNetworks | undefined;
|
|
28
28
|
export declare function useSelectedAccount(direction: "to", networkName: string | undefined): AccountIdentity | undefined;
|
|
29
29
|
export declare function useSelectedAccount(direction: SwapDirection, networkName: string | undefined): AccountIdentity | AccountIdentityWithSupportedNetworks | undefined;
|
|
30
30
|
export declare function useNetworkBalanceKey(direction: SwapDirection, networkName: string | undefined): string | undefined;
|
|
31
31
|
export declare function useNetworkBalance(direction: SwapDirection, networkName: string | undefined): BalanceEntry | undefined;
|
|
32
|
-
export declare function
|
|
32
|
+
export declare function useSelectSwapAccount(direction: SwapDirection): (account: BaseAccountIdentity) => void;
|
|
33
33
|
export {};
|
|
34
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=swapAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swapAccounts.d.ts","sourceRoot":"","sources":["../../../src/context/swapAccounts.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAA2B,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAK9E,KAAK,2BAA2B,GAAG;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAA;AAYD,KAAK,mBAAmB,GAAG;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;CACd,CAAA;AAED,MAAM,MAAM,eAAe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AAa,EAAE,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAIrH;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,aAAa,aAzKrB,mBAAmB,KAAK,IAAI,CAgLnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletProviders.d.ts","sourceRoot":"","sources":["../../../src/context/walletProviders.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"walletProviders.d.ts","sourceRoot":"","sources":["../../../src/context/walletProviders.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkE,MAAM,OAAO,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAcnE,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,GAAG;IAAE,eAAe,EAAE,cAAc,EAAE,CAAA;CAAE,CAiD7G,CAAC;AAEF,eAAO,MAAM,kBAAkB,kCAA2C,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
type WalletWithdrawalContextValue = {
|
|
3
3
|
onWalletWithdrawalSuccess?: () => void;
|
|
4
|
+
onCancelWithdrawal?: () => void;
|
|
4
5
|
};
|
|
5
6
|
export declare const WithdrawalProvider: FC<{
|
|
6
7
|
onWalletWithdrawalSuccess?: () => void;
|
|
8
|
+
onCancelWithdrawal?: () => void;
|
|
7
9
|
children?: React.ReactNode;
|
|
8
10
|
}>;
|
|
9
11
|
export declare function useWalletWithdrawalState(): WalletWithdrawalContextValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawalContext.d.ts","sourceRoot":"","sources":["../../../src/context/withdrawalContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,KAAK,4BAA4B,GAAG;IAChC,yBAAyB,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"withdrawalContext.d.ts","sourceRoot":"","sources":["../../../src/context/withdrawalContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,KAAK,4BAA4B,GAAG;IAChC,yBAAyB,CAAC,EAAE,MAAM,IAAI,CAAC;IACvC,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC,CAAA;AAID,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAAE,yBAAyB,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAM1I,CAAA;AAED,wBAAgB,wBAAwB,iCAQvC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
export { useConnectModal } from "
|
|
2
|
-
import KnownInternalNames from "
|
|
1
|
+
export { useConnectModal } from "../components/Wallet/WalletModal";
|
|
2
|
+
import KnownInternalNames from "../lib/knownIds";
|
|
3
3
|
export { KnownInternalNames };
|
|
4
|
-
import NetworkSettings from "
|
|
4
|
+
import NetworkSettings from "../lib/NetworkSettings";
|
|
5
5
|
export { NetworkSettings };
|
|
6
|
-
import logError from "../lib/logError";
|
|
7
|
-
export { logError };
|
|
8
6
|
export { insertIfNotExists } from "../lib/balances/helpers";
|
|
9
7
|
export * from "../lib/retry";
|
|
10
8
|
export { fetchWithTimeout } from "../lib/fetchWithTimeout";
|
|
@@ -18,12 +16,16 @@ export * from "../components/shadcn";
|
|
|
18
16
|
export { default as WalletMessage } from "../components/Pages/Swap/Withdraw/messages/Message";
|
|
19
17
|
export * from "../components/Buttons";
|
|
20
18
|
export * from "../components/Pages/Swap/Withdraw/Wallet/Common/buttons";
|
|
19
|
+
export * from "../components/Pages/Swap/Withdraw/Wallet/Common/actionMessage";
|
|
21
20
|
export { default as ClickTooltip } from "../components/Common/ClickTooltip";
|
|
22
|
-
export { useSelectedAccount,
|
|
23
|
-
export { default as useWallet } from "
|
|
21
|
+
export { useSelectedAccount, useSelectSwapAccount, useSwapAccounts, useNetworkBalance } from "../context/swapAccounts";
|
|
22
|
+
export { default as useWallet } from "../hooks/useWallet";
|
|
24
23
|
export * from "../lib/apiClients";
|
|
25
24
|
export * from "../lib/formatUnits";
|
|
26
25
|
export * from "../stores";
|
|
27
26
|
export { default as shortenAddress } from "../components/utils/ShortenAddress";
|
|
28
27
|
export * from "../context/swap";
|
|
28
|
+
export { useWalletProvidersList } from "../components/Wallet/WalletProviders";
|
|
29
|
+
export { ErrorHandler } from '../lib/ErrorHandler';
|
|
30
|
+
export type { ErrorEventType } from '../types/logEvents';
|
|
29
31
|
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/exports/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,kBAAkB,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAC7B,OAAO,eAAe,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,CAAA;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/exports/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,kBAAkB,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAC7B,OAAO,eAAe,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,CAAA;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAC1E,cAAc,sBAAsB,CAAA;AACpC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oDAAoD,CAAA;AAC7F,cAAc,uBAAuB,CAAA;AACrC,cAAc,yDAAyD,CAAA;AACvE,cAAc,+DAA+D,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACtH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACxD,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAC9E,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAA;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SelectAccountProps, WalletConnectionProvider } from "
|
|
1
|
+
import { SelectAccountProps, WalletConnectionProvider } from "../types/wallet";
|
|
2
2
|
export declare function SwitchWalletAccount(props: SelectAccountProps, provider: WalletConnectionProvider | undefined): void;
|
|
3
3
|
//# sourceMappingURL=accountSelectHelper.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NetworkBalance } from "
|
|
2
|
-
import { NetworkWithTokens, NetworkRoute } from "
|
|
1
|
+
import { NetworkBalance } from "../Models/Balance";
|
|
2
|
+
import { NetworkWithTokens, NetworkRoute } from "../Models/Network";
|
|
3
3
|
/**
|
|
4
4
|
* Calculates the total USD value of balances for a network
|
|
5
5
|
* Only includes balances for tokens that are present in the route's token list
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AvailableSourceNetworkTypes, LayerSwapSettings } from "../Models";
|
|
2
|
+
import { WalletConnectionProvider } from "../../types";
|
|
3
|
+
export declare function filterSourceNetworks(settings: LayerSwapSettings, walletProviders: WalletConnectionProvider[]): AvailableSourceNetworkTypes;
|
|
4
|
+
//# sourceMappingURL=filterSourceNetworks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterSourceNetworks.d.ts","sourceRoot":"","sources":["../../../src/helpers/filterSourceNetworks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGnD,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE,wBAAwB,EAAE,GAAG,2BAA2B,CA4B1I"}
|
|
@@ -3,5 +3,5 @@ export declare function getSettings(apiKey: string): Promise<{
|
|
|
3
3
|
sourceExchanges: import("../../Models").Exchange[];
|
|
4
4
|
sourceRoutes: import("../..").NetworkWithTokens[];
|
|
5
5
|
destinationRoutes: import("../..").NetworkWithTokens[];
|
|
6
|
-
} | undefined>;
|
|
6
|
+
} | null | undefined>;
|
|
7
7
|
//# sourceMappingURL=getSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSettings.d.ts","sourceRoot":"","sources":["../../../../src/helpers/getSettings/getSettings.ts"],"names":[],"mappings":"AAEA,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM;;;;;
|
|
1
|
+
{"version":3,"file":"getSettings.d.ts","sourceRoot":"","sources":["../../../../src/helpers/getSettings/getSettings.ts"],"names":[],"mappings":"AAEA,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM;;;;;sBA2B/C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SwapDirection, SwapFormValues } from "
|
|
1
|
+
import { SwapDirection, SwapFormValues } from "../components/Pages/Swap/Form/SwapFormValues";
|
|
2
2
|
export declare const resolveExchangesURLForSelectedToken: (values: SwapFormValues) => string;
|
|
3
3
|
export declare const resolveExchangeHistoricalNetworksURL: (direction: SwapDirection, { fromExchange, to, toAsset }: {
|
|
4
4
|
fromExchange?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAA;
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAA;AAG3F,eAAO,MAAM,mCAAmC,GAAI,QAAQ,cAAc,WA0BzE,CAAA;AAED,eAAO,MAAM,oCAAoC,GAAI,WAAW,aAAa,EAAE,+BAA+B;IAAE,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,kBAWzM,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,WAAW,aAAa,EAAE,QAAQ,cAAc,EAAE,eAAe,MAAM,EAAE,WAgBhH,CAAA;AAED,KAAK,cAAc,GAAG;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAA;CACjB,CAAA;AACD,KAAK,qCAAqC,GAAG;IACzC,SAAS,EAAE,aAAa,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,cAAc,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CAC1B,CAAA;AACD,eAAO,MAAM,gCAAgC,GAAI,uDAAuD,qCAAqC,WAiC5I,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SwapQuote } from "
|
|
2
|
-
import { Token } from "
|
|
1
|
+
import { SwapQuote } from "../lib/apiClients/layerSwapApiClient";
|
|
2
|
+
import { Token } from "../Models/Network";
|
|
3
3
|
export declare const resolveTokenUsdPrice: (token: Token | undefined, quote: SwapQuote | undefined) => number | undefined;
|
|
4
4
|
//# sourceMappingURL=tokenHelper.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { NetworkBalance } from "
|
|
1
|
+
import { NetworkBalance } from "../Models/Balance";
|
|
2
2
|
export default function useAllWithdrawalBalances(): {
|
|
3
3
|
isLoading: boolean;
|
|
4
4
|
balances: Record<string, NetworkBalance> | null;
|
|
5
|
+
partialPublished: boolean;
|
|
5
6
|
};
|
|
6
7
|
//# sourceMappingURL=useAllWithdrawalBalances.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAllWithdrawalBalances.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAllWithdrawalBalances.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGjD,MAAM,CAAC,OAAO,UAAU,wBAAwB
|
|
1
|
+
{"version":3,"file":"useAllWithdrawalBalances.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAllWithdrawalBalances.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGjD,MAAM,CAAC,OAAO,UAAU,wBAAwB;;;;EA8C/C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { InternalConnector, WalletConnectionProvider } from "../types/wallet";
|
|
2
|
+
type UseConnectorsParams = {
|
|
3
|
+
searchValue?: string;
|
|
4
|
+
recentConnectors: {
|
|
5
|
+
providerName?: string;
|
|
6
|
+
connectorName?: string;
|
|
7
|
+
}[];
|
|
8
|
+
featuredProviders: WalletConnectionProvider[];
|
|
9
|
+
filteredProviders: WalletConnectionProvider[];
|
|
10
|
+
};
|
|
11
|
+
export declare function useConnectors({ featuredProviders, filteredProviders, searchValue, recentConnectors, }: UseConnectorsParams): {
|
|
12
|
+
featuredConnectors: InternalConnector[];
|
|
13
|
+
hiddenConnectors: InternalConnector[];
|
|
14
|
+
initialConnectors: InternalConnector[];
|
|
15
|
+
featuredProviders: WalletConnectionProvider[];
|
|
16
|
+
filteredProviders: WalletConnectionProvider[];
|
|
17
|
+
};
|
|
18
|
+
export declare function sortRecentConnectors(a: {
|
|
19
|
+
name: string;
|
|
20
|
+
type?: string;
|
|
21
|
+
}, b: {
|
|
22
|
+
name: string;
|
|
23
|
+
type?: string;
|
|
24
|
+
}, recentConnectors: {
|
|
25
|
+
connectorName?: string;
|
|
26
|
+
}[]): number;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=useConnectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConnectors.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConnectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,KAAK,mBAAmB,GAAG;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACtE,iBAAiB,EAAE,wBAAwB,EAAE,CAAC;IAC9C,iBAAiB,EAAE,wBAAwB,EAAE,CAAC;CACjD,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC1B,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,EACX,gBAAgB,GACnB,EAAE,mBAAmB;;;;;;EA6CrB;AAqCD,wBAAgB,oBAAoB,CAAC,CAAC,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,gBAAgB,EAAE;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,UAc1J"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Quote, SwapBasicData } from '../lib/apiClients/layerSwapApiClient';
|
|
2
|
-
import { SwapFormValues } from '
|
|
2
|
+
import { SwapFormValues } from '../components/Pages/Swap/Form/SwapFormValues';
|
|
3
3
|
type UseQuoteData = {
|
|
4
4
|
minAllowedAmount?: number;
|
|
5
5
|
maxAllowedAmount?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NetworkRoute, NetworkRouteToken } from "../Models/Network";
|
|
2
2
|
import { RowElement } from "../Models/Route";
|
|
3
|
-
import { Exchange } from "
|
|
4
|
-
import { SwapDirection, SwapFormValues } from "
|
|
3
|
+
import { Exchange } from "../Models/Exchange";
|
|
4
|
+
import { SwapDirection, SwapFormValues } from "../components/Pages/Swap/Form/SwapFormValues";
|
|
5
5
|
type Props = {
|
|
6
6
|
direction: SwapDirection;
|
|
7
7
|
values: SwapFormValues;
|
|
@@ -37,7 +37,6 @@ export default function useFormRoutes({ direction, values }: Props, search?: str
|
|
|
37
37
|
selectedToken: (NetworkRouteToken & {
|
|
38
38
|
manuallySet?: boolean;
|
|
39
39
|
}) | undefined;
|
|
40
|
-
allbalancesLoaded: boolean;
|
|
41
40
|
};
|
|
42
41
|
export {};
|
|
43
42
|
//# sourceMappingURL=useFormRoutes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormRoutes.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFormRoutes.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAkB,UAAU,EAAgF,MAAM,iBAAiB,CAAC;AAK3I,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAG5F,KAAK,KAAK,GAAG;IACT,SAAS,EAAE,aAAa,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"useFormRoutes.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFormRoutes.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAkB,UAAU,EAAgF,MAAM,iBAAiB,CAAC;AAK3I,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAG5F,KAAK,KAAK,GAAG;IACT,SAAS,EAAE,aAAa,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8DlF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SwapFormValues } from '
|
|
1
|
+
import { SwapFormValues } from '../components/Pages/Swap/Form/SwapFormValues';
|
|
2
2
|
import { QuoteError } from './useFee';
|
|
3
3
|
interface Params {
|
|
4
4
|
values: SwapFormValues;
|
|
@@ -9,6 +9,7 @@ interface Params {
|
|
|
9
9
|
quoteError?: QuoteError;
|
|
10
10
|
}
|
|
11
11
|
export declare const FORM_VALIDATION_ERROR_CODES: {
|
|
12
|
+
ROUTE_NOT_FOUND: string;
|
|
12
13
|
MIN_AMOUNT_ERROR: string;
|
|
13
14
|
MAX_AMOUNT_ERROR: string;
|
|
14
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormValidation.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFormValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,UAAU,MAAM;IACZ,MAAM,EAAE,cAAc,CAAC;IACvB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,UAAU,CAAC,EAAE,UAAU,CAAA;CAC1B;AAED,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"useFormValidation.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFormValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,UAAU,MAAM;IACZ,MAAM,EAAE,cAAc,CAAC;IACvB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,UAAU,CAAC,EAAE,UAAU,CAAA;CAC1B;AAED,eAAO,MAAM,2BAA2B;;;;CAIvC,CAAA;AAGD,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,EAAE,UAAU,EAAE,EAAE,MAAM;;;;;;EA2D1I"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SwapResponse } from '
|
|
2
|
-
import { ApiResponse } from '
|
|
1
|
+
import { SwapResponse } from '../lib/apiClients/layerSwapApiClient';
|
|
2
|
+
import { ApiResponse } from '../Models/ApiResponse';
|
|
3
3
|
export declare function useSwapHistoryData(addresses?: string[]): {
|
|
4
4
|
pendingDeposit: {
|
|
5
5
|
pages: ApiResponse<SwapResponse[]>[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTransfer.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTransfer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAGhD,wBAAgB,WAAW;8BAC4B,aAAa,WAAW,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;EAMlH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Network } from "
|
|
2
|
-
import { Wallet, WalletConnectionProvider } from "
|
|
3
|
-
export type WalletPurpose = "
|
|
1
|
+
import { Network } from "../Models/Network";
|
|
2
|
+
import { Wallet, WalletConnectionProvider } from "../types/wallet";
|
|
3
|
+
export type WalletPurpose = "autofill" | "withdrawal" | "asSource";
|
|
4
4
|
export default function useWallet(network?: Network | undefined, purpose?: WalletPurpose): {
|
|
5
5
|
wallets: Wallet[];
|
|
6
6
|
unAvailableWallets: Wallet[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWallet.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAIlE,MAAM,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"useWallet.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAIlE,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,CAAA;AAElE,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,aAAa;;;;;2BAyB1C,OAAO,WAAW,aAAa;EAa5E"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
+
import { AvailableSourceNetworkTypes } from "../Models/LayerSwapSettings";
|
|
1
2
|
import { ThemeData } from "../Models/Theme";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
static TelegramLogConfigs: {
|
|
8
|
-
feedback_token: string;
|
|
9
|
-
feedback_chat_id: string;
|
|
10
|
-
error_token: string;
|
|
11
|
-
error_chat_id: string;
|
|
12
|
-
};
|
|
3
|
+
declare class WalletsConfigs {
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Pass `walletConnectConfigs` directly to the wallet provider factory
|
|
6
|
+
* (e.g. `createEVMProvider({ walletConnectConfigs })`). This static config will be removed soon.
|
|
7
|
+
*/
|
|
13
8
|
static WalletConnectConfig: {
|
|
14
9
|
projectId: string;
|
|
15
10
|
name: string;
|
|
@@ -17,25 +12,39 @@ export default class AppSettings {
|
|
|
17
12
|
url: string;
|
|
18
13
|
icons: string[];
|
|
19
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Pass `tonConfigs` to `createTONProvider({ tonConfigs })`. This fallback will be removed.
|
|
17
|
+
*/
|
|
20
18
|
static TonClientConfig: {
|
|
21
19
|
tonApiKey: string;
|
|
22
20
|
manifestUrl: string;
|
|
23
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Pass `imtblPassportConfig` to `createImmutablePassportProvider({ imtblPassportConfig })`.
|
|
24
|
+
*/
|
|
24
25
|
static ImtblPassportConfig: {
|
|
25
26
|
publishableKey: string;
|
|
26
27
|
clientId: string;
|
|
27
28
|
redirectUri: string;
|
|
28
29
|
logoutRedirectUri: string;
|
|
29
30
|
} | undefined;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
}
|
|
32
|
+
export default class AppSettings extends WalletsConfigs {
|
|
33
|
+
static ApiVersion: string;
|
|
34
|
+
static ExplorerURl: string;
|
|
35
|
+
static LayerswapApiUri?: string;
|
|
36
|
+
static ResourseStorageUrl: string;
|
|
37
|
+
static TelegramLogConfigs: {
|
|
38
|
+
feedback_token: string;
|
|
39
|
+
feedback_chat_id: string;
|
|
40
|
+
error_token: string;
|
|
41
|
+
error_chat_id: string;
|
|
35
42
|
};
|
|
36
43
|
static LayerswapApiKeys: {
|
|
37
44
|
[key: string]: string;
|
|
38
45
|
};
|
|
39
46
|
static ThemeData?: ThemeData | null;
|
|
47
|
+
static AvailableSourceNetworkTypes?: AvailableSourceNetworkTypes;
|
|
40
48
|
}
|
|
49
|
+
export {};
|
|
41
50
|
//# sourceMappingURL=AppSettings.d.ts.map
|