0xtrails 0.16.2 → 0.17.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/README.md +488 -3
- package/dist/BluvoExchangeSelection.lazy-D6ynQVSb.js +1 -0
- package/dist/BluvoOnrampFlow.lazy-BcDqhGLi.js +143 -0
- package/dist/ConnectWalletCard-BkbHCcWi.js +26 -0
- package/dist/actionBuilder-CAS2u5wu.js +2 -0
- package/dist/actions/index.d.ts +7 -23
- package/dist/actions/index.js +1 -37
- package/dist/contractConstants-CvJrYK9v.js +1 -0
- package/dist/defineProperty-BbfpZ9Tg.js +1 -0
- package/dist/edge-DmNcuJar.d.ts +121 -0
- package/dist/edge-L_Lk1K6j.js +1 -0
- package/dist/hooks/index.d.ts +6 -38
- package/dist/hooks/index.js +1 -67
- package/dist/hydrate/index.d.ts +196 -8
- package/dist/hydrate/index.js +1 -19
- package/dist/hydrate-QyWqQfec.js +1 -0
- package/dist/iife/trails.min.js +7324 -0
- package/dist/index-CMdwQmYL.d.ts +1044 -0
- package/dist/index.d.ts +1023 -114
- package/dist/index.js +1 -317
- package/dist/multicall-BCUHt_9t.d.ts +148 -0
- package/dist/offlineRecovery-BfgccnFf.d.ts +1232 -0
- package/dist/plugins/edge.d.ts +4 -0
- package/dist/plugins/edge.js +1 -0
- package/dist/quoteError-CmTH5Qm2.d.ts +24 -0
- package/dist/src-Cy3oxYgV.js +94 -0
- package/dist/sushiswapV3-D3h41LNZ.d.ts +723 -0
- package/dist/tokenTypes-D812t5L9.d.ts +31 -0
- package/dist/types-BK0WkVnx.d.ts +2161 -0
- package/dist/useViewManager-BeUH_k1s.d.ts +1224 -0
- package/dist/{actions/utils.d.ts → utils-KPnWBA9x.d.ts} +77 -52
- package/dist/widget/connect-showcase.d.ts +8 -0
- package/dist/widget/connect-showcase.js +1 -0
- package/dist/widget/index.d.ts +5 -21
- package/dist/widget/index.js +1 -33
- package/package.json +42 -42
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/defineProperty.js +0 -12
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/toPrimitive.js +0 -14
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/toPropertyKey.js +0 -9
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/typeof.js +0 -11
- package/dist/abi.d.ts +0 -37
- package/dist/abi.d.ts.map +0 -1
- package/dist/abis/erc20.d.ts +0 -19
- package/dist/abis/erc20.d.ts.map +0 -1
- package/dist/abis/requireUtils.d.ts +0 -134
- package/dist/abis/requireUtils.d.ts.map +0 -1
- package/dist/abis/requireUtils.js +0 -168
- package/dist/abis/trailsHydrate.d.ts +0 -7
- package/dist/abis/trailsHydrate.d.ts.map +0 -1
- package/dist/abis/trailsRouter.d.ts +0 -30
- package/dist/abis/trailsRouter.d.ts.map +0 -1
- package/dist/abis/trailsRouter.js +0 -66
- package/dist/abis/trailsSweep.d.ts +0 -7
- package/dist/abis/trailsSweep.d.ts.map +0 -1
- package/dist/abortController.d.ts +0 -8
- package/dist/abortController.d.ts.map +0 -1
- package/dist/abortController.js +0 -23
- package/dist/actions/actionBuilder.d.ts +0 -424
- package/dist/actions/actionBuilder.d.ts.map +0 -1
- package/dist/actions/actionBuilder.js +0 -173
- package/dist/actions/constants.d.ts +0 -1809
- package/dist/actions/constants.d.ts.map +0 -1
- package/dist/actions/constants.js +0 -37
- package/dist/actions/custom-integrations/sushiswapV3/addresses.d.ts +0 -4
- package/dist/actions/custom-integrations/sushiswapV3/addresses.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/addresses.js +0 -33
- package/dist/actions/custom-integrations/sushiswapV3/calldata.d.ts +0 -4
- package/dist/actions/custom-integrations/sushiswapV3/calldata.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/calldata.js +0 -124
- package/dist/actions/custom-integrations/sushiswapV3/calls.d.ts +0 -28
- package/dist/actions/custom-integrations/sushiswapV3/calls.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/calls.js +0 -27
- package/dist/actions/custom-integrations/sushiswapV3/helpers.d.ts +0 -15
- package/dist/actions/custom-integrations/sushiswapV3/helpers.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/helpers.js +0 -27
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.d.ts +0 -9
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.js +0 -246
- package/dist/actions/custom-integrations/sushiswapV3/types.d.ts +0 -95
- package/dist/actions/custom-integrations/sushiswapV3/types.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/addresses.d.ts +0 -4
- package/dist/actions/custom-integrations/uniswapV3/addresses.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/addresses.js +0 -33
- package/dist/actions/custom-integrations/uniswapV3/calldata.d.ts +0 -4
- package/dist/actions/custom-integrations/uniswapV3/calldata.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/calldata.js +0 -190
- package/dist/actions/custom-integrations/uniswapV3/calls.d.ts +0 -50
- package/dist/actions/custom-integrations/uniswapV3/calls.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/calls.js +0 -27
- package/dist/actions/custom-integrations/uniswapV3/helpers.d.ts +0 -23
- package/dist/actions/custom-integrations/uniswapV3/helpers.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/helpers.js +0 -27
- package/dist/actions/custom-integrations/uniswapV3/types.d.ts +0 -90
- package/dist/actions/custom-integrations/uniswapV3/types.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.d.ts +0 -9
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.js +0 -244
- package/dist/actions/destinationCalls.d.ts +0 -17
- package/dist/actions/destinationCalls.d.ts.map +0 -1
- package/dist/actions/destinationCalls.js +0 -43
- package/dist/actions/dynamic.d.ts +0 -97
- package/dist/actions/dynamic.d.ts.map +0 -1
- package/dist/actions/dynamic.js +0 -27
- package/dist/actions/hooks/useEarnBalances.d.ts +0 -53
- package/dist/actions/hooks/useEarnBalances.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnBalances.js +0 -37
- package/dist/actions/hooks/useEarnMarkets.d.ts +0 -29
- package/dist/actions/hooks/useEarnMarkets.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnMarkets.js +0 -30
- package/dist/actions/hooks/useEarnProviders.d.ts +0 -18
- package/dist/actions/hooks/useEarnProviders.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnProviders.js +0 -25
- package/dist/actions/hooks/useResolveActions.d.ts +0 -19
- package/dist/actions/hooks/useResolveActions.d.ts.map +0 -1
- package/dist/actions/hooks/useResolveActions.js +0 -56
- package/dist/actions/index.d.ts.map +0 -1
- package/dist/actions/resolveActions.d.ts +0 -13
- package/dist/actions/resolveActions.d.ts.map +0 -1
- package/dist/actions/resolveActions.js +0 -267
- package/dist/actions/resolvers.d.ts +0 -29
- package/dist/actions/resolvers.d.ts.map +0 -1
- package/dist/actions/resolvers.js +0 -161
- package/dist/actions/types/earn.d.ts +0 -51
- package/dist/actions/types/earn.d.ts.map +0 -1
- package/dist/actions/types.d.ts +0 -319
- package/dist/actions/types.d.ts.map +0 -1
- package/dist/actions/types.js +0 -24
- package/dist/actions/utils.d.ts.map +0 -1
- package/dist/actions/utils.js +0 -203
- package/dist/adapters/evmAdapter.d.ts +0 -10
- package/dist/adapters/evmAdapter.d.ts.map +0 -1
- package/dist/adapters/evmAdapter.js +0 -28
- package/dist/analytics/hooks/useWidgetAnalytics.d.ts +0 -8
- package/dist/analytics/hooks/useWidgetAnalytics.d.ts.map +0 -1
- package/dist/analytics/hooks/useWidgetAnalytics.js +0 -41
- package/dist/analytics.d.ts +0 -715
- package/dist/analytics.d.ts.map +0 -1
- package/dist/analytics.js +0 -881
- package/dist/chainRegistry.d.ts +0 -6
- package/dist/chainRegistry.d.ts.map +0 -1
- package/dist/chainRegistry.js +0 -47
- package/dist/chainResolution.d.ts +0 -6
- package/dist/chainResolution.d.ts.map +0 -1
- package/dist/chainResolution.js +0 -53
- package/dist/chainRpcClient.d.ts +0 -8
- package/dist/chainRpcClient.d.ts.map +0 -1
- package/dist/chainRpcClient.js +0 -67
- package/dist/chainSwitch.d.ts +0 -7
- package/dist/chainSwitch.d.ts.map +0 -1
- package/dist/chainSwitch.js +0 -66
- package/dist/chains.d.ts +0 -59
- package/dist/chains.d.ts.map +0 -1
- package/dist/chains.js +0 -152
- package/dist/committedIntentStore.d.ts +0 -5
- package/dist/committedIntentStore.d.ts.map +0 -1
- package/dist/committedIntentStore.js +0 -52
- package/dist/config.d.ts +0 -2
- package/dist/config.d.ts.map +0 -1
- package/dist/configDefaults.d.ts +0 -7
- package/dist/configDefaults.d.ts.map +0 -1
- package/dist/configDefaults.js +0 -9
- package/dist/configStore.d.ts +0 -31
- package/dist/configStore.d.ts.map +0 -1
- package/dist/configStore.js +0 -53
- package/dist/constants.d.ts +0 -176
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -184
- package/dist/contractConstants.d.ts +0 -8
- package/dist/contractConstants.d.ts.map +0 -1
- package/dist/contractConstants.js +0 -9
- package/dist/contractUtils.d.ts +0 -6
- package/dist/contractUtils.d.ts.map +0 -1
- package/dist/contractUtils.js +0 -19
- package/dist/cssUtils.d.ts +0 -2
- package/dist/cssUtils.d.ts.map +0 -1
- package/dist/cssUtils.js +0 -7
- package/dist/customChains.d.ts +0 -24
- package/dist/customChains.d.ts.map +0 -1
- package/dist/customChains.js +0 -20
- package/dist/customTokens.d.ts +0 -12
- package/dist/customTokens.d.ts.map +0 -1
- package/dist/customTokens.js +0 -64
- package/dist/decoders.d.ts +0 -69
- package/dist/decoders.d.ts.map +0 -1
- package/dist/decoders.js +0 -181
- package/dist/ens.d.ts +0 -20
- package/dist/ens.d.ts.map +0 -1
- package/dist/ens.js +0 -92
- package/dist/error.d.ts +0 -97
- package/dist/error.d.ts.map +0 -1
- package/dist/error.js +0 -298
- package/dist/estimate.d.ts +0 -78
- package/dist/estimate.d.ts.map +0 -1
- package/dist/estimate.js +0 -147
- package/dist/explorer.d.ts +0 -12
- package/dist/explorer.d.ts.map +0 -1
- package/dist/explorer.js +0 -15
- package/dist/fees.d.ts +0 -65
- package/dist/fees.d.ts.map +0 -1
- package/dist/fees.js +0 -165
- package/dist/gasless.d.ts +0 -123
- package/dist/gasless.d.ts.map +0 -1
- package/dist/gasless.js +0 -314
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/persistedToken.d.ts +0 -22
- package/dist/hooks/persistedToken.d.ts.map +0 -1
- package/dist/hooks/persistedToken.js +0 -65
- package/dist/hooks/prepareTrailsSendTransactionDestination.d.ts +0 -26
- package/dist/hooks/prepareTrailsSendTransactionDestination.d.ts.map +0 -1
- package/dist/hooks/prepareTrailsSendTransactionDestination.js +0 -33
- package/dist/hooks/useAmountUsd.d.ts +0 -12
- package/dist/hooks/useAmountUsd.d.ts.map +0 -1
- package/dist/hooks/useAmountUsd.js +0 -21
- package/dist/hooks/useBalanceVisible.d.ts +0 -15
- package/dist/hooks/useBalanceVisible.d.ts.map +0 -1
- package/dist/hooks/useBalanceVisible.js +0 -46
- package/dist/hooks/useBluvoTokenList.d.ts +0 -13
- package/dist/hooks/useBluvoTokenList.d.ts.map +0 -1
- package/dist/hooks/useBluvoTokenList.js +0 -57
- package/dist/hooks/useChainFilter.d.ts +0 -14
- package/dist/hooks/useChainFilter.d.ts.map +0 -1
- package/dist/hooks/useChainFilter.js +0 -24
- package/dist/hooks/useCheckout.d.ts +0 -80
- package/dist/hooks/useCheckout.d.ts.map +0 -1
- package/dist/hooks/useCheckout.js +0 -118
- package/dist/hooks/useClickTracking.d.ts +0 -12
- package/dist/hooks/useClickTracking.d.ts.map +0 -1
- package/dist/hooks/useClickTracking.js +0 -37
- package/dist/hooks/useCombinedHistory.d.ts +0 -50
- package/dist/hooks/useCombinedHistory.d.ts.map +0 -1
- package/dist/hooks/useCombinedHistory.js +0 -168
- package/dist/hooks/useCustomTokenSearch.d.ts +0 -28
- package/dist/hooks/useCustomTokenSearch.d.ts.map +0 -1
- package/dist/hooks/useCustomTokenSearch.js +0 -165
- package/dist/hooks/useDebounce.d.ts +0 -10
- package/dist/hooks/useDebounce.d.ts.map +0 -1
- package/dist/hooks/useDebounce.js +0 -15
- package/dist/hooks/useDebugScreens.d.ts +0 -17
- package/dist/hooks/useDebugScreens.d.ts.map +0 -1
- package/dist/hooks/useDebugScreens.js +0 -412
- package/dist/hooks/useDefaultDestinationToken.d.ts +0 -20
- package/dist/hooks/useDefaultDestinationToken.d.ts.map +0 -1
- package/dist/hooks/useDefaultDestinationToken.js +0 -60
- package/dist/hooks/useDefaultOriginToken.d.ts +0 -26
- package/dist/hooks/useDefaultOriginToken.d.ts.map +0 -1
- package/dist/hooks/useDefaultOriginToken.js +0 -120
- package/dist/hooks/useDepositMonitor.d.ts +0 -20
- package/dist/hooks/useDepositMonitor.d.ts.map +0 -1
- package/dist/hooks/useDepositMonitor.js +0 -54
- package/dist/hooks/useDestinationSelectedToken.d.ts +0 -38
- package/dist/hooks/useDestinationSelectedToken.d.ts.map +0 -1
- package/dist/hooks/useDestinationSelectedToken.js +0 -178
- package/dist/hooks/useDisplayCurrencyPreference.d.ts +0 -15
- package/dist/hooks/useDisplayCurrencyPreference.d.ts.map +0 -1
- package/dist/hooks/useDisplayCurrencyPreference.js +0 -57
- package/dist/hooks/useEarnPool.d.ts +0 -12
- package/dist/hooks/useEarnPool.d.ts.map +0 -1
- package/dist/hooks/useEarnPool.js +0 -21
- package/dist/hooks/useEffectiveFundBalance.d.ts +0 -28
- package/dist/hooks/useEffectiveFundBalance.d.ts.map +0 -1
- package/dist/hooks/useEffectiveFundBalance.js +0 -24
- package/dist/hooks/useExchangeFundingSelection.d.ts +0 -17
- package/dist/hooks/useExchangeFundingSelection.d.ts.map +0 -1
- package/dist/hooks/useExchangeFundingSelection.js +0 -25
- package/dist/hooks/useExecutingIntentsCount.d.ts +0 -15
- package/dist/hooks/useExecutingIntentsCount.d.ts.map +0 -1
- package/dist/hooks/useExternalFundingReceiptSync.d.ts +0 -11
- package/dist/hooks/useExternalFundingReceiptSync.d.ts.map +0 -1
- package/dist/hooks/useExternalFundingReceiptSync.js +0 -32
- package/dist/hooks/useFiatOnRampCurrencies.d.ts +0 -15
- package/dist/hooks/useFiatOnRampCurrencies.d.ts.map +0 -1
- package/dist/hooks/useFiatOnRampCurrencies.js +0 -14
- package/dist/hooks/useFiatSelectedCurrency.d.ts +0 -19
- package/dist/hooks/useFiatSelectedCurrency.d.ts.map +0 -1
- package/dist/hooks/useFiatSelectedCurrency.js +0 -55
- package/dist/hooks/useGetIntent.d.ts +0 -19
- package/dist/hooks/useGetIntent.d.ts.map +0 -1
- package/dist/hooks/useGetIntent.js +0 -26
- package/dist/hooks/useIntentReceiptBalances.d.ts +0 -16
- package/dist/hooks/useIntentReceiptBalances.d.ts.map +0 -1
- package/dist/hooks/useIntentReceiptBalances.js +0 -77
- package/dist/hooks/useIntentTransactionHistory.d.ts +0 -25
- package/dist/hooks/useIntentTransactionHistory.d.ts.map +0 -1
- package/dist/hooks/useIntentTransactionHistory.js +0 -357
- package/dist/hooks/useIsMobile.d.ts +0 -5
- package/dist/hooks/useIsMobile.d.ts.map +0 -1
- package/dist/hooks/useIsMobile.js +0 -21
- package/dist/hooks/useLocalePreference.d.ts +0 -21
- package/dist/hooks/useLocalePreference.d.ts.map +0 -1
- package/dist/hooks/useLocalePreference.js +0 -193
- package/dist/hooks/useMeldTransactionHistory.d.ts +0 -49
- package/dist/hooks/useMeldTransactionHistory.d.ts.map +0 -1
- package/dist/hooks/useMeldTransactionHistory.js +0 -71
- package/dist/hooks/useMeldTransactionStatus.d.ts +0 -61
- package/dist/hooks/useMeldTransactionStatus.d.ts.map +0 -1
- package/dist/hooks/useMeldTransactionStatus.js +0 -284
- package/dist/hooks/useOnRampCountryDefaults.d.ts +0 -18
- package/dist/hooks/useOnRampCountryDefaults.d.ts.map +0 -1
- package/dist/hooks/useOnRampCountryDefaults.js +0 -20
- package/dist/hooks/useOnRampPaymentMethods.d.ts +0 -15
- package/dist/hooks/useOnRampPaymentMethods.d.ts.map +0 -1
- package/dist/hooks/useOnRampPaymentMethods.js +0 -27
- package/dist/hooks/useOnRampProviderWidget.d.ts +0 -40
- package/dist/hooks/useOnRampProviderWidget.d.ts.map +0 -1
- package/dist/hooks/useOnRampProviderWidget.js +0 -70
- package/dist/hooks/useOnRampQuote.d.ts +0 -38
- package/dist/hooks/useOnRampQuote.d.ts.map +0 -1
- package/dist/hooks/useOnRampQuote.js +0 -159
- package/dist/hooks/useOnRampTransactionStatus.d.ts +0 -73
- package/dist/hooks/useOnRampTransactionStatus.d.ts.map +0 -1
- package/dist/hooks/useOriginSelectedToken.d.ts +0 -22
- package/dist/hooks/useOriginSelectedToken.d.ts.map +0 -1
- package/dist/hooks/useOriginSelectedToken.js +0 -127
- package/dist/hooks/usePayMessage.d.ts +0 -35
- package/dist/hooks/usePayMessage.d.ts.map +0 -1
- package/dist/hooks/usePayMessage.js +0 -333
- package/dist/hooks/usePriceImpactWarning.d.ts +0 -8
- package/dist/hooks/usePriceImpactWarning.d.ts.map +0 -1
- package/dist/hooks/usePriceImpactWarning.js +0 -9
- package/dist/hooks/useQuote.d.ts +0 -611
- package/dist/hooks/useQuote.d.ts.map +0 -1
- package/dist/hooks/useQuote.js +0 -590
- package/dist/hooks/useRecentChains.d.ts +0 -7
- package/dist/hooks/useRecentChains.d.ts.map +0 -1
- package/dist/hooks/useRecentChains.js +0 -52
- package/dist/hooks/useRecentTokens.d.ts +0 -7
- package/dist/hooks/useRecentTokens.d.ts.map +0 -1
- package/dist/hooks/useRecentTokens.js +0 -82
- package/dist/hooks/useRecipients.d.ts +0 -17
- package/dist/hooks/useRecipients.d.ts.map +0 -1
- package/dist/hooks/useRecipients.js +0 -75
- package/dist/hooks/useSelectedFeeOption.d.ts +0 -31
- package/dist/hooks/useSelectedFeeOption.d.ts.map +0 -1
- package/dist/hooks/useSelectedFeeOption.js +0 -113
- package/dist/hooks/useSelectedFundMethod.d.ts +0 -73
- package/dist/hooks/useSelectedFundMethod.d.ts.map +0 -1
- package/dist/hooks/useSelectedFundMethod.js +0 -51
- package/dist/hooks/useSelectedRecipient.d.ts +0 -12
- package/dist/hooks/useSelectedRecipient.d.ts.map +0 -1
- package/dist/hooks/useSelectedRecipient.js +0 -39
- package/dist/hooks/useSendForm.d.ts +0 -141
- package/dist/hooks/useSendForm.d.ts.map +0 -1
- package/dist/hooks/useSendForm.js +0 -595
- package/dist/hooks/useSwapAmount.d.ts +0 -13
- package/dist/hooks/useSwapAmount.d.ts.map +0 -1
- package/dist/hooks/useSwapAmount.js +0 -24
- package/dist/hooks/useSwapState.d.ts +0 -21
- package/dist/hooks/useSwapState.d.ts.map +0 -1
- package/dist/hooks/useSwapState.js +0 -44
- package/dist/hooks/useTargetAmount.d.ts +0 -6
- package/dist/hooks/useTargetAmount.d.ts.map +0 -1
- package/dist/hooks/useTargetAmount.js +0 -17
- package/dist/hooks/useTheme.d.ts +0 -14
- package/dist/hooks/useTheme.d.ts.map +0 -1
- package/dist/hooks/useTheme.js +0 -47
- package/dist/hooks/useTokenList.d.ts +0 -43
- package/dist/hooks/useTokenList.d.ts.map +0 -1
- package/dist/hooks/useTokenList.js +0 -456
- package/dist/hooks/useTrailsSendTransaction.d.ts +0 -139
- package/dist/hooks/useTrailsSendTransaction.d.ts.map +0 -1
- package/dist/hooks/useTrailsSendTransaction.js +0 -418
- package/dist/hooks/useViewManager.d.ts +0 -89
- package/dist/hooks/useViewManager.d.ts.map +0 -1
- package/dist/hooks/useViewManager.js +0 -274
- package/dist/hooks/useWalletConnectionContext.d.ts +0 -26
- package/dist/hooks/useWalletConnectionContext.d.ts.map +0 -1
- package/dist/hooks/useWalletConnectionContext.js +0 -53
- package/dist/hooks/useWidgetProps.d.ts +0 -13
- package/dist/hooks/useWidgetProps.d.ts.map +0 -1
- package/dist/hooks/useWidgetProps.js +0 -18
- package/dist/hydrate/builder.d.ts +0 -131
- package/dist/hydrate/builder.d.ts.map +0 -1
- package/dist/hydrate/builder.js +0 -210
- package/dist/hydrate/constants.d.ts +0 -13
- package/dist/hydrate/constants.d.ts.map +0 -1
- package/dist/hydrate/constants.js +0 -5
- package/dist/hydrate/encodeExecute.d.ts +0 -73
- package/dist/hydrate/encodeExecute.d.ts.map +0 -1
- package/dist/hydrate/encodeExecute.js +0 -60
- package/dist/hydrate/index.d.ts.map +0 -1
- package/dist/hydrate/multicall.d.ts +0 -69
- package/dist/hydrate/multicall.d.ts.map +0 -1
- package/dist/hydrate/multicall.js +0 -167
- package/dist/hydrate/payload.d.ts +0 -38
- package/dist/hydrate/payload.d.ts.map +0 -1
- package/dist/hydrate/payload.js +0 -26
- package/dist/hydrate/selectors.d.ts +0 -28
- package/dist/hydrate/selectors.d.ts.map +0 -1
- package/dist/hydrate/selectors.js +0 -326
- package/dist/hydrate/source.d.ts +0 -11
- package/dist/hydrate/source.d.ts.map +0 -1
- package/dist/hydrate/source.js +0 -19
- package/dist/hydrate/types.d.ts +0 -21
- package/dist/hydrate/types.d.ts.map +0 -1
- package/dist/hydrate/utils.d.ts +0 -8
- package/dist/hydrate/utils.d.ts.map +0 -1
- package/dist/hydrate/utils.js +0 -23
- package/dist/index.d.ts.map +0 -1
- package/dist/indexerClient.d.ts +0 -23
- package/dist/indexerClient.d.ts.map +0 -1
- package/dist/indexerClient.js +0 -40
- package/dist/intentConfigStore.d.ts +0 -8
- package/dist/intentConfigStore.d.ts.map +0 -1
- package/dist/intentConfigStore.js +0 -40
- package/dist/intentProtocolApi.d.ts +0 -11
- package/dist/intentProtocolApi.d.ts.map +0 -1
- package/dist/intentProtocolApi.js +0 -11
- package/dist/intentProtocolEncoding.d.ts +0 -30
- package/dist/intentProtocolEncoding.d.ts.map +0 -1
- package/dist/intentProtocolEncoding.js +0 -114
- package/dist/intentProtocolResolver.d.ts +0 -28
- package/dist/intentProtocolResolver.d.ts.map +0 -1
- package/dist/intentProtocolResolver.js +0 -34
- package/dist/intentReceiptMonitor.d.ts +0 -24
- package/dist/intentReceiptMonitor.d.ts.map +0 -1
- package/dist/intentReceiptMonitor.js +0 -30
- package/dist/intentReceiptPoller.d.ts +0 -69
- package/dist/intentReceiptPoller.d.ts.map +0 -1
- package/dist/intentReceiptPoller.js +0 -162
- package/dist/intentValidation.d.ts +0 -5
- package/dist/intentValidation.d.ts.map +0 -1
- package/dist/intentValidation.js +0 -19
- package/dist/intents.d.ts +0 -148
- package/dist/intents.d.ts.map +0 -1
- package/dist/intents.js +0 -391
- package/dist/keyMachineClient.d.ts +0 -9
- package/dist/keyMachineClient.d.ts.map +0 -1
- package/dist/keyMachineClient.js +0 -13
- package/dist/keymachine/index.d.ts +0 -34
- package/dist/keymachine/index.d.ts.map +0 -1
- package/dist/keymachine/index.js +0 -92
- package/dist/keymachine/key-machine.gen.d.ts +0 -461
- package/dist/keymachine/key-machine.gen.d.ts.map +0 -1
- package/dist/keymachine/key-machine.gen.js +0 -164
- package/dist/localeUtils.d.ts +0 -46
- package/dist/localeUtils.d.ts.map +0 -1
- package/dist/localeUtils.js +0 -60
- package/dist/logger/index.d.ts +0 -16
- package/dist/logger/index.d.ts.map +0 -1
- package/dist/logger/index.js +0 -57
- package/dist/logger/useSyncLoggerDebug.d.ts +0 -2
- package/dist/logger/useSyncLoggerDebug.d.ts.map +0 -1
- package/dist/logger/useSyncLoggerDebug.js +0 -9
- package/dist/logger.d.ts +0 -2
- package/dist/logger.d.ts.map +0 -1
- package/dist/meld/components/MeldCountriesList.d.ts +0 -9
- package/dist/meld/components/MeldCountriesList.d.ts.map +0 -1
- package/dist/meld/components/MeldCountriesList.js +0 -167
- package/dist/meld/components/MeldFundMethods.d.ts +0 -14
- package/dist/meld/components/MeldFundMethods.d.ts.map +0 -1
- package/dist/meld/components/MeldFundMethods.js +0 -163
- package/dist/meld/components/MeldProvidersList.d.ts +0 -11
- package/dist/meld/components/MeldProvidersList.d.ts.map +0 -1
- package/dist/meld/components/MeldProvidersList.js +0 -145
- package/dist/meld/components/MeldTokensList.d.ts +0 -12
- package/dist/meld/components/MeldTokensList.d.ts.map +0 -1
- package/dist/meld/components/MeldTokensList.js +0 -215
- package/dist/meld/components/SimpleHeader.d.ts +0 -8
- package/dist/meld/components/SimpleHeader.d.ts.map +0 -1
- package/dist/meld/components/SimpleHeader.js +0 -18
- package/dist/meld/utils/meld.d.ts +0 -41
- package/dist/meld/utils/meld.d.ts.map +0 -1
- package/dist/meld/utils/meld.js +0 -24
- package/dist/mutations.d.ts +0 -19
- package/dist/mutations.d.ts.map +0 -1
- package/dist/mutations.js +0 -91
- package/dist/offlineRecovery.d.ts +0 -24
- package/dist/offlineRecovery.d.ts.map +0 -1
- package/dist/offlineRecovery.js +0 -219
- package/dist/onramp/MeshConnectFlow.d.ts +0 -27
- package/dist/onramp/MeshConnectFlow.d.ts.map +0 -1
- package/dist/onramp/MeshConnectFlow.js +0 -41
- package/dist/onramp/MeshConnectIframe.d.ts +0 -22
- package/dist/onramp/MeshConnectIframe.d.ts.map +0 -1
- package/dist/onramp/MeshConnectIframe.js +0 -434
- package/dist/onramp/SendFromExchangeButton.d.ts +0 -16
- package/dist/onramp/SendFromExchangeButton.d.ts.map +0 -1
- package/dist/onramp/SendFromExchangeButton.js +0 -36
- package/dist/onramp/TrailsOnRampProvider.d.ts +0 -38
- package/dist/onramp/TrailsOnRampProvider.d.ts.map +0 -1
- package/dist/onramp/TrailsOnRampProvider.js +0 -25
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.d.ts +0 -12
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.d.ts.map +0 -1
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.js +0 -18
- package/dist/onramp/index.d.ts +0 -13
- package/dist/onramp/index.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.d.ts +0 -10
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.js +0 -62
- package/dist/onramp/mesh/components/MeshExchangeIcon.d.ts +0 -13
- package/dist/onramp/mesh/components/MeshExchangeIcon.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeIcon.js +0 -54
- package/dist/onramp/mesh/components/MeshExchangeSelection.d.ts +0 -12
- package/dist/onramp/mesh/components/MeshExchangeSelection.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeSelection.js +0 -135
- package/dist/onramp/mesh/components/MeshSessionOptions.d.ts +0 -15
- package/dist/onramp/mesh/components/MeshSessionOptions.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshSessionOptions.js +0 -68
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.d.ts +0 -9
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.js +0 -38
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.d.ts +0 -11
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.js +0 -21
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.d.ts +0 -71
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.js +0 -168
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.d.ts +0 -32
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.js +0 -28
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.d.ts +0 -19
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.js +0 -57
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.d.ts +0 -15
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.js +0 -45
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.d.ts +0 -7
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.js +0 -20
- package/dist/onramp/meshSessionStorage.d.ts +0 -13
- package/dist/onramp/meshSessionStorage.d.ts.map +0 -1
- package/dist/onramp/meshSessionStorage.js +0 -165
- package/dist/onramp/meshconnect.d.ts +0 -32
- package/dist/onramp/meshconnect.d.ts.map +0 -1
- package/dist/onramp/meshconnect.js +0 -124
- package/dist/onramp/trailsOnramp.d.ts +0 -32
- package/dist/onramp/trailsOnramp.d.ts.map +0 -1
- package/dist/onramp/trailsOnramp.js +0 -64
- package/dist/onramp-client/index.d.ts +0 -13
- package/dist/onramp-client/index.d.ts.map +0 -1
- package/dist/onramp-client/index.js +0 -19
- package/dist/onrampClient.d.ts +0 -10
- package/dist/onrampClient.d.ts.map +0 -1
- package/dist/onrampClient.js +0 -31
- package/dist/package.js +0 -123
- package/dist/placeholder.d.ts +0 -142
- package/dist/placeholder.d.ts.map +0 -1
- package/dist/placeholder.js +0 -95
- package/dist/poolUtils.d.ts +0 -16
- package/dist/poolUtils.d.ts.map +0 -1
- package/dist/poolUtils.js +0 -87
- package/dist/pools.d.ts +0 -33
- package/dist/pools.d.ts.map +0 -1
- package/dist/pools.js +0 -77
- package/dist/prepareSend.d.ts +0 -12
- package/dist/prepareSend.d.ts.map +0 -1
- package/dist/prepareSend.js +0 -207
- package/dist/query/QueryProvider.d.ts +0 -9
- package/dist/query/QueryProvider.d.ts.map +0 -1
- package/dist/query/QueryProvider.js +0 -13
- package/dist/query/balance.fetchers.d.ts +0 -116
- package/dist/query/balance.fetchers.d.ts.map +0 -1
- package/dist/query/balance.fetchers.js +0 -289
- package/dist/query/balance.hooks.d.ts +0 -80
- package/dist/query/balance.hooks.d.ts.map +0 -1
- package/dist/query/balance.hooks.js +0 -123
- package/dist/query/balance.queries.d.ts +0 -93
- package/dist/query/balance.queries.d.ts.map +0 -1
- package/dist/query/balance.queries.js +0 -142
- package/dist/query/chains.hooks.d.ts +0 -5
- package/dist/query/chains.hooks.d.ts.map +0 -1
- package/dist/query/chains.hooks.js +0 -40
- package/dist/query/chains.queries.d.ts +0 -16
- package/dist/query/chains.queries.d.ts.map +0 -1
- package/dist/query/chains.queries.js +0 -17
- package/dist/query/client.d.ts +0 -16
- package/dist/query/client.d.ts.map +0 -1
- package/dist/query/client.js +0 -15
- package/dist/query/fiat.fetchers.d.ts +0 -11
- package/dist/query/fiat.fetchers.d.ts.map +0 -1
- package/dist/query/fiat.fetchers.js +0 -10
- package/dist/query/fiat.hooks.d.ts +0 -18
- package/dist/query/fiat.hooks.d.ts.map +0 -1
- package/dist/query/fiat.hooks.js +0 -20
- package/dist/query/fiat.queries.d.ts +0 -24
- package/dist/query/fiat.queries.d.ts.map +0 -1
- package/dist/query/fiat.queries.js +0 -39
- package/dist/query/geo.fetchers.d.ts +0 -5
- package/dist/query/geo.fetchers.d.ts.map +0 -1
- package/dist/query/geo.fetchers.js +0 -61
- package/dist/query/geo.hooks.d.ts +0 -5
- package/dist/query/geo.hooks.d.ts.map +0 -1
- package/dist/query/geo.hooks.js +0 -17
- package/dist/query/geo.queries.d.ts +0 -22
- package/dist/query/geo.queries.d.ts.map +0 -1
- package/dist/query/geo.queries.js +0 -33
- package/dist/query/helpers.d.ts +0 -18
- package/dist/query/helpers.d.ts.map +0 -1
- package/dist/query/helpers.js +0 -31
- package/dist/query/intentProtocol.queries.d.ts +0 -32
- package/dist/query/intentProtocol.queries.d.ts.map +0 -1
- package/dist/query/intentProtocol.queries.js +0 -41
- package/dist/query/meld.fetchers.d.ts +0 -19
- package/dist/query/meld.fetchers.d.ts.map +0 -1
- package/dist/query/meld.fetchers.js +0 -41
- package/dist/query/meld.hooks.d.ts +0 -4
- package/dist/query/meld.hooks.d.ts.map +0 -1
- package/dist/query/meld.hooks.js +0 -15
- package/dist/query/meld.queries.d.ts +0 -61
- package/dist/query/meld.queries.d.ts.map +0 -1
- package/dist/query/meld.queries.js +0 -97
- package/dist/query/persister.d.ts +0 -9
- package/dist/query/persister.d.ts.map +0 -1
- package/dist/query/persister.js +0 -13
- package/dist/query/price.fetchers.d.ts +0 -15
- package/dist/query/price.fetchers.d.ts.map +0 -1
- package/dist/query/price.fetchers.js +0 -26
- package/dist/query/price.hooks.d.ts +0 -352
- package/dist/query/price.hooks.d.ts.map +0 -1
- package/dist/query/price.hooks.js +0 -35
- package/dist/query/price.queries.d.ts +0 -34
- package/dist/query/price.queries.d.ts.map +0 -1
- package/dist/query/price.queries.js +0 -139
- package/dist/query/serialization.d.ts +0 -3
- package/dist/query/serialization.d.ts.map +0 -1
- package/dist/query/serialization.js +0 -17
- package/dist/query/token.fetchers.d.ts +0 -13
- package/dist/query/token.fetchers.d.ts.map +0 -1
- package/dist/query/token.fetchers.js +0 -6
- package/dist/query/token.hooks.d.ts +0 -41
- package/dist/query/token.hooks.d.ts.map +0 -1
- package/dist/query/token.hooks.js +0 -68
- package/dist/query/token.queries.d.ts +0 -67
- package/dist/query/token.queries.d.ts.map +0 -1
- package/dist/query/token.queries.js +0 -144
- package/dist/queryParams.d.ts +0 -9
- package/dist/queryParams.d.ts.map +0 -1
- package/dist/queryParamsCore.d.ts +0 -2
- package/dist/queryParamsCore.d.ts.map +0 -1
- package/dist/queryParamsCore.js +0 -10
- package/dist/quoteError.d.ts +0 -22
- package/dist/quoteError.d.ts.map +0 -1
- package/dist/quoteError.js +0 -9
- package/dist/recover.d.ts +0 -304
- package/dist/recover.d.ts.map +0 -1
- package/dist/recover.js +0 -703
- package/dist/smartContractWallet.d.ts +0 -8
- package/dist/smartContractWallet.d.ts.map +0 -1
- package/dist/smartContractWallet.js +0 -11
- package/dist/theme.d.ts +0 -3
- package/dist/theme.d.ts.map +0 -1
- package/dist/toast.d.ts +0 -9
- package/dist/toast.d.ts.map +0 -1
- package/dist/toast.js +0 -31
- package/dist/tokenRegistry.d.ts +0 -50
- package/dist/tokenRegistry.d.ts.map +0 -1
- package/dist/tokenRegistry.js +0 -589
- package/dist/tokenTypes.d.ts +0 -29
- package/dist/tokenTypes.d.ts.map +0 -1
- package/dist/tokens.d.ts +0 -62
- package/dist/tokens.d.ts.map +0 -1
- package/dist/tokens.js +0 -370
- package/dist/trailsClient.d.ts +0 -11
- package/dist/trailsClient.d.ts.map +0 -1
- package/dist/trailsClient.js +0 -29
- package/dist/transactionIntent/constants.d.ts +0 -8
- package/dist/transactionIntent/constants.d.ts.map +0 -1
- package/dist/transactionIntent/constants.js +0 -11
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts +0 -55
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/depositOrchestrator.js +0 -88
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts +0 -31
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/gaslessDeposit.js +0 -218
- package/dist/transactionIntent/deposits/index.d.ts +0 -4
- package/dist/transactionIntent/deposits/index.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/standardDeposit.d.ts +0 -50
- package/dist/transactionIntent/deposits/standardDeposit.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/standardDeposit.js +0 -131
- package/dist/transactionIntent/execution/index.d.ts +0 -2
- package/dist/transactionIntent/execution/index.d.ts.map +0 -1
- package/dist/transactionIntent/execution/transactionState.d.ts +0 -5
- package/dist/transactionIntent/execution/transactionState.d.ts.map +0 -1
- package/dist/transactionIntent/execution/transactionState.js +0 -21
- package/dist/transactionIntent/handlers/index.d.ts +0 -2
- package/dist/transactionIntent/handlers/index.d.ts.map +0 -1
- package/dist/transactionIntent/handlers/intentHandler.d.ts +0 -71
- package/dist/transactionIntent/handlers/intentHandler.d.ts.map +0 -1
- package/dist/transactionIntent/handlers/intentHandler.js +0 -533
- package/dist/transactionIntent/helpers/index.d.ts +0 -2
- package/dist/transactionIntent/helpers/index.d.ts.map +0 -1
- package/dist/transactionIntent/helpers/transactionStateHelpers.d.ts +0 -68
- package/dist/transactionIntent/helpers/transactionStateHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/helpers/transactionStateHelpers.js +0 -124
- package/dist/transactionIntent/index.d.ts +0 -10
- package/dist/transactionIntent/index.d.ts.map +0 -1
- package/dist/transactionIntent/quote/feeExtractors.d.ts +0 -13
- package/dist/transactionIntent/quote/feeExtractors.d.ts.map +0 -1
- package/dist/transactionIntent/quote/feeExtractors.js +0 -52
- package/dist/transactionIntent/quote/index.d.ts +0 -4
- package/dist/transactionIntent/quote/index.d.ts.map +0 -1
- package/dist/transactionIntent/quote/normalizeQuote.d.ts +0 -44
- package/dist/transactionIntent/quote/normalizeQuote.d.ts.map +0 -1
- package/dist/transactionIntent/quote/normalizeQuote.js +0 -214
- package/dist/transactionIntent/quote/quoteHelpers.d.ts +0 -6
- package/dist/transactionIntent/quote/quoteHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/quote/quoteHelpers.js +0 -47
- package/dist/transactionIntent/types.d.ts +0 -181
- package/dist/transactionIntent/types.d.ts.map +0 -1
- package/dist/transactionIntent/types.js +0 -38
- package/dist/transactionIntent/utils/balanceChecker.d.ts +0 -20
- package/dist/transactionIntent/utils/balanceChecker.d.ts.map +0 -1
- package/dist/transactionIntent/utils/balanceChecker.js +0 -55
- package/dist/transactionIntent/utils/index.d.ts +0 -3
- package/dist/transactionIntent/utils/index.d.ts.map +0 -1
- package/dist/transactionIntent/utils/resilientDepositTracker.d.ts +0 -25
- package/dist/transactionIntent/utils/resilientDepositTracker.d.ts.map +0 -1
- package/dist/transactionIntent/utils/resilientDepositTracker.js +0 -62
- package/dist/transactionIntent/utils/testnetHelpers.d.ts +0 -2
- package/dist/transactionIntent/utils/testnetHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/validators.d.ts +0 -4
- package/dist/transactionIntent/validators.d.ts.map +0 -1
- package/dist/transactionIntent/validators.js +0 -11
- package/dist/transactions.d.ts +0 -176
- package/dist/transactions.d.ts.map +0 -1
- package/dist/transactions.js +0 -115
- package/dist/umd/trails.min.js +0 -1251
- package/dist/utils/address.d.ts +0 -28
- package/dist/utils/address.d.ts.map +0 -1
- package/dist/utils/address.js +0 -30
- package/dist/utils/fiat.d.ts +0 -8
- package/dist/utils/fiat.d.ts.map +0 -1
- package/dist/utils/fiat.js +0 -30
- package/dist/utils/format.d.ts +0 -74
- package/dist/utils/format.d.ts.map +0 -1
- package/dist/utils/format.js +0 -274
- package/dist/utils/localStorageGc.d.ts +0 -22
- package/dist/utils/localStorageGc.d.ts.map +0 -1
- package/dist/utils/localStorageGc.js +0 -53
- package/dist/utils/passthrough.d.ts +0 -46
- package/dist/utils/passthrough.d.ts.map +0 -1
- package/dist/utils/passthrough.js +0 -20
- package/dist/utils/time.d.ts +0 -27
- package/dist/utils/time.d.ts.map +0 -1
- package/dist/utils/time.js +0 -68
- package/dist/utils/tokenResolution.d.ts +0 -19
- package/dist/utils/tokenResolution.d.ts.map +0 -1
- package/dist/utils/tokenResolution.js +0 -53
- package/dist/utils/validation.d.ts +0 -53
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -80
- package/dist/utils.d.ts +0 -34
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -58
- package/dist/version.d.ts +0 -3
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -9
- package/dist/widget/assets/components/Aave.d.ts +0 -8
- package/dist/widget/assets/components/Aave.d.ts.map +0 -1
- package/dist/widget/assets/components/Aave.js +0 -29
- package/dist/widget/assets/components/ExchangeIconBlack.d.ts +0 -8
- package/dist/widget/assets/components/ExchangeIconBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodCardBrands.d.ts +0 -8
- package/dist/widget/assets/components/FundMethodCardBrands.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodCardBrands.js +0 -49
- package/dist/widget/assets/components/FundMethodExchangeBrands.d.ts +0 -8
- package/dist/widget/assets/components/FundMethodExchangeBrands.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodExchangeBrands.js +0 -37
- package/dist/widget/assets/components/MetaMaskIconFox.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskIconFox.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskIconFoxWithMargins.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskIconFoxWithMargins.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskLogoBlack.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskLogoBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskLogoWhite.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskLogoWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/Morpho.d.ts +0 -8
- package/dist/widget/assets/components/Morpho.d.ts.map +0 -1
- package/dist/widget/assets/components/Morpho.js +0 -51
- package/dist/widget/assets/components/TrailsBlack.d.ts +0 -8
- package/dist/widget/assets/components/TrailsBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/TrailsBlack.js +0 -25
- package/dist/widget/assets/components/TrailsWhite.d.ts +0 -8
- package/dist/widget/assets/components/TrailsWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/TrailsWhite.js +0 -25
- package/dist/widget/assets/components/WalletChangeBlack.d.ts +0 -8
- package/dist/widget/assets/components/WalletChangeBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogo.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogo.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoBlack.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoBlue.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoBlue.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoWhite.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/index.d.ts +0 -17
- package/dist/widget/assets/components/index.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.d.ts +0 -54
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.js +0 -68
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.d.ts +0 -386
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.js +0 -872
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.d.ts +0 -192
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.js +0 -294
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.d.ts +0 -51
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.js +0 -72
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.d.ts +0 -19
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.js +0 -62
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.d.ts +0 -44
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.js +0 -6
- package/dist/widget/bluvo/bluvo-lib/api.types.d.ts +0 -49
- package/dist/widget/bluvo/bluvo-lib/api.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.d.ts +0 -84
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.js +0 -26
- package/dist/widget/bluvo/bluvo-lib/createMachine.d.ts +0 -3
- package/dist/widget/bluvo/bluvo-lib/createMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/createMachine.js +0 -38
- package/dist/widget/bluvo/bluvo-lib/error-codes.d.ts +0 -156
- package/dist/widget/bluvo/bluvo-lib/error-codes.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/error-codes.js +0 -115
- package/dist/widget/bluvo/bluvo-lib/flow.types.d.ts +0 -356
- package/dist/widget/bluvo/bluvo-lib/flow.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowMachine.d.ts +0 -4
- package/dist/widget/bluvo/bluvo-lib/flowMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowMachine.js +0 -45
- package/dist/widget/bluvo/bluvo-lib/flowMachine.types.d.ts +0 -20
- package/dist/widget/bluvo/bluvo-lib/flowMachine.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.d.ts +0 -39
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.js +0 -395
- package/dist/widget/bluvo/bluvo-lib/index.d.ts +0 -5
- package/dist/widget/bluvo/bluvo-lib/index.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/machine.types.d.ts +0 -15
- package/dist/widget/bluvo/bluvo-lib/machine.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.d.ts +0 -23
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.js +0 -24
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.d.ts +0 -325
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.js +0 -152
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.d.ts +0 -11
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.js +0 -25
- package/dist/widget/bluvo/bluvo-lib/useWithdrawMachine.d.ts +0 -17
- package/dist/widget/bluvo/bluvo-lib/useWithdrawMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawal.types.d.ts +0 -46
- package/dist/widget/bluvo/bluvo-lib/withdrawal.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.d.ts +0 -29
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.js +0 -95
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.d.ts +0 -3
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.js +0 -137
- package/dist/widget/bluvo/index.d.ts +0 -2
- package/dist/widget/bluvo/index.d.ts.map +0 -1
- package/dist/widget/components/AccountActionsDropdown.d.ts +0 -4
- package/dist/widget/components/AccountActionsDropdown.d.ts.map +0 -1
- package/dist/widget/components/AccountActionsDropdown.js +0 -23
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts +0 -9
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts.map +0 -1
- package/dist/widget/components/AccountIntentTransactionHistory.js +0 -426
- package/dist/widget/components/AccountIntentTransactionHistoryButton.d.ts +0 -4
- package/dist/widget/components/AccountIntentTransactionHistoryButton.d.ts.map +0 -1
- package/dist/widget/components/AccountIntentTransactionHistoryButton.js +0 -23
- package/dist/widget/components/AccountSettings.d.ts +0 -7
- package/dist/widget/components/AccountSettings.d.ts.map +0 -1
- package/dist/widget/components/AccountSettings.js +0 -106
- package/dist/widget/components/AddressOrEnsName.d.ts +0 -13
- package/dist/widget/components/AddressOrEnsName.d.ts.map +0 -1
- package/dist/widget/components/AddressOrEnsName.js +0 -13
- package/dist/widget/components/AddressWalletIcon.d.ts +0 -8
- package/dist/widget/components/AddressWalletIcon.d.ts.map +0 -1
- package/dist/widget/components/AddressWalletIcon.js +0 -32
- package/dist/widget/components/AllChainsIcon.d.ts +0 -9
- package/dist/widget/components/AllChainsIcon.d.ts.map +0 -1
- package/dist/widget/components/AllChainsIcon.js +0 -98
- package/dist/widget/components/BluvoExchangeSelection.d.ts +0 -12
- package/dist/widget/components/BluvoExchangeSelection.d.ts.map +0 -1
- package/dist/widget/components/BluvoExchangeSelection.js +0 -131
- package/dist/widget/components/BluvoExchangeSelection.lazy.d.ts +0 -2
- package/dist/widget/components/BluvoExchangeSelection.lazy.d.ts.map +0 -1
- package/dist/widget/components/BluvoExchangeSelection.lazy.js +0 -4
- package/dist/widget/components/BluvoOnrampFlow.d.ts +0 -20
- package/dist/widget/components/BluvoOnrampFlow.d.ts.map +0 -1
- package/dist/widget/components/BluvoOnrampFlow.js +0 -1472
- package/dist/widget/components/BluvoOnrampFlow.lazy.d.ts +0 -2
- package/dist/widget/components/BluvoOnrampFlow.lazy.d.ts.map +0 -1
- package/dist/widget/components/BluvoOnrampFlow.lazy.js +0 -4
- package/dist/widget/components/ChainFilterDropdown.d.ts +0 -17
- package/dist/widget/components/ChainFilterDropdown.d.ts.map +0 -1
- package/dist/widget/components/ChainFilterDropdown.js +0 -124
- package/dist/widget/components/ChainImage.d.ts +0 -8
- package/dist/widget/components/ChainImage.d.ts.map +0 -1
- package/dist/widget/components/ChainImage.js +0 -24
- package/dist/widget/components/ChainList.d.ts +0 -9
- package/dist/widget/components/ChainList.d.ts.map +0 -1
- package/dist/widget/components/ChainList.js +0 -177
- package/dist/widget/components/ClassicSwap.d.ts +0 -10
- package/dist/widget/components/ClassicSwap.d.ts.map +0 -1
- package/dist/widget/components/ClassicSwap.js +0 -786
- package/dist/widget/components/ConfigDisplay.d.ts +0 -7
- package/dist/widget/components/ConfigDisplay.d.ts.map +0 -1
- package/dist/widget/components/ConfigDisplay.js +0 -122
- package/dist/widget/components/ConnectWallet.d.ts +0 -12
- package/dist/widget/components/ConnectWallet.d.ts.map +0 -1
- package/dist/widget/components/ConnectWallet.js +0 -215
- package/dist/widget/components/ConnectedWallets.d.ts +0 -19
- package/dist/widget/components/ConnectedWallets.d.ts.map +0 -1
- package/dist/widget/components/ConnectedWallets.js +0 -149
- package/dist/widget/components/CopyButton.d.ts +0 -18
- package/dist/widget/components/CopyButton.d.ts.map +0 -1
- package/dist/widget/components/CopyButton.js +0 -51
- package/dist/widget/components/CountryFilterDropdown.d.ts +0 -15
- package/dist/widget/components/CountryFilterDropdown.d.ts.map +0 -1
- package/dist/widget/components/CountryFilterDropdown.js +0 -93
- package/dist/widget/components/DebugMenu.d.ts +0 -7
- package/dist/widget/components/DebugMenu.d.ts.map +0 -1
- package/dist/widget/components/DebugMenu.js +0 -33
- package/dist/widget/components/DebugScreensList.d.ts +0 -7
- package/dist/widget/components/DebugScreensList.d.ts.map +0 -1
- package/dist/widget/components/DebugScreensList.js +0 -56
- package/dist/widget/components/DebugToast.d.ts +0 -3
- package/dist/widget/components/DebugToast.d.ts.map +0 -1
- package/dist/widget/components/DebugToast.js +0 -46
- package/dist/widget/components/DepositTracker.d.ts +0 -13
- package/dist/widget/components/DepositTracker.d.ts.map +0 -1
- package/dist/widget/components/DepositTracker.js +0 -194
- package/dist/widget/components/DirectTransfer.d.ts +0 -15
- package/dist/widget/components/DirectTransfer.d.ts.map +0 -1
- package/dist/widget/components/DirectTransfer.js +0 -218
- package/dist/widget/components/Disconnect.d.ts +0 -8
- package/dist/widget/components/Disconnect.d.ts.map +0 -1
- package/dist/widget/components/Disconnect.js +0 -37
- package/dist/widget/components/DynamicInputStyles.d.ts +0 -22
- package/dist/widget/components/DynamicInputStyles.d.ts.map +0 -1
- package/dist/widget/components/DynamicInputStyles.js +0 -27
- package/dist/widget/components/DynamicSizeInputField.d.ts +0 -17
- package/dist/widget/components/DynamicSizeInputField.d.ts.map +0 -1
- package/dist/widget/components/DynamicSizeInputField.js +0 -125
- package/dist/widget/components/ENSAvatar.d.ts +0 -12
- package/dist/widget/components/ENSAvatar.d.ts.map +0 -1
- package/dist/widget/components/ENSAvatar.js +0 -22
- package/dist/widget/components/Earn.d.ts +0 -33
- package/dist/widget/components/Earn.d.ts.map +0 -1
- package/dist/widget/components/Earn.js +0 -79
- package/dist/widget/components/EarnMarkets.d.ts +0 -9
- package/dist/widget/components/EarnMarkets.d.ts.map +0 -1
- package/dist/widget/components/EarnMarkets.js +0 -313
- package/dist/widget/components/EarnPools.d.ts +0 -8
- package/dist/widget/components/EarnPools.d.ts.map +0 -1
- package/dist/widget/components/EarnPools.js +0 -256
- package/dist/widget/components/EarnPoolsFilters.d.ts +0 -18
- package/dist/widget/components/EarnPoolsFilters.d.ts.map +0 -1
- package/dist/widget/components/EarnPoolsFilters.js +0 -106
- package/dist/widget/components/EarnWithdraw.d.ts +0 -21
- package/dist/widget/components/EarnWithdraw.d.ts.map +0 -1
- package/dist/widget/components/EarnWithdraw.js +0 -477
- package/dist/widget/components/ErrorAnimationIcon.d.ts +0 -2
- package/dist/widget/components/ErrorAnimationIcon.d.ts.map +0 -1
- package/dist/widget/components/ErrorAnimationIcon.js +0 -148
- package/dist/widget/components/ErrorDisplay.d.ts +0 -9
- package/dist/widget/components/ErrorDisplay.d.ts.map +0 -1
- package/dist/widget/components/ErrorDisplay.js +0 -104
- package/dist/widget/components/ExecutingIntentsBadge.d.ts +0 -12
- package/dist/widget/components/ExecutingIntentsBadge.d.ts.map +0 -1
- package/dist/widget/components/ExecutionStatusBadge.d.ts +0 -5
- package/dist/widget/components/ExecutionStatusBadge.d.ts.map +0 -1
- package/dist/widget/components/ExecutionStatusBadge.js +0 -45
- package/dist/widget/components/FeeOption.d.ts +0 -20
- package/dist/widget/components/FeeOption.d.ts.map +0 -1
- package/dist/widget/components/FeeOption.js +0 -71
- package/dist/widget/components/FeeOptions.d.ts +0 -20
- package/dist/widget/components/FeeOptions.d.ts.map +0 -1
- package/dist/widget/components/FeeOptions.js +0 -99
- package/dist/widget/components/FiatSelector.d.ts +0 -18
- package/dist/widget/components/FiatSelector.d.ts.map +0 -1
- package/dist/widget/components/FiatSelector.js +0 -171
- package/dist/widget/components/FiatSelectorButton.d.ts +0 -11
- package/dist/widget/components/FiatSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/FiatSelectorButton.js +0 -41
- package/dist/widget/components/Footer.d.ts +0 -7
- package/dist/widget/components/Footer.d.ts.map +0 -1
- package/dist/widget/components/Footer.js +0 -71
- package/dist/widget/components/Fund.d.ts +0 -19
- package/dist/widget/components/Fund.d.ts.map +0 -1
- package/dist/widget/components/Fund.js +0 -16
- package/dist/widget/components/Fund.types.d.ts +0 -22
- package/dist/widget/components/Fund.types.d.ts.map +0 -1
- package/dist/widget/components/FundExactInput.d.ts +0 -5
- package/dist/widget/components/FundExactInput.d.ts.map +0 -1
- package/dist/widget/components/FundExactInput.js +0 -1116
- package/dist/widget/components/FundExactOutput.d.ts +0 -5
- package/dist/widget/components/FundExactOutput.d.ts.map +0 -1
- package/dist/widget/components/FundExactOutput.js +0 -498
- package/dist/widget/components/FundMethods.d.ts +0 -15
- package/dist/widget/components/FundMethods.d.ts.map +0 -1
- package/dist/widget/components/FundMethods.js +0 -219
- package/dist/widget/components/FundWalletSelection.d.ts +0 -3
- package/dist/widget/components/FundWalletSelection.d.ts.map +0 -1
- package/dist/widget/components/FundWalletSelection.js +0 -38
- package/dist/widget/components/FundingMethodSelectorButton.d.ts +0 -11
- package/dist/widget/components/FundingMethodSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/FundingMethodSelectorButton.js +0 -57
- package/dist/widget/components/GreenCheckAnimation.d.ts +0 -2
- package/dist/widget/components/GreenCheckAnimation.d.ts.map +0 -1
- package/dist/widget/components/GreenCheckAnimation.js +0 -135
- package/dist/widget/components/HighPriceImpactBlock.d.ts +0 -7
- package/dist/widget/components/HighPriceImpactBlock.d.ts.map +0 -1
- package/dist/widget/components/HighPriceImpactBlock.js +0 -33
- package/dist/widget/components/HookModalContent.d.ts +0 -8
- package/dist/widget/components/HookModalContent.d.ts.map +0 -1
- package/dist/widget/components/HookModalContent.js +0 -237
- package/dist/widget/components/Identicon.d.ts +0 -9
- package/dist/widget/components/Identicon.d.ts.map +0 -1
- package/dist/widget/components/Identicon.js +0 -176
- package/dist/widget/components/LoadingSpinner.d.ts +0 -5
- package/dist/widget/components/LoadingSpinner.d.ts.map +0 -1
- package/dist/widget/components/LoadingSpinner.js +0 -5
- package/dist/widget/components/MeldForm.d.ts +0 -24
- package/dist/widget/components/MeldForm.d.ts.map +0 -1
- package/dist/widget/components/MeldForm.js +0 -447
- package/dist/widget/components/MeldHistory.d.ts +0 -13
- package/dist/widget/components/MeldHistory.d.ts.map +0 -1
- package/dist/widget/components/MeldHistory.js +0 -307
- package/dist/widget/components/MeldStepsFlow.d.ts +0 -6
- package/dist/widget/components/MeldStepsFlow.d.ts.map +0 -1
- package/dist/widget/components/MeldStepsFlow.js +0 -785
- package/dist/widget/components/MeldTransactionStatus.d.ts +0 -20
- package/dist/widget/components/MeldTransactionStatus.d.ts.map +0 -1
- package/dist/widget/components/MeldTransactionStatus.js +0 -157
- package/dist/widget/components/MeshExchangeAccountHeader.d.ts +0 -9
- package/dist/widget/components/MeshExchangeAccountHeader.d.ts.map +0 -1
- package/dist/widget/components/MeshExchangeAccountHeader.js +0 -30
- package/dist/widget/components/Modal.d.ts +0 -9
- package/dist/widget/components/Modal.d.ts.map +0 -1
- package/dist/widget/components/Modal.js +0 -65
- package/dist/widget/components/OFTProgressBar.d.ts +0 -16
- package/dist/widget/components/OFTProgressBar.d.ts.map +0 -1
- package/dist/widget/components/OFTProgressBar.js +0 -49
- package/dist/widget/components/OnRampProviderSelector.d.ts +0 -13
- package/dist/widget/components/OnRampProviderSelector.d.ts.map +0 -1
- package/dist/widget/components/OnRampProviderSelector.js +0 -144
- package/dist/widget/components/OnrampErrorScreen.d.ts +0 -15
- package/dist/widget/components/OnrampErrorScreen.d.ts.map +0 -1
- package/dist/widget/components/OnrampErrorScreen.js +0 -102
- package/dist/widget/components/OnrampHistoryRow.d.ts +0 -13
- package/dist/widget/components/OnrampHistoryRow.d.ts.map +0 -1
- package/dist/widget/components/OnrampHistoryRow.js +0 -249
- package/dist/widget/components/OnrampPaymentMethods.d.ts +0 -7
- package/dist/widget/components/OnrampPaymentMethods.d.ts.map +0 -1
- package/dist/widget/components/OnrampPaymentMethods.js +0 -54
- package/dist/widget/components/OnrampProviderConfirmation.d.ts +0 -30
- package/dist/widget/components/OnrampProviderConfirmation.d.ts.map +0 -1
- package/dist/widget/components/OnrampProviderConfirmation.js +0 -705
- package/dist/widget/components/OriginSelectionAmount.d.ts +0 -12
- package/dist/widget/components/OriginSelectionAmount.d.ts.map +0 -1
- package/dist/widget/components/OriginSelectionAmount.js +0 -104
- package/dist/widget/components/OriginTransferInformation.d.ts +0 -10
- package/dist/widget/components/OriginTransferInformation.d.ts.map +0 -1
- package/dist/widget/components/OriginTransferInformation.js +0 -56
- package/dist/widget/components/Pay.d.ts +0 -7
- package/dist/widget/components/Pay.d.ts.map +0 -1
- package/dist/widget/components/Pay.js +0 -649
- package/dist/widget/components/PaymentMethods.d.ts +0 -10
- package/dist/widget/components/PaymentMethods.d.ts.map +0 -1
- package/dist/widget/components/PaymentMethods.js +0 -118
- package/dist/widget/components/PercentageMaxButtons.d.ts +0 -14
- package/dist/widget/components/PercentageMaxButtons.d.ts.map +0 -1
- package/dist/widget/components/PercentageMaxButtons.js +0 -62
- package/dist/widget/components/PoolDeposit.d.ts +0 -32
- package/dist/widget/components/PoolDeposit.d.ts.map +0 -1
- package/dist/widget/components/PoolDeposit.js +0 -426
- package/dist/widget/components/PriceImpactWarning.d.ts +0 -11
- package/dist/widget/components/PriceImpactWarning.d.ts.map +0 -1
- package/dist/widget/components/PriceImpactWarning.js +0 -58
- package/dist/widget/components/PulsatingButton.d.ts +0 -9
- package/dist/widget/components/PulsatingButton.d.ts.map +0 -1
- package/dist/widget/components/PulsatingButton.js +0 -48
- package/dist/widget/components/QRCodeOptions.d.ts +0 -9
- package/dist/widget/components/QRCodeOptions.d.ts.map +0 -1
- package/dist/widget/components/QRCodeOptions.js +0 -57
- package/dist/widget/components/QRCodeWalletSelect.d.ts +0 -13
- package/dist/widget/components/QRCodeWalletSelect.d.ts.map +0 -1
- package/dist/widget/components/QRCodeWalletSelect.js +0 -45
- package/dist/widget/components/QrCode.d.ts +0 -10
- package/dist/widget/components/QrCode.d.ts.map +0 -1
- package/dist/widget/components/QrCode.js +0 -69
- package/dist/widget/components/QuoteDetails.d.ts +0 -25
- package/dist/widget/components/QuoteDetails.d.ts.map +0 -1
- package/dist/widget/components/QuoteDetails.js +0 -728
- package/dist/widget/components/QuoteInputErrorBlock.d.ts +0 -7
- package/dist/widget/components/QuoteInputErrorBlock.d.ts.map +0 -1
- package/dist/widget/components/QuoteInputErrorBlock.js +0 -22
- package/dist/widget/components/Receipt.d.ts +0 -18
- package/dist/widget/components/Receipt.d.ts.map +0 -1
- package/dist/widget/components/Receipt.js +0 -443
- package/dist/widget/components/ReceiptRecoverableFunds.d.ts +0 -25
- package/dist/widget/components/ReceiptRecoverableFunds.d.ts.map +0 -1
- package/dist/widget/components/ReceiptRecoverableFunds.js +0 -75
- package/dist/widget/components/RecentChains.d.ts +0 -9
- package/dist/widget/components/RecentChains.d.ts.map +0 -1
- package/dist/widget/components/RecentChains.js +0 -28
- package/dist/widget/components/RecentTokens.d.ts +0 -10
- package/dist/widget/components/RecentTokens.d.ts.map +0 -1
- package/dist/widget/components/RecentTokens.js +0 -37
- package/dist/widget/components/RecipientSelectorButton.d.ts +0 -6
- package/dist/widget/components/RecipientSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/RecipientSelectorButton.js +0 -36
- package/dist/widget/components/Recipients.d.ts +0 -9
- package/dist/widget/components/Recipients.d.ts.map +0 -1
- package/dist/widget/components/Recipients.js +0 -208
- package/dist/widget/components/RefundWarning.d.ts +0 -11
- package/dist/widget/components/RefundWarning.d.ts.map +0 -1
- package/dist/widget/components/RefundWarning.js +0 -33
- package/dist/widget/components/RequiredPropsError.d.ts +0 -8
- package/dist/widget/components/RequiredPropsError.d.ts.map +0 -1
- package/dist/widget/components/RequiredPropsError.js +0 -14
- package/dist/widget/components/ScreenHeader.d.ts +0 -13
- package/dist/widget/components/ScreenHeader.d.ts.map +0 -1
- package/dist/widget/components/ScreenHeader.js +0 -64
- package/dist/widget/components/SearchInputField.d.ts +0 -14
- package/dist/widget/components/SearchInputField.d.ts.map +0 -1
- package/dist/widget/components/SearchInputField.js +0 -51
- package/dist/widget/components/SessionTimeoutScreen.d.ts +0 -12
- package/dist/widget/components/SessionTimeoutScreen.d.ts.map +0 -1
- package/dist/widget/components/SessionTimeoutScreen.js +0 -64
- package/dist/widget/components/ShadowPortal.d.ts +0 -6
- package/dist/widget/components/ShadowPortal.d.ts.map +0 -1
- package/dist/widget/components/ShadowPortal.js +0 -52
- package/dist/widget/components/ShadowRootContext.d.ts +0 -8
- package/dist/widget/components/ShadowRootContext.d.ts.map +0 -1
- package/dist/widget/components/ShadowRootContext.js +0 -12
- package/dist/widget/components/SimpleRecipientInputScreen.d.ts +0 -13
- package/dist/widget/components/SimpleRecipientInputScreen.d.ts.map +0 -1
- package/dist/widget/components/SimpleRecipientInputScreen.js +0 -48
- package/dist/widget/components/SlippageToleranceSettings.d.ts +0 -9
- package/dist/widget/components/SlippageToleranceSettings.d.ts.map +0 -1
- package/dist/widget/components/SlippageToleranceSettings.js +0 -159
- package/dist/widget/components/Swap.d.ts +0 -43
- package/dist/widget/components/Swap.d.ts.map +0 -1
- package/dist/widget/components/Swap.js +0 -6
- package/dist/widget/components/SwapDisplay.d.ts +0 -9
- package/dist/widget/components/SwapDisplay.d.ts.map +0 -1
- package/dist/widget/components/SwapDisplay.js +0 -72
- package/dist/widget/components/ThemeProvider.d.ts +0 -16
- package/dist/widget/components/ThemeProvider.d.ts.map +0 -1
- package/dist/widget/components/ThemeProvider.js +0 -52
- package/dist/widget/components/ThemeSyncer.d.ts +0 -6
- package/dist/widget/components/ThemeSyncer.d.ts.map +0 -1
- package/dist/widget/components/ThemeSyncer.js +0 -25
- package/dist/widget/components/Toast.d.ts +0 -24
- package/dist/widget/components/Toast.d.ts.map +0 -1
- package/dist/widget/components/Toast.js +0 -206
- package/dist/widget/components/TokenDisplayNonSelectable.d.ts +0 -11
- package/dist/widget/components/TokenDisplayNonSelectable.d.ts.map +0 -1
- package/dist/widget/components/TokenDisplayNonSelectable.js +0 -30
- package/dist/widget/components/TokenImage.d.ts +0 -11
- package/dist/widget/components/TokenImage.d.ts.map +0 -1
- package/dist/widget/components/TokenImage.js +0 -96
- package/dist/widget/components/TokenList.d.ts +0 -20
- package/dist/widget/components/TokenList.d.ts.map +0 -1
- package/dist/widget/components/TokenList.js +0 -45
- package/dist/widget/components/TokenSelector.d.ts +0 -32
- package/dist/widget/components/TokenSelector.d.ts.map +0 -1
- package/dist/widget/components/TokenSelector.js +0 -479
- package/dist/widget/components/TokenSelectorButton.d.ts +0 -17
- package/dist/widget/components/TokenSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/TokenSelectorButton.js +0 -64
- package/dist/widget/components/TokenSkeleton.d.ts +0 -12
- package/dist/widget/components/TokenSkeleton.d.ts.map +0 -1
- package/dist/widget/components/TokenSkeleton.js +0 -36
- package/dist/widget/components/Tooltip.d.ts +0 -14
- package/dist/widget/components/Tooltip.d.ts.map +0 -1
- package/dist/widget/components/Tooltip.js +0 -38
- package/dist/widget/components/TrailsHookModal.d.ts +0 -10
- package/dist/widget/components/TrailsHookModal.d.ts.map +0 -1
- package/dist/widget/components/TrailsHookModal.js +0 -55
- package/dist/widget/components/TransactionDetails.d.ts +0 -10
- package/dist/widget/components/TransactionDetails.d.ts.map +0 -1
- package/dist/widget/components/TransactionDetails.js +0 -492
- package/dist/widget/components/TransactionHistoryItem.d.ts +0 -23
- package/dist/widget/components/TransactionHistoryItem.d.ts.map +0 -1
- package/dist/widget/components/TransactionHistoryItem.js +0 -547
- package/dist/widget/components/TransferPendingVertical.d.ts +0 -16
- package/dist/widget/components/TransferPendingVertical.d.ts.map +0 -1
- package/dist/widget/components/TransferPendingVertical.js +0 -356
- package/dist/widget/components/TruncatedTransactionHash.d.ts +0 -12
- package/dist/widget/components/TruncatedTransactionHash.d.ts.map +0 -1
- package/dist/widget/components/TruncatedTransactionHash.js +0 -36
- package/dist/widget/components/UserPreferences.d.ts +0 -7
- package/dist/widget/components/UserPreferences.d.ts.map +0 -1
- package/dist/widget/components/UserPreferences.js +0 -282
- package/dist/widget/components/WaasFeeOptions.d.ts +0 -12
- package/dist/widget/components/WaasFeeOptions.d.ts.map +0 -1
- package/dist/widget/components/WaasFeeOptions.js +0 -349
- package/dist/widget/components/WalletAccountHeader.d.ts +0 -8
- package/dist/widget/components/WalletAccountHeader.d.ts.map +0 -1
- package/dist/widget/components/WalletAccountHeader.js +0 -45
- package/dist/widget/components/WalletConfirmation.d.ts +0 -15
- package/dist/widget/components/WalletConfirmation.d.ts.map +0 -1
- package/dist/widget/components/WalletConfirmation.js +0 -145
- package/dist/widget/components/WalletConnect.d.ts +0 -11
- package/dist/widget/components/WalletConnect.d.ts.map +0 -1
- package/dist/widget/components/WalletConnect.js +0 -164
- package/dist/widget/components/WalletConnectionPending.d.ts +0 -12
- package/dist/widget/components/WalletConnectionPending.d.ts.map +0 -1
- package/dist/widget/components/WalletConnectionPending.js +0 -124
- package/dist/widget/components/WalletList.d.ts +0 -16
- package/dist/widget/components/WalletList.d.ts.map +0 -1
- package/dist/widget/components/WalletList.js +0 -88
- package/dist/widget/components/WidgetProviders.d.ts +0 -16
- package/dist/widget/components/WidgetProviders.d.ts.map +0 -1
- package/dist/widget/components/WidgetProviders.js +0 -43
- package/dist/widget/components/Withdraw.d.ts +0 -12
- package/dist/widget/components/Withdraw.d.ts.map +0 -1
- package/dist/widget/components/Withdraw.js +0 -551
- package/dist/widget/components/YellowWarningAnimation.d.ts +0 -2
- package/dist/widget/components/YellowWarningAnimation.d.ts.map +0 -1
- package/dist/widget/components/YellowWarningAnimation.js +0 -167
- package/dist/widget/components/earnMarketUtils.d.ts +0 -11
- package/dist/widget/components/earnMarketUtils.d.ts.map +0 -1
- package/dist/widget/components/earnMarketUtils.js +0 -48
- package/dist/widget/components/earnNetworks.d.ts +0 -6
- package/dist/widget/components/earnNetworks.d.ts.map +0 -1
- package/dist/widget/components/earnNetworks.js +0 -33
- package/dist/widget/index.d.ts.map +0 -1
- package/dist/widget/modes/EarnWidget.d.ts +0 -90
- package/dist/widget/modes/EarnWidget.d.ts.map +0 -1
- package/dist/widget/modes/EarnWidget.js +0 -41
- package/dist/widget/modes/FundWidget.d.ts +0 -110
- package/dist/widget/modes/FundWidget.d.ts.map +0 -1
- package/dist/widget/modes/FundWidget.js +0 -48
- package/dist/widget/modes/PayWidget.d.ts +0 -80
- package/dist/widget/modes/PayWidget.d.ts.map +0 -1
- package/dist/widget/modes/PayWidget.js +0 -40
- package/dist/widget/modes/SwapWidget.d.ts +0 -76
- package/dist/widget/modes/SwapWidget.d.ts.map +0 -1
- package/dist/widget/modes/SwapWidget.js +0 -41
- package/dist/widget/modes/WithdrawWidget.d.ts +0 -87
- package/dist/widget/modes/WithdrawWidget.d.ts.map +0 -1
- package/dist/widget/modes/WithdrawWidget.js +0 -38
- package/dist/widget/props.d.ts +0 -255
- package/dist/widget/props.d.ts.map +0 -1
- package/dist/widget/props.js +0 -14
- package/dist/widget/providers/TrailsModalProvider.d.ts +0 -78
- package/dist/widget/providers/TrailsModalProvider.d.ts.map +0 -1
- package/dist/widget/providers/TrailsModalProvider.js +0 -57
- package/dist/widget/providers/TrailsProvider.d.ts +0 -100
- package/dist/widget/providers/TrailsProvider.d.ts.map +0 -1
- package/dist/widget/providers/TrailsProvider.js +0 -101
- package/dist/widget/providers/UserActivityProvider.d.ts +0 -18
- package/dist/widget/providers/UserActivityProvider.d.ts.map +0 -1
- package/dist/widget/providers/UserActivityProvider.js +0 -38
- package/dist/widget/providers/WalletContext.d.ts +0 -10
- package/dist/widget/providers/WalletContext.d.ts.map +0 -1
- package/dist/widget/providers/WalletContext.js +0 -23
- package/dist/widget/providers/WidgetProviderTree.d.ts +0 -24
- package/dist/widget/providers/WidgetProviderTree.d.ts.map +0 -1
- package/dist/widget/providers/WidgetProviderTree.js +0 -35
- package/dist/widget/providers/adapterConfig.d.ts +0 -13
- package/dist/widget/providers/adapterConfig.d.ts.map +0 -1
- package/dist/widget/providers/adapterConfig.js +0 -97
- package/dist/widget/providers/sequenceSupport.d.ts +0 -42
- package/dist/widget/providers/sequenceSupport.d.ts.map +0 -1
- package/dist/widget/providers/walletRuntimeResolution.d.ts +0 -10
- package/dist/widget/providers/walletRuntimeResolution.d.ts.map +0 -1
- package/dist/widget/providers/walletRuntimeResolution.js +0 -14
- package/dist/widget/shared/destinationDefaultToken.d.ts +0 -15
- package/dist/widget/shared/destinationDefaultToken.d.ts.map +0 -1
- package/dist/widget/shared/destinationDefaultToken.js +0 -18
- package/dist/widget/shared/destinationSupport.d.ts +0 -40
- package/dist/widget/shared/destinationSupport.d.ts.map +0 -1
- package/dist/widget/shared/destinationSupport.js +0 -215
- package/dist/widget/shared/mapSharedProps.d.ts +0 -9
- package/dist/widget/shared/mapSharedProps.d.ts.map +0 -1
- package/dist/widget/shared/mapSharedProps.js +0 -22
- package/dist/widget/shared/methodMap.d.ts +0 -18
- package/dist/widget/shared/methodMap.d.ts.map +0 -1
- package/dist/widget/shared/methodMap.js +0 -25
- package/dist/widget/shared/resolution.d.ts +0 -8
- package/dist/widget/shared/resolution.d.ts.map +0 -1
- package/dist/widget/shared/resolution.js +0 -63
- package/dist/widget/shared/resolvePaymentSource.d.ts +0 -37
- package/dist/widget/shared/resolvePaymentSource.d.ts.map +0 -1
- package/dist/widget/shared/resolvePaymentSource.js +0 -19
- package/dist/widget/shared/types.d.ts +0 -142
- package/dist/widget/shared/types.d.ts.map +0 -1
- package/dist/widget/styles.gen.d.ts +0 -2
- package/dist/widget/styles.gen.d.ts.map +0 -1
- package/dist/widget/styles.gen.js +0 -29
- package/dist/widget/types/analytics.d.ts +0 -22
- package/dist/widget/types/analytics.d.ts.map +0 -1
- package/dist/widget/types/commonProps.d.ts +0 -48
- package/dist/widget/types/commonProps.d.ts.map +0 -1
- package/dist/widget/utils/countryUtils.d.ts +0 -37
- package/dist/widget/utils/countryUtils.d.ts.map +0 -1
- package/dist/widget/utils/countryUtils.js +0 -14
- package/dist/widget/utils/forexRateStore.d.ts +0 -25
- package/dist/widget/utils/forexRateStore.d.ts.map +0 -1
- package/dist/widget/utils/forexRateStore.js +0 -59
- package/dist/widget/utils/fundMethodSwitchState.d.ts +0 -14
- package/dist/widget/utils/fundMethodSwitchState.d.ts.map +0 -1
- package/dist/widget/utils/fundMethodSwitchState.js +0 -6
- package/dist/widget/utils/historyFilters.d.ts +0 -13
- package/dist/widget/utils/historyFilters.d.ts.map +0 -1
- package/dist/widget/utils/historyFilters.js +0 -108
- package/dist/widget/utils/localeStore.d.ts +0 -19
- package/dist/widget/utils/localeStore.d.ts.map +0 -1
- package/dist/widget/utils/localeStore.js +0 -39
- package/dist/widget/utils/meldProviderUtils.d.ts +0 -6
- package/dist/widget/utils/meldProviderUtils.d.ts.map +0 -1
- package/dist/widget/utils/meldProviderUtils.js +0 -9
- package/dist/widget/utils/meshSupportedTokens.d.ts +0 -4
- package/dist/widget/utils/meshSupportedTokens.d.ts.map +0 -1
- package/dist/widget/utils/meshSupportedTokens.js +0 -12
- package/dist/widget/utils/onrampConfig.d.ts +0 -11
- package/dist/widget/utils/onrampConfig.d.ts.map +0 -1
- package/dist/widget/utils/onrampConfig.js +0 -6
- package/dist/widget/utils/statusLabel.d.ts +0 -2
- package/dist/widget/utils/statusLabel.d.ts.map +0 -1
- package/dist/widget/utils/statusLabel.js +0 -6
- package/dist/widget/utils/tokens.d.ts +0 -60
- package/dist/widget/utils/tokens.d.ts.map +0 -1
- package/dist/widget/utils/tokens.js +0 -16
- package/dist/widget/utils/trailsOnrampConfig.d.ts +0 -23
- package/dist/widget/utils/trailsOnrampConfig.d.ts.map +0 -1
- package/dist/widget/utils/trailsOnrampConfig.js +0 -7
- package/dist/widget/utils/transactionFailure.d.ts +0 -20
- package/dist/widget/utils/transactionFailure.d.ts.map +0 -1
- package/dist/widget/utils/transactionFailure.js +0 -12
- package/dist/widget/utils/viewManagerGuards.d.ts +0 -5
- package/dist/widget/utils/viewManagerGuards.d.ts.map +0 -1
- package/dist/widget/utils/viewManagerGuards.js +0 -24
- package/dist/widget/utils/walletConnectRedirect.d.ts +0 -19
- package/dist/widget/utils/walletConnectRedirect.d.ts.map +0 -1
- package/dist/widget/utils/walletConnectRedirect.js +0 -21
- package/dist/widget/utils/windowUtils.d.ts +0 -13
- package/dist/widget/utils/windowUtils.d.ts.map +0 -1
- package/dist/widget/utils/windowUtils.js +0 -84
- package/dist/widget/widget.d.ts +0 -16
- package/dist/widget/widget.d.ts.map +0 -1
- package/dist/widget/widget.js +0 -1541
- package/dist/widgetFlowHooks.d.ts +0 -12
- package/dist/widgetFlowHooks.d.ts.map +0 -1
- package/dist/widgetFlowHooks.js +0 -18
package/dist/hooks/useQuote.js
DELETED
|
@@ -1,590 +0,0 @@
|
|
|
1
|
-
import { getErrorCode as Bt, getFullErrorMessage as Wt, getIsApiError as Ht, getIsBalanceTooLowError as Vt, getIsHighPriceImpactError as zt, getIsInsufficientLiquidityError as Xt, getIsNetworkError as jt, getIsNoAvailableQuoteError as Jt, getIsOnrampAmountTooLowError as Yt, getIsQuoteInputError as Zt, getIsQuoteTokenError as en, getIsRateLimitedError as tn, getIsUserRejectionError as nn, getPrettifiedErrorMessage as on, normalizeTrailsError as sn, remapTrailsError as rn } from "../error.js";
|
|
2
|
-
import { logger as r } from "../logger/index.js";
|
|
3
|
-
import { HOUR_MS as Ue } from "../utils/time.js";
|
|
4
|
-
import { getChainInfo as Ze } from "../chains.js";
|
|
5
|
-
import { getExplorerUrl as et } from "../explorer.js";
|
|
6
|
-
import { abortControllerRegistry as be } from "../abortController.js";
|
|
7
|
-
import { getIsContract as ve } from "../contractUtils.js";
|
|
8
|
-
import { addressEqual as tt } from "../utils/address.js";
|
|
9
|
-
import { TRAILS_CONTRACTS as an } from "../contractConstants.js";
|
|
10
|
-
import { isNetworkError as ln } from "../query/helpers.js";
|
|
11
|
-
import { useSupportedTokens as dn } from "../query/token.hooks.js";
|
|
12
|
-
import { resolveTokenInput as nt } from "../utils/tokenResolution.js";
|
|
13
|
-
import { isValidQuoteAmount as ot, normalizeAmountRaw as it } from "../utils/validation.js";
|
|
14
|
-
import { getTokenPrice as cn } from "../query/price.queries.js";
|
|
15
|
-
import { TradeType as Z } from "../transactionIntent/types.js";
|
|
16
|
-
import { balanceQueries as un } from "../query/balance.queries.js";
|
|
17
|
-
import { useIndexerGatewayClient as mn } from "../indexerClient.js";
|
|
18
|
-
import { QuoteError as f } from "../quoteError.js";
|
|
19
|
-
import { findSupportedToken as st } from "../widget/utils/tokens.js";
|
|
20
|
-
import { usePublicClient as rt } from "../query/chains.hooks.js";
|
|
21
|
-
import { useCommitIntent as pn, useExecuteIntent as fn } from "../mutations.js";
|
|
22
|
-
import { useResolveActions as gn } from "../actions/hooks/useResolveActions.js";
|
|
23
|
-
import { encodeDestinationCalls as yn } from "../actions/destinationCalls.js";
|
|
24
|
-
import { prepareSend as hn } from "../prepareSend.js";
|
|
25
|
-
import { useTrails as wn } from "../widget/providers/TrailsProvider.js";
|
|
26
|
-
import { useTrailsClient as An } from "../trailsClient.js";
|
|
27
|
-
import { resolveChainId as at } from "../widget/shared/resolution.js";
|
|
28
|
-
import { erc20Abi as Cn, isAddress as R, parseUnits as lt, zeroAddress as ee } from "viem";
|
|
29
|
-
import { etherlink as te } from "viem/chains";
|
|
30
|
-
import { useEffect as ne, useMemo as W, useRef as De, useState as Tn } from "react";
|
|
31
|
-
import { useQuery as oe, useQueryClient as kn } from "@tanstack/react-query";
|
|
32
|
-
import { useOptionalWalletCapabilities as Un, useTrailsWalletClient as bn, useWalletChainId as vn, useWalletPublicClient as Dn } from "@0xtrails/wallet";
|
|
33
|
-
function Ie(a) {
|
|
34
|
-
if (a instanceof f) return a;
|
|
35
|
-
const l = Wt(a);
|
|
36
|
-
return Bt(a) === "quote.timeout" ? new f("TIMEOUT", l) : nn(a) ? new f("USER_REJECTED", l) : Vt(a) ? new f("INSUFFICIENT_BALANCE", l) : Xt(a) ? new f("INSUFFICIENT_LIQUIDITY", l) : zt(a) ? new f("HIGH_PRICE_IMPACT", l) : tn(a) ? new f("RATE_LIMITED", l) : en(a) ? new f("INVALID_TOKEN", l) : Zt(a) ? new f("INVALID_INPUT", l) : Jt(a) ? new f("NO_QUOTE", l) : Yt(a) ? new f("ONRAMP_AMOUNT_TOO_LOW", l) : jt(a) ? new f("NETWORK_ERROR", l) : Ht(a) ? new f("API_ERROR", l) : /no route available/i.test(l) ? new f("NO_ROUTE", l) : new f("UNKNOWN", l);
|
|
37
|
-
}
|
|
38
|
-
var Ee = {
|
|
39
|
-
all: ["trails"],
|
|
40
|
-
quotes: () => [...Ee.all, "quote"],
|
|
41
|
-
quote: (a) => [...Ee.quotes(), a]
|
|
42
|
-
};
|
|
43
|
-
function In({ walletClientAccountAddress: a, walletAddress: l }) {
|
|
44
|
-
return a ?? l ?? null;
|
|
45
|
-
}
|
|
46
|
-
function ro({ walletClient: a, walletAddress: l, from: w, to: s, actions: Fe, slippageTolerance: Pe, onStatusUpdate: dt, checkoutOnHandlers: ct, swapProvider: ie, bridgeProvider: se, swapProviderFallback: Re, bridgeProviderFallback: Se, selectedFeeOption: Oe, nodeGatewayEnv: H, abortSignal: re, apiKey: ut, isSmartWallet: Qe, fundMethod: U, onramp: mt, mode: pt, intentProtocolVersion: ae }) {
|
|
47
|
-
const le = Un(), ft = le?.session.session.activeAccount?.namespace ?? le?.namespace, gt = le?.session.session.activeConnection?.walletId, Le = vn(), qe = Dn(), q = bn(a), C = In({
|
|
48
|
-
walletClientAccountAddress: q?.account?.address,
|
|
49
|
-
walletAddress: l
|
|
50
|
-
});
|
|
51
|
-
if (w?.amount !== void 0 && w?.amountRaw !== void 0) throw new Error('[trails-sdk] [useQuote] Cannot specify both `from.amount` and `from.amountRaw`. Use `amount` for human-readable decimals (e.g. "1.5") or `amountRaw` for raw wei (e.g. 1500000000000000000n).');
|
|
52
|
-
if (s?.amount !== void 0 && s?.amountRaw !== void 0) throw new Error('[trails-sdk] [useQuote] Cannot specify both `to.amount` and `to.amountRaw`. Use `amount` for human-readable decimals (e.g. "1.5") or `amountRaw` for raw wei (e.g. 1500000000000000000n).');
|
|
53
|
-
if ((w?.amount !== void 0 || w?.amountRaw !== void 0) && (s?.amount !== void 0 || s?.amountRaw !== void 0)) throw new Error("[trails-sdk] [useQuote] Cannot specify amount on both from and to. Place amount/amountRaw on from for EXACT_INPUT or to for EXACT_OUTPUT.");
|
|
54
|
-
const N = !!Fe?.length, Ne = !!s.calls?.flat().length, de = !!(s.calldata && s.calldata !== "0x");
|
|
55
|
-
if (Number(N) + Number(Ne) + Number(de) > 1) throw new Error("[trails-sdk] [useQuote] Only one of `actions`, `to.calls`, or `to.calldata` may be specified. Prefer `actions` for composable DeFi actions or `to.calls` for raw calls. `to.calldata` is deprecated.");
|
|
56
|
-
if ((N || Ne) && s?.recipient) throw new Error("[trails-sdk] [useQuote] `to.recipient` is not supported when using `actions` or `to.calls`. Use per-action recipients instead; residual balances always sweep to the owner wallet.");
|
|
57
|
-
const yt = s?.recipient ?? C, xe = w?.amountRaw !== void 0 ? it(w.amountRaw, "[useQuote] from.amountRaw") : w?.amount, ht = s?.amountRaw !== void 0 ? it(s.amountRaw, "[useQuote] to.amountRaw") : s?.amount, T = xe ?? ht, x = xe !== void 0 ? Z.EXACT_INPUT : Z.EXACT_OUTPUT, S = w?.amountRaw !== void 0 || s?.amountRaw !== void 0, i = w?.chain ? at(w.chain) : null, n = s?.chain ? at(s.chain) : null, c = w?.token ?? null, u = s?.token ?? null, wt = (c ? !R(c) : !1) || (u ? !R(u) : !1), At = s?.approve ?? null, Ct = s?.calldata ?? null, _e = De(!1);
|
|
58
|
-
ne(() => {
|
|
59
|
-
de && !_e.current && (_e.current = !0, r.console.warn("[trails-sdk] [useQuote] `to.calldata` is deprecated and will be removed in a future major release. Migrate to `to.calls` (raw calls) or the top-level `actions` option (composable DeFi). See https://docs.trails.build/sdk/hooks#usequote-hook for the migration guide."));
|
|
60
|
-
}, [de]), ne(() => (H && (globalThis.__testNodeGatewayEnv = H), () => {
|
|
61
|
-
H && delete globalThis.__testNodeGatewayEnv;
|
|
62
|
-
}), [H]);
|
|
63
|
-
const k = De(new AbortController()), _ = W(() => JSON.stringify({
|
|
64
|
-
fromTokenInput: c,
|
|
65
|
-
fromChainId: i,
|
|
66
|
-
toTokenInput: u,
|
|
67
|
-
toChainId: n,
|
|
68
|
-
tradeType: x,
|
|
69
|
-
fundMethod: U,
|
|
70
|
-
isAmountRaw: S
|
|
71
|
-
}), [
|
|
72
|
-
c,
|
|
73
|
-
i,
|
|
74
|
-
u,
|
|
75
|
-
n,
|
|
76
|
-
x,
|
|
77
|
-
U,
|
|
78
|
-
S
|
|
79
|
-
]), [V, Me] = Tn(() => ({
|
|
80
|
-
amount: T,
|
|
81
|
-
contextKey: _
|
|
82
|
-
}));
|
|
83
|
-
ne(() => {
|
|
84
|
-
const t = {
|
|
85
|
-
amount: T,
|
|
86
|
-
contextKey: _
|
|
87
|
-
};
|
|
88
|
-
if (U === "onramp-meld" && V.contextKey === _) {
|
|
89
|
-
Me((h) => h.amount === t.amount && h.contextKey === t.contextKey ? h : t);
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
const d = setTimeout(() => {
|
|
93
|
-
Me((h) => h.amount === t.amount && h.contextKey === t.contextKey ? h : t);
|
|
94
|
-
}, 300);
|
|
95
|
-
return () => clearTimeout(d);
|
|
96
|
-
}, [
|
|
97
|
-
T,
|
|
98
|
-
U,
|
|
99
|
-
_,
|
|
100
|
-
V.contextKey
|
|
101
|
-
]);
|
|
102
|
-
const E = V.amount, M = V.contextKey === _, { trailsApiKey: ce, trailsApiUrl: Ge, sequenceIndexerUrl: Tt, sequenceMetadataUrl: kt } = wn(), Ut = ce, b = An({
|
|
103
|
-
apiKey: ce,
|
|
104
|
-
hostname: Ge
|
|
105
|
-
}), O = mn(), $e = rt(i ?? void 0), Ke = rt(n ?? void 0), bt = i != null && Le === i, vt = n != null && Le === n, ue = bt ? qe ?? $e : $e, G = vt ? qe ?? Ke : Ke, A = gn({
|
|
106
|
-
actions: Fe ?? [],
|
|
107
|
-
chainId: n ?? void 0,
|
|
108
|
-
destinationChain: s.chain,
|
|
109
|
-
userWalletAddress: C,
|
|
110
|
-
trailsClient: b,
|
|
111
|
-
publicClient: G
|
|
112
|
-
}), me = W(() => A.calls ?? s.calls?.flat() ?? [], [A.calls, s.calls]), F = !!(!(s.calldata && s.calldata !== "0x") && me.length), D = F ? an.trailsUtilsAddress : yt, { supportedTokens: Q } = dn({ disabled: !wt && (!!c || !!u) }), Be = W(() => {
|
|
113
|
-
if (!c) return null;
|
|
114
|
-
if (R(c)) return {
|
|
115
|
-
address: c,
|
|
116
|
-
token: null
|
|
117
|
-
};
|
|
118
|
-
if (!i) return null;
|
|
119
|
-
const t = nt(c, i, Q);
|
|
120
|
-
return t || r.console.warn(`[trails-sdk] [useQuote] Could not resolve source token symbol "${c}" on chain ${i}. Pass a contract address instead.`), t;
|
|
121
|
-
}, [
|
|
122
|
-
c,
|
|
123
|
-
i,
|
|
124
|
-
Q
|
|
125
|
-
]), We = W(() => {
|
|
126
|
-
if (!u) return null;
|
|
127
|
-
if (R(u)) return {
|
|
128
|
-
address: u,
|
|
129
|
-
token: null
|
|
130
|
-
};
|
|
131
|
-
if (!n) return null;
|
|
132
|
-
const t = nt(u, n, Q);
|
|
133
|
-
return t || r.console.warn(`[trails-sdk] [useQuote] Could not resolve destination token symbol "${u}" on chain ${n}. Pass a contract address instead.`), t;
|
|
134
|
-
}, [
|
|
135
|
-
u,
|
|
136
|
-
n,
|
|
137
|
-
Q
|
|
138
|
-
]), g = Be?.address ?? null, m = We?.address ?? null, z = W(() => {
|
|
139
|
-
if (!F) return {
|
|
140
|
-
encodedCalldata: null,
|
|
141
|
-
intentProtocolVersion: null,
|
|
142
|
-
error: null
|
|
143
|
-
};
|
|
144
|
-
if (!m) return {
|
|
145
|
-
encodedCalldata: null,
|
|
146
|
-
intentProtocolVersion: null,
|
|
147
|
-
error: "toTokenAddress is required"
|
|
148
|
-
};
|
|
149
|
-
try {
|
|
150
|
-
const t = C;
|
|
151
|
-
if (!t || !R(t)) throw new Error("Provide a valid `walletAddress` or a connected `walletClient`.");
|
|
152
|
-
const d = yn({
|
|
153
|
-
calls: me,
|
|
154
|
-
tokenAddress: m,
|
|
155
|
-
sweepTarget: t,
|
|
156
|
-
intentProtocolVersion: ae
|
|
157
|
-
});
|
|
158
|
-
return {
|
|
159
|
-
encodedCalldata: d.destinationCalldata,
|
|
160
|
-
intentProtocolVersion: d.intentProtocolVersion,
|
|
161
|
-
error: null
|
|
162
|
-
};
|
|
163
|
-
} catch (t) {
|
|
164
|
-
return {
|
|
165
|
-
encodedCalldata: null,
|
|
166
|
-
intentProtocolVersion: null,
|
|
167
|
-
error: t instanceof Error ? t.message : "Unknown encoding error"
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
}, [
|
|
171
|
-
F,
|
|
172
|
-
me,
|
|
173
|
-
m,
|
|
174
|
-
ae,
|
|
175
|
-
C
|
|
176
|
-
]), pe = F ? z.encodedCalldata : Ct, He = F ? z.intentProtocolVersion : ae, Dt = pn(), It = fn(), Et = !ie && (i === te.id || n === te.id) ? "lifi" : ie ?? null, Ft = !se && (i === te.id || n === te.id) ? "lifi" : se ?? null, fe = kn(), y = C?.toLowerCase(), P = D?.toLowerCase(), Ve = y && P && y === P, ge = i && n && i === n, ye = (t, d) => !t || !d ? !1 : fe.getQueryData([
|
|
177
|
-
"isContract",
|
|
178
|
-
t,
|
|
179
|
-
d
|
|
180
|
-
]) === !0, { data: he } = oe({
|
|
181
|
-
queryKey: [
|
|
182
|
-
"isContract",
|
|
183
|
-
y,
|
|
184
|
-
i
|
|
185
|
-
],
|
|
186
|
-
queryFn: async () => !y || !i ? null : ve(y, i, ue ?? void 0),
|
|
187
|
-
enabled: !!y && !!i && !ye(y, i),
|
|
188
|
-
staleTime: (t) => t.state.data === !0 ? 1 / 0 : 0,
|
|
189
|
-
gcTime: Ue
|
|
190
|
-
}), { data: ze } = oe({
|
|
191
|
-
queryKey: [
|
|
192
|
-
"isContract",
|
|
193
|
-
y,
|
|
194
|
-
n
|
|
195
|
-
],
|
|
196
|
-
queryFn: async () => !y || !n ? null : ve(y, n, G ?? void 0),
|
|
197
|
-
enabled: !!y && !!n && !ge && !ye(y, n),
|
|
198
|
-
staleTime: (t) => t.state.data === !0 ? 1 / 0 : 0,
|
|
199
|
-
gcTime: Ue
|
|
200
|
-
}), { data: Pt } = oe({
|
|
201
|
-
queryKey: [
|
|
202
|
-
"isContract",
|
|
203
|
-
P,
|
|
204
|
-
n
|
|
205
|
-
],
|
|
206
|
-
queryFn: async () => !P || !n ? null : ve(P, n, G ?? void 0),
|
|
207
|
-
enabled: !!P && !!n && !Ve && !ye(P, n),
|
|
208
|
-
staleTime: (t) => t.state.data === !0 ? 1 / 0 : 0,
|
|
209
|
-
gcTime: Ue
|
|
210
|
-
}), Xe = he ?? null, Rt = ge ? he : ze ?? null, St = Ve ? ge ? he : ze : Pt ?? null, Ot = !!C, $ = M && ot(T) && ot(E), we = !N || !A.isLoading && A.calls !== null && A.error === null, X = !!(Ot && b && g && m && $ && D && i && n && O && we), Ae = De(null);
|
|
211
|
-
ne(() => {
|
|
212
|
-
if (X) {
|
|
213
|
-
Ae.current = null;
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
const t = [];
|
|
217
|
-
C || t.push("walletClient account or walletAddress"), b || t.push("trailsClient (check TrailsProvider)"), g || (c && !R(c) ? t.push(`from.token (symbol "${c}" not found on chain ${i ?? "unknown"})`) : t.push("from.token")), m || (u && !R(u) ? t.push(`to.token (symbol "${u}" not found on chain ${n ?? "unknown"})`) : t.push("to.token")), i || t.push("from.chain"), n || t.push("to.chain"), T == null ? t.push("amount or amountRaw (set on from or to)") : M ? $ || t.push(S ? `amountRaw (malformed or zero: ${JSON.stringify(T)} — expected a positive bigint or integer-only string in the token's smallest unit, e.g. 1000000n)` : `amount (malformed or zero: ${JSON.stringify(T)} — expected a positive human-readable decimal string like "0.5")`) : t.push("amount (waiting for updated quote params)"), D || t.push("to.recipient (or connect a wallet / provide walletAddress)"), O || t.push("indexerGatewayClient (check TrailsProvider)"), N && !we && (A.error ? t.push(`actions (resolution failed: ${A.error.message})`) : t.push("actions (resolving)"));
|
|
218
|
-
const d = t.join(", ");
|
|
219
|
-
d !== Ae.current && (Ae.current = d, console.warn(`[trails-sdk] [useQuote] Quote disabled. Missing: ${d}`));
|
|
220
|
-
}, [
|
|
221
|
-
X,
|
|
222
|
-
C,
|
|
223
|
-
b,
|
|
224
|
-
g,
|
|
225
|
-
c,
|
|
226
|
-
i,
|
|
227
|
-
m,
|
|
228
|
-
u,
|
|
229
|
-
n,
|
|
230
|
-
T,
|
|
231
|
-
S,
|
|
232
|
-
M,
|
|
233
|
-
$,
|
|
234
|
-
D,
|
|
235
|
-
O,
|
|
236
|
-
N,
|
|
237
|
-
we,
|
|
238
|
-
A.error
|
|
239
|
-
]), r.console.log("[trails-sdk] [useQuote] prepareSend enabled check:", {
|
|
240
|
-
enabled: X,
|
|
241
|
-
namespace: ft,
|
|
242
|
-
walletClient: !!q,
|
|
243
|
-
trailsClient: !!b,
|
|
244
|
-
fromTokenAddress: !!g,
|
|
245
|
-
toTokenAddress: !!m,
|
|
246
|
-
swapAmount: !!T,
|
|
247
|
-
debouncedSwapAmount: !!E,
|
|
248
|
-
isDebouncedAmountCurrent: M,
|
|
249
|
-
hasValidAmount: $,
|
|
250
|
-
effectiveToAddress: !!D,
|
|
251
|
-
fromChainId: !!i,
|
|
252
|
-
toChainId: !!n,
|
|
253
|
-
indexerGatewayClient: !!O
|
|
254
|
-
});
|
|
255
|
-
const { data: Ce, isFetching: Qt, error: Te, refetch: Lt } = oe({
|
|
256
|
-
queryKey: Ee.quote({
|
|
257
|
-
senderAddress: y ?? null,
|
|
258
|
-
fromToken: g,
|
|
259
|
-
fromChainId: i,
|
|
260
|
-
toToken: m,
|
|
261
|
-
toChainId: n,
|
|
262
|
-
amount: M ? E?.toString() ?? null : null,
|
|
263
|
-
isAmountRaw: S,
|
|
264
|
-
recipient: D,
|
|
265
|
-
calldata: pe,
|
|
266
|
-
tradeType: x,
|
|
267
|
-
slippage: Pe,
|
|
268
|
-
swapProvider: ie,
|
|
269
|
-
bridgeProvider: se,
|
|
270
|
-
swapProviderFallback: Re,
|
|
271
|
-
bridgeProviderFallback: Se,
|
|
272
|
-
intentProtocolVersion: He,
|
|
273
|
-
apiKey: ut,
|
|
274
|
-
isSmartWallet: Qe,
|
|
275
|
-
fundMethod: U
|
|
276
|
-
}),
|
|
277
|
-
queryFn: async () => {
|
|
278
|
-
try {
|
|
279
|
-
r.console.log("[trails-sdk] [useQuote] prepareSend queryFn entered"), k.current.signal.aborted && (r.console.log("[trails-sdk] Resetting aborted controller for new query"), k.current = new AbortController());
|
|
280
|
-
const t = C?.toLowerCase();
|
|
281
|
-
if (!t || !b || !g || !m || !$ || !D || !i || !n || !O)
|
|
282
|
-
return r.console.log("[trails-sdk] [useQuote] prepareSend queryFn guard failed, returning null"), null;
|
|
283
|
-
if (F) {
|
|
284
|
-
if (z.error) throw new Error(z.error);
|
|
285
|
-
if (!pe) throw new Error("Failed to encode to.calls into toCalldata");
|
|
286
|
-
}
|
|
287
|
-
const d = re ? (() => {
|
|
288
|
-
const v = new AbortController();
|
|
289
|
-
return re.aborted ? (v.abort(), k.current?.abort(), v.signal) : (re.addEventListener("abort", () => {
|
|
290
|
-
v.abort(), k.current?.abort();
|
|
291
|
-
}, { once: !0 }), k.current.signal.addEventListener("abort", () => v.abort(), { once: !0 }), v.signal);
|
|
292
|
-
})() : k.current.signal, h = setTimeout(() => {
|
|
293
|
-
r.console.warn("[trails-sdk] [useQuote] Quote request timed out after 20 seconds"), k.current.abort();
|
|
294
|
-
}, 2e4);
|
|
295
|
-
try {
|
|
296
|
-
const v = Ze(i)?.nativeCurrency?.symbol ?? "", je = (await fe.ensureQueryData(un.withPrices(t, O, b)).catch((o) => {
|
|
297
|
-
if (ln(o))
|
|
298
|
-
return r.console.warn("[trails-sdk] [useQuote] Network error fetching balances, proceeding with quote using zero balance:", {
|
|
299
|
-
error: o,
|
|
300
|
-
account: t
|
|
301
|
-
}), { balances: [] };
|
|
302
|
-
throw o;
|
|
303
|
-
})).balances;
|
|
304
|
-
let K = je.find((o) => o.chainId === i && (tt(o.contractAddress, ee) || o.isNativeToken))?.priceUsd ?? 0;
|
|
305
|
-
!K && v && (K = (await cn(b, {
|
|
306
|
-
tokenSymbol: v,
|
|
307
|
-
tokenAddress: ee,
|
|
308
|
-
chainId: i
|
|
309
|
-
}).catch((o) => (r.console.error("[trails-sdk] [useQuote] Error getting origin native token price:", o), null)))?.priceUsd ?? 0), K && r.console.log("[trails-sdk] [useQuote] Origin native token price:", {
|
|
310
|
-
chainId: i,
|
|
311
|
-
symbol: v,
|
|
312
|
-
priceUsd: K
|
|
313
|
-
});
|
|
314
|
-
const qt = je.find((o) => o.chainId === i && (o.contractAddress?.toLowerCase() === g.toLowerCase() || !o.contractAddress && g === ee))?.balance ?? "0", Je = async (o, p) => {
|
|
315
|
-
try {
|
|
316
|
-
const I = p === i ? ue : p === n ? G : null;
|
|
317
|
-
if (!I)
|
|
318
|
-
return r.console.warn(`[trails-sdk] No RPC client available for chain ${p}`), null;
|
|
319
|
-
if (tt(o, ee)) return Ze(p)?.nativeCurrency.decimals ?? 18;
|
|
320
|
-
const Y = await I.readContract({
|
|
321
|
-
address: o,
|
|
322
|
-
abi: Cn,
|
|
323
|
-
functionName: "decimals"
|
|
324
|
-
});
|
|
325
|
-
return r.console.log(`[trails-sdk] Fetched decimals on-chain for token ${o} on chain ${p}: ${Y}`), Y;
|
|
326
|
-
} catch (I) {
|
|
327
|
-
return r.console.error(`[trails-sdk] Error fetching decimals on-chain for token ${o} on chain ${p}:`, I), null;
|
|
328
|
-
}
|
|
329
|
-
}, j = Be?.token ?? st(Q, g, i), J = We?.token ?? st(Q, m, n);
|
|
330
|
-
let L = w?.decimals ?? j?.decimals;
|
|
331
|
-
if (!L && g && i) {
|
|
332
|
-
r.console.warn("[trails-sdk] [useQuote] Source token decimals not found in token list, fetching on-chain:", {
|
|
333
|
-
originToken: j,
|
|
334
|
-
fromTokenAddress: g,
|
|
335
|
-
fromChainId: i
|
|
336
|
-
});
|
|
337
|
-
const o = await Je(g, i);
|
|
338
|
-
o !== null && (L = o);
|
|
339
|
-
}
|
|
340
|
-
if (!L)
|
|
341
|
-
throw r.console.error("[trails-sdk] [useQuote] Source token decimals not found:", {
|
|
342
|
-
originToken: j,
|
|
343
|
-
fromTokenAddress: g,
|
|
344
|
-
fromChainId: i
|
|
345
|
-
}), new Error("Source token decimals not found. Pass `from.decimals` explicitly, register the token via TrailsProvider's token list, or ensure the chain RPC is reachable.");
|
|
346
|
-
let B = s?.decimals ?? J?.decimals;
|
|
347
|
-
if (!B && m && n) {
|
|
348
|
-
r.console.warn("[trails-sdk] Destination token decimals not found in token list, fetching on-chain:", {
|
|
349
|
-
destinationToken: J,
|
|
350
|
-
toTokenAddress: m,
|
|
351
|
-
toChainId: n
|
|
352
|
-
});
|
|
353
|
-
const o = await Je(m, n);
|
|
354
|
-
o !== null && (B = o);
|
|
355
|
-
}
|
|
356
|
-
if (!B)
|
|
357
|
-
throw r.console.error("[trails-sdk] Destination token decimals not found:", {
|
|
358
|
-
destinationToken: J,
|
|
359
|
-
toTokenAddress: m,
|
|
360
|
-
toChainId: n
|
|
361
|
-
}), new Error("Destination token decimals not found. Pass `to.decimals` explicitly, register the token via TrailsProvider's token list, or ensure the chain RPC is reachable.");
|
|
362
|
-
const Nt = J?.symbol ?? "", xt = j?.symbol ?? "";
|
|
363
|
-
let ke;
|
|
364
|
-
if (S) try {
|
|
365
|
-
ke = BigInt(E);
|
|
366
|
-
} catch (o) {
|
|
367
|
-
throw new Error(`Invalid raw amount "${String(E)}". Pass a positive bigint or integer-only string in the token's smallest unit (e.g. 1000000n or "1000000"). Underlying error: ${o instanceof Error ? o.message : String(o)}`, { cause: o });
|
|
368
|
-
}
|
|
369
|
-
else {
|
|
370
|
-
const o = x === Z.EXACT_INPUT ? L : B;
|
|
371
|
-
try {
|
|
372
|
-
ke = lt(E, o);
|
|
373
|
-
} catch (p) {
|
|
374
|
-
throw new Error(`Invalid amount "${String(E)}". Pass a human-readable decimal string (e.g. "0.5"). Underlying error: ${p instanceof Error ? p.message : String(p)}`, { cause: p });
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
const _t = U === "direct-transfer" || U === "onramp-mesh" || U === "onramp-meld" ? lt("100", L).toString() : qt, Ye = {
|
|
378
|
-
queryClient: fe,
|
|
379
|
-
account: q?.account ?? {
|
|
380
|
-
address: C,
|
|
381
|
-
type: "json-rpc"
|
|
382
|
-
},
|
|
383
|
-
originTokenAddress: g,
|
|
384
|
-
originChainId: i,
|
|
385
|
-
originTokenBalance: _t,
|
|
386
|
-
destinationChainId: n,
|
|
387
|
-
recipient: D,
|
|
388
|
-
destinationApproveAddress: At ?? void 0,
|
|
389
|
-
destinationTokenAddress: m,
|
|
390
|
-
swapAmount: ke.toString(),
|
|
391
|
-
tradeType: x ?? Z.EXACT_OUTPUT,
|
|
392
|
-
originTokenSymbol: xt,
|
|
393
|
-
destinationTokenSymbol: Nt,
|
|
394
|
-
destinationCalldata: pe,
|
|
395
|
-
client: q ?? void 0,
|
|
396
|
-
trailsClient: b,
|
|
397
|
-
sourceTokenDecimals: L,
|
|
398
|
-
destinationTokenDecimals: B,
|
|
399
|
-
onTransactionStateChange: dt ?? (() => {
|
|
400
|
-
}),
|
|
401
|
-
slippageTolerance: Pe?.toString(),
|
|
402
|
-
swapProvider: Et,
|
|
403
|
-
bridgeProvider: Ft,
|
|
404
|
-
swapProviderFallback: Re,
|
|
405
|
-
bridgeProviderFallback: Se,
|
|
406
|
-
selectedFeeOption: Oe ?? null,
|
|
407
|
-
abortSignal: d,
|
|
408
|
-
originNativeTokenPriceUsd: K,
|
|
409
|
-
commitIntentFn: (o) => Dt.mutateAsync(o),
|
|
410
|
-
executeIntentFn: It.mutateAsync,
|
|
411
|
-
checkoutOnHandlers: ct,
|
|
412
|
-
sequenceIndexerUrl: Tt,
|
|
413
|
-
sequenceProjectAccessKey: Ut,
|
|
414
|
-
originPublicClient: ue ?? void 0,
|
|
415
|
-
destinationPublicClient: G ?? void 0,
|
|
416
|
-
isSmartWallet: Qe ?? void 0,
|
|
417
|
-
isSenderContractOnOrigin: Xe ?? void 0,
|
|
418
|
-
trailsApiKey: ce,
|
|
419
|
-
trailsApiUrl: Ge,
|
|
420
|
-
intentProtocolVersion: He ?? void 0,
|
|
421
|
-
sequenceMetadataUrl: kt,
|
|
422
|
-
fundMethod: U ?? "wallet",
|
|
423
|
-
onramp: mt ?? void 0,
|
|
424
|
-
mode: pt ?? void 0,
|
|
425
|
-
walletId: gt ?? void 0,
|
|
426
|
-
isMultiCallEncoding: F
|
|
427
|
-
};
|
|
428
|
-
r.console.log("[trails-sdk] options", Ye);
|
|
429
|
-
const { quote: e, send: Mt, feeOptions: Gt } = await hn(Ye), $t = {
|
|
430
|
-
originAmount: e.originAmount,
|
|
431
|
-
originAmountMin: e.originAmountMin,
|
|
432
|
-
destinationAmount: e.destinationAmount,
|
|
433
|
-
destinationAmountMin: e.destinationAmountMin,
|
|
434
|
-
originAmountUsdDisplay: e.originAmountUsdDisplay ?? "",
|
|
435
|
-
destinationAmountUsdDisplay: e.destinationAmountUsdDisplay ?? "",
|
|
436
|
-
originAmountDisplay: e.originAmountDisplay ?? "",
|
|
437
|
-
destinationAmountDisplay: e.destinationAmountDisplay ?? "",
|
|
438
|
-
originAmountMinDisplay: e.originAmountMinDisplay ?? "",
|
|
439
|
-
originAmountMinUsdFormatted: e.originAmountMinUsdFormatted ?? "",
|
|
440
|
-
originAmountMinUsdDisplay: e.originAmountMinUsdDisplay ?? "",
|
|
441
|
-
destinationAmountMinDisplay: e.destinationAmountMinDisplay ?? "",
|
|
442
|
-
destinationAmountMinUsdFormatted: e.destinationAmountMinUsdFormatted ?? "",
|
|
443
|
-
destinationAmountMinUsdDisplay: e.destinationAmountMinUsdDisplay ?? "",
|
|
444
|
-
originAmountUsdFormatted: e.originAmountUsdFormatted ?? "",
|
|
445
|
-
destinationAmountUsdFormatted: e.destinationAmountUsdFormatted ?? "",
|
|
446
|
-
originAmountFormattedLocale: e.originAmountFormattedLocale,
|
|
447
|
-
originAmountUsdLocaleDisplay: e.originAmountUsdLocaleDisplay,
|
|
448
|
-
destinationAmountFormattedLocale: e.destinationAmountFormattedLocale,
|
|
449
|
-
destinationAmountUsdLocaleDisplay: e.destinationAmountUsdLocaleDisplay,
|
|
450
|
-
originAmountUsd: e.originAmountUsd,
|
|
451
|
-
originAmountFormatted: e.originAmountFormatted ?? "",
|
|
452
|
-
destinationAmountFormatted: e.destinationAmountFormatted ?? "",
|
|
453
|
-
intentProtocol: e.intentProtocol,
|
|
454
|
-
originToken: e.originToken,
|
|
455
|
-
destinationToken: e.destinationToken,
|
|
456
|
-
originChain: e.originChain,
|
|
457
|
-
destinationChain: e.destinationChain,
|
|
458
|
-
fees: e.fees,
|
|
459
|
-
priceImpact: e.priceImpact,
|
|
460
|
-
priceImpactUsd: e.priceImpactUsd ?? null,
|
|
461
|
-
priceImpactUsdDisplay: e.priceImpactUsdDisplay ?? "",
|
|
462
|
-
priceImpactUsdLocaleDisplay: e.priceImpactUsdLocaleDisplay,
|
|
463
|
-
completionEstimateSeconds: e.completionEstimateSeconds,
|
|
464
|
-
completionEstimateDisplay: e.completionEstimateDisplay ?? "",
|
|
465
|
-
slippageTolerance: e.slippageTolerance,
|
|
466
|
-
transactionStates: e.transactionStates ?? [],
|
|
467
|
-
originTokenRate: e.originTokenRate ?? "",
|
|
468
|
-
destinationTokenRate: e.destinationTokenRate ?? "",
|
|
469
|
-
originTokenPriceUsd: e.originTokenPriceUsd ?? 0,
|
|
470
|
-
destinationTokenPriceUsd: e.destinationTokenPriceUsd ?? 0,
|
|
471
|
-
routeProviders: e.routeProviders ?? [],
|
|
472
|
-
gasCostUsd: e.gasCostUsd ?? null,
|
|
473
|
-
gasCostUsdDisplay: e.gasCostUsdDisplay ?? "",
|
|
474
|
-
gasCost: e.gasCost ?? "",
|
|
475
|
-
gasCostFormatted: e.gasCostFormatted ?? "",
|
|
476
|
-
totalFeesUsd: e.totalFeesUsd ?? null,
|
|
477
|
-
totalFeesUsdDisplay: e.totalFeesUsdDisplay ?? "",
|
|
478
|
-
totalGasUsd: e.totalGasUsd ?? null,
|
|
479
|
-
totalGasUsdDisplay: e.totalGasUsdDisplay ?? "",
|
|
480
|
-
intentId: e.intentId ?? null,
|
|
481
|
-
originDepositAddress: e.originDepositAddress ?? "",
|
|
482
|
-
destinationDepositAddress: e.destinationDepositAddress ?? "",
|
|
483
|
-
destinationAddress: e.destinationAddress ?? "",
|
|
484
|
-
destinationApproveAddress: e.destinationApproveAddress ?? "",
|
|
485
|
-
destinationCalldata: e.destinationCalldata ?? "",
|
|
486
|
-
trailsFeeBreakdown: e.trailsFeeBreakdown ?? null,
|
|
487
|
-
originGasUsd: e.originGasUsd ?? null,
|
|
488
|
-
originGasUsdDisplay: e.originGasUsdDisplay ?? "",
|
|
489
|
-
destinationGasUsd: e.destinationGasUsd ?? null,
|
|
490
|
-
destinationGasUsdDisplay: e.destinationGasUsdDisplay ?? "",
|
|
491
|
-
providerFeeUsd: e.providerFeeUsd ?? null,
|
|
492
|
-
providerFeeUsdDisplay: e.providerFeeUsdDisplay ?? "",
|
|
493
|
-
trailsFeeUsd: e.trailsFeeUsd ?? null,
|
|
494
|
-
trailsFeeUsdDisplay: e.trailsFeeUsdDisplay ?? "",
|
|
495
|
-
totalProviderFeesUsd: e.totalProviderFeesUsd ?? null,
|
|
496
|
-
totalProviderFeesUsdDisplay: e.totalProviderFeesUsdDisplay ?? "",
|
|
497
|
-
totalGasUsdLocaleDisplay: e.totalGasUsdLocaleDisplay,
|
|
498
|
-
originGasUsdLocaleDisplay: e.originGasUsdLocaleDisplay,
|
|
499
|
-
destinationGasUsdLocaleDisplay: e.destinationGasUsdLocaleDisplay,
|
|
500
|
-
totalProviderFeesUsdLocaleDisplay: e.totalProviderFeesUsdLocaleDisplay,
|
|
501
|
-
providerFeeUsdLocaleDisplay: e.providerFeeUsdLocaleDisplay,
|
|
502
|
-
trailsFeeUsdLocaleDisplay: e.trailsFeeUsdLocaleDisplay,
|
|
503
|
-
noSufficientBalance: e.noSufficientBalance ?? !1,
|
|
504
|
-
expiresAt: e.expiresAt ?? null,
|
|
505
|
-
priceImpactDetails: e.priceImpactDetails ?? null,
|
|
506
|
-
passthroughEligible: e.passthroughEligible,
|
|
507
|
-
passthroughTransactionStates: e.passthroughTransactionStates
|
|
508
|
-
}, Kt = async (o) => {
|
|
509
|
-
const { depositUserTxnReceipt: p, destinationIntentTransaction: I, totalCompletionSeconds: Y } = await Mt({
|
|
510
|
-
selectedFeeOption: o?.selectedFeeOption !== void 0 ? o.selectedFeeOption : Oe ?? null,
|
|
511
|
-
onOriginSend: o?.onOriginSend,
|
|
512
|
-
depositTransactionHash: o?.depositTransactionHash,
|
|
513
|
-
skipCommit: o?.skipCommit
|
|
514
|
-
});
|
|
515
|
-
return {
|
|
516
|
-
originTransaction: {
|
|
517
|
-
transactionHash: p?.transactionHash,
|
|
518
|
-
explorerUrl: et({
|
|
519
|
-
txHash: p?.transactionHash,
|
|
520
|
-
chainId: i
|
|
521
|
-
}),
|
|
522
|
-
receipt: p
|
|
523
|
-
},
|
|
524
|
-
destinationTransaction: {
|
|
525
|
-
transactionHash: I?.txnHash,
|
|
526
|
-
explorerUrl: et({
|
|
527
|
-
txHash: I?.txnHash,
|
|
528
|
-
chainId: n
|
|
529
|
-
}),
|
|
530
|
-
receipt: I
|
|
531
|
-
},
|
|
532
|
-
totalCompletionSeconds: Y
|
|
533
|
-
};
|
|
534
|
-
};
|
|
535
|
-
return clearTimeout(h), {
|
|
536
|
-
quote: $t,
|
|
537
|
-
send: Kt,
|
|
538
|
-
feeOptions: Gt?.feeOptions ?? []
|
|
539
|
-
};
|
|
540
|
-
} finally {
|
|
541
|
-
clearTimeout(h);
|
|
542
|
-
}
|
|
543
|
-
} catch (t) {
|
|
544
|
-
if (t instanceof Error && t.name === "AbortError" || k.current.signal.aborted) {
|
|
545
|
-
const h = rn(t, {
|
|
546
|
-
boundary: "sdk",
|
|
547
|
-
code: "quote.timeout",
|
|
548
|
-
message: "No route available",
|
|
549
|
-
details: { aborted: k.current.signal.aborted }
|
|
550
|
-
});
|
|
551
|
-
throw r.console.error("[trails-sdk] [useQuote] Quote request timed out:", h), Ie(h);
|
|
552
|
-
}
|
|
553
|
-
const d = sn(t, {
|
|
554
|
-
boundary: "sdk",
|
|
555
|
-
code: "quote.request",
|
|
556
|
-
apiBoundary: "trails-api"
|
|
557
|
-
});
|
|
558
|
-
throw r.console.error("[trails-sdk] [useQuote] Error getting quote:", d), Ie(d);
|
|
559
|
-
}
|
|
560
|
-
},
|
|
561
|
-
enabled: X,
|
|
562
|
-
staleTime: 0,
|
|
563
|
-
refetchOnWindowFocus: !1,
|
|
564
|
-
refetchOnMount: "always",
|
|
565
|
-
refetchInterval: !1,
|
|
566
|
-
retry: !1,
|
|
567
|
-
refetchOnReconnect: !0
|
|
568
|
-
});
|
|
569
|
-
return {
|
|
570
|
-
quote: Ce?.quote || null,
|
|
571
|
-
send: q && Ce?.send || null,
|
|
572
|
-
isLoadingQuote: A.isLoading || Qt,
|
|
573
|
-
quoteError: A.error ?? (Te ? Ie(Te) : null),
|
|
574
|
-
quoteErrorPrettified: A.error?.message ?? on(Te),
|
|
575
|
-
refetchQuote: async () => {
|
|
576
|
-
await Lt();
|
|
577
|
-
},
|
|
578
|
-
abort: () => {
|
|
579
|
-
r.console.log("[trails-sdk] useQuote abort() called"), r.console.log("[trails-sdk] Active operations before abort:", be.getAll()), k.current.abort(), be.abortAll(), r.console.log("[trails-sdk] Abort completed, active operations:", be.getAll());
|
|
580
|
-
},
|
|
581
|
-
feeOptions: Ce?.feeOptions || [],
|
|
582
|
-
isRecipientContract: St ?? null,
|
|
583
|
-
isSenderContractOnOrigin: Xe ?? null,
|
|
584
|
-
isSenderContractOnDestination: Rt ?? null
|
|
585
|
-
};
|
|
586
|
-
}
|
|
587
|
-
export {
|
|
588
|
-
Ee as quoteKeys,
|
|
589
|
-
ro as useQuote
|
|
590
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ChainListItem } from '../chains.js';
|
|
2
|
-
export declare function useRecentChains(accountAddress?: string): {
|
|
3
|
-
recentChains: ChainListItem[];
|
|
4
|
-
addRecentChain: (chain: ChainListItem) => void;
|
|
5
|
-
clearRecentChains: () => void;
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=useRecentChains.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRecentChains.d.ts","sourceRoot":"","sources":["../../src/hooks/useRecentChains.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAWjD,wBAAgB,eAAe,CAAC,cAAc,CAAC,EAAE,MAAM;;4BA4B3C,aAAa;;EAyDxB"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { logger as c } from "../logger/index.js";
|
|
2
|
-
import { normalizeAddress as i } from "../utils/address.js";
|
|
3
|
-
import { JsonEncode as h } from "@0xtrails/api";
|
|
4
|
-
import { useCallback as f, useEffect as g, useState as C } from "react";
|
|
5
|
-
var n = "trails_recent_chains", I = 3;
|
|
6
|
-
function _(t) {
|
|
7
|
-
const [m, o] = C([]);
|
|
8
|
-
return g(() => {
|
|
9
|
-
if (!t) {
|
|
10
|
-
o([]);
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
try {
|
|
14
|
-
const e = localStorage.getItem(n);
|
|
15
|
-
if (!e) {
|
|
16
|
-
o([]);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
o(JSON.parse(e)[i(t)] || []);
|
|
20
|
-
} catch (e) {
|
|
21
|
-
o([]), c.console.warn("[trails-sdk] Failed to load recent chains from localStorage:", e);
|
|
22
|
-
}
|
|
23
|
-
}, [t]), {
|
|
24
|
-
recentChains: m,
|
|
25
|
-
addRecentChain: f((e) => {
|
|
26
|
-
if (t)
|
|
27
|
-
try {
|
|
28
|
-
const r = localStorage.getItem(n), l = r ? JSON.parse(r) : {}, s = i(t);
|
|
29
|
-
let a = l[s] || [];
|
|
30
|
-
a = a.filter((S) => S.chainId !== e.chainId), a.unshift(e), a = a.slice(0, I), l[s] = a, localStorage.setItem(n, h(l)), o(a);
|
|
31
|
-
} catch (r) {
|
|
32
|
-
c.console.warn("[trails-sdk] Failed to save recent chain to localStorage:", r);
|
|
33
|
-
}
|
|
34
|
-
}, [t]),
|
|
35
|
-
clearRecentChains: f(() => {
|
|
36
|
-
if (t)
|
|
37
|
-
try {
|
|
38
|
-
const e = localStorage.getItem(n);
|
|
39
|
-
if (e) {
|
|
40
|
-
const r = JSON.parse(e);
|
|
41
|
-
delete r[i(t)], localStorage.setItem(n, h(r));
|
|
42
|
-
}
|
|
43
|
-
o([]);
|
|
44
|
-
} catch (e) {
|
|
45
|
-
c.console.warn("[trails-sdk] Failed to clear recent chains from localStorage:", e);
|
|
46
|
-
}
|
|
47
|
-
}, [t])
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
_ as useRecentChains
|
|
52
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRecentTokens.d.ts","sourceRoot":"","sources":["../../src/hooks/useRecentTokens.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAqBzC,wBAAgB,eAAe,CAAC,cAAc,CAAC,EAAE,MAAM;;4BAsD3C,KAAK;;EAiFhB"}
|