0xtrails 0.16.1 → 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,1232 @@
|
|
|
1
|
+
import { f as Call$1, h as ChainIdentifier, r as ActionItem } from "./types-BK0WkVnx.js";
|
|
2
|
+
import { a as GetProvidersParams, f as getEarnBalances, m as getEarnProviders, p as getEarnMarkets, r as GetMarketsParams, v as EarnBalanceQuery } from "./utils-KPnWBA9x.js";
|
|
3
|
+
import { t as Token$1 } from "./tokenTypes-D812t5L9.js";
|
|
4
|
+
import { t as QuoteError } from "./quoteError-CmTH5Qm2.js";
|
|
5
|
+
import { C as SwapReturn, D as ChainIdentifier$1, F as Chain$1, S as QuoteTo, st as IntentTransaction$1, w as UseQuoteProps, x as QuoteFrom } from "./useViewManager-BeUH_k1s.js";
|
|
6
|
+
import { Config, Context, GenericTree, Payload, Signature } from "@0xsequence/wallet-primitives";
|
|
7
|
+
import { DepositSignature, Intent, IntentReceipt, IntentStatus, Token, TokenPrice, TrailsApi } from "@0xtrails/api";
|
|
8
|
+
import { Chain, PublicClient, TransactionReceipt, WalletClient } from "viem";
|
|
9
|
+
import { UseQueryResult } from "@tanstack/react-query";
|
|
10
|
+
import { Address, Hex } from "ox";
|
|
11
|
+
import { NativeTokenBalance, Page, SequenceIndexerGateway, TokenBalance as TokenBalance$1 } from "@0xsequence/indexer";
|
|
12
|
+
import { GetMeldServiceProvidersRequest, TrailsOnrampRpcClient } from "@0xtrails/api/onramp";
|
|
13
|
+
|
|
14
|
+
//#region src/trailsClient.d.ts
|
|
15
|
+
type TrailsClientConfig = {
|
|
16
|
+
apiKey: string;
|
|
17
|
+
jwt?: string;
|
|
18
|
+
hostname?: string;
|
|
19
|
+
};
|
|
20
|
+
declare class TrailsClient extends TrailsApi {}
|
|
21
|
+
declare function getTrailsClient({
|
|
22
|
+
apiKey,
|
|
23
|
+
jwt,
|
|
24
|
+
hostname
|
|
25
|
+
}: TrailsClientConfig): TrailsClient;
|
|
26
|
+
declare const useTrailsClient: (configOverride?: Partial<TrailsClientConfig>) => TrailsClient;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/intentReceiptMonitor.d.ts
|
|
29
|
+
type IntentReceiptStatus = {
|
|
30
|
+
intentReceipt: IntentReceipt | null;
|
|
31
|
+
done: boolean;
|
|
32
|
+
isLoading: boolean;
|
|
33
|
+
isError: boolean;
|
|
34
|
+
error: Error | null;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Hook to monitor intent execution status using the WaitIntentReceipt API.
|
|
38
|
+
* This replaces the old useMetaTxnsMonitor approach which polled individual meta-transactions.
|
|
39
|
+
*
|
|
40
|
+
* The WaitIntentReceipt API is a long-polling endpoint that:
|
|
41
|
+
* - Blocks up to 28 seconds waiting for status changes
|
|
42
|
+
* - Returns unified status for both origin and destination transactions
|
|
43
|
+
* - Sets done=true when intent reaches terminal status (SUCCEEDED or FAILED)
|
|
44
|
+
*
|
|
45
|
+
* @param intentId - The intent ID to monitor (usually committedOriginIntentAddress)
|
|
46
|
+
* @param trailsClient - TrailsClient instance for API calls
|
|
47
|
+
* @returns IntentReceiptStatus with current receipt, done flag, and loading states
|
|
48
|
+
*/
|
|
49
|
+
declare const useIntentReceiptMonitor: (intentId: string | undefined, trailsClient: TrailsClient) => IntentReceiptStatus;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/hooks/useTrailsSendTransaction.d.ts
|
|
52
|
+
/**
|
|
53
|
+
* Origin (source) descriptor for a send.
|
|
54
|
+
*
|
|
55
|
+
* This is `useQuote`'s `QuoteFrom` verbatim, so the programmatic hook and the
|
|
56
|
+
* declarative widget mode wrappers (`<Fund>`, `<Pay>`, `<Earn>` `from`) share
|
|
57
|
+
* one shape (`chain`, `token`, `amount`). `amount` is a human-readable decimal
|
|
58
|
+
* string; `amountRaw`/`decimals` cover callers that already hold smallest-unit
|
|
59
|
+
* values.
|
|
60
|
+
*
|
|
61
|
+
* Note: there is no per-`from` wallet override here (the widget's
|
|
62
|
+
* `from.walletAddress`). This hook signs with the connected Trails wallet
|
|
63
|
+
* client. When no `from` is provided and `TrailsProvider` uses the built-in
|
|
64
|
+
* wallet runtime, the modal prompts the user to connect before token selection.
|
|
65
|
+
*
|
|
66
|
+
* Optional on `sendTransaction`: when omitted, the Trails modal opens so the
|
|
67
|
+
* user can choose the origin token, chain, and (for EXACT_INPUT) amount.
|
|
68
|
+
*/
|
|
69
|
+
type TrailsSendTransactionSource = QuoteFrom;
|
|
70
|
+
/**
|
|
71
|
+
* Destination descriptor for a send.
|
|
72
|
+
*
|
|
73
|
+
* This is `useQuote`'s `QuoteTo` verbatim, shared with the widget mode
|
|
74
|
+
* wrappers' `to` object (`chain`, `token`, `recipient`, `calldata`).
|
|
75
|
+
*
|
|
76
|
+
* - `chain` is the destination chain. **Composable `actions` always execute on
|
|
77
|
+
* this chain.**
|
|
78
|
+
* - `amount` (or `amountRaw`) makes the send EXACT_OUTPUT: the recipient
|
|
79
|
+
* receives exactly this amount and the modal only needs origin token
|
|
80
|
+
* selection. Omit it for EXACT_INPUT, where the modal also collects the
|
|
81
|
+
* origin amount. `amount` is a human-readable decimal string.
|
|
82
|
+
* - Native tokens: pass the native symbol (e.g. `"ETH"`) or the zero address
|
|
83
|
+
* as `token`.
|
|
84
|
+
*/
|
|
85
|
+
type TrailsSendTransactionDestination = QuoteTo;
|
|
86
|
+
type TrailsSendTransactionVariables = {
|
|
87
|
+
/**
|
|
88
|
+
* Origin token/chain/amount. Omit to let the user pick the payment token in
|
|
89
|
+
* the Trails modal.
|
|
90
|
+
*/
|
|
91
|
+
from?: TrailsSendTransactionSource; /** Destination token, chain, recipient, and optional receive amount. */
|
|
92
|
+
to: TrailsSendTransactionDestination;
|
|
93
|
+
};
|
|
94
|
+
type UseTrailsSendTransactionParameters = Omit<UseQuoteProps, "from" | "to" | "walletClient" | "selectedFeeOption"> & {
|
|
95
|
+
/**
|
|
96
|
+
* When `true` (default), and the quoted intent offers ERC-20 gas-fee tokens on
|
|
97
|
+
* an EVM origin chain, the modal shows a gas-fee selector on the confirmation
|
|
98
|
+
* screen so the user can choose to pay gas in a non-native token (e.g. USDC)
|
|
99
|
+
* before signing. Set to `false` to skip the selector and always pay native
|
|
100
|
+
* gas (the previous behavior).
|
|
101
|
+
*/
|
|
102
|
+
showFeeOptions?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Callback fired when the mutation is successful
|
|
105
|
+
*/
|
|
106
|
+
onSuccess?: (data: SwapReturn, variables: TrailsSendTransactionVariables) => void;
|
|
107
|
+
/**
|
|
108
|
+
* Callback fired when the mutation encounters an error
|
|
109
|
+
*/
|
|
110
|
+
onError?: (error: Error, variables: TrailsSendTransactionVariables) => void;
|
|
111
|
+
/**
|
|
112
|
+
* Callback fired when the mutation is either successfully fetched or encounters an error
|
|
113
|
+
*/
|
|
114
|
+
onSettled?: (data: SwapReturn | undefined, error: Error | null, variables: TrailsSendTransactionVariables) => void;
|
|
115
|
+
/**
|
|
116
|
+
* Custom text for the receipt action button (default: "Transact Again")
|
|
117
|
+
*/
|
|
118
|
+
receiptActionButtonText?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Custom callback when receipt action button is clicked
|
|
121
|
+
*/
|
|
122
|
+
onReceiptAction?: () => void;
|
|
123
|
+
};
|
|
124
|
+
type UseTrailsSendTransactionReturnType = {
|
|
125
|
+
sendTransaction: (variables: TrailsSendTransactionVariables, callbacks?: {
|
|
126
|
+
onSuccess?: (data: SwapReturn) => void;
|
|
127
|
+
onError?: (error: Error) => void;
|
|
128
|
+
onSettled?: (data: SwapReturn | undefined, error: Error | null) => void;
|
|
129
|
+
}) => void;
|
|
130
|
+
sendTransactionAsync: (variables: TrailsSendTransactionVariables, callbacks?: {
|
|
131
|
+
onSuccess?: (data: SwapReturn) => void;
|
|
132
|
+
onError?: (error: Error) => void;
|
|
133
|
+
onSettled?: (data: SwapReturn | undefined, error: Error | null) => void;
|
|
134
|
+
}) => Promise<SwapReturn>;
|
|
135
|
+
retry: () => void;
|
|
136
|
+
data: SwapReturn | undefined;
|
|
137
|
+
error: Error | null;
|
|
138
|
+
isPending: boolean;
|
|
139
|
+
isSuccess: boolean;
|
|
140
|
+
isError: boolean;
|
|
141
|
+
isIdle: boolean;
|
|
142
|
+
status: "idle" | "pending" | "error" | "success";
|
|
143
|
+
reset: () => void;
|
|
144
|
+
variables: TrailsSendTransactionVariables | undefined;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Hook for creating, signing, and sending transactions with the Trails SDK.
|
|
148
|
+
*
|
|
149
|
+
* `sendTransaction` is destination-first: you describe what the recipient
|
|
150
|
+
* should receive (`to`) and, optionally, how to pay for it (`from`). When
|
|
151
|
+
* `from` is omitted, the Trails modal opens so the user can pick the origin
|
|
152
|
+
* token, chain, and (for EXACT_INPUT) amount. When `to.amount` is provided,
|
|
153
|
+
* the send is EXACT_OUTPUT and the modal only needs origin token selection.
|
|
154
|
+
*
|
|
155
|
+
* Composable `actions` (configured on the hook) always execute on `to.chain`.
|
|
156
|
+
*
|
|
157
|
+
* Unlike `useQuote`, this hook cannot run as a disconnected preview: execution
|
|
158
|
+
* requires a connected wallet client with an account.
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```ts
|
|
162
|
+
* const { sendTransaction } = useTrailsSendTransaction()
|
|
163
|
+
*
|
|
164
|
+
* // Native send (origin picked in the modal)
|
|
165
|
+
* sendTransaction({
|
|
166
|
+
* to: { chain: "base", token: "ETH", recipient: "0x…", amount: "0.01" },
|
|
167
|
+
* })
|
|
168
|
+
*
|
|
169
|
+
* // Pay exactly 25 USDC on Polygon, user chooses the payment token
|
|
170
|
+
* sendTransaction({
|
|
171
|
+
* to: { chain: "polygon", token: "USDC", recipient: "0x…", amount: "25" },
|
|
172
|
+
* })
|
|
173
|
+
*
|
|
174
|
+
* // Fully specified origin + destination (no modal when balance is sufficient)
|
|
175
|
+
* sendTransaction({
|
|
176
|
+
* from: { chain: "base", token: "USDC", amount: "30" },
|
|
177
|
+
* to: { chain: "polygon", token: "USDC", recipient: "0x…" },
|
|
178
|
+
* })
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
declare function useTrailsSendTransaction(params?: UseTrailsSendTransactionParameters): UseTrailsSendTransactionReturnType;
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/hooks/useGetIntent.d.ts
|
|
184
|
+
interface UseGetIntentParams {
|
|
185
|
+
intentId: string | undefined;
|
|
186
|
+
enabled?: boolean;
|
|
187
|
+
}
|
|
188
|
+
interface UseGetIntentReturn {
|
|
189
|
+
intent: Intent | null;
|
|
190
|
+
isLoading: boolean;
|
|
191
|
+
isError: boolean;
|
|
192
|
+
error: Error | null;
|
|
193
|
+
refetch: () => Promise<void>;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Hook to fetch intent data from the Trails API
|
|
197
|
+
* @param params - Object containing intentId and optional enabled flag
|
|
198
|
+
* @returns Intent data, loading state, error state, and refetch function
|
|
199
|
+
*/
|
|
200
|
+
declare function useGetIntent({
|
|
201
|
+
intentId,
|
|
202
|
+
enabled
|
|
203
|
+
}: UseGetIntentParams): UseGetIntentReturn;
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region src/hooks/useIntentTransactionHistory.d.ts
|
|
206
|
+
type UseIntentTransactionHistoryParams = {
|
|
207
|
+
accountAddress?: string;
|
|
208
|
+
edgeAddress?: string;
|
|
209
|
+
pageSize?: number;
|
|
210
|
+
enabled?: boolean;
|
|
211
|
+
refetchInterval?: number | false;
|
|
212
|
+
intentStatuses?: string[];
|
|
213
|
+
};
|
|
214
|
+
type UseIntentTransactionHistoryReturn = {
|
|
215
|
+
transactions: IntentTransaction$1[];
|
|
216
|
+
loading: boolean;
|
|
217
|
+
error: string | null;
|
|
218
|
+
isOffline: boolean;
|
|
219
|
+
refetch: () => Promise<void>;
|
|
220
|
+
loadMore: () => void;
|
|
221
|
+
hasMore: boolean;
|
|
222
|
+
page: number;
|
|
223
|
+
nextPage: () => void;
|
|
224
|
+
prevPage: () => void;
|
|
225
|
+
hasPrev: boolean;
|
|
226
|
+
totalPages?: number;
|
|
227
|
+
resetPagination: () => void;
|
|
228
|
+
};
|
|
229
|
+
declare function useIntentTransactionHistory({
|
|
230
|
+
accountAddress,
|
|
231
|
+
edgeAddress,
|
|
232
|
+
pageSize,
|
|
233
|
+
enabled,
|
|
234
|
+
refetchInterval,
|
|
235
|
+
intentStatuses
|
|
236
|
+
}: UseIntentTransactionHistoryParams): UseIntentTransactionHistoryReturn;
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region src/mutations.d.ts
|
|
239
|
+
/**
|
|
240
|
+
* Hook for committing an intent to the Trails API
|
|
241
|
+
* Wraps trailsClient.commitIntent with mutation state and analytics tracking
|
|
242
|
+
*/
|
|
243
|
+
declare function useCommitIntent(): import("@tanstack/react-query").UseMutationResult<import("@0xtrails/api").CommitIntentResponse, Error, Intent, unknown>;
|
|
244
|
+
/**
|
|
245
|
+
* Hook for executing an intent
|
|
246
|
+
* Wraps trailsClient.executeIntent with mutation state and analytics tracking
|
|
247
|
+
*/
|
|
248
|
+
declare function useExecuteIntent(): import("@tanstack/react-query").UseMutationResult<{
|
|
249
|
+
intentId: string;
|
|
250
|
+
intentStatus: IntentStatus;
|
|
251
|
+
}, Error, {
|
|
252
|
+
intentId: string;
|
|
253
|
+
depositTransactionHash?: string;
|
|
254
|
+
depositSignature?: DepositSignature;
|
|
255
|
+
}, unknown>;
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region src/actions/hooks/useEarnMarkets.d.ts
|
|
258
|
+
type UseEarnMarketsParams = GetMarketsParams;
|
|
259
|
+
type UseEarnMarketsReturn = {
|
|
260
|
+
data: Awaited<ReturnType<typeof getEarnMarkets>>["items"] | undefined;
|
|
261
|
+
total: number;
|
|
262
|
+
offset: number;
|
|
263
|
+
limit: number;
|
|
264
|
+
isLoading: boolean;
|
|
265
|
+
error: Error | null;
|
|
266
|
+
refetch: () => void;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* React Query hook for discovering earn markets usable by `lend` and
|
|
270
|
+
* `deposit` actions.
|
|
271
|
+
*
|
|
272
|
+
* Use the returned market `id` as the action `marketId`.
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* ```ts
|
|
276
|
+
* const { data: markets } = useEarnMarkets({
|
|
277
|
+
* chain: "base",
|
|
278
|
+
* type: "lending",
|
|
279
|
+
* provider: "aave",
|
|
280
|
+
* search: "USDC",
|
|
281
|
+
* })
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
284
|
+
declare function useEarnMarkets(params: UseEarnMarketsParams): UseEarnMarketsReturn;
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region src/actions/hooks/useEarnBalances.d.ts
|
|
287
|
+
type UseEarnBalancesBaseParams = {
|
|
288
|
+
walletAddress: string;
|
|
289
|
+
marketId?: string;
|
|
290
|
+
arguments?: EarnBalanceQuery["arguments"];
|
|
291
|
+
enabled?: boolean;
|
|
292
|
+
};
|
|
293
|
+
type UseEarnBalancesSingleChainParams = UseEarnBalancesBaseParams & {
|
|
294
|
+
chain: ChainIdentifier$1;
|
|
295
|
+
chains?: never;
|
|
296
|
+
};
|
|
297
|
+
type UseEarnBalancesMultiChainParams = UseEarnBalancesBaseParams & {
|
|
298
|
+
chains: ChainIdentifier$1[];
|
|
299
|
+
chain?: never;
|
|
300
|
+
};
|
|
301
|
+
type UseEarnBalancesParams = UseEarnBalancesSingleChainParams | UseEarnBalancesMultiChainParams;
|
|
302
|
+
type UseEarnBalancesReturn = {
|
|
303
|
+
data: Awaited<ReturnType<typeof getEarnBalances>>["items"] | undefined;
|
|
304
|
+
errors: Awaited<ReturnType<typeof getEarnBalances>>["errors"];
|
|
305
|
+
isLoading: boolean;
|
|
306
|
+
error: Error | null;
|
|
307
|
+
refetch: () => void;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* React Query hook for fetching a wallet's earn balances.
|
|
311
|
+
*
|
|
312
|
+
* Use `chain` for a single chain or `chains` to batch multiple chains into
|
|
313
|
+
* one aggregate balances request. `marketId` narrows the lookup to one market.
|
|
314
|
+
*
|
|
315
|
+
* @example
|
|
316
|
+
* ```ts
|
|
317
|
+
* const { data: balances } = useEarnBalances({
|
|
318
|
+
* walletAddress,
|
|
319
|
+
* chain: "polygon",
|
|
320
|
+
* marketId: "polygon-usdc-aave-v3-lending",
|
|
321
|
+
* })
|
|
322
|
+
*
|
|
323
|
+
* const { data: multiChainBalances } = useEarnBalances({
|
|
324
|
+
* walletAddress,
|
|
325
|
+
* chains: ["polygon", "ethereum", "base"],
|
|
326
|
+
* })
|
|
327
|
+
* ```
|
|
328
|
+
*/
|
|
329
|
+
declare function useEarnBalances(params: UseEarnBalancesParams): UseEarnBalancesReturn;
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region src/actions/hooks/useEarnProviders.d.ts
|
|
332
|
+
type UseEarnProvidersParams = GetProvidersParams;
|
|
333
|
+
type UseEarnProvidersReturn = {
|
|
334
|
+
data: Awaited<ReturnType<typeof getEarnProviders>>["items"] | undefined;
|
|
335
|
+
total: number;
|
|
336
|
+
offset: number;
|
|
337
|
+
limit: number;
|
|
338
|
+
isLoading: boolean;
|
|
339
|
+
error: Error | null;
|
|
340
|
+
refetch: () => void;
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* React Query hook for fetching earn providers supported by the Trails API.
|
|
344
|
+
*
|
|
345
|
+
* Use provider IDs from this hook to filter `useEarnMarkets({ provider })`.
|
|
346
|
+
*/
|
|
347
|
+
declare function useEarnProviders(params?: UseEarnProvidersParams): UseEarnProvidersReturn;
|
|
348
|
+
//#endregion
|
|
349
|
+
//#region src/actions/hooks/useResolveActions.d.ts
|
|
350
|
+
type UseResolveActionsProps = {
|
|
351
|
+
actions: ActionItem[];
|
|
352
|
+
chainId: number | undefined;
|
|
353
|
+
destinationChain: ChainIdentifier;
|
|
354
|
+
userWalletAddress: `0x${string}` | undefined;
|
|
355
|
+
trailsClient: TrailsClient | null;
|
|
356
|
+
publicClient: PublicClient | null;
|
|
357
|
+
};
|
|
358
|
+
type UseResolveActionsReturn = {
|
|
359
|
+
calls: Call$1[] | null;
|
|
360
|
+
isLoading: boolean;
|
|
361
|
+
error: QuoteError | null;
|
|
362
|
+
};
|
|
363
|
+
declare function useResolveActions(props: UseResolveActionsProps): UseResolveActionsReturn;
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region src/solana/solanaJsonRpcUrl.d.ts
|
|
366
|
+
/**
|
|
367
|
+
* Solana **mainnet-beta** HTTP JSON-RPC only.
|
|
368
|
+
*
|
|
369
|
+
* Do not pass these URLs to viem/wagmi EVM transports. Use {@link getChainRpcClient} only for
|
|
370
|
+
* numeric EVM chain IDs. For SPL reads, Relay edge, or wallet-backed Solana flows, resolve URLs
|
|
371
|
+
* with {@link resolveSolanaMainnetJsonRpcUrl} or {@link getEdgeSolanaRpcUrls}.
|
|
372
|
+
*/
|
|
373
|
+
/** Public default (rate-limited); prefer wallet or edge `rpcUrl` when available. */
|
|
374
|
+
declare const PUBLIC_SOLANA_MAINNET_JSON_RPC = "https://api.mainnet-beta.solana.com";
|
|
375
|
+
/** Accepted shapes for configuring Solana RPC endpoints (single or ordered list). */
|
|
376
|
+
type SolanaRpcUrlInput = string | readonly string[] | null | undefined;
|
|
377
|
+
/** @deprecated Use {@link SolanaRpcUrlInput}. */
|
|
378
|
+
type SolanaRpcInput = SolanaRpcUrlInput;
|
|
379
|
+
/**
|
|
380
|
+
* Resolves the HTTP endpoint for Solana JSON-RPC (`getTokenAccountsByOwner`, etc.).
|
|
381
|
+
* When an edge or wallet provides an RPC URL, that value wins so traffic is not mixed with EVM config.
|
|
382
|
+
*/
|
|
383
|
+
declare function resolveSolanaMainnetJsonRpcUrl(preferredHttpRpc?: string | null): string;
|
|
384
|
+
/**
|
|
385
|
+
* Resolves an ordered list of Solana mainnet RPC endpoints.
|
|
386
|
+
*
|
|
387
|
+
* Callers may provide multiple endpoints; the SDK appends only the Solana public
|
|
388
|
+
* mainnet endpoint as the final default fallback.
|
|
389
|
+
*/
|
|
390
|
+
declare function resolveSolanaMainnetJsonRpcUrls(preferredHttpRpc?: SolanaRpcInput): string[];
|
|
391
|
+
/**
|
|
392
|
+
* Same as {@link resolveSolanaMainnetJsonRpcUrls} — explicit name for edge / SVM wallet wiring.
|
|
393
|
+
*/
|
|
394
|
+
declare function getEdgeSolanaRpcUrls(edgeOrWalletRpcUrls?: SolanaRpcInput): string[];
|
|
395
|
+
/** @deprecated Use {@link getEdgeSolanaRpcUrls}. */
|
|
396
|
+
declare function getEdgeSolanaRpcUrl(edgeOrWalletRpcUrl?: string | null): string;
|
|
397
|
+
//#endregion
|
|
398
|
+
//#region src/query/balance.fetchers.d.ts
|
|
399
|
+
/**
|
|
400
|
+
* Flat balance data for a single account using Token type (converted from raw gateway data)
|
|
401
|
+
*/
|
|
402
|
+
type FlatTokenBalancesData = {
|
|
403
|
+
/** All tokens (native + ERC20) converted to Token type */tokens: Token$1[]; /** Native tokens only (converted to Token type) */
|
|
404
|
+
nativeTokens: Token$1[]; /** ERC20 tokens only (converted to Token type) */
|
|
405
|
+
erc20Tokens: Token$1[];
|
|
406
|
+
page: Page;
|
|
407
|
+
};
|
|
408
|
+
type GetTokenBalancesForMultipleAccountsReturn = {
|
|
409
|
+
[account: string]: FlatTokenBalancesData;
|
|
410
|
+
};
|
|
411
|
+
type GetTokenBalancesWithPriceReturn = {
|
|
412
|
+
balances: Token$1[];
|
|
413
|
+
};
|
|
414
|
+
type FetchTokenBalanceOnchainReturn = {
|
|
415
|
+
token: Token$1;
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* Checks if a specific token has sufficient balance for a given amount.
|
|
419
|
+
* Pure function — no queryClient, no React.
|
|
420
|
+
*
|
|
421
|
+
* `amount` accepts either:
|
|
422
|
+
* - a human-readable decimal string (e.g. `"1.5"`) — scaled via `parseUnits`
|
|
423
|
+
* using the balance's decimals
|
|
424
|
+
* - a `bigint` raw wei value — compared directly against the on-chain
|
|
425
|
+
* balance, no decimals lookup required
|
|
426
|
+
*/
|
|
427
|
+
declare function checkSufficientToken(balances: Token$1[], token: string, amount: string | bigint, chainId: number): boolean;
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region src/query/balance.hooks.d.ts
|
|
430
|
+
declare const MIN_REFETCH_INTERVAL: number;
|
|
431
|
+
type UseTokenBalancesOptions = {
|
|
432
|
+
disabled?: boolean;
|
|
433
|
+
page?: number;
|
|
434
|
+
pageSize?: number;
|
|
435
|
+
refetchInterval?: number | false;
|
|
436
|
+
includeAllChains?: boolean;
|
|
437
|
+
};
|
|
438
|
+
declare function useTokenBalances(address: Address.Address | null, _tokenAddress?: string | null | undefined, options?: UseTokenBalancesOptions): {
|
|
439
|
+
isLoadingBalances: boolean;
|
|
440
|
+
isLoadingPrices: boolean;
|
|
441
|
+
isLoadingSortedTokens: boolean;
|
|
442
|
+
balanceError: Error | null;
|
|
443
|
+
sortedTokens: Token$1[];
|
|
444
|
+
refetch: () => Promise<void>;
|
|
445
|
+
};
|
|
446
|
+
type TokenBalancesForAccount = {
|
|
447
|
+
tokenBalancesData: FlatTokenBalancesData | undefined;
|
|
448
|
+
isLoading: boolean;
|
|
449
|
+
error: Error | null;
|
|
450
|
+
};
|
|
451
|
+
type UseTokenBalancesForMultipleAccountsReturn = {
|
|
452
|
+
/** Per-account token balances data, keyed by lowercase address */balancesByAccount: {
|
|
453
|
+
[account: string]: TokenBalancesForAccount;
|
|
454
|
+
}; /** Combined loading state - true if any account is loading */
|
|
455
|
+
isLoading: boolean; /** Combined error - first error encountered */
|
|
456
|
+
error: Error | null; /** Refetch function to manually trigger balance updates */
|
|
457
|
+
refetch: () => Promise<void>;
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* Hook to fetch token balances for multiple accounts in a single API call
|
|
461
|
+
* This is more efficient than calling useTokenBalances multiple times
|
|
462
|
+
*/
|
|
463
|
+
declare function useTokenBalancesForMultipleAccounts(addresses: (Address.Address | null)[], options?: {
|
|
464
|
+
page?: number;
|
|
465
|
+
pageSize?: number;
|
|
466
|
+
refetchInterval?: number;
|
|
467
|
+
staleTime?: number;
|
|
468
|
+
}): UseTokenBalancesForMultipleAccountsReturn;
|
|
469
|
+
type UseHasSufficientBalanceTokenParams = {
|
|
470
|
+
account?: string | null;
|
|
471
|
+
token?: string | null;
|
|
472
|
+
amount?: string | null;
|
|
473
|
+
chainId?: number | null;
|
|
474
|
+
};
|
|
475
|
+
type UseHasSufficientBalanceUsdParams = {
|
|
476
|
+
account?: string | null;
|
|
477
|
+
targetAmountUsd?: number | string | null;
|
|
478
|
+
};
|
|
479
|
+
declare function useHasSufficientBalanceToken({
|
|
480
|
+
account,
|
|
481
|
+
token,
|
|
482
|
+
amount,
|
|
483
|
+
chainId
|
|
484
|
+
}: UseHasSufficientBalanceTokenParams): UseQueryResult<boolean, Error>;
|
|
485
|
+
declare function useHasSufficientBalanceUsd({
|
|
486
|
+
account,
|
|
487
|
+
targetAmountUsd
|
|
488
|
+
}: UseHasSufficientBalanceUsdParams): UseQueryResult<boolean, Error>;
|
|
489
|
+
declare function useAccountTotalBalanceUsd(account: string | null): UseQueryResult<number, Error>;
|
|
490
|
+
//#endregion
|
|
491
|
+
//#region src/query/token.hooks.d.ts
|
|
492
|
+
type TokenImageParams = {
|
|
493
|
+
chainId?: number;
|
|
494
|
+
contractAddress?: string;
|
|
495
|
+
symbol?: string;
|
|
496
|
+
fallbackImageUrl?: string;
|
|
497
|
+
};
|
|
498
|
+
declare function useSupportedTokens({
|
|
499
|
+
chainId,
|
|
500
|
+
disabled
|
|
501
|
+
}?: {
|
|
502
|
+
chainId?: number;
|
|
503
|
+
disabled?: boolean;
|
|
504
|
+
}): {
|
|
505
|
+
supportedTokens: Token$1[];
|
|
506
|
+
isLoadingTokens: boolean;
|
|
507
|
+
refetch: () => Promise<void>;
|
|
508
|
+
};
|
|
509
|
+
declare function useTokenAddress({
|
|
510
|
+
chainId,
|
|
511
|
+
tokenSymbol
|
|
512
|
+
}: {
|
|
513
|
+
chainId?: number | null;
|
|
514
|
+
tokenSymbol?: string | null;
|
|
515
|
+
}): string | null;
|
|
516
|
+
declare function useTokenList(): {
|
|
517
|
+
tokens: Token$1[];
|
|
518
|
+
isLoadingTokens: boolean;
|
|
519
|
+
};
|
|
520
|
+
declare function useGetTokenImageUrl(): {
|
|
521
|
+
getTokenImageUrl: (params: TokenImageParams) => string;
|
|
522
|
+
};
|
|
523
|
+
declare function useGetSequenceMetadataTokenImageUrl(): {
|
|
524
|
+
getSequenceMetadataTokenImageUrl: (params: TokenImageParams & {
|
|
525
|
+
chainId: number;
|
|
526
|
+
contractAddress: string;
|
|
527
|
+
}) => string;
|
|
528
|
+
};
|
|
529
|
+
declare function useTokenInfo({
|
|
530
|
+
address,
|
|
531
|
+
chainId
|
|
532
|
+
}: {
|
|
533
|
+
address: string;
|
|
534
|
+
chainId?: number;
|
|
535
|
+
}): {
|
|
536
|
+
tokenInfo: Token$1 | null;
|
|
537
|
+
isLoading: boolean;
|
|
538
|
+
error: Error | null;
|
|
539
|
+
};
|
|
540
|
+
//#endregion
|
|
541
|
+
//#region src/query/price.hooks.d.ts
|
|
542
|
+
declare function useTokenPrices(tokens: Token[], disabled?: boolean): {
|
|
543
|
+
tokenPrices: NoInfer<import("@0xtrails/api").TokenPrice[]> | undefined;
|
|
544
|
+
isLoadingTokenPrices: boolean;
|
|
545
|
+
data: NoInfer<import("@0xtrails/api").TokenPrice[]>;
|
|
546
|
+
error: Error;
|
|
547
|
+
isError: true;
|
|
548
|
+
isPending: false;
|
|
549
|
+
isLoading: false;
|
|
550
|
+
isLoadingError: false;
|
|
551
|
+
isRefetchError: true;
|
|
552
|
+
isSuccess: false;
|
|
553
|
+
isPlaceholderData: false;
|
|
554
|
+
status: "error";
|
|
555
|
+
dataUpdatedAt: number;
|
|
556
|
+
errorUpdatedAt: number;
|
|
557
|
+
failureCount: number;
|
|
558
|
+
failureReason: Error | null;
|
|
559
|
+
errorUpdateCount: number;
|
|
560
|
+
isFetched: boolean;
|
|
561
|
+
isFetchedAfterMount: boolean;
|
|
562
|
+
isFetching: boolean;
|
|
563
|
+
isInitialLoading: boolean;
|
|
564
|
+
isPaused: boolean;
|
|
565
|
+
isRefetching: boolean;
|
|
566
|
+
isStale: boolean;
|
|
567
|
+
isEnabled: boolean;
|
|
568
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<import("@0xtrails/api").TokenPrice[]>, Error>>;
|
|
569
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
570
|
+
promise: Promise<NoInfer<import("@0xtrails/api").TokenPrice[]>>;
|
|
571
|
+
} | {
|
|
572
|
+
tokenPrices: NoInfer<import("@0xtrails/api").TokenPrice[]> | undefined;
|
|
573
|
+
isLoadingTokenPrices: boolean;
|
|
574
|
+
data: NoInfer<import("@0xtrails/api").TokenPrice[]>;
|
|
575
|
+
error: null;
|
|
576
|
+
isError: false;
|
|
577
|
+
isPending: false;
|
|
578
|
+
isLoading: false;
|
|
579
|
+
isLoadingError: false;
|
|
580
|
+
isRefetchError: false;
|
|
581
|
+
isSuccess: true;
|
|
582
|
+
isPlaceholderData: false;
|
|
583
|
+
status: "success";
|
|
584
|
+
dataUpdatedAt: number;
|
|
585
|
+
errorUpdatedAt: number;
|
|
586
|
+
failureCount: number;
|
|
587
|
+
failureReason: Error | null;
|
|
588
|
+
errorUpdateCount: number;
|
|
589
|
+
isFetched: boolean;
|
|
590
|
+
isFetchedAfterMount: boolean;
|
|
591
|
+
isFetching: boolean;
|
|
592
|
+
isInitialLoading: boolean;
|
|
593
|
+
isPaused: boolean;
|
|
594
|
+
isRefetching: boolean;
|
|
595
|
+
isStale: boolean;
|
|
596
|
+
isEnabled: boolean;
|
|
597
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<import("@0xtrails/api").TokenPrice[]>, Error>>;
|
|
598
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
599
|
+
promise: Promise<NoInfer<import("@0xtrails/api").TokenPrice[]>>;
|
|
600
|
+
} | {
|
|
601
|
+
tokenPrices: NoInfer<import("@0xtrails/api").TokenPrice[]> | undefined;
|
|
602
|
+
isLoadingTokenPrices: boolean;
|
|
603
|
+
data: undefined;
|
|
604
|
+
error: Error;
|
|
605
|
+
isError: true;
|
|
606
|
+
isPending: false;
|
|
607
|
+
isLoading: false;
|
|
608
|
+
isLoadingError: true;
|
|
609
|
+
isRefetchError: false;
|
|
610
|
+
isSuccess: false;
|
|
611
|
+
isPlaceholderData: false;
|
|
612
|
+
status: "error";
|
|
613
|
+
dataUpdatedAt: number;
|
|
614
|
+
errorUpdatedAt: number;
|
|
615
|
+
failureCount: number;
|
|
616
|
+
failureReason: Error | null;
|
|
617
|
+
errorUpdateCount: number;
|
|
618
|
+
isFetched: boolean;
|
|
619
|
+
isFetchedAfterMount: boolean;
|
|
620
|
+
isFetching: boolean;
|
|
621
|
+
isInitialLoading: boolean;
|
|
622
|
+
isPaused: boolean;
|
|
623
|
+
isRefetching: boolean;
|
|
624
|
+
isStale: boolean;
|
|
625
|
+
isEnabled: boolean;
|
|
626
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<import("@0xtrails/api").TokenPrice[]>, Error>>;
|
|
627
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
628
|
+
promise: Promise<NoInfer<import("@0xtrails/api").TokenPrice[]>>;
|
|
629
|
+
} | {
|
|
630
|
+
tokenPrices: NoInfer<import("@0xtrails/api").TokenPrice[]> | undefined;
|
|
631
|
+
isLoadingTokenPrices: boolean;
|
|
632
|
+
data: undefined;
|
|
633
|
+
error: null;
|
|
634
|
+
isError: false;
|
|
635
|
+
isPending: true;
|
|
636
|
+
isLoading: true;
|
|
637
|
+
isLoadingError: false;
|
|
638
|
+
isRefetchError: false;
|
|
639
|
+
isSuccess: false;
|
|
640
|
+
isPlaceholderData: false;
|
|
641
|
+
status: "pending";
|
|
642
|
+
dataUpdatedAt: number;
|
|
643
|
+
errorUpdatedAt: number;
|
|
644
|
+
failureCount: number;
|
|
645
|
+
failureReason: Error | null;
|
|
646
|
+
errorUpdateCount: number;
|
|
647
|
+
isFetched: boolean;
|
|
648
|
+
isFetchedAfterMount: boolean;
|
|
649
|
+
isFetching: boolean;
|
|
650
|
+
isInitialLoading: boolean;
|
|
651
|
+
isPaused: boolean;
|
|
652
|
+
isRefetching: boolean;
|
|
653
|
+
isStale: boolean;
|
|
654
|
+
isEnabled: boolean;
|
|
655
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<import("@0xtrails/api").TokenPrice[]>, Error>>;
|
|
656
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
657
|
+
promise: Promise<NoInfer<import("@0xtrails/api").TokenPrice[]>>;
|
|
658
|
+
} | {
|
|
659
|
+
tokenPrices: NoInfer<import("@0xtrails/api").TokenPrice[]> | undefined;
|
|
660
|
+
isLoadingTokenPrices: boolean;
|
|
661
|
+
data: undefined;
|
|
662
|
+
error: null;
|
|
663
|
+
isError: false;
|
|
664
|
+
isPending: true;
|
|
665
|
+
isLoadingError: false;
|
|
666
|
+
isRefetchError: false;
|
|
667
|
+
isSuccess: false;
|
|
668
|
+
isPlaceholderData: false;
|
|
669
|
+
status: "pending";
|
|
670
|
+
dataUpdatedAt: number;
|
|
671
|
+
errorUpdatedAt: number;
|
|
672
|
+
failureCount: number;
|
|
673
|
+
failureReason: Error | null;
|
|
674
|
+
errorUpdateCount: number;
|
|
675
|
+
isFetched: boolean;
|
|
676
|
+
isFetchedAfterMount: boolean;
|
|
677
|
+
isFetching: boolean;
|
|
678
|
+
isLoading: boolean;
|
|
679
|
+
isInitialLoading: boolean;
|
|
680
|
+
isPaused: boolean;
|
|
681
|
+
isRefetching: boolean;
|
|
682
|
+
isStale: boolean;
|
|
683
|
+
isEnabled: boolean;
|
|
684
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<import("@0xtrails/api").TokenPrice[]>, Error>>;
|
|
685
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
686
|
+
promise: Promise<NoInfer<import("@0xtrails/api").TokenPrice[]>>;
|
|
687
|
+
} | {
|
|
688
|
+
tokenPrices: NoInfer<import("@0xtrails/api").TokenPrice[]> | undefined;
|
|
689
|
+
isLoadingTokenPrices: boolean;
|
|
690
|
+
data: NoInfer<import("@0xtrails/api").TokenPrice[]>;
|
|
691
|
+
isError: false;
|
|
692
|
+
error: null;
|
|
693
|
+
isPending: false;
|
|
694
|
+
isLoading: false;
|
|
695
|
+
isLoadingError: false;
|
|
696
|
+
isRefetchError: false;
|
|
697
|
+
isSuccess: true;
|
|
698
|
+
isPlaceholderData: true;
|
|
699
|
+
status: "success";
|
|
700
|
+
dataUpdatedAt: number;
|
|
701
|
+
errorUpdatedAt: number;
|
|
702
|
+
failureCount: number;
|
|
703
|
+
failureReason: Error | null;
|
|
704
|
+
errorUpdateCount: number;
|
|
705
|
+
isFetched: boolean;
|
|
706
|
+
isFetchedAfterMount: boolean;
|
|
707
|
+
isFetching: boolean;
|
|
708
|
+
isInitialLoading: boolean;
|
|
709
|
+
isPaused: boolean;
|
|
710
|
+
isRefetching: boolean;
|
|
711
|
+
isStale: boolean;
|
|
712
|
+
isEnabled: boolean;
|
|
713
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<import("@0xtrails/api").TokenPrice[]>, Error>>;
|
|
714
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
715
|
+
promise: Promise<NoInfer<import("@0xtrails/api").TokenPrice[]>>;
|
|
716
|
+
};
|
|
717
|
+
declare function useTokenPrice(token?: Token | null): {
|
|
718
|
+
tokenPrice: NoInfer<import("@0xtrails/api").TokenPrice | null> | undefined;
|
|
719
|
+
isLoadingTokenPrice: boolean;
|
|
720
|
+
data: NoInfer<import("@0xtrails/api").TokenPrice | null>;
|
|
721
|
+
error: Error;
|
|
722
|
+
isError: true;
|
|
723
|
+
isPending: false;
|
|
724
|
+
isLoading: false;
|
|
725
|
+
isLoadingError: false;
|
|
726
|
+
isRefetchError: true;
|
|
727
|
+
isSuccess: false;
|
|
728
|
+
isPlaceholderData: false;
|
|
729
|
+
status: "error";
|
|
730
|
+
dataUpdatedAt: number;
|
|
731
|
+
errorUpdatedAt: number;
|
|
732
|
+
failureCount: number;
|
|
733
|
+
failureReason: Error | null;
|
|
734
|
+
errorUpdateCount: number;
|
|
735
|
+
isFetched: boolean;
|
|
736
|
+
isFetchedAfterMount: boolean;
|
|
737
|
+
isFetching: boolean;
|
|
738
|
+
isInitialLoading: boolean;
|
|
739
|
+
isPaused: boolean;
|
|
740
|
+
isRefetching: boolean;
|
|
741
|
+
isStale: boolean;
|
|
742
|
+
isEnabled: boolean;
|
|
743
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<import("@0xtrails/api").TokenPrice | null>, Error>>;
|
|
744
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
745
|
+
promise: Promise<NoInfer<import("@0xtrails/api").TokenPrice | null>>;
|
|
746
|
+
} | {
|
|
747
|
+
tokenPrice: NoInfer<import("@0xtrails/api").TokenPrice | null> | undefined;
|
|
748
|
+
isLoadingTokenPrice: boolean;
|
|
749
|
+
data: NoInfer<import("@0xtrails/api").TokenPrice | null>;
|
|
750
|
+
error: null;
|
|
751
|
+
isError: false;
|
|
752
|
+
isPending: false;
|
|
753
|
+
isLoading: false;
|
|
754
|
+
isLoadingError: false;
|
|
755
|
+
isRefetchError: false;
|
|
756
|
+
isSuccess: true;
|
|
757
|
+
isPlaceholderData: false;
|
|
758
|
+
status: "success";
|
|
759
|
+
dataUpdatedAt: number;
|
|
760
|
+
errorUpdatedAt: number;
|
|
761
|
+
failureCount: number;
|
|
762
|
+
failureReason: Error | null;
|
|
763
|
+
errorUpdateCount: number;
|
|
764
|
+
isFetched: boolean;
|
|
765
|
+
isFetchedAfterMount: boolean;
|
|
766
|
+
isFetching: boolean;
|
|
767
|
+
isInitialLoading: boolean;
|
|
768
|
+
isPaused: boolean;
|
|
769
|
+
isRefetching: boolean;
|
|
770
|
+
isStale: boolean;
|
|
771
|
+
isEnabled: boolean;
|
|
772
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<import("@0xtrails/api").TokenPrice | null>, Error>>;
|
|
773
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
774
|
+
promise: Promise<NoInfer<import("@0xtrails/api").TokenPrice | null>>;
|
|
775
|
+
} | {
|
|
776
|
+
tokenPrice: NoInfer<import("@0xtrails/api").TokenPrice | null> | undefined;
|
|
777
|
+
isLoadingTokenPrice: boolean;
|
|
778
|
+
data: undefined;
|
|
779
|
+
error: Error;
|
|
780
|
+
isError: true;
|
|
781
|
+
isPending: false;
|
|
782
|
+
isLoading: false;
|
|
783
|
+
isLoadingError: true;
|
|
784
|
+
isRefetchError: false;
|
|
785
|
+
isSuccess: false;
|
|
786
|
+
isPlaceholderData: false;
|
|
787
|
+
status: "error";
|
|
788
|
+
dataUpdatedAt: number;
|
|
789
|
+
errorUpdatedAt: number;
|
|
790
|
+
failureCount: number;
|
|
791
|
+
failureReason: Error | null;
|
|
792
|
+
errorUpdateCount: number;
|
|
793
|
+
isFetched: boolean;
|
|
794
|
+
isFetchedAfterMount: boolean;
|
|
795
|
+
isFetching: boolean;
|
|
796
|
+
isInitialLoading: boolean;
|
|
797
|
+
isPaused: boolean;
|
|
798
|
+
isRefetching: boolean;
|
|
799
|
+
isStale: boolean;
|
|
800
|
+
isEnabled: boolean;
|
|
801
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<import("@0xtrails/api").TokenPrice | null>, Error>>;
|
|
802
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
803
|
+
promise: Promise<NoInfer<import("@0xtrails/api").TokenPrice | null>>;
|
|
804
|
+
} | {
|
|
805
|
+
tokenPrice: NoInfer<import("@0xtrails/api").TokenPrice | null> | undefined;
|
|
806
|
+
isLoadingTokenPrice: boolean;
|
|
807
|
+
data: undefined;
|
|
808
|
+
error: null;
|
|
809
|
+
isError: false;
|
|
810
|
+
isPending: true;
|
|
811
|
+
isLoading: true;
|
|
812
|
+
isLoadingError: false;
|
|
813
|
+
isRefetchError: false;
|
|
814
|
+
isSuccess: false;
|
|
815
|
+
isPlaceholderData: false;
|
|
816
|
+
status: "pending";
|
|
817
|
+
dataUpdatedAt: number;
|
|
818
|
+
errorUpdatedAt: number;
|
|
819
|
+
failureCount: number;
|
|
820
|
+
failureReason: Error | null;
|
|
821
|
+
errorUpdateCount: number;
|
|
822
|
+
isFetched: boolean;
|
|
823
|
+
isFetchedAfterMount: boolean;
|
|
824
|
+
isFetching: boolean;
|
|
825
|
+
isInitialLoading: boolean;
|
|
826
|
+
isPaused: boolean;
|
|
827
|
+
isRefetching: boolean;
|
|
828
|
+
isStale: boolean;
|
|
829
|
+
isEnabled: boolean;
|
|
830
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<import("@0xtrails/api").TokenPrice | null>, Error>>;
|
|
831
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
832
|
+
promise: Promise<NoInfer<import("@0xtrails/api").TokenPrice | null>>;
|
|
833
|
+
} | {
|
|
834
|
+
tokenPrice: NoInfer<import("@0xtrails/api").TokenPrice | null> | undefined;
|
|
835
|
+
isLoadingTokenPrice: boolean;
|
|
836
|
+
data: undefined;
|
|
837
|
+
error: null;
|
|
838
|
+
isError: false;
|
|
839
|
+
isPending: true;
|
|
840
|
+
isLoadingError: false;
|
|
841
|
+
isRefetchError: false;
|
|
842
|
+
isSuccess: false;
|
|
843
|
+
isPlaceholderData: false;
|
|
844
|
+
status: "pending";
|
|
845
|
+
dataUpdatedAt: number;
|
|
846
|
+
errorUpdatedAt: number;
|
|
847
|
+
failureCount: number;
|
|
848
|
+
failureReason: Error | null;
|
|
849
|
+
errorUpdateCount: number;
|
|
850
|
+
isFetched: boolean;
|
|
851
|
+
isFetchedAfterMount: boolean;
|
|
852
|
+
isFetching: boolean;
|
|
853
|
+
isLoading: boolean;
|
|
854
|
+
isInitialLoading: boolean;
|
|
855
|
+
isPaused: boolean;
|
|
856
|
+
isRefetching: boolean;
|
|
857
|
+
isStale: boolean;
|
|
858
|
+
isEnabled: boolean;
|
|
859
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<import("@0xtrails/api").TokenPrice | null>, Error>>;
|
|
860
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
861
|
+
promise: Promise<NoInfer<import("@0xtrails/api").TokenPrice | null>>;
|
|
862
|
+
} | {
|
|
863
|
+
tokenPrice: NoInfer<import("@0xtrails/api").TokenPrice | null> | undefined;
|
|
864
|
+
isLoadingTokenPrice: boolean;
|
|
865
|
+
data: NoInfer<import("@0xtrails/api").TokenPrice | null>;
|
|
866
|
+
isError: false;
|
|
867
|
+
error: null;
|
|
868
|
+
isPending: false;
|
|
869
|
+
isLoading: false;
|
|
870
|
+
isLoadingError: false;
|
|
871
|
+
isRefetchError: false;
|
|
872
|
+
isSuccess: true;
|
|
873
|
+
isPlaceholderData: true;
|
|
874
|
+
status: "success";
|
|
875
|
+
dataUpdatedAt: number;
|
|
876
|
+
errorUpdatedAt: number;
|
|
877
|
+
failureCount: number;
|
|
878
|
+
failureReason: Error | null;
|
|
879
|
+
errorUpdateCount: number;
|
|
880
|
+
isFetched: boolean;
|
|
881
|
+
isFetchedAfterMount: boolean;
|
|
882
|
+
isFetching: boolean;
|
|
883
|
+
isInitialLoading: boolean;
|
|
884
|
+
isPaused: boolean;
|
|
885
|
+
isRefetching: boolean;
|
|
886
|
+
isStale: boolean;
|
|
887
|
+
isEnabled: boolean;
|
|
888
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<import("@0xtrails/api").TokenPrice | null>, Error>>;
|
|
889
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
890
|
+
promise: Promise<NoInfer<import("@0xtrails/api").TokenPrice | null>>;
|
|
891
|
+
};
|
|
892
|
+
//#endregion
|
|
893
|
+
//#region src/query/chains.hooks.d.ts
|
|
894
|
+
declare function useSupportedChains(): import("@tanstack/react-query").UseQueryResult<NoInfer<Chain$1[]>, Error>;
|
|
895
|
+
declare function usePublicClientGetter(): (chainId: number, retryCount?: number) => PublicClient | null;
|
|
896
|
+
declare function usePublicClient(chainId?: number): PublicClient | null;
|
|
897
|
+
//#endregion
|
|
898
|
+
//#region src/indexerClient.d.ts
|
|
899
|
+
declare function useIndexerGatewayClient(): SequenceIndexerGateway;
|
|
900
|
+
//#endregion
|
|
901
|
+
//#region src/query/geo.hooks.d.ts
|
|
902
|
+
declare function useCountryCode(options?: {
|
|
903
|
+
enabled?: boolean;
|
|
904
|
+
}): import("@tanstack/react-query").UseQueryResult<string, Error>;
|
|
905
|
+
declare function useCountryList(): import("@tanstack/react-query").UseQueryResult<NoInfer<import("@0xtrails/api").Country[]>, Error>;
|
|
906
|
+
//#endregion
|
|
907
|
+
//#region src/query/fiat.hooks.d.ts
|
|
908
|
+
declare function useFiatCurrencyList(): import("@tanstack/react-query").UseQueryResult<NoInfer<import("@0xtrails/api").FiatCurrency[]>, Error>;
|
|
909
|
+
interface UseExchangeRateOptions {
|
|
910
|
+
fromCurrency?: string;
|
|
911
|
+
toCurrency?: string;
|
|
912
|
+
disabled?: boolean;
|
|
913
|
+
}
|
|
914
|
+
interface UseExchangeRateResult {
|
|
915
|
+
exchangeRate: number | undefined;
|
|
916
|
+
isLoading: boolean;
|
|
917
|
+
error: Error | null;
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Fetch the exchange rate between two currencies.
|
|
921
|
+
* Handles same-currency (returns 1) and direction inversion (X→USD = 1/rate).
|
|
922
|
+
*/
|
|
923
|
+
declare function useExchangeRate(options?: UseExchangeRateOptions): UseExchangeRateResult;
|
|
924
|
+
//#endregion
|
|
925
|
+
//#region src/query/meld.hooks.d.ts
|
|
926
|
+
declare function useMeldPaymentMethods(fiatCurrency?: string): import("@tanstack/react-query").UseQueryResult<NoInfer<import("@0xtrails/api/onramp").MeldPaymentMethod[]>, Error>;
|
|
927
|
+
declare function useMeldServiceProviders(options?: Partial<GetMeldServiceProvidersRequest>): import("@tanstack/react-query").UseQueryResult<NoInfer<import("@0xtrails/api/onramp").MeldServiceProvider[]>, Error>;
|
|
928
|
+
//#endregion
|
|
929
|
+
//#region src/onramp-client/index.d.ts
|
|
930
|
+
interface TrailsOnrampOptions {
|
|
931
|
+
apiKey?: string;
|
|
932
|
+
jwt?: string;
|
|
933
|
+
hostname?: string;
|
|
934
|
+
}
|
|
935
|
+
declare class TrailsOnramp extends TrailsOnrampRpcClient {
|
|
936
|
+
static fromTrailsApiClient(client: TrailsApi): TrailsOnramp;
|
|
937
|
+
constructor(apiKey: string, options?: TrailsOnrampOptions);
|
|
938
|
+
}
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region src/onrampClient.d.ts
|
|
941
|
+
type OnrampClientConfig = {
|
|
942
|
+
apiKey: string;
|
|
943
|
+
jwt?: string;
|
|
944
|
+
hostname?: string;
|
|
945
|
+
};
|
|
946
|
+
declare function getOnrampClient({
|
|
947
|
+
apiKey,
|
|
948
|
+
jwt,
|
|
949
|
+
hostname
|
|
950
|
+
}: OnrampClientConfig): TrailsOnramp;
|
|
951
|
+
declare const useOnrampClient: (configOverride?: Partial<OnrampClientConfig>) => TrailsOnramp;
|
|
952
|
+
//#endregion
|
|
953
|
+
//#region src/keymachine/key-machine.gen.d.ts
|
|
954
|
+
type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
955
|
+
//#endregion
|
|
956
|
+
//#region src/keymachine/index.d.ts
|
|
957
|
+
declare class KeyMachine {
|
|
958
|
+
private readonly service;
|
|
959
|
+
constructor(host?: string, fetcher?: Fetch);
|
|
960
|
+
getConfiguration(imageHash: Hex.Hex): Promise<Config.Config | undefined>;
|
|
961
|
+
getDeploy(wallet: Address.Address): Promise<{
|
|
962
|
+
imageHash: Hex.Hex;
|
|
963
|
+
context: Context.Context;
|
|
964
|
+
} | undefined>;
|
|
965
|
+
getTree(rootHash: Hex.Hex): Promise<GenericTree.Tree | undefined>;
|
|
966
|
+
}
|
|
967
|
+
//#endregion
|
|
968
|
+
//#region src/keyMachineClient.d.ts
|
|
969
|
+
declare class KeyMachineClient extends KeyMachine {}
|
|
970
|
+
//#endregion
|
|
971
|
+
//#region src/recover.d.ts
|
|
972
|
+
/**
|
|
973
|
+
* Signs the payload hash for a refund transaction
|
|
974
|
+
*/
|
|
975
|
+
declare function signPayload(walletClient: WalletClient, intentAddress: Address.Address, chainId: number, payload: Payload.Calls): Promise<string>;
|
|
976
|
+
interface BuildRefundTransactionWithSignatureParams {
|
|
977
|
+
trailsClient: TrailsClient;
|
|
978
|
+
intentId: string;
|
|
979
|
+
payload: Payload.Calls;
|
|
980
|
+
chainId: number;
|
|
981
|
+
intentAddress: Address.Address;
|
|
982
|
+
signature: string;
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Builds a refund transaction using a pre-signed hash.
|
|
986
|
+
* Transaction construction is delegated to Trails API (`BuildIntentRecoveryTransaction`).
|
|
987
|
+
*/
|
|
988
|
+
declare function buildRefundTransactionWithSignature(params: BuildRefundTransactionWithSignatureParams): Promise<{
|
|
989
|
+
to: `0x${string}`;
|
|
990
|
+
data: Hex.Hex;
|
|
991
|
+
}>;
|
|
992
|
+
interface UseIntentRecoverParams {
|
|
993
|
+
intentId: string | undefined;
|
|
994
|
+
walletClient: WalletClient | undefined;
|
|
995
|
+
refundToAddress?: `0x${string}`;
|
|
996
|
+
}
|
|
997
|
+
interface UseIntentRecoverReturn {
|
|
998
|
+
intent: Intent | null;
|
|
999
|
+
isLoadingIntent: boolean;
|
|
1000
|
+
isLoadingBalances: boolean;
|
|
1001
|
+
intentError: Error | null;
|
|
1002
|
+
balancesError: Error | null;
|
|
1003
|
+
hasIntentBalance: boolean;
|
|
1004
|
+
/** Token that will be recovered (the one with highest balance) */
|
|
1005
|
+
recoverToken: Token$1 | null;
|
|
1006
|
+
/** Information about which intent address will be recovered from */
|
|
1007
|
+
selectedRecoveryTarget: {
|
|
1008
|
+
address: Address.Address;
|
|
1009
|
+
chainId: number;
|
|
1010
|
+
chainName: string;
|
|
1011
|
+
isOrigin: boolean;
|
|
1012
|
+
tokenBalancesData: FlatTokenBalancesData | undefined;
|
|
1013
|
+
} | null;
|
|
1014
|
+
refetchIntent: () => void;
|
|
1015
|
+
signPayload: () => Promise<{
|
|
1016
|
+
signature: string;
|
|
1017
|
+
payload: Payload.Calls;
|
|
1018
|
+
refundCall: Payload.Call;
|
|
1019
|
+
}>;
|
|
1020
|
+
getRecoverTx: (params: {
|
|
1021
|
+
signedHash: string;
|
|
1022
|
+
payload: Payload.Calls;
|
|
1023
|
+
}) => Promise<{
|
|
1024
|
+
to: `0x${string}`;
|
|
1025
|
+
data: `0x${string}`;
|
|
1026
|
+
chainId: number;
|
|
1027
|
+
chain: Chain;
|
|
1028
|
+
}>;
|
|
1029
|
+
recover: () => Promise<{
|
|
1030
|
+
txHash: `0x${string}`;
|
|
1031
|
+
receipt: TransactionReceipt;
|
|
1032
|
+
chainId: number;
|
|
1033
|
+
}>;
|
|
1034
|
+
getRecoverStatus: (params: {
|
|
1035
|
+
txHash: `0x${string}`;
|
|
1036
|
+
chainId: number;
|
|
1037
|
+
}) => Promise<{
|
|
1038
|
+
status: "success" | "fail" | "pending";
|
|
1039
|
+
}>;
|
|
1040
|
+
}
|
|
1041
|
+
interface UseIntentRecoverWithAddressParams {
|
|
1042
|
+
intentId: string | undefined;
|
|
1043
|
+
/** Signer for the recovery tx and default refund receiver */
|
|
1044
|
+
walletAddress: `0x${string}` | undefined;
|
|
1045
|
+
/** Optional. If set, refund is sent here instead of walletAddress (signer stays walletAddress). */
|
|
1046
|
+
refundToAddress?: `0x${string}`;
|
|
1047
|
+
}
|
|
1048
|
+
interface UseIntentRecoverWithAddressReturn {
|
|
1049
|
+
intent: Intent | null;
|
|
1050
|
+
isLoadingIntent: boolean;
|
|
1051
|
+
isLoadingBalances: boolean;
|
|
1052
|
+
intentError: Error | null;
|
|
1053
|
+
balancesError: Error | null;
|
|
1054
|
+
hasIntentBalance: boolean;
|
|
1055
|
+
recoverToken: Token$1 | null;
|
|
1056
|
+
selectedRecoveryTarget: {
|
|
1057
|
+
address: Address.Address;
|
|
1058
|
+
chainId: number;
|
|
1059
|
+
chainName: string;
|
|
1060
|
+
isOrigin: boolean;
|
|
1061
|
+
tokenBalancesData: FlatTokenBalancesData | undefined;
|
|
1062
|
+
} | null;
|
|
1063
|
+
refetchIntent: () => void;
|
|
1064
|
+
/** Returns payload and EIP-712 typed data for the app to sign (e.g. with embedded wallet). */
|
|
1065
|
+
getDataToSign: () => Promise<{
|
|
1066
|
+
payload: Payload.Calls;
|
|
1067
|
+
refundCall: Payload.Call;
|
|
1068
|
+
chainId: number;
|
|
1069
|
+
typedData: ReturnType<typeof Payload.toTyped>;
|
|
1070
|
+
}>;
|
|
1071
|
+
getRecoverTx: (params: {
|
|
1072
|
+
signature: string;
|
|
1073
|
+
payload: Payload.Calls;
|
|
1074
|
+
}) => Promise<{
|
|
1075
|
+
to: `0x${string}`;
|
|
1076
|
+
data: `0x${string}`;
|
|
1077
|
+
chainId: number;
|
|
1078
|
+
chain: Chain;
|
|
1079
|
+
}>;
|
|
1080
|
+
getRecoverStatus: (params: {
|
|
1081
|
+
txHash: `0x${string}`;
|
|
1082
|
+
chainId: number;
|
|
1083
|
+
}) => Promise<{
|
|
1084
|
+
status: "success" | "fail" | "pending";
|
|
1085
|
+
}>;
|
|
1086
|
+
}
|
|
1087
|
+
declare function useKeymachineIntentRecovery({
|
|
1088
|
+
intent: intentData,
|
|
1089
|
+
balancesByIntentAddress,
|
|
1090
|
+
walletClient,
|
|
1091
|
+
refundToAddress,
|
|
1092
|
+
keyMachineClient,
|
|
1093
|
+
onTransactionSubmitted
|
|
1094
|
+
}: UseKeymachineIntentRecoveryParams): UseKeymachineIntentRecoveryReturn;
|
|
1095
|
+
interface UseKeymachineIntentRecoveryParams {
|
|
1096
|
+
intent: Intent | null;
|
|
1097
|
+
balancesByIntentAddress: {
|
|
1098
|
+
[account: string]: {
|
|
1099
|
+
tokenBalancesData: FlatTokenBalancesData | undefined;
|
|
1100
|
+
isLoading: boolean;
|
|
1101
|
+
error: Error | null;
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
walletClient: WalletClient | undefined;
|
|
1105
|
+
refundToAddress?: `0x${string}`;
|
|
1106
|
+
keyMachineClient?: KeyMachineClient;
|
|
1107
|
+
onTransactionSubmitted?: () => void;
|
|
1108
|
+
}
|
|
1109
|
+
interface UseKeymachineIntentRecoveryReturn {
|
|
1110
|
+
intent: Intent | null;
|
|
1111
|
+
hasIntentBalance: boolean;
|
|
1112
|
+
recoverToken: Token$1 | null;
|
|
1113
|
+
selectedRecoveryTarget: {
|
|
1114
|
+
address: Address.Address;
|
|
1115
|
+
chainId: number;
|
|
1116
|
+
chainName: string;
|
|
1117
|
+
isOrigin: boolean;
|
|
1118
|
+
tokenBalancesData: FlatTokenBalancesData | undefined;
|
|
1119
|
+
} | null;
|
|
1120
|
+
signPayload: (prepared?: {
|
|
1121
|
+
payload: Payload.Calls;
|
|
1122
|
+
refundCall: Payload.Call;
|
|
1123
|
+
chainId: number;
|
|
1124
|
+
typedData: ReturnType<typeof Payload.toTyped>;
|
|
1125
|
+
}) => Promise<{
|
|
1126
|
+
signature: string;
|
|
1127
|
+
signerAddress: `0x${string}`;
|
|
1128
|
+
payload: Payload.Calls;
|
|
1129
|
+
refundCall: Payload.Call;
|
|
1130
|
+
}>;
|
|
1131
|
+
getDataToSign: () => Promise<{
|
|
1132
|
+
payload: Payload.Calls;
|
|
1133
|
+
refundCall: Payload.Call;
|
|
1134
|
+
chainId: number;
|
|
1135
|
+
typedData: ReturnType<typeof Payload.toTyped>;
|
|
1136
|
+
}>;
|
|
1137
|
+
getRecoverTx: (params: {
|
|
1138
|
+
signature: string;
|
|
1139
|
+
signerAddress: `0x${string}`;
|
|
1140
|
+
payload: Payload.Calls;
|
|
1141
|
+
}) => Promise<{
|
|
1142
|
+
to: `0x${string}`;
|
|
1143
|
+
data: `0x${string}`;
|
|
1144
|
+
chainId: number;
|
|
1145
|
+
chain: Chain;
|
|
1146
|
+
}>;
|
|
1147
|
+
recover: () => Promise<{
|
|
1148
|
+
txHash: `0x${string}`;
|
|
1149
|
+
receipt: TransactionReceipt;
|
|
1150
|
+
chainId: number;
|
|
1151
|
+
}>;
|
|
1152
|
+
getRecoverStatus: (params: {
|
|
1153
|
+
txHash: `0x${string}`;
|
|
1154
|
+
chainId: number;
|
|
1155
|
+
}) => Promise<{
|
|
1156
|
+
status: "success" | "fail" | "pending";
|
|
1157
|
+
}>;
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* Hook for building and signing recover transactions.
|
|
1161
|
+
* Wraps useIntentRecoverWithAddress and adds walletClient-based signing + sending.
|
|
1162
|
+
* @example
|
|
1163
|
+
* ```tsx
|
|
1164
|
+
* const { signPayload, getRecoverTx, recover } = useIntentRecover({
|
|
1165
|
+
* intentId: "0x...",
|
|
1166
|
+
* walletClient: walletClient,
|
|
1167
|
+
* })
|
|
1168
|
+
*
|
|
1169
|
+
* // Option 1: Manual flow
|
|
1170
|
+
* const { signature, payload } = await signPayload()
|
|
1171
|
+
* const recoverTx = await getRecoverTx({ signedHash: signature, payload })
|
|
1172
|
+
* await recover()
|
|
1173
|
+
*
|
|
1174
|
+
* // Option 2: Automatic flow (recommended)
|
|
1175
|
+
* const { txHash, receipt, chainId } = await recover()
|
|
1176
|
+
* const status = await getRecoverStatus({ txHash, chainId })
|
|
1177
|
+
* ```
|
|
1178
|
+
*/
|
|
1179
|
+
declare function useIntentRecover({
|
|
1180
|
+
intentId,
|
|
1181
|
+
walletClient,
|
|
1182
|
+
refundToAddress
|
|
1183
|
+
}: UseIntentRecoverParams): UseIntentRecoverReturn;
|
|
1184
|
+
/**
|
|
1185
|
+
* Recovery hook for apps that handle signing externally (e.g. embedded wallets)
|
|
1186
|
+
* Use getDataToSign to get EIP-712 data, sign with walletAddress, then getRecoverTx(signature, payload).
|
|
1187
|
+
* Refund goes to refundToAddress if provided, otherwise to walletAddress.
|
|
1188
|
+
* @example
|
|
1189
|
+
* ```tsx
|
|
1190
|
+
* const { getDataToSign, getRecoverTx } = useIntentRecoverWithAddress({
|
|
1191
|
+
* intentId: "0x...",
|
|
1192
|
+
* walletAddress: "0x...",
|
|
1193
|
+
* refundToAddress: "0x...", // optional, allows for different refund address than signer
|
|
1194
|
+
* })
|
|
1195
|
+
* const { payload, typedData, chainId } = await getDataToSign()
|
|
1196
|
+
* const signature = await myCustomWallet.signTypedData({ account: walletAddress, ...typedData })
|
|
1197
|
+
* const recoverTx = await getRecoverTx({ signature, payload })
|
|
1198
|
+
* const hash = await myCustomWallet.sendTransaction({ to: recoverTx.to, data: recoverTx.data, chain: recoverTx.chain })
|
|
1199
|
+
* ```
|
|
1200
|
+
*/
|
|
1201
|
+
declare function useIntentRecoverWithAddress({
|
|
1202
|
+
intentId,
|
|
1203
|
+
walletAddress,
|
|
1204
|
+
refundToAddress
|
|
1205
|
+
}: UseIntentRecoverWithAddressParams): UseIntentRecoverWithAddressReturn;
|
|
1206
|
+
//#endregion
|
|
1207
|
+
//#region src/offlineRecovery.d.ts
|
|
1208
|
+
interface TokenToCheck {
|
|
1209
|
+
tokenAddress: string;
|
|
1210
|
+
isNative: boolean;
|
|
1211
|
+
}
|
|
1212
|
+
interface TokenBalance extends TokenToCheck {
|
|
1213
|
+
balance: bigint;
|
|
1214
|
+
}
|
|
1215
|
+
declare function fetchIntentTokenBalancesViaRpc(intentAddress: Address.Address, tokens: TokenToCheck[], chainId: number): Promise<TokenBalance[]>;
|
|
1216
|
+
interface UseOfflineIntentRecoveryParams {
|
|
1217
|
+
intent: Intent | null;
|
|
1218
|
+
walletClient: WalletClient | undefined;
|
|
1219
|
+
ownerAddress: string;
|
|
1220
|
+
}
|
|
1221
|
+
interface UseOfflineIntentRecoveryReturn {
|
|
1222
|
+
recover: () => Promise<`0x${string}`>;
|
|
1223
|
+
isLoading: boolean;
|
|
1224
|
+
error: Error | null;
|
|
1225
|
+
}
|
|
1226
|
+
declare function useOfflineIntentRecovery({
|
|
1227
|
+
intent,
|
|
1228
|
+
walletClient,
|
|
1229
|
+
ownerAddress
|
|
1230
|
+
}: UseOfflineIntentRecoveryParams): UseOfflineIntentRecoveryReturn;
|
|
1231
|
+
//#endregion
|
|
1232
|
+
export { getEdgeSolanaRpcUrl as $, useTokenPrice as A, getTrailsClient as At, TokenBalance$1 as B, useFiatCurrencyList as C, TrailsSendTransactionVariables as Ct, usePublicClient as D, IntentReceiptStatus as Dt, useIndexerGatewayClient as E, useTrailsSendTransaction as Et, useTokenAddress as F, useHasSufficientBalanceUsd as G, UseHasSufficientBalanceUsdParams as H, useTokenInfo as I, FetchTokenBalanceOnchainReturn as J, useTokenBalances as K, useTokenList as L, useGetSequenceMetadataTokenImageUrl as M, useGetTokenImageUrl as N, usePublicClientGetter as O, useIntentReceiptMonitor as Ot, useSupportedTokens as P, PUBLIC_SOLANA_MAINNET_JSON_RPC as Q, MIN_REFETCH_INTERVAL as R, useExchangeRate as S, useGetIntent as St, useCountryList as T, UseTrailsSendTransactionReturnType as Tt, useAccountTotalBalanceUsd as U, UseHasSufficientBalanceTokenParams as V, useHasSufficientBalanceToken as W, GetTokenBalancesWithPriceReturn as X, GetTokenBalancesForMultipleAccountsReturn as Y, checkSufficientToken as Z, getOnrampClient as _, UseIntentTransactionHistoryParams as _t, BuildRefundTransactionWithSignatureParams as a, useResolveActions as at, useMeldPaymentMethods as b, UseGetIntentParams as bt, UseIntentRecoverWithAddressParams as c, useEarnProviders as ct, UseKeymachineIntentRecoveryReturn as d, useEarnBalances as dt, getEdgeSolanaRpcUrls as et, buildRefundTransactionWithSignature as f, UseEarnMarketsParams as ft, useKeymachineIntentRecovery as g, useExecuteIntent as gt, useIntentRecoverWithAddress as h, useCommitIntent as ht, useOfflineIntentRecovery as i, UseResolveActionsReturn as it, useTokenPrices as j, useTrailsClient as jt, useSupportedChains as k, TrailsClient as kt, UseIntentRecoverWithAddressReturn as l, UseEarnBalancesParams as lt, useIntentRecover as m, useEarnMarkets as mt, UseOfflineIntentRecoveryReturn as n, resolveSolanaMainnetJsonRpcUrls as nt, UseIntentRecoverParams as o, UseEarnProvidersParams as ot, signPayload as p, UseEarnMarketsReturn as pt, useTokenBalancesForMultipleAccounts as q, fetchIntentTokenBalancesViaRpc as r, UseResolveActionsProps as rt, UseIntentRecoverReturn as s, UseEarnProvidersReturn as st, UseOfflineIntentRecoveryParams as t, resolveSolanaMainnetJsonRpcUrl as tt, UseKeymachineIntentRecoveryParams as u, UseEarnBalancesReturn as ut, useOnrampClient as v, UseIntentTransactionHistoryReturn as vt, useCountryCode as w, UseTrailsSendTransactionParameters as wt, useMeldServiceProviders as x, UseGetIntentReturn as xt, TrailsOnramp as y, useIntentTransactionHistory as yt, NativeTokenBalance as z };
|