@velora-dex/widget 0.6.1-dev.1 → 0.6.1-dev.2
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/assets/bridges/canonical-uni.js +44 -0
- package/dist/assets/bridges/canonical-uni.js.map +1 -0
- package/dist/assets/bridges/cctp.js +53 -0
- package/dist/assets/bridges/cctp.js.map +1 -0
- package/dist/assets/bridges/celer.js +94 -0
- package/dist/assets/bridges/celer.js.map +1 -0
- package/dist/assets/bridges/relay.js +40 -0
- package/dist/assets/bridges/{relay.svg.js → relay.js.map} +1 -12
- package/dist/assets/check.js +24 -0
- package/dist/assets/check.js.map +1 -0
- package/dist/assets/chevron.js +22 -0
- package/dist/assets/chevron.js.map +1 -0
- package/dist/assets/circle-check.js +20 -0
- package/dist/assets/circle-check.js.map +1 -0
- package/dist/assets/circle-exclamation.js +24 -0
- package/dist/assets/circle-exclamation.js.map +1 -0
- package/dist/assets/copy.js +24 -0
- package/dist/assets/copy.js.map +1 -0
- package/dist/assets/delta.js +20 -0
- package/dist/assets/delta.js.map +1 -0
- package/dist/assets/ellipse.js +25 -0
- package/dist/assets/ellipse.js.map +1 -0
- package/dist/assets/external-url.js +43 -0
- package/dist/assets/external-url.js.map +1 -0
- package/dist/assets/info.js +23 -0
- package/dist/assets/info.js.map +1 -0
- package/dist/assets/logout.js +20 -0
- package/dist/assets/logout.js.map +1 -0
- package/dist/assets/{market.svg.js.map → market.js} +23 -1
- package/dist/assets/market.js.map +1 -0
- package/dist/assets/price-impact.js +20 -0
- package/dist/assets/price-impact.js.map +1 -0
- package/dist/assets/receipt.js +25 -0
- package/dist/assets/receipt.js.map +1 -0
- package/dist/assets/refresh.js +26 -0
- package/dist/assets/refresh.js.map +1 -0
- package/dist/assets/slider.js +20 -0
- package/dist/assets/slider.js.map +1 -0
- package/dist/assets/speedometer.js +46 -0
- package/dist/assets/speedometer.js.map +1 -0
- package/dist/assets/spinner.js +57 -0
- package/dist/assets/spinner.js.map +1 -0
- package/dist/assets/two-dots.js +32 -0
- package/dist/assets/two-dots.js.map +1 -0
- package/dist/assets/vlr.js +6 -0
- package/dist/assets/vlr.js.map +1 -0
- package/dist/assets/wavax.js +47 -0
- package/dist/assets/wavax.js.map +1 -0
- package/dist/assets/wavax2.js +6 -0
- package/dist/assets/wavax2.js.map +1 -0
- package/dist/assets/wbnb.js +47 -0
- package/dist/assets/wbnb.js.map +1 -0
- package/dist/assets/wbnb2.js +6 -0
- package/dist/assets/wbnb2.js.map +1 -0
- package/dist/assets/weth.js +49 -0
- package/dist/assets/weth.js.map +1 -0
- package/dist/assets/weth2.js +6 -0
- package/dist/assets/weth2.js.map +1 -0
- package/dist/assets/wmatic.js +69 -0
- package/dist/assets/wmatic.js.map +1 -0
- package/dist/assets/wmatic2.js +6 -0
- package/dist/assets/wmatic2.js.map +1 -0
- package/dist/assets/wxdai.js +56 -0
- package/dist/assets/wxdai.js.map +1 -0
- package/dist/assets/wxdai2.js +6 -0
- package/dist/assets/wxdai2.js.map +1 -0
- package/dist/components/ui/accordion.js +77 -208
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/button.js +64 -109
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/card.js +51 -142
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/drawer.js +100 -270
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.js +84 -232
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/input.js +50 -122
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/progress.js +47 -118
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/skeleton.js +18 -40
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/sonner.js +39 -66
- package/dist/components/ui/sonner.js.map +1 -1
- package/dist/components/ui/switch.js +28 -63
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/tooltip.js +61 -159
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/components/web3/AccountButton.js +62 -131
- package/dist/components/web3/AccountButton.js.map +1 -1
- package/dist/components/web3/ConnectExternalProvider/AutoconnectExternal.js +56 -95
- package/dist/components/web3/ConnectExternalProvider/AutoconnectExternal.js.map +1 -1
- package/dist/components/web3/ConnectExternalProvider/constants.js +5 -5
- package/dist/components/web3/ConnectExternalProvider/constants.js.map +1 -1
- package/dist/components/web3/ConnectExternalProvider/metamaskProviderWrapper.js +58 -51
- package/dist/components/web3/ConnectExternalProvider/metamaskProviderWrapper.js.map +1 -1
- package/dist/components/web3/ConnectExternalProvider/safeProviderWrapper.js +48 -72
- package/dist/components/web3/ConnectExternalProvider/safeProviderWrapper.js.map +1 -1
- package/dist/components/web3/ConnectExternalProvider/utils.js +24 -35
- package/dist/components/web3/ConnectExternalProvider/utils.js.map +1 -1
- package/dist/components/web3/ConnectWallets/WalletConnectButtons.js +102 -242
- package/dist/components/web3/ConnectWallets/WalletConnectButtons.js.map +1 -1
- package/dist/components/web3/ConnectWallets/assets/browser-wallet.js +6 -0
- package/dist/components/web3/ConnectWallets/assets/browser-wallet.js.map +1 -0
- package/dist/components/web3/ConnectWallets/assets/bscwallet.js +6 -0
- package/dist/components/web3/ConnectWallets/assets/bscwallet.js.map +1 -0
- package/dist/components/web3/ConnectWallets/assets/coinbasewallet.js +6 -0
- package/dist/components/web3/ConnectWallets/assets/coinbasewallet.js.map +1 -0
- package/dist/components/web3/ConnectWallets/assets/email.js +6 -0
- package/dist/components/web3/ConnectWallets/assets/email.js.map +1 -0
- package/dist/components/web3/ConnectWallets/assets/ledger.js +6 -0
- package/dist/components/web3/ConnectWallets/assets/ledger.js.map +1 -0
- package/dist/components/web3/ConnectWallets/assets/metamask.js +6 -0
- package/dist/components/web3/ConnectWallets/assets/metamask.js.map +1 -0
- package/dist/components/web3/ConnectWallets/assets/paraswap.js +6 -0
- package/dist/components/web3/ConnectWallets/assets/paraswap.js.map +1 -0
- package/dist/components/web3/ConnectWallets/assets/safe.js +6 -0
- package/dist/components/web3/ConnectWallets/assets/safe.js.map +1 -0
- package/dist/components/web3/ConnectWallets/assets/trezor.js +6 -0
- package/dist/components/web3/ConnectWallets/assets/trezor.js.map +1 -0
- package/dist/components/web3/ConnectWallets/assets/walletconnect.js +6 -0
- package/dist/components/web3/ConnectWallets/assets/walletconnect.js.map +1 -0
- package/dist/components/web3/ConnectWallets/index.js +110 -254
- package/dist/components/web3/ConnectWallets/index.js.map +1 -1
- package/dist/components/web3/ConnectWallets/privy/button.js +80 -196
- package/dist/components/web3/ConnectWallets/privy/button.js.map +1 -1
- package/dist/components/web3/ConnectWallets/privy/connectRunner.js +49 -68
- package/dist/components/web3/ConnectWallets/privy/connectRunner.js.map +1 -1
- package/dist/components/web3/ConnectWallets/privy/iframe.js +17 -31
- package/dist/components/web3/ConnectWallets/privy/iframe.js.map +1 -1
- package/dist/components/web3/ConnectWallets/privy/provider.js +16 -25
- package/dist/components/web3/ConnectWallets/privy/provider.js.map +1 -1
- package/dist/components/web3/ConnectWallets/walletFlags.js +97 -102
- package/dist/components/web3/ConnectWallets/walletFlags.js.map +1 -1
- package/dist/components/web3/ConnectWallets/walletIcons.js +122 -173
- package/dist/components/web3/ConnectWallets/walletIcons.js.map +1 -1
- package/dist/components/web3/ConnectedWallet/ConnectedWallet.js +116 -182
- package/dist/components/web3/ConnectedWallet/ConnectedWallet.js.map +1 -1
- package/dist/components/web3/providers.js +30 -54
- package/dist/components/web3/providers.js.map +1 -1
- package/dist/components/widget/AppHeader/Activities/Activities.js +66 -122
- package/dist/components/widget/AppHeader/Activities/Activities.js.map +1 -1
- package/dist/components/widget/AppHeader/Activities/ActivitiesScreen.js +64 -130
- package/dist/components/widget/AppHeader/Activities/ActivitiesScreen.js.map +1 -1
- package/dist/components/widget/AppHeader/Activities/ActivityItems.js +161 -319
- package/dist/components/widget/AppHeader/Activities/ActivityItems.js.map +1 -1
- package/dist/components/widget/AppHeader/Activities/Drawers.js +90 -166
- package/dist/components/widget/AppHeader/Activities/Drawers.js.map +1 -1
- package/dist/components/widget/AppHeader/Activities/assets/eye-crossed.js +20 -0
- package/dist/components/widget/AppHeader/Activities/assets/eye-crossed.js.map +1 -0
- package/dist/components/widget/AppHeader/Activities/assets/eye.js +20 -0
- package/dist/components/widget/AppHeader/Activities/assets/eye.js.map +1 -0
- package/dist/components/widget/AppHeader/Activities/hooks.js +330 -831
- package/dist/components/widget/AppHeader/Activities/hooks.js.map +1 -1
- package/dist/components/widget/AppHeader/Activities/utils.js +42 -68
- package/dist/components/widget/AppHeader/Activities/utils.js.map +1 -1
- package/dist/components/widget/AppHeader/ActivityButton.js +45 -101
- package/dist/components/widget/AppHeader/ActivityButton.js.map +1 -1
- package/dist/components/widget/AppHeader/AppHeader.js +81 -172
- package/dist/components/widget/AppHeader/AppHeader.js.map +1 -1
- package/dist/components/widget/AppHeader/TradeModeSwitcher.js +50 -95
- package/dist/components/widget/AppHeader/TradeModeSwitcher.js.map +1 -1
- package/dist/components/widget/AppHeader/state/showMoreAtom.js +13 -18
- package/dist/components/widget/AppHeader/state/showMoreAtom.js.map +1 -1
- package/dist/components/widget/BridgeList/BridgeListItem.js +187 -474
- package/dist/components/widget/BridgeList/BridgeListItem.js.map +1 -1
- package/dist/components/widget/BridgeList/BridgeProtocolsList.js +98 -216
- package/dist/components/widget/BridgeList/BridgeProtocolsList.js.map +1 -1
- package/dist/components/widget/BridgeList/BridgesList.js +40 -72
- package/dist/components/widget/BridgeList/BridgesList.js.map +1 -1
- package/dist/components/widget/BridgeList/hooks.js +119 -241
- package/dist/components/widget/BridgeList/hooks.js.map +1 -1
- package/dist/components/widget/BridgePreferences/BridgePreferences.js +75 -134
- package/dist/components/widget/BridgePreferences/BridgePreferences.js.map +1 -1
- package/dist/components/widget/BridgeSelectorExpandable/BridgeSelectorExpandable.js +78 -135
- package/dist/components/widget/BridgeSelectorExpandable/BridgeSelectorExpandable.js.map +1 -1
- package/dist/components/widget/Button/CancelButton/CancelButton.js +43 -104
- package/dist/components/widget/Button/CancelButton/CancelButton.js.map +1 -1
- package/dist/components/widget/Button/CancelButton/CancelButtonWithDrawer.js +35 -64
- package/dist/components/widget/Button/CancelButton/CancelButtonWithDrawer.js.map +1 -1
- package/dist/components/widget/Button/CancelButton/constants.js +5 -3
- package/dist/components/widget/Button/CancelButton/constants.js.map +1 -1
- package/dist/components/widget/Button/DismissButton.js +19 -27
- package/dist/components/widget/Button/DismissButton.js.map +1 -1
- package/dist/components/widget/CompareQuotes/CompareQuotes.js +96 -208
- package/dist/components/widget/CompareQuotes/CompareQuotes.js.map +1 -1
- package/dist/components/widget/Details/DetailWithTooltip.js +28 -75
- package/dist/components/widget/Details/DetailWithTooltip.js.map +1 -1
- package/dist/components/widget/Details/DetailWithValueList.js +38 -68
- package/dist/components/widget/Details/DetailWithValueList.js.map +1 -1
- package/dist/components/widget/Details/DetailWithValueListExpandable.js +29 -60
- package/dist/components/widget/Details/DetailWithValueListExpandable.js.map +1 -1
- package/dist/components/widget/Details/SwapDetailsExpandable.js +11 -19
- package/dist/components/widget/Details/SwapDetailsExpandable.js.map +1 -1
- package/dist/components/widget/DexesList/DexItem.js +201 -357
- package/dist/components/widget/DexesList/DexItem.js.map +1 -1
- package/dist/components/widget/DexesList/DexesList.js +49 -58
- package/dist/components/widget/DexesList/DexesList.js.map +1 -1
- package/dist/components/widget/DexesList/assets/exchanges/biswap.js +6 -0
- package/dist/components/widget/DexesList/assets/exchanges/biswap.js.map +1 -0
- package/dist/components/widget/DexesList/assets/exchanges/cheeseswap.js +6 -0
- package/dist/components/widget/DexesList/assets/exchanges/cheeseswap.js.map +1 -0
- package/dist/components/widget/DexesList/assets/exchanges/complusswap.js +6 -0
- package/dist/components/widget/DexesList/assets/exchanges/complusswap.js.map +1 -0
- package/dist/components/widget/DexesList/assets/exchanges/hashflow.js +6 -0
- package/dist/components/widget/DexesList/assets/exchanges/hashflow.js.map +1 -0
- package/dist/components/widget/DexesList/assets/exchanges/icons.js +83 -0
- package/dist/components/widget/DexesList/assets/exchanges/icons.js.map +1 -0
- package/dist/components/widget/DexesList/assets/exchanges/quickswap.js +6 -0
- package/dist/components/widget/DexesList/assets/exchanges/quickswap.js.map +1 -0
- package/dist/components/widget/DexesList/assets/exchanges/shibaswap.js +6 -0
- package/dist/components/widget/DexesList/assets/exchanges/shibaswap.js.map +1 -0
- package/dist/components/widget/DexesList/assets/exchanges/uniswap.js +6 -0
- package/dist/components/widget/DexesList/assets/exchanges/uniswap.js.map +1 -0
- package/dist/components/widget/DexesList/assets/exchanges/velora-dark.js +6 -0
- package/dist/components/widget/DexesList/assets/exchanges/velora-dark.js.map +1 -0
- package/dist/components/widget/DexesList/assets/exchanges/velora-light.js +6 -0
- package/dist/components/widget/DexesList/assets/exchanges/velora-light.js.map +1 -0
- package/dist/components/widget/DexesList/assets/gas.js +20 -0
- package/dist/components/widget/DexesList/assets/gas.js.map +1 -0
- package/dist/components/widget/DexesList/assets/unknown-dex.js +6 -0
- package/dist/components/widget/DexesList/assets/unknown-dex.js.map +1 -0
- package/dist/components/widget/DexesList/constants.js +5 -3
- package/dist/components/widget/DexesList/constants.js.map +1 -1
- package/dist/components/widget/DexesList/getDexProps.js +59 -89
- package/dist/components/widget/DexesList/getDexProps.js.map +1 -1
- package/dist/components/widget/Dialog/ReceiverAddressDialog/ReceiverAddressDialog.js +118 -277
- package/dist/components/widget/Dialog/ReceiverAddressDialog/ReceiverAddressDialog.js.map +1 -1
- package/dist/components/widget/Dialog/ReceiverAddressDialog/ReceiverAddressInput.js +34 -46
- package/dist/components/widget/Dialog/ReceiverAddressDialog/ReceiverAddressInput.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.js +242 -664
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/AcrossTokenList.js +23 -45
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/AcrossTokenList.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/RegularTokenList.js +29 -65
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/RegularTokenList.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenCloud/index.js +52 -106
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenCloud/index.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenCloud/tokens.js +217 -173
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenCloud/tokens.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenListBody.js +28 -49
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenListBody.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenListRow.js +104 -237
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenListRow.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenSearch.js +45 -75
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenSearch.js.map +1 -1
- package/dist/components/widget/Drawer/Overlay.js +25 -60
- package/dist/components/widget/Drawer/Overlay.js.map +1 -1
- package/dist/components/widget/Drawer/index.js +93 -229
- package/dist/components/widget/Drawer/index.js.map +1 -1
- package/dist/components/widget/Drawer/state/useDrawerControls.js +85 -258
- package/dist/components/widget/Drawer/state/useDrawerControls.js.map +1 -1
- package/dist/components/widget/Dropdown/DropdownWithItems.js +35 -43
- package/dist/components/widget/Dropdown/DropdownWithItems.js.map +1 -1
- package/dist/components/widget/Duration/Duration.js +58 -89
- package/dist/components/widget/Duration/Duration.js.map +1 -1
- package/dist/components/widget/Duration/utils.js +6 -4
- package/dist/components/widget/Duration/utils.js.map +1 -1
- package/dist/components/widget/FetchingQuotes/FetchingQuotes.js +48 -39
- package/dist/components/widget/FetchingQuotes/FetchingQuotes.js.map +1 -1
- package/dist/components/widget/Icon/CheckIcon.js +10 -17
- package/dist/components/widget/Icon/CheckIcon.js.map +1 -1
- package/dist/components/widget/Icon/ChevronIcon.js +18 -41
- package/dist/components/widget/Icon/ChevronIcon.js.map +1 -1
- package/dist/components/widget/Icon/DeltaIcon.js +10 -17
- package/dist/components/widget/Icon/DeltaIcon.js.map +1 -1
- package/dist/components/widget/Icon/EllipseIcon.js +10 -17
- package/dist/components/widget/Icon/EllipseIcon.js.map +1 -1
- package/dist/components/widget/Icon/InfoIcon.js +21 -44
- package/dist/components/widget/Icon/InfoIcon.js.map +1 -1
- package/dist/components/widget/Icon/MarketIcon.js +10 -17
- package/dist/components/widget/Icon/MarketIcon.js.map +1 -1
- package/dist/components/widget/Icon/SliderIcon.js +10 -17
- package/dist/components/widget/Icon/SliderIcon.js.map +1 -1
- package/dist/components/widget/ImportToken/ImportToken.js +92 -120
- package/dist/components/widget/ImportToken/ImportToken.js.map +1 -1
- package/dist/components/widget/ImportToken/useImportTokenDrawer.js +38 -89
- package/dist/components/widget/ImportToken/useImportTokenDrawer.js.map +1 -1
- package/dist/components/widget/LimitOrderItem/LimitOrderDetails/Controls.js +97 -208
- package/dist/components/widget/LimitOrderItem/LimitOrderDetails/Controls.js.map +1 -1
- package/dist/components/widget/LimitOrderItem/LimitOrderDetails/LimitOrderDetails.d.ts.map +1 -1
- package/dist/components/widget/LimitOrderItem/LimitOrderDetails/LimitOrderDetails.js +82 -169
- package/dist/components/widget/LimitOrderItem/LimitOrderDetails/LimitOrderDetails.js.map +1 -1
- package/dist/components/widget/LimitOrderItem/LimitOrderDetails/utils.js +77 -89
- package/dist/components/widget/LimitOrderItem/LimitOrderDetails/utils.js.map +1 -1
- package/dist/components/widget/LimitOrderItem/LimitOrderListItem.d.ts +5 -7
- package/dist/components/widget/LimitOrderItem/LimitOrderListItem.d.ts.map +1 -1
- package/dist/components/widget/LimitOrderItem/LimitOrderListItem.js +193 -447
- package/dist/components/widget/LimitOrderItem/LimitOrderListItem.js.map +1 -1
- package/dist/components/widget/LimitOrderItem/constants.js +6 -9
- package/dist/components/widget/LimitOrderItem/constants.js.map +1 -1
- package/dist/components/widget/LimitOrderItem/types.d.ts +1 -0
- package/dist/components/widget/LimitOrderItem/types.d.ts.map +1 -1
- package/dist/components/widget/LimitOrderItem/utils.d.ts.map +1 -1
- package/dist/components/widget/LimitOrderItem/utils.js +43 -63
- package/dist/components/widget/LimitOrderItem/utils.js.map +1 -1
- package/dist/components/widget/LimitPriceInput/index.js +158 -319
- package/dist/components/widget/LimitPriceInput/index.js.map +1 -1
- package/dist/components/widget/Line/Line.js +17 -47
- package/dist/components/widget/Line/Line.js.map +1 -1
- package/dist/components/widget/NetworkIcon/NetworkIconSquare.js +36 -64
- package/dist/components/widget/NetworkIcon/NetworkIconSquare.js.map +1 -1
- package/dist/components/widget/NetworkIcon/assets/sqr/arbitrum.js +47 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/arbitrum.js.map +1 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/avalanche.js +27 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/avalanche.js.map +1 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/base.js +27 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/base.js.map +1 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/bsc.js +31 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/bsc.js.map +1 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/eth.js +67 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/eth.js.map +1 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/gnosis.js +35 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/gnosis.js.map +1 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/optimism.js +33 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/optimism.js.map +1 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/polygon.js +27 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/polygon.js.map +1 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/unichain.js +46 -0
- package/dist/components/widget/NetworkIcon/assets/sqr/unichain.js.map +1 -0
- package/dist/components/widget/NetworkSwitcher/CompactNetworkSwitcher.js +33 -54
- package/dist/components/widget/NetworkSwitcher/CompactNetworkSwitcher.js.map +1 -1
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherDropdown.js +38 -83
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherDropdown.js.map +1 -1
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.js +32 -70
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.js.map +1 -1
- package/dist/components/widget/NetworkSwitcher/common/AllNetworksItem.js +18 -46
- package/dist/components/widget/NetworkSwitcher/common/AllNetworksItem.js.map +1 -1
- package/dist/components/widget/NetworkSwitcher/common/NetworkItem.js +15 -44
- package/dist/components/widget/NetworkSwitcher/common/NetworkItem.js.map +1 -1
- package/dist/components/widget/NetworkSwitcher/utils/items.js +49 -61
- package/dist/components/widget/NetworkSwitcher/utils/items.js.map +1 -1
- package/dist/components/widget/NetworkWithIcon/NetworkIconWithChevron.js +60 -144
- package/dist/components/widget/NetworkWithIcon/NetworkIconWithChevron.js.map +1 -1
- package/dist/components/widget/NetworkWithIcon/NetworkWithIcon.js +55 -109
- package/dist/components/widget/NetworkWithIcon/NetworkWithIcon.js.map +1 -1
- package/dist/components/widget/NumberInput/NumberInput.d.ts +2 -1
- package/dist/components/widget/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/widget/NumberInput/NumberInput.js +102 -237
- package/dist/components/widget/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/widget/NumberInput/assets/arrow-down.js +20 -0
- package/dist/components/widget/NumberInput/assets/arrow-down.js.map +1 -0
- package/dist/components/widget/NumberInput/assets/arrow-up.js +20 -0
- package/dist/components/widget/NumberInput/assets/arrow-up.js.map +1 -0
- package/dist/components/widget/OrderExpiryInput/index.js +112 -223
- package/dist/components/widget/OrderExpiryInput/index.js.map +1 -1
- package/dist/components/widget/OtcOrderItem/OtcOrderDetails/Controls.js +84 -186
- package/dist/components/widget/OtcOrderItem/OtcOrderDetails/Controls.js.map +1 -1
- package/dist/components/widget/OtcOrderItem/OtcOrderDetails/OtcOrderDetails.js +51 -93
- package/dist/components/widget/OtcOrderItem/OtcOrderDetails/OtcOrderDetails.js.map +1 -1
- package/dist/components/widget/OtcOrderItem/OtcOrderDetails/utils.js +16 -15
- package/dist/components/widget/OtcOrderItem/OtcOrderDetails/utils.js.map +1 -1
- package/dist/components/widget/OtcOrderItem/OtcOrderListItem.js +83 -180
- package/dist/components/widget/OtcOrderItem/OtcOrderListItem.js.map +1 -1
- package/dist/components/widget/OtcOrderItem/constants.js +7 -7
- package/dist/components/widget/OtcOrderItem/constants.js.map +1 -1
- package/dist/components/widget/OtcOrderItem/utils.d.ts.map +1 -1
- package/dist/components/widget/OtcOrderItem/utils.js +58 -80
- package/dist/components/widget/OtcOrderItem/utils.js.map +1 -1
- package/dist/components/widget/PayReceiveInfo/PayReceiveInfo.js +92 -198
- package/dist/components/widget/PayReceiveInfo/PayReceiveInfo.js.map +1 -1
- package/dist/components/widget/PoweredBy/PoweredBy.js +16 -19
- package/dist/components/widget/PoweredBy/PoweredBy.js.map +1 -1
- package/dist/components/widget/PoweredBy/assets/velora.js +55 -0
- package/dist/components/widget/PoweredBy/assets/velora.js.map +1 -0
- package/dist/components/widget/ReceiverAddress/ReceiverAddress.js +67 -124
- package/dist/components/widget/ReceiverAddress/ReceiverAddress.js.map +1 -1
- package/dist/components/widget/ReceiverAddress/state/receiverAddressAtom.js +18 -39
- package/dist/components/widget/ReceiverAddress/state/receiverAddressAtom.js.map +1 -1
- package/dist/components/widget/ReceiverAddress/state/subscriptions.js +47 -67
- package/dist/components/widget/ReceiverAddress/state/subscriptions.js.map +1 -1
- package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/FillOtcControls.js +39 -142
- package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/FillOtcControls.js.map +1 -1
- package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/FillOtcReviewAndConfirm.js +90 -204
- package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/FillOtcReviewAndConfirm.js.map +1 -1
- package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/utils.js +82 -106
- package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/utils.js.map +1 -1
- package/dist/components/widget/RowVirtualizer/RowVirtualizerFixed.js +46 -46
- package/dist/components/widget/RowVirtualizer/RowVirtualizerFixed.js.map +1 -1
- package/dist/components/widget/Screen/GenericScreen.js +56 -144
- package/dist/components/widget/Screen/GenericScreen.js.map +1 -1
- package/dist/components/widget/Screen/ScreenContainer.js +18 -34
- package/dist/components/widget/Screen/ScreenContainer.js.map +1 -1
- package/dist/components/widget/SelectToken/SelectTokenButton.js +82 -197
- package/dist/components/widget/SelectToken/SelectTokenButton.js.map +1 -1
- package/dist/components/widget/SettingsButton/SettingsButton.js +25 -59
- package/dist/components/widget/SettingsButton/SettingsButton.js.map +1 -1
- package/dist/components/widget/SwapModeSwitcher/SwapModeSwitcherExpandable.js +166 -413
- package/dist/components/widget/SwapModeSwitcher/SwapModeSwitcherExpandable.js.map +1 -1
- package/dist/components/widget/SwapModeSwitcher/state/swapModeActionsAtom.js +19 -31
- package/dist/components/widget/SwapModeSwitcher/state/swapModeActionsAtom.js.map +1 -1
- package/dist/components/widget/SwapModeSwitcher/state/swapModeAtom.js +7 -9
- package/dist/components/widget/SwapModeSwitcher/state/swapModeAtom.js.map +1 -1
- package/dist/components/widget/SwapModeSwitcher/state/swapSideAtom.js +10 -23
- package/dist/components/widget/SwapModeSwitcher/state/swapSideAtom.js.map +1 -1
- package/dist/components/widget/SwapRate/SwapRate.js +56 -111
- package/dist/components/widget/SwapRate/SwapRate.js.map +1 -1
- package/dist/components/widget/SwapRateWithPriceImpactRow/SwapRateWithPriceImpactRow.js +48 -116
- package/dist/components/widget/SwapRateWithPriceImpactRow/SwapRateWithPriceImpactRow.js.map +1 -1
- package/dist/components/widget/Tabs/Tabs.js +49 -101
- package/dist/components/widget/Tabs/Tabs.js.map +1 -1
- package/dist/components/widget/Toasts/CustomToast.js +120 -220
- package/dist/components/widget/Toasts/CustomToast.js.map +1 -1
- package/dist/components/widget/TokenBadge/TokenBadge.js +81 -174
- package/dist/components/widget/TokenBadge/TokenBadge.js.map +1 -1
- package/dist/components/widget/TokenBadge/TokenLink.js +32 -63
- package/dist/components/widget/TokenBadge/TokenLink.js.map +1 -1
- package/dist/components/widget/TokenBadge/assets/placeholder.js +6 -0
- package/dist/components/widget/TokenBadge/assets/placeholder.js.map +1 -0
- package/dist/components/widget/TokenInput/InputContainer.js +17 -52
- package/dist/components/widget/TokenInput/InputContainer.js.map +1 -1
- package/dist/components/widget/TokenInput/InputField.js +50 -82
- package/dist/components/widget/TokenInput/InputField.js.map +1 -1
- package/dist/components/widget/TokenInput/InputFooter.js +86 -204
- package/dist/components/widget/TokenInput/InputFooter.js.map +1 -1
- package/dist/components/widget/TokenInput/InputHeader.js +28 -56
- package/dist/components/widget/TokenInput/InputHeader.js.map +1 -1
- package/dist/components/widget/TokenInput/common/Balance.js +21 -26
- package/dist/components/widget/TokenInput/common/Balance.js.map +1 -1
- package/dist/components/widget/TokenInput/common/MaxButtons.js +25 -46
- package/dist/components/widget/TokenInput/common/MaxButtons.js.map +1 -1
- package/dist/components/widget/TokenInput/index.js +84 -167
- package/dist/components/widget/TokenInput/index.js.map +1 -1
- package/dist/components/widget/TokenSwitcher/TokenSwitcher.js +34 -75
- package/dist/components/widget/TokenSwitcher/TokenSwitcher.js.map +1 -1
- package/dist/components/widget/TradeOverview/CancelButtonWithDrawer.js +43 -82
- package/dist/components/widget/TradeOverview/CancelButtonWithDrawer.js.map +1 -1
- package/dist/components/widget/TradeOverview/CancelOrder/ConfirmCancel.js +99 -225
- package/dist/components/widget/TradeOverview/CancelOrder/ConfirmCancel.js.map +1 -1
- package/dist/components/widget/TradeOverview/CancelOrder/constants.js +20 -18
- package/dist/components/widget/TradeOverview/CancelOrder/constants.js.map +1 -1
- package/dist/components/widget/TradeOverview/CancelOrder/utils.js +24 -43
- package/dist/components/widget/TradeOverview/CancelOrder/utils.js.map +1 -1
- package/dist/components/widget/TradeOverview/DeltaOrderTradeOverview.js +108 -241
- package/dist/components/widget/TradeOverview/DeltaOrderTradeOverview.js.map +1 -1
- package/dist/components/widget/TradeOverview/FillOtcOrderTradeOverview.js +60 -131
- package/dist/components/widget/TradeOverview/FillOtcOrderTradeOverview.js.map +1 -1
- package/dist/components/widget/TradeOverview/LimitOrderTradeOverview.js +73 -181
- package/dist/components/widget/TradeOverview/LimitOrderTradeOverview.js.map +1 -1
- package/dist/components/widget/TradeOverview/MarketSwapTradeOverview.js +101 -229
- package/dist/components/widget/TradeOverview/MarketSwapTradeOverview.js.map +1 -1
- package/dist/components/widget/TradeOverview/OtcOrderTradeOverview.js +69 -149
- package/dist/components/widget/TradeOverview/OtcOrderTradeOverview.js.map +1 -1
- package/dist/components/widget/TradeOverview/Step/Step.js +71 -164
- package/dist/components/widget/TradeOverview/Step/Step.js.map +1 -1
- package/dist/components/widget/TradeOverview/Step/utils.js +16 -40
- package/dist/components/widget/TradeOverview/Step/utils.js.map +1 -1
- package/dist/components/widget/TradeOverview/Stepper.js +57 -106
- package/dist/components/widget/TradeOverview/Stepper.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/TradeCompleteFooter.js +51 -84
- package/dist/components/widget/TradeOverview/TradeComplete/TradeCompleteFooter.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/TradeCompleteHeader.js +75 -179
- package/dist/components/widget/TradeOverview/TradeComplete/TradeCompleteHeader.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/TradeCompletedDetails.js +21 -24
- package/dist/components/widget/TradeOverview/TradeComplete/TradeCompletedDetails.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/constants.js +11 -9
- package/dist/components/widget/TradeOverview/TradeComplete/constants.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/index.js +22 -46
- package/dist/components/widget/TradeOverview/TradeComplete/index.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/useTradeCompleteDetails.js +96 -170
- package/dist/components/widget/TradeOverview/TradeComplete/useTradeCompleteDetails.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/utils.js +166 -255
- package/dist/components/widget/TradeOverview/TradeComplete/utils.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeDetails.js +175 -375
- package/dist/components/widget/TradeOverview/TradeDetails.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeDetailsDisplay.js +43 -50
- package/dist/components/widget/TradeOverview/TradeDetailsDisplay.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeError/TradeErrorDetails.js +43 -95
- package/dist/components/widget/TradeOverview/TradeError/TradeErrorDetails.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeError/TradeErrorFooter.js +31 -41
- package/dist/components/widget/TradeOverview/TradeError/TradeErrorFooter.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeError/index.js +19 -48
- package/dist/components/widget/TradeOverview/TradeError/index.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeError/utils.js +31 -56
- package/dist/components/widget/TradeOverview/TradeError/utils.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeOverview.js +190 -404
- package/dist/components/widget/TradeOverview/TradeOverview.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeOverviewFooter.js +132 -221
- package/dist/components/widget/TradeOverview/TradeOverviewFooter.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeOverviewHeader.js +26 -45
- package/dist/components/widget/TradeOverview/TradeOverviewHeader.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeOverviewScreen.js +40 -85
- package/dist/components/widget/TradeOverview/TradeOverviewScreen.js.map +1 -1
- package/dist/components/widget/TradeOverview/TwapOrderTradeOverview.js +108 -245
- package/dist/components/widget/TradeOverview/TwapOrderTradeOverview.js.map +1 -1
- package/dist/components/widget/TradeOverview/VerticalDash.js +28 -34
- package/dist/components/widget/TradeOverview/VerticalDash.js.map +1 -1
- package/dist/components/widget/TradeOverview/assets/1_approving.js +6 -0
- package/dist/components/widget/TradeOverview/assets/1_approving.js.map +1 -0
- package/dist/components/widget/TradeOverview/assets/2_in_progress.js +6 -0
- package/dist/components/widget/TradeOverview/assets/2_in_progress.js.map +1 -0
- package/dist/components/widget/TradeOverview/assets/3_executing_step.js +6 -0
- package/dist/components/widget/TradeOverview/assets/3_executing_step.js.map +1 -0
- package/dist/components/widget/TradeOverview/assets/4_complete_step.js +6 -0
- package/dist/components/widget/TradeOverview/assets/4_complete_step.js.map +1 -0
- package/dist/components/widget/TradeOverview/assets/5_error_step.js +6 -0
- package/dist/components/widget/TradeOverview/assets/5_error_step.js.map +1 -0
- package/dist/components/widget/TradeOverview/motionProps.js +63 -119
- package/dist/components/widget/TradeOverview/motionProps.js.map +1 -1
- package/dist/components/widget/TradeOverview/steps.js +141 -121
- package/dist/components/widget/TradeOverview/steps.js.map +1 -1
- package/dist/components/widget/TradeOverview/tradeFlowContext.js +25 -65
- package/dist/components/widget/TradeOverview/tradeFlowContext.js.map +1 -1
- package/dist/components/widget/TradeOverview/utils/isNonFlowStep.js +6 -4
- package/dist/components/widget/TradeOverview/utils/isNonFlowStep.js.map +1 -1
- package/dist/components/widget/TradeOverview/utils/preWrap.js +26 -34
- package/dist/components/widget/TradeOverview/utils/preWrap.js.map +1 -1
- package/dist/components/widget/TradeOverview/utils/useSwapAmountsWithSlippage.js +36 -87
- package/dist/components/widget/TradeOverview/utils/useSwapAmountsWithSlippage.js.map +1 -1
- package/dist/components/widget/TradeParameters/BridgePreferenceParameters/BridgePreferenceParameters.js +38 -88
- package/dist/components/widget/TradeParameters/BridgePreferenceParameters/BridgePreferenceParameters.js.map +1 -1
- package/dist/components/widget/TradeParameters/BridgePreferenceParameters/useDraftBridgePreferencesState.js +28 -66
- package/dist/components/widget/TradeParameters/BridgePreferenceParameters/useDraftBridgePreferencesState.js.map +1 -1
- package/dist/components/widget/TradeParameters/DegenModeConfirmation.js +81 -139
- package/dist/components/widget/TradeParameters/DegenModeConfirmation.js.map +1 -1
- package/dist/components/widget/TradeParameters/DegenModeParameter.js +42 -82
- package/dist/components/widget/TradeParameters/DegenModeParameter.js.map +1 -1
- package/dist/components/widget/TradeParameters/DeltaParameter.js +35 -65
- package/dist/components/widget/TradeParameters/DeltaParameter.js.map +1 -1
- package/dist/components/widget/TradeParameters/EIP1559Parameter.js +27 -55
- package/dist/components/widget/TradeParameters/EIP1559Parameter.js.map +1 -1
- package/dist/components/widget/TradeParameters/SlippageParameter/CustomSlippageInput.js +43 -75
- package/dist/components/widget/TradeParameters/SlippageParameter/CustomSlippageInput.js.map +1 -1
- package/dist/components/widget/TradeParameters/SlippageParameter/EditSlippage.js +16 -25
- package/dist/components/widget/TradeParameters/SlippageParameter/EditSlippage.js.map +1 -1
- package/dist/components/widget/TradeParameters/SlippageParameter/SlippageParameter.js +92 -176
- package/dist/components/widget/TradeParameters/SlippageParameter/SlippageParameter.js.map +1 -1
- package/dist/components/widget/TradeParameters/SlippageParameter/hooks/useCustomSlippageProps.js +60 -141
- package/dist/components/widget/TradeParameters/SlippageParameter/hooks/useCustomSlippageProps.js.map +1 -1
- package/dist/components/widget/TradeParameters/TradeParameters.js +93 -207
- package/dist/components/widget/TradeParameters/TradeParameters.js.map +1 -1
- package/dist/components/widget/TradeParameters/TransactionSpeedParameter.js +98 -181
- package/dist/components/widget/TradeParameters/TransactionSpeedParameter.js.map +1 -1
- package/dist/components/widget/TradeParameters/hooks/useIsNotDefaultAnyParameter.js +25 -49
- package/dist/components/widget/TradeParameters/hooks/useIsNotDefaultAnyParameter.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/bridgePreferences/bridgePreferenceAtom.js +11 -15
- package/dist/components/widget/TradeParameters/state/bridgePreferences/bridgePreferenceAtom.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/bridgePreferences/constants.js +6 -6
- package/dist/components/widget/TradeParameters/state/bridgePreferences/constants.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/bridgePreferences/disabledBridgesAtom.js +12 -17
- package/dist/components/widget/TradeParameters/state/bridgePreferences/disabledBridgesAtom.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/bridgePreferences/excludeBridgesAtom.js +8 -10
- package/dist/components/widget/TradeParameters/state/bridgePreferences/excludeBridgesAtom.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/bridgePreferences/protocolNameAtom.js +7 -6
- package/dist/components/widget/TradeParameters/state/bridgePreferences/protocolNameAtom.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/bridgePreferences/resetDraftsAtom.js +9 -9
- package/dist/components/widget/TradeParameters/state/bridgePreferences/resetDraftsAtom.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/bridgePreferences/useBridgePreferences.js +28 -61
- package/dist/components/widget/TradeParameters/state/bridgePreferences/useBridgePreferences.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/constants.js +5 -8
- package/dist/components/widget/TradeParameters/state/constants.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/degenModeParamAtom.js +7 -19
- package/dist/components/widget/TradeParameters/state/degenModeParamAtom.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/deltaParamActionsAtom.js +9 -9
- package/dist/components/widget/TradeParameters/state/deltaParamActionsAtom.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/deltaParamAtom.js +8 -12
- package/dist/components/widget/TradeParameters/state/deltaParamAtom.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/eip1559ParamAtom.js +7 -10
- package/dist/components/widget/TradeParameters/state/eip1559ParamAtom.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/gasPresetParamAtom.js +9 -14
- package/dist/components/widget/TradeParameters/state/gasPresetParamAtom.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/slippageParamAtom.js +10 -15
- package/dist/components/widget/TradeParameters/state/slippageParamAtom.js.map +1 -1
- package/dist/components/widget/TradeParameters/state/tradePreferencesAtom.js +23 -30
- package/dist/components/widget/TradeParameters/state/tradePreferencesAtom.js.map +1 -1
- package/dist/components/widget/TradeParameters/useTempTradeParameters.js +97 -261
- package/dist/components/widget/TradeParameters/useTempTradeParameters.js.map +1 -1
- package/dist/components/widget/TransactionDetails/LimitOrderDetails/Controls.js +93 -160
- package/dist/components/widget/TransactionDetails/LimitOrderDetails/Controls.js.map +1 -1
- package/dist/components/widget/TransactionDetails/LimitOrderDetails/TransactionDetails.js +49 -84
- package/dist/components/widget/TransactionDetails/LimitOrderDetails/TransactionDetails.js.map +1 -1
- package/dist/components/widget/TransactionDetails/LimitOrderDetails/utils.js +69 -80
- package/dist/components/widget/TransactionDetails/LimitOrderDetails/utils.js.map +1 -1
- package/dist/components/widget/TransactionDetails/TransactionListItem.js +172 -385
- package/dist/components/widget/TransactionDetails/TransactionListItem.js.map +1 -1
- package/dist/components/widget/TransactionDetails/utils.js +44 -75
- package/dist/components/widget/TransactionDetails/utils.js.map +1 -1
- package/dist/components/widget/Twap/CustomDurationDrawer.d.ts +3 -2
- package/dist/components/widget/Twap/CustomDurationDrawer.d.ts.map +1 -1
- package/dist/components/widget/Twap/CustomDurationDrawer.js +146 -233
- package/dist/components/widget/Twap/CustomDurationDrawer.js.map +1 -1
- package/dist/components/widget/Twap/OrderDuration.d.ts +9 -0
- package/dist/components/widget/Twap/OrderDuration.d.ts.map +1 -1
- package/dist/components/widget/Twap/OrderDuration.js +90 -142
- package/dist/components/widget/Twap/OrderDuration.js.map +1 -1
- package/dist/components/widget/Twap/OrderSplit.js +38 -55
- package/dist/components/widget/Twap/OrderSplit.js.map +1 -1
- package/dist/components/widget/Twap/RateProtection.js +40 -55
- package/dist/components/widget/Twap/RateProtection.js.map +1 -1
- package/dist/components/widget/Twap/TwapDetailWithTooltip.js +19 -31
- package/dist/components/widget/Twap/TwapDetailWithTooltip.js.map +1 -1
- package/dist/components/widget/Warning/InsufficientBalanceMessage.js +13 -24
- package/dist/components/widget/Warning/InsufficientBalanceMessage.js.map +1 -1
- package/dist/components/widget/Warning/Warning.js +57 -150
- package/dist/components/widget/Warning/Warning.js.map +1 -1
- package/dist/components/widget/Warning/WarningMessage.js +17 -34
- package/dist/components/widget/Warning/WarningMessage.js.map +1 -1
- package/dist/components/widget/WrapEth/WrapEthContent.js +86 -164
- package/dist/components/widget/WrapEth/WrapEthContent.js.map +1 -1
- package/dist/components/widget/WrapEth/WrapEthDrawerButton.js +64 -156
- package/dist/components/widget/WrapEth/WrapEthDrawerButton.js.map +1 -1
- package/dist/components/widget/WrapEth/hooks/useSubmitDepositTxMutation.js +91 -121
- package/dist/components/widget/WrapEth/hooks/useSubmitDepositTxMutation.js.map +1 -1
- package/dist/components/widget/WrapEth/hooks/useWrapEthProps.js +60 -157
- package/dist/components/widget/WrapEth/hooks/useWrapEthProps.js.map +1 -1
- package/dist/components/widget/YouGet/YouGet.js +94 -156
- package/dist/components/widget/YouGet/YouGet.js.map +1 -1
- package/dist/core/ConnectWalletDrawerButton.js +47 -112
- package/dist/core/ConnectWalletDrawerButton.js.map +1 -1
- package/dist/core/LimitOrderButton.js +68 -160
- package/dist/core/LimitOrderButton.js.map +1 -1
- package/dist/core/LimitOrderDetails.js +13 -22
- package/dist/core/LimitOrderDetails.js.map +1 -1
- package/dist/core/OtcOrderButton.js +72 -156
- package/dist/core/OtcOrderButton.js.map +1 -1
- package/dist/core/OtcOrderDetails.js +13 -22
- package/dist/core/OtcOrderDetails.js.map +1 -1
- package/dist/core/Toaster.js +19 -22
- package/dist/core/Toaster.js.map +1 -1
- package/dist/core/TradeFlowScreenButton.js +119 -258
- package/dist/core/TradeFlowScreenButton.js.map +1 -1
- package/dist/core/TwapDetails.js +13 -22
- package/dist/core/TwapDetails.js.map +1 -1
- package/dist/core/Updaters.js +34 -70
- package/dist/core/Updaters.js.map +1 -1
- package/dist/core/Warnings.d.ts +1 -1
- package/dist/core/Warnings.d.ts.map +1 -1
- package/dist/core/Warnings.js +209 -384
- package/dist/core/Warnings.js.map +1 -1
- package/dist/core/across/isCrosschainPossible.js +24 -39
- package/dist/core/across/isCrosschainPossible.js.map +1 -1
- package/dist/core/across/utils.js +18 -37
- package/dist/core/across/utils.js.map +1 -1
- package/dist/core/button/hooks/useWidgetButtonExtraProps.d.ts.map +1 -1
- package/dist/core/button/hooks/useWidgetButtonExtraProps.js +173 -448
- package/dist/core/button/hooks/useWidgetButtonExtraProps.js.map +1 -1
- package/dist/core/constants.js +14 -23
- package/dist/core/constants.js.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +591 -1398
- package/dist/core/index.js.map +1 -1
- package/dist/core/inputs/hooks/useMaxButtonProps.js +75 -145
- package/dist/core/inputs/hooks/useMaxButtonProps.js.map +1 -1
- package/dist/core/inputs/hooks/useTokenFromInputProps.js +167 -452
- package/dist/core/inputs/hooks/useTokenFromInputProps.js.map +1 -1
- package/dist/core/inputs/hooks/useTokenSwitcherProps.js +17 -35
- package/dist/core/inputs/hooks/useTokenSwitcherProps.js.map +1 -1
- package/dist/core/inputs/hooks/useTokenToInputProps.js +149 -387
- package/dist/core/inputs/hooks/useTokenToInputProps.js.map +1 -1
- package/dist/core/inputs/hooks/useWarningMessage.js +28 -69
- package/dist/core/inputs/hooks/useWarningMessage.js.map +1 -1
- package/dist/core/inputs/hooks/utils.js +24 -39
- package/dist/core/inputs/hooks/utils.js.map +1 -1
- package/dist/core/inputs/state/common.js +141 -171
- package/dist/core/inputs/state/common.js.map +1 -1
- package/dist/core/inputs/state/inputAmountAtom.js +13 -19
- package/dist/core/inputs/state/inputAmountAtom.js.map +1 -1
- package/dist/core/inputs/state/selectedTokenActionsAtom.js +138 -248
- package/dist/core/inputs/state/selectedTokenActionsAtom.js.map +1 -1
- package/dist/core/inputs/state/selectedTokenAtom.js +14 -23
- package/dist/core/inputs/state/selectedTokenAtom.js.map +1 -1
- package/dist/core/inputs/state/setTokenByAddressAtom.js +171 -303
- package/dist/core/inputs/state/setTokenByAddressAtom.js.map +1 -1
- package/dist/core/inputs/state/subscriptions.js +14 -19
- package/dist/core/inputs/state/subscriptions.js.map +1 -1
- package/dist/core/limit/state/constants.js +28 -24
- package/dist/core/limit/state/constants.js.map +1 -1
- package/dist/core/limit/state/currentLimitInputAtom.js +6 -5
- package/dist/core/limit/state/currentLimitInputAtom.js.map +1 -1
- package/dist/core/limit/state/deadlineAtom.js +12 -24
- package/dist/core/limit/state/deadlineAtom.js.map +1 -1
- package/dist/core/limit/state/isCrosschainAtom.js +9 -11
- package/dist/core/limit/state/isCrosschainAtom.js.map +1 -1
- package/dist/core/limit/state/isLimitPriceLockedAtom.js +6 -5
- package/dist/core/limit/state/isLimitPriceLockedAtom.js.map +1 -1
- package/dist/core/limit/state/isLimitPriceReversedAtom.js +6 -5
- package/dist/core/limit/state/isLimitPriceReversedAtom.js.map +1 -1
- package/dist/core/limit/state/limitInputActionsAtom.js +41 -77
- package/dist/core/limit/state/limitInputActionsAtom.js.map +1 -1
- package/dist/core/limit/state/limitInputAmountAtom.js +18 -27
- package/dist/core/limit/state/limitInputAmountAtom.js.map +1 -1
- package/dist/core/limit/state/limitTokenAtoms.js +9 -16
- package/dist/core/limit/state/limitTokenAtoms.js.map +1 -1
- package/dist/core/limit/state/receiverAddressAtom.js +18 -39
- package/dist/core/limit/state/receiverAddressAtom.js.map +1 -1
- package/dist/core/limit/state/selectedTokenActionsAtom.js +86 -160
- package/dist/core/limit/state/selectedTokenActionsAtom.js.map +1 -1
- package/dist/core/limit/state/selectedTokenAtom.js +38 -57
- package/dist/core/limit/state/selectedTokenAtom.js.map +1 -1
- package/dist/core/limit/state/utils.js +89 -101
- package/dist/core/limit/state/utils.js.map +1 -1
- package/dist/core/limit/useLimitDetailsListProps.js +38 -67
- package/dist/core/limit/useLimitDetailsListProps.js.map +1 -1
- package/dist/core/limit/useLimitNotSupported.js +11 -22
- package/dist/core/limit/useLimitNotSupported.js.map +1 -1
- package/dist/core/limit/useLimitPriceDifference.js +25 -50
- package/dist/core/limit/useLimitPriceDifference.js.map +1 -1
- package/dist/core/limit/useLimitPriceInputProps.js +43 -117
- package/dist/core/limit/useLimitPriceInputProps.js.map +1 -1
- package/dist/core/limit/useLimitRate.js +121 -288
- package/dist/core/limit/useLimitRate.js.map +1 -1
- package/dist/core/limit/useLimitTokenFromInputProps.js +144 -389
- package/dist/core/limit/useLimitTokenFromInputProps.js.map +1 -1
- package/dist/core/limit/useLimitTokenSwitcherProps.js +24 -60
- package/dist/core/limit/useLimitTokenSwitcherProps.js.map +1 -1
- package/dist/core/limit/useLimitTokenToInputProps.js +126 -351
- package/dist/core/limit/useLimitTokenToInputProps.js.map +1 -1
- package/dist/core/logger.js +25 -37
- package/dist/core/logger.js.map +1 -1
- package/dist/core/otc/state/currentOtcInputAtom.js +6 -5
- package/dist/core/otc/state/currentOtcInputAtom.js.map +1 -1
- package/dist/core/otc/state/deadlineAtom.js +12 -24
- package/dist/core/otc/state/deadlineAtom.js.map +1 -1
- package/dist/core/otc/state/isOtcPriceLockedAtom.js +6 -5
- package/dist/core/otc/state/isOtcPriceLockedAtom.js.map +1 -1
- package/dist/core/otc/state/isOtcPriceReversedAtom.js +6 -5
- package/dist/core/otc/state/isOtcPriceReversedAtom.js.map +1 -1
- package/dist/core/otc/state/otcInputActionsAtom.js +41 -77
- package/dist/core/otc/state/otcInputActionsAtom.js.map +1 -1
- package/dist/core/otc/state/otcInputAmountAtom.js +18 -27
- package/dist/core/otc/state/otcInputAmountAtom.js.map +1 -1
- package/dist/core/otc/state/receiverAddressAtom.js +18 -39
- package/dist/core/otc/state/receiverAddressAtom.js.map +1 -1
- package/dist/core/otc/state/selectedTokenActionsAtom.js +34 -79
- package/dist/core/otc/state/selectedTokenActionsAtom.js.map +1 -1
- package/dist/core/otc/state/selectedTokenAtom.js +13 -23
- package/dist/core/otc/state/selectedTokenAtom.js.map +1 -1
- package/dist/core/otc/useOtcDetailsListProps.js +38 -67
- package/dist/core/otc/useOtcDetailsListProps.js.map +1 -1
- package/dist/core/otc/useOtcNotSupported.js +11 -22
- package/dist/core/otc/useOtcNotSupported.js.map +1 -1
- package/dist/core/otc/useOtcPriceDifference.js +25 -50
- package/dist/core/otc/useOtcPriceDifference.js.map +1 -1
- package/dist/core/otc/useOtcPriceInputProps.js +48 -136
- package/dist/core/otc/useOtcPriceInputProps.js.map +1 -1
- package/dist/core/otc/useOtcTokenFromInputProps.js +144 -389
- package/dist/core/otc/useOtcTokenFromInputProps.js.map +1 -1
- package/dist/core/otc/useOtcTokenSwitcherProps.js +21 -50
- package/dist/core/otc/useOtcTokenSwitcherProps.js.map +1 -1
- package/dist/core/otc/useOtcTokenToInputProps.js +71 -177
- package/dist/core/otc/useOtcTokenToInputProps.js.map +1 -1
- package/dist/core/screen/hooks/useInitialValue.js +8 -7
- package/dist/core/screen/hooks/useInitialValue.js.map +1 -1
- package/dist/core/screen/hooks/useOnClickOutside.js +16 -33
- package/dist/core/screen/hooks/useOnClickOutside.js.map +1 -1
- package/dist/core/screen/hooks/useResizeObserver.js +18 -34
- package/dist/core/screen/hooks/useResizeObserver.js.map +1 -1
- package/dist/core/screen/hooks/useRunOnMount.js +11 -26
- package/dist/core/screen/hooks/useRunOnMount.js.map +1 -1
- package/dist/core/screen/screenByType.js +16 -16
- package/dist/core/screen/screenByType.js.map +1 -1
- package/dist/core/screen/state/hooks/useScreen.js +13 -23
- package/dist/core/screen/state/hooks/useScreen.js.map +1 -1
- package/dist/core/screen/state/hooks/useScreenValue.js +21 -40
- package/dist/core/screen/state/hooks/useScreenValue.js.map +1 -1
- package/dist/core/screen/state/hooks/useSetScreen.js +56 -111
- package/dist/core/screen/state/hooks/useSetScreen.js.map +1 -1
- package/dist/core/screen/state/screenAtom.js +8 -9
- package/dist/core/screen/state/screenAtom.js.map +1 -1
- package/dist/core/state/apiConfigAtom.js +14 -19
- package/dist/core/state/apiConfigAtom.js.map +1 -1
- package/dist/core/state/chainToAtom.js +51 -88
- package/dist/core/state/chainToAtom.js.map +1 -1
- package/dist/core/state/configActionsAtom.js +21 -40
- package/dist/core/state/configActionsAtom.js.map +1 -1
- package/dist/core/state/configAtom.js +38 -44
- package/dist/core/state/configAtom.js.map +1 -1
- package/dist/core/state/configEffectAtom.js +37 -60
- package/dist/core/state/configEffectAtom.js.map +1 -1
- package/dist/core/state/containerAtom.js +11 -16
- package/dist/core/state/containerAtom.js.map +1 -1
- package/dist/core/state/currentSwapInputAtom.js +6 -5
- package/dist/core/state/currentSwapInputAtom.js.map +1 -1
- package/dist/core/state/enabledChainsAtom.js +39 -96
- package/dist/core/state/enabledChainsAtom.js.map +1 -1
- package/dist/core/state/enabledTradeModesAtom.js +24 -48
- package/dist/core/state/enabledTradeModesAtom.js.map +1 -1
- package/dist/core/state/externalProviderAtom.js +10 -22
- package/dist/core/state/externalProviderAtom.js.map +1 -1
- package/dist/core/state/getSelectableDestChains.js +22 -32
- package/dist/core/state/getSelectableDestChains.js.map +1 -1
- package/dist/core/state/isCrosschainAtom.js +11 -15
- package/dist/core/state/isCrosschainAtom.js.map +1 -1
- package/dist/core/state/tradeModeAtom.js +11 -16
- package/dist/core/state/tradeModeAtom.js.map +1 -1
- package/dist/core/state/validatedPartnerConfigAtom.js +15 -20
- package/dist/core/state/validatedPartnerConfigAtom.js.map +1 -1
- package/dist/core/state/widgetEventsAtom.js +196 -269
- package/dist/core/state/widgetEventsAtom.js.map +1 -1
- package/dist/core/store.js +7 -14
- package/dist/core/store.js.map +1 -1
- package/dist/core/subscriptions.js +9 -10
- package/dist/core/subscriptions.js.map +1 -1
- package/dist/core/swapDetails/fees.js +35 -40
- package/dist/core/swapDetails/fees.js.map +1 -1
- package/dist/core/swapDetails/maxToPay.js +24 -39
- package/dist/core/swapDetails/maxToPay.js.map +1 -1
- package/dist/core/swapDetails/orderRouting.js +42 -60
- package/dist/core/swapDetails/orderRouting.js.map +1 -1
- package/dist/core/swapDetails/priceImpact.js +31 -39
- package/dist/core/swapDetails/priceImpact.js.map +1 -1
- package/dist/core/swapDetails/useSwapDetailsListProps.js +86 -149
- package/dist/core/swapDetails/useSwapDetailsListProps.js.map +1 -1
- package/dist/core/swapDetails/youGet.js +27 -36
- package/dist/core/swapDetails/youGet.js.map +1 -1
- package/dist/core/twap/state/constants.d.ts +3 -1
- package/dist/core/twap/state/constants.d.ts.map +1 -1
- package/dist/core/twap/state/constants.js +22 -27
- package/dist/core/twap/state/constants.js.map +1 -1
- package/dist/core/twap/state/currentTwapInputAtom.js +6 -5
- package/dist/core/twap/state/currentTwapInputAtom.js.map +1 -1
- package/dist/core/twap/state/isCrosschainAtom.js +11 -15
- package/dist/core/twap/state/isCrosschainAtom.js.map +1 -1
- package/dist/core/twap/state/selectedTokenActionsAtom.js +112 -192
- package/dist/core/twap/state/selectedTokenActionsAtom.js.map +1 -1
- package/dist/core/twap/state/twapInputAmountAtom.js +13 -19
- package/dist/core/twap/state/twapInputAmountAtom.js.map +1 -1
- package/dist/core/twap/state/twapParamsAtom.d.ts +2 -1
- package/dist/core/twap/state/twapParamsAtom.d.ts.map +1 -1
- package/dist/core/twap/state/twapParamsAtom.js +17 -29
- package/dist/core/twap/state/twapParamsAtom.js.map +1 -1
- package/dist/core/twap/state/twapReceiverAddressAtom.js +7 -9
- package/dist/core/twap/state/twapReceiverAddressAtom.js.map +1 -1
- package/dist/core/twap/state/twapSideAtom.js +13 -23
- package/dist/core/twap/state/twapSideAtom.js.map +1 -1
- package/dist/core/twap/state/twapTokenAtoms.js +9 -16
- package/dist/core/twap/state/twapTokenAtoms.js.map +1 -1
- package/dist/core/twap/twapDetails/minimumReceiveable.js +31 -42
- package/dist/core/twap/twapDetails/minimumReceiveable.js.map +1 -1
- package/dist/core/twap/useTwapDetailsListProps.js +79 -142
- package/dist/core/twap/useTwapDetailsListProps.js.map +1 -1
- package/dist/core/twap/useTwapTokenFromInputProps.js +162 -452
- package/dist/core/twap/useTwapTokenFromInputProps.js.map +1 -1
- package/dist/core/twap/useTwapTokenSwitcherProps.js +17 -35
- package/dist/core/twap/useTwapTokenSwitcherProps.js.map +1 -1
- package/dist/core/twap/useTwapTokenToInputProps.js +112 -299
- package/dist/core/twap/useTwapTokenToInputProps.js.map +1 -1
- package/dist/events/effects/formInput.js +35 -69
- package/dist/events/effects/formInput.js.map +1 -1
- package/dist/events/effects/price.js +35 -50
- package/dist/events/effects/price.js.map +1 -1
- package/dist/events/effects/swapMode.js +40 -45
- package/dist/events/effects/swapMode.js.map +1 -1
- package/dist/events/getters/limit.js +32 -39
- package/dist/events/getters/limit.js.map +1 -1
- package/dist/events/getters/otc.js +31 -37
- package/dist/events/getters/otc.js.map +1 -1
- package/dist/events/getters/settings.js +21 -27
- package/dist/events/getters/settings.js.map +1 -1
- package/dist/events/getters/swap.js +48 -56
- package/dist/events/getters/swap.js.map +1 -1
- package/dist/events/getters/twap.js +53 -67
- package/dist/events/getters/twap.js.map +1 -1
- package/dist/events/getters/widgetState.js +36 -42
- package/dist/events/getters/widgetState.js.map +1 -1
- package/dist/events/hooks/useActivateEffects.js +8 -10
- package/dist/events/hooks/useActivateEffects.js.map +1 -1
- package/dist/events/hooks/useOnPriceUpdates.js +48 -114
- package/dist/events/hooks/useOnPriceUpdates.js.map +1 -1
- package/dist/events/hooks/useOnWalletConnect.js +30 -66
- package/dist/events/hooks/useOnWalletConnect.js.map +1 -1
- package/dist/external/.pnpm/vaul@1.1.2_patch_hash_07b36ba5def3805dde9d543a880ba9e4caf55e5eb58e544faaa2c186846bf3c1__7f2d7d5ed11750fbec42b3f5689c802d/external/vaul/dist/index.js +910 -1621
- package/dist/external/.pnpm/vaul@1.1.2_patch_hash_07b36ba5def3805dde9d543a880ba9e4caf55e5eb58e544faaa2c186846bf3c1__7f2d7d5ed11750fbec42b3f5689c802d/external/vaul/dist/index.js.map +1 -1
- package/dist/hooks/batch/useAwaitCalls.js +27 -56
- package/dist/hooks/batch/useAwaitCalls.js.map +1 -1
- package/dist/hooks/batch/useBatchWithApproveTxs.js +53 -91
- package/dist/hooks/batch/useBatchWithApproveTxs.js.map +1 -1
- package/dist/hooks/batch/useCanBatchTxs.js +36 -73
- package/dist/hooks/batch/useCanBatchTxs.js.map +1 -1
- package/dist/hooks/batch/useSendBatchTx.js +42 -86
- package/dist/hooks/batch/useSendBatchTx.js.map +1 -1
- package/dist/hooks/connectors/useIsConnectedSafe.js +14 -23
- package/dist/hooks/connectors/useIsConnectedSafe.js.map +1 -1
- package/dist/hooks/connectors/useIsGnosisSafeConnector.js +14 -25
- package/dist/hooks/connectors/useIsGnosisSafeConnector.js.map +1 -1
- package/dist/hooks/connectors/useIsSafeThroughWalletConnect.js +30 -73
- package/dist/hooks/connectors/useIsSafeThroughWalletConnect.js.map +1 -1
- package/dist/hooks/gas/config.js +42 -41
- package/dist/hooks/gas/config.js.map +1 -1
- package/dist/hooks/gas/useGasPrices.js +71 -115
- package/dist/hooks/gas/useGasPrices.js.map +1 -1
- package/dist/hooks/gas/utils.js +11 -10
- package/dist/hooks/gas/utils.js.map +1 -1
- package/dist/hooks/getCode/query.js +19 -28
- package/dist/hooks/getCode/query.js.map +1 -1
- package/dist/hooks/getCode/useIsAccountContract.js +16 -35
- package/dist/hooks/getCode/useIsAccountContract.js.map +1 -1
- package/dist/hooks/getCode/useIsContractAtAddress.js +29 -61
- package/dist/hooks/getCode/useIsContractAtAddress.js.map +1 -1
- package/dist/hooks/otc/mutations/useCancelLimitOrder.js +164 -386
- package/dist/hooks/otc/mutations/useCancelLimitOrder.js.map +1 -1
- package/dist/hooks/otc/mutations/useCreateLimitOrder.js +57 -117
- package/dist/hooks/otc/mutations/useCreateLimitOrder.js.map +1 -1
- package/dist/hooks/otc/mutations/useFillOrder.js +28 -92
- package/dist/hooks/otc/mutations/useFillOrder.js.map +1 -1
- package/dist/hooks/otc/mutations/utils.js +7 -6
- package/dist/hooks/otc/mutations/utils.js.map +1 -1
- package/dist/hooks/otc/queries/useLimitOrderRequiredBalance.js +74 -160
- package/dist/hooks/otc/queries/useLimitOrderRequiredBalance.js.map +1 -1
- package/dist/hooks/otc/queries/useLimitOrders.js +78 -205
- package/dist/hooks/otc/queries/useLimitOrders.js.map +1 -1
- package/dist/hooks/otc/queries/utils.js +17 -7
- package/dist/hooks/otc/queries/utils.js.map +1 -1
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderFlow.js +297 -464
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderFlow.js.map +1 -1
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderStep.js +54 -128
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderStep.js.map +1 -1
- package/dist/hooks/otc/tradeFlow/useOtcOrderFlow.js +251 -389
- package/dist/hooks/otc/tradeFlow/useOtcOrderFlow.js.map +1 -1
- package/dist/hooks/otc/tradeFlow/useOtcOrderStep.js +53 -126
- package/dist/hooks/otc/tradeFlow/useOtcOrderStep.js.map +1 -1
- package/dist/hooks/permit/hooks/common/useSignArbitraryTypedData.js +34 -97
- package/dist/hooks/permit/hooks/common/useSignArbitraryTypedData.js.map +1 -1
- package/dist/hooks/permit/hooks/common/useSignPermit.js +32 -91
- package/dist/hooks/permit/hooks/common/useSignPermit.js.map +1 -1
- package/dist/hooks/permit/hooks/common/useWalletSupportsPermit.js +14 -39
- package/dist/hooks/permit/hooks/common/useWalletSupportsPermit.js.map +1 -1
- package/dist/hooks/permit/hooks/permit1/useGetPermitInfo.js +46 -89
- package/dist/hooks/permit/hooks/permit1/useGetPermitInfo.js.map +1 -1
- package/dist/hooks/permit/hooks/permit1/useGetSafePermitInfo.js +45 -117
- package/dist/hooks/permit/hooks/permit1/useGetSafePermitInfo.js.map +1 -1
- package/dist/hooks/permit/hooks/permit1/usePermit1Nonce.js +110 -141
- package/dist/hooks/permit/hooks/permit1/usePermit1Nonce.js.map +1 -1
- package/dist/hooks/permit/hooks/permit1/useSignTokenPermit1.js +142 -332
- package/dist/hooks/permit/hooks/permit1/useSignTokenPermit1.js.map +1 -1
- package/dist/hooks/permit/hooks/permit1/useTokenFromPermit1Nonce.js +24 -57
- package/dist/hooks/permit/hooks/permit1/useTokenFromPermit1Nonce.js.map +1 -1
- package/dist/hooks/permit/hooks/permit1/useTokenFromPermitInfo.js +22 -51
- package/dist/hooks/permit/hooks/permit1/useTokenFromPermitInfo.js.map +1 -1
- package/dist/hooks/permit/hooks/permit1/useTryToSignPermit1.js +48 -103
- package/dist/hooks/permit/hooks/permit1/useTryToSignPermit1.js.map +1 -1
- package/dist/hooks/permit/hooks/permit2/usePermit2Allowance.js +44 -102
- package/dist/hooks/permit/hooks/permit2/usePermit2Allowance.js.map +1 -1
- package/dist/hooks/permit/hooks/permit2/usePermit2TransferFromNonce.js +91 -139
- package/dist/hooks/permit/hooks/permit2/usePermit2TransferFromNonce.js.map +1 -1
- package/dist/hooks/permit/hooks/permit2/useSignTokenPermit2TransferFrom.js +119 -286
- package/dist/hooks/permit/hooks/permit2/useSignTokenPermit2TransferFrom.js.map +1 -1
- package/dist/hooks/permit/hooks/permit2/useTokenFromPermit2Allowance.js +10 -20
- package/dist/hooks/permit/hooks/permit2/useTokenFromPermit2Allowance.js.map +1 -1
- package/dist/hooks/permit/hooks/permit2/useTokenFromPermit2TransferFromNonce.js +22 -53
- package/dist/hooks/permit/hooks/permit2/useTokenFromPermit2TransferFromNonce.js.map +1 -1
- package/dist/hooks/permit/utils/abi.js +432 -366
- package/dist/hooks/permit/utils/abi.js.map +1 -1
- package/dist/hooks/permit/utils/constants.js +229 -217
- package/dist/hooks/permit/utils/constants.js.map +1 -1
- package/dist/hooks/permit/utils/construct.js +178 -214
- package/dist/hooks/permit/utils/construct.js.map +1 -1
- package/dist/hooks/permit/utils/deadlines.js +9 -7
- package/dist/hooks/permit/utils/deadlines.js.map +1 -1
- package/dist/hooks/permit/utils/detect.js +181 -228
- package/dist/hooks/permit/utils/detect.js.map +1 -1
- package/dist/hooks/permit/utils/domainSeparator.js +123 -200
- package/dist/hooks/permit/utils/domainSeparator.js.map +1 -1
- package/dist/hooks/permit/utils/encodeArgs.js +47 -44
- package/dist/hooks/permit/utils/encodeArgs.js.map +1 -1
- package/dist/hooks/permit/utils/trySignPermit1.js +222 -269
- package/dist/hooks/permit/utils/trySignPermit1.js.map +1 -1
- package/dist/hooks/permit/utils/utils.js +24 -31
- package/dist/hooks/permit/utils/utils.js.map +1 -1
- package/dist/hooks/sdk/useGetContracts.js +11 -22
- package/dist/hooks/sdk/useGetContracts.js.map +1 -1
- package/dist/hooks/sdk/useSpender.js +14 -31
- package/dist/hooks/sdk/useSpender.js.map +1 -1
- package/dist/hooks/swap/prices/constants.js +7 -6
- package/dist/hooks/swap/prices/constants.js.map +1 -1
- package/dist/hooks/swap/prices/delta/bridge/const.js +11 -11
- package/dist/hooks/swap/prices/delta/bridge/const.js.map +1 -1
- package/dist/hooks/swap/prices/delta/bridge/useSelectedBridgePrice.js +19 -34
- package/dist/hooks/swap/prices/delta/bridge/useSelectedBridgePrice.js.map +1 -1
- package/dist/hooks/swap/prices/delta/bridge/utils.js +24 -33
- package/dist/hooks/swap/prices/delta/bridge/utils.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/useCreatePreSignableTwapOrder.js +40 -84
- package/dist/hooks/swap/prices/delta/mutations/twap/useCreatePreSignableTwapOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/useCreateTwapOrder.js +75 -162
- package/dist/hooks/swap/prices/delta/mutations/twap/useCreateTwapOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/useDepositAndSubmitTwapOrder.js +119 -276
- package/dist/hooks/swap/prices/delta/mutations/twap/useDepositAndSubmitTwapOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/usePostTwapOrder.js +40 -87
- package/dist/hooks/swap/prices/delta/mutations/twap/usePostTwapOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/usePreSignAndSubmitTwapOrder.js +133 -323
- package/dist/hooks/swap/prices/delta/mutations/twap/usePreSignAndSubmitTwapOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/useTwapOrderToPost.js +37 -85
- package/dist/hooks/swap/prices/delta/mutations/twap/useTwapOrderToPost.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useCancelDeltaOrders.js +49 -114
- package/dist/hooks/swap/prices/delta/mutations/useCancelDeltaOrders.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useCancelDeltaOrdersEvents.js +60 -101
- package/dist/hooks/swap/prices/delta/mutations/useCancelDeltaOrdersEvents.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useCancelOrWithdrawAndCancelDeltaOrder.js +97 -282
- package/dist/hooks/swap/prices/delta/mutations/useCancelOrWithdrawAndCancelDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useCreateDeltaOrder.js +75 -162
- package/dist/hooks/swap/prices/delta/mutations/useCreateDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useCreatePreSignableDeltaOrder.js +41 -85
- package/dist/hooks/swap/prices/delta/mutations/useCreatePreSignableDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useDeltaOrderToPost.js +37 -85
- package/dist/hooks/swap/prices/delta/mutations/useDeltaOrderToPost.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useIsDeltaOrderCancellable.js +24 -67
- package/dist/hooks/swap/prices/delta/mutations/useIsDeltaOrderCancellable.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/usePostDeltaOrder.js +40 -86
- package/dist/hooks/swap/prices/delta/mutations/usePostDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useSendDepositPreSignDeltaOrderTx.js +32 -78
- package/dist/hooks/swap/prices/delta/mutations/useSendDepositPreSignDeltaOrderTx.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useWithdrawAndCancelDeltaOrder.js +120 -272
- package/dist/hooks/swap/prices/delta/mutations/useWithdrawAndCancelDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/utils.js +43 -61
- package/dist/hooks/swap/prices/delta/mutations/utils.js.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/types.d.ts +18 -3
- package/dist/hooks/swap/prices/delta/orders/types.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/unposted/const.js +6 -7
- package/dist/hooks/swap/prices/delta/orders/unposted/const.js.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/unposted/effect.js +17 -25
- package/dist/hooks/swap/prices/delta/orders/unposted/effect.js.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/unposted/index.js +26 -31
- package/dist/hooks/swap/prices/delta/orders/unposted/index.js.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/unposted/storage.js +31 -42
- package/dist/hooks/swap/prices/delta/orders/unposted/storage.js.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/unposted/utils.js +78 -115
- package/dist/hooks/swap/prices/delta/orders/unposted/utils.js.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/utils.d.ts +15 -17
- package/dist/hooks/swap/prices/delta/orders/utils.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/utils.js +182 -194
- package/dist/hooks/swap/prices/delta/orders/utils.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/bridgeInfosLoadedAtom.js +14 -23
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/bridgeInfosLoadedAtom.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/common.js +7 -7
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/common.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/getBridgeInfoQueryData.js +9 -10
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/getBridgeInfoQueryData.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/useBridgeInfo.js +29 -79
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/useBridgeInfo.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeProtocols/useBridgeProtocols.js +28 -73
- package/dist/hooks/swap/prices/delta/queries/bridgeProtocols/useBridgeProtocols.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/errors.js +21 -26
- package/dist/hooks/swap/prices/delta/queries/errors.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaLimitOrderRequiredBalance.js +73 -159
- package/dist/hooks/swap/prices/delta/queries/useDeltaLimitOrderRequiredBalance.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaOrderPreConditions.js +130 -254
- package/dist/hooks/swap/prices/delta/queries/useDeltaOrderPreConditions.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaOrders.js +49 -130
- package/dist/hooks/swap/prices/delta/queries/useDeltaOrders.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js +129 -201
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useIsTokenSupportedInDelta.js +34 -86
- package/dist/hooks/swap/prices/delta/queries/useIsTokenSupportedInDelta.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useWatchDeltaOrder.d.ts +3 -2
- package/dist/hooks/swap/prices/delta/queries/useWatchDeltaOrder.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useWatchDeltaOrder.js +109 -220
- package/dist/hooks/swap/prices/delta/queries/useWatchDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/prices/factory.js +21 -33
- package/dist/hooks/swap/prices/factory.js.map +1 -1
- package/dist/hooks/swap/prices/market/mutations/useBuildTx.js +20 -53
- package/dist/hooks/swap/prices/market/mutations/useBuildTx.js.map +1 -1
- package/dist/hooks/swap/prices/market/mutations/useSendMarketSwapTx.js +37 -86
- package/dist/hooks/swap/prices/market/mutations/useSendMarketSwapTx.js.map +1 -1
- package/dist/hooks/swap/prices/market/queries/errors.js +11 -13
- package/dist/hooks/swap/prices/market/queries/errors.js.map +1 -1
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.js +136 -197
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.js.map +1 -1
- package/dist/hooks/swap/prices/market/queries/useSpenderAndContracts.js +39 -115
- package/dist/hooks/swap/prices/market/queries/useSpenderAndContracts.js.map +1 -1
- package/dist/hooks/swap/prices/usePricesParams.js +56 -166
- package/dist/hooks/swap/prices/usePricesParams.js.map +1 -1
- package/dist/hooks/swap/prices/useSwapPrices.js +172 -496
- package/dist/hooks/swap/prices/useSwapPrices.js.map +1 -1
- package/dist/hooks/swap/prices/useTokenInputsFromPrice.js +28 -75
- package/dist/hooks/swap/prices/useTokenInputsFromPrice.js.map +1 -1
- package/dist/hooks/swap/prices/useTokenInputsFromTwapPrice.js +28 -70
- package/dist/hooks/swap/prices/useTokenInputsFromTwapPrice.js.map +1 -1
- package/dist/hooks/swap/prices/useTwapPrices.d.ts +2 -1
- package/dist/hooks/swap/prices/useTwapPrices.d.ts.map +1 -1
- package/dist/hooks/swap/prices/useTwapPrices.js +95 -251
- package/dist/hooks/swap/prices/useTwapPrices.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/errors.js +19 -26
- package/dist/hooks/swap/tradeFlow/common/errors.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/factory/depositAndSubmitOrderFactory.js +53 -69
- package/dist/hooks/swap/tradeFlow/common/factory/depositAndSubmitOrderFactory.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/factory/preSignAndSubmitOrderFactory.js +57 -92
- package/dist/hooks/swap/tradeFlow/common/factory/preSignAndSubmitOrderFactory.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/useApproveOrPermit.js +139 -358
- package/dist/hooks/swap/tradeFlow/common/useApproveOrPermit.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/useApproveOrPermitEvents.js +126 -221
- package/dist/hooks/swap/tradeFlow/common/useApproveOrPermitEvents.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/useBatchWrapAndApprove.js +193 -324
- package/dist/hooks/swap/tradeFlow/common/useBatchWrapAndApprove.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/useConstructGasParams.js +39 -81
- package/dist/hooks/swap/tradeFlow/common/useConstructGasParams.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/useDepositAndSubmitDeltaOrder.js +119 -276
- package/dist/hooks/swap/tradeFlow/common/useDepositAndSubmitDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/usePreSignAndSubmitDeltaOrder.js +142 -354
- package/dist/hooks/swap/tradeFlow/common/usePreSignAndSubmitDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/useRequiredAllowanceForOrders.js +30 -86
- package/dist/hooks/swap/tradeFlow/common/useRequiredAllowanceForOrders.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/useSignPermit1Or2.js +153 -355
- package/dist/hooks/swap/tradeFlow/common/useSignPermit1Or2.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/utils.js +20 -20
- package/dist/hooks/swap/tradeFlow/common/utils.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.js +408 -636
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.js +87 -235
- package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.js +306 -436
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useLimitOrderStep.js +53 -123
- package/dist/hooks/swap/tradeFlow/useLimitOrderStep.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useMarketFlow.js +435 -658
- package/dist/hooks/swap/tradeFlow/useMarketFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useMarketSwapStep.js +88 -231
- package/dist/hooks/swap/tradeFlow/useMarketSwapStep.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useTwapFlow.d.ts +0 -3
- package/dist/hooks/swap/tradeFlow/useTwapFlow.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useTwapFlow.js +365 -616
- package/dist/hooks/swap/tradeFlow/useTwapFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useTwapSwapStep.js +82 -223
- package/dist/hooks/swap/tradeFlow/useTwapSwapStep.js.map +1 -1
- package/dist/hooks/tokens/allowance/useGenericTokenAllowance.js +87 -140
- package/dist/hooks/tokens/allowance/useGenericTokenAllowance.js.map +1 -1
- package/dist/hooks/tokens/allowance/useTokenAllowance.js +28 -75
- package/dist/hooks/tokens/allowance/useTokenAllowance.js.map +1 -1
- package/dist/hooks/tokens/allowance/utils.js +16 -27
- package/dist/hooks/tokens/allowance/utils.js.map +1 -1
- package/dist/hooks/tokens/balances/queries.js +56 -76
- package/dist/hooks/tokens/balances/queries.js.map +1 -1
- package/dist/hooks/tokens/balances/useAttachTokenBalanceMultichain.js +35 -78
- package/dist/hooks/tokens/balances/useAttachTokenBalanceMultichain.js.map +1 -1
- package/dist/hooks/tokens/balances/useInvalidateTokenData.js +52 -75
- package/dist/hooks/tokens/balances/useInvalidateTokenData.js.map +1 -1
- package/dist/hooks/tokens/balances/useIsInsufficientTokenBalance.js +27 -64
- package/dist/hooks/tokens/balances/useIsInsufficientTokenBalance.js.map +1 -1
- package/dist/hooks/tokens/balances/useIsLimitOrderInsufficientBalance.js +69 -190
- package/dist/hooks/tokens/balances/useIsLimitOrderInsufficientBalance.js.map +1 -1
- package/dist/hooks/tokens/balances/useMultichainTokenBalances.js +40 -77
- package/dist/hooks/tokens/balances/useMultichainTokenBalances.js.map +1 -1
- package/dist/hooks/tokens/balances/useSelectedTokenBalances.js +22 -36
- package/dist/hooks/tokens/balances/useSelectedTokenBalances.js.map +1 -1
- package/dist/hooks/tokens/balances/useTokenBalance.js +95 -252
- package/dist/hooks/tokens/balances/useTokenBalance.js.map +1 -1
- package/dist/hooks/tokens/data/useCombineTokensWithFetched.js +50 -124
- package/dist/hooks/tokens/data/useCombineTokensWithFetched.js.map +1 -1
- package/dist/hooks/tokens/data/useFetchTokens.js +15 -40
- package/dist/hooks/tokens/data/useFetchTokens.js.map +1 -1
- package/dist/hooks/tokens/data/useMultichainTokensData.js +106 -165
- package/dist/hooks/tokens/data/useMultichainTokensData.js.map +1 -1
- package/dist/hooks/tokens/prices/queries.js +50 -74
- package/dist/hooks/tokens/prices/queries.js.map +1 -1
- package/dist/hooks/tokens/prices/useMultichainTokenPrices.js +32 -69
- package/dist/hooks/tokens/prices/useMultichainTokenPrices.js.map +1 -1
- package/dist/hooks/tokens/prices/useTokenPrices.js +48 -115
- package/dist/hooks/tokens/prices/useTokenPrices.js.map +1 -1
- package/dist/hooks/tokens/useAllTokensWithFilter.js +107 -258
- package/dist/hooks/tokens/useAllTokensWithFilter.js.map +1 -1
- package/dist/hooks/tokens/useNativeToken.js +14 -36
- package/dist/hooks/tokens/useNativeToken.js.map +1 -1
- package/dist/hooks/tokens/useTokenTaxFee.js +32 -65
- package/dist/hooks/tokens/useTokenTaxFee.js.map +1 -1
- package/dist/hooks/tokens/useTokensByAddress.js +20 -32
- package/dist/hooks/tokens/useTokensByAddress.js.map +1 -1
- package/dist/hooks/tokens/useTokensFromAcross.js +22 -62
- package/dist/hooks/tokens/useTokensFromAcross.js.map +1 -1
- package/dist/hooks/txs/mutations/useApprove.js +54 -142
- package/dist/hooks/txs/mutations/useApprove.js.map +1 -1
- package/dist/hooks/txs/mutations/useDepositWeth.js +56 -138
- package/dist/hooks/txs/mutations/useDepositWeth.js.map +1 -1
- package/dist/hooks/txs/mutations/useReplaceTx.js +234 -509
- package/dist/hooks/txs/mutations/useReplaceTx.js.map +1 -1
- package/dist/hooks/txs/mutations/useSendTx.js +33 -103
- package/dist/hooks/txs/mutations/useSendTx.js.map +1 -1
- package/dist/hooks/txs/queries/useAccountNonce.js +16 -29
- package/dist/hooks/txs/queries/useAccountNonce.js.map +1 -1
- package/dist/hooks/txs/queries/useAwaitTx.js +62 -169
- package/dist/hooks/txs/queries/useAwaitTx.js.map +1 -1
- package/dist/hooks/txs/queries/useTxFees.js +42 -98
- package/dist/hooks/txs/queries/useTxFees.js.map +1 -1
- package/dist/hooks/txs/queries/useTxHistory.js +71 -121
- package/dist/hooks/txs/queries/useTxHistory.js.map +1 -1
- package/dist/hooks/txs/queries/useTxResponse.js +28 -72
- package/dist/hooks/txs/queries/useTxResponse.js.map +1 -1
- package/dist/hooks/txs/queries/useWalletCanReplaceTx.js +14 -28
- package/dist/hooks/txs/queries/useWalletCanReplaceTx.js.map +1 -1
- package/dist/hooks/txs/queries/utils.js +11 -10
- package/dist/hooks/txs/queries/utils.js.map +1 -1
- package/dist/hooks/useAvailableCrosses.js +35 -73
- package/dist/hooks/useAvailableCrosses.js.map +1 -1
- package/dist/hooks/useBreakpoints.js +10 -20
- package/dist/hooks/useBreakpoints.js.map +1 -1
- package/dist/hooks/useBridgeInfo.js +18 -37
- package/dist/hooks/useBridgeInfo.js.map +1 -1
- package/dist/hooks/useBridgeProtocols.js +19 -32
- package/dist/hooks/useBridgeProtocols.js.map +1 -1
- package/dist/hooks/useCachedQueryError.js +8 -9
- package/dist/hooks/useCachedQueryError.js.map +1 -1
- package/dist/hooks/useChainMatches.js +13 -29
- package/dist/hooks/useChainMatches.js.map +1 -1
- package/dist/hooks/useClickOutside.js +26 -63
- package/dist/hooks/useClickOutside.js.map +1 -1
- package/dist/hooks/useCurrentChain.js +9 -8
- package/dist/hooks/useCurrentChain.js.map +1 -1
- package/dist/hooks/useDebouncedInputState.js +24 -58
- package/dist/hooks/useDebouncedInputState.js.map +1 -1
- package/dist/hooks/useEIP1559Enabled.js +16 -29
- package/dist/hooks/useEIP1559Enabled.js.map +1 -1
- package/dist/hooks/useGlobalDeltaEnabled.js +20 -40
- package/dist/hooks/useGlobalDeltaEnabled.js.map +1 -1
- package/dist/hooks/useIsCrosschainPossible.js +23 -67
- package/dist/hooks/useIsCrosschainPossible.js.map +1 -1
- package/dist/hooks/useMinViemClient.js +47 -105
- package/dist/hooks/useMinViemClient.js.map +1 -1
- package/dist/hooks/usePartner.js +7 -8
- package/dist/hooks/usePartner.js.map +1 -1
- package/dist/hooks/useSDK.js +130 -148
- package/dist/hooks/useSDK.js.map +1 -1
- package/dist/hooks/useSelectableDestChains.js +35 -94
- package/dist/hooks/useSelectableDestChains.js.map +1 -1
- package/dist/hooks/useSlippage.js +20 -45
- package/dist/hooks/useSlippage.js.map +1 -1
- package/dist/hooks/useSwitchChainWithGuard.js +28 -68
- package/dist/hooks/useSwitchChainWithGuard.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/lib/constants/delta.js +16 -18
- package/dist/lib/constants/delta.js.map +1 -1
- package/dist/lib/constants/index.js +5 -9
- package/dist/lib/constants/index.js.map +1 -1
- package/dist/lib/constants/mobile.js +6 -5
- package/dist/lib/constants/mobile.js.map +1 -1
- package/dist/lib/constants/otc.js +11 -5
- package/dist/lib/constants/otc.js.map +1 -1
- package/dist/lib/constants/storage.js +6 -5
- package/dist/lib/constants/storage.js.map +1 -1
- package/dist/lib/constants/time.d.ts +1 -0
- package/dist/lib/constants/time.d.ts.map +1 -1
- package/dist/lib/constants/time.js +5 -6
- package/dist/lib/constants/time.js.map +1 -1
- package/dist/lib/constants/urls.js +16 -26
- package/dist/lib/constants/urls.js.map +1 -1
- package/dist/lib/constants/weth.js +62 -62
- package/dist/lib/constants/weth.js.map +1 -1
- package/dist/lib/ipfs.js +11 -22
- package/dist/lib/ipfs.js.map +1 -1
- package/dist/lib/queryClient.js +40 -60
- package/dist/lib/queryClient.js.map +1 -1
- package/dist/lib/tradeMode.js +16 -8
- package/dist/lib/tradeMode.js.map +1 -1
- package/dist/lib/utils/approval.js +78 -112
- package/dist/lib/utils/approval.js.map +1 -1
- package/dist/lib/utils/atomWithCompare.js +7 -11
- package/dist/lib/utils/atomWithCompare.js.map +1 -1
- package/dist/lib/utils/copyToClipboard.js +11 -12
- package/dist/lib/utils/copyToClipboard.js.map +1 -1
- package/dist/lib/utils/delta.js +52 -74
- package/dist/lib/utils/delta.js.map +1 -1
- package/dist/lib/utils/dexes.js +5 -11
- package/dist/lib/utils/dexes.js.map +1 -1
- package/dist/lib/utils/explorer.js +20 -41
- package/dist/lib/utils/explorer.js.map +1 -1
- package/dist/lib/utils/fee.js +11 -12
- package/dist/lib/utils/fee.js.map +1 -1
- package/dist/lib/utils/formatFiatPrice.js +11 -10
- package/dist/lib/utils/formatFiatPrice.js.map +1 -1
- package/dist/lib/utils/formatPercent.js +9 -8
- package/dist/lib/utils/formatPercent.js.map +1 -1
- package/dist/lib/utils/formatTokenBalance.js +15 -32
- package/dist/lib/utils/formatTokenBalance.js.map +1 -1
- package/dist/lib/utils/index.js +63 -97
- package/dist/lib/utils/index.js.map +1 -1
- package/dist/lib/utils/logger.js +160 -229
- package/dist/lib/utils/logger.js.map +1 -1
- package/dist/lib/utils/metabase.js +25 -25
- package/dist/lib/utils/metabase.js.map +1 -1
- package/dist/lib/utils/mobile.js +7 -8
- package/dist/lib/utils/mobile.js.map +1 -1
- package/dist/lib/utils/price.js +22 -35
- package/dist/lib/utils/price.js.map +1 -1
- package/dist/lib/utils/priceImpact.js +29 -41
- package/dist/lib/utils/priceImpact.js.map +1 -1
- package/dist/lib/utils/providerErrors.js +26 -25
- package/dist/lib/utils/providerErrors.js.map +1 -1
- package/dist/lib/utils/rate.js +14 -16
- package/dist/lib/utils/rate.js.map +1 -1
- package/dist/lib/utils/removeZeroDecimals.js +11 -12
- package/dist/lib/utils/removeZeroDecimals.js.map +1 -1
- package/dist/lib/utils/savedAmountUSD.js +26 -55
- package/dist/lib/utils/savedAmountUSD.js.map +1 -1
- package/dist/lib/utils/scaleFactor.js +11 -10
- package/dist/lib/utils/scaleFactor.js.map +1 -1
- package/dist/lib/utils/slippage.js +12 -11
- package/dist/lib/utils/slippage.js.map +1 -1
- package/dist/lib/utils/theme.js +5 -9
- package/dist/lib/utils/theme.js.map +1 -1
- package/dist/lib/utils/time.js +13 -14
- package/dist/lib/utils/time.js.map +1 -1
- package/dist/lib/utils/toDecimal.js +13 -22
- package/dist/lib/utils/toDecimal.js.map +1 -1
- package/dist/lib/utils/toasts.js +65 -50
- package/dist/lib/utils/toasts.js.map +1 -1
- package/dist/lib/utils/tradeFlow.js +12 -10
- package/dist/lib/utils/tradeFlow.js.map +1 -1
- package/dist/lib/utils/transactionHandlers.js +12 -15
- package/dist/lib/utils/transactionHandlers.js.map +1 -1
- package/dist/lib/utils/tuple.js +10 -12
- package/dist/lib/utils/tuple.js.map +1 -1
- package/dist/lib/utils/twap.js +29 -47
- package/dist/lib/utils/twap.js.map +1 -1
- package/dist/lib/utils/useDateNow.js +7 -5
- package/dist/lib/utils/useDateNow.js.map +1 -1
- package/dist/lib/web3/privy/config.js +15 -36
- package/dist/lib/web3/privy/config.js.map +1 -1
- package/dist/lib/web3/wagmi/config.js +25 -36
- package/dist/lib/web3/wagmi/config.js.map +1 -1
- package/dist/lib/web3/wagmi/constants.js +36 -27
- package/dist/lib/web3/wagmi/constants.js.map +1 -1
- package/dist/lib/web3/wagmi/external.js +27 -32
- package/dist/lib/web3/wagmi/external.js.map +1 -1
- package/dist/lib/web3/wagmi/isInIframe.js +5 -3
- package/dist/lib/web3/wagmi/isInIframe.js.map +1 -1
- package/dist/lib/web3/wagmi/isInsideSafeIframe.js +61 -109
- package/dist/lib/web3/wagmi/isInsideSafeIframe.js.map +1 -1
- package/dist/lib/web3/wagmi/supportedChains.js +2 -0
- package/dist/lib/web3/wagmi/switchChain.js +13 -21
- package/dist/lib/web3/wagmi/switchChain.js.map +1 -1
- package/dist/lib/web3/wagmi/transports.js +18 -20
- package/dist/lib/web3/wagmi/transports.js.map +1 -1
- package/dist/lib/web3/wagmi/utils.js +8 -7
- package/dist/lib/web3/wagmi/utils.js.map +1 -1
- package/dist/styles.css +1 -3506
- package/dist/tokens/blacklist.js +16 -23
- package/dist/tokens/blacklist.js.map +1 -1
- package/dist/tokens/constants.js +20 -23
- package/dist/tokens/constants.js.map +1 -1
- package/dist/tokens/constructor.js +50 -75
- package/dist/tokens/constructor.js.map +1 -1
- package/dist/tokens/defaultTokens.js +203 -207
- package/dist/tokens/defaultTokens.js.map +1 -1
- package/dist/tokens/hooks.js +16 -20
- package/dist/tokens/hooks.js.map +1 -1
- package/dist/tokens/lists/constants.js +13 -30
- package/dist/tokens/lists/constants.js.map +1 -1
- package/dist/tokens/lists/download.js +16 -29
- package/dist/tokens/lists/download.js.map +1 -1
- package/dist/tokens/lists/lists.js +6 -0
- package/dist/tokens/lists/lists.js.map +1 -0
- package/dist/tokens/lists/state/effects.js +26 -30
- package/dist/tokens/lists/state/effects.js.map +1 -1
- package/dist/tokens/lists/state/tokenListsActionsAtom.js +24 -34
- package/dist/tokens/lists/state/tokenListsActionsAtom.js.map +1 -1
- package/dist/tokens/lists/state/tokenListsStateAtom.js +32 -53
- package/dist/tokens/lists/state/tokenListsStateAtom.js.map +1 -1
- package/dist/tokens/lists/utils.js +14 -19
- package/dist/tokens/lists/utils.js.map +1 -1
- package/dist/tokens/overrides.js +86 -173
- package/dist/tokens/overrides.js.map +1 -1
- package/dist/tokens/queries.js +65 -119
- package/dist/tokens/queries.js.map +1 -1
- package/dist/tokens/stabeCoins/hooks.js +17 -36
- package/dist/tokens/stabeCoins/hooks.js.map +1 -1
- package/dist/tokens/stabeCoins/index.js +5 -6
- package/dist/tokens/stabeCoins/index.js.map +1 -1
- package/dist/tokens/state/addImportedTokenAtom.js +55 -71
- package/dist/tokens/state/addImportedTokenAtom.js.map +1 -1
- package/dist/tokens/state/allTokensByChainAtom.js +36 -47
- package/dist/tokens/state/allTokensByChainAtom.js.map +1 -1
- package/dist/tokens/state/constructTokens.js +25 -37
- package/dist/tokens/state/constructTokens.js.map +1 -1
- package/dist/tokens/state/fromListsAtom.js +34 -42
- package/dist/tokens/state/fromListsAtom.js.map +1 -1
- package/dist/tokens/state/importedTokensAtom.js +8 -10
- package/dist/tokens/state/importedTokensAtom.js.map +1 -1
- package/dist/tokens/utils/areTokensSame.js +6 -4
- package/dist/tokens/utils/areTokensSame.js.map +1 -1
- package/dist/tokens/utils/brand.js +8 -7
- package/dist/tokens/utils/brand.js.map +1 -1
- package/dist/tokens/utils/eth.js +9 -12
- package/dist/tokens/utils/eth.js.map +1 -1
- package/dist/tokens/utils/filtering.js +34 -72
- package/dist/tokens/utils/filtering.js.map +1 -1
- package/dist/tokens/utils/sets.js +13 -16
- package/dist/tokens/utils/sets.js.map +1 -1
- package/dist/tokens/utils/sorting.js +33 -51
- package/dist/tokens/utils/sorting.js.map +1 -1
- package/dist/tokens/utils/transferAmountsFromReceipt.js +160 -345
- package/dist/tokens/utils/transferAmountsFromReceipt.js.map +1 -1
- package/dist/transactions/hash.js +15 -30
- package/dist/transactions/hash.js.map +1 -1
- package/dist/transactions/logger.js +6 -5
- package/dist/transactions/logger.js.map +1 -1
- package/dist/transactions/queries/ensureCallsStatus.js +27 -43
- package/dist/transactions/queries/ensureCallsStatus.js.map +1 -1
- package/dist/transactions/queries/ensureEstimateFeesPerGas.js +14 -21
- package/dist/transactions/queries/ensureEstimateFeesPerGas.js.map +1 -1
- package/dist/transactions/queries/ensureTxReceipt.js +49 -85
- package/dist/transactions/queries/ensureTxReceipt.js.map +1 -1
- package/dist/transactions/queries/ensureTxResponse.js +14 -21
- package/dist/transactions/queries/ensureTxResponse.js.map +1 -1
- package/dist/transactions/state/effects/finalize.js +46 -72
- package/dist/transactions/state/effects/finalize.js.map +1 -1
- package/dist/transactions/state/hooks/useActivateEffects.js +8 -10
- package/dist/transactions/state/hooks/useActivateEffects.js.map +1 -1
- package/dist/transactions/state/hooks/useMarkTxAsDropped.js +8 -8
- package/dist/transactions/state/hooks/useMarkTxAsDropped.js.map +1 -1
- package/dist/transactions/state/hooks/useTransactions.js +28 -68
- package/dist/transactions/state/hooks/useTransactions.js.map +1 -1
- package/dist/transactions/state/transactionsActionAtom.js +147 -222
- package/dist/transactions/state/transactionsActionAtom.js.map +1 -1
- package/dist/transactions/state/transactionsAtom.js +23 -58
- package/dist/transactions/state/transactionsAtom.js.map +1 -1
- package/dist/transactions/status.js +7 -11
- package/dist/transactions/status.js.map +1 -1
- package/dist/transactions/utils.js +26 -27
- package/dist/transactions/utils.js.map +1 -1
- package/package.json +11 -9
- package/dist/_virtual/index.js +0 -6
- package/dist/_virtual/index.js.map +0 -1
- package/dist/assets/bridges/canonical-uni.svg.js +0 -12
- package/dist/assets/bridges/canonical-uni.svg.js.map +0 -1
- package/dist/assets/bridges/cctp.svg.js +0 -12
- package/dist/assets/bridges/cctp.svg.js.map +0 -1
- package/dist/assets/bridges/celer.svg.js +0 -16
- package/dist/assets/bridges/celer.svg.js.map +0 -1
- package/dist/assets/bridges/relay.svg.js.map +0 -1
- package/dist/assets/check.svg.js +0 -12
- package/dist/assets/check.svg.js.map +0 -1
- package/dist/assets/chevron.svg.js +0 -12
- package/dist/assets/chevron.svg.js.map +0 -1
- package/dist/assets/circle-check.svg.js +0 -12
- package/dist/assets/circle-check.svg.js.map +0 -1
- package/dist/assets/circle-exclamation.svg.js +0 -12
- package/dist/assets/circle-exclamation.svg.js.map +0 -1
- package/dist/assets/copy.svg.js +0 -12
- package/dist/assets/copy.svg.js.map +0 -1
- package/dist/assets/delta.svg.js +0 -12
- package/dist/assets/delta.svg.js.map +0 -1
- package/dist/assets/ellipse.svg.js +0 -12
- package/dist/assets/ellipse.svg.js.map +0 -1
- package/dist/assets/external-url.svg.js +0 -12
- package/dist/assets/external-url.svg.js.map +0 -1
- package/dist/assets/info.svg.js +0 -12
- package/dist/assets/info.svg.js.map +0 -1
- package/dist/assets/logout.svg.js +0 -12
- package/dist/assets/logout.svg.js.map +0 -1
- package/dist/assets/market.svg.js +0 -12
- package/dist/assets/price-impact.svg.js +0 -12
- package/dist/assets/price-impact.svg.js.map +0 -1
- package/dist/assets/receipt.svg.js +0 -12
- package/dist/assets/receipt.svg.js.map +0 -1
- package/dist/assets/refresh.svg.js +0 -12
- package/dist/assets/refresh.svg.js.map +0 -1
- package/dist/assets/slider.svg.js +0 -12
- package/dist/assets/slider.svg.js.map +0 -1
- package/dist/assets/speedometer.svg.js +0 -12
- package/dist/assets/speedometer.svg.js.map +0 -1
- package/dist/assets/spinner.svg.js +0 -18
- package/dist/assets/spinner.svg.js.map +0 -1
- package/dist/assets/two-dots.svg.js +0 -12
- package/dist/assets/two-dots.svg.js.map +0 -1
- package/dist/assets/vlr.svg.js +0 -4
- package/dist/assets/vlr.svg.js.map +0 -1
- package/dist/assets/wavax.svg.js +0 -12
- package/dist/assets/wavax.svg.js.map +0 -1
- package/dist/assets/wavax.svg2.js +0 -4
- package/dist/assets/wavax.svg2.js.map +0 -1
- package/dist/assets/wbnb.svg.js +0 -12
- package/dist/assets/wbnb.svg.js.map +0 -1
- package/dist/assets/wbnb.svg2.js +0 -4
- package/dist/assets/wbnb.svg2.js.map +0 -1
- package/dist/assets/weth.svg.js +0 -12
- package/dist/assets/weth.svg.js.map +0 -1
- package/dist/assets/weth.svg2.js +0 -4
- package/dist/assets/weth.svg2.js.map +0 -1
- package/dist/assets/wmatic.svg.js +0 -12
- package/dist/assets/wmatic.svg.js.map +0 -1
- package/dist/assets/wmatic.svg2.js +0 -4
- package/dist/assets/wmatic.svg2.js.map +0 -1
- package/dist/assets/wxdai.svg.js +0 -12
- package/dist/assets/wxdai.svg.js.map +0 -1
- package/dist/assets/wxdai.svg2.js +0 -4
- package/dist/assets/wxdai.svg2.js.map +0 -1
- package/dist/components/web3/ConnectWallets/assets/browser-wallet.svg.js +0 -4
- package/dist/components/web3/ConnectWallets/assets/browser-wallet.svg.js.map +0 -1
- package/dist/components/web3/ConnectWallets/assets/bscwallet.svg.js +0 -4
- package/dist/components/web3/ConnectWallets/assets/bscwallet.svg.js.map +0 -1
- package/dist/components/web3/ConnectWallets/assets/coinbasewallet.svg.js +0 -4
- package/dist/components/web3/ConnectWallets/assets/coinbasewallet.svg.js.map +0 -1
- package/dist/components/web3/ConnectWallets/assets/email.svg.js +0 -4
- package/dist/components/web3/ConnectWallets/assets/email.svg.js.map +0 -1
- package/dist/components/web3/ConnectWallets/assets/ledger.svg.js +0 -4
- package/dist/components/web3/ConnectWallets/assets/ledger.svg.js.map +0 -1
- package/dist/components/web3/ConnectWallets/assets/metamask.svg.js +0 -4
- package/dist/components/web3/ConnectWallets/assets/metamask.svg.js.map +0 -1
- package/dist/components/web3/ConnectWallets/assets/paraswap.svg.js +0 -4
- package/dist/components/web3/ConnectWallets/assets/paraswap.svg.js.map +0 -1
- package/dist/components/web3/ConnectWallets/assets/safe.svg.js +0 -4
- package/dist/components/web3/ConnectWallets/assets/safe.svg.js.map +0 -1
- package/dist/components/web3/ConnectWallets/assets/trezor.svg.js +0 -4
- package/dist/components/web3/ConnectWallets/assets/trezor.svg.js.map +0 -1
- package/dist/components/web3/ConnectWallets/assets/walletconnect.svg.js +0 -4
- package/dist/components/web3/ConnectWallets/assets/walletconnect.svg.js.map +0 -1
- package/dist/components/widget/AppHeader/Activities/assets/eye-crossed.svg.js +0 -12
- package/dist/components/widget/AppHeader/Activities/assets/eye-crossed.svg.js.map +0 -1
- package/dist/components/widget/AppHeader/Activities/assets/eye.svg.js +0 -12
- package/dist/components/widget/AppHeader/Activities/assets/eye.svg.js.map +0 -1
- package/dist/components/widget/DexesList/assets/exchanges/biswap.png.js +0 -4
- package/dist/components/widget/DexesList/assets/exchanges/biswap.png.js.map +0 -1
- package/dist/components/widget/DexesList/assets/exchanges/cheeseswap.png.js +0 -4
- package/dist/components/widget/DexesList/assets/exchanges/cheeseswap.png.js.map +0 -1
- package/dist/components/widget/DexesList/assets/exchanges/complusswap.png.js +0 -4
- package/dist/components/widget/DexesList/assets/exchanges/complusswap.png.js.map +0 -1
- package/dist/components/widget/DexesList/assets/exchanges/hashflow.png.js +0 -4
- package/dist/components/widget/DexesList/assets/exchanges/hashflow.png.js.map +0 -1
- package/dist/components/widget/DexesList/assets/exchanges/icons.json.js +0 -159
- package/dist/components/widget/DexesList/assets/exchanges/icons.json.js.map +0 -1
- package/dist/components/widget/DexesList/assets/exchanges/quickswap.png.js +0 -4
- package/dist/components/widget/DexesList/assets/exchanges/quickswap.png.js.map +0 -1
- package/dist/components/widget/DexesList/assets/exchanges/shibaswap.png.js +0 -4
- package/dist/components/widget/DexesList/assets/exchanges/shibaswap.png.js.map +0 -1
- package/dist/components/widget/DexesList/assets/exchanges/uniswap.svg.js +0 -4
- package/dist/components/widget/DexesList/assets/exchanges/uniswap.svg.js.map +0 -1
- package/dist/components/widget/DexesList/assets/exchanges/velora-dark.svg.js +0 -4
- package/dist/components/widget/DexesList/assets/exchanges/velora-dark.svg.js.map +0 -1
- package/dist/components/widget/DexesList/assets/exchanges/velora-light.svg.js +0 -4
- package/dist/components/widget/DexesList/assets/exchanges/velora-light.svg.js.map +0 -1
- package/dist/components/widget/DexesList/assets/gas.svg.js +0 -12
- package/dist/components/widget/DexesList/assets/gas.svg.js.map +0 -1
- package/dist/components/widget/DexesList/assets/unknown-dex.svg.js +0 -4
- package/dist/components/widget/DexesList/assets/unknown-dex.svg.js.map +0 -1
- package/dist/components/widget/NetworkIcon/assets/sqr/arbitrum.svg.js +0 -12
- package/dist/components/widget/NetworkIcon/assets/sqr/arbitrum.svg.js.map +0 -1
- package/dist/components/widget/NetworkIcon/assets/sqr/avalanche.svg.js +0 -12
- package/dist/components/widget/NetworkIcon/assets/sqr/avalanche.svg.js.map +0 -1
- package/dist/components/widget/NetworkIcon/assets/sqr/base.svg.js +0 -12
- package/dist/components/widget/NetworkIcon/assets/sqr/base.svg.js.map +0 -1
- package/dist/components/widget/NetworkIcon/assets/sqr/bsc.svg.js +0 -12
- package/dist/components/widget/NetworkIcon/assets/sqr/bsc.svg.js.map +0 -1
- package/dist/components/widget/NetworkIcon/assets/sqr/eth.svg.js +0 -12
- package/dist/components/widget/NetworkIcon/assets/sqr/eth.svg.js.map +0 -1
- package/dist/components/widget/NetworkIcon/assets/sqr/gnosis.svg.js +0 -12
- package/dist/components/widget/NetworkIcon/assets/sqr/gnosis.svg.js.map +0 -1
- package/dist/components/widget/NetworkIcon/assets/sqr/optimism.svg.js +0 -12
- package/dist/components/widget/NetworkIcon/assets/sqr/optimism.svg.js.map +0 -1
- package/dist/components/widget/NetworkIcon/assets/sqr/polygon.svg.js +0 -12
- package/dist/components/widget/NetworkIcon/assets/sqr/polygon.svg.js.map +0 -1
- package/dist/components/widget/NetworkIcon/assets/sqr/unichain.svg.js +0 -12
- package/dist/components/widget/NetworkIcon/assets/sqr/unichain.svg.js.map +0 -1
- package/dist/components/widget/NumberInput/assets/arrow-down.svg.js +0 -12
- package/dist/components/widget/NumberInput/assets/arrow-down.svg.js.map +0 -1
- package/dist/components/widget/NumberInput/assets/arrow-up.svg.js +0 -12
- package/dist/components/widget/NumberInput/assets/arrow-up.svg.js.map +0 -1
- package/dist/components/widget/PoweredBy/assets/velora.svg.js +0 -12
- package/dist/components/widget/PoweredBy/assets/velora.svg.js.map +0 -1
- package/dist/components/widget/TokenBadge/assets/placeholder.png.js +0 -4
- package/dist/components/widget/TokenBadge/assets/placeholder.png.js.map +0 -1
- package/dist/components/widget/TradeOverview/assets/1_approving.lottie.js +0 -4
- package/dist/components/widget/TradeOverview/assets/1_approving.lottie.js.map +0 -1
- package/dist/components/widget/TradeOverview/assets/2_in_progress.lottie.js +0 -4
- package/dist/components/widget/TradeOverview/assets/2_in_progress.lottie.js.map +0 -1
- package/dist/components/widget/TradeOverview/assets/3_executing_step.lottie.js +0 -4
- package/dist/components/widget/TradeOverview/assets/3_executing_step.lottie.js.map +0 -1
- package/dist/components/widget/TradeOverview/assets/4_complete_step.lottie.js +0 -4
- package/dist/components/widget/TradeOverview/assets/4_complete_step.lottie.js.map +0 -1
- package/dist/components/widget/TradeOverview/assets/5_error_step.lottie.js +0 -4
- package/dist/components/widget/TradeOverview/assets/5_error_step.lottie.js.map +0 -1
- package/dist/external/.pnpm/react-compiler-runtime@1.0.0_react@19.1.1/external/react-compiler-runtime/dist/index.js +0 -385
- package/dist/external/.pnpm/react-compiler-runtime@1.0.0_react@19.1.1/external/react-compiler-runtime/dist/index.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/tokens/lists/lists.json.js +0 -4
- package/dist/tokens/lists/lists.json.js.map +0 -1
package/dist/core/index.js
CHANGED
|
@@ -1,1423 +1,616 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
$[3] = t1;
|
|
165
|
-
} else {
|
|
166
|
-
t1 = $[3];
|
|
167
|
-
}
|
|
168
|
-
let t2;
|
|
169
|
-
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
170
|
-
t2 = /* @__PURE__ */ jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsx(OrderExpiryInput, { type: "otc" }) });
|
|
171
|
-
$[4] = t2;
|
|
172
|
-
} else {
|
|
173
|
-
t2 = $[4];
|
|
174
|
-
}
|
|
175
|
-
let t3;
|
|
176
|
-
if ($[5] !== t0 || $[6] !== t1) {
|
|
177
|
-
t3 = /* @__PURE__ */ jsxs("div", { className: t0, children: [
|
|
178
|
-
t1,
|
|
179
|
-
t2
|
|
180
|
-
] });
|
|
181
|
-
$[5] = t0;
|
|
182
|
-
$[6] = t1;
|
|
183
|
-
$[7] = t3;
|
|
184
|
-
} else {
|
|
185
|
-
t3 = $[7];
|
|
186
|
-
}
|
|
187
|
-
return t3;
|
|
188
|
-
};
|
|
189
|
-
const LimitOrderScreen = () => {
|
|
190
|
-
const $ = distExports.c(1);
|
|
191
|
-
let t0;
|
|
192
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
193
|
-
t0 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
194
|
-
/* @__PURE__ */ jsx(LimitTokenFromInput, {}),
|
|
195
|
-
/* @__PURE__ */ jsx(LimitTokenSwitcher, {}),
|
|
196
|
-
/* @__PURE__ */ jsx(LimitTokenToInput, {}),
|
|
197
|
-
/* @__PURE__ */ jsx(LimitOrderExtraInputs, {}),
|
|
198
|
-
/* @__PURE__ */ jsx(LimitReceiverAddress, {}),
|
|
199
|
-
/* @__PURE__ */ jsx(WidgetWarning, {}),
|
|
200
|
-
/* @__PURE__ */ jsx(LimitOrderButton, {}),
|
|
201
|
-
/* @__PURE__ */ jsx(LimitOrderDetails, {})
|
|
202
|
-
] });
|
|
203
|
-
$[0] = t0;
|
|
204
|
-
} else {
|
|
205
|
-
t0 = $[0];
|
|
206
|
-
}
|
|
207
|
-
return t0;
|
|
208
|
-
};
|
|
209
|
-
const OtcOrderScreen = () => {
|
|
210
|
-
const $ = distExports.c(1);
|
|
211
|
-
let t0;
|
|
212
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
213
|
-
t0 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
214
|
-
/* @__PURE__ */ jsx(OtcTokenFromInput, {}),
|
|
215
|
-
/* @__PURE__ */ jsx(OtcTokenSwitcher, {}),
|
|
216
|
-
/* @__PURE__ */ jsx(OtcTokenToInput, {}),
|
|
217
|
-
/* @__PURE__ */ jsx(OtcOrderExtraInputs, {}),
|
|
218
|
-
/* @__PURE__ */ jsx(OtcReceiverAddress, {}),
|
|
219
|
-
/* @__PURE__ */ jsx(WidgetWarning, {}),
|
|
220
|
-
/* @__PURE__ */ jsx(OtcOrderButton, {}),
|
|
221
|
-
/* @__PURE__ */ jsx(OtcOrderDetails, {})
|
|
222
|
-
] });
|
|
223
|
-
$[0] = t0;
|
|
224
|
-
} else {
|
|
225
|
-
t0 = $[0];
|
|
226
|
-
}
|
|
227
|
-
return t0;
|
|
228
|
-
};
|
|
229
|
-
const TwapExtraInputs = () => {
|
|
230
|
-
const $ = distExports.c(1);
|
|
231
|
-
let t0;
|
|
232
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
233
|
-
t0 = /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 pt-4", children: [
|
|
234
|
-
/* @__PURE__ */ jsx(TwapOrderDuration, {}),
|
|
235
|
-
/* @__PURE__ */ jsx(TwapOrderSplit, {}),
|
|
236
|
-
/* @__PURE__ */ jsx(TwapRateProtection, {})
|
|
237
|
-
] });
|
|
238
|
-
$[0] = t0;
|
|
239
|
-
} else {
|
|
240
|
-
t0 = $[0];
|
|
241
|
-
}
|
|
242
|
-
return t0;
|
|
1
|
+
import '../styles.css';/* empty css */
|
|
2
|
+
import { jotaiStore as e, useAtomValue as t, useSetAtom as n } from "./store.js";
|
|
3
|
+
import { cn as r } from "../lib/utils/index.js";
|
|
4
|
+
import { useTradeMode as i } from "./state/tradeModeAtom.js";
|
|
5
|
+
import { defaultSubConfig as a, defaultWidgetConfig as o, excludeUIAtom as s, useWidgetConfig as c } from "./state/configAtom.js";
|
|
6
|
+
import { apiConfigAtom as l } from "./state/apiConfigAtom.js";
|
|
7
|
+
import { isBridgePrice as u } from "../hooks/swap/prices/delta/queries/useDeltaPriceQuery.js";
|
|
8
|
+
import { useSwapReceiverAddress as d } from "../components/widget/ReceiverAddress/state/receiverAddressAtom.js";
|
|
9
|
+
import { useLimitReceiverAddress as f } from "./limit/state/receiverAddressAtom.js";
|
|
10
|
+
import { useOtcReceiverAddress as p } from "./otc/state/receiverAddressAtom.js";
|
|
11
|
+
import { useWidgetEventsSetter as m, widgetEventsAtom as ee } from "./state/widgetEventsAtom.js";
|
|
12
|
+
import { WIDGET_ELEMENT_ID as te, WIDGET_HEIGHT_CLASSNAME as h } from "./constants.js";
|
|
13
|
+
import { containerAtom as g } from "./state/containerAtom.js";
|
|
14
|
+
import { TokenInput as _ } from "../components/widget/TokenInput/index.js";
|
|
15
|
+
import { useTokenFromInputProps as v } from "./inputs/hooks/useTokenFromInputProps.js";
|
|
16
|
+
import { JotaiProvider as y, QueryClientProvider as b, Web3Providers as ne } from "../components/web3/providers.js";
|
|
17
|
+
import { formInputPropsAtom as re, useSetFormInputFromProps as ie } from "./inputs/state/setTokenByAddressAtom.js";
|
|
18
|
+
import { useSwapPrices as x } from "../hooks/swap/prices/useSwapPrices.js";
|
|
19
|
+
import { Updaters as ae } from "./Updaters.js";
|
|
20
|
+
import { useTokenToInputProps as S } from "./inputs/hooks/useTokenToInputProps.js";
|
|
21
|
+
import { TokenSwitcher as C } from "../components/widget/TokenSwitcher/TokenSwitcher.js";
|
|
22
|
+
import { useSwapTokenSwitcherProps as w } from "./inputs/hooks/useTokenSwitcherProps.js";
|
|
23
|
+
import { useDrawerContainerHeightTransition as T } from "../components/widget/Drawer/state/useDrawerControls.js";
|
|
24
|
+
import { runSubscriptions as E } from "./subscriptions.js";
|
|
25
|
+
import { PrivyIframeDependency as oe } from "../components/web3/ConnectWallets/privy/iframe.js";
|
|
26
|
+
import { SwapModeSwitcherExpandable as D } from "../components/widget/SwapModeSwitcher/SwapModeSwitcherExpandable.js";
|
|
27
|
+
import { useTokenInputsFromPrice as O } from "../hooks/swap/prices/useTokenInputsFromPrice.js";
|
|
28
|
+
import { SwapDetailsExpandable as se } from "../components/widget/Details/SwapDetailsExpandable.js";
|
|
29
|
+
import { ReceiverAddress as k } from "../components/widget/ReceiverAddress/ReceiverAddress.js";
|
|
30
|
+
import { externalProviderAtom as ce } from "./state/externalProviderAtom.js";
|
|
31
|
+
import { AppHeader as A } from "../components/widget/AppHeader/AppHeader.js";
|
|
32
|
+
import { setSubConfigAtom as le, setWidgetConfigAtom as ue } from "./state/configActionsAtom.js";
|
|
33
|
+
import { PoweredBy as j } from "../components/widget/PoweredBy/PoweredBy.js";
|
|
34
|
+
import { useUnsupportedLimitChain as M } from "./limit/useLimitNotSupported.js";
|
|
35
|
+
import { useUnsupportedOtcChain as N } from "./otc/useOtcNotSupported.js";
|
|
36
|
+
import { useLimitTokenFromInputProps as P } from "./limit/useLimitTokenFromInputProps.js";
|
|
37
|
+
import { useLimitTokenToInputProps as F } from "./limit/useLimitTokenToInputProps.js";
|
|
38
|
+
import { useTwapButtonExtraProps as I, useWidgetButtonExtraProps as L } from "./button/hooks/useWidgetButtonExtraProps.js";
|
|
39
|
+
import { Toaster as R } from "./Toaster.js";
|
|
40
|
+
import { AutoconnectExternalProvider as de } from "../components/web3/ConnectExternalProvider/AutoconnectExternal.js";
|
|
41
|
+
import { SwapTradeFlowScreenButton as z, TwapTradeFlowScreenButton as B } from "./TradeFlowScreenButton.js";
|
|
42
|
+
import { ConnectWalletDrawerButton as V } from "./ConnectWalletDrawerButton.js";
|
|
43
|
+
import { PriceInput as H } from "../components/widget/LimitPriceInput/index.js";
|
|
44
|
+
import { OrderExpiryInput as U } from "../components/widget/OrderExpiryInput/index.js";
|
|
45
|
+
import { InWidgetDrawerOverlay as W } from "../components/widget/Drawer/Overlay.js";
|
|
46
|
+
import { LimitOrderButton as G } from "./LimitOrderButton.js";
|
|
47
|
+
import { LimitOrderDetails as K } from "./LimitOrderDetails.js";
|
|
48
|
+
import { useOtcTokenFromInputProps as q } from "./otc/useOtcTokenFromInputProps.js";
|
|
49
|
+
import { useOtcTokenToInputProps as fe } from "./otc/useOtcTokenToInputProps.js";
|
|
50
|
+
import { useLimitPriceInputProps as J } from "./limit/useLimitPriceInputProps.js";
|
|
51
|
+
import { useOtcPriceInputProps as Y } from "./otc/useOtcPriceInputProps.js";
|
|
52
|
+
import { OtcOrderButton as pe } from "./OtcOrderButton.js";
|
|
53
|
+
import { OtcOrderDetails as me } from "./OtcOrderDetails.js";
|
|
54
|
+
import { SwapWidgetWarning as he, TwapWarnings as X, WidgetWarning as ge } from "./Warnings.js";
|
|
55
|
+
import { useLimitTokenSwitcherProps as _e } from "./limit/useLimitTokenSwitcherProps.js";
|
|
56
|
+
import { useOtcTokenSwitcherProps as ve } from "./otc/useOtcTokenSwitcherProps.js";
|
|
57
|
+
import { useTwapTokenFromInputProps as ye } from "./twap/useTwapTokenFromInputProps.js";
|
|
58
|
+
import { useTwapTokenToInputProps as be } from "./twap/useTwapTokenToInputProps.js";
|
|
59
|
+
import { useTwapTokenSwitcherProps as xe } from "./twap/useTwapTokenSwitcherProps.js";
|
|
60
|
+
import { TwapOrderDuration as Se } from "../components/widget/Twap/OrderDuration.js";
|
|
61
|
+
import { TwapOrderSplit as Ce } from "../components/widget/Twap/OrderSplit.js";
|
|
62
|
+
import { TwapRateProtection as we } from "../components/widget/Twap/RateProtection.js";
|
|
63
|
+
import { TwapDetails as Te } from "./TwapDetails.js";
|
|
64
|
+
import { useTokenInputsFromTwapPrice as Ee } from "../hooks/swap/prices/useTokenInputsFromTwapPrice.js";
|
|
65
|
+
import { useInitialValue as De } from "./screen/hooks/useInitialValue.js";
|
|
66
|
+
import { useScreenValue as Oe } from "./screen/state/hooks/useScreenValue.js";
|
|
67
|
+
import { MainScreenContainer as ke, SecondaryScreenContainer as Ae } from "../components/widget/Screen/ScreenContainer.js";
|
|
68
|
+
import { useCloseScreenOnClickOutside as je } from "./screen/hooks/useOnClickOutside.js";
|
|
69
|
+
import { useResizeObserver as Me } from "./screen/hooks/useResizeObserver.js";
|
|
70
|
+
import { BridgeSelectorExpandable as Ne } from "../components/widget/BridgeSelectorExpandable/BridgeSelectorExpandable.js";
|
|
71
|
+
import { c as Z } from "react-compiler-runtime";
|
|
72
|
+
import { useLayoutEffect as Pe, useRef as Fe } from "react";
|
|
73
|
+
import { useQueryClient as Ie } from "@tanstack/react-query";
|
|
74
|
+
import { Fragment as Le, jsx as Q, jsxs as $ } from "react/jsx-runtime";
|
|
75
|
+
import { useHydrateAtoms as Re } from "jotai/utils";
|
|
76
|
+
import { useAccount as ze } from "wagmi";
|
|
77
|
+
import { queryClientAtom as Be } from "jotai-tanstack-query";
|
|
78
|
+
import { ErrorBoundary as Ve } from "react-error-boundary";
|
|
79
|
+
//#region src/core/index.tsx
|
|
80
|
+
E();
|
|
81
|
+
var He = () => {
|
|
82
|
+
let e = Z(1), t;
|
|
83
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ $(Le, { children: [
|
|
84
|
+
/* @__PURE__ */ Q(nt, {}),
|
|
85
|
+
/* @__PURE__ */ Q(ut, {}),
|
|
86
|
+
/* @__PURE__ */ Q(ot, {}),
|
|
87
|
+
/* @__PURE__ */ Q(gt, {}),
|
|
88
|
+
/* @__PURE__ */ Q(ge, {}),
|
|
89
|
+
/* @__PURE__ */ Q(he, {}),
|
|
90
|
+
/* @__PURE__ */ Q(mt, {}),
|
|
91
|
+
/* @__PURE__ */ Q(ht, {}),
|
|
92
|
+
/* @__PURE__ */ Q(bt, {})
|
|
93
|
+
] }), e[0] = t) : t = e[0], t;
|
|
94
|
+
}, Ue = () => {
|
|
95
|
+
let e = Z(8), t = J(), n = M(), i;
|
|
96
|
+
e[0] === n ? i = e[1] : (i = r("flex gap-4 items-stretch py-2", { "pointer-events-none": n }), e[0] = n, e[1] = i);
|
|
97
|
+
let a;
|
|
98
|
+
e[2] === t ? a = e[3] : (a = /* @__PURE__ */ Q("div", {
|
|
99
|
+
className: "flex-1",
|
|
100
|
+
children: /* @__PURE__ */ Q(H, { ...t })
|
|
101
|
+
}), e[2] = t, e[3] = a);
|
|
102
|
+
let o;
|
|
103
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Q("div", {
|
|
104
|
+
className: "flex-1",
|
|
105
|
+
children: /* @__PURE__ */ Q(U, { type: "limit" })
|
|
106
|
+
}), e[4] = o) : o = e[4];
|
|
107
|
+
let s;
|
|
108
|
+
return e[5] !== i || e[6] !== a ? (s = /* @__PURE__ */ $("div", {
|
|
109
|
+
className: i,
|
|
110
|
+
children: [a, o]
|
|
111
|
+
}), e[5] = i, e[6] = a, e[7] = s) : s = e[7], s;
|
|
112
|
+
}, We = () => {
|
|
113
|
+
let e = Z(8), t = Y(), n = N(), i;
|
|
114
|
+
e[0] === n ? i = e[1] : (i = r("flex gap-4 items-stretch py-2", { "pointer-events-none": n }), e[0] = n, e[1] = i);
|
|
115
|
+
let a;
|
|
116
|
+
e[2] === t ? a = e[3] : (a = /* @__PURE__ */ Q("div", {
|
|
117
|
+
className: "flex-1",
|
|
118
|
+
children: /* @__PURE__ */ Q(H, { ...t })
|
|
119
|
+
}), e[2] = t, e[3] = a);
|
|
120
|
+
let o;
|
|
121
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Q("div", {
|
|
122
|
+
className: "flex-1",
|
|
123
|
+
children: /* @__PURE__ */ Q(U, { type: "otc" })
|
|
124
|
+
}), e[4] = o) : o = e[4];
|
|
125
|
+
let s;
|
|
126
|
+
return e[5] !== i || e[6] !== a ? (s = /* @__PURE__ */ $("div", {
|
|
127
|
+
className: i,
|
|
128
|
+
children: [a, o]
|
|
129
|
+
}), e[5] = i, e[6] = a, e[7] = s) : s = e[7], s;
|
|
130
|
+
}, Ge = () => {
|
|
131
|
+
let e = Z(1), t;
|
|
132
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ $(Le, { children: [
|
|
133
|
+
/* @__PURE__ */ Q(rt, {}),
|
|
134
|
+
/* @__PURE__ */ Q(dt, {}),
|
|
135
|
+
/* @__PURE__ */ Q(st, {}),
|
|
136
|
+
/* @__PURE__ */ Q(Ue, {}),
|
|
137
|
+
/* @__PURE__ */ Q(vt, {}),
|
|
138
|
+
/* @__PURE__ */ Q(ge, {}),
|
|
139
|
+
/* @__PURE__ */ Q(G, {}),
|
|
140
|
+
/* @__PURE__ */ Q(K, {})
|
|
141
|
+
] }), e[0] = t) : t = e[0], t;
|
|
142
|
+
}, Ke = () => {
|
|
143
|
+
let e = Z(1), t;
|
|
144
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ $(Le, { children: [
|
|
145
|
+
/* @__PURE__ */ Q(it, {}),
|
|
146
|
+
/* @__PURE__ */ Q(ft, {}),
|
|
147
|
+
/* @__PURE__ */ Q(ct, {}),
|
|
148
|
+
/* @__PURE__ */ Q(We, {}),
|
|
149
|
+
/* @__PURE__ */ Q(_t, {}),
|
|
150
|
+
/* @__PURE__ */ Q(ge, {}),
|
|
151
|
+
/* @__PURE__ */ Q(pe, {}),
|
|
152
|
+
/* @__PURE__ */ Q(me, {})
|
|
153
|
+
] }), e[0] = t) : t = e[0], t;
|
|
154
|
+
}, qe = () => {
|
|
155
|
+
let e = Z(1), t;
|
|
156
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ $("div", {
|
|
157
|
+
className: "flex flex-col gap-4 pt-4",
|
|
158
|
+
children: [
|
|
159
|
+
/* @__PURE__ */ Q(Se, {}),
|
|
160
|
+
/* @__PURE__ */ Q(Ce, {}),
|
|
161
|
+
/* @__PURE__ */ Q(we, {})
|
|
162
|
+
]
|
|
163
|
+
}), e[0] = t) : t = e[0], t;
|
|
243
164
|
};
|
|
244
|
-
function
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
toToken: tokenToInputProps.token,
|
|
283
|
-
fromAmount: tokenFromInputProps.amount,
|
|
284
|
-
toAmount: tokenToInputProps.amount,
|
|
285
|
-
swapSide: overrides.side
|
|
286
|
-
} : void 0;
|
|
287
|
-
$[7] = overrides.side;
|
|
288
|
-
$[8] = tokenFromInputProps.amount;
|
|
289
|
-
$[9] = tokenFromInputProps.token;
|
|
290
|
-
$[10] = tokenToInputProps.amount;
|
|
291
|
-
$[11] = tokenToInputProps.token;
|
|
292
|
-
$[12] = t2;
|
|
293
|
-
} else {
|
|
294
|
-
t2 = $[12];
|
|
295
|
-
}
|
|
296
|
-
const orderProps = t2;
|
|
297
|
-
let t3;
|
|
298
|
-
if ($[13] !== tokenFromInputProps.token || $[14] !== tokenToInputProps.token) {
|
|
299
|
-
t3 = {
|
|
300
|
-
tokenFrom: tokenFromInputProps.token,
|
|
301
|
-
tokenTo: tokenToInputProps.token
|
|
302
|
-
};
|
|
303
|
-
$[13] = tokenFromInputProps.token;
|
|
304
|
-
$[14] = tokenToInputProps.token;
|
|
305
|
-
$[15] = t3;
|
|
306
|
-
} else {
|
|
307
|
-
t3 = $[15];
|
|
308
|
-
}
|
|
309
|
-
const extraProps = useTwapButtonExtraProps(t3);
|
|
310
|
-
if (!isConnected) {
|
|
311
|
-
let t42;
|
|
312
|
-
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
313
|
-
t42 = /* @__PURE__ */ jsx(ConnectWalletDrawerButton, {});
|
|
314
|
-
$[16] = t42;
|
|
315
|
-
} else {
|
|
316
|
-
t42 = $[16];
|
|
317
|
-
}
|
|
318
|
-
return t42;
|
|
319
|
-
}
|
|
320
|
-
let t4;
|
|
321
|
-
if ($[17] !== extraProps.className || $[18] !== extraProps.disabled || $[19] !== extraProps.labelOverride || $[20] !== orderProps || $[21] !== overrides.price) {
|
|
322
|
-
t4 = /* @__PURE__ */ jsx(TwapTradeFlowScreenButton, { orderProps, twapPrice: overrides.price, disabled: extraProps.disabled, labelOverride: extraProps.labelOverride, className: extraProps.className });
|
|
323
|
-
$[17] = extraProps.className;
|
|
324
|
-
$[18] = extraProps.disabled;
|
|
325
|
-
$[19] = extraProps.labelOverride;
|
|
326
|
-
$[20] = orderProps;
|
|
327
|
-
$[21] = overrides.price;
|
|
328
|
-
$[22] = t4;
|
|
329
|
-
} else {
|
|
330
|
-
t4 = $[22];
|
|
331
|
-
}
|
|
332
|
-
return t4;
|
|
165
|
+
function Je() {
|
|
166
|
+
let e = Z(23), { isConnected: t } = ze(), n = Ee(), r;
|
|
167
|
+
e[0] !== n.isLoading || e[1] !== n.tokenFromAmount ? (r = {
|
|
168
|
+
override: n.tokenFromAmount,
|
|
169
|
+
isPriceLoading: n.isLoading
|
|
170
|
+
}, e[0] = n.isLoading, e[1] = n.tokenFromAmount, e[2] = r) : r = e[2];
|
|
171
|
+
let i = ye(r), a;
|
|
172
|
+
e[3] !== n.cachedError || e[4] !== n.isLoading || e[5] !== n.tokenToAmount ? (a = {
|
|
173
|
+
override: n.tokenToAmount,
|
|
174
|
+
isPriceLoading: n.isLoading,
|
|
175
|
+
priceError: n.cachedError
|
|
176
|
+
}, e[3] = n.cachedError, e[4] = n.isLoading, e[5] = n.tokenToAmount, e[6] = a) : a = e[6];
|
|
177
|
+
let o = be(a), s;
|
|
178
|
+
e[7] !== n.side || e[8] !== i.amount || e[9] !== i.token || e[10] !== o.amount || e[11] !== o.token ? (s = i.token && o.token ? {
|
|
179
|
+
fromToken: i.token,
|
|
180
|
+
toToken: o.token,
|
|
181
|
+
fromAmount: i.amount,
|
|
182
|
+
toAmount: o.amount,
|
|
183
|
+
swapSide: n.side
|
|
184
|
+
} : void 0, e[7] = n.side, e[8] = i.amount, e[9] = i.token, e[10] = o.amount, e[11] = o.token, e[12] = s) : s = e[12];
|
|
185
|
+
let c = s, l;
|
|
186
|
+
e[13] !== i.token || e[14] !== o.token ? (l = {
|
|
187
|
+
tokenFrom: i.token,
|
|
188
|
+
tokenTo: o.token
|
|
189
|
+
}, e[13] = i.token, e[14] = o.token, e[15] = l) : l = e[15];
|
|
190
|
+
let u = I(l);
|
|
191
|
+
if (!t) {
|
|
192
|
+
let t;
|
|
193
|
+
return e[16] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Q(V, {}), e[16] = t) : t = e[16], t;
|
|
194
|
+
}
|
|
195
|
+
let d;
|
|
196
|
+
return e[17] !== u.className || e[18] !== u.disabled || e[19] !== u.labelOverride || e[20] !== c || e[21] !== n.price ? (d = /* @__PURE__ */ Q(B, {
|
|
197
|
+
orderProps: c,
|
|
198
|
+
twapPrice: n.price,
|
|
199
|
+
disabled: u.disabled,
|
|
200
|
+
labelOverride: u.labelOverride,
|
|
201
|
+
className: u.className
|
|
202
|
+
}), e[17] = u.className, e[18] = u.disabled, e[19] = u.labelOverride, e[20] = c, e[21] = n.price, e[22] = d) : d = e[22], d;
|
|
333
203
|
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
204
|
+
var Ye = {
|
|
205
|
+
swap: He,
|
|
206
|
+
limit: Ge,
|
|
207
|
+
otc: Ke,
|
|
208
|
+
twap: () => {
|
|
209
|
+
let e = Z(1), t;
|
|
210
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ $(Le, { children: [
|
|
211
|
+
/* @__PURE__ */ Q(at, {}),
|
|
212
|
+
/* @__PURE__ */ Q(pt, {}),
|
|
213
|
+
/* @__PURE__ */ Q(lt, {}),
|
|
214
|
+
/* @__PURE__ */ Q(qe, {}),
|
|
215
|
+
/* @__PURE__ */ Q(ge, {}),
|
|
216
|
+
/* @__PURE__ */ Q(X, {}),
|
|
217
|
+
/* @__PURE__ */ Q(Te, {}),
|
|
218
|
+
/* @__PURE__ */ Q(Je, {})
|
|
219
|
+
] }), e[0] = t) : t = e[0], t;
|
|
220
|
+
}
|
|
221
|
+
}, Xe = () => {
|
|
222
|
+
let e = Z(2), t = Ye[i()], n;
|
|
223
|
+
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ Q(t, {}), e[0] = t, e[1] = n), n;
|
|
224
|
+
}, Ze = () => {
|
|
225
|
+
let e = Z(7), n = t(s), { screenElement: r } = Oe(), i;
|
|
226
|
+
e[0] === r ? i = e[1] : (i = r ? /* @__PURE__ */ Q(Ae, { children: r }) : /* @__PURE__ */ $(ke, { children: [
|
|
227
|
+
/* @__PURE__ */ Q(tt, {}),
|
|
228
|
+
/* @__PURE__ */ Q(Xe, {}),
|
|
229
|
+
/* @__PURE__ */ Q(j, {})
|
|
230
|
+
] }), e[0] = r, e[1] = i);
|
|
231
|
+
let a;
|
|
232
|
+
e[2] === n ? a = e[3] : (a = !n.includes("snackbars") && /* @__PURE__ */ Q(R, {}), e[2] = n, e[3] = a);
|
|
233
|
+
let o;
|
|
234
|
+
return e[4] !== i || e[5] !== a ? (o = /* @__PURE__ */ $(et, { children: [i, a] }), e[4] = i, e[5] = a, e[6] = o) : o = e[6], o;
|
|
235
|
+
}, Qe = (t) => {
|
|
236
|
+
let r = Z(86), { config: i, apiConfig: s, provider: c, events: u, input: d } = t, f = Ie(), p = n(ue), te = n(le), h = n(l), g;
|
|
237
|
+
r[0] === i ? g = r[1] : (g = i || {}, r[0] = i, r[1] = g);
|
|
238
|
+
let _, v, y, b, x, S, C, w;
|
|
239
|
+
r[2] === g ? (_ = r[3], v = r[4], y = r[5], b = r[6], x = r[7], S = r[8], C = r[9], w = r[10]) : ({srcChains: S, destChains: v, tokenLists: C, tradeModes: w, excludeUI: b, devURLs: y, partnerConfig: x, ..._} = g, r[2] = g, r[3] = _, r[4] = v, r[5] = y, r[6] = b, r[7] = x, r[8] = S, r[9] = C, r[10] = w);
|
|
240
|
+
let T;
|
|
241
|
+
r[11] === _ ? T = r[12] : (T = [ue, {
|
|
242
|
+
...o,
|
|
243
|
+
..._
|
|
244
|
+
}], r[11] = _, r[12] = T);
|
|
245
|
+
let E;
|
|
246
|
+
r[13] !== v || r[14] !== y || r[15] !== b || r[16] !== x || r[17] !== S || r[18] !== C || r[19] !== w ? (E = [le, {
|
|
247
|
+
...a,
|
|
248
|
+
srcChains: S,
|
|
249
|
+
destChains: v,
|
|
250
|
+
tokenLists: C,
|
|
251
|
+
tradeModes: w,
|
|
252
|
+
excludeUI: b,
|
|
253
|
+
devURLs: y,
|
|
254
|
+
partnerConfig: x
|
|
255
|
+
}], r[13] = v, r[14] = y, r[15] = b, r[16] = x, r[17] = S, r[18] = C, r[19] = w, r[20] = E) : E = r[20];
|
|
256
|
+
let D;
|
|
257
|
+
r[21] === s ? D = r[22] : (D = s || {}, r[21] = s, r[22] = D);
|
|
258
|
+
let O;
|
|
259
|
+
r[23] === D ? O = r[24] : (O = [l, D], r[23] = D, r[24] = O);
|
|
260
|
+
let se = c || null, k;
|
|
261
|
+
r[25] === se ? k = r[26] : (k = [ce, se], r[25] = se, r[26] = k);
|
|
262
|
+
let A;
|
|
263
|
+
r[27] === u ? A = r[28] : (A = u || {}, r[27] = u, r[28] = A);
|
|
264
|
+
let j;
|
|
265
|
+
r[29] === A ? j = r[30] : (j = [ee, A], r[29] = A, r[30] = j);
|
|
266
|
+
let M;
|
|
267
|
+
r[31] === d ? M = r[32] : (M = d || {}, r[31] = d, r[32] = M);
|
|
268
|
+
let N;
|
|
269
|
+
r[33] === M ? N = r[34] : (N = [re, M], r[33] = M, r[34] = N);
|
|
270
|
+
let P;
|
|
271
|
+
r[35] === f ? P = r[36] : (P = [Be, f], r[35] = f, r[36] = P);
|
|
272
|
+
let F;
|
|
273
|
+
r[37] !== N || r[38] !== P || r[39] !== T || r[40] !== E || r[41] !== O || r[42] !== k || r[43] !== j ? (F = [
|
|
274
|
+
T,
|
|
275
|
+
E,
|
|
276
|
+
O,
|
|
277
|
+
k,
|
|
278
|
+
j,
|
|
279
|
+
N,
|
|
280
|
+
P
|
|
281
|
+
], r[37] = N, r[38] = P, r[39] = T, r[40] = E, r[41] = O, r[42] = k, r[43] = j, r[44] = F) : F = r[44];
|
|
282
|
+
let I;
|
|
283
|
+
r[45] === Symbol.for("react.memo_cache_sentinel") ? (I = { store: e }, r[45] = I) : I = r[45], Re(F, I), m(u), ie(d);
|
|
284
|
+
let L, R;
|
|
285
|
+
r[46] !== _.debug || r[47] !== _.enableCrossChain || r[48] !== _.enableDegenMode || r[49] !== _.enableDelta || r[50] !== _.privyAppId || r[51] !== _.privyClientId || r[52] !== _.theme || r[53] !== _.widgetMode || r[54] !== p ? (L = () => {
|
|
286
|
+
p({
|
|
287
|
+
theme: _.theme,
|
|
288
|
+
enableDelta: _.enableDelta,
|
|
289
|
+
enableCrossChain: _.enableCrossChain,
|
|
290
|
+
privyAppId: _.privyAppId,
|
|
291
|
+
privyClientId: _.privyClientId,
|
|
292
|
+
debug: _.debug,
|
|
293
|
+
widgetMode: _.widgetMode,
|
|
294
|
+
enableDegenMode: _.enableDegenMode
|
|
295
|
+
});
|
|
296
|
+
}, R = [
|
|
297
|
+
_.theme,
|
|
298
|
+
_.enableDelta,
|
|
299
|
+
_.enableCrossChain,
|
|
300
|
+
_.privyAppId,
|
|
301
|
+
_.privyClientId,
|
|
302
|
+
_.debug,
|
|
303
|
+
_.widgetMode,
|
|
304
|
+
_.enableDegenMode,
|
|
305
|
+
p
|
|
306
|
+
], r[46] = _.debug, r[47] = _.enableCrossChain, r[48] = _.enableDegenMode, r[49] = _.enableDelta, r[50] = _.privyAppId, r[51] = _.privyClientId, r[52] = _.theme, r[53] = _.widgetMode, r[54] = p, r[55] = L, r[56] = R) : (L = r[55], R = r[56]), Pe(L, R);
|
|
307
|
+
let z, B;
|
|
308
|
+
r[57] !== v || r[58] !== y || r[59] !== b || r[60] !== x || r[61] !== te || r[62] !== S || r[63] !== C || r[64] !== w ? (z = () => {
|
|
309
|
+
te({
|
|
310
|
+
srcChains: S,
|
|
311
|
+
destChains: v,
|
|
312
|
+
tokenLists: C,
|
|
313
|
+
tradeModes: w,
|
|
314
|
+
excludeUI: b,
|
|
315
|
+
devURLs: y,
|
|
316
|
+
partnerConfig: x
|
|
317
|
+
});
|
|
318
|
+
}, B = [
|
|
319
|
+
S,
|
|
320
|
+
v,
|
|
321
|
+
C,
|
|
322
|
+
te,
|
|
323
|
+
w,
|
|
324
|
+
b,
|
|
325
|
+
y,
|
|
326
|
+
x
|
|
327
|
+
], r[57] = v, r[58] = y, r[59] = b, r[60] = x, r[61] = te, r[62] = S, r[63] = C, r[64] = w, r[65] = z, r[66] = B) : (z = r[65], B = r[66]), Pe(z, B);
|
|
328
|
+
let V;
|
|
329
|
+
r[67] !== s?.apiKey || r[68] !== s?.headers || r[69] !== h ? (V = () => {
|
|
330
|
+
h({
|
|
331
|
+
apiKey: s?.apiKey,
|
|
332
|
+
headers: s?.headers
|
|
333
|
+
});
|
|
334
|
+
}, r[67] = s?.apiKey, r[68] = s?.headers, r[69] = h, r[70] = V) : V = r[70];
|
|
335
|
+
let H = s?.apiKey, U = s?.headers, W;
|
|
336
|
+
r[71] !== h || r[72] !== H || r[73] !== U ? (W = [
|
|
337
|
+
H,
|
|
338
|
+
U,
|
|
339
|
+
h
|
|
340
|
+
], r[71] = h, r[72] = H, r[73] = U, r[74] = W) : W = r[74], Pe(V, W);
|
|
341
|
+
let G = n(ce), K, q;
|
|
342
|
+
r[75] !== c || r[76] !== G ? (K = () => {
|
|
343
|
+
G(c || null);
|
|
344
|
+
}, q = [c, G], r[75] = c, r[76] = G, r[77] = K, r[78] = q) : (K = r[77], q = r[78]), Pe(K, q);
|
|
345
|
+
let fe = De(_?.widgetMode !== "dapp"), J, Y, pe, me, he;
|
|
346
|
+
r[79] === Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ Q(de, {}), Y = /* @__PURE__ */ Q(oe, {}), pe = /* @__PURE__ */ Q(ae, {}), me = /* @__PURE__ */ Q(Ze, {}), he = !1, r[79] = J, r[80] = Y, r[81] = pe, r[82] = me, r[83] = he) : (J = r[79], Y = r[80], pe = r[81], me = r[82], he = r[83]);
|
|
347
|
+
let X;
|
|
348
|
+
return r[84] === fe ? X = r[85] : (X = /* @__PURE__ */ $(ne, {
|
|
349
|
+
reconnectOnMount: fe,
|
|
350
|
+
children: [
|
|
351
|
+
J,
|
|
352
|
+
Y,
|
|
353
|
+
pe,
|
|
354
|
+
me,
|
|
355
|
+
he
|
|
356
|
+
]
|
|
357
|
+
}), r[84] = fe, r[85] = X), X;
|
|
358
|
+
}, $e = (e) => {
|
|
359
|
+
let t = Z(6), { config: n, apiConfig: r, provider: i, events: a, input: o } = e, s;
|
|
360
|
+
return t[0] !== r || t[1] !== n || t[2] !== a || t[3] !== o || t[4] !== i ? (s = /* @__PURE__ */ Q(y, { children: /* @__PURE__ */ Q(b, { children: /* @__PURE__ */ Q(Qe, {
|
|
361
|
+
config: n,
|
|
362
|
+
apiConfig: r,
|
|
363
|
+
provider: i,
|
|
364
|
+
events: a,
|
|
365
|
+
input: o
|
|
366
|
+
}) }) }), t[0] = r, t[1] = n, t[2] = a, t[3] = o, t[4] = i, t[5] = s) : s = t[5], s;
|
|
353
367
|
};
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
} = useScreenValue();
|
|
380
|
-
let t0;
|
|
381
|
-
if ($[0] !== screenElement) {
|
|
382
|
-
t0 = screenElement ? /* @__PURE__ */ jsx(SecondaryScreenContainer, { children: screenElement }) : /* @__PURE__ */ jsxs(MainScreenContainer, { children: [
|
|
383
|
-
/* @__PURE__ */ jsx(WidgetHeader, {}),
|
|
384
|
-
/* @__PURE__ */ jsx(MainScreen, {}),
|
|
385
|
-
/* @__PURE__ */ jsx(PoweredBy, {})
|
|
386
|
-
] });
|
|
387
|
-
$[0] = screenElement;
|
|
388
|
-
$[1] = t0;
|
|
389
|
-
} else {
|
|
390
|
-
t0 = $[1];
|
|
391
|
-
}
|
|
392
|
-
let t1;
|
|
393
|
-
if ($[2] !== excludeUI) {
|
|
394
|
-
t1 = !excludeUI.includes("snackbars") && /* @__PURE__ */ jsx(Toaster, {});
|
|
395
|
-
$[2] = excludeUI;
|
|
396
|
-
$[3] = t1;
|
|
397
|
-
} else {
|
|
398
|
-
t1 = $[3];
|
|
399
|
-
}
|
|
400
|
-
let t2;
|
|
401
|
-
if ($[4] !== t0 || $[5] !== t1) {
|
|
402
|
-
t2 = /* @__PURE__ */ jsxs(Containers, { children: [
|
|
403
|
-
t0,
|
|
404
|
-
t1
|
|
405
|
-
] });
|
|
406
|
-
$[4] = t0;
|
|
407
|
-
$[5] = t1;
|
|
408
|
-
$[6] = t2;
|
|
409
|
-
} else {
|
|
410
|
-
t2 = $[6];
|
|
411
|
-
}
|
|
412
|
-
return t2;
|
|
413
|
-
};
|
|
414
|
-
const WidgetBase = (t0) => {
|
|
415
|
-
const $ = distExports.c(86);
|
|
416
|
-
const {
|
|
417
|
-
config: _config,
|
|
418
|
-
apiConfig,
|
|
419
|
-
provider,
|
|
420
|
-
events,
|
|
421
|
-
input: formInputProps
|
|
422
|
-
} = t0;
|
|
423
|
-
const queryClient = useQueryClient();
|
|
424
|
-
const setWidgetConfig = useSetAtom(setWidgetConfigAtom);
|
|
425
|
-
const setSubConfig = useSetAtom(setSubConfigAtom);
|
|
426
|
-
const setApiConfig = useSetAtom(apiConfigAtom);
|
|
427
|
-
let t1;
|
|
428
|
-
if ($[0] !== _config) {
|
|
429
|
-
t1 = _config || {};
|
|
430
|
-
$[0] = _config;
|
|
431
|
-
$[1] = t1;
|
|
432
|
-
} else {
|
|
433
|
-
t1 = $[1];
|
|
434
|
-
}
|
|
435
|
-
let config;
|
|
436
|
-
let destChains;
|
|
437
|
-
let devURLs;
|
|
438
|
-
let excludeUI;
|
|
439
|
-
let partnerConfig;
|
|
440
|
-
let srcChains;
|
|
441
|
-
let tokenLists;
|
|
442
|
-
let tradeModes;
|
|
443
|
-
if ($[2] !== t1) {
|
|
444
|
-
({
|
|
445
|
-
srcChains,
|
|
446
|
-
destChains,
|
|
447
|
-
tokenLists,
|
|
448
|
-
tradeModes,
|
|
449
|
-
excludeUI,
|
|
450
|
-
devURLs,
|
|
451
|
-
partnerConfig,
|
|
452
|
-
...config
|
|
453
|
-
} = t1);
|
|
454
|
-
$[2] = t1;
|
|
455
|
-
$[3] = config;
|
|
456
|
-
$[4] = destChains;
|
|
457
|
-
$[5] = devURLs;
|
|
458
|
-
$[6] = excludeUI;
|
|
459
|
-
$[7] = partnerConfig;
|
|
460
|
-
$[8] = srcChains;
|
|
461
|
-
$[9] = tokenLists;
|
|
462
|
-
$[10] = tradeModes;
|
|
463
|
-
} else {
|
|
464
|
-
config = $[3];
|
|
465
|
-
destChains = $[4];
|
|
466
|
-
devURLs = $[5];
|
|
467
|
-
excludeUI = $[6];
|
|
468
|
-
partnerConfig = $[7];
|
|
469
|
-
srcChains = $[8];
|
|
470
|
-
tokenLists = $[9];
|
|
471
|
-
tradeModes = $[10];
|
|
472
|
-
}
|
|
473
|
-
let t2;
|
|
474
|
-
if ($[11] !== config) {
|
|
475
|
-
t2 = [setWidgetConfigAtom, {
|
|
476
|
-
...defaultWidgetConfig,
|
|
477
|
-
...config
|
|
478
|
-
}];
|
|
479
|
-
$[11] = config;
|
|
480
|
-
$[12] = t2;
|
|
481
|
-
} else {
|
|
482
|
-
t2 = $[12];
|
|
483
|
-
}
|
|
484
|
-
let t3;
|
|
485
|
-
if ($[13] !== destChains || $[14] !== devURLs || $[15] !== excludeUI || $[16] !== partnerConfig || $[17] !== srcChains || $[18] !== tokenLists || $[19] !== tradeModes) {
|
|
486
|
-
t3 = [setSubConfigAtom, {
|
|
487
|
-
...defaultSubConfig,
|
|
488
|
-
srcChains,
|
|
489
|
-
destChains,
|
|
490
|
-
tokenLists,
|
|
491
|
-
tradeModes,
|
|
492
|
-
excludeUI,
|
|
493
|
-
devURLs,
|
|
494
|
-
partnerConfig
|
|
495
|
-
}];
|
|
496
|
-
$[13] = destChains;
|
|
497
|
-
$[14] = devURLs;
|
|
498
|
-
$[15] = excludeUI;
|
|
499
|
-
$[16] = partnerConfig;
|
|
500
|
-
$[17] = srcChains;
|
|
501
|
-
$[18] = tokenLists;
|
|
502
|
-
$[19] = tradeModes;
|
|
503
|
-
$[20] = t3;
|
|
504
|
-
} else {
|
|
505
|
-
t3 = $[20];
|
|
506
|
-
}
|
|
507
|
-
let t4;
|
|
508
|
-
if ($[21] !== apiConfig) {
|
|
509
|
-
t4 = apiConfig || {};
|
|
510
|
-
$[21] = apiConfig;
|
|
511
|
-
$[22] = t4;
|
|
512
|
-
} else {
|
|
513
|
-
t4 = $[22];
|
|
514
|
-
}
|
|
515
|
-
let t5;
|
|
516
|
-
if ($[23] !== t4) {
|
|
517
|
-
t5 = [apiConfigAtom, t4];
|
|
518
|
-
$[23] = t4;
|
|
519
|
-
$[24] = t5;
|
|
520
|
-
} else {
|
|
521
|
-
t5 = $[24];
|
|
522
|
-
}
|
|
523
|
-
const t6 = provider || null;
|
|
524
|
-
let t7;
|
|
525
|
-
if ($[25] !== t6) {
|
|
526
|
-
t7 = [externalProviderAtom, t6];
|
|
527
|
-
$[25] = t6;
|
|
528
|
-
$[26] = t7;
|
|
529
|
-
} else {
|
|
530
|
-
t7 = $[26];
|
|
531
|
-
}
|
|
532
|
-
let t8;
|
|
533
|
-
if ($[27] !== events) {
|
|
534
|
-
t8 = events || {};
|
|
535
|
-
$[27] = events;
|
|
536
|
-
$[28] = t8;
|
|
537
|
-
} else {
|
|
538
|
-
t8 = $[28];
|
|
539
|
-
}
|
|
540
|
-
let t9;
|
|
541
|
-
if ($[29] !== t8) {
|
|
542
|
-
t9 = [widgetEventsAtom, t8];
|
|
543
|
-
$[29] = t8;
|
|
544
|
-
$[30] = t9;
|
|
545
|
-
} else {
|
|
546
|
-
t9 = $[30];
|
|
547
|
-
}
|
|
548
|
-
let t10;
|
|
549
|
-
if ($[31] !== formInputProps) {
|
|
550
|
-
t10 = formInputProps || {};
|
|
551
|
-
$[31] = formInputProps;
|
|
552
|
-
$[32] = t10;
|
|
553
|
-
} else {
|
|
554
|
-
t10 = $[32];
|
|
555
|
-
}
|
|
556
|
-
let t11;
|
|
557
|
-
if ($[33] !== t10) {
|
|
558
|
-
t11 = [formInputPropsAtom, t10];
|
|
559
|
-
$[33] = t10;
|
|
560
|
-
$[34] = t11;
|
|
561
|
-
} else {
|
|
562
|
-
t11 = $[34];
|
|
563
|
-
}
|
|
564
|
-
let t12;
|
|
565
|
-
if ($[35] !== queryClient) {
|
|
566
|
-
t12 = [queryClientAtom, queryClient];
|
|
567
|
-
$[35] = queryClient;
|
|
568
|
-
$[36] = t12;
|
|
569
|
-
} else {
|
|
570
|
-
t12 = $[36];
|
|
571
|
-
}
|
|
572
|
-
let t13;
|
|
573
|
-
if ($[37] !== t11 || $[38] !== t12 || $[39] !== t2 || $[40] !== t3 || $[41] !== t5 || $[42] !== t7 || $[43] !== t9) {
|
|
574
|
-
t13 = [t2, t3, t5, t7, t9, t11, t12];
|
|
575
|
-
$[37] = t11;
|
|
576
|
-
$[38] = t12;
|
|
577
|
-
$[39] = t2;
|
|
578
|
-
$[40] = t3;
|
|
579
|
-
$[41] = t5;
|
|
580
|
-
$[42] = t7;
|
|
581
|
-
$[43] = t9;
|
|
582
|
-
$[44] = t13;
|
|
583
|
-
} else {
|
|
584
|
-
t13 = $[44];
|
|
585
|
-
}
|
|
586
|
-
let t14;
|
|
587
|
-
if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
|
|
588
|
-
t14 = {
|
|
589
|
-
store: jotaiStore
|
|
590
|
-
};
|
|
591
|
-
$[45] = t14;
|
|
592
|
-
} else {
|
|
593
|
-
t14 = $[45];
|
|
594
|
-
}
|
|
595
|
-
useHydrateAtoms(t13, t14);
|
|
596
|
-
useWidgetEventsSetter(events);
|
|
597
|
-
useSetFormInputFromProps(formInputProps);
|
|
598
|
-
let t15;
|
|
599
|
-
let t16;
|
|
600
|
-
if ($[46] !== config.debug || $[47] !== config.enableCrossChain || $[48] !== config.enableDegenMode || $[49] !== config.enableDelta || $[50] !== config.privyAppId || $[51] !== config.privyClientId || $[52] !== config.theme || $[53] !== config.widgetMode || $[54] !== setWidgetConfig) {
|
|
601
|
-
t15 = () => {
|
|
602
|
-
setWidgetConfig({
|
|
603
|
-
theme: config.theme,
|
|
604
|
-
enableDelta: config.enableDelta,
|
|
605
|
-
enableCrossChain: config.enableCrossChain,
|
|
606
|
-
privyAppId: config.privyAppId,
|
|
607
|
-
privyClientId: config.privyClientId,
|
|
608
|
-
debug: config.debug,
|
|
609
|
-
widgetMode: config.widgetMode,
|
|
610
|
-
enableDegenMode: config.enableDegenMode
|
|
611
|
-
});
|
|
612
|
-
};
|
|
613
|
-
t16 = [config.theme, config.enableDelta, config.enableCrossChain, config.privyAppId, config.privyClientId, config.debug, config.widgetMode, config.enableDegenMode, setWidgetConfig];
|
|
614
|
-
$[46] = config.debug;
|
|
615
|
-
$[47] = config.enableCrossChain;
|
|
616
|
-
$[48] = config.enableDegenMode;
|
|
617
|
-
$[49] = config.enableDelta;
|
|
618
|
-
$[50] = config.privyAppId;
|
|
619
|
-
$[51] = config.privyClientId;
|
|
620
|
-
$[52] = config.theme;
|
|
621
|
-
$[53] = config.widgetMode;
|
|
622
|
-
$[54] = setWidgetConfig;
|
|
623
|
-
$[55] = t15;
|
|
624
|
-
$[56] = t16;
|
|
625
|
-
} else {
|
|
626
|
-
t15 = $[55];
|
|
627
|
-
t16 = $[56];
|
|
628
|
-
}
|
|
629
|
-
useLayoutEffect(t15, t16);
|
|
630
|
-
let t17;
|
|
631
|
-
let t18;
|
|
632
|
-
if ($[57] !== destChains || $[58] !== devURLs || $[59] !== excludeUI || $[60] !== partnerConfig || $[61] !== setSubConfig || $[62] !== srcChains || $[63] !== tokenLists || $[64] !== tradeModes) {
|
|
633
|
-
t17 = () => {
|
|
634
|
-
setSubConfig({
|
|
635
|
-
srcChains,
|
|
636
|
-
destChains,
|
|
637
|
-
tokenLists,
|
|
638
|
-
tradeModes,
|
|
639
|
-
excludeUI,
|
|
640
|
-
devURLs,
|
|
641
|
-
partnerConfig
|
|
642
|
-
});
|
|
643
|
-
};
|
|
644
|
-
t18 = [srcChains, destChains, tokenLists, setSubConfig, tradeModes, excludeUI, devURLs, partnerConfig];
|
|
645
|
-
$[57] = destChains;
|
|
646
|
-
$[58] = devURLs;
|
|
647
|
-
$[59] = excludeUI;
|
|
648
|
-
$[60] = partnerConfig;
|
|
649
|
-
$[61] = setSubConfig;
|
|
650
|
-
$[62] = srcChains;
|
|
651
|
-
$[63] = tokenLists;
|
|
652
|
-
$[64] = tradeModes;
|
|
653
|
-
$[65] = t17;
|
|
654
|
-
$[66] = t18;
|
|
655
|
-
} else {
|
|
656
|
-
t17 = $[65];
|
|
657
|
-
t18 = $[66];
|
|
658
|
-
}
|
|
659
|
-
useLayoutEffect(t17, t18);
|
|
660
|
-
let t19;
|
|
661
|
-
if ($[67] !== apiConfig?.apiKey || $[68] !== apiConfig?.headers || $[69] !== setApiConfig) {
|
|
662
|
-
t19 = () => {
|
|
663
|
-
setApiConfig({
|
|
664
|
-
apiKey: apiConfig?.apiKey,
|
|
665
|
-
headers: apiConfig?.headers
|
|
666
|
-
});
|
|
667
|
-
};
|
|
668
|
-
$[67] = apiConfig?.apiKey;
|
|
669
|
-
$[68] = apiConfig?.headers;
|
|
670
|
-
$[69] = setApiConfig;
|
|
671
|
-
$[70] = t19;
|
|
672
|
-
} else {
|
|
673
|
-
t19 = $[70];
|
|
674
|
-
}
|
|
675
|
-
const t20 = apiConfig?.apiKey;
|
|
676
|
-
const t21 = apiConfig?.headers;
|
|
677
|
-
let t22;
|
|
678
|
-
if ($[71] !== setApiConfig || $[72] !== t20 || $[73] !== t21) {
|
|
679
|
-
t22 = [t20, t21, setApiConfig];
|
|
680
|
-
$[71] = setApiConfig;
|
|
681
|
-
$[72] = t20;
|
|
682
|
-
$[73] = t21;
|
|
683
|
-
$[74] = t22;
|
|
684
|
-
} else {
|
|
685
|
-
t22 = $[74];
|
|
686
|
-
}
|
|
687
|
-
useLayoutEffect(t19, t22);
|
|
688
|
-
const setExternalProvider = useSetAtom(externalProviderAtom);
|
|
689
|
-
let t23;
|
|
690
|
-
let t24;
|
|
691
|
-
if ($[75] !== provider || $[76] !== setExternalProvider) {
|
|
692
|
-
t23 = () => {
|
|
693
|
-
setExternalProvider(provider || null);
|
|
694
|
-
};
|
|
695
|
-
t24 = [provider, setExternalProvider];
|
|
696
|
-
$[75] = provider;
|
|
697
|
-
$[76] = setExternalProvider;
|
|
698
|
-
$[77] = t23;
|
|
699
|
-
$[78] = t24;
|
|
700
|
-
} else {
|
|
701
|
-
t23 = $[77];
|
|
702
|
-
t24 = $[78];
|
|
703
|
-
}
|
|
704
|
-
useLayoutEffect(t23, t24);
|
|
705
|
-
const isDappMode = config?.widgetMode === "dapp";
|
|
706
|
-
const reconnectOnMountInit = useInitialValue(!isDappMode);
|
|
707
|
-
let t25;
|
|
708
|
-
let t26;
|
|
709
|
-
let t27;
|
|
710
|
-
let t28;
|
|
711
|
-
let t29;
|
|
712
|
-
if ($[79] === Symbol.for("react.memo_cache_sentinel")) {
|
|
713
|
-
t25 = /* @__PURE__ */ jsx(AutoconnectExternalProvider, {});
|
|
714
|
-
t26 = /* @__PURE__ */ jsx(PrivyIframeDependency, {});
|
|
715
|
-
t27 = /* @__PURE__ */ jsx(Updaters, {});
|
|
716
|
-
t28 = /* @__PURE__ */ jsx(App, {});
|
|
717
|
-
t29 = false;
|
|
718
|
-
$[79] = t25;
|
|
719
|
-
$[80] = t26;
|
|
720
|
-
$[81] = t27;
|
|
721
|
-
$[82] = t28;
|
|
722
|
-
$[83] = t29;
|
|
723
|
-
} else {
|
|
724
|
-
t25 = $[79];
|
|
725
|
-
t26 = $[80];
|
|
726
|
-
t27 = $[81];
|
|
727
|
-
t28 = $[82];
|
|
728
|
-
t29 = $[83];
|
|
729
|
-
}
|
|
730
|
-
let t30;
|
|
731
|
-
if ($[84] !== reconnectOnMountInit) {
|
|
732
|
-
t30 = /* @__PURE__ */ jsxs(Web3Providers, { reconnectOnMount: reconnectOnMountInit, children: [
|
|
733
|
-
t25,
|
|
734
|
-
t26,
|
|
735
|
-
t27,
|
|
736
|
-
t28,
|
|
737
|
-
t29
|
|
738
|
-
] });
|
|
739
|
-
$[84] = reconnectOnMountInit;
|
|
740
|
-
$[85] = t30;
|
|
741
|
-
} else {
|
|
742
|
-
t30 = $[85];
|
|
743
|
-
}
|
|
744
|
-
return t30;
|
|
745
|
-
};
|
|
746
|
-
const Widget = (t0) => {
|
|
747
|
-
const $ = distExports.c(6);
|
|
748
|
-
const {
|
|
749
|
-
config,
|
|
750
|
-
apiConfig,
|
|
751
|
-
provider,
|
|
752
|
-
events,
|
|
753
|
-
input
|
|
754
|
-
} = t0;
|
|
755
|
-
let t1;
|
|
756
|
-
if ($[0] !== apiConfig || $[1] !== config || $[2] !== events || $[3] !== input || $[4] !== provider) {
|
|
757
|
-
t1 = /* @__PURE__ */ jsx(JotaiProvider, { children: /* @__PURE__ */ jsx(QueryClientProvider, { children: /* @__PURE__ */ jsx(WidgetBase, { config, apiConfig, provider, events, input }) }) });
|
|
758
|
-
$[0] = apiConfig;
|
|
759
|
-
$[1] = config;
|
|
760
|
-
$[2] = events;
|
|
761
|
-
$[3] = input;
|
|
762
|
-
$[4] = provider;
|
|
763
|
-
$[5] = t1;
|
|
764
|
-
} else {
|
|
765
|
-
t1 = $[5];
|
|
766
|
-
}
|
|
767
|
-
return t1;
|
|
768
|
-
};
|
|
769
|
-
function Containers(t0) {
|
|
770
|
-
const $ = distExports.c(12);
|
|
771
|
-
const {
|
|
772
|
-
children
|
|
773
|
-
} = t0;
|
|
774
|
-
const setContainerElement = useSetAtom(containerAtom);
|
|
775
|
-
const containerRef = useRef(null);
|
|
776
|
-
useCloseScreenOnClickOutside(containerRef);
|
|
777
|
-
useResizeObserver(containerRef);
|
|
778
|
-
const widgetConfig = useWidgetConfig();
|
|
779
|
-
const {
|
|
780
|
-
isDrawerFullCover,
|
|
781
|
-
isDrawerOpen
|
|
782
|
-
} = useDrawerContainerHeightTransition(containerRef);
|
|
783
|
-
const partialDrawerOpen = isDrawerOpen && !isDrawerFullCover;
|
|
784
|
-
const t1 = widgetConfig.theme === "dark";
|
|
785
|
-
let t2;
|
|
786
|
-
if ($[0] !== t1) {
|
|
787
|
-
t2 = cn("velora-widget", {
|
|
788
|
-
dark: t1
|
|
789
|
-
});
|
|
790
|
-
$[0] = t1;
|
|
791
|
-
$[1] = t2;
|
|
792
|
-
} else {
|
|
793
|
-
t2 = $[1];
|
|
794
|
-
}
|
|
795
|
-
let t3;
|
|
796
|
-
if ($[2] !== partialDrawerOpen) {
|
|
797
|
-
t3 = /* @__PURE__ */ jsx(InWidgetDrawerOverlay, { open: partialDrawerOpen });
|
|
798
|
-
$[2] = partialDrawerOpen;
|
|
799
|
-
$[3] = t3;
|
|
800
|
-
} else {
|
|
801
|
-
t3 = $[3];
|
|
802
|
-
}
|
|
803
|
-
let t4;
|
|
804
|
-
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
805
|
-
t4 = cn("overflow-hidden bottom-0 left-0 right-0 absolute transition-transform duration-500 z-11 pointer-events-none [&>*]:pointer-events-auto", WIDGET_HEIGHT_CLASSNAME);
|
|
806
|
-
$[4] = t4;
|
|
807
|
-
} else {
|
|
808
|
-
t4 = $[4];
|
|
809
|
-
}
|
|
810
|
-
let t5;
|
|
811
|
-
if ($[5] !== setContainerElement) {
|
|
812
|
-
t5 = /* @__PURE__ */ jsx("div", { className: t4, ref: setContainerElement });
|
|
813
|
-
$[5] = setContainerElement;
|
|
814
|
-
$[6] = t5;
|
|
815
|
-
} else {
|
|
816
|
-
t5 = $[6];
|
|
817
|
-
}
|
|
818
|
-
let t6;
|
|
819
|
-
if ($[7] !== children || $[8] !== t2 || $[9] !== t3 || $[10] !== t5) {
|
|
820
|
-
t6 = /* @__PURE__ */ jsxs("div", { ref: containerRef, className: t2, id: WIDGET_ELEMENT_ID, children: [
|
|
821
|
-
t3,
|
|
822
|
-
t5,
|
|
823
|
-
children
|
|
824
|
-
] });
|
|
825
|
-
$[7] = children;
|
|
826
|
-
$[8] = t2;
|
|
827
|
-
$[9] = t3;
|
|
828
|
-
$[10] = t5;
|
|
829
|
-
$[11] = t6;
|
|
830
|
-
} else {
|
|
831
|
-
t6 = $[11];
|
|
832
|
-
}
|
|
833
|
-
return t6;
|
|
368
|
+
function et(e) {
|
|
369
|
+
let t = Z(12), { children: i } = e, a = n(g), o = Fe(null);
|
|
370
|
+
je(o), Me(o);
|
|
371
|
+
let s = c(), { isDrawerFullCover: l, isDrawerOpen: u } = T(o), d = u && !l, f = s.theme === "dark", p;
|
|
372
|
+
t[0] === f ? p = t[1] : (p = r("velora-widget", { dark: f }), t[0] = f, t[1] = p);
|
|
373
|
+
let m;
|
|
374
|
+
t[2] === d ? m = t[3] : (m = /* @__PURE__ */ Q(W, { open: d }), t[2] = d, t[3] = m);
|
|
375
|
+
let ee;
|
|
376
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (ee = r("overflow-hidden bottom-0 left-0 right-0 absolute transition-transform duration-500 z-11 pointer-events-none [&>*]:pointer-events-auto", h), t[4] = ee) : ee = t[4];
|
|
377
|
+
let _;
|
|
378
|
+
t[5] === a ? _ = t[6] : (_ = /* @__PURE__ */ Q("div", {
|
|
379
|
+
className: ee,
|
|
380
|
+
ref: a
|
|
381
|
+
}), t[5] = a, t[6] = _);
|
|
382
|
+
let v;
|
|
383
|
+
return t[7] !== i || t[8] !== p || t[9] !== m || t[10] !== _ ? (v = /* @__PURE__ */ $("div", {
|
|
384
|
+
ref: o,
|
|
385
|
+
className: p,
|
|
386
|
+
id: te,
|
|
387
|
+
children: [
|
|
388
|
+
m,
|
|
389
|
+
_,
|
|
390
|
+
i
|
|
391
|
+
]
|
|
392
|
+
}), t[7] = i, t[8] = p, t[9] = m, t[10] = _, t[11] = v) : v = t[11], v;
|
|
834
393
|
}
|
|
835
|
-
function
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
839
|
-
t0 = /* @__PURE__ */ jsx(AppHeader, { classes: {
|
|
840
|
-
root: "mb-4"
|
|
841
|
-
} });
|
|
842
|
-
$[0] = t0;
|
|
843
|
-
} else {
|
|
844
|
-
t0 = $[0];
|
|
845
|
-
}
|
|
846
|
-
return t0;
|
|
394
|
+
function tt() {
|
|
395
|
+
let e = Z(1), t;
|
|
396
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Q(A, { classes: { root: "mb-4" } }), e[0] = t) : t = e[0], t;
|
|
847
397
|
}
|
|
848
|
-
function
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
};
|
|
859
|
-
$[0] = overrides.isLoading;
|
|
860
|
-
$[1] = overrides.price;
|
|
861
|
-
$[2] = overrides.priceMode;
|
|
862
|
-
$[3] = overrides.tokenFromAmount;
|
|
863
|
-
$[4] = t0;
|
|
864
|
-
} else {
|
|
865
|
-
t0 = $[4];
|
|
866
|
-
}
|
|
867
|
-
const tokenFromInputProps = useTokenFromInputProps(t0);
|
|
868
|
-
let t1;
|
|
869
|
-
if ($[5] !== tokenFromInputProps) {
|
|
870
|
-
t1 = /* @__PURE__ */ jsx(TokenInput, { ...tokenFromInputProps });
|
|
871
|
-
$[5] = tokenFromInputProps;
|
|
872
|
-
$[6] = t1;
|
|
873
|
-
} else {
|
|
874
|
-
t1 = $[6];
|
|
875
|
-
}
|
|
876
|
-
return t1;
|
|
398
|
+
function nt() {
|
|
399
|
+
let e = Z(7), t = O(), n;
|
|
400
|
+
e[0] !== t.isLoading || e[1] !== t.price || e[2] !== t.priceMode || e[3] !== t.tokenFromAmount ? (n = {
|
|
401
|
+
override: t.tokenFromAmount,
|
|
402
|
+
activeSwapMode: t.priceMode,
|
|
403
|
+
isPriceLoading: t.isLoading,
|
|
404
|
+
price: t.price
|
|
405
|
+
}, e[0] = t.isLoading, e[1] = t.price, e[2] = t.priceMode, e[3] = t.tokenFromAmount, e[4] = n) : n = e[4];
|
|
406
|
+
let r = v(n), i;
|
|
407
|
+
return e[5] === r ? i = e[6] : (i = /* @__PURE__ */ Q(_, { ...r }), e[5] = r, e[6] = i), i;
|
|
877
408
|
}
|
|
878
|
-
function
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
let t0;
|
|
882
|
-
if ($[0] !== tokenFromInputProps) {
|
|
883
|
-
t0 = /* @__PURE__ */ jsx(TokenInput, { ...tokenFromInputProps });
|
|
884
|
-
$[0] = tokenFromInputProps;
|
|
885
|
-
$[1] = t0;
|
|
886
|
-
} else {
|
|
887
|
-
t0 = $[1];
|
|
888
|
-
}
|
|
889
|
-
return t0;
|
|
409
|
+
function rt() {
|
|
410
|
+
let e = Z(2), t = P(), n;
|
|
411
|
+
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ Q(_, { ...t }), e[0] = t, e[1] = n), n;
|
|
890
412
|
}
|
|
891
|
-
function
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
let t0;
|
|
895
|
-
if ($[0] !== tokenFromInputProps) {
|
|
896
|
-
t0 = /* @__PURE__ */ jsx(TokenInput, { ...tokenFromInputProps });
|
|
897
|
-
$[0] = tokenFromInputProps;
|
|
898
|
-
$[1] = t0;
|
|
899
|
-
} else {
|
|
900
|
-
t0 = $[1];
|
|
901
|
-
}
|
|
902
|
-
return t0;
|
|
413
|
+
function it() {
|
|
414
|
+
let e = Z(2), t = q(), n;
|
|
415
|
+
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ Q(_, { ...t }), e[0] = t, e[1] = n), n;
|
|
903
416
|
}
|
|
904
|
-
function
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
};
|
|
913
|
-
$[0] = overrides.isLoading;
|
|
914
|
-
$[1] = overrides.tokenFromAmount;
|
|
915
|
-
$[2] = t0;
|
|
916
|
-
} else {
|
|
917
|
-
t0 = $[2];
|
|
918
|
-
}
|
|
919
|
-
const tokenFromInputProps = useTwapTokenFromInputProps(t0);
|
|
920
|
-
let t1;
|
|
921
|
-
if ($[3] !== tokenFromInputProps) {
|
|
922
|
-
t1 = /* @__PURE__ */ jsx(TokenInput, { ...tokenFromInputProps });
|
|
923
|
-
$[3] = tokenFromInputProps;
|
|
924
|
-
$[4] = t1;
|
|
925
|
-
} else {
|
|
926
|
-
t1 = $[4];
|
|
927
|
-
}
|
|
928
|
-
return t1;
|
|
417
|
+
function at() {
|
|
418
|
+
let e = Z(5), t = Ee(), n;
|
|
419
|
+
e[0] !== t.isLoading || e[1] !== t.tokenFromAmount ? (n = {
|
|
420
|
+
override: t.tokenFromAmount,
|
|
421
|
+
isPriceLoading: t.isLoading
|
|
422
|
+
}, e[0] = t.isLoading, e[1] = t.tokenFromAmount, e[2] = n) : n = e[2];
|
|
423
|
+
let r = ye(n), i;
|
|
424
|
+
return e[3] === r ? i = e[4] : (i = /* @__PURE__ */ Q(_, { ...r }), e[3] = r, e[4] = i), i;
|
|
929
425
|
}
|
|
930
|
-
function
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
};
|
|
942
|
-
$[0] = overrides.error;
|
|
943
|
-
$[1] = overrides.isLoading;
|
|
944
|
-
$[2] = overrides.price;
|
|
945
|
-
$[3] = overrides.priceMode;
|
|
946
|
-
$[4] = overrides.tokenToAmount;
|
|
947
|
-
$[5] = t0;
|
|
948
|
-
} else {
|
|
949
|
-
t0 = $[5];
|
|
950
|
-
}
|
|
951
|
-
const tokenToInputProps = useTokenToInputProps(t0);
|
|
952
|
-
let t1;
|
|
953
|
-
if ($[6] !== tokenToInputProps) {
|
|
954
|
-
t1 = /* @__PURE__ */ jsx(TokenInput, { ...tokenToInputProps });
|
|
955
|
-
$[6] = tokenToInputProps;
|
|
956
|
-
$[7] = t1;
|
|
957
|
-
} else {
|
|
958
|
-
t1 = $[7];
|
|
959
|
-
}
|
|
960
|
-
return t1;
|
|
426
|
+
function ot() {
|
|
427
|
+
let e = Z(8), t = O(), n;
|
|
428
|
+
e[0] !== t.error || e[1] !== t.isLoading || e[2] !== t.price || e[3] !== t.priceMode || e[4] !== t.tokenToAmount ? (n = {
|
|
429
|
+
override: t.tokenToAmount,
|
|
430
|
+
isPriceLoading: t.isLoading,
|
|
431
|
+
priceMode: t.priceMode,
|
|
432
|
+
price: t.price,
|
|
433
|
+
priceError: t.error
|
|
434
|
+
}, e[0] = t.error, e[1] = t.isLoading, e[2] = t.price, e[3] = t.priceMode, e[4] = t.tokenToAmount, e[5] = n) : n = e[5];
|
|
435
|
+
let r = S(n), i;
|
|
436
|
+
return e[6] === r ? i = e[7] : (i = /* @__PURE__ */ Q(_, { ...r }), e[6] = r, e[7] = i), i;
|
|
961
437
|
}
|
|
962
|
-
function
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
let t0;
|
|
966
|
-
if ($[0] !== tokenToInputProps) {
|
|
967
|
-
t0 = /* @__PURE__ */ jsx(TokenInput, { ...tokenToInputProps });
|
|
968
|
-
$[0] = tokenToInputProps;
|
|
969
|
-
$[1] = t0;
|
|
970
|
-
} else {
|
|
971
|
-
t0 = $[1];
|
|
972
|
-
}
|
|
973
|
-
return t0;
|
|
438
|
+
function st() {
|
|
439
|
+
let e = Z(2), t = F(), n;
|
|
440
|
+
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ Q(_, { ...t }), e[0] = t, e[1] = n), n;
|
|
974
441
|
}
|
|
975
|
-
function
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
let t0;
|
|
979
|
-
if ($[0] !== tokenToInputProps) {
|
|
980
|
-
t0 = /* @__PURE__ */ jsx(TokenInput, { ...tokenToInputProps });
|
|
981
|
-
$[0] = tokenToInputProps;
|
|
982
|
-
$[1] = t0;
|
|
983
|
-
} else {
|
|
984
|
-
t0 = $[1];
|
|
985
|
-
}
|
|
986
|
-
return t0;
|
|
442
|
+
function ct() {
|
|
443
|
+
let e = Z(2), t = fe(), n;
|
|
444
|
+
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ Q(_, { ...t }), e[0] = t, e[1] = n), n;
|
|
987
445
|
}
|
|
988
|
-
function
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
};
|
|
998
|
-
$[0] = overrides.cachedError;
|
|
999
|
-
$[1] = overrides.isLoading;
|
|
1000
|
-
$[2] = overrides.tokenToAmount;
|
|
1001
|
-
$[3] = t0;
|
|
1002
|
-
} else {
|
|
1003
|
-
t0 = $[3];
|
|
1004
|
-
}
|
|
1005
|
-
const tokenToInputProps = useTwapTokenToInputProps(t0);
|
|
1006
|
-
let t1;
|
|
1007
|
-
if ($[4] !== tokenToInputProps) {
|
|
1008
|
-
t1 = /* @__PURE__ */ jsx(TokenInput, { ...tokenToInputProps });
|
|
1009
|
-
$[4] = tokenToInputProps;
|
|
1010
|
-
$[5] = t1;
|
|
1011
|
-
} else {
|
|
1012
|
-
t1 = $[5];
|
|
1013
|
-
}
|
|
1014
|
-
return t1;
|
|
446
|
+
function lt() {
|
|
447
|
+
let e = Z(6), t = Ee(), n;
|
|
448
|
+
e[0] !== t.cachedError || e[1] !== t.isLoading || e[2] !== t.tokenToAmount ? (n = {
|
|
449
|
+
override: t.tokenToAmount,
|
|
450
|
+
isPriceLoading: t.isLoading,
|
|
451
|
+
priceError: t.cachedError
|
|
452
|
+
}, e[0] = t.cachedError, e[1] = t.isLoading, e[2] = t.tokenToAmount, e[3] = n) : n = e[3];
|
|
453
|
+
let r = be(n), i;
|
|
454
|
+
return e[4] === r ? i = e[5] : (i = /* @__PURE__ */ Q(_, { ...r }), e[4] = r, e[5] = i), i;
|
|
1015
455
|
}
|
|
1016
|
-
function
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
let t0;
|
|
1020
|
-
if ($[0] !== tokenSwitcherProps) {
|
|
1021
|
-
t0 = /* @__PURE__ */ jsx(TokenSwitcher, { ...tokenSwitcherProps });
|
|
1022
|
-
$[0] = tokenSwitcherProps;
|
|
1023
|
-
$[1] = t0;
|
|
1024
|
-
} else {
|
|
1025
|
-
t0 = $[1];
|
|
1026
|
-
}
|
|
1027
|
-
return t0;
|
|
456
|
+
function ut() {
|
|
457
|
+
let e = Z(2), t = w(), n;
|
|
458
|
+
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ Q(C, { ...t }), e[0] = t, e[1] = n), n;
|
|
1028
459
|
}
|
|
1029
|
-
function
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
let t0;
|
|
1033
|
-
if ($[0] !== tokenSwitcherProps) {
|
|
1034
|
-
t0 = /* @__PURE__ */ jsx(TokenSwitcher, { ...tokenSwitcherProps });
|
|
1035
|
-
$[0] = tokenSwitcherProps;
|
|
1036
|
-
$[1] = t0;
|
|
1037
|
-
} else {
|
|
1038
|
-
t0 = $[1];
|
|
1039
|
-
}
|
|
1040
|
-
return t0;
|
|
460
|
+
function dt() {
|
|
461
|
+
let e = Z(2), t = _e(), n;
|
|
462
|
+
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ Q(C, { ...t }), e[0] = t, e[1] = n), n;
|
|
1041
463
|
}
|
|
1042
|
-
function
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
let t0;
|
|
1046
|
-
if ($[0] !== tokenSwitcherProps) {
|
|
1047
|
-
t0 = /* @__PURE__ */ jsx(TokenSwitcher, { ...tokenSwitcherProps });
|
|
1048
|
-
$[0] = tokenSwitcherProps;
|
|
1049
|
-
$[1] = t0;
|
|
1050
|
-
} else {
|
|
1051
|
-
t0 = $[1];
|
|
1052
|
-
}
|
|
1053
|
-
return t0;
|
|
464
|
+
function ft() {
|
|
465
|
+
let e = Z(2), t = ve(), n;
|
|
466
|
+
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ Q(C, { ...t }), e[0] = t, e[1] = n), n;
|
|
1054
467
|
}
|
|
1055
|
-
function
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
let t0;
|
|
1059
|
-
if ($[0] !== tokenSwitcherProps) {
|
|
1060
|
-
t0 = /* @__PURE__ */ jsx(TokenSwitcher, { ...tokenSwitcherProps });
|
|
1061
|
-
$[0] = tokenSwitcherProps;
|
|
1062
|
-
$[1] = t0;
|
|
1063
|
-
} else {
|
|
1064
|
-
t0 = $[1];
|
|
1065
|
-
}
|
|
1066
|
-
return t0;
|
|
468
|
+
function pt() {
|
|
469
|
+
let e = Z(2), t = xe(), n;
|
|
470
|
+
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ Q(C, { ...t }), e[0] = t, e[1] = n), n;
|
|
1067
471
|
}
|
|
1068
|
-
function
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
let t2;
|
|
1108
|
-
if ($[11] !== overrides.side || $[12] !== tokenFromInputProps.amount || $[13] !== tokenFromInputProps.token || $[14] !== tokenToInputProps.amount || $[15] !== tokenToInputProps.token) {
|
|
1109
|
-
t2 = tokenFromInputProps.token && tokenToInputProps.token ? {
|
|
1110
|
-
fromToken: tokenFromInputProps.token,
|
|
1111
|
-
toToken: tokenToInputProps.token,
|
|
1112
|
-
fromAmount: tokenFromInputProps.amount,
|
|
1113
|
-
toAmount: tokenToInputProps.amount,
|
|
1114
|
-
swapSide: overrides.side
|
|
1115
|
-
} : void 0;
|
|
1116
|
-
$[11] = overrides.side;
|
|
1117
|
-
$[12] = tokenFromInputProps.amount;
|
|
1118
|
-
$[13] = tokenFromInputProps.token;
|
|
1119
|
-
$[14] = tokenToInputProps.amount;
|
|
1120
|
-
$[15] = tokenToInputProps.token;
|
|
1121
|
-
$[16] = t2;
|
|
1122
|
-
} else {
|
|
1123
|
-
t2 = $[16];
|
|
1124
|
-
}
|
|
1125
|
-
const orderProps = t2;
|
|
1126
|
-
let t3;
|
|
1127
|
-
if ($[17] !== tokenFromInputProps.token || $[18] !== tokenToInputProps.token) {
|
|
1128
|
-
t3 = {
|
|
1129
|
-
tokenFrom: tokenFromInputProps.token,
|
|
1130
|
-
tokenTo: tokenToInputProps.token
|
|
1131
|
-
};
|
|
1132
|
-
$[17] = tokenFromInputProps.token;
|
|
1133
|
-
$[18] = tokenToInputProps.token;
|
|
1134
|
-
$[19] = t3;
|
|
1135
|
-
} else {
|
|
1136
|
-
t3 = $[19];
|
|
1137
|
-
}
|
|
1138
|
-
const extraProps = useWidgetButtonExtraProps(t3);
|
|
1139
|
-
const t4 = overrides.priceMode === "market" ? overrides.price : void 0;
|
|
1140
|
-
const t5 = overrides.priceMode === "delta" ? overrides.price : void 0;
|
|
1141
|
-
let t6;
|
|
1142
|
-
if ($[20] !== extraProps.className || $[21] !== extraProps.disabled || $[22] !== extraProps.labelOverride || $[23] !== orderProps || $[24] !== overrides.priceMode || $[25] !== t4 || $[26] !== t5) {
|
|
1143
|
-
t6 = /* @__PURE__ */ jsx(SwapButtonWithDrawer, { orderProps, marketPrice: t4, deltaPrice: t5, priceMode: overrides.priceMode, disabled: extraProps.disabled, labelOverride: extraProps.labelOverride, className: extraProps.className });
|
|
1144
|
-
$[20] = extraProps.className;
|
|
1145
|
-
$[21] = extraProps.disabled;
|
|
1146
|
-
$[22] = extraProps.labelOverride;
|
|
1147
|
-
$[23] = orderProps;
|
|
1148
|
-
$[24] = overrides.priceMode;
|
|
1149
|
-
$[25] = t4;
|
|
1150
|
-
$[26] = t5;
|
|
1151
|
-
$[27] = t6;
|
|
1152
|
-
} else {
|
|
1153
|
-
t6 = $[27];
|
|
1154
|
-
}
|
|
1155
|
-
return t6;
|
|
472
|
+
function mt() {
|
|
473
|
+
let e = Z(28), t = O(), n;
|
|
474
|
+
e[0] !== t.isLoading || e[1] !== t.price || e[2] !== t.priceMode || e[3] !== t.tokenFromAmount ? (n = {
|
|
475
|
+
override: t.tokenFromAmount,
|
|
476
|
+
activeSwapMode: t.priceMode,
|
|
477
|
+
isPriceLoading: t.isLoading,
|
|
478
|
+
price: t.price
|
|
479
|
+
}, e[0] = t.isLoading, e[1] = t.price, e[2] = t.priceMode, e[3] = t.tokenFromAmount, e[4] = n) : n = e[4];
|
|
480
|
+
let r = v(n), i;
|
|
481
|
+
e[5] !== t.error || e[6] !== t.isLoading || e[7] !== t.price || e[8] !== t.priceMode || e[9] !== t.tokenToAmount ? (i = {
|
|
482
|
+
override: t.tokenToAmount,
|
|
483
|
+
isPriceLoading: t.isLoading,
|
|
484
|
+
priceMode: t.priceMode,
|
|
485
|
+
price: t.price,
|
|
486
|
+
priceError: t.error
|
|
487
|
+
}, e[5] = t.error, e[6] = t.isLoading, e[7] = t.price, e[8] = t.priceMode, e[9] = t.tokenToAmount, e[10] = i) : i = e[10];
|
|
488
|
+
let a = S(i), o;
|
|
489
|
+
e[11] !== t.side || e[12] !== r.amount || e[13] !== r.token || e[14] !== a.amount || e[15] !== a.token ? (o = r.token && a.token ? {
|
|
490
|
+
fromToken: r.token,
|
|
491
|
+
toToken: a.token,
|
|
492
|
+
fromAmount: r.amount,
|
|
493
|
+
toAmount: a.amount,
|
|
494
|
+
swapSide: t.side
|
|
495
|
+
} : void 0, e[11] = t.side, e[12] = r.amount, e[13] = r.token, e[14] = a.amount, e[15] = a.token, e[16] = o) : o = e[16];
|
|
496
|
+
let s = o, c;
|
|
497
|
+
e[17] !== r.token || e[18] !== a.token ? (c = {
|
|
498
|
+
tokenFrom: r.token,
|
|
499
|
+
tokenTo: a.token
|
|
500
|
+
}, e[17] = r.token, e[18] = a.token, e[19] = c) : c = e[19];
|
|
501
|
+
let l = L(c), u = t.priceMode === "market" ? t.price : void 0, d = t.priceMode === "delta" ? t.price : void 0, f;
|
|
502
|
+
return e[20] !== l.className || e[21] !== l.disabled || e[22] !== l.labelOverride || e[23] !== s || e[24] !== t.priceMode || e[25] !== u || e[26] !== d ? (f = /* @__PURE__ */ Q(xt, {
|
|
503
|
+
orderProps: s,
|
|
504
|
+
marketPrice: u,
|
|
505
|
+
deltaPrice: d,
|
|
506
|
+
priceMode: t.priceMode,
|
|
507
|
+
disabled: l.disabled,
|
|
508
|
+
labelOverride: l.labelOverride,
|
|
509
|
+
className: l.className
|
|
510
|
+
}), e[20] = l.className, e[21] = l.disabled, e[22] = l.labelOverride, e[23] = s, e[24] = t.priceMode, e[25] = u, e[26] = d, e[27] = f) : f = e[27], f;
|
|
1156
511
|
}
|
|
1157
|
-
function
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
}
|
|
1176
|
-
const tokenFromInputProps = useTokenFromInputProps(t0);
|
|
1177
|
-
let t1;
|
|
1178
|
-
if ($[5] !== overrides.error || $[6] !== overrides.isLoading || $[7] !== overrides.price || $[8] !== overrides.priceMode || $[9] !== overrides.tokenToAmount) {
|
|
1179
|
-
t1 = {
|
|
1180
|
-
override: overrides.tokenToAmount,
|
|
1181
|
-
isPriceLoading: overrides.isLoading,
|
|
1182
|
-
priceMode: overrides.priceMode,
|
|
1183
|
-
price: overrides.price,
|
|
1184
|
-
priceError: overrides.error
|
|
1185
|
-
};
|
|
1186
|
-
$[5] = overrides.error;
|
|
1187
|
-
$[6] = overrides.isLoading;
|
|
1188
|
-
$[7] = overrides.price;
|
|
1189
|
-
$[8] = overrides.priceMode;
|
|
1190
|
-
$[9] = overrides.tokenToAmount;
|
|
1191
|
-
$[10] = t1;
|
|
1192
|
-
} else {
|
|
1193
|
-
t1 = $[10];
|
|
1194
|
-
}
|
|
1195
|
-
const tokenToInputProps = useTokenToInputProps(t1);
|
|
1196
|
-
const fromAmountGtZero = Number(tokenFromInputProps.amount) > 0;
|
|
1197
|
-
const shouldShowDetails = fromAmountGtZero && tokenToInputProps.token;
|
|
1198
|
-
let t2;
|
|
1199
|
-
if ($[11] !== shouldShowDetails) {
|
|
1200
|
-
t2 = shouldShowDetails ? /* @__PURE__ */ jsx(SwapDetailsExpandable, {}) : null;
|
|
1201
|
-
$[11] = shouldShowDetails;
|
|
1202
|
-
$[12] = t2;
|
|
1203
|
-
} else {
|
|
1204
|
-
t2 = $[12];
|
|
1205
|
-
}
|
|
1206
|
-
return t2;
|
|
512
|
+
function ht() {
|
|
513
|
+
let e = Z(13), t = O(), n;
|
|
514
|
+
e[0] !== t.isLoading || e[1] !== t.price || e[2] !== t.priceMode || e[3] !== t.tokenFromAmount ? (n = {
|
|
515
|
+
override: t.tokenFromAmount,
|
|
516
|
+
activeSwapMode: t.priceMode,
|
|
517
|
+
isPriceLoading: t.isLoading,
|
|
518
|
+
price: t.price
|
|
519
|
+
}, e[0] = t.isLoading, e[1] = t.price, e[2] = t.priceMode, e[3] = t.tokenFromAmount, e[4] = n) : n = e[4];
|
|
520
|
+
let r = v(n), i;
|
|
521
|
+
e[5] !== t.error || e[6] !== t.isLoading || e[7] !== t.price || e[8] !== t.priceMode || e[9] !== t.tokenToAmount ? (i = {
|
|
522
|
+
override: t.tokenToAmount,
|
|
523
|
+
isPriceLoading: t.isLoading,
|
|
524
|
+
priceMode: t.priceMode,
|
|
525
|
+
price: t.price,
|
|
526
|
+
priceError: t.error
|
|
527
|
+
}, e[5] = t.error, e[6] = t.isLoading, e[7] = t.price, e[8] = t.priceMode, e[9] = t.tokenToAmount, e[10] = i) : i = e[10];
|
|
528
|
+
let a = S(i), o = Number(r.amount) > 0 && a.token, s;
|
|
529
|
+
return e[11] === o ? s = e[12] : (s = o ? /* @__PURE__ */ Q(se, {}) : null, e[11] = o, e[12] = s), s;
|
|
1207
530
|
}
|
|
1208
|
-
function
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
let t0;
|
|
1216
|
-
if ($[0] !== shouldShowReceiverAddress || $[1] !== swapReceiverAddressProps) {
|
|
1217
|
-
t0 = shouldShowReceiverAddress ? /* @__PURE__ */ jsx(ReceiverAddress, { classes: {
|
|
1218
|
-
root: "mt-2"
|
|
1219
|
-
}, type: "swap", ...swapReceiverAddressProps }) : null;
|
|
1220
|
-
$[0] = shouldShowReceiverAddress;
|
|
1221
|
-
$[1] = swapReceiverAddressProps;
|
|
1222
|
-
$[2] = t0;
|
|
1223
|
-
} else {
|
|
1224
|
-
t0 = $[2];
|
|
1225
|
-
}
|
|
1226
|
-
return t0;
|
|
531
|
+
function gt() {
|
|
532
|
+
let e = Z(3), { isConnected: t } = ze(), n = t, r = d(), i;
|
|
533
|
+
return e[0] !== n || e[1] !== r ? (i = n ? /* @__PURE__ */ Q(k, {
|
|
534
|
+
classes: { root: "mt-2" },
|
|
535
|
+
type: "swap",
|
|
536
|
+
...r
|
|
537
|
+
}) : null, e[0] = n, e[1] = r, e[2] = i) : i = e[2], i;
|
|
1227
538
|
}
|
|
1228
|
-
function
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
} else {
|
|
1240
|
-
t0 = $[1];
|
|
1241
|
-
}
|
|
1242
|
-
let t1;
|
|
1243
|
-
if ($[2] !== t0) {
|
|
1244
|
-
t1 = {
|
|
1245
|
-
root: t0
|
|
1246
|
-
};
|
|
1247
|
-
$[2] = t0;
|
|
1248
|
-
$[3] = t1;
|
|
1249
|
-
} else {
|
|
1250
|
-
t1 = $[3];
|
|
1251
|
-
}
|
|
1252
|
-
let t2;
|
|
1253
|
-
if ($[4] !== otcReceiverAddressProps || $[5] !== t1) {
|
|
1254
|
-
t2 = /* @__PURE__ */ jsx(ReceiverAddress, { classes: t1, type: "otc", ...otcReceiverAddressProps });
|
|
1255
|
-
$[4] = otcReceiverAddressProps;
|
|
1256
|
-
$[5] = t1;
|
|
1257
|
-
$[6] = t2;
|
|
1258
|
-
} else {
|
|
1259
|
-
t2 = $[6];
|
|
1260
|
-
}
|
|
1261
|
-
return t2;
|
|
539
|
+
function _t() {
|
|
540
|
+
let e = Z(7), t = N(), n = p(), i;
|
|
541
|
+
e[0] === t ? i = e[1] : (i = r("mt-2", { "pointer-events-none": t }), e[0] = t, e[1] = i);
|
|
542
|
+
let a;
|
|
543
|
+
e[2] === i ? a = e[3] : (a = { root: i }, e[2] = i, e[3] = a);
|
|
544
|
+
let o;
|
|
545
|
+
return e[4] !== n || e[5] !== a ? (o = /* @__PURE__ */ Q(k, {
|
|
546
|
+
classes: a,
|
|
547
|
+
type: "otc",
|
|
548
|
+
...n
|
|
549
|
+
}), e[4] = n, e[5] = a, e[6] = o) : o = e[6], o;
|
|
1262
550
|
}
|
|
1263
|
-
function
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
} else {
|
|
1275
|
-
t0 = $[1];
|
|
1276
|
-
}
|
|
1277
|
-
let t1;
|
|
1278
|
-
if ($[2] !== t0) {
|
|
1279
|
-
t1 = {
|
|
1280
|
-
root: t0
|
|
1281
|
-
};
|
|
1282
|
-
$[2] = t0;
|
|
1283
|
-
$[3] = t1;
|
|
1284
|
-
} else {
|
|
1285
|
-
t1 = $[3];
|
|
1286
|
-
}
|
|
1287
|
-
let t2;
|
|
1288
|
-
if ($[4] !== limitReceiverAddressProps || $[5] !== t1) {
|
|
1289
|
-
t2 = /* @__PURE__ */ jsx(ReceiverAddress, { classes: t1, type: "limit", ...limitReceiverAddressProps });
|
|
1290
|
-
$[4] = limitReceiverAddressProps;
|
|
1291
|
-
$[5] = t1;
|
|
1292
|
-
$[6] = t2;
|
|
1293
|
-
} else {
|
|
1294
|
-
t2 = $[6];
|
|
1295
|
-
}
|
|
1296
|
-
return t2;
|
|
551
|
+
function vt() {
|
|
552
|
+
let e = Z(7), t = M(), n = f(), i;
|
|
553
|
+
e[0] === t ? i = e[1] : (i = r("mt-2", { "pointer-events-none": t }), e[0] = t, e[1] = i);
|
|
554
|
+
let a;
|
|
555
|
+
e[2] === i ? a = e[3] : (a = { root: i }, e[2] = i, e[3] = a);
|
|
556
|
+
let o;
|
|
557
|
+
return e[4] !== n || e[5] !== a ? (o = /* @__PURE__ */ Q(k, {
|
|
558
|
+
classes: a,
|
|
559
|
+
type: "limit",
|
|
560
|
+
...n
|
|
561
|
+
}), e[4] = n, e[5] = a, e[6] = o) : o = e[6], o;
|
|
1297
562
|
}
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
t1 = /* @__PURE__ */ jsx(SwapModeSwitcherExpandable, { classes: swapModeSwitcherClasses, currentEffectiveMode: priceMode });
|
|
1321
|
-
$[1] = priceMode;
|
|
1322
|
-
$[2] = t1;
|
|
1323
|
-
} else {
|
|
1324
|
-
t1 = $[2];
|
|
1325
|
-
}
|
|
1326
|
-
return t1;
|
|
1327
|
-
}
|
|
1328
|
-
if (delta.canBeUsed && delta.price && isBridgePrice(delta.price)) {
|
|
1329
|
-
let t1;
|
|
1330
|
-
if ($[3] !== delta.price) {
|
|
1331
|
-
t1 = /* @__PURE__ */ jsx(ErrorBoundary, { fallback: null, children: /* @__PURE__ */ jsx(BridgeSelectorExpandable, { classes: swapModeSwitcherClasses, bridgePrice: delta.price }) });
|
|
1332
|
-
$[3] = delta.price;
|
|
1333
|
-
$[4] = t1;
|
|
1334
|
-
} else {
|
|
1335
|
-
t1 = $[4];
|
|
1336
|
-
}
|
|
1337
|
-
return t1;
|
|
1338
|
-
}
|
|
563
|
+
var yt = { root: "mt-4" };
|
|
564
|
+
function bt() {
|
|
565
|
+
let e = Z(5), t;
|
|
566
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = { enabled: !1 }, e[0] = t) : t = e[0];
|
|
567
|
+
let { delta: n, market: r, priceMode: i } = x(t);
|
|
568
|
+
if (n.canBeUsed && r.canBeUsed) {
|
|
569
|
+
let t;
|
|
570
|
+
return e[1] === i ? t = e[2] : (t = /* @__PURE__ */ Q(D, {
|
|
571
|
+
classes: yt,
|
|
572
|
+
currentEffectiveMode: i
|
|
573
|
+
}), e[1] = i, e[2] = t), t;
|
|
574
|
+
}
|
|
575
|
+
if (n.canBeUsed && n.price && u(n.price)) {
|
|
576
|
+
let t;
|
|
577
|
+
return e[3] === n.price ? t = e[4] : (t = /* @__PURE__ */ Q(Ve, {
|
|
578
|
+
fallback: null,
|
|
579
|
+
children: /* @__PURE__ */ Q(Ne, {
|
|
580
|
+
classes: yt,
|
|
581
|
+
bridgePrice: n.price
|
|
582
|
+
})
|
|
583
|
+
}), e[3] = n.price, e[4] = t), t;
|
|
584
|
+
}
|
|
1339
585
|
}
|
|
1340
|
-
function
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
$[7] = priceMode;
|
|
1367
|
-
} else {
|
|
1368
|
-
buttonProps = $[1];
|
|
1369
|
-
deltaPrice = $[2];
|
|
1370
|
-
drawerContainer = $[3];
|
|
1371
|
-
labelOverride = $[4];
|
|
1372
|
-
marketPrice = $[5];
|
|
1373
|
-
orderProps = $[6];
|
|
1374
|
-
priceMode = $[7];
|
|
1375
|
-
}
|
|
1376
|
-
const {
|
|
1377
|
-
isConnected
|
|
1378
|
-
} = useAccount();
|
|
1379
|
-
if (!isConnected) {
|
|
1380
|
-
let t12;
|
|
1381
|
-
if ($[8] !== buttonProps || $[9] !== drawerContainer) {
|
|
1382
|
-
t12 = /* @__PURE__ */ jsx(ConnectWalletDrawerButton, { drawerContainer, ...buttonProps });
|
|
1383
|
-
$[8] = buttonProps;
|
|
1384
|
-
$[9] = drawerContainer;
|
|
1385
|
-
$[10] = t12;
|
|
1386
|
-
} else {
|
|
1387
|
-
t12 = $[10];
|
|
1388
|
-
}
|
|
1389
|
-
return t12;
|
|
1390
|
-
}
|
|
1391
|
-
let t1;
|
|
1392
|
-
if ($[11] !== deltaPrice || $[12] !== marketPrice || $[13] !== priceMode) {
|
|
1393
|
-
t1 = priceMode === "delta" ? {
|
|
1394
|
-
price: deltaPrice,
|
|
1395
|
-
priceMode
|
|
1396
|
-
} : {
|
|
1397
|
-
price: marketPrice,
|
|
1398
|
-
priceMode
|
|
1399
|
-
};
|
|
1400
|
-
$[11] = deltaPrice;
|
|
1401
|
-
$[12] = marketPrice;
|
|
1402
|
-
$[13] = priceMode;
|
|
1403
|
-
$[14] = t1;
|
|
1404
|
-
} else {
|
|
1405
|
-
t1 = $[14];
|
|
1406
|
-
}
|
|
1407
|
-
const priceProps = t1;
|
|
1408
|
-
let t2;
|
|
1409
|
-
if ($[15] !== buttonProps || $[16] !== labelOverride || $[17] !== orderProps || $[18] !== priceProps) {
|
|
1410
|
-
t2 = /* @__PURE__ */ jsx(SwapTradeFlowScreenButton, { orderProps, labelOverride, ...priceProps, ...buttonProps });
|
|
1411
|
-
$[15] = buttonProps;
|
|
1412
|
-
$[16] = labelOverride;
|
|
1413
|
-
$[17] = orderProps;
|
|
1414
|
-
$[18] = priceProps;
|
|
1415
|
-
$[19] = t2;
|
|
1416
|
-
} else {
|
|
1417
|
-
t2 = $[19];
|
|
1418
|
-
}
|
|
1419
|
-
return t2;
|
|
586
|
+
function xt(e) {
|
|
587
|
+
let t = Z(20), n, r, i, a, o, s, c;
|
|
588
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], s = t[6], c = t[7]) : ({orderProps: s, drawerContainer: i, marketPrice: o, deltaPrice: r, priceMode: c, labelOverride: a, ...n} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = s, t[7] = c);
|
|
589
|
+
let { isConnected: l } = ze();
|
|
590
|
+
if (!l) {
|
|
591
|
+
let e;
|
|
592
|
+
return t[8] !== n || t[9] !== i ? (e = /* @__PURE__ */ Q(V, {
|
|
593
|
+
drawerContainer: i,
|
|
594
|
+
...n
|
|
595
|
+
}), t[8] = n, t[9] = i, t[10] = e) : e = t[10], e;
|
|
596
|
+
}
|
|
597
|
+
let u;
|
|
598
|
+
t[11] !== r || t[12] !== o || t[13] !== c ? (u = c === "delta" ? {
|
|
599
|
+
price: r,
|
|
600
|
+
priceMode: c
|
|
601
|
+
} : {
|
|
602
|
+
price: o,
|
|
603
|
+
priceMode: c
|
|
604
|
+
}, t[11] = r, t[12] = o, t[13] = c, t[14] = u) : u = t[14];
|
|
605
|
+
let d = u, f;
|
|
606
|
+
return t[15] !== n || t[16] !== a || t[17] !== s || t[18] !== d ? (f = /* @__PURE__ */ Q(z, {
|
|
607
|
+
orderProps: s,
|
|
608
|
+
labelOverride: a,
|
|
609
|
+
...d,
|
|
610
|
+
...n
|
|
611
|
+
}), t[15] = n, t[16] = a, t[17] = s, t[18] = d, t[19] = f) : f = t[19], f;
|
|
1420
612
|
}
|
|
613
|
+
//#endregion
|
|
614
|
+
export { $e as Widget };
|
|
1421
615
|
|
|
1422
|
-
|
|
1423
|
-
//# sourceMappingURL=index.js.map
|
|
616
|
+
//# sourceMappingURL=index.js.map
|