@velora-dex/widget 0.8.4 → 0.8.5-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/widget/AppHeader/Activities/hooks.d.ts.map +1 -1
- package/dist/components/widget/AppHeader/Activities/hooks.js +174 -155
- package/dist/components/widget/AppHeader/Activities/hooks.js.map +1 -1
- package/dist/components/widget/AppHeader/Activities/utils.d.ts +3 -3
- package/dist/components/widget/AppHeader/Activities/utils.d.ts.map +1 -1
- package/dist/components/widget/AppHeader/Activities/utils.js +23 -17
- package/dist/components/widget/AppHeader/Activities/utils.js.map +1 -1
- package/dist/components/widget/BridgeList/hooks.d.ts +2 -2
- package/dist/components/widget/BridgeList/hooks.d.ts.map +1 -1
- package/dist/components/widget/BridgeList/hooks.js +78 -72
- package/dist/components/widget/BridgeList/hooks.js.map +1 -1
- package/dist/components/widget/BridgeSelectorExpandable/BridgeSelectorExpandable.d.ts +2 -2
- package/dist/components/widget/BridgeSelectorExpandable/BridgeSelectorExpandable.d.ts.map +1 -1
- package/dist/components/widget/BridgeSelectorExpandable/BridgeSelectorExpandable.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/AcrossTokenList.d.ts +2 -2
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/AcrossTokenList.d.ts.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/AcrossTokenList.js.map +1 -1
- package/dist/components/widget/LimitOrderItem/LimitOrderDetails/LimitOrderDetails.d.ts.map +1 -1
- package/dist/components/widget/LimitOrderItem/LimitOrderDetails/LimitOrderDetails.js +17 -21
- package/dist/components/widget/LimitOrderItem/LimitOrderDetails/LimitOrderDetails.js.map +1 -1
- package/dist/components/widget/LimitOrderItem/LimitOrderDetails/utils.d.ts.map +1 -1
- package/dist/components/widget/LimitOrderItem/LimitOrderDetails/utils.js.map +1 -1
- package/dist/components/widget/LimitOrderItem/LimitOrderListItem.d.ts +6 -3
- package/dist/components/widget/LimitOrderItem/LimitOrderListItem.d.ts.map +1 -1
- package/dist/components/widget/LimitOrderItem/LimitOrderListItem.js +119 -113
- package/dist/components/widget/LimitOrderItem/LimitOrderListItem.js.map +1 -1
- package/dist/components/widget/LimitOrderItem/constants.d.ts +1 -1
- package/dist/components/widget/LimitOrderItem/constants.js +1 -1
- package/dist/components/widget/LimitOrderItem/constants.js.map +1 -1
- package/dist/components/widget/LimitOrderItem/utils.d.ts +0 -2
- package/dist/components/widget/LimitOrderItem/utils.d.ts.map +1 -1
- package/dist/components/widget/LimitOrderItem/utils.js +1 -4
- package/dist/components/widget/LimitOrderItem/utils.js.map +1 -1
- package/dist/components/widget/OtcOrderItem/OtcOrderDetails/Controls.js +1 -1
- package/dist/components/widget/OtcOrderItem/OtcOrderDetails/Controls.js.map +1 -1
- package/dist/components/widget/OtcOrderItem/OtcOrderDetails/OtcOrderDetails.js +9 -9
- package/dist/components/widget/OtcOrderItem/OtcOrderDetails/OtcOrderDetails.js.map +1 -1
- package/dist/components/widget/OtcOrderItem/OtcOrderListItem.d.ts +2 -2
- package/dist/components/widget/OtcOrderItem/OtcOrderListItem.d.ts.map +1 -1
- package/dist/components/widget/OtcOrderItem/OtcOrderListItem.js +24 -19
- package/dist/components/widget/OtcOrderItem/OtcOrderListItem.js.map +1 -1
- package/dist/components/widget/OtcOrderItem/types.d.ts +2 -2
- package/dist/components/widget/OtcOrderItem/types.d.ts.map +1 -1
- package/dist/components/widget/OtcOrderItem/utils.d.ts +2 -2
- package/dist/components/widget/OtcOrderItem/utils.d.ts.map +1 -1
- package/dist/components/widget/OtcOrderItem/utils.js +1 -1
- package/dist/components/widget/OtcOrderItem/utils.js.map +1 -1
- package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/FillOtcReviewAndConfirm.js +1 -1
- package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/FillOtcReviewAndConfirm.js.map +1 -1
- package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/utils.d.ts +2 -2
- package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/utils.d.ts.map +1 -1
- package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/utils.js.map +1 -1
- package/dist/components/widget/TradeOverview/DeltaOrderTradeOverview.d.ts +2 -2
- package/dist/components/widget/TradeOverview/DeltaOrderTradeOverview.d.ts.map +1 -1
- package/dist/components/widget/TradeOverview/DeltaOrderTradeOverview.js +2 -2
- package/dist/components/widget/TradeOverview/DeltaOrderTradeOverview.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/useTradeCompleteDetails.js +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/useTradeCompleteDetails.js.map +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/utils.d.ts.map +1 -1
- package/dist/components/widget/TradeOverview/TradeComplete/utils.js +37 -37
- package/dist/components/widget/TradeOverview/TradeComplete/utils.js.map +1 -1
- package/dist/components/widget/TradeOverview/TwapOrderTradeOverview.d.ts +2 -2
- package/dist/components/widget/TradeOverview/TwapOrderTradeOverview.d.ts.map +1 -1
- package/dist/components/widget/TradeOverview/TwapOrderTradeOverview.js.map +1 -1
- package/dist/components/widget/TradeOverview/utils/useSwapAmountsWithSlippage.d.ts +4 -1
- package/dist/components/widget/TradeOverview/utils/useSwapAmountsWithSlippage.d.ts.map +1 -1
- package/dist/components/widget/TradeOverview/utils/useSwapAmountsWithSlippage.js +1 -1
- package/dist/components/widget/TradeOverview/utils/useSwapAmountsWithSlippage.js.map +1 -1
- package/dist/core/LimitOrderButton.d.ts.map +1 -1
- package/dist/core/LimitOrderButton.js +47 -53
- package/dist/core/LimitOrderButton.js.map +1 -1
- package/dist/core/TradeFlowScreenButton.d.ts +3 -4
- package/dist/core/TradeFlowScreenButton.d.ts.map +1 -1
- package/dist/core/TradeFlowScreenButton.js.map +1 -1
- package/dist/core/across/isCrosschainPossible.d.ts +2 -2
- package/dist/core/across/isCrosschainPossible.d.ts.map +1 -1
- package/dist/core/across/isCrosschainPossible.js.map +1 -1
- package/dist/core/across/utils.d.ts +4 -4
- package/dist/core/across/utils.d.ts.map +1 -1
- 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 +1 -4
- package/dist/core/button/hooks/useWidgetButtonExtraProps.js.map +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/inputs/hooks/useTokenFromInputProps.d.ts.map +1 -1
- package/dist/core/inputs/hooks/useTokenFromInputProps.js +3 -3
- package/dist/core/inputs/hooks/useTokenFromInputProps.js.map +1 -1
- package/dist/core/inputs/hooks/useTokenToInputProps.d.ts.map +1 -1
- package/dist/core/inputs/hooks/useTokenToInputProps.js +2 -2
- package/dist/core/inputs/hooks/useTokenToInputProps.js.map +1 -1
- package/dist/core/inputs/hooks/useWarningMessage.d.ts +2 -2
- package/dist/core/inputs/hooks/useWarningMessage.d.ts.map +1 -1
- package/dist/core/inputs/hooks/useWarningMessage.js.map +1 -1
- package/dist/core/inputs/hooks/utils.d.ts.map +1 -1
- package/dist/core/inputs/hooks/utils.js +7 -5
- package/dist/core/inputs/hooks/utils.js.map +1 -1
- package/dist/core/inputs/state/setTokenByAddressAtom.js.map +1 -1
- package/dist/core/limit/useLimitRate.d.ts +2 -3
- package/dist/core/limit/useLimitRate.d.ts.map +1 -1
- package/dist/core/limit/useLimitRate.js +54 -110
- package/dist/core/limit/useLimitRate.js.map +1 -1
- package/dist/core/limit/useLimitTokenFromInputProps.js +1 -1
- package/dist/core/limit/useLimitTokenFromInputProps.js.map +1 -1
- package/dist/core/limit/useLimitTokenToInputProps.d.ts.map +1 -1
- package/dist/core/limit/useLimitTokenToInputProps.js +1 -4
- package/dist/core/limit/useLimitTokenToInputProps.js.map +1 -1
- package/dist/core/state/configEffectAtom.js.map +1 -1
- package/dist/core/state/getSelectableDestChains.d.ts +2 -2
- package/dist/core/state/getSelectableDestChains.d.ts.map +1 -1
- package/dist/core/state/getSelectableDestChains.js.map +1 -1
- package/dist/core/swapDetails/fees.d.ts.map +1 -1
- package/dist/core/swapDetails/fees.js +16 -11
- package/dist/core/swapDetails/fees.js.map +1 -1
- package/dist/core/swapDetails/maxToPay.d.ts.map +1 -1
- package/dist/core/swapDetails/maxToPay.js +18 -17
- package/dist/core/swapDetails/maxToPay.js.map +1 -1
- package/dist/core/twap/twapDetails/minimumReceiveable.d.ts +2 -2
- package/dist/core/twap/twapDetails/minimumReceiveable.d.ts.map +1 -1
- package/dist/core/twap/twapDetails/minimumReceiveable.js.map +1 -1
- package/dist/core/twap/useTwapTokenFromInputProps.js +3 -3
- package/dist/core/twap/useTwapTokenFromInputProps.js.map +1 -1
- package/dist/events/hooks/useOnPriceUpdates.js.map +1 -1
- package/dist/events/types/cancelOrder.d.ts +2 -2
- package/dist/events/types/cancelOrder.d.ts.map +1 -1
- package/dist/events/types/fill.d.ts +2 -2
- package/dist/events/types/fill.d.ts.map +1 -1
- package/dist/events/types/otc.d.ts +2 -2
- package/dist/events/types/otc.d.ts.map +1 -1
- package/dist/events/types/priceChange.d.ts +2 -2
- package/dist/events/types/priceChange.d.ts.map +1 -1
- package/dist/events/types/swap.d.ts +3 -3
- package/dist/events/types/swap.d.ts.map +1 -1
- package/dist/events/types/twap.d.ts +2 -2
- package/dist/events/types/twap.d.ts.map +1 -1
- package/dist/hooks/otc/mutations/useCancelLimitOrder.d.ts +2 -2
- package/dist/hooks/otc/mutations/useCancelLimitOrder.d.ts.map +1 -1
- package/dist/hooks/otc/mutations/useCancelLimitOrder.js +4 -7
- package/dist/hooks/otc/mutations/useCancelLimitOrder.js.map +1 -1
- package/dist/hooks/otc/mutations/useCreateLimitOrder.d.ts +3 -3
- package/dist/hooks/otc/mutations/useCreateLimitOrder.d.ts.map +1 -1
- package/dist/hooks/otc/mutations/useCreateLimitOrder.js +7 -10
- package/dist/hooks/otc/mutations/useCreateLimitOrder.js.map +1 -1
- package/dist/hooks/otc/mutations/useFillOrder.d.ts +2 -2
- package/dist/hooks/otc/mutations/useFillOrder.d.ts.map +1 -1
- package/dist/hooks/otc/mutations/useFillOrder.js +2 -2
- package/dist/hooks/otc/mutations/useFillOrder.js.map +1 -1
- package/dist/hooks/otc/mutations/utils.d.ts +2 -2
- package/dist/hooks/otc/mutations/utils.d.ts.map +1 -1
- package/dist/hooks/otc/mutations/utils.js.map +1 -1
- package/dist/hooks/otc/queries/useLimitOrderRequiredBalance.js +1 -1
- package/dist/hooks/otc/queries/useLimitOrderRequiredBalance.js.map +1 -1
- package/dist/hooks/otc/queries/useLimitOrders.d.ts +29 -29
- package/dist/hooks/otc/queries/useLimitOrders.d.ts.map +1 -1
- package/dist/hooks/otc/queries/useLimitOrders.js +7 -7
- package/dist/hooks/otc/queries/useLimitOrders.js.map +1 -1
- package/dist/hooks/otc/queries/utils.d.ts +6 -6
- package/dist/hooks/otc/queries/utils.d.ts.map +1 -1
- package/dist/hooks/otc/queries/utils.js +1 -1
- package/dist/hooks/otc/queries/utils.js.map +1 -1
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderFlow.d.ts +2 -2
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderFlow.d.ts.map +1 -1
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderFlow.js +1 -1
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderFlow.js.map +1 -1
- package/dist/hooks/otc/tradeFlow/useOtcOrderFlow.d.ts +5 -5
- package/dist/hooks/otc/tradeFlow/useOtcOrderFlow.d.ts.map +1 -1
- package/dist/hooks/otc/tradeFlow/useOtcOrderFlow.js +1 -1
- package/dist/hooks/otc/tradeFlow/useOtcOrderFlow.js.map +1 -1
- package/dist/hooks/otc/tradeFlow/useOtcOrderStep.js +1 -1
- package/dist/hooks/otc/tradeFlow/useOtcOrderStep.js.map +1 -1
- package/dist/hooks/swap/prices/delta/bridge/useSelectedBridgePrice.d.ts +3 -4
- package/dist/hooks/swap/prices/delta/bridge/useSelectedBridgePrice.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/bridge/useSelectedBridgePrice.js.map +1 -1
- package/dist/hooks/swap/prices/delta/bridge/utils.d.ts +6 -36
- package/dist/hooks/swap/prices/delta/bridge/utils.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/bridge/utils.js +20 -18
- package/dist/hooks/swap/prices/delta/bridge/utils.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/useCreateTwapOrder.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/useCreateTwapOrder.js +5 -5
- package/dist/hooks/swap/prices/delta/mutations/twap/useCreateTwapOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/useDepositAndSubmitTwapOrder.js +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/useDepositAndSubmitTwapOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/usePostTwapOrder.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/usePostTwapOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/usePreSignAndSubmitTwapOrder.js +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/usePreSignAndSubmitTwapOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/useTwapOrderToPost.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/twap/useTwapOrderToPost.js +26 -27
- package/dist/hooks/swap/prices/delta/mutations/twap/useTwapOrderToPost.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/types.d.ts +3 -3
- package/dist/hooks/swap/prices/delta/mutations/types.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useCancelDeltaOrders.js +2 -2
- package/dist/hooks/swap/prices/delta/mutations/useCancelDeltaOrders.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useCancelOrWithdrawAndCancelDeltaOrder.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useCancelOrWithdrawAndCancelDeltaOrder.js +87 -84
- package/dist/hooks/swap/prices/delta/mutations/useCancelOrWithdrawAndCancelDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useCreateDeltaOrder.d.ts +2 -2
- package/dist/hooks/swap/prices/delta/mutations/useCreateDeltaOrder.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useCreateDeltaOrder.js +3 -3
- package/dist/hooks/swap/prices/delta/mutations/useCreateDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useDeltaOrderToPost.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useDeltaOrderToPost.js +26 -27
- package/dist/hooks/swap/prices/delta/mutations/useDeltaOrderToPost.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useIsDeltaOrderCancellable.d.ts +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useIsDeltaOrderCancellable.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useIsDeltaOrderCancellable.js +22 -20
- package/dist/hooks/swap/prices/delta/mutations/useIsDeltaOrderCancellable.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useWithdrawAndCancelDeltaOrder.js +1 -1
- package/dist/hooks/swap/prices/delta/mutations/useWithdrawAndCancelDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/utils.d.ts +4 -5
- package/dist/hooks/swap/prices/delta/mutations/utils.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/mutations/utils.js +5 -5
- package/dist/hooks/swap/prices/delta/mutations/utils.js.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/types.d.ts +7 -24
- package/dist/hooks/swap/prices/delta/orders/types.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/unposted/index.d.ts +1 -1
- package/dist/hooks/swap/prices/delta/orders/unposted/index.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/unposted/index.js.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/unposted/utils.d.ts +33 -42
- package/dist/hooks/swap/prices/delta/orders/unposted/utils.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/utils.d.ts +31 -36
- package/dist/hooks/swap/prices/delta/orders/utils.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/orders/utils.js +26 -51
- package/dist/hooks/swap/prices/delta/orders/utils.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/bridgeInfosLoadedAtom.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/common.d.ts +4 -2
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/common.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/common.js +9 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/common.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/getBridgeInfoQueryData.d.ts +2 -3
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/getBridgeInfoQueryData.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/getBridgeInfoQueryData.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/types.d.ts +7 -7
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/types.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/useBridgeInfo.js +22 -22
- package/dist/hooks/swap/prices/delta/queries/bridgeInfo/useBridgeInfo.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/errors.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/{useDeltaLimitOrderRequiredBalance.d.ts → useDeltaOrderRequiredBalance.d.ts} +10 -10
- package/dist/hooks/swap/prices/delta/queries/useDeltaOrderRequiredBalance.d.ts.map +1 -0
- package/dist/hooks/swap/prices/delta/queries/{useDeltaLimitOrderRequiredBalance.js → useDeltaOrderRequiredBalance.js} +4 -4
- package/dist/hooks/swap/prices/delta/queries/useDeltaOrderRequiredBalance.js.map +1 -0
- package/dist/hooks/swap/prices/delta/queries/useDeltaOrders.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaOrders.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts +16 -33
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js +4 -4
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useWatchDeltaOrder.d.ts +3 -11
- package/dist/hooks/swap/prices/delta/queries/useWatchDeltaOrder.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useWatchDeltaOrder.js +2 -7
- package/dist/hooks/swap/prices/delta/queries/useWatchDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/prices/factory.d.ts.map +1 -1
- package/dist/hooks/swap/prices/factory.js +1 -1
- package/dist/hooks/swap/prices/factory.js.map +1 -1
- package/dist/hooks/swap/prices/types.d.ts +2 -3
- package/dist/hooks/swap/prices/types.d.ts.map +1 -1
- package/dist/hooks/swap/prices/useSwapPrices.d.ts +3 -3
- package/dist/hooks/swap/prices/useSwapPrices.d.ts.map +1 -1
- package/dist/hooks/swap/prices/useSwapPrices.js +108 -111
- package/dist/hooks/swap/prices/useSwapPrices.js.map +1 -1
- package/dist/hooks/swap/prices/useTokenInputsFromPrice.js +3 -3
- package/dist/hooks/swap/prices/useTokenInputsFromPrice.js.map +1 -1
- package/dist/hooks/swap/prices/useTokenInputsFromTwapPrice.d.ts +2 -2
- package/dist/hooks/swap/prices/useTokenInputsFromTwapPrice.d.ts.map +1 -1
- package/dist/hooks/swap/prices/useTokenInputsFromTwapPrice.js.map +1 -1
- package/dist/hooks/swap/prices/useTwapPrices.d.ts +4 -5
- package/dist/hooks/swap/prices/useTwapPrices.d.ts.map +1 -1
- package/dist/hooks/swap/prices/useTwapPrices.js +70 -73
- package/dist/hooks/swap/prices/useTwapPrices.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/factory/depositAndSubmitOrderFactory.d.ts +10 -17
- package/dist/hooks/swap/tradeFlow/common/factory/depositAndSubmitOrderFactory.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/factory/depositAndSubmitOrderFactory.js +6 -6
- package/dist/hooks/swap/tradeFlow/common/factory/depositAndSubmitOrderFactory.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/useDepositAndSubmitDeltaOrder.js +1 -1
- package/dist/hooks/swap/tradeFlow/common/useDepositAndSubmitDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/usePreSignAndSubmitDeltaOrder.js +1 -1
- package/dist/hooks/swap/tradeFlow/common/usePreSignAndSubmitDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/useRequiredAllowanceForOrders.js +1 -1
- package/dist/hooks/swap/tradeFlow/common/useRequiredAllowanceForOrders.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.d.ts +5 -5
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.js +222 -227
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.js +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.d.ts +2 -2
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.js +159 -196
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useTwapFlow.d.ts +5 -5
- package/dist/hooks/swap/tradeFlow/useTwapFlow.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useTwapFlow.js +221 -233
- package/dist/hooks/swap/tradeFlow/useTwapFlow.js.map +1 -1
- package/dist/hooks/tokens/balances/useIsLimitOrderInsufficientBalance.js +1 -1
- package/dist/hooks/tokens/balances/useIsLimitOrderInsufficientBalance.js.map +1 -1
- package/dist/hooks/tokens/useAllTokensWithFilter.d.ts +2 -2
- package/dist/hooks/tokens/useAllTokensWithFilter.d.ts.map +1 -1
- package/dist/hooks/tokens/useAllTokensWithFilter.js.map +1 -1
- package/dist/hooks/tokens/useTokensFromAcross.d.ts +2 -2
- package/dist/hooks/tokens/useTokensFromAcross.d.ts.map +1 -1
- package/dist/hooks/tokens/useTokensFromAcross.js.map +1 -1
- package/dist/hooks/useAvailableCrosses.d.ts +3 -3
- package/dist/hooks/useAvailableCrosses.d.ts.map +1 -1
- package/dist/hooks/useAvailableCrosses.js.map +1 -1
- package/dist/hooks/useBridgeInfo.d.ts +2 -3
- package/dist/hooks/useBridgeInfo.d.ts.map +1 -1
- package/dist/hooks/useBridgeInfo.js.map +1 -1
- package/dist/hooks/useIsCrosschainPossible.d.ts +2 -2
- package/dist/hooks/useIsCrosschainPossible.d.ts.map +1 -1
- package/dist/hooks/useIsCrosschainPossible.js.map +1 -1
- package/dist/hooks/useSDK.d.ts +12 -12
- package/dist/hooks/useSDK.d.ts.map +1 -1
- package/dist/hooks/useSDK.js +30 -30
- package/dist/hooks/useSDK.js.map +1 -1
- package/dist/hooks/useSelectableDestChains.d.ts +2 -2
- package/dist/hooks/useSelectableDestChains.d.ts.map +1 -1
- package/dist/hooks/useSelectableDestChains.js.map +1 -1
- package/dist/lib/queryClient.js +3 -3
- package/dist/lib/queryClient.js.map +1 -1
- package/dist/lib/utils/price.d.ts +5 -2
- package/dist/lib/utils/price.d.ts.map +1 -1
- package/dist/lib/utils/price.js +8 -5
- package/dist/lib/utils/price.js.map +1 -1
- package/dist/lib/utils/twap.d.ts +19 -4
- package/dist/lib/utils/twap.d.ts.map +1 -1
- package/dist/lib/utils/twap.js +28 -18
- package/dist/lib/utils/twap.js.map +1 -1
- package/package.json +2 -2
- package/dist/hooks/swap/prices/delta/bridge/const.d.ts +0 -8
- package/dist/hooks/swap/prices/delta/bridge/const.d.ts.map +0 -1
- package/dist/hooks/swap/prices/delta/bridge/const.js +0 -13
- package/dist/hooks/swap/prices/delta/bridge/const.js.map +0 -1
- package/dist/hooks/swap/prices/delta/bridge/types.d.ts +0 -43
- package/dist/hooks/swap/prices/delta/bridge/types.d.ts.map +0 -1
- package/dist/hooks/swap/prices/delta/bridge/useBridgedDeposit.d.ts +0 -18
- package/dist/hooks/swap/prices/delta/bridge/useBridgedDeposit.d.ts.map +0 -1
- package/dist/hooks/swap/prices/delta/bridge/useSuggestedFees.d.ts +0 -5
- package/dist/hooks/swap/prices/delta/bridge/useSuggestedFees.d.ts.map +0 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaLimitOrderRequiredBalance.d.ts.map +0 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaLimitOrderRequiredBalance.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/widget/AppHeader/Activities/hooks.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAQ/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAQjE,OAAO,EAML,KAAK,SAAS,EACf,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/widget/AppHeader/Activities/hooks.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAQ/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAQjE,OAAO,EAML,KAAK,SAAS,EACf,MAAM,SAAS,CAAC;AAuOjB,wBAAgB,aAAa,CAAC,EAC5B,eAAe,GAChB,EAAE;IACD,eAAe,EAAE,gBAAgB,GAAG,KAAK,CAAC;CAC3C;;;;;;;;;;;;;EAgDA;AAqHD,eAAO,MAAM,oBAAoB;;;;CAWhC,CAAC;AAEF,wBAAgB,gBAAgB;;;;2BAeA,SAAS;;;;EAkCxC"}
|
|
@@ -3,92 +3,92 @@ import { gatherObjectsByProp as t } from "../../../../lib/utils/index.js";
|
|
|
3
3
|
import { isFilledArray as n } from "../../../../lib/utils/tuple.js";
|
|
4
4
|
import { constructTokenFromFetchedTokenInfo as r } from "../../../../tokens/constructor.js";
|
|
5
5
|
import { LONG_STALE_TIME_FOR_REACTIVENESS as i } from "../../../../lib/constants/time.js";
|
|
6
|
-
import { DeltaOrderStatusChecker as a } from "../../../../hooks/swap/prices/delta/orders/utils.js";
|
|
7
|
-
import { useAllEnabledChains as
|
|
8
|
-
import { prepTokenKey as
|
|
9
|
-
import { useUserDeltaOrdersQuery as
|
|
10
|
-
import { useDrawerControls as
|
|
11
|
-
import {
|
|
12
|
-
import { useFetchTokens as
|
|
13
|
-
import { activeOrderParams as
|
|
14
|
-
import { constructLimitOrderItem as
|
|
15
|
-
import { OTC_ORDERS_QUERY_PARAMS as
|
|
16
|
-
import {
|
|
17
|
-
import { constructOtcOrderItem as
|
|
18
|
-
import { getNotAvailableTokens as
|
|
19
|
-
import { useSwapTxHistory as
|
|
20
|
-
import { useUserPendingTransactionsOnEnabledChains as
|
|
21
|
-
import { constructSwapTransactionsData as
|
|
22
|
-
import { c as
|
|
23
|
-
import { useState as
|
|
24
|
-
import { useAccount as
|
|
6
|
+
import { DeltaOrderStatusChecker as a, getAuctionSrcChainId as o } from "../../../../hooks/swap/prices/delta/orders/utils.js";
|
|
7
|
+
import { useAllEnabledChains as s, useAllEnabledChainsWithDelta as c } from "../../../../core/state/enabledChainsAtom.js";
|
|
8
|
+
import { prepTokenKey as l, useTokensByAddressAllChains as u } from "../../../../hooks/tokens/useTokensByAddress.js";
|
|
9
|
+
import { useUserDeltaOrdersQuery as d } from "../../../../hooks/swap/prices/delta/queries/useDeltaOrders.js";
|
|
10
|
+
import { useDrawerControls as f } from "../../Drawer/state/useDrawerControls.js";
|
|
11
|
+
import { useUserOTCOrdersQuery as p } from "../../../../hooks/otc/queries/useLimitOrders.js";
|
|
12
|
+
import { useFetchTokens as m } from "../../../../hooks/tokens/data/useFetchTokens.js";
|
|
13
|
+
import { activeOrderParams as h, defaultOrderParams as g } from "../../LimitOrderItem/constants.js";
|
|
14
|
+
import { constructLimitOrderItem as _ } from "../../LimitOrderItem/utils.js";
|
|
15
|
+
import { OTC_ORDERS_QUERY_PARAMS as v } from "../../OtcOrderItem/constants.js";
|
|
16
|
+
import { OTCOrderStateChecker as y } from "../../../../hooks/otc/queries/utils.js";
|
|
17
|
+
import { constructOtcOrderItem as b, filterByActiveAndCompletedOrders as x, isFillableOrderItem as S } from "../../OtcOrderItem/utils.js";
|
|
18
|
+
import { getNotAvailableTokens as C, isLimitOrderItem as w, isOtcOrderItem as T, isTransactionListItem as E, sortOrdersFn as D } from "./utils.js";
|
|
19
|
+
import { useSwapTxHistory as O } from "../../../../hooks/txs/queries/useTxHistory.js";
|
|
20
|
+
import { useUserPendingTransactionsOnEnabledChains as k, useUserSwapTransactionsOnEnabledChains as A } from "../../../../transactions/state/hooks/useTransactions.js";
|
|
21
|
+
import { constructSwapTransactionsData as j } from "../../TransactionDetails/utils.js";
|
|
22
|
+
import { c as M } from "react-compiler-runtime";
|
|
23
|
+
import { useState as N } from "react";
|
|
24
|
+
import { useAccount as P, useChainId as F } from "wagmi";
|
|
25
25
|
//#region src/components/widget/AppHeader/Activities/hooks.ts
|
|
26
|
-
function
|
|
27
|
-
let i =
|
|
28
|
-
i[0] ===
|
|
29
|
-
account:
|
|
26
|
+
function I(n) {
|
|
27
|
+
let i = M(20), { selectedNetwork: a, tokensAllChains: o } = n, { address: c } = P(), u = s(), d;
|
|
28
|
+
i[0] === c ? d = i[1] : (d = {
|
|
29
|
+
account: c,
|
|
30
30
|
limit: 500
|
|
31
|
-
}, i[0] =
|
|
31
|
+
}, i[0] = c, i[1] = d);
|
|
32
32
|
let f;
|
|
33
33
|
i[2] === u ? f = i[3] : (f = { select: (e) => e.filter((e) => {
|
|
34
34
|
let { chainId: t } = e;
|
|
35
35
|
return u.includes(t);
|
|
36
36
|
}) }, i[2] = u, i[3] = f);
|
|
37
|
-
let
|
|
38
|
-
i[4] !== d || i[5] !== f ? (
|
|
37
|
+
let p;
|
|
38
|
+
i[4] !== d || i[5] !== f ? (p = {
|
|
39
39
|
params: d,
|
|
40
40
|
query: f
|
|
41
|
-
}, i[4] = d, i[5] = f, i[6] =
|
|
42
|
-
let { data: h, isLoading: g } =
|
|
43
|
-
i[7] !== v || i[8] !== _ || i[9] !==
|
|
44
|
-
let { tokens: b } =
|
|
45
|
-
i[11] !== v || i[12] !== a || i[13] !== _ || i[14] !== b || i[15] !==
|
|
41
|
+
}, i[4] = d, i[5] = f, i[6] = p) : p = i[6];
|
|
42
|
+
let { data: h, isLoading: g } = O(p), _ = h === void 0 ? e : h, v = A(), y;
|
|
43
|
+
i[7] !== v || i[8] !== _ || i[9] !== o ? (y = C([...v, ..._], o), i[7] = v, i[8] = _, i[9] = o, i[10] = y) : y = i[10];
|
|
44
|
+
let { tokens: b } = m(y), x;
|
|
45
|
+
i[11] !== v || i[12] !== a || i[13] !== _ || i[14] !== b || i[15] !== o ? (x = j({
|
|
46
46
|
swapTxsHistory: _,
|
|
47
47
|
localSwapTxs: v,
|
|
48
48
|
allChainsTokenMap: {
|
|
49
|
-
...t(b.map(r),
|
|
50
|
-
...
|
|
49
|
+
...t(b.map(r), l),
|
|
50
|
+
...o
|
|
51
51
|
},
|
|
52
52
|
selectedNetwork: a
|
|
53
|
-
}), i[11] = v, i[12] = a, i[13] = _, i[14] = b, i[15] =
|
|
54
|
-
let
|
|
55
|
-
return i[17] !== g || i[18] !== x ? (
|
|
53
|
+
}), i[11] = v, i[12] = a, i[13] = _, i[14] = b, i[15] = o, i[16] = x) : x = i[16];
|
|
54
|
+
let S;
|
|
55
|
+
return i[17] !== g || i[18] !== x ? (S = {
|
|
56
56
|
...x,
|
|
57
57
|
isLoading: g
|
|
58
|
-
}, i[17] = g, i[18] = x, i[19] =
|
|
58
|
+
}, i[17] = g, i[18] = x, i[19] = S) : S = i[19], S;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
let a =
|
|
60
|
+
function L(n) {
|
|
61
|
+
let a = M(33), { selectedNetwork: o, tokensAllChains: s } = n, { address: c } = P(), u;
|
|
62
62
|
a[0] === Symbol.for("react.memo_cache_sentinel") ? (u = { staleTime: i }, a[0] = u) : u = a[0];
|
|
63
63
|
let d;
|
|
64
64
|
a[1] === o ? d = a[2] : (d = {
|
|
65
|
-
orderParams:
|
|
65
|
+
orderParams: v,
|
|
66
66
|
chainId: o,
|
|
67
67
|
asMaker: !0,
|
|
68
68
|
query: u
|
|
69
69
|
}, a[1] = o, a[2] = d);
|
|
70
|
-
let
|
|
70
|
+
let f = p(d), h;
|
|
71
71
|
a[3] === Symbol.for("react.memo_cache_sentinel") ? (h = { staleTime: i }, a[3] = h) : h = a[3];
|
|
72
72
|
let g;
|
|
73
73
|
a[4] === o ? g = a[5] : (g = {
|
|
74
|
-
orderParams:
|
|
74
|
+
orderParams: v,
|
|
75
75
|
chainId: o,
|
|
76
76
|
asMaker: !1,
|
|
77
77
|
query: h
|
|
78
78
|
}, a[4] = o, a[5] = g);
|
|
79
|
-
let
|
|
80
|
-
a[6] !==
|
|
81
|
-
let { tokens: T } =
|
|
82
|
-
if (a[10] !==
|
|
79
|
+
let _ = p(g), y = f.data?.orders ?? e, S = _.data?.orders ?? e, w;
|
|
80
|
+
a[6] !== y || a[7] !== S || a[8] !== s ? (w = C([...y, ...S], s), a[6] = y, a[7] = S, a[8] = s, a[9] = w) : w = a[9];
|
|
81
|
+
let { tokens: T } = m(w), E, D, O, k, A;
|
|
82
|
+
if (a[10] !== c || a[11] !== y || a[12] !== S || a[13] !== T || a[14] !== s) {
|
|
83
83
|
let n = {
|
|
84
|
-
...t(T.map(r),
|
|
84
|
+
...t(T.map(r), l),
|
|
85
85
|
...s
|
|
86
86
|
};
|
|
87
|
-
O =
|
|
88
|
-
let { completedOrders: i, activeOrders: o } =
|
|
89
|
-
D = i === void 0 ? e : i, E = o === void 0 ? e : o, A =
|
|
87
|
+
O = y.map((e) => b(e, n, c)), k = S.map((e) => b(e, n, c));
|
|
88
|
+
let { completedOrders: i, activeOrders: o } = y.length > 0 ? x(O) : {};
|
|
89
|
+
D = i === void 0 ? e : i, E = o === void 0 ? e : o, A = S.length > 0 ? x(k) : {}, a[10] = c, a[11] = y, a[12] = S, a[13] = T, a[14] = s, a[15] = E, a[16] = D, a[17] = O, a[18] = k, a[19] = A;
|
|
90
90
|
} else E = a[15], D = a[16], O = a[17], k = a[18], A = a[19];
|
|
91
|
-
let { completedOrders:
|
|
91
|
+
let { completedOrders: j, activeOrders: N } = A, F = j === void 0 ? e : j, I = N === void 0 ? e : N, L = f.isLoading, R = _.isLoading, z;
|
|
92
92
|
a[20] !== E || a[21] !== L || a[22] !== D || a[23] !== O ? (z = {
|
|
93
93
|
allOrders: O,
|
|
94
94
|
activeOrders: E,
|
|
@@ -108,92 +108,101 @@ function I(n) {
|
|
|
108
108
|
asTaker: B
|
|
109
109
|
}, a[30] = B, a[31] = z, a[32] = V) : V = a[32], V;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
111
|
+
function R(e) {
|
|
112
|
+
return e.data;
|
|
113
|
+
}
|
|
114
|
+
function z(n) {
|
|
115
|
+
let a = M(27), { selectedNetwork: o, tokensAllChains: s } = n, u = c(), f;
|
|
116
|
+
a[0] === u ? f = a[1] : (f = {
|
|
117
|
+
...g,
|
|
118
|
+
chainId: u
|
|
119
|
+
}, a[0] = u, a[1] = f);
|
|
120
|
+
let p;
|
|
121
|
+
a[2] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
122
|
+
staleTime: i,
|
|
123
|
+
select: R
|
|
124
|
+
}, a[2] = p) : p = a[2];
|
|
119
125
|
let _;
|
|
120
126
|
a[3] === f ? _ = a[4] : (_ = {
|
|
121
127
|
orderParams: f,
|
|
122
|
-
query:
|
|
128
|
+
query: p
|
|
123
129
|
}, a[3] = f, a[4] = _);
|
|
124
|
-
let { data: v, isLoading: y } =
|
|
125
|
-
a[5] ===
|
|
126
|
-
...
|
|
127
|
-
chainId:
|
|
128
|
-
}, a[5] =
|
|
129
|
-
let
|
|
130
|
-
a[7] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
130
|
+
let { data: v, isLoading: y } = d(_), b = v === void 0 ? e : v, x;
|
|
131
|
+
a[5] === u ? x = a[6] : (x = {
|
|
132
|
+
...h,
|
|
133
|
+
chainId: u
|
|
134
|
+
}, a[5] = u, a[6] = x);
|
|
135
|
+
let S;
|
|
136
|
+
a[7] === Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
137
|
+
staleTime: i,
|
|
138
|
+
select: R
|
|
139
|
+
}, a[7] = S) : S = a[7];
|
|
131
140
|
let w;
|
|
132
141
|
a[8] === x ? w = a[9] : (w = {
|
|
133
142
|
orderParams: x,
|
|
134
|
-
query:
|
|
143
|
+
query: S
|
|
135
144
|
}, a[8] = x, a[9] = w);
|
|
136
|
-
let { data: T, isLoading: E } =
|
|
137
|
-
a[10] !== D || a[11] !== b || a[12] !==
|
|
138
|
-
let { tokens: k } =
|
|
139
|
-
if (a[14] !== D || a[15] !== b || a[16] !== o || a[17] !== k || a[18] !==
|
|
145
|
+
let { data: T, isLoading: E } = d(w), D = T === void 0 ? e : T, O;
|
|
146
|
+
a[10] !== D || a[11] !== b || a[12] !== s ? (O = C([...b, ...D], s), a[10] = D, a[11] = b, a[12] = s, a[13] = O) : O = a[13];
|
|
147
|
+
let { tokens: k } = m(O), A, j, N;
|
|
148
|
+
if (a[14] !== D || a[15] !== b || a[16] !== o || a[17] !== k || a[18] !== s) {
|
|
140
149
|
let e = {
|
|
141
|
-
...t(k.map(r),
|
|
142
|
-
...
|
|
150
|
+
...t(k.map(r), l),
|
|
151
|
+
...s
|
|
143
152
|
};
|
|
144
|
-
({allOrders: A, completedOrders:
|
|
153
|
+
({allOrders: A, completedOrders: j} = V({
|
|
145
154
|
orders: b,
|
|
146
155
|
selectedNetwork: o,
|
|
147
156
|
tokens: e
|
|
148
|
-
})), N =
|
|
157
|
+
})), N = H({
|
|
149
158
|
orders: D,
|
|
150
159
|
selectedNetwork: o,
|
|
151
160
|
tokens: e
|
|
152
|
-
}), a[14] = D, a[15] = b, a[16] = o, a[17] = k, a[18] =
|
|
153
|
-
} else A = a[19],
|
|
161
|
+
}), a[14] = D, a[15] = b, a[16] = o, a[17] = k, a[18] = s, a[19] = A, a[20] = j, a[21] = N;
|
|
162
|
+
} else A = a[19], j = a[20], N = a[21];
|
|
154
163
|
let P = N, F = y || E, I;
|
|
155
|
-
return a[22] !== P || a[23] !== A || a[24] !==
|
|
164
|
+
return a[22] !== P || a[23] !== A || a[24] !== j || a[25] !== F ? (I = {
|
|
156
165
|
allOrders: A,
|
|
157
166
|
activeOrders: P,
|
|
158
|
-
completedOrders:
|
|
167
|
+
completedOrders: j,
|
|
159
168
|
isLoading: F
|
|
160
|
-
}, a[22] = P, a[23] = A, a[24] =
|
|
169
|
+
}, a[22] = P, a[23] = A, a[24] = j, a[25] = F, a[26] = I) : I = a[26], I;
|
|
161
170
|
}
|
|
162
|
-
function
|
|
163
|
-
let t =
|
|
171
|
+
function B(e) {
|
|
172
|
+
let t = M(34), { selectedNetwork: n } = e, r = F(), i = u(), a = n === "all" ? r : n, o;
|
|
164
173
|
t[0] !== a || t[1] !== i ? (o = {
|
|
165
174
|
selectedNetwork: a,
|
|
166
175
|
tokensAllChains: i
|
|
167
176
|
}, t[0] = a, t[1] = i, t[2] = o) : o = t[2];
|
|
168
|
-
let s =
|
|
177
|
+
let s = L(o), c;
|
|
169
178
|
t[3] !== n || t[4] !== i ? (c = {
|
|
170
179
|
selectedNetwork: n,
|
|
171
180
|
tokensAllChains: i
|
|
172
181
|
}, t[3] = n, t[4] = i, t[5] = c) : c = t[5];
|
|
173
|
-
let
|
|
182
|
+
let l = z(c), d;
|
|
174
183
|
t[6] !== n || t[7] !== i ? (d = {
|
|
175
184
|
selectedNetwork: n,
|
|
176
185
|
tokensAllChains: i
|
|
177
186
|
}, t[6] = n, t[7] = i, t[8] = d) : d = t[8];
|
|
178
|
-
let f =
|
|
179
|
-
t[9] !==
|
|
187
|
+
let f = I(d), p;
|
|
188
|
+
t[9] !== l.allOrders || t[10] !== s.asMaker.allOrders || t[11] !== f.allTxs ? (p = [
|
|
180
189
|
...s.asMaker.allOrders,
|
|
181
|
-
...
|
|
190
|
+
...l.allOrders,
|
|
182
191
|
...f.allTxs
|
|
183
|
-
].sort(
|
|
192
|
+
].sort(D), t[9] = l.allOrders, t[10] = s.asMaker.allOrders, t[11] = f.allTxs, t[12] = p) : p = t[12];
|
|
184
193
|
let m;
|
|
185
|
-
t[13] !==
|
|
194
|
+
t[13] !== l.activeOrders || t[14] !== s.asMaker.activeOrders || t[15] !== f.activeTxs ? (m = [
|
|
186
195
|
...s.asMaker.activeOrders,
|
|
187
|
-
...
|
|
196
|
+
...l.activeOrders,
|
|
188
197
|
...f.activeTxs
|
|
189
|
-
].sort(
|
|
198
|
+
].sort(D), t[13] = l.activeOrders, t[14] = s.asMaker.activeOrders, t[15] = f.activeTxs, t[16] = m) : m = t[16];
|
|
190
199
|
let h;
|
|
191
|
-
t[17] !==
|
|
200
|
+
t[17] !== l.completedOrders || t[18] !== s.asMaker.completedOrders || t[19] !== f.completedTxs ? (h = [
|
|
192
201
|
...s.asMaker.completedOrders,
|
|
193
|
-
...
|
|
202
|
+
...l.completedOrders,
|
|
194
203
|
...f.completedTxs
|
|
195
|
-
].sort(
|
|
196
|
-
let g = s.asMaker.isLoading ||
|
|
204
|
+
].sort(D), t[17] = l.completedOrders, t[18] = s.asMaker.completedOrders, t[19] = f.completedTxs, t[20] = h) : h = t[20];
|
|
205
|
+
let g = s.asMaker.isLoading || l.isLoading || f.isLoading, _;
|
|
197
206
|
t[21] !== p || t[22] !== m || t[23] !== h || t[24] !== g ? (_ = {
|
|
198
207
|
allOrders: p,
|
|
199
208
|
activeOrders: m,
|
|
@@ -213,114 +222,124 @@ function R(e) {
|
|
|
213
222
|
asTaker: v
|
|
214
223
|
}, t[31] = v, t[32] = _, t[33] = y) : y = t[33], y;
|
|
215
224
|
}
|
|
216
|
-
var
|
|
225
|
+
var V = ({ orders: e, selectedNetwork: t, tokens: n }) => {
|
|
217
226
|
let r = [], i = [];
|
|
218
|
-
for (let
|
|
219
|
-
let e =
|
|
220
|
-
|
|
227
|
+
for (let s of e) {
|
|
228
|
+
let e = o(s);
|
|
229
|
+
if (t === "all" || e === t) {
|
|
230
|
+
let e = _(s, n);
|
|
231
|
+
r.push(e), a.completed.has(s.status) && i.push(e);
|
|
232
|
+
}
|
|
221
233
|
}
|
|
222
234
|
return {
|
|
223
235
|
allOrders: r,
|
|
224
236
|
completedOrders: i
|
|
225
237
|
};
|
|
226
|
-
},
|
|
238
|
+
}, H = ({ orders: e, selectedNetwork: t, tokens: n }) => {
|
|
227
239
|
let r = [];
|
|
228
|
-
for (let i of e)
|
|
229
|
-
let e =
|
|
230
|
-
|
|
240
|
+
for (let i of e) {
|
|
241
|
+
let e = o(i);
|
|
242
|
+
if (t === "all" || e === t) {
|
|
243
|
+
let e = _(i, n);
|
|
244
|
+
r.push(e);
|
|
245
|
+
}
|
|
231
246
|
}
|
|
232
247
|
return r;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
248
|
+
};
|
|
249
|
+
function U(e) {
|
|
250
|
+
return n(R(e));
|
|
251
|
+
}
|
|
252
|
+
var W = () => {
|
|
253
|
+
let e = M(5), t = c(), n;
|
|
254
|
+
e[0] === t ? n = e[1] : (n = {
|
|
255
|
+
...h,
|
|
237
256
|
type: "LIMIT",
|
|
238
257
|
chainId: t
|
|
239
|
-
}, e[0] = t, e[1] =
|
|
240
|
-
let
|
|
241
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
242
|
-
select:
|
|
258
|
+
}, e[0] = t, e[1] = n);
|
|
259
|
+
let r;
|
|
260
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
261
|
+
select: U,
|
|
243
262
|
staleTime: i
|
|
244
|
-
}, e[2] =
|
|
245
|
-
let
|
|
246
|
-
return e[3] ===
|
|
247
|
-
orderParams:
|
|
248
|
-
query:
|
|
249
|
-
}, e[3] =
|
|
250
|
-
},
|
|
251
|
-
let e =
|
|
252
|
-
e[0] === t ?
|
|
253
|
-
...
|
|
263
|
+
}, e[2] = r) : r = e[2];
|
|
264
|
+
let a;
|
|
265
|
+
return e[3] === n ? a = e[4] : (a = {
|
|
266
|
+
orderParams: n,
|
|
267
|
+
query: r
|
|
268
|
+
}, e[3] = n, e[4] = a), d(a);
|
|
269
|
+
}, G = () => {
|
|
270
|
+
let e = M(5), t = c(), n;
|
|
271
|
+
e[0] === t ? n = e[1] : (n = {
|
|
272
|
+
...h,
|
|
254
273
|
type: "MARKET",
|
|
255
274
|
chainId: t
|
|
256
|
-
}, e[0] = t, e[1] =
|
|
257
|
-
let
|
|
258
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
259
|
-
select:
|
|
275
|
+
}, e[0] = t, e[1] = n);
|
|
276
|
+
let r;
|
|
277
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
278
|
+
select: U,
|
|
260
279
|
staleTime: i
|
|
261
|
-
}, e[2] =
|
|
262
|
-
let
|
|
263
|
-
return e[3] ===
|
|
264
|
-
orderParams:
|
|
265
|
-
query:
|
|
266
|
-
}, e[3] =
|
|
267
|
-
},
|
|
268
|
-
let e =
|
|
280
|
+
}, e[2] = r) : r = e[2];
|
|
281
|
+
let a;
|
|
282
|
+
return e[3] === n ? a = e[4] : (a = {
|
|
283
|
+
orderParams: n,
|
|
284
|
+
query: r
|
|
285
|
+
}, e[3] = n, e[4] = a), d(a);
|
|
286
|
+
}, K = ({ orders: e }) => e.filter(({ state: e }) => y.active.has(e)).length > 0, q = () => {
|
|
287
|
+
let e = M(6), t = F(), n;
|
|
269
288
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
270
|
-
select:
|
|
289
|
+
select: K,
|
|
271
290
|
staleTime: i
|
|
272
291
|
}, e[0] = n) : n = e[0];
|
|
273
292
|
let r;
|
|
274
293
|
e[1] === t ? r = e[2] : (r = {
|
|
275
|
-
orderParams:
|
|
294
|
+
orderParams: v,
|
|
276
295
|
chainId: t,
|
|
277
296
|
asMaker: !0,
|
|
278
297
|
query: n
|
|
279
298
|
}, e[1] = t, e[2] = r);
|
|
280
|
-
let { data: a } =
|
|
299
|
+
let { data: a } = p(r), o;
|
|
281
300
|
e[3] === Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
282
|
-
select:
|
|
301
|
+
select: K,
|
|
283
302
|
staleTime: i
|
|
284
303
|
}, e[3] = o) : o = e[3];
|
|
285
304
|
let s;
|
|
286
305
|
e[4] === t ? s = e[5] : (s = {
|
|
287
|
-
orderParams:
|
|
306
|
+
orderParams: v,
|
|
288
307
|
chainId: t,
|
|
289
308
|
asMaker: !1,
|
|
290
309
|
query: o
|
|
291
310
|
}, e[4] = t, e[5] = s);
|
|
292
|
-
let { data: c } =
|
|
311
|
+
let { data: c } = p(s);
|
|
293
312
|
return !!(a || c);
|
|
294
|
-
},
|
|
295
|
-
let e =
|
|
313
|
+
}, J = () => {
|
|
314
|
+
let e = M(4), t = W(), n = q(), r = k(), i = G(), a = t.data || n, o = r.length > 0, s = !!i.data, c;
|
|
296
315
|
return e[0] !== a || e[1] !== o || e[2] !== s ? (c = {
|
|
297
316
|
hasLimitOrOtcOrders: a,
|
|
298
317
|
hasPendingTransactions: o,
|
|
299
318
|
hasActiveMarketDeltaOrders: s
|
|
300
319
|
}, e[0] = a, e[1] = o, e[2] = s, e[3] = c) : c = e[3], c;
|
|
301
320
|
};
|
|
302
|
-
function
|
|
303
|
-
let e =
|
|
304
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
305
|
-
let c =
|
|
321
|
+
function Y() {
|
|
322
|
+
let e = M(11), t = s(), [n, r] = N(t.length === 1 ? t[0] : "all"), [i, a] = N(null), o;
|
|
323
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = { drawerId: "order-details" }, e[0] = o) : o = e[0];
|
|
324
|
+
let c = f(o), l;
|
|
306
325
|
e[1] === Symbol.for("react.memo_cache_sentinel") ? (l = { drawerId: "fill-order-review-and-confirm-drawer" }, e[1] = l) : l = e[1];
|
|
307
|
-
let u =
|
|
308
|
-
e[2] !== c || e[3] !== u ? (
|
|
309
|
-
if (a(e),
|
|
326
|
+
let u = f(l), d;
|
|
327
|
+
e[2] !== c || e[3] !== u ? (d = (e) => {
|
|
328
|
+
if (a(e), w(e)) {
|
|
310
329
|
c.onOpen();
|
|
311
330
|
return;
|
|
312
331
|
}
|
|
313
|
-
if (
|
|
314
|
-
|
|
332
|
+
if (T(e)) {
|
|
333
|
+
S(e) ? u.onOpen() : c.onOpen();
|
|
315
334
|
return;
|
|
316
335
|
}
|
|
317
|
-
if (
|
|
336
|
+
if (E(e)) {
|
|
318
337
|
c.onOpen();
|
|
319
338
|
return;
|
|
320
339
|
}
|
|
321
340
|
throw Error("Unsupported order item type");
|
|
322
|
-
}, e[2] = c, e[3] = u, e[4] =
|
|
323
|
-
let p =
|
|
341
|
+
}, e[2] = c, e[3] = u, e[4] = d) : d = e[4];
|
|
342
|
+
let p = d, m;
|
|
324
343
|
return e[5] !== p || e[6] !== c || e[7] !== u || e[8] !== n || e[9] !== i ? (m = {
|
|
325
344
|
selectedNetwork: n,
|
|
326
345
|
setSelectedNetwork: r,
|
|
@@ -332,6 +351,6 @@ function K() {
|
|
|
332
351
|
}, e[5] = p, e[6] = c, e[7] = u, e[8] = n, e[9] = i, e[10] = m) : m = e[10], m;
|
|
333
352
|
}
|
|
334
353
|
//#endregion
|
|
335
|
-
export {
|
|
354
|
+
export { Y as useActivityProps, B as useOrderItems, J as useUserHasActivities };
|
|
336
355
|
|
|
337
356
|
//# sourceMappingURL=hooks.js.map
|