@layerswap/widget 1.0.5 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/Models/LayerSwapSettings.js +0 -1
- package/dist/esm/Models/Theme.js +39 -8
- package/dist/esm/components/Buttons/copyButton.js +5 -3
- package/dist/esm/components/Buttons/submitButton.js +2 -1
- package/dist/esm/components/ColorSchema.js +3 -10
- package/dist/esm/components/Common/ConnectWalletButton.js +9 -3
- package/dist/esm/components/Common/CountDownTimer.js +0 -15
- package/dist/esm/components/Common/WarningMessage.js +4 -2
- package/dist/esm/components/Common/guideLink.js +4 -6
- package/dist/esm/components/ErrorFallback.js +11 -11
- package/dist/esm/components/HeaderWithMenu.js +1 -1
- package/dist/esm/components/Icons/Wallets/Xverse.js +3 -0
- package/dist/esm/components/Icons/Wallets/index.js +1 -0
- package/dist/esm/components/Input/Address/AddressPicker/index.js +15 -12
- package/dist/esm/components/Input/Amount/Balance.js +8 -2
- 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 -38
- 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/NumericInput.js +7 -4
- package/dist/esm/components/Input/RoutePicker/Content.js +19 -3
- package/dist/esm/components/Input/RoutePicker/RouterPickerWalletConnect.js +5 -5
- package/dist/esm/components/Input/RoutePicker/Routes.js +18 -18
- 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 +6 -7
- package/dist/esm/components/Input/RoutePicker/index.js +2 -2
- package/dist/esm/components/Input/SourceWalletPicker.js +7 -5
- package/dist/esm/components/Menu/index.js +2 -2
- package/dist/esm/components/Modal/vaulModal.js +11 -16
- 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 +2 -3
- 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 +5 -4
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/Refuel.js +8 -6
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/Slippage.js +6 -1
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/SwapQuote/DetailedEstimates.js +51 -14
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/SwapQuote/SummaryRow.js +2 -2
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/SwapQuote/index.js +4 -4
- package/dist/esm/components/Pages/Swap/Form/FeeDetails/index.js +8 -9
- package/dist/esm/components/Pages/Swap/Form/Form.js +27 -3
- package/dist/esm/components/Pages/Swap/Form/FormWrapper.js +8 -14
- package/dist/esm/components/Pages/Swap/Form/NetworkForm.js +11 -13
- package/dist/esm/components/Pages/Swap/Form/SecondaryComponents/ReserveGasNote.js +8 -6
- package/dist/esm/components/Pages/Swap/Form/SecondaryComponents/validationError/ErrorDisplay.js +1 -1
- package/dist/esm/components/Pages/Swap/Withdraw/Failed.js +12 -8
- package/dist/esm/components/Pages/Swap/Withdraw/ManualWithdraw.js +29 -10
- package/dist/esm/components/Pages/Swap/Withdraw/NotFound.js +15 -4
- package/dist/esm/components/Pages/Swap/Withdraw/Processing/Processing.js +36 -41
- package/dist/esm/components/Pages/Swap/Withdraw/Summary/Summary.js +3 -3
- package/dist/esm/components/Pages/Swap/Withdraw/Summary/index.js +3 -3
- 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 +118 -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/TransactionMessages.js +14 -15
- package/dist/esm/components/Pages/SwapHistory/History.js +2 -2
- package/dist/esm/components/Pages/SwapHistory/SwapDetailsComponent.js +4 -1
- package/dist/esm/components/Pages/SwapHistory/index.js +6 -6
- package/dist/esm/components/Wallet/WalletComponents/ConnectedWallets.js +1 -1
- package/dist/esm/components/Wallet/WalletComponents/WalletsList.js +4 -3
- package/dist/esm/components/Wallet/WalletModal/Connector.js +2 -2
- package/dist/esm/components/Wallet/WalletModal/ConnectorsList.js +49 -24
- package/dist/esm/components/Wallet/WalletModal/index.js +3 -1
- 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 +1 -1
- package/dist/esm/components/Widget/Index.js +2 -3
- package/dist/esm/components/WidgetLoading.js +9 -2
- package/dist/esm/components/utils/RoundDecimals.js +4 -2
- package/dist/esm/context/ErrorProvider.js +14 -0
- package/dist/esm/context/LayerswapProvider.js +6 -5
- package/dist/esm/context/asyncModal.js +1 -1
- package/dist/esm/context/callbackProvider.js +54 -60
- package/dist/esm/context/resolverContext.js +7 -2
- package/dist/esm/context/swap.js +13 -18
- 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 +6 -5
- package/dist/esm/hooks/useFormRoutes.js +16 -8
- package/dist/esm/hooks/useFormValidation.js +11 -6
- 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 +28 -17
- package/dist/esm/lib/ErrorHandler.js +6 -0
- package/dist/esm/lib/NetworkSettings.js +0 -16
- package/dist/esm/lib/apiClients/layerSwapApiClient.js +12 -35
- package/dist/esm/lib/axiosInterceptor.js +2 -2
- package/dist/esm/lib/balances/balanceResolver.js +9 -13
- package/dist/esm/lib/fees.js +50 -0
- package/dist/esm/lib/resolvers/resolverService.js +10 -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 +1 -2
- package/dist/esm/stores/logStore.js +11 -0
- package/dist/esm/types/balance.js +8 -9
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/logEvents.js +1 -0
- package/dist/index.css +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/Models/Balance.d.ts +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 +0 -3
- package/dist/types/Models/Theme.d.ts.map +1 -1
- package/dist/types/components/Buttons/copyButton.d.ts +3 -1
- package/dist/types/components/Buttons/copyButton.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/ColorSchema.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/Wallets/Xverse.d.ts +4 -0
- package/dist/types/components/Icons/Wallets/Xverse.d.ts.map +1 -0
- package/dist/types/components/Icons/Wallets/index.d.ts +1 -0
- package/dist/types/components/Icons/Wallets/index.d.ts.map +1 -1
- package/dist/types/components/Input/Address/AddressNote.d.ts +2 -2
- 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 +2 -2
- 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/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 +2 -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/NumericInput.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/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/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/Modal/vaulModal.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 -1
- 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/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/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/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/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/StatusIcons.d.ts +1 -1
- package/dist/types/components/Pages/SwapHistory/SwapDetailsComponent.d.ts +1 -1
- package/dist/types/components/Pages/SwapHistory/SwapDetailsComponent.d.ts.map +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/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/index.d.ts +1 -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/components/utils/RoundDecimals.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 +6 -12
- 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/validationContext.d.ts +1 -0
- package/dist/types/context/validationContext.d.ts.map +1 -1
- 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/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 +10 -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/NetworkSettings.d.ts +0 -1
- package/dist/types/lib/NetworkSettings.d.ts.map +1 -1
- package/dist/types/lib/apiClients/layerSwapApiClient.d.ts +2 -10
- 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/helpers.d.ts +1 -1
- 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/nft/nftBalanceResolver.d.ts +1 -1
- package/dist/types/lib/resolvers/resolverService.d.ts +8 -5
- package/dist/types/lib/resolvers/resolverService.d.ts.map +1 -1
- package/dist/types/lib/sorting.d.ts +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.map +1 -1
- 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/gas.d.ts +2 -2
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/logEvents.d.ts +41 -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 +25 -6
- package/dist/types/types/wallet.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/esm/helpers/querryHelper.js +0 -13
- package/dist/esm/lib/logError.js +0 -17
- 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
|
@@ -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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AAI,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;;;;EAwC/C"}
|
|
@@ -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;
|
|
@@ -8,8 +8,17 @@ interface Params {
|
|
|
8
8
|
sameAccountNetwork?: string | undefined;
|
|
9
9
|
quoteError?: QuoteError;
|
|
10
10
|
}
|
|
11
|
+
export declare const FORM_VALIDATION_ERROR_CODES: {
|
|
12
|
+
ROUTE_NOT_FOUND: string;
|
|
13
|
+
MIN_AMOUNT_ERROR: string;
|
|
14
|
+
MAX_AMOUNT_ERROR: string;
|
|
15
|
+
};
|
|
11
16
|
export declare function resolveFormValidation({ values, maxAllowedAmount, minAllowedAmount, sourceAddress, sameAccountNetwork, quoteError }: Params): {
|
|
12
17
|
message: string;
|
|
18
|
+
code?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
code: string;
|
|
21
|
+
message: string;
|
|
13
22
|
};
|
|
14
23
|
export {};
|
|
15
24
|
//# sourceMappingURL=useFormValidation.d.ts.map
|
|
@@ -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,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,EAAE,UAAU,EAAE,EAAE,MAAM
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSettings.d.ts","sourceRoot":"","sources":["../../../src/lib/AppSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"AppSettings.d.ts","sourceRoot":"","sources":["../../../src/lib/AppSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,cAAM,cAAc;IAChB;;;OAGG;IACH,MAAM,CAAC,mBAAmB,EAAE;QACxB,SAAS,EAAE,MAAM,CAAA;QACjB,IAAI,EAAE,MAAM,CAAA;QACZ,WAAW,EAAE,MAAM,CAAA;QACnB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,EAAE,CAAA;KAClB,CAMI;IACL;;OAEG;IACH,MAAM,CAAC,eAAe,EAAE;QACpB,SAAS,EAAE,MAAM,CAAA;QACjB,WAAW,EAAE,MAAM,CAAA;KACtB,CAGI;IACL;;OAEG;IACH,MAAM,CAAC,mBAAmB,EAAE;QACxB,cAAc,EAAE,MAAM,CAAC;QACvB,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,iBAAiB,EAAE,MAAM,CAAA;KAC5B,GAAG,SAAS,CAKR;CACR;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,cAAc;IACnD,MAAM,CAAC,UAAU,EAAE,MAAM,CAAY;IACrC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAuC;IACjE,MAAM,CAAC,eAAe,CAAC,EAAE,MAAM,CAA6B;IAC5D,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAA2D;IAC5F,MAAM,CAAC,kBAAkB;;;;;MAKxB;IACD,MAAM,CAAC,gBAAgB,EAAE;QACrB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KACxB,CAGI;IACL,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACnC,MAAM,CAAC,2BAA2B,CAAC,EAAE,2BAA2B,CAAA;CACnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorHandler.d.ts","sourceRoot":"","sources":["../../../src/lib/ErrorHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,QAGjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkSettings.d.ts","sourceRoot":"","sources":["../../../src/lib/NetworkSettings.ts"],"names":[],"mappings":"AAEA,oBAAY,WAAW;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AAED,oBAAY,cAAc;IACtB,OAAO,YAAY;IACnB,YAAY,iBAAiB;CAChC;AAED,KAAK,mBAAmB,GAAG;IACvB,CAAC,OAAO,EAAE,MAAM,GAAG;QACf,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;CACJ,CAAA;AA4CD,MAAM,CAAC,OAAO,OAAO,eAAe;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,
|
|
1
|
+
{"version":3,"file":"NetworkSettings.d.ts","sourceRoot":"","sources":["../../../src/lib/NetworkSettings.ts"],"names":[],"mappings":"AAEA,oBAAY,WAAW;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AAED,oBAAY,cAAc;IACtB,OAAO,YAAY;IACnB,YAAY,iBAAiB;CAChC;AAED,KAAK,mBAAmB,GAAG;IACvB,CAAC,OAAO,EAAE,MAAM,GAAG;QACf,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;CACJ,CAAA;AA4CD,MAAM,CAAC,OAAO,OAAO,eAAe;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,kBAAkB,CAAC,EAAE,cAAc,CAAA;IACnC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB,OAAc,aAAa,EAAE;QAAE,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAAA;KAAE,CAAM;IAEzE,OAAc,kBAAkB,EAAE,mBAAmB,CAAA;IAErD,OAAO,CAAC,MAAM,CAAC,cAAc,CAAS;WACxB,UAAU;CAoP3B"}
|
|
@@ -14,16 +14,8 @@ export default class LayerSwapApiClient {
|
|
|
14
14
|
GetSourceExchangesAsync(): Promise<ApiResponse<Exchange[]>>;
|
|
15
15
|
GetLSNetworksAsync(): Promise<ApiResponse<NetworkWithTokens[]>>;
|
|
16
16
|
CreateSwapAsync(params: CreateSwapParams): Promise<ApiResponse<SwapResponse>>;
|
|
17
|
-
GetSwapsAsync(page: number, include_expired: boolean): Promise<ApiResponse<SwapResponse[]>>;
|
|
18
|
-
GetQuote({ params }: {
|
|
19
|
-
params: GetQuoteParams;
|
|
20
|
-
}): Promise<ApiResponse<Quote>>;
|
|
21
|
-
DisconnectExchangeAsync(swapid: string, exchangeName: string): Promise<ApiResponse<void>>;
|
|
22
|
-
GetSwapDetailsAsync(id: string): Promise<ApiResponse<SwapResponse>>;
|
|
23
|
-
GetDepositAddress(network: string, source: DepositAddressSource): Promise<ApiResponse<DepositAddress>>;
|
|
24
|
-
WithdrawFromExchange(swapId: string, exchange: string, twoFactorCode?: string): Promise<ApiResponse<void>>;
|
|
25
|
-
SwapsMigration(GuestAuthorization: string): Promise<ApiResponse<void>>;
|
|
26
17
|
GetTransactionStatus(network: string, tx_id: string): Promise<ApiResponse<any>>;
|
|
18
|
+
SwapCatchup(swapId: string, tx_id: string): Promise<ApiResponse<void>>;
|
|
27
19
|
private AuthenticatedRequest;
|
|
28
20
|
private UnauthenticatedRequest;
|
|
29
21
|
}
|
|
@@ -71,7 +63,7 @@ export type SwapBasicData = {
|
|
|
71
63
|
destination_network: Network;
|
|
72
64
|
destination_token: Token;
|
|
73
65
|
destination_address: string;
|
|
74
|
-
requested_amount:
|
|
66
|
+
requested_amount: string;
|
|
75
67
|
use_deposit_address: boolean;
|
|
76
68
|
};
|
|
77
69
|
export type SwapDetails = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layerSwapApiClient.d.ts","sourceRoot":"","sources":["../../../../src/lib/apiClients/layerSwapApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,aAAa,EAAU,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAoB,MAAM,0BAA0B,CAAC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,CAAC;QACrB,mBAAmB,EAAE,MAAM,CAAA;QAC3B,oBAAoB,EAAE,MAAM,CAAC;QAC7B,QAAQ,EAAE,MAAM,CAAA;KACnB,CAAC;IACF,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACtB,WAAW,EAAE;QACT,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAA;KACnB,EAAE,CAAC;IACJ,kBAAkB,EAAE,MAAM,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NetworkBalance } from "
|
|
2
|
-
import { BalanceProvider } from "
|
|
3
|
-
import { NetworkWithTokens } from "
|
|
1
|
+
import { NetworkBalance } from "../../Models/Balance";
|
|
2
|
+
import { BalanceProvider } from "../../types/balance";
|
|
3
|
+
import { NetworkWithTokens } from "../../Models/Network";
|
|
4
4
|
export declare class BalanceResolver {
|
|
5
5
|
private providers;
|
|
6
6
|
constructor(providers?: BalanceProvider[]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balanceResolver.d.ts","sourceRoot":"","sources":["../../../../src/lib/balances/balanceResolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"balanceResolver.d.ts","sourceRoot":"","sources":["../../../../src/lib/balances/balanceResolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGrD,qBAAa,eAAe;IAExB,OAAO,CAAC,SAAS,CAAoB;gBAEzB,SAAS,CAAC,EAAE,eAAe,EAAE;IAInC,UAAU,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,cAAc,CAAC;CAwBjJ"}
|
package/dist/types/lib/fees.d.ts
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
import { SwapQuote } from "./apiClients/layerSwapApiClient";
|
|
1
2
|
export declare function CalculateMinimalAuthorizeAmount(usd_price: number, amount: number): number;
|
|
3
|
+
type PriceImpactValues = {
|
|
4
|
+
receiveAmountUSD?: number;
|
|
5
|
+
requestedAmountUSD?: number;
|
|
6
|
+
priceImpact?: number;
|
|
7
|
+
layerswapFees?: number;
|
|
8
|
+
bridgeExpenses?: number;
|
|
9
|
+
marketImpact?: number;
|
|
10
|
+
priceImpactPercentage?: number;
|
|
11
|
+
marketImpactPercentage?: number;
|
|
12
|
+
highMarketPriceImpact?: boolean | undefined;
|
|
13
|
+
criticalMarketPriceImpact?: boolean | undefined;
|
|
14
|
+
minReceiveAmountUSD?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
export declare const resolvePriceImpactValues: (quote: SwapQuote | undefined) => PriceImpactValues;
|
|
17
|
+
export {};
|
|
2
18
|
//# sourceMappingURL=fees.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fees.d.ts","sourceRoot":"","sources":["../../../src/lib/fees.ts"],"names":[],"mappings":"AAAA,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAEhF"}
|
|
1
|
+
{"version":3,"file":"fees.d.ts","sourceRoot":"","sources":["../../../src/lib/fees.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAEhF;AAED,KAAK,iBAAiB,GAAG;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5C,yBAAyB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChD,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,OAAO,SAAS,GAAG,SAAS,KAAG,iBA6DvE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GasProps } from "../../Models/Balance";
|
|
2
|
-
import { GasProvider } from "
|
|
2
|
+
import { GasProvider } from "../../types/gas";
|
|
3
3
|
export declare class GasResolver {
|
|
4
4
|
private providers;
|
|
5
5
|
constructor(providers?: GasProvider[]);
|
|
6
|
-
getGas({ address, network, token, recipientAddress, amount, wallet }: GasProps): Promise<import("
|
|
6
|
+
getGas({ address, network, token, recipientAddress, amount, wallet }: GasProps): Promise<import("../../types/gas").GasWithToken | undefined> | undefined;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=gasResolver.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Network, Token } from "
|
|
2
|
-
import { GasWithToken } from "
|
|
3
|
-
import { Wallet } from "
|
|
1
|
+
import { Network, Token } from "../../Models/Network";
|
|
2
|
+
import { GasWithToken } from "../../types/gas";
|
|
3
|
+
import { Wallet } from "../../types/wallet";
|
|
4
4
|
declare const useSWRGas: (address: string | undefined | null, network: Network | undefined | null, token?: Token | null, amount?: number | string | null, wallet?: Wallet) => {
|
|
5
5
|
gasData: GasWithToken | undefined;
|
|
6
6
|
isGasLoading: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InitialSettings } from "../Models/InitialSettings";
|
|
2
2
|
import { LayerSwapAppSettings } from "../Models/LayerSwapAppSettings";
|
|
3
3
|
import { SwapBasicData } from "./apiClients/layerSwapApiClient";
|
|
4
|
-
import { SwapFormValues } from "
|
|
4
|
+
import { SwapFormValues } from "../components/Pages/Swap/Form/SwapFormValues";
|
|
5
5
|
export declare function generateSwapInitialValues(settings: LayerSwapAppSettings, queryParams: InitialSettings, type: 'cross-chain' | 'exchange'): SwapFormValues;
|
|
6
6
|
export declare function generateSwapInitialValuesFromSwap(swapResponse: SwapBasicData, refuel: boolean, settings: LayerSwapAppSettings, type: 'cross-chain' | 'exchange'): SwapFormValues;
|
|
7
7
|
//# sourceMappingURL=generateSwapInitialValues.d.ts.map
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { BalanceResolver } from "
|
|
2
|
-
import { GasResolver } from "
|
|
3
|
-
import { AddressUtilsResolver } from '
|
|
4
|
-
import { AddressUtilsProvider, BalanceProvider, GasProvider, NftProvider } from "../../../types";
|
|
1
|
+
import { BalanceResolver } from "../../lib/balances/balanceResolver";
|
|
2
|
+
import { GasResolver } from "../../lib/gases/gasResolver";
|
|
3
|
+
import { AddressUtilsResolver } from '../../lib/address/addressUtilsResolver';
|
|
4
|
+
import { AddressUtilsProvider, BalanceProvider, GasProvider, NftProvider, TransferProvider } from "../../../types";
|
|
5
5
|
import { NftBalanceResolver } from "../nft/nftBalanceResolver";
|
|
6
|
+
import { TransferResolver } from "../transfers/transferResolver";
|
|
6
7
|
declare class UtilsResolverService {
|
|
7
8
|
private balanceResolver;
|
|
8
9
|
private gasResolver;
|
|
9
10
|
private addressUtilsResolver;
|
|
10
11
|
private nftResolver;
|
|
11
|
-
|
|
12
|
+
private transferResolver;
|
|
13
|
+
setProviders(balanceProviders: BalanceProvider[], gasProviders: GasProvider[], addressUtilsProviders: AddressUtilsProvider[], nftProviders: NftProvider[], transferProviders: TransferProvider[]): void;
|
|
12
14
|
getBalanceResolver(): BalanceResolver;
|
|
13
15
|
getGasResolver(): GasResolver;
|
|
14
16
|
getAddressUtilsResolver(): AddressUtilsResolver;
|
|
15
17
|
getNftResolver(): NftBalanceResolver;
|
|
18
|
+
getTransferResolver(): TransferResolver;
|
|
16
19
|
}
|
|
17
20
|
export declare const resolverService: UtilsResolverService;
|
|
18
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolverService.d.ts","sourceRoot":"","sources":["../../../../src/lib/resolvers/resolverService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAA;AACzE,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"resolverService.d.ts","sourceRoot":"","sources":["../../../../src/lib/resolvers/resolverService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAA;AACzE,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,cAAM,oBAAoB;IACtB,OAAO,CAAC,eAAe,CAAgC;IACvD,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,oBAAoB,CAAqC;IACjE,OAAO,CAAC,WAAW,CAAmC;IACtD,OAAO,CAAC,gBAAgB,CAAiC;IAEzD,YAAY,CAAC,gBAAgB,EAAE,eAAe,EAAE,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,iBAAiB,EAAE,gBAAgB,EAAE;IAQhM,kBAAkB,IAAI,eAAe;IAOrC,cAAc,IAAI,WAAW;IAO7B,uBAAuB,IAAI,oBAAoB;IAO/C,cAAc,IAAI,kBAAkB;IAOpC,mBAAmB,IAAI,gBAAgB;CAM1C;AAED,eAAO,MAAM,eAAe,sBAA6B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SwapDirection } from "
|
|
1
|
+
import { SwapDirection } from "../components/Pages/Swap/Form/SwapFormValues";
|
|
2
2
|
import { Exchange } from "../Models/Exchange";
|
|
3
3
|
import { NetworkRoute, NetworkRouteToken } from "../Models/Network";
|
|
4
4
|
export declare const ONE_WEEK: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/transfers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TransferProvider, TransferProps, Wallet } from "../../../types";
|
|
2
|
+
export declare class TransferResolver {
|
|
3
|
+
private providers;
|
|
4
|
+
constructor(providers?: TransferProvider[]);
|
|
5
|
+
executeTransfer(params: TransferProps, wallet?: Wallet): Promise<string | undefined>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=transferResolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transferResolver.d.ts","sourceRoot":"","sources":["../../../../src/lib/transfers/transferResolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEjE,qBAAa,gBAAgB;IACzB,OAAO,CAAC,SAAS,CAAoB;gBAEzB,SAAS,CAAC,EAAE,gBAAgB,EAAE;IAIpC,eAAe,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAU7F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balanceStore.d.ts","sourceRoot":"","sources":["../../../src/stores/balanceStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAGrD,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAAA;AAC3E,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAAA;AAMpE,KAAK,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;AAC7C,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;CAClC;AAED,KAAK,OAAO,GAAG;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,UAAU,YAAY;IACpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,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c,CAAC,CAAA;CAClC;AAED,KAAK,OAAO,GAAG;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,UAAU,YAAY;IACpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IACtC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACpC,YAAY,EAAE,CACZ,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,iBAAiB,EAC1B,OAAO,CAAC,EAAE,OAAO,KACd,OAAO,CAAC,cAAc,CAAC,CAAA;IAE5B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAA;IAChD,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAA;IACpD,oBAAoB,EAAE,OAAO,CAAA;IAC7B,gBAAgB,EAAE,OAAO,CAAA;IACzB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,mBAAmB,EAAE,CACnB,KAAK,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,iBAAiB,CAAA;KAAE,CAAC,KAC1D,IAAI,CAAA;CACV;AAcD,eAAO,MAAM,eAAe;;;;;;;;EAkH3B,CAAA;AAED,eAAO,MAAM,6BAA6B,GAAI,OAAO,YAAY,0CAYhE,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ErrorEventType } from '../../types';
|
|
2
|
+
type LogState = {
|
|
3
|
+
logger: (error: ErrorEventType) => void;
|
|
4
|
+
setLogger: (hadnler: (error: ErrorEventType) => void) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const logStore: import("zustand").StoreApi<LogState>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=logStore.d.ts.map
|