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
|
@@ -0,0 +1,1224 @@
|
|
|
1
|
+
import { f as Call$1, r as ActionItem } from "./types-BK0WkVnx.js";
|
|
2
|
+
import { t as Token$1 } from "./tokenTypes-D812t5L9.js";
|
|
3
|
+
import { t as QuoteError } from "./quoteError-CmTH5Qm2.js";
|
|
4
|
+
import { c as EDGE_RAIL, d as EdgeRailId, l as EdgeDestinationConfig, r as EdgePlugin, u as EdgeOriginConfig } from "./edge-DmNcuJar.js";
|
|
5
|
+
import { CommitIntentResponse, DepositSignature, EdgeQuoteRequest, ExecuteIntentResponse, FeeOption, FundMethod, GasFeeOptions, Intent, IntentMode, IntentProtocolVersion, IntentReceipt, IntentTransaction, PriceImpactDetails, QuoteIntentRequest, RouteProvider, RouteProvider as RouteProvider$1, TradeType, TradeType as TradeType$1, TrailsApi, TransactionStateInfo } from "@0xtrails/api";
|
|
6
|
+
import { Account, Chain, Log, PublicClient, TransactionReceipt, WalletClient } from "viem";
|
|
7
|
+
import { ReactNode } from "react";
|
|
8
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
9
|
+
import { TrailsWalletClient } from "@0xtrails/wallet";
|
|
10
|
+
import { SequenceIndexer } from "@0xsequence/indexer";
|
|
11
|
+
|
|
12
|
+
//#region src/decoders.d.ts
|
|
13
|
+
interface CallSucceededEvent {
|
|
14
|
+
type: "CallSucceeded";
|
|
15
|
+
opHash: string;
|
|
16
|
+
index: bigint;
|
|
17
|
+
log: Log;
|
|
18
|
+
}
|
|
19
|
+
interface CallFailedEvent {
|
|
20
|
+
type: "CallFailed";
|
|
21
|
+
opHash: string;
|
|
22
|
+
index: bigint;
|
|
23
|
+
returnData: string;
|
|
24
|
+
log: Log;
|
|
25
|
+
}
|
|
26
|
+
interface CallAbortedEvent {
|
|
27
|
+
type: "CallAborted";
|
|
28
|
+
opHash: string;
|
|
29
|
+
index: bigint;
|
|
30
|
+
returnData: string;
|
|
31
|
+
log: Log;
|
|
32
|
+
}
|
|
33
|
+
interface CallSkippedEvent {
|
|
34
|
+
type: "CallSkipped";
|
|
35
|
+
deploymentId: string;
|
|
36
|
+
actionIndex: bigint;
|
|
37
|
+
log: Log;
|
|
38
|
+
}
|
|
39
|
+
interface RefundEvent {
|
|
40
|
+
type: "Refund";
|
|
41
|
+
token: string;
|
|
42
|
+
recipient: string;
|
|
43
|
+
amount: bigint;
|
|
44
|
+
log: Log;
|
|
45
|
+
}
|
|
46
|
+
interface SweepEvent {
|
|
47
|
+
type: "Sweep";
|
|
48
|
+
token: string;
|
|
49
|
+
recipient: string;
|
|
50
|
+
amount: bigint;
|
|
51
|
+
log: Log;
|
|
52
|
+
}
|
|
53
|
+
interface RefundAndSweepEvent {
|
|
54
|
+
type: "RefundAndSweep";
|
|
55
|
+
token: string;
|
|
56
|
+
refundRecipient: string;
|
|
57
|
+
refundAmount: bigint;
|
|
58
|
+
sweepRecipient: string;
|
|
59
|
+
actualRefund: bigint;
|
|
60
|
+
remaining: bigint;
|
|
61
|
+
log: Log;
|
|
62
|
+
}
|
|
63
|
+
type GuestModuleEvent = CallSucceededEvent | CallFailedEvent | CallAbortedEvent | CallSkippedEvent;
|
|
64
|
+
type TokenSweeperEvent = RefundEvent | SweepEvent | RefundAndSweepEvent;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/transactions.d.ts
|
|
67
|
+
type TransactionStateStatus = "pending" | "failed" | "confirmed" | "aborted";
|
|
68
|
+
type TransactionState = {
|
|
69
|
+
id?: string;
|
|
70
|
+
transactionHash: string;
|
|
71
|
+
explorerUrl: string;
|
|
72
|
+
blockNumber?: number;
|
|
73
|
+
chainId: number;
|
|
74
|
+
state: TransactionStateStatus;
|
|
75
|
+
label: string;
|
|
76
|
+
statusReason?: string;
|
|
77
|
+
decodedTokenSweeperEvents?: TokenSweeperEvent[];
|
|
78
|
+
decodedGuestModuleEvents?: GuestModuleEvent[];
|
|
79
|
+
refunded?: boolean;
|
|
80
|
+
refundTransactionHash?: string;
|
|
81
|
+
refundTransactionChainId?: number;
|
|
82
|
+
txnMinedAt?: string;
|
|
83
|
+
};
|
|
84
|
+
type TransactionHistoryItemFromAPI = Awaited<ReturnType<SequenceIndexer["getTransactionHistory"]>>["transactions"][number];
|
|
85
|
+
type TransactionHistoryItem = TransactionHistoryItemFromAPI & {
|
|
86
|
+
explorerUrl?: string;
|
|
87
|
+
chainName?: string;
|
|
88
|
+
};
|
|
89
|
+
type TransactionHistoryResponse = {
|
|
90
|
+
page: {
|
|
91
|
+
column?: string;
|
|
92
|
+
pageSize?: number;
|
|
93
|
+
more?: boolean;
|
|
94
|
+
};
|
|
95
|
+
transactions: TransactionHistoryItem[];
|
|
96
|
+
};
|
|
97
|
+
type GetAccountTransactionHistoryParams = {
|
|
98
|
+
chainId: number;
|
|
99
|
+
accountAddress: string;
|
|
100
|
+
pageSize?: number;
|
|
101
|
+
includeMetadata?: boolean;
|
|
102
|
+
page?: number;
|
|
103
|
+
abortSignal?: AbortSignal;
|
|
104
|
+
};
|
|
105
|
+
declare function getTxTimeDiff(firstTx?: TransactionState, lastTx?: TransactionState): Promise<number>;
|
|
106
|
+
declare function getAccountTransactionHistory({
|
|
107
|
+
chainId,
|
|
108
|
+
accountAddress,
|
|
109
|
+
pageSize,
|
|
110
|
+
page,
|
|
111
|
+
includeMetadata,
|
|
112
|
+
abortSignal,
|
|
113
|
+
apiKey,
|
|
114
|
+
indexerUrl
|
|
115
|
+
}: GetAccountTransactionHistoryParams & {
|
|
116
|
+
apiKey: string;
|
|
117
|
+
indexerUrl: string;
|
|
118
|
+
}): Promise<TransactionHistoryResponse>;
|
|
119
|
+
type IntentTransaction$1 = {
|
|
120
|
+
originIntentAddress: string;
|
|
121
|
+
destinationIntentAddress: string;
|
|
122
|
+
mainSigner: string;
|
|
123
|
+
mode?: string;
|
|
124
|
+
intentId?: string;
|
|
125
|
+
metaTxnId?: string;
|
|
126
|
+
txnHash?: string;
|
|
127
|
+
intentStatus?: string;
|
|
128
|
+
executionStatus?: string;
|
|
129
|
+
originChainId?: number;
|
|
130
|
+
destinationChainId?: number;
|
|
131
|
+
originTokenAddress?: string;
|
|
132
|
+
originTokenAmount?: string;
|
|
133
|
+
destinationTokenAddress?: string;
|
|
134
|
+
destinationTokenAmount?: string;
|
|
135
|
+
destinationToAddress?: string;
|
|
136
|
+
createdAt?: string;
|
|
137
|
+
depositTransactionHash?: string;
|
|
138
|
+
originTransactionHash?: string;
|
|
139
|
+
destinationTransactionHash?: string;
|
|
140
|
+
depositTransactionStatus?: string;
|
|
141
|
+
originTransactionStatus?: string;
|
|
142
|
+
destinationTransactionStatus?: string;
|
|
143
|
+
refundTransactionHash?: string;
|
|
144
|
+
refundTransactionStatus?: string;
|
|
145
|
+
refundTransactionChainId?: number;
|
|
146
|
+
originToken?: {
|
|
147
|
+
symbol: string;
|
|
148
|
+
name: string;
|
|
149
|
+
decimals: number;
|
|
150
|
+
imageUrl: string;
|
|
151
|
+
chainId: number;
|
|
152
|
+
};
|
|
153
|
+
destinationToken?: {
|
|
154
|
+
symbol: string;
|
|
155
|
+
name: string;
|
|
156
|
+
decimals: number;
|
|
157
|
+
imageUrl: string;
|
|
158
|
+
chainId: number;
|
|
159
|
+
};
|
|
160
|
+
routeProviders?: string[];
|
|
161
|
+
swapProviderUsed?: string;
|
|
162
|
+
bridgeProviderUsed?: string;
|
|
163
|
+
originIntentTxHash?: string;
|
|
164
|
+
destinationIntentTxHash?: string;
|
|
165
|
+
originIntentTxExplorerUrl?: string;
|
|
166
|
+
destinationIntentTxExplorerUrl?: string;
|
|
167
|
+
originIntentDepositTxHash?: string;
|
|
168
|
+
destinationIntentDepositTxHash?: string;
|
|
169
|
+
originIntentDepositTxExplorerUrl?: string;
|
|
170
|
+
destinationIntentDepositTxExplorerUrl?: string;
|
|
171
|
+
balances?: Array<{
|
|
172
|
+
intentAddress: string;
|
|
173
|
+
chainId: number;
|
|
174
|
+
tokens: Array<{
|
|
175
|
+
contractAddress: string;
|
|
176
|
+
balance: string;
|
|
177
|
+
balanceUsd?: string;
|
|
178
|
+
decimals: number;
|
|
179
|
+
chainId: number;
|
|
180
|
+
symbol: string;
|
|
181
|
+
}>;
|
|
182
|
+
}>;
|
|
183
|
+
hasBalance?: boolean;
|
|
184
|
+
intentProtocol?: string;
|
|
185
|
+
edge?: {
|
|
186
|
+
rail: string;
|
|
187
|
+
mode: string;
|
|
188
|
+
token?: {
|
|
189
|
+
symbol: string;
|
|
190
|
+
name: string;
|
|
191
|
+
decimals: number;
|
|
192
|
+
imageUrl: string;
|
|
193
|
+
chainId: number;
|
|
194
|
+
};
|
|
195
|
+
tokenAmount?: string;
|
|
196
|
+
userAddress?: string;
|
|
197
|
+
initTransactionHash?: string;
|
|
198
|
+
fillTransactionHash?: string;
|
|
199
|
+
refundTransactionHash?: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
type IntentTransactionHistoryResponse = {
|
|
203
|
+
page?: {
|
|
204
|
+
page?: number;
|
|
205
|
+
pageSize?: number;
|
|
206
|
+
more?: boolean;
|
|
207
|
+
};
|
|
208
|
+
transactions: IntentTransaction$1[];
|
|
209
|
+
};
|
|
210
|
+
type UseAccountTransactionHistoryParams = {
|
|
211
|
+
chainId?: number | null;
|
|
212
|
+
accountAddress?: string | null;
|
|
213
|
+
pageSize?: number;
|
|
214
|
+
page?: number;
|
|
215
|
+
includeMetadata?: boolean;
|
|
216
|
+
abortSignal?: AbortSignal;
|
|
217
|
+
refetchInterval?: number | false;
|
|
218
|
+
};
|
|
219
|
+
type UseAccountTransactionHistoryReturn = {
|
|
220
|
+
data: TransactionHistoryResponse | undefined;
|
|
221
|
+
isLoading: boolean;
|
|
222
|
+
error: Error | null;
|
|
223
|
+
};
|
|
224
|
+
declare function useAccountTransactionHistory({
|
|
225
|
+
chainId,
|
|
226
|
+
accountAddress,
|
|
227
|
+
pageSize,
|
|
228
|
+
page,
|
|
229
|
+
includeMetadata,
|
|
230
|
+
abortSignal,
|
|
231
|
+
refetchInterval
|
|
232
|
+
}: UseAccountTransactionHistoryParams): UseAccountTransactionHistoryReturn;
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region src/error.d.ts
|
|
235
|
+
declare function getFullErrorMessage(err: any): string;
|
|
236
|
+
type TrailsErrorBoundary = "sdk" | "wallet" | "rpc" | "network" | "trails-api" | "onramp-api";
|
|
237
|
+
type TrailsApiBoundary = Extract<TrailsErrorBoundary, "trails-api" | "onramp-api">;
|
|
238
|
+
type TrailsSdkErrorCode = "balance.insufficient" | "chain.add" | "chain.switch" | "clipboard.copy" | "quote.request" | "quote.timeout" | "receipt-poller.on-deposit-transaction-found" | "receipt-poller.on-destination-transaction-found" | "receipt-poller.on-origin-transaction-found" | "receipt-poller.on-receipt-update" | "receipt-poller.poll" | "receipt-poller.wait" | "send.process" | "send.submit" | "send.transaction-state-change" | "send.wallet-confirm-retry" | "wallet.user-rejected";
|
|
239
|
+
type TrailsErrorCode = TrailsSdkErrorCode | string;
|
|
240
|
+
type TrailsErrorOptions = {
|
|
241
|
+
boundary?: TrailsErrorBoundary;
|
|
242
|
+
code?: TrailsErrorCode;
|
|
243
|
+
cause?: unknown;
|
|
244
|
+
details?: Record<string, unknown>;
|
|
245
|
+
};
|
|
246
|
+
declare class TrailsError extends Error {
|
|
247
|
+
boundary?: TrailsErrorBoundary;
|
|
248
|
+
code?: TrailsErrorCode;
|
|
249
|
+
details?: Record<string, unknown>;
|
|
250
|
+
constructor(message: string, options?: TrailsErrorOptions);
|
|
251
|
+
}
|
|
252
|
+
declare function isTrailsError(err: unknown): err is TrailsError;
|
|
253
|
+
type TrailsApiClientErrorOptions = TrailsErrorOptions & {
|
|
254
|
+
boundary: TrailsApiBoundary;
|
|
255
|
+
code: TrailsErrorCode;
|
|
256
|
+
apiName: string;
|
|
257
|
+
apiCode: number;
|
|
258
|
+
apiStatus: number;
|
|
259
|
+
};
|
|
260
|
+
declare class TrailsApiClientError extends TrailsError {
|
|
261
|
+
boundary: TrailsApiBoundary;
|
|
262
|
+
apiName: string;
|
|
263
|
+
apiCode: number;
|
|
264
|
+
apiStatus: number;
|
|
265
|
+
constructor(message: string, options: TrailsApiClientErrorOptions);
|
|
266
|
+
}
|
|
267
|
+
declare function isTrailsApiClientError(err: unknown): err is TrailsApiClientError;
|
|
268
|
+
declare function getErrorBoundary(err: unknown): TrailsErrorBoundary | null;
|
|
269
|
+
declare function getErrorCode(err: unknown): TrailsErrorCode | null;
|
|
270
|
+
declare function getIsUserRejectionError(err: unknown): err is UserRejectionError;
|
|
271
|
+
declare function getIsBalanceTooLowError(err: unknown): boolean;
|
|
272
|
+
type SpecializedTrailsErrorOptions = Pick<TrailsErrorOptions, "boundary" | "cause" | "code" | "details">;
|
|
273
|
+
declare class InsufficientBalanceError extends TrailsError {
|
|
274
|
+
constructor(message: string, options?: SpecializedTrailsErrorOptions);
|
|
275
|
+
}
|
|
276
|
+
declare class UserRejectionError extends TrailsError {
|
|
277
|
+
constructor(message: string, options?: SpecializedTrailsErrorOptions);
|
|
278
|
+
}
|
|
279
|
+
declare function getIsApiError(err: unknown): boolean;
|
|
280
|
+
declare function getIsRateLimitedError(err: unknown): boolean;
|
|
281
|
+
declare function getIsRequiredAmountNotMetError(err: unknown): boolean;
|
|
282
|
+
declare function getIsNoAvailableQuoteError(err: unknown): boolean;
|
|
283
|
+
declare function getIsQuoteFailedError(err: unknown): boolean;
|
|
284
|
+
declare function getIsQuoteTokenError(err: unknown): boolean;
|
|
285
|
+
declare function getIsQuoteInputError(err: unknown): boolean;
|
|
286
|
+
declare function getIsInsufficientLiquidityError(err: unknown): boolean;
|
|
287
|
+
declare function getIsWalletAlreadyConnectedError(err: unknown): boolean;
|
|
288
|
+
declare function getPrettifiedErrorMessage(err: unknown, defaultMessage?: string): string;
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region src/hooks/useCheckout.d.ts
|
|
291
|
+
type CheckoutOnHandlers = {
|
|
292
|
+
/** Triggered when the intent transaction process starts. */triggerCheckoutStart: () => void; /** Triggered when a quote is received. */
|
|
293
|
+
triggerCheckoutQuote: (quote: PrepareSendQuote) => void; /** Triggered when a signature is requested. */
|
|
294
|
+
triggerCheckoutSignatureRequest: () => void; /** Triggered when a signature is confirmed. */
|
|
295
|
+
triggerCheckoutSignatureConfirmed: () => void; /** Triggered when a signature is rejected. */
|
|
296
|
+
triggerCheckoutSignatureRejected: (error: unknown) => void; /** Triggered when a token approval is requested. */
|
|
297
|
+
triggerCheckoutApprovalRequest: () => void; /** Triggered when a token approval is confirmed. */
|
|
298
|
+
triggerCheckoutApprovalConfirmed: (transactionHash: `0x${string}`) => void; /** Triggered when a token approval is rejected. */
|
|
299
|
+
triggerCheckoutApprovalRejected: (error: unknown) => void; /** Triggered when the intent transaction process completes. */
|
|
300
|
+
triggerCheckoutComplete: (txStatus: "success" | "fail", accountAddress?: string) => void; /** Triggered when an error occurs. */
|
|
301
|
+
triggerCheckoutError: (error: string) => void; /** Triggered when the intent transaction states change. */
|
|
302
|
+
triggerCheckoutStatusUpdate: (transactionStates: TransactionState[]) => void;
|
|
303
|
+
};
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region src/chainRegistry.d.ts
|
|
306
|
+
interface Chain$1 extends Chain {
|
|
307
|
+
imageUrl?: string;
|
|
308
|
+
}
|
|
309
|
+
declare function getAllChains(): readonly [Chain$1, ...Chain$1[]];
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/chainRpcClient.d.ts
|
|
312
|
+
declare const getRpcUrl: (chainId: number, sequenceProjectAccessKey: string, sequenceNodeGatewayUrl: string) => string | null;
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region src/chains.d.ts
|
|
315
|
+
/**
|
|
316
|
+
* Create a public RPC client for a chain using Sequence RPC URLs
|
|
317
|
+
* This is a temporary solution to use global config for RPC URLs
|
|
318
|
+
* @param chainId - The chain ID to create the public client for
|
|
319
|
+
* @param retryCount - The number of retry attempts for the RPC client
|
|
320
|
+
* @returns Viem PublicClient configured with Sequence RPC URL if available
|
|
321
|
+
*/
|
|
322
|
+
declare function getPublicClient(chainId: number, retryCount?: number): PublicClient;
|
|
323
|
+
declare function getChainInfo(chainId?: number, options?: {
|
|
324
|
+
usePublicRpc?: boolean;
|
|
325
|
+
sequenceProjectAccessKey?: string;
|
|
326
|
+
sequenceNodeGatewayUrl?: string;
|
|
327
|
+
}): Chain$1 | null;
|
|
328
|
+
declare function getSupportedChains(config?: {
|
|
329
|
+
trailsApiUrl?: string;
|
|
330
|
+
trailsApiKey?: string;
|
|
331
|
+
}): Promise<Chain$1[]>;
|
|
332
|
+
//#endregion
|
|
333
|
+
//#region src/fees.d.ts
|
|
334
|
+
interface FeeItem {
|
|
335
|
+
amount: string;
|
|
336
|
+
tokenSymbol: string;
|
|
337
|
+
tokenAddress: string;
|
|
338
|
+
chainId: number;
|
|
339
|
+
usdValue: string;
|
|
340
|
+
usdValueLocale?: string;
|
|
341
|
+
}
|
|
342
|
+
interface ProviderFeeItem {
|
|
343
|
+
id: string;
|
|
344
|
+
name: string;
|
|
345
|
+
url: string;
|
|
346
|
+
feeUsd: number;
|
|
347
|
+
usdValue: string;
|
|
348
|
+
usdValueLocale?: string;
|
|
349
|
+
isBridge: boolean;
|
|
350
|
+
}
|
|
351
|
+
interface TrailsFeeBreakdown {
|
|
352
|
+
originRelayFee?: FeeItem;
|
|
353
|
+
destinationRelayFee?: FeeItem;
|
|
354
|
+
providerFee?: FeeItem;
|
|
355
|
+
providerFees?: ProviderFeeItem[];
|
|
356
|
+
trailsFee?: FeeItem;
|
|
357
|
+
totalUsdValue?: string;
|
|
358
|
+
originChainId?: number;
|
|
359
|
+
destinationChainId?: number;
|
|
360
|
+
}
|
|
361
|
+
//#endregion
|
|
362
|
+
//#region src/widget/types/analytics.d.ts
|
|
363
|
+
interface OnrampTrackingData {
|
|
364
|
+
sessionId?: string;
|
|
365
|
+
provider: string;
|
|
366
|
+
sourceAmount: string;
|
|
367
|
+
sourceCurrencyCode: string;
|
|
368
|
+
destinationAmount: string;
|
|
369
|
+
destinationCurrencyCode: string;
|
|
370
|
+
exchangeRate: string;
|
|
371
|
+
networkFees?: string;
|
|
372
|
+
transactionFee?: string;
|
|
373
|
+
totalFees?: string;
|
|
374
|
+
countryCode: string;
|
|
375
|
+
paymentMethod?: string;
|
|
376
|
+
quoteId?: string;
|
|
377
|
+
walletAddress: string;
|
|
378
|
+
timestamp: string;
|
|
379
|
+
}
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region src/chainResolution.d.ts
|
|
382
|
+
type SupportedChainName = "ethereum" | "mainnet" | "base" | "arbitrum" | "arbitrum-nova" | "optimism" | "gnosis" | "polygon" | "avalanche" | "avalanche-c" | "bsc" | "binance" | "bnb" | "sonic" | "soneium" | "somnia" | "apechain" | "b3" | "katana" | "etherlink" | "monad" | "berachain" | "hyperevm" | "solana";
|
|
383
|
+
type ChainIdentifier = SupportedChainName | (string & {}) | number | Chain;
|
|
384
|
+
declare function resolveChainName(chainId: number): string;
|
|
385
|
+
declare function resolveChainId(chain: ChainIdentifier): number;
|
|
386
|
+
//#endregion
|
|
387
|
+
//#region src/hooks/useQuote.d.ts
|
|
388
|
+
/**
|
|
389
|
+
* Configuration options for the `useQuote` hook.
|
|
390
|
+
*
|
|
391
|
+
* All parameters are optional, but the hook will not fetch a quote until all required
|
|
392
|
+
* parameters are provided (connected wallet account or walletAddress, `from.token`,
|
|
393
|
+
* `from.chain`, `to.token`, `to.chain`, exactly one of
|
|
394
|
+
* `from.amount`/`from.amountRaw`/`to.amount`/`to.amountRaw`, and a
|
|
395
|
+
* destination recipient or owner address).
|
|
396
|
+
*/
|
|
397
|
+
type QuoteFrom = {
|
|
398
|
+
/** Token address or symbol (e.g. "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" or "USDC"). Use zero address or native symbol (e.g. "ETH") for native tokens. Symbols are resolved against the supported token list for the specified chain. */token: string; /** Chain ID, name (e.g. "base"), or viem Chain object. */
|
|
399
|
+
chain: ChainIdentifier;
|
|
400
|
+
/**
|
|
401
|
+
* Amount to spend, as a human-readable decimal string (e.g. `"1.5"`).
|
|
402
|
+
* Scaled to the source token's decimals internally via `parseUnits`.
|
|
403
|
+
*
|
|
404
|
+
* If provided, this is an EXACT_INPUT quote. Mutually exclusive with `to.amount`,
|
|
405
|
+
* `to.amountRaw`, and `from.amountRaw`.
|
|
406
|
+
*
|
|
407
|
+
* Precision matches the token's decimals exactly — for an 18-decimal token
|
|
408
|
+
* you can pass values down to `"0.000000000000000001"` (1 wei) without loss.
|
|
409
|
+
* If you already have a raw wei value, prefer `amountRaw` to skip the
|
|
410
|
+
* `formatUnits` → `parseUnits` round-trip and the decimals lookup.
|
|
411
|
+
*/
|
|
412
|
+
amount?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Raw amount in the source token's smallest unit (wei) as a `bigint` or
|
|
415
|
+
* integer-only numeric string (e.g. `1000000n` or `"1000000"` for 1 USDC).
|
|
416
|
+
*
|
|
417
|
+
* If provided, this is an EXACT_INPUT quote. Mutually exclusive with
|
|
418
|
+
* `from.amount`, `to.amount`, and `to.amountRaw`.
|
|
419
|
+
*
|
|
420
|
+
* Pass this when you already have a raw on-chain value (e.g. from a balance
|
|
421
|
+
* query, contract event, or another bigint source) — it skips the internal
|
|
422
|
+
* `parseUnits` step and avoids the supported-tokens registry / on-chain
|
|
423
|
+
* `decimals()` lookup that exists solely to scale `amount`. Pair with
|
|
424
|
+
* `decimals` if you also want to bypass decimals resolution downstream.
|
|
425
|
+
*/
|
|
426
|
+
amountRaw?: bigint | string;
|
|
427
|
+
/**
|
|
428
|
+
* Optional decimals override for the source token.
|
|
429
|
+
*
|
|
430
|
+
* Use this to skip the cold-path RPC for tokens not in the registry, or
|
|
431
|
+
* as a fallback when the RPC is unreliable.
|
|
432
|
+
*/
|
|
433
|
+
decimals?: number;
|
|
434
|
+
};
|
|
435
|
+
type QuoteTo = {
|
|
436
|
+
/** Token address or symbol (e.g. "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" or "USDC"). Use zero address or native symbol (e.g. "ETH") for native tokens. Symbols are resolved against the supported token list for the specified chain. */token: string; /** Chain ID, name (e.g. "arbitrum"), or viem Chain object. */
|
|
437
|
+
chain: ChainIdentifier;
|
|
438
|
+
/**
|
|
439
|
+
* Recipient address for the destination token. Defaults to the connected
|
|
440
|
+
* wallet address or walletAddress when omitted.
|
|
441
|
+
*
|
|
442
|
+
* Not supported with composable destination execution (`actions` or
|
|
443
|
+
* `to.calls`). In those modes, use per-action recipient fields instead.
|
|
444
|
+
*/
|
|
445
|
+
recipient?: string | null; /** Address to approve the destination token to. */
|
|
446
|
+
approve?: string | null;
|
|
447
|
+
/**
|
|
448
|
+
* @deprecated Use `to.calls` for raw custom calls or the top-level `actions` prop for pre-built DeFi actions (swap, lend, deposit, …).
|
|
449
|
+
*
|
|
450
|
+
* A single ABI-encoded calldata blob to execute on the destination chain after the funds land. Retained for backwards compatibility and will be removed in a future major release.
|
|
451
|
+
*/
|
|
452
|
+
calldata?: string | null;
|
|
453
|
+
/**
|
|
454
|
+
* Amount to receive, as a human-readable decimal string (e.g. `"1.5"`).
|
|
455
|
+
* Scaled to the destination token's decimals internally via `parseUnits`.
|
|
456
|
+
*
|
|
457
|
+
* If provided, this is an EXACT_OUTPUT quote. Mutually exclusive with
|
|
458
|
+
* `from.amount`, `from.amountRaw`, and `to.amountRaw`.
|
|
459
|
+
*
|
|
460
|
+
* Precision matches the token's decimals exactly — for an 18-decimal token
|
|
461
|
+
* you can pass values down to `"0.000000000000000001"` (1 wei) without loss.
|
|
462
|
+
* If you already have a raw wei value, prefer `amountRaw` to skip the
|
|
463
|
+
* `formatUnits` → `parseUnits` round-trip and the decimals lookup.
|
|
464
|
+
*/
|
|
465
|
+
amount?: string;
|
|
466
|
+
/**
|
|
467
|
+
* Raw amount in the destination token's smallest unit (wei) as a `bigint`
|
|
468
|
+
* or integer-only numeric string (e.g. `1000000n` or `"1000000"` for 1
|
|
469
|
+
* USDC).
|
|
470
|
+
*
|
|
471
|
+
* If provided, this is an EXACT_OUTPUT quote. Mutually exclusive with
|
|
472
|
+
* `to.amount`, `from.amount`, and `from.amountRaw`.
|
|
473
|
+
*
|
|
474
|
+
* Pass this when you already have a raw on-chain value (e.g. from a
|
|
475
|
+
* balance query, contract event, or another bigint source) — it skips the
|
|
476
|
+
* internal `parseUnits` step and avoids the supported-tokens registry /
|
|
477
|
+
* on-chain `decimals()` lookup that exists solely to scale `amount`. Pair
|
|
478
|
+
* with `decimals` if you also want to bypass decimals resolution
|
|
479
|
+
* downstream.
|
|
480
|
+
*/
|
|
481
|
+
amountRaw?: bigint | string;
|
|
482
|
+
/**
|
|
483
|
+
* Optional decimals override for the destination token.
|
|
484
|
+
*
|
|
485
|
+
* Resolution order: this field → supported-tokens registry → on-chain
|
|
486
|
+
* `decimals()` read → throw.
|
|
487
|
+
*
|
|
488
|
+
* Use this to skip the cold-path RPC for tokens not in the registry, or
|
|
489
|
+
* as a fallback when the RPC is unreliable. **You are responsible for
|
|
490
|
+
* passing the correct value** — a mismatch will silently produce
|
|
491
|
+
* wrong-magnitude amounts.
|
|
492
|
+
*/
|
|
493
|
+
decimals?: number;
|
|
494
|
+
/**
|
|
495
|
+
* Raw destination calls to execute on the destination chain after the funds land.
|
|
496
|
+
*
|
|
497
|
+
* Prefer the top-level `actions` prop for high-level DeFi primitives (swap, lend, deposit, …), reach for `calls` when you need to hand-roll ABI-encoded calls.
|
|
498
|
+
*/
|
|
499
|
+
calls?: (Call$1 | Call$1[])[] | null;
|
|
500
|
+
};
|
|
501
|
+
type UseQuoteProps = {
|
|
502
|
+
/** Optional connected viem wallet client override. If present, `walletClient.account.address` is the quote owner and takes priority over `walletAddress`. If omitted, the hook reads from the Trails wallet runtime when available. Required for executing swaps via `send()`. */walletClient?: WalletClient | null; /** Explicit wallet address. Used as the quote owner only when `walletClient.account.address` is unavailable. Pass this to show quote previews before or without a wallet connection. */
|
|
503
|
+
walletAddress?: string | null; /** Source token and chain configuration. */
|
|
504
|
+
from: QuoteFrom; /** Destination token and chain configuration. */
|
|
505
|
+
to: QuoteTo;
|
|
506
|
+
slippageTolerance?: string | number | null;
|
|
507
|
+
onStatusUpdate?: ((transactionStates: TransactionState[]) => void) | null; /** Swap provider (e.g. "LIFI", "CCTP", "RELAY"). */
|
|
508
|
+
swapProvider?: RouteProvider | null; /** Bridge provider (e.g. "LIFI", "CCTP", "RELAY"). */
|
|
509
|
+
bridgeProvider?: RouteProvider | null;
|
|
510
|
+
swapProviderFallback?: boolean;
|
|
511
|
+
bridgeProviderFallback?: boolean;
|
|
512
|
+
checkoutOnHandlers?: Partial<CheckoutOnHandlers>; /** Optional fee option selection (e.g., user selects USDC as the fee token instead of ETH) */
|
|
513
|
+
selectedFeeOption?: FeeOption | null;
|
|
514
|
+
abortSignal?: AbortSignal;
|
|
515
|
+
apiKey?: string | null;
|
|
516
|
+
nodeGatewayEnv?: "prod" | "dev" | "local" | "cors-anywhere";
|
|
517
|
+
isSmartWallet?: boolean | null;
|
|
518
|
+
fundMethod?: FundMethod$1 | null;
|
|
519
|
+
onramp?: OnrampTrackingData | null;
|
|
520
|
+
mode?: "pay" | "fund" | "earn" | "swap" | "withdraw" | null;
|
|
521
|
+
intentProtocolVersion?: IntentProtocolVersion | null;
|
|
522
|
+
/**
|
|
523
|
+
* Composable destination actions (`swap`, `lend`, `deposit`, `custom`,
|
|
524
|
+
* `assertCondition`). Resolved into destination calls internally.
|
|
525
|
+
*
|
|
526
|
+
* Mutually exclusive with `to.calls` and the deprecated `to.calldata`.
|
|
527
|
+
*
|
|
528
|
+
* @example
|
|
529
|
+
* ```ts
|
|
530
|
+
* import { swap, lend } from "0xtrails"
|
|
531
|
+
*
|
|
532
|
+
* const actions = [
|
|
533
|
+
* swap({
|
|
534
|
+
* tokenIn: "WETH",
|
|
535
|
+
* tokenOut: "USDC",
|
|
536
|
+
* amountOut: "1000",
|
|
537
|
+
* fee: "0.3"
|
|
538
|
+
* }),
|
|
539
|
+
* lend({ marketId: "base-usdc-aave-v3-lending", amount: "1000" }),
|
|
540
|
+
* ]
|
|
541
|
+
* ```
|
|
542
|
+
*/
|
|
543
|
+
actions?: ActionItem[];
|
|
544
|
+
/**
|
|
545
|
+
* When true, suppresses quote fetching regardless of other conditions.
|
|
546
|
+
* Use to block quotes during error states (e.g. edge→edge, recipient chain mismatch).
|
|
547
|
+
*/
|
|
548
|
+
disabled?: boolean;
|
|
549
|
+
};
|
|
550
|
+
/**
|
|
551
|
+
* Result returned by the `send` function from {@link useQuote}.
|
|
552
|
+
*
|
|
553
|
+
* Contains information about both the origin and destination transactions,
|
|
554
|
+
* including transaction hashes, explorer URLs, and receipts.
|
|
555
|
+
*/
|
|
556
|
+
type SwapReturn = {
|
|
557
|
+
originTransaction: {
|
|
558
|
+
transactionHash?: string | null;
|
|
559
|
+
explorerUrl?: string | null;
|
|
560
|
+
receipt: TransactionReceipt | IntentTransaction | null;
|
|
561
|
+
};
|
|
562
|
+
destinationTransaction: {
|
|
563
|
+
transactionHash?: string | null;
|
|
564
|
+
explorerUrl?: string | null;
|
|
565
|
+
receipt: IntentTransaction | null;
|
|
566
|
+
};
|
|
567
|
+
totalCompletionSeconds?: number;
|
|
568
|
+
};
|
|
569
|
+
/**
|
|
570
|
+
* Information about a quote provider (LiFi, CCTP, Relay, etc.) used for routing the swap.
|
|
571
|
+
*/
|
|
572
|
+
type RouteProviderInfo = {
|
|
573
|
+
id: string;
|
|
574
|
+
name: string;
|
|
575
|
+
url: string;
|
|
576
|
+
};
|
|
577
|
+
/**
|
|
578
|
+
* A quote object containing all the details about a Trails intent transaction.
|
|
579
|
+
*
|
|
580
|
+
* Includes token amounts, fees, price impact, estimated completion time,
|
|
581
|
+
* and other relevant information for displaying to the user.
|
|
582
|
+
*/
|
|
583
|
+
type Quote = {
|
|
584
|
+
/** Raw origin amount in smallest unit (wei). */originAmount: string; /** Minimum origin amount after slippage. */
|
|
585
|
+
originAmountMin: string; /** Raw destination amount in smallest unit (wei). */
|
|
586
|
+
destinationAmount: string; /** Minimum destination amount after slippage. */
|
|
587
|
+
destinationAmountMin: string; /** Origin amount formatted as USD string (e.g. "$1.23"). */
|
|
588
|
+
originAmountUsdDisplay: string; /** Destination amount formatted as USD string. */
|
|
589
|
+
destinationAmountUsdDisplay: string; /** Human-readable origin amount (e.g. "1.5"). */
|
|
590
|
+
originAmountDisplay: string; /** Human-readable destination amount. */
|
|
591
|
+
destinationAmountDisplay: string;
|
|
592
|
+
originAmountMinDisplay: string;
|
|
593
|
+
originAmountMinUsdFormatted: string;
|
|
594
|
+
originAmountMinUsdDisplay: string;
|
|
595
|
+
destinationAmountMinDisplay: string;
|
|
596
|
+
destinationAmountMinUsdFormatted: string;
|
|
597
|
+
destinationAmountMinUsdDisplay: string;
|
|
598
|
+
originAmountUsdFormatted: string;
|
|
599
|
+
destinationAmountUsdFormatted: string; /** Human-readable origin amount formatted with user locale. */
|
|
600
|
+
originAmountFormattedLocale?: string; /** Origin amount in USD formatted with user locale. */
|
|
601
|
+
originAmountUsdLocaleDisplay?: string; /** Human-readable destination amount formatted with user locale. */
|
|
602
|
+
destinationAmountFormattedLocale?: string; /** Destination amount in USD formatted with user locale. */
|
|
603
|
+
destinationAmountUsdLocaleDisplay?: string; /** Origin amount as a numeric USD value for calculations. */
|
|
604
|
+
originAmountUsd?: number; /** Human-readable origin amount (e.g. "1.5 USDC"). */
|
|
605
|
+
originAmountFormatted: string; /** Human-readable destination amount (e.g. "0.001 ETH"). */
|
|
606
|
+
destinationAmountFormatted: string; /** Intent protocol used for this quote. */
|
|
607
|
+
intentProtocol: string;
|
|
608
|
+
originToken: Token$1;
|
|
609
|
+
destinationToken: Token$1;
|
|
610
|
+
originChain: Chain$1;
|
|
611
|
+
destinationChain: Chain$1;
|
|
612
|
+
fees: PrepareSendFees;
|
|
613
|
+
slippageTolerance: string;
|
|
614
|
+
priceImpact: string;
|
|
615
|
+
priceImpactUsd: string | null;
|
|
616
|
+
priceImpactUsdDisplay: string;
|
|
617
|
+
priceImpactUsdLocaleDisplay?: string;
|
|
618
|
+
completionEstimateSeconds: number;
|
|
619
|
+
completionEstimateDisplay: string;
|
|
620
|
+
transactionStates: TransactionState[];
|
|
621
|
+
originTokenRate: string;
|
|
622
|
+
routeProviders: RouteProviderInfo[];
|
|
623
|
+
destinationTokenRate: string;
|
|
624
|
+
originTokenPriceUsd: number;
|
|
625
|
+
destinationTokenPriceUsd: number;
|
|
626
|
+
gasCostUsd: number | null;
|
|
627
|
+
gasCostUsdDisplay: string;
|
|
628
|
+
gasCost: string;
|
|
629
|
+
gasCostFormatted: string;
|
|
630
|
+
totalFeesUsd: number | null;
|
|
631
|
+
totalFeesUsdDisplay: string;
|
|
632
|
+
totalGasUsd: number | null;
|
|
633
|
+
totalGasUsdDisplay: string;
|
|
634
|
+
intentId: string | null;
|
|
635
|
+
edgeId: string | null;
|
|
636
|
+
originDepositAddress: string;
|
|
637
|
+
destinationDepositAddress: string;
|
|
638
|
+
destinationAddress: string;
|
|
639
|
+
destinationApproveAddress: string;
|
|
640
|
+
destinationCalldata: string;
|
|
641
|
+
trailsFeeBreakdown: TrailsFeeBreakdown | null;
|
|
642
|
+
originGasUsd: number | null;
|
|
643
|
+
originGasUsdDisplay: string;
|
|
644
|
+
destinationGasUsd: number | null;
|
|
645
|
+
destinationGasUsdDisplay: string;
|
|
646
|
+
providerFeeUsd: number | null;
|
|
647
|
+
providerFeeUsdDisplay: string;
|
|
648
|
+
trailsFeeUsd: number | null;
|
|
649
|
+
trailsFeeUsdDisplay: string;
|
|
650
|
+
totalProviderFeesUsd: number | null;
|
|
651
|
+
totalProviderFeesUsdDisplay: string;
|
|
652
|
+
totalGasUsdLocaleDisplay?: string;
|
|
653
|
+
originGasUsdLocaleDisplay?: string;
|
|
654
|
+
destinationGasUsdLocaleDisplay?: string;
|
|
655
|
+
totalProviderFeesUsdLocaleDisplay?: string;
|
|
656
|
+
providerFeeUsdLocaleDisplay?: string;
|
|
657
|
+
trailsFeeUsdLocaleDisplay?: string;
|
|
658
|
+
noSufficientBalance: boolean;
|
|
659
|
+
expiresAt: string | null;
|
|
660
|
+
priceImpactDetails: PriceImpactDetails | null;
|
|
661
|
+
passthroughEligible?: boolean;
|
|
662
|
+
passthroughTransactionStates?: TransactionState[];
|
|
663
|
+
};
|
|
664
|
+
/**
|
|
665
|
+
* Return type for the {@link useQuote} hook.
|
|
666
|
+
*
|
|
667
|
+
* Provides the quote data, send function, loading state, error information,
|
|
668
|
+
* and utility functions for managing the quote lifecycle.
|
|
669
|
+
*/
|
|
670
|
+
type SendOptions = {
|
|
671
|
+
/** Override the fee option for this transaction (e.g., pay gas in USDC instead of ETH). */selectedFeeOption?: FeeOption | null; /** Callback called when the wallet signature is confirmed and transaction is submitted. */
|
|
672
|
+
onOriginSend?: () => void; /** For onramp-meld flow, provide the deposit transaction hash directly. */
|
|
673
|
+
depositTransactionHash?: string; /** Skip committing the intent (used when intent is already committed). */
|
|
674
|
+
skipCommit?: boolean;
|
|
675
|
+
};
|
|
676
|
+
type UseQuoteReturn = {
|
|
677
|
+
/** The quote object with transaction details, or `null` if not available. */quote: Quote | null; /** A function to execute the transaction, or `null` if not available. Returns a Promise that resolves to transaction result with receipts. Accepts optional SendOptions to override fee option. */
|
|
678
|
+
send: ((options?: SendOptions) => Promise<SwapReturn | null>) | null; /** Boolean indicating if a quote is currently being fetched. */
|
|
679
|
+
isLoadingQuote: boolean; /** Typed error with a `code` property for programmatic handling, or `null`. */
|
|
680
|
+
quoteError: QuoteError | null; /** A user-friendly error message string (empty string when no error). */
|
|
681
|
+
quoteErrorPrettified: string; /** Function to manually refetch the quote (useful for refreshing stale quotes). */
|
|
682
|
+
refetchQuote: () => Promise<void>; /** Function to abort any in-flight quote requests. */
|
|
683
|
+
abort: () => void; /** Fee options available for this quote (e.g., pay gas in different tokens). */
|
|
684
|
+
feeOptions: FeeOption[]; /** Whether the recipient address is a contract (null if not yet checked). */
|
|
685
|
+
isRecipientContract: boolean | null; /** Whether the sender address is a contract on the origin chain (null if not yet checked). */
|
|
686
|
+
isSenderContractOnOrigin: boolean | null; /** Whether the sender address is a contract on the destination chain (null if not yet checked). */
|
|
687
|
+
isSenderContractOnDestination: boolean | null; /** True when destination is an edge rail but calldata is also present (incompatible — quote disabled). */
|
|
688
|
+
isEdgeDestinationWithCalldata: boolean;
|
|
689
|
+
};
|
|
690
|
+
/**
|
|
691
|
+
* React hook for fetching quotes and executing cross-chain or same-chain intent transactions.
|
|
692
|
+
*
|
|
693
|
+
* This hook provides a simple interface to get quotes for intent transactions and execute them.
|
|
694
|
+
* It handles both cross-chain and same-chain intent transactions, automatically fetching token balances,
|
|
695
|
+
* calculating fees, and providing transaction state updates.
|
|
696
|
+
*
|
|
697
|
+
* ## Required providers
|
|
698
|
+
*
|
|
699
|
+
* This hook **must** be rendered inside the following providers:
|
|
700
|
+
*
|
|
701
|
+
* 1. **`QueryClientProvider`** (@tanstack/react-query) — supplies the React Query cache
|
|
702
|
+
* 2. **`TrailsProvider`** — supplies the API key, SDK configuration, and wallet integration
|
|
703
|
+
*
|
|
704
|
+
* `TrailsProvider` mounts the built-in wallet runtime by default, so
|
|
705
|
+
* address-driven reads work without extra setup and execution can light up
|
|
706
|
+
* once a wallet connects. Add `config.adapters` only when this hook should
|
|
707
|
+
* share a host-owned wallet runtime instead.
|
|
708
|
+
*
|
|
709
|
+
* ```tsx
|
|
710
|
+
* import { TrailsProvider } from '0xtrails'
|
|
711
|
+
*
|
|
712
|
+
* <QueryClientProvider client={queryClient}>
|
|
713
|
+
* <TrailsProvider config={{ trailsApiKey: 'YOUR_KEY' }}>
|
|
714
|
+
* <YourComponent />
|
|
715
|
+
* </TrailsProvider>
|
|
716
|
+
* </QueryClientProvider>
|
|
717
|
+
* ```
|
|
718
|
+
*
|
|
719
|
+
* Optional host-runtime integration:
|
|
720
|
+
*
|
|
721
|
+
* ```tsx
|
|
722
|
+
* import { TrailsProvider } from '0xtrails'
|
|
723
|
+
* import { wagmiAdapter } from '@0xtrails/adapter-wagmi'
|
|
724
|
+
*
|
|
725
|
+
* <QueryClientProvider client={queryClient}>
|
|
726
|
+
* <TrailsProvider
|
|
727
|
+
* config={{
|
|
728
|
+
* trailsApiKey: 'YOUR_KEY',
|
|
729
|
+
* adapters: [wagmiAdapter({ wagmiConfig })],
|
|
730
|
+
* }}
|
|
731
|
+
* >
|
|
732
|
+
* <YourComponent />
|
|
733
|
+
* </TrailsProvider>
|
|
734
|
+
* </QueryClientProvider>
|
|
735
|
+
* ```
|
|
736
|
+
*
|
|
737
|
+
* ## Destination execution modes
|
|
738
|
+
*
|
|
739
|
+
* Three mutually-exclusive ways to execute logic on the destination chain after the funds land:
|
|
740
|
+
*
|
|
741
|
+
* 1. **`actions`** (recommended, composable) — high-level DeFi primitives
|
|
742
|
+
* (`swap`, `lend`, `deposit`, `custom`, `assertCondition`). Resolved into destination calls internally.
|
|
743
|
+
* 2. **`to.calls`** — array of raw `{ to, data, value }` calls when you need hand-rolled
|
|
744
|
+
* ABI-encoded transactions. Use for bespoke integrations not covered by the action factories.
|
|
745
|
+
* 3. **`to.calldata`** — ⚠️ **deprecated**. A single ABI-encoded calldata blob. Retained for
|
|
746
|
+
* backwards compatibility; migrate to `calls` (or `actions`) in new code.
|
|
747
|
+
*
|
|
748
|
+
* Specifying more than one of these at a time throws a configuration error.
|
|
749
|
+
*
|
|
750
|
+
* ## Error handling
|
|
751
|
+
*
|
|
752
|
+
* The `quoteError` field is a {@link QuoteError} instance with a typed `code` property.
|
|
753
|
+
* Use `quoteError.code` to programmatically distinguish failure modes:
|
|
754
|
+
*
|
|
755
|
+
* ```ts
|
|
756
|
+
* if (quoteError?.code === 'INSUFFICIENT_LIQUIDITY') { ... }
|
|
757
|
+
* if (quoteError?.code === 'NO_ROUTE') { ... }
|
|
758
|
+
* ```
|
|
759
|
+
*
|
|
760
|
+
* @example
|
|
761
|
+
* Exact input (spend 1 USDC from Base) — human-readable string:
|
|
762
|
+
* ```tsx
|
|
763
|
+
* const { quote, send } = useQuote({
|
|
764
|
+
* from: {
|
|
765
|
+
* token: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913', // USDC
|
|
766
|
+
* chain: 8453, // Base
|
|
767
|
+
* amount: '1', // 1 USDC — EXACT_INPUT
|
|
768
|
+
* },
|
|
769
|
+
* to: {
|
|
770
|
+
* token: '0x0000000000000000000000000000000000000000', // ETH
|
|
771
|
+
* chain: 42161, // Arbitrum
|
|
772
|
+
* recipient: address,
|
|
773
|
+
* },
|
|
774
|
+
* slippageTolerance: '0.005',
|
|
775
|
+
* onStatusUpdate: (states) => console.log(states),
|
|
776
|
+
* })
|
|
777
|
+
* ```
|
|
778
|
+
*
|
|
779
|
+
* @example
|
|
780
|
+
* Exact output (receive 0.001 ETH on Arbitrum):
|
|
781
|
+
* ```tsx
|
|
782
|
+
* const { quote, send } = useQuote({
|
|
783
|
+
* from: {
|
|
784
|
+
* token: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913',
|
|
785
|
+
* chain: 8453,
|
|
786
|
+
* },
|
|
787
|
+
* to: {
|
|
788
|
+
* token: '0x0000000000000000000000000000000000000000',
|
|
789
|
+
* chain: 42161,
|
|
790
|
+
* recipient: address,
|
|
791
|
+
* amount: '0.001', // 0.001 ETH — EXACT_OUTPUT
|
|
792
|
+
* },
|
|
793
|
+
* })
|
|
794
|
+
* ```
|
|
795
|
+
*
|
|
796
|
+
* @example
|
|
797
|
+
* Using token symbols instead of addresses:
|
|
798
|
+
* ```tsx
|
|
799
|
+
* const { quote, send } = useQuote({
|
|
800
|
+
* from: {
|
|
801
|
+
* token: 'USDC',
|
|
802
|
+
* chain: 'base',
|
|
803
|
+
* amount: '1', // 1 USDC
|
|
804
|
+
* },
|
|
805
|
+
* to: {
|
|
806
|
+
* token: 'ETH',
|
|
807
|
+
* chain: 'arbitrum',
|
|
808
|
+
* recipient: address,
|
|
809
|
+
* },
|
|
810
|
+
* })
|
|
811
|
+
* ```
|
|
812
|
+
*
|
|
813
|
+
* @example
|
|
814
|
+
* Raw bigint amounts — skips `parseUnits` and the decimals registry/RPC
|
|
815
|
+
* lookup when paired with `from.decimals`. Pass this when you already have
|
|
816
|
+
* a raw on-chain value (e.g. from a balance query or contract event):
|
|
817
|
+
* ```tsx
|
|
818
|
+
* const { quote, send } = useQuote({
|
|
819
|
+
* from: {
|
|
820
|
+
* token: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913', // USDC
|
|
821
|
+
* chain: 8453,
|
|
822
|
+
* amountRaw: 1_000_000n, // 1 USDC (6 decimals) — EXACT_INPUT
|
|
823
|
+
* decimals: 6,
|
|
824
|
+
* },
|
|
825
|
+
* to: {
|
|
826
|
+
* token: '0x0000000000000000000000000000000000000000',
|
|
827
|
+
* chain: 42161,
|
|
828
|
+
* recipient: address,
|
|
829
|
+
* },
|
|
830
|
+
* })
|
|
831
|
+
* ```
|
|
832
|
+
*
|
|
833
|
+
* @example
|
|
834
|
+
* Composable actions on the destination chain (swap + lend):
|
|
835
|
+
* ```tsx
|
|
836
|
+
* import { swap, lend } from '0xtrails'
|
|
837
|
+
*
|
|
838
|
+
* const { quote, send } = useQuote({
|
|
839
|
+
* from: { token: 'USDC', chain: 'base' },
|
|
840
|
+
* to: {
|
|
841
|
+
* token: 'USDC',
|
|
842
|
+
* chain: 'arbitrum',
|
|
843
|
+
* amount: '50', // 50 USDC
|
|
844
|
+
* },
|
|
845
|
+
* actions: [
|
|
846
|
+
* swap({
|
|
847
|
+
* tokenIn: 'USDC',
|
|
848
|
+
* tokenOut: 'WETH',
|
|
849
|
+
* amountIn: '25', // EXACT_INPUT (inferred)
|
|
850
|
+
* }),
|
|
851
|
+
* lend({
|
|
852
|
+
* marketId: 'arbitrum-usdc-aave-v3-lending',
|
|
853
|
+
* amount: '25',
|
|
854
|
+
* }),
|
|
855
|
+
* ],
|
|
856
|
+
* })
|
|
857
|
+
* ```
|
|
858
|
+
*
|
|
859
|
+
* @param props - Configuration options for the quote
|
|
860
|
+
* @param props.walletClient - Optional viem `WalletClient` override. If provided, its account address is the quote owner. If omitted, uses the connected wallet client from the Trails wallet runtime when available.
|
|
861
|
+
* @param props.walletAddress - Optional owner address for quote previews before or without a wallet connection. Ignored when a wallet client account address is available.
|
|
862
|
+
* @param props.from - Source token, chain, and optional `amount` (human-readable decimal string) or `amountRaw` (bigint | integer-only string in wei) for EXACT_INPUT
|
|
863
|
+
* @param props.to - Destination token, chain, recipient, and optional `amount` or `amountRaw` for EXACT_OUTPUT
|
|
864
|
+
* @param props.actions - Optional composable destination actions built with the `swap`/`lend`/`deposit`/`custom`/`assertCondition` factories (mutually exclusive with `to.calls` and the deprecated `to.calldata`)
|
|
865
|
+
* @param props.slippageTolerance - Slippage tolerance as a decimal string or number (e.g., '0.005' for 0.5%)
|
|
866
|
+
* @param props.onStatusUpdate - Optional callback for transaction state updates
|
|
867
|
+
* @param props.swapProvider - Optional swap provider ID
|
|
868
|
+
* @param props.bridgeProvider - Optional bridge provider ID
|
|
869
|
+
* @param props.abortSignal - Optional AbortSignal to cancel the quote request
|
|
870
|
+
*
|
|
871
|
+
* @returns An object containing:
|
|
872
|
+
* - `quote` — The quote object with transaction details, or `null` if not available
|
|
873
|
+
* - `send` — A function to execute the transaction, or `null` if not available
|
|
874
|
+
* - `isLoadingQuote` — Boolean indicating if a quote is currently being fetched
|
|
875
|
+
* - `quoteError` — A {@link QuoteError} with a typed `code`, or `null`
|
|
876
|
+
* - `quoteErrorPrettified` — A user-friendly error message string
|
|
877
|
+
* - `refetchQuote` — Function to manually refetch the quote
|
|
878
|
+
* - `abort` — Function to abort any in-flight quote requests
|
|
879
|
+
* - `feeOptions` — Fee options available for this quote
|
|
880
|
+
*
|
|
881
|
+
* @remarks
|
|
882
|
+
* - The hook uses React Query internally, so quotes are cached and automatically refetched based on query key changes
|
|
883
|
+
* - The hook will not fetch a quote until all required parameters are provided (connected wallet account or walletAddress, source/destination tokens and chains, one amount side, and a destination recipient or owner address). Missing parameters are logged as a console warning.
|
|
884
|
+
* - `walletAddress` supports quote previews without a wallet connection. `send` remains unavailable until a real wallet client is connected.
|
|
885
|
+
* - For native tokens (ETH, MATIC, etc.), use the zero address (`0x0000000000000000000000000000000000000000`) or the native currency symbol (e.g. `"ETH"`)
|
|
886
|
+
* - Token symbols are resolved against the supported token list for the specified chain. If a symbol is not found, the quote will not fire. Prefer addresses in production for deterministic asset selection
|
|
887
|
+
*
|
|
888
|
+
* @throws {QuoteError} When the quote request fails. The error `code` discriminates the failure mode.
|
|
889
|
+
*
|
|
890
|
+
* @see {@link QuoteError} for the error class
|
|
891
|
+
* @see {@link QuoteErrorCode} for available error codes
|
|
892
|
+
* @see {@link Quote} for the quote object structure
|
|
893
|
+
* @see {@link SwapReturn} for the swap result structure
|
|
894
|
+
*
|
|
895
|
+
* For more information go to {@link https://docs.trails.build/sdk/hooks#usequote-hook}
|
|
896
|
+
*/
|
|
897
|
+
declare function useQuote({
|
|
898
|
+
walletClient,
|
|
899
|
+
walletAddress,
|
|
900
|
+
from,
|
|
901
|
+
to,
|
|
902
|
+
actions,
|
|
903
|
+
slippageTolerance,
|
|
904
|
+
onStatusUpdate,
|
|
905
|
+
checkoutOnHandlers,
|
|
906
|
+
swapProvider,
|
|
907
|
+
bridgeProvider,
|
|
908
|
+
swapProviderFallback,
|
|
909
|
+
bridgeProviderFallback,
|
|
910
|
+
selectedFeeOption,
|
|
911
|
+
nodeGatewayEnv,
|
|
912
|
+
abortSignal: externalAbortSignal,
|
|
913
|
+
apiKey,
|
|
914
|
+
isSmartWallet,
|
|
915
|
+
fundMethod,
|
|
916
|
+
onramp,
|
|
917
|
+
mode,
|
|
918
|
+
intentProtocolVersion,
|
|
919
|
+
disabled
|
|
920
|
+
}: UseQuoteProps): UseQuoteReturn;
|
|
921
|
+
//#endregion
|
|
922
|
+
//#region src/plugins/edgeWallet.d.ts
|
|
923
|
+
/** Per-rail origin wallet configs passed into intent execution. */
|
|
924
|
+
type EdgeWalletConfigs = {
|
|
925
|
+
[EDGE_RAIL.SOLANA]?: Extract<EdgeOriginConfig, {
|
|
926
|
+
rail: typeof EDGE_RAIL.SOLANA;
|
|
927
|
+
}>;
|
|
928
|
+
};
|
|
929
|
+
declare function toEdgeWalletConfigs(origin: EdgeOriginConfig | null | undefined): EdgeWalletConfigs | undefined;
|
|
930
|
+
declare function getEdgeOriginConfig(wallets: EdgeWalletConfigs | undefined, rail: EdgeRailId): EdgeOriginConfig | undefined;
|
|
931
|
+
declare function buildEdgeQuoteRequestFromOriginConfig(origin: EdgeOriginConfig, input: {
|
|
932
|
+
originTokenMint: string;
|
|
933
|
+
edgeTradeType?: TradeType;
|
|
934
|
+
originTokenAmount?: bigint;
|
|
935
|
+
refundAddress?: string;
|
|
936
|
+
providerRelayOnly?: boolean;
|
|
937
|
+
}): EdgeQuoteRequest;
|
|
938
|
+
declare function buildEdgeQuoteRequestFromDestinationConfig(destination: EdgeDestinationConfig, input: {
|
|
939
|
+
destinationTokenAddress: string;
|
|
940
|
+
edgeTradeType?: TradeType;
|
|
941
|
+
originTokenAmount?: bigint;
|
|
942
|
+
}): EdgeQuoteRequest;
|
|
943
|
+
//#endregion
|
|
944
|
+
//#region src/transactionIntent/types.d.ts
|
|
945
|
+
type FundMethod$1 = "wallet" | "direct-transfer" | "onramp-mesh" | "onramp-bluvo" | "onramp-meld";
|
|
946
|
+
type IntentMode$1 = "pay" | "fund" | "earn" | "swap" | "withdraw";
|
|
947
|
+
type PrepareSendOptions = {
|
|
948
|
+
account: Account;
|
|
949
|
+
originTokenAddress: string;
|
|
950
|
+
originChainId: number;
|
|
951
|
+
originTokenBalance: string;
|
|
952
|
+
destinationChainId: number;
|
|
953
|
+
recipient: string;
|
|
954
|
+
destinationTokenAddress: string;
|
|
955
|
+
swapAmount: string;
|
|
956
|
+
tradeType?: TradeType$1;
|
|
957
|
+
originTokenSymbol: string;
|
|
958
|
+
destinationTokenSymbol: string;
|
|
959
|
+
sequenceProjectAccessKey?: string;
|
|
960
|
+
sequenceIndexerUrl?: string;
|
|
961
|
+
client?: TrailsWalletClient;
|
|
962
|
+
trailsClient: TrailsApi;
|
|
963
|
+
destinationApproveAddress?: string;
|
|
964
|
+
destinationCalldata?: string;
|
|
965
|
+
onTransactionStateChange: (transactionStates: TransactionState[]) => void;
|
|
966
|
+
sourceTokenPriceUsd?: number | null;
|
|
967
|
+
destinationTokenPriceUsd?: number | null;
|
|
968
|
+
sourceTokenDecimals: number;
|
|
969
|
+
destinationTokenDecimals: number;
|
|
970
|
+
slippageTolerance?: string;
|
|
971
|
+
originNativeTokenPriceUsd?: number | null;
|
|
972
|
+
swapProvider?: RouteProvider | null;
|
|
973
|
+
bridgeProvider?: RouteProvider | null;
|
|
974
|
+
swapProviderFallback?: boolean;
|
|
975
|
+
bridgeProviderFallback?: boolean;
|
|
976
|
+
intentProtocolVersion?: IntentProtocolVersion;
|
|
977
|
+
fundMethod?: FundMethod$1;
|
|
978
|
+
mode?: IntentMode$1;
|
|
979
|
+
originPublicClient?: PublicClient;
|
|
980
|
+
destinationPublicClient?: PublicClient;
|
|
981
|
+
checkoutOnHandlers?: Partial<CheckoutOnHandlers>;
|
|
982
|
+
refundAddress?: string;
|
|
983
|
+
selectedFeeOption?: FeeOption | null;
|
|
984
|
+
walletId?: string;
|
|
985
|
+
abortSignal?: AbortSignal;
|
|
986
|
+
isSmartWallet?: boolean;
|
|
987
|
+
isSenderContractOnOrigin?: boolean | null;
|
|
988
|
+
trailsApiKey?: string;
|
|
989
|
+
trailsApiUrl?: string;
|
|
990
|
+
sequenceMetadataUrl?: string;
|
|
991
|
+
onramp?: OnrampTrackingData | null;
|
|
992
|
+
isMultiCallEncoding?: boolean;
|
|
993
|
+
queryClient?: QueryClient;
|
|
994
|
+
commitIntentFn?: (intent: Intent) => Promise<CommitIntentResponse>;
|
|
995
|
+
executeIntentFn?: (params: {
|
|
996
|
+
intentId: string;
|
|
997
|
+
depositTransactionHash?: string;
|
|
998
|
+
depositSignature?: DepositSignature;
|
|
999
|
+
}) => Promise<ExecuteIntentResponse>;
|
|
1000
|
+
/**
|
|
1001
|
+
* Per-rail wallet/RPC config for edge quotes (e.g. `edge.solana` for Solana origin).
|
|
1002
|
+
*/
|
|
1003
|
+
edge?: EdgeWalletConfigs; /** Plugin that executes edge deposits. Provided by @0xtrails/svm via SvmPluginProvider. */
|
|
1004
|
+
edgePlugin?: EdgePlugin; /** Plugin for edge DESTINATION mode (EVM → Solana). Provided by @0xtrails/svm via SvmPluginProvider. */
|
|
1005
|
+
destinationEdgePlugin?: EdgePlugin;
|
|
1006
|
+
};
|
|
1007
|
+
type PrepareSendFees = {
|
|
1008
|
+
feeTokenAddress: string | null;
|
|
1009
|
+
totalFeeAmount: string | null;
|
|
1010
|
+
totalFeeAmountUsd: string | null;
|
|
1011
|
+
totalFeeAmountUsdDisplay: string | null;
|
|
1012
|
+
totalFeeAmountUsdLocaleDisplay?: string | null;
|
|
1013
|
+
};
|
|
1014
|
+
type PrepareSendQuote = {
|
|
1015
|
+
intentProtocol: IntentProtocolVersion;
|
|
1016
|
+
originDepositAddress: string;
|
|
1017
|
+
destinationDepositAddress: string;
|
|
1018
|
+
destinationAddress: string;
|
|
1019
|
+
destinationApproveAddress?: string;
|
|
1020
|
+
destinationCalldata: string;
|
|
1021
|
+
intentId?: string | null;
|
|
1022
|
+
edgeId?: string | null;
|
|
1023
|
+
expiresAt?: string | null;
|
|
1024
|
+
originChain: Chain;
|
|
1025
|
+
destinationChain: Chain;
|
|
1026
|
+
originAmount: string;
|
|
1027
|
+
originAmountDisplay: string;
|
|
1028
|
+
originAmountMin: string;
|
|
1029
|
+
originAmountMinDisplay: string;
|
|
1030
|
+
originAmountMinUsdFormatted: string;
|
|
1031
|
+
originAmountMinUsdDisplay: string;
|
|
1032
|
+
destinationAmount: string;
|
|
1033
|
+
destinationAmountDisplay: string;
|
|
1034
|
+
destinationAmountMin: string;
|
|
1035
|
+
destinationAmountMinDisplay: string;
|
|
1036
|
+
destinationAmountMinUsdFormatted: string;
|
|
1037
|
+
destinationAmountMinUsdDisplay: string;
|
|
1038
|
+
originAmountFormatted: string;
|
|
1039
|
+
originAmountFormattedLocale?: string;
|
|
1040
|
+
originAmountUsd?: number;
|
|
1041
|
+
fromAmountUsd?: number;
|
|
1042
|
+
originAmountUsdFormatted: string;
|
|
1043
|
+
originAmountUsdDisplay: string;
|
|
1044
|
+
originAmountUsdLocaleDisplay?: string;
|
|
1045
|
+
destinationAmountFormatted: string;
|
|
1046
|
+
destinationAmountFormattedLocale?: string;
|
|
1047
|
+
destinationAmountUsd?: number;
|
|
1048
|
+
toAmountUsd?: number;
|
|
1049
|
+
destinationAmountUsdFormatted: string;
|
|
1050
|
+
destinationAmountUsdDisplay: string;
|
|
1051
|
+
destinationAmountUsdLocaleDisplay?: string;
|
|
1052
|
+
originToken: Token$1;
|
|
1053
|
+
destinationToken: Token$1;
|
|
1054
|
+
fees: PrepareSendFees;
|
|
1055
|
+
slippageTolerance: string;
|
|
1056
|
+
maxSlippage?: number | null;
|
|
1057
|
+
priceImpact: string;
|
|
1058
|
+
priceImpactUsd?: string;
|
|
1059
|
+
priceImpactUsdDisplay: string;
|
|
1060
|
+
completionEstimateSeconds: number;
|
|
1061
|
+
completionEstimateDisplay: string;
|
|
1062
|
+
transactionStates: TransactionState[];
|
|
1063
|
+
passthroughTransactionStates?: TransactionState[];
|
|
1064
|
+
passthroughEligible?: boolean;
|
|
1065
|
+
gasCostUsd: number;
|
|
1066
|
+
gasCostUsdDisplay: string;
|
|
1067
|
+
gasCost: string;
|
|
1068
|
+
gasCostFormatted: string;
|
|
1069
|
+
originTokenRate: string;
|
|
1070
|
+
destinationTokenRate: string;
|
|
1071
|
+
originTokenPriceUsd: number;
|
|
1072
|
+
destinationTokenPriceUsd: number;
|
|
1073
|
+
routeProviders?: RouteProviderInfo[];
|
|
1074
|
+
noSufficientBalance: boolean;
|
|
1075
|
+
trailsFeeBreakdown?: TrailsFeeBreakdown | null;
|
|
1076
|
+
totalFeesUsd?: number;
|
|
1077
|
+
totalFeesUsdDisplay?: string;
|
|
1078
|
+
originGasUsd?: number;
|
|
1079
|
+
destinationGasUsd?: number;
|
|
1080
|
+
totalGasUsd?: number;
|
|
1081
|
+
providerFeeUsd?: number;
|
|
1082
|
+
trailsFeeUsd?: number;
|
|
1083
|
+
originGasUsdDisplay?: string;
|
|
1084
|
+
destinationGasUsdDisplay?: string;
|
|
1085
|
+
totalGasUsdDisplay?: string;
|
|
1086
|
+
providerFeeUsdDisplay?: string;
|
|
1087
|
+
trailsFeeUsdDisplay?: string;
|
|
1088
|
+
totalProviderFeesUsd?: number;
|
|
1089
|
+
totalProviderFeesUsdDisplay?: string;
|
|
1090
|
+
originGasUsdLocaleDisplay?: string;
|
|
1091
|
+
destinationGasUsdLocaleDisplay?: string;
|
|
1092
|
+
totalGasUsdLocaleDisplay?: string;
|
|
1093
|
+
providerFeeUsdLocaleDisplay?: string;
|
|
1094
|
+
trailsFeeUsdLocaleDisplay?: string;
|
|
1095
|
+
totalProviderFeesUsdLocaleDisplay?: string;
|
|
1096
|
+
priceImpactUsdLocaleDisplay?: string;
|
|
1097
|
+
priceImpactDetails?: PriceImpactDetails | null;
|
|
1098
|
+
};
|
|
1099
|
+
type PrepareSendReturn = {
|
|
1100
|
+
quote: PrepareSendQuote;
|
|
1101
|
+
feeOptions?: GasFeeOptions;
|
|
1102
|
+
send: ({
|
|
1103
|
+
onOriginSend,
|
|
1104
|
+
selectedFeeOption,
|
|
1105
|
+
depositTransactionHash,
|
|
1106
|
+
skipCommit
|
|
1107
|
+
}: {
|
|
1108
|
+
onOriginSend?: () => void;
|
|
1109
|
+
selectedFeeOption?: FeeOption | null;
|
|
1110
|
+
depositTransactionHash?: string;
|
|
1111
|
+
skipCommit?: boolean;
|
|
1112
|
+
}) => Promise<SendReturn>;
|
|
1113
|
+
};
|
|
1114
|
+
type SendReturn = {
|
|
1115
|
+
depositUserTxnReceipt: TransactionReceipt | null;
|
|
1116
|
+
originIntentTransaction: IntentTransaction | null;
|
|
1117
|
+
destinationIntentTransaction: IntentTransaction | null;
|
|
1118
|
+
totalCompletionSeconds?: number;
|
|
1119
|
+
};
|
|
1120
|
+
//#endregion
|
|
1121
|
+
//#region src/prepareSend.d.ts
|
|
1122
|
+
declare function prepareSend(options: PrepareSendOptions): Promise<PrepareSendReturn>;
|
|
1123
|
+
//#endregion
|
|
1124
|
+
//#region src/types/chain.d.ts
|
|
1125
|
+
/**
|
|
1126
|
+
* Supported chain families for chain-agnostic SDK types.
|
|
1127
|
+
*/
|
|
1128
|
+
declare const CHAIN_TYPE: {
|
|
1129
|
+
readonly EVM: "EVM";
|
|
1130
|
+
readonly SOLANA: "SOLANA";
|
|
1131
|
+
};
|
|
1132
|
+
type ChainType = (typeof CHAIN_TYPE)[keyof typeof CHAIN_TYPE];
|
|
1133
|
+
declare const SOLANA_MAINNET_CHAIN_ID = 101;
|
|
1134
|
+
declare function isSolanaChainId(chainId: number): boolean;
|
|
1135
|
+
/**
|
|
1136
|
+
* Chain-agnostic chain descriptor.
|
|
1137
|
+
* Every supported chain can be represented as a TrailsChain.
|
|
1138
|
+
*/
|
|
1139
|
+
interface TrailsChain {
|
|
1140
|
+
/** Unique numeric chain ID. Solana mainnet = 101, EVM chains use standard chain IDs. */
|
|
1141
|
+
chainId: number;
|
|
1142
|
+
/** Human-readable chain name. */
|
|
1143
|
+
name: string;
|
|
1144
|
+
/** Chain family. */
|
|
1145
|
+
chainType: ChainType;
|
|
1146
|
+
/** Native currency metadata. */
|
|
1147
|
+
nativeCurrency: {
|
|
1148
|
+
name: string;
|
|
1149
|
+
symbol: string;
|
|
1150
|
+
decimals: number;
|
|
1151
|
+
};
|
|
1152
|
+
/** Chain icon URL. */
|
|
1153
|
+
imageUrl?: string;
|
|
1154
|
+
/** Block explorer base URL. */
|
|
1155
|
+
explorerUrl?: string;
|
|
1156
|
+
}
|
|
1157
|
+
//#endregion
|
|
1158
|
+
//#region src/widget/providers/UnifiedWalletProvider.d.ts
|
|
1159
|
+
/**
|
|
1160
|
+
* Solana (SVM) signing + RPC surface passed as `solanaWallet` on `TrailsWidget`.
|
|
1161
|
+
* Transactions are signed as serialized Solana wire bytes, matching Wallet Standard.
|
|
1162
|
+
*/
|
|
1163
|
+
interface SolanaWalletContextValue {
|
|
1164
|
+
connected: boolean;
|
|
1165
|
+
connecting?: boolean;
|
|
1166
|
+
publicKey?: {
|
|
1167
|
+
toBase58(): string;
|
|
1168
|
+
} | null;
|
|
1169
|
+
signSerializedTransaction?: (transactionBytes: Uint8Array) => Promise<Uint8Array>;
|
|
1170
|
+
connection?: {
|
|
1171
|
+
rpcEndpoint?: string; /** Ordered list of fallback RPC endpoints to try if the primary fails. */
|
|
1172
|
+
rpcUrls?: string[];
|
|
1173
|
+
getLatestBlockhash?: (commitment?: string) => Promise<{
|
|
1174
|
+
blockhash: string;
|
|
1175
|
+
lastValidBlockHeight: number;
|
|
1176
|
+
}>;
|
|
1177
|
+
sendRawTransaction: (serializedTransaction: unknown, options?: unknown) => Promise<string>;
|
|
1178
|
+
} | null;
|
|
1179
|
+
walletId?: string;
|
|
1180
|
+
walletName?: string;
|
|
1181
|
+
walletIcon?: string;
|
|
1182
|
+
availableWallets?: Array<{
|
|
1183
|
+
walletId: string;
|
|
1184
|
+
walletName: string;
|
|
1185
|
+
walletIcon?: string;
|
|
1186
|
+
installUrl?: string;
|
|
1187
|
+
connected?: boolean;
|
|
1188
|
+
discovered?: boolean;
|
|
1189
|
+
}>;
|
|
1190
|
+
activeChain?: TrailsChain;
|
|
1191
|
+
connect?: ((walletId?: string) => Promise<{
|
|
1192
|
+
publicKey?: {
|
|
1193
|
+
toBase58(): string;
|
|
1194
|
+
} | null;
|
|
1195
|
+
} | undefined> | {
|
|
1196
|
+
publicKey?: {
|
|
1197
|
+
toBase58(): string;
|
|
1198
|
+
} | null;
|
|
1199
|
+
} | undefined) | null;
|
|
1200
|
+
disconnect?: (() => Promise<void> | void) | null;
|
|
1201
|
+
}
|
|
1202
|
+
/** Alias for {@link SolanaWalletContextValue} — SVM adapter shape for `solanaWallet`. */
|
|
1203
|
+
type SvmWalletAdapter = SolanaWalletContextValue;
|
|
1204
|
+
interface UnifiedWalletProviderProps {
|
|
1205
|
+
children: ReactNode;
|
|
1206
|
+
solanaWallet?: SolanaWalletContextValue | null;
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* Optional provider for **SVM (Solana)** wallet context that does not come from wagmi.
|
|
1210
|
+
* Supply the same object you pass as `TrailsWidget` `solanaWallet`.
|
|
1211
|
+
*/
|
|
1212
|
+
declare function UnifiedWalletProvider({
|
|
1213
|
+
children,
|
|
1214
|
+
solanaWallet
|
|
1215
|
+
}: UnifiedWalletProviderProps): import("react").JSX.Element;
|
|
1216
|
+
declare function useOptionalSolanaWalletContext(): SolanaWalletContextValue | null;
|
|
1217
|
+
/** Preferred name: SVM (Solana) adapter from context — same as {@link useOptionalSolanaWalletContext}. */
|
|
1218
|
+
declare function useOptionalSvmWalletContext(): SolanaWalletContextValue | null;
|
|
1219
|
+
//#endregion
|
|
1220
|
+
//#region src/hooks/useViewManager.d.ts
|
|
1221
|
+
type Mode = "pay" | "fund" | "earn" | "swap" | "withdraw";
|
|
1222
|
+
type Screen = "connect" | "tokens" | "select-origin-token" | "select-origin-amount" | "send-form" | "fund-form" | "fund-methods" | "mesh-exchanges" | "mesh-exchange-confirmation" | "mesh-session-options" | "payment-methods" | "select-funding-wallet" | "onramp-payment-methods" | "recipients" | "earn-pools" | "earn" | "swap" | "withdraw" | "wallet-confirmation" | "qr-code-wallet-select" | "direct-transfer-screen" | "onramp-meld" | "pending" | "receipt" | "onramp-mesh" | "onramp-bluvo" | "wallet-connect" | "wallet-list" | "wallet-connection-pending" | "connect-all-wallets" | "connect-wallet-variants" | "connect-error" | "account-history" | "account-settings" | "user-preferences" | "chain-list" | "disconnect" | "qrcode-options" | "meld-history" | "recover" | "onramp-confirmation";
|
|
1223
|
+
//#endregion
|
|
1224
|
+
export { getIsRateLimitedError as $, resolveChainName as A, TrailsErrorBoundary as B, SwapReturn as C, ChainIdentifier as D, useQuote as E, Chain$1 as F, getFullErrorMessage as G, UserRejectionError as H, getAllChains as I, getIsInsufficientLiquidityError as J, getIsApiError as K, InsufficientBalanceError as L, getPublicClient as M, getSupportedChains as N, SupportedChainName as O, getRpcUrl as P, getIsQuoteTokenError as Q, TrailsApiClientError as R, QuoteTo as S, UseQuoteReturn as T, getErrorBoundary as U, TrailsErrorCode as V, getErrorCode as W, getIsQuoteFailedError as X, getIsNoAvailableQuoteError as Y, getIsQuoteInputError as Z, buildEdgeQuoteRequestFromOriginConfig as _, UnifiedWalletProvider as a, isTrailsError as at, Quote as b, SOLANA_MAINNET_CHAIN_ID as c, IntentTransactionHistoryResponse as ct, prepareSend as d, UseAccountTransactionHistoryParams as dt, getIsRequiredAmountNotMetError as et, FundMethod$1 as f, UseAccountTransactionHistoryReturn as ft, buildEdgeQuoteRequestFromDestinationConfig as g, EdgeWalletConfigs as h, useAccountTransactionHistory as ht, SvmWalletAdapter as i, isTrailsApiClientError as it, getChainInfo as j, resolveChainId as k, isSolanaChainId as l, TransactionHistoryResponse as lt, TradeType$1 as m, getTxTimeDiff as mt, Screen as n, getIsWalletAlreadyConnectedError as nt, useOptionalSolanaWalletContext as o, GetAccountTransactionHistoryParams as ot, PrepareSendQuote as p, getAccountTransactionHistory as pt, getIsBalanceTooLowError as q, SolanaWalletContextValue as r, getPrettifiedErrorMessage as rt, useOptionalSvmWalletContext as s, IntentTransaction$1 as st, Mode as t, getIsUserRejectionError as tt, RouteProvider$1 as u, TransactionState as ut, getEdgeOriginConfig as v, UseQuoteProps as w, QuoteFrom as x, toEdgeWalletConfigs as y, TrailsError as z };
|