0xtrails 0.16.2 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +488 -3
- package/dist/BluvoExchangeSelection.lazy-D6ynQVSb.js +1 -0
- package/dist/BluvoOnrampFlow.lazy-BcDqhGLi.js +143 -0
- package/dist/ConnectWalletCard-BkbHCcWi.js +26 -0
- package/dist/actionBuilder-CAS2u5wu.js +2 -0
- package/dist/actions/index.d.ts +7 -23
- package/dist/actions/index.js +1 -37
- package/dist/contractConstants-CvJrYK9v.js +1 -0
- package/dist/defineProperty-BbfpZ9Tg.js +1 -0
- package/dist/edge-DmNcuJar.d.ts +121 -0
- package/dist/edge-L_Lk1K6j.js +1 -0
- package/dist/hooks/index.d.ts +6 -38
- package/dist/hooks/index.js +1 -67
- package/dist/hydrate/index.d.ts +196 -8
- package/dist/hydrate/index.js +1 -19
- package/dist/hydrate-QyWqQfec.js +1 -0
- package/dist/iife/trails.min.js +7324 -0
- package/dist/index-CMdwQmYL.d.ts +1044 -0
- package/dist/index.d.ts +1023 -114
- package/dist/index.js +1 -317
- package/dist/multicall-BCUHt_9t.d.ts +148 -0
- package/dist/offlineRecovery-BfgccnFf.d.ts +1232 -0
- package/dist/plugins/edge.d.ts +4 -0
- package/dist/plugins/edge.js +1 -0
- package/dist/quoteError-CmTH5Qm2.d.ts +24 -0
- package/dist/src-Cy3oxYgV.js +94 -0
- package/dist/sushiswapV3-D3h41LNZ.d.ts +723 -0
- package/dist/tokenTypes-D812t5L9.d.ts +31 -0
- package/dist/types-BK0WkVnx.d.ts +2161 -0
- package/dist/useViewManager-BeUH_k1s.d.ts +1224 -0
- package/dist/{actions/utils.d.ts → utils-KPnWBA9x.d.ts} +77 -52
- package/dist/widget/connect-showcase.d.ts +8 -0
- package/dist/widget/connect-showcase.js +1 -0
- package/dist/widget/index.d.ts +5 -21
- package/dist/widget/index.js +1 -33
- package/package.json +42 -42
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/defineProperty.js +0 -12
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/toPrimitive.js +0 -14
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/toPropertyKey.js +0 -9
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/typeof.js +0 -11
- package/dist/abi.d.ts +0 -37
- package/dist/abi.d.ts.map +0 -1
- package/dist/abis/erc20.d.ts +0 -19
- package/dist/abis/erc20.d.ts.map +0 -1
- package/dist/abis/requireUtils.d.ts +0 -134
- package/dist/abis/requireUtils.d.ts.map +0 -1
- package/dist/abis/requireUtils.js +0 -168
- package/dist/abis/trailsHydrate.d.ts +0 -7
- package/dist/abis/trailsHydrate.d.ts.map +0 -1
- package/dist/abis/trailsRouter.d.ts +0 -30
- package/dist/abis/trailsRouter.d.ts.map +0 -1
- package/dist/abis/trailsRouter.js +0 -66
- package/dist/abis/trailsSweep.d.ts +0 -7
- package/dist/abis/trailsSweep.d.ts.map +0 -1
- package/dist/abortController.d.ts +0 -8
- package/dist/abortController.d.ts.map +0 -1
- package/dist/abortController.js +0 -23
- package/dist/actions/actionBuilder.d.ts +0 -424
- package/dist/actions/actionBuilder.d.ts.map +0 -1
- package/dist/actions/actionBuilder.js +0 -173
- package/dist/actions/constants.d.ts +0 -1809
- package/dist/actions/constants.d.ts.map +0 -1
- package/dist/actions/constants.js +0 -37
- package/dist/actions/custom-integrations/sushiswapV3/addresses.d.ts +0 -4
- package/dist/actions/custom-integrations/sushiswapV3/addresses.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/addresses.js +0 -33
- package/dist/actions/custom-integrations/sushiswapV3/calldata.d.ts +0 -4
- package/dist/actions/custom-integrations/sushiswapV3/calldata.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/calldata.js +0 -124
- package/dist/actions/custom-integrations/sushiswapV3/calls.d.ts +0 -28
- package/dist/actions/custom-integrations/sushiswapV3/calls.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/calls.js +0 -27
- package/dist/actions/custom-integrations/sushiswapV3/helpers.d.ts +0 -15
- package/dist/actions/custom-integrations/sushiswapV3/helpers.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/helpers.js +0 -27
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.d.ts +0 -9
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.js +0 -246
- package/dist/actions/custom-integrations/sushiswapV3/types.d.ts +0 -95
- package/dist/actions/custom-integrations/sushiswapV3/types.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/addresses.d.ts +0 -4
- package/dist/actions/custom-integrations/uniswapV3/addresses.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/addresses.js +0 -33
- package/dist/actions/custom-integrations/uniswapV3/calldata.d.ts +0 -4
- package/dist/actions/custom-integrations/uniswapV3/calldata.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/calldata.js +0 -190
- package/dist/actions/custom-integrations/uniswapV3/calls.d.ts +0 -50
- package/dist/actions/custom-integrations/uniswapV3/calls.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/calls.js +0 -27
- package/dist/actions/custom-integrations/uniswapV3/helpers.d.ts +0 -23
- package/dist/actions/custom-integrations/uniswapV3/helpers.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/helpers.js +0 -27
- package/dist/actions/custom-integrations/uniswapV3/types.d.ts +0 -90
- package/dist/actions/custom-integrations/uniswapV3/types.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.d.ts +0 -9
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.js +0 -244
- package/dist/actions/destinationCalls.d.ts +0 -17
- package/dist/actions/destinationCalls.d.ts.map +0 -1
- package/dist/actions/destinationCalls.js +0 -43
- package/dist/actions/dynamic.d.ts +0 -97
- package/dist/actions/dynamic.d.ts.map +0 -1
- package/dist/actions/dynamic.js +0 -27
- package/dist/actions/hooks/useEarnBalances.d.ts +0 -53
- package/dist/actions/hooks/useEarnBalances.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnBalances.js +0 -37
- package/dist/actions/hooks/useEarnMarkets.d.ts +0 -29
- package/dist/actions/hooks/useEarnMarkets.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnMarkets.js +0 -30
- package/dist/actions/hooks/useEarnProviders.d.ts +0 -18
- package/dist/actions/hooks/useEarnProviders.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnProviders.js +0 -25
- package/dist/actions/hooks/useResolveActions.d.ts +0 -19
- package/dist/actions/hooks/useResolveActions.d.ts.map +0 -1
- package/dist/actions/hooks/useResolveActions.js +0 -56
- package/dist/actions/index.d.ts.map +0 -1
- package/dist/actions/resolveActions.d.ts +0 -13
- package/dist/actions/resolveActions.d.ts.map +0 -1
- package/dist/actions/resolveActions.js +0 -267
- package/dist/actions/resolvers.d.ts +0 -29
- package/dist/actions/resolvers.d.ts.map +0 -1
- package/dist/actions/resolvers.js +0 -161
- package/dist/actions/types/earn.d.ts +0 -51
- package/dist/actions/types/earn.d.ts.map +0 -1
- package/dist/actions/types.d.ts +0 -319
- package/dist/actions/types.d.ts.map +0 -1
- package/dist/actions/types.js +0 -24
- package/dist/actions/utils.d.ts.map +0 -1
- package/dist/actions/utils.js +0 -203
- package/dist/adapters/evmAdapter.d.ts +0 -10
- package/dist/adapters/evmAdapter.d.ts.map +0 -1
- package/dist/adapters/evmAdapter.js +0 -28
- package/dist/analytics/hooks/useWidgetAnalytics.d.ts +0 -8
- package/dist/analytics/hooks/useWidgetAnalytics.d.ts.map +0 -1
- package/dist/analytics/hooks/useWidgetAnalytics.js +0 -41
- package/dist/analytics.d.ts +0 -715
- package/dist/analytics.d.ts.map +0 -1
- package/dist/analytics.js +0 -881
- package/dist/chainRegistry.d.ts +0 -6
- package/dist/chainRegistry.d.ts.map +0 -1
- package/dist/chainRegistry.js +0 -47
- package/dist/chainResolution.d.ts +0 -6
- package/dist/chainResolution.d.ts.map +0 -1
- package/dist/chainResolution.js +0 -53
- package/dist/chainRpcClient.d.ts +0 -8
- package/dist/chainRpcClient.d.ts.map +0 -1
- package/dist/chainRpcClient.js +0 -67
- package/dist/chainSwitch.d.ts +0 -7
- package/dist/chainSwitch.d.ts.map +0 -1
- package/dist/chainSwitch.js +0 -66
- package/dist/chains.d.ts +0 -59
- package/dist/chains.d.ts.map +0 -1
- package/dist/chains.js +0 -152
- package/dist/committedIntentStore.d.ts +0 -5
- package/dist/committedIntentStore.d.ts.map +0 -1
- package/dist/committedIntentStore.js +0 -52
- package/dist/config.d.ts +0 -2
- package/dist/config.d.ts.map +0 -1
- package/dist/configDefaults.d.ts +0 -7
- package/dist/configDefaults.d.ts.map +0 -1
- package/dist/configDefaults.js +0 -9
- package/dist/configStore.d.ts +0 -31
- package/dist/configStore.d.ts.map +0 -1
- package/dist/configStore.js +0 -53
- package/dist/constants.d.ts +0 -176
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -184
- package/dist/contractConstants.d.ts +0 -8
- package/dist/contractConstants.d.ts.map +0 -1
- package/dist/contractConstants.js +0 -9
- package/dist/contractUtils.d.ts +0 -6
- package/dist/contractUtils.d.ts.map +0 -1
- package/dist/contractUtils.js +0 -19
- package/dist/cssUtils.d.ts +0 -2
- package/dist/cssUtils.d.ts.map +0 -1
- package/dist/cssUtils.js +0 -7
- package/dist/customChains.d.ts +0 -24
- package/dist/customChains.d.ts.map +0 -1
- package/dist/customChains.js +0 -20
- package/dist/customTokens.d.ts +0 -12
- package/dist/customTokens.d.ts.map +0 -1
- package/dist/customTokens.js +0 -64
- package/dist/decoders.d.ts +0 -69
- package/dist/decoders.d.ts.map +0 -1
- package/dist/decoders.js +0 -181
- package/dist/ens.d.ts +0 -20
- package/dist/ens.d.ts.map +0 -1
- package/dist/ens.js +0 -92
- package/dist/error.d.ts +0 -97
- package/dist/error.d.ts.map +0 -1
- package/dist/error.js +0 -298
- package/dist/estimate.d.ts +0 -78
- package/dist/estimate.d.ts.map +0 -1
- package/dist/estimate.js +0 -147
- package/dist/explorer.d.ts +0 -12
- package/dist/explorer.d.ts.map +0 -1
- package/dist/explorer.js +0 -15
- package/dist/fees.d.ts +0 -65
- package/dist/fees.d.ts.map +0 -1
- package/dist/fees.js +0 -165
- package/dist/gasless.d.ts +0 -123
- package/dist/gasless.d.ts.map +0 -1
- package/dist/gasless.js +0 -314
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/persistedToken.d.ts +0 -22
- package/dist/hooks/persistedToken.d.ts.map +0 -1
- package/dist/hooks/persistedToken.js +0 -65
- package/dist/hooks/prepareTrailsSendTransactionDestination.d.ts +0 -26
- package/dist/hooks/prepareTrailsSendTransactionDestination.d.ts.map +0 -1
- package/dist/hooks/prepareTrailsSendTransactionDestination.js +0 -33
- package/dist/hooks/useAmountUsd.d.ts +0 -12
- package/dist/hooks/useAmountUsd.d.ts.map +0 -1
- package/dist/hooks/useAmountUsd.js +0 -21
- package/dist/hooks/useBalanceVisible.d.ts +0 -15
- package/dist/hooks/useBalanceVisible.d.ts.map +0 -1
- package/dist/hooks/useBalanceVisible.js +0 -46
- package/dist/hooks/useBluvoTokenList.d.ts +0 -13
- package/dist/hooks/useBluvoTokenList.d.ts.map +0 -1
- package/dist/hooks/useBluvoTokenList.js +0 -57
- package/dist/hooks/useChainFilter.d.ts +0 -14
- package/dist/hooks/useChainFilter.d.ts.map +0 -1
- package/dist/hooks/useChainFilter.js +0 -24
- package/dist/hooks/useCheckout.d.ts +0 -80
- package/dist/hooks/useCheckout.d.ts.map +0 -1
- package/dist/hooks/useCheckout.js +0 -118
- package/dist/hooks/useClickTracking.d.ts +0 -12
- package/dist/hooks/useClickTracking.d.ts.map +0 -1
- package/dist/hooks/useClickTracking.js +0 -37
- package/dist/hooks/useCombinedHistory.d.ts +0 -50
- package/dist/hooks/useCombinedHistory.d.ts.map +0 -1
- package/dist/hooks/useCombinedHistory.js +0 -168
- package/dist/hooks/useCustomTokenSearch.d.ts +0 -28
- package/dist/hooks/useCustomTokenSearch.d.ts.map +0 -1
- package/dist/hooks/useCustomTokenSearch.js +0 -165
- package/dist/hooks/useDebounce.d.ts +0 -10
- package/dist/hooks/useDebounce.d.ts.map +0 -1
- package/dist/hooks/useDebounce.js +0 -15
- package/dist/hooks/useDebugScreens.d.ts +0 -17
- package/dist/hooks/useDebugScreens.d.ts.map +0 -1
- package/dist/hooks/useDebugScreens.js +0 -412
- package/dist/hooks/useDefaultDestinationToken.d.ts +0 -20
- package/dist/hooks/useDefaultDestinationToken.d.ts.map +0 -1
- package/dist/hooks/useDefaultDestinationToken.js +0 -60
- package/dist/hooks/useDefaultOriginToken.d.ts +0 -26
- package/dist/hooks/useDefaultOriginToken.d.ts.map +0 -1
- package/dist/hooks/useDefaultOriginToken.js +0 -120
- package/dist/hooks/useDepositMonitor.d.ts +0 -20
- package/dist/hooks/useDepositMonitor.d.ts.map +0 -1
- package/dist/hooks/useDepositMonitor.js +0 -54
- package/dist/hooks/useDestinationSelectedToken.d.ts +0 -38
- package/dist/hooks/useDestinationSelectedToken.d.ts.map +0 -1
- package/dist/hooks/useDestinationSelectedToken.js +0 -178
- package/dist/hooks/useDisplayCurrencyPreference.d.ts +0 -15
- package/dist/hooks/useDisplayCurrencyPreference.d.ts.map +0 -1
- package/dist/hooks/useDisplayCurrencyPreference.js +0 -57
- package/dist/hooks/useEarnPool.d.ts +0 -12
- package/dist/hooks/useEarnPool.d.ts.map +0 -1
- package/dist/hooks/useEarnPool.js +0 -21
- package/dist/hooks/useEffectiveFundBalance.d.ts +0 -28
- package/dist/hooks/useEffectiveFundBalance.d.ts.map +0 -1
- package/dist/hooks/useEffectiveFundBalance.js +0 -24
- package/dist/hooks/useExchangeFundingSelection.d.ts +0 -17
- package/dist/hooks/useExchangeFundingSelection.d.ts.map +0 -1
- package/dist/hooks/useExchangeFundingSelection.js +0 -25
- package/dist/hooks/useExecutingIntentsCount.d.ts +0 -15
- package/dist/hooks/useExecutingIntentsCount.d.ts.map +0 -1
- package/dist/hooks/useExternalFundingReceiptSync.d.ts +0 -11
- package/dist/hooks/useExternalFundingReceiptSync.d.ts.map +0 -1
- package/dist/hooks/useExternalFundingReceiptSync.js +0 -32
- package/dist/hooks/useFiatOnRampCurrencies.d.ts +0 -15
- package/dist/hooks/useFiatOnRampCurrencies.d.ts.map +0 -1
- package/dist/hooks/useFiatOnRampCurrencies.js +0 -14
- package/dist/hooks/useFiatSelectedCurrency.d.ts +0 -19
- package/dist/hooks/useFiatSelectedCurrency.d.ts.map +0 -1
- package/dist/hooks/useFiatSelectedCurrency.js +0 -55
- package/dist/hooks/useGetIntent.d.ts +0 -19
- package/dist/hooks/useGetIntent.d.ts.map +0 -1
- package/dist/hooks/useGetIntent.js +0 -26
- package/dist/hooks/useIntentReceiptBalances.d.ts +0 -16
- package/dist/hooks/useIntentReceiptBalances.d.ts.map +0 -1
- package/dist/hooks/useIntentReceiptBalances.js +0 -77
- package/dist/hooks/useIntentTransactionHistory.d.ts +0 -25
- package/dist/hooks/useIntentTransactionHistory.d.ts.map +0 -1
- package/dist/hooks/useIntentTransactionHistory.js +0 -357
- package/dist/hooks/useIsMobile.d.ts +0 -5
- package/dist/hooks/useIsMobile.d.ts.map +0 -1
- package/dist/hooks/useIsMobile.js +0 -21
- package/dist/hooks/useLocalePreference.d.ts +0 -21
- package/dist/hooks/useLocalePreference.d.ts.map +0 -1
- package/dist/hooks/useLocalePreference.js +0 -193
- package/dist/hooks/useMeldTransactionHistory.d.ts +0 -49
- package/dist/hooks/useMeldTransactionHistory.d.ts.map +0 -1
- package/dist/hooks/useMeldTransactionHistory.js +0 -71
- package/dist/hooks/useMeldTransactionStatus.d.ts +0 -61
- package/dist/hooks/useMeldTransactionStatus.d.ts.map +0 -1
- package/dist/hooks/useMeldTransactionStatus.js +0 -284
- package/dist/hooks/useOnRampCountryDefaults.d.ts +0 -18
- package/dist/hooks/useOnRampCountryDefaults.d.ts.map +0 -1
- package/dist/hooks/useOnRampCountryDefaults.js +0 -20
- package/dist/hooks/useOnRampPaymentMethods.d.ts +0 -15
- package/dist/hooks/useOnRampPaymentMethods.d.ts.map +0 -1
- package/dist/hooks/useOnRampPaymentMethods.js +0 -27
- package/dist/hooks/useOnRampProviderWidget.d.ts +0 -40
- package/dist/hooks/useOnRampProviderWidget.d.ts.map +0 -1
- package/dist/hooks/useOnRampProviderWidget.js +0 -70
- package/dist/hooks/useOnRampQuote.d.ts +0 -38
- package/dist/hooks/useOnRampQuote.d.ts.map +0 -1
- package/dist/hooks/useOnRampQuote.js +0 -159
- package/dist/hooks/useOnRampTransactionStatus.d.ts +0 -73
- package/dist/hooks/useOnRampTransactionStatus.d.ts.map +0 -1
- package/dist/hooks/useOriginSelectedToken.d.ts +0 -22
- package/dist/hooks/useOriginSelectedToken.d.ts.map +0 -1
- package/dist/hooks/useOriginSelectedToken.js +0 -127
- package/dist/hooks/usePayMessage.d.ts +0 -35
- package/dist/hooks/usePayMessage.d.ts.map +0 -1
- package/dist/hooks/usePayMessage.js +0 -333
- package/dist/hooks/usePriceImpactWarning.d.ts +0 -8
- package/dist/hooks/usePriceImpactWarning.d.ts.map +0 -1
- package/dist/hooks/usePriceImpactWarning.js +0 -9
- package/dist/hooks/useQuote.d.ts +0 -611
- package/dist/hooks/useQuote.d.ts.map +0 -1
- package/dist/hooks/useQuote.js +0 -590
- package/dist/hooks/useRecentChains.d.ts +0 -7
- package/dist/hooks/useRecentChains.d.ts.map +0 -1
- package/dist/hooks/useRecentChains.js +0 -52
- package/dist/hooks/useRecentTokens.d.ts +0 -7
- package/dist/hooks/useRecentTokens.d.ts.map +0 -1
- package/dist/hooks/useRecentTokens.js +0 -82
- package/dist/hooks/useRecipients.d.ts +0 -17
- package/dist/hooks/useRecipients.d.ts.map +0 -1
- package/dist/hooks/useRecipients.js +0 -75
- package/dist/hooks/useSelectedFeeOption.d.ts +0 -31
- package/dist/hooks/useSelectedFeeOption.d.ts.map +0 -1
- package/dist/hooks/useSelectedFeeOption.js +0 -113
- package/dist/hooks/useSelectedFundMethod.d.ts +0 -73
- package/dist/hooks/useSelectedFundMethod.d.ts.map +0 -1
- package/dist/hooks/useSelectedFundMethod.js +0 -51
- package/dist/hooks/useSelectedRecipient.d.ts +0 -12
- package/dist/hooks/useSelectedRecipient.d.ts.map +0 -1
- package/dist/hooks/useSelectedRecipient.js +0 -39
- package/dist/hooks/useSendForm.d.ts +0 -141
- package/dist/hooks/useSendForm.d.ts.map +0 -1
- package/dist/hooks/useSendForm.js +0 -595
- package/dist/hooks/useSwapAmount.d.ts +0 -13
- package/dist/hooks/useSwapAmount.d.ts.map +0 -1
- package/dist/hooks/useSwapAmount.js +0 -24
- package/dist/hooks/useSwapState.d.ts +0 -21
- package/dist/hooks/useSwapState.d.ts.map +0 -1
- package/dist/hooks/useSwapState.js +0 -44
- package/dist/hooks/useTargetAmount.d.ts +0 -6
- package/dist/hooks/useTargetAmount.d.ts.map +0 -1
- package/dist/hooks/useTargetAmount.js +0 -17
- package/dist/hooks/useTheme.d.ts +0 -14
- package/dist/hooks/useTheme.d.ts.map +0 -1
- package/dist/hooks/useTheme.js +0 -47
- package/dist/hooks/useTokenList.d.ts +0 -43
- package/dist/hooks/useTokenList.d.ts.map +0 -1
- package/dist/hooks/useTokenList.js +0 -456
- package/dist/hooks/useTrailsSendTransaction.d.ts +0 -139
- package/dist/hooks/useTrailsSendTransaction.d.ts.map +0 -1
- package/dist/hooks/useTrailsSendTransaction.js +0 -418
- package/dist/hooks/useViewManager.d.ts +0 -89
- package/dist/hooks/useViewManager.d.ts.map +0 -1
- package/dist/hooks/useViewManager.js +0 -274
- package/dist/hooks/useWalletConnectionContext.d.ts +0 -26
- package/dist/hooks/useWalletConnectionContext.d.ts.map +0 -1
- package/dist/hooks/useWalletConnectionContext.js +0 -53
- package/dist/hooks/useWidgetProps.d.ts +0 -13
- package/dist/hooks/useWidgetProps.d.ts.map +0 -1
- package/dist/hooks/useWidgetProps.js +0 -18
- package/dist/hydrate/builder.d.ts +0 -131
- package/dist/hydrate/builder.d.ts.map +0 -1
- package/dist/hydrate/builder.js +0 -210
- package/dist/hydrate/constants.d.ts +0 -13
- package/dist/hydrate/constants.d.ts.map +0 -1
- package/dist/hydrate/constants.js +0 -5
- package/dist/hydrate/encodeExecute.d.ts +0 -73
- package/dist/hydrate/encodeExecute.d.ts.map +0 -1
- package/dist/hydrate/encodeExecute.js +0 -60
- package/dist/hydrate/index.d.ts.map +0 -1
- package/dist/hydrate/multicall.d.ts +0 -69
- package/dist/hydrate/multicall.d.ts.map +0 -1
- package/dist/hydrate/multicall.js +0 -167
- package/dist/hydrate/payload.d.ts +0 -38
- package/dist/hydrate/payload.d.ts.map +0 -1
- package/dist/hydrate/payload.js +0 -26
- package/dist/hydrate/selectors.d.ts +0 -28
- package/dist/hydrate/selectors.d.ts.map +0 -1
- package/dist/hydrate/selectors.js +0 -326
- package/dist/hydrate/source.d.ts +0 -11
- package/dist/hydrate/source.d.ts.map +0 -1
- package/dist/hydrate/source.js +0 -19
- package/dist/hydrate/types.d.ts +0 -21
- package/dist/hydrate/types.d.ts.map +0 -1
- package/dist/hydrate/utils.d.ts +0 -8
- package/dist/hydrate/utils.d.ts.map +0 -1
- package/dist/hydrate/utils.js +0 -23
- package/dist/index.d.ts.map +0 -1
- package/dist/indexerClient.d.ts +0 -23
- package/dist/indexerClient.d.ts.map +0 -1
- package/dist/indexerClient.js +0 -40
- package/dist/intentConfigStore.d.ts +0 -8
- package/dist/intentConfigStore.d.ts.map +0 -1
- package/dist/intentConfigStore.js +0 -40
- package/dist/intentProtocolApi.d.ts +0 -11
- package/dist/intentProtocolApi.d.ts.map +0 -1
- package/dist/intentProtocolApi.js +0 -11
- package/dist/intentProtocolEncoding.d.ts +0 -30
- package/dist/intentProtocolEncoding.d.ts.map +0 -1
- package/dist/intentProtocolEncoding.js +0 -114
- package/dist/intentProtocolResolver.d.ts +0 -28
- package/dist/intentProtocolResolver.d.ts.map +0 -1
- package/dist/intentProtocolResolver.js +0 -34
- package/dist/intentReceiptMonitor.d.ts +0 -24
- package/dist/intentReceiptMonitor.d.ts.map +0 -1
- package/dist/intentReceiptMonitor.js +0 -30
- package/dist/intentReceiptPoller.d.ts +0 -69
- package/dist/intentReceiptPoller.d.ts.map +0 -1
- package/dist/intentReceiptPoller.js +0 -162
- package/dist/intentValidation.d.ts +0 -5
- package/dist/intentValidation.d.ts.map +0 -1
- package/dist/intentValidation.js +0 -19
- package/dist/intents.d.ts +0 -148
- package/dist/intents.d.ts.map +0 -1
- package/dist/intents.js +0 -391
- package/dist/keyMachineClient.d.ts +0 -9
- package/dist/keyMachineClient.d.ts.map +0 -1
- package/dist/keyMachineClient.js +0 -13
- package/dist/keymachine/index.d.ts +0 -34
- package/dist/keymachine/index.d.ts.map +0 -1
- package/dist/keymachine/index.js +0 -92
- package/dist/keymachine/key-machine.gen.d.ts +0 -461
- package/dist/keymachine/key-machine.gen.d.ts.map +0 -1
- package/dist/keymachine/key-machine.gen.js +0 -164
- package/dist/localeUtils.d.ts +0 -46
- package/dist/localeUtils.d.ts.map +0 -1
- package/dist/localeUtils.js +0 -60
- package/dist/logger/index.d.ts +0 -16
- package/dist/logger/index.d.ts.map +0 -1
- package/dist/logger/index.js +0 -57
- package/dist/logger/useSyncLoggerDebug.d.ts +0 -2
- package/dist/logger/useSyncLoggerDebug.d.ts.map +0 -1
- package/dist/logger/useSyncLoggerDebug.js +0 -9
- package/dist/logger.d.ts +0 -2
- package/dist/logger.d.ts.map +0 -1
- package/dist/meld/components/MeldCountriesList.d.ts +0 -9
- package/dist/meld/components/MeldCountriesList.d.ts.map +0 -1
- package/dist/meld/components/MeldCountriesList.js +0 -167
- package/dist/meld/components/MeldFundMethods.d.ts +0 -14
- package/dist/meld/components/MeldFundMethods.d.ts.map +0 -1
- package/dist/meld/components/MeldFundMethods.js +0 -163
- package/dist/meld/components/MeldProvidersList.d.ts +0 -11
- package/dist/meld/components/MeldProvidersList.d.ts.map +0 -1
- package/dist/meld/components/MeldProvidersList.js +0 -145
- package/dist/meld/components/MeldTokensList.d.ts +0 -12
- package/dist/meld/components/MeldTokensList.d.ts.map +0 -1
- package/dist/meld/components/MeldTokensList.js +0 -215
- package/dist/meld/components/SimpleHeader.d.ts +0 -8
- package/dist/meld/components/SimpleHeader.d.ts.map +0 -1
- package/dist/meld/components/SimpleHeader.js +0 -18
- package/dist/meld/utils/meld.d.ts +0 -41
- package/dist/meld/utils/meld.d.ts.map +0 -1
- package/dist/meld/utils/meld.js +0 -24
- package/dist/mutations.d.ts +0 -19
- package/dist/mutations.d.ts.map +0 -1
- package/dist/mutations.js +0 -91
- package/dist/offlineRecovery.d.ts +0 -24
- package/dist/offlineRecovery.d.ts.map +0 -1
- package/dist/offlineRecovery.js +0 -219
- package/dist/onramp/MeshConnectFlow.d.ts +0 -27
- package/dist/onramp/MeshConnectFlow.d.ts.map +0 -1
- package/dist/onramp/MeshConnectFlow.js +0 -41
- package/dist/onramp/MeshConnectIframe.d.ts +0 -22
- package/dist/onramp/MeshConnectIframe.d.ts.map +0 -1
- package/dist/onramp/MeshConnectIframe.js +0 -434
- package/dist/onramp/SendFromExchangeButton.d.ts +0 -16
- package/dist/onramp/SendFromExchangeButton.d.ts.map +0 -1
- package/dist/onramp/SendFromExchangeButton.js +0 -36
- package/dist/onramp/TrailsOnRampProvider.d.ts +0 -38
- package/dist/onramp/TrailsOnRampProvider.d.ts.map +0 -1
- package/dist/onramp/TrailsOnRampProvider.js +0 -25
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.d.ts +0 -12
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.d.ts.map +0 -1
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.js +0 -18
- package/dist/onramp/index.d.ts +0 -13
- package/dist/onramp/index.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.d.ts +0 -10
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.js +0 -62
- package/dist/onramp/mesh/components/MeshExchangeIcon.d.ts +0 -13
- package/dist/onramp/mesh/components/MeshExchangeIcon.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeIcon.js +0 -54
- package/dist/onramp/mesh/components/MeshExchangeSelection.d.ts +0 -12
- package/dist/onramp/mesh/components/MeshExchangeSelection.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeSelection.js +0 -135
- package/dist/onramp/mesh/components/MeshSessionOptions.d.ts +0 -15
- package/dist/onramp/mesh/components/MeshSessionOptions.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshSessionOptions.js +0 -68
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.d.ts +0 -9
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.js +0 -38
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.d.ts +0 -11
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.js +0 -21
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.d.ts +0 -71
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.js +0 -168
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.d.ts +0 -32
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.js +0 -28
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.d.ts +0 -19
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.js +0 -57
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.d.ts +0 -15
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.js +0 -45
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.d.ts +0 -7
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.js +0 -20
- package/dist/onramp/meshSessionStorage.d.ts +0 -13
- package/dist/onramp/meshSessionStorage.d.ts.map +0 -1
- package/dist/onramp/meshSessionStorage.js +0 -165
- package/dist/onramp/meshconnect.d.ts +0 -32
- package/dist/onramp/meshconnect.d.ts.map +0 -1
- package/dist/onramp/meshconnect.js +0 -124
- package/dist/onramp/trailsOnramp.d.ts +0 -32
- package/dist/onramp/trailsOnramp.d.ts.map +0 -1
- package/dist/onramp/trailsOnramp.js +0 -64
- package/dist/onramp-client/index.d.ts +0 -13
- package/dist/onramp-client/index.d.ts.map +0 -1
- package/dist/onramp-client/index.js +0 -19
- package/dist/onrampClient.d.ts +0 -10
- package/dist/onrampClient.d.ts.map +0 -1
- package/dist/onrampClient.js +0 -31
- package/dist/package.js +0 -123
- package/dist/placeholder.d.ts +0 -142
- package/dist/placeholder.d.ts.map +0 -1
- package/dist/placeholder.js +0 -95
- package/dist/poolUtils.d.ts +0 -16
- package/dist/poolUtils.d.ts.map +0 -1
- package/dist/poolUtils.js +0 -87
- package/dist/pools.d.ts +0 -33
- package/dist/pools.d.ts.map +0 -1
- package/dist/pools.js +0 -77
- package/dist/prepareSend.d.ts +0 -12
- package/dist/prepareSend.d.ts.map +0 -1
- package/dist/prepareSend.js +0 -207
- package/dist/query/QueryProvider.d.ts +0 -9
- package/dist/query/QueryProvider.d.ts.map +0 -1
- package/dist/query/QueryProvider.js +0 -13
- package/dist/query/balance.fetchers.d.ts +0 -116
- package/dist/query/balance.fetchers.d.ts.map +0 -1
- package/dist/query/balance.fetchers.js +0 -289
- package/dist/query/balance.hooks.d.ts +0 -80
- package/dist/query/balance.hooks.d.ts.map +0 -1
- package/dist/query/balance.hooks.js +0 -123
- package/dist/query/balance.queries.d.ts +0 -93
- package/dist/query/balance.queries.d.ts.map +0 -1
- package/dist/query/balance.queries.js +0 -142
- package/dist/query/chains.hooks.d.ts +0 -5
- package/dist/query/chains.hooks.d.ts.map +0 -1
- package/dist/query/chains.hooks.js +0 -40
- package/dist/query/chains.queries.d.ts +0 -16
- package/dist/query/chains.queries.d.ts.map +0 -1
- package/dist/query/chains.queries.js +0 -17
- package/dist/query/client.d.ts +0 -16
- package/dist/query/client.d.ts.map +0 -1
- package/dist/query/client.js +0 -15
- package/dist/query/fiat.fetchers.d.ts +0 -11
- package/dist/query/fiat.fetchers.d.ts.map +0 -1
- package/dist/query/fiat.fetchers.js +0 -10
- package/dist/query/fiat.hooks.d.ts +0 -18
- package/dist/query/fiat.hooks.d.ts.map +0 -1
- package/dist/query/fiat.hooks.js +0 -20
- package/dist/query/fiat.queries.d.ts +0 -24
- package/dist/query/fiat.queries.d.ts.map +0 -1
- package/dist/query/fiat.queries.js +0 -39
- package/dist/query/geo.fetchers.d.ts +0 -5
- package/dist/query/geo.fetchers.d.ts.map +0 -1
- package/dist/query/geo.fetchers.js +0 -61
- package/dist/query/geo.hooks.d.ts +0 -5
- package/dist/query/geo.hooks.d.ts.map +0 -1
- package/dist/query/geo.hooks.js +0 -17
- package/dist/query/geo.queries.d.ts +0 -22
- package/dist/query/geo.queries.d.ts.map +0 -1
- package/dist/query/geo.queries.js +0 -33
- package/dist/query/helpers.d.ts +0 -18
- package/dist/query/helpers.d.ts.map +0 -1
- package/dist/query/helpers.js +0 -31
- package/dist/query/intentProtocol.queries.d.ts +0 -32
- package/dist/query/intentProtocol.queries.d.ts.map +0 -1
- package/dist/query/intentProtocol.queries.js +0 -41
- package/dist/query/meld.fetchers.d.ts +0 -19
- package/dist/query/meld.fetchers.d.ts.map +0 -1
- package/dist/query/meld.fetchers.js +0 -41
- package/dist/query/meld.hooks.d.ts +0 -4
- package/dist/query/meld.hooks.d.ts.map +0 -1
- package/dist/query/meld.hooks.js +0 -15
- package/dist/query/meld.queries.d.ts +0 -61
- package/dist/query/meld.queries.d.ts.map +0 -1
- package/dist/query/meld.queries.js +0 -97
- package/dist/query/persister.d.ts +0 -9
- package/dist/query/persister.d.ts.map +0 -1
- package/dist/query/persister.js +0 -13
- package/dist/query/price.fetchers.d.ts +0 -15
- package/dist/query/price.fetchers.d.ts.map +0 -1
- package/dist/query/price.fetchers.js +0 -26
- package/dist/query/price.hooks.d.ts +0 -352
- package/dist/query/price.hooks.d.ts.map +0 -1
- package/dist/query/price.hooks.js +0 -35
- package/dist/query/price.queries.d.ts +0 -34
- package/dist/query/price.queries.d.ts.map +0 -1
- package/dist/query/price.queries.js +0 -139
- package/dist/query/serialization.d.ts +0 -3
- package/dist/query/serialization.d.ts.map +0 -1
- package/dist/query/serialization.js +0 -17
- package/dist/query/token.fetchers.d.ts +0 -13
- package/dist/query/token.fetchers.d.ts.map +0 -1
- package/dist/query/token.fetchers.js +0 -6
- package/dist/query/token.hooks.d.ts +0 -41
- package/dist/query/token.hooks.d.ts.map +0 -1
- package/dist/query/token.hooks.js +0 -68
- package/dist/query/token.queries.d.ts +0 -67
- package/dist/query/token.queries.d.ts.map +0 -1
- package/dist/query/token.queries.js +0 -144
- package/dist/queryParams.d.ts +0 -9
- package/dist/queryParams.d.ts.map +0 -1
- package/dist/queryParamsCore.d.ts +0 -2
- package/dist/queryParamsCore.d.ts.map +0 -1
- package/dist/queryParamsCore.js +0 -10
- package/dist/quoteError.d.ts +0 -22
- package/dist/quoteError.d.ts.map +0 -1
- package/dist/quoteError.js +0 -9
- package/dist/recover.d.ts +0 -304
- package/dist/recover.d.ts.map +0 -1
- package/dist/recover.js +0 -703
- package/dist/smartContractWallet.d.ts +0 -8
- package/dist/smartContractWallet.d.ts.map +0 -1
- package/dist/smartContractWallet.js +0 -11
- package/dist/theme.d.ts +0 -3
- package/dist/theme.d.ts.map +0 -1
- package/dist/toast.d.ts +0 -9
- package/dist/toast.d.ts.map +0 -1
- package/dist/toast.js +0 -31
- package/dist/tokenRegistry.d.ts +0 -50
- package/dist/tokenRegistry.d.ts.map +0 -1
- package/dist/tokenRegistry.js +0 -589
- package/dist/tokenTypes.d.ts +0 -29
- package/dist/tokenTypes.d.ts.map +0 -1
- package/dist/tokens.d.ts +0 -62
- package/dist/tokens.d.ts.map +0 -1
- package/dist/tokens.js +0 -370
- package/dist/trailsClient.d.ts +0 -11
- package/dist/trailsClient.d.ts.map +0 -1
- package/dist/trailsClient.js +0 -29
- package/dist/transactionIntent/constants.d.ts +0 -8
- package/dist/transactionIntent/constants.d.ts.map +0 -1
- package/dist/transactionIntent/constants.js +0 -11
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts +0 -55
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/depositOrchestrator.js +0 -88
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts +0 -31
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/gaslessDeposit.js +0 -218
- package/dist/transactionIntent/deposits/index.d.ts +0 -4
- package/dist/transactionIntent/deposits/index.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/standardDeposit.d.ts +0 -50
- package/dist/transactionIntent/deposits/standardDeposit.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/standardDeposit.js +0 -131
- package/dist/transactionIntent/execution/index.d.ts +0 -2
- package/dist/transactionIntent/execution/index.d.ts.map +0 -1
- package/dist/transactionIntent/execution/transactionState.d.ts +0 -5
- package/dist/transactionIntent/execution/transactionState.d.ts.map +0 -1
- package/dist/transactionIntent/execution/transactionState.js +0 -21
- package/dist/transactionIntent/handlers/index.d.ts +0 -2
- package/dist/transactionIntent/handlers/index.d.ts.map +0 -1
- package/dist/transactionIntent/handlers/intentHandler.d.ts +0 -71
- package/dist/transactionIntent/handlers/intentHandler.d.ts.map +0 -1
- package/dist/transactionIntent/handlers/intentHandler.js +0 -533
- package/dist/transactionIntent/helpers/index.d.ts +0 -2
- package/dist/transactionIntent/helpers/index.d.ts.map +0 -1
- package/dist/transactionIntent/helpers/transactionStateHelpers.d.ts +0 -68
- package/dist/transactionIntent/helpers/transactionStateHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/helpers/transactionStateHelpers.js +0 -124
- package/dist/transactionIntent/index.d.ts +0 -10
- package/dist/transactionIntent/index.d.ts.map +0 -1
- package/dist/transactionIntent/quote/feeExtractors.d.ts +0 -13
- package/dist/transactionIntent/quote/feeExtractors.d.ts.map +0 -1
- package/dist/transactionIntent/quote/feeExtractors.js +0 -52
- package/dist/transactionIntent/quote/index.d.ts +0 -4
- package/dist/transactionIntent/quote/index.d.ts.map +0 -1
- package/dist/transactionIntent/quote/normalizeQuote.d.ts +0 -44
- package/dist/transactionIntent/quote/normalizeQuote.d.ts.map +0 -1
- package/dist/transactionIntent/quote/normalizeQuote.js +0 -214
- package/dist/transactionIntent/quote/quoteHelpers.d.ts +0 -6
- package/dist/transactionIntent/quote/quoteHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/quote/quoteHelpers.js +0 -47
- package/dist/transactionIntent/types.d.ts +0 -181
- package/dist/transactionIntent/types.d.ts.map +0 -1
- package/dist/transactionIntent/types.js +0 -38
- package/dist/transactionIntent/utils/balanceChecker.d.ts +0 -20
- package/dist/transactionIntent/utils/balanceChecker.d.ts.map +0 -1
- package/dist/transactionIntent/utils/balanceChecker.js +0 -55
- package/dist/transactionIntent/utils/index.d.ts +0 -3
- package/dist/transactionIntent/utils/index.d.ts.map +0 -1
- package/dist/transactionIntent/utils/resilientDepositTracker.d.ts +0 -25
- package/dist/transactionIntent/utils/resilientDepositTracker.d.ts.map +0 -1
- package/dist/transactionIntent/utils/resilientDepositTracker.js +0 -62
- package/dist/transactionIntent/utils/testnetHelpers.d.ts +0 -2
- package/dist/transactionIntent/utils/testnetHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/validators.d.ts +0 -4
- package/dist/transactionIntent/validators.d.ts.map +0 -1
- package/dist/transactionIntent/validators.js +0 -11
- package/dist/transactions.d.ts +0 -176
- package/dist/transactions.d.ts.map +0 -1
- package/dist/transactions.js +0 -115
- package/dist/umd/trails.min.js +0 -1251
- package/dist/utils/address.d.ts +0 -28
- package/dist/utils/address.d.ts.map +0 -1
- package/dist/utils/address.js +0 -30
- package/dist/utils/fiat.d.ts +0 -8
- package/dist/utils/fiat.d.ts.map +0 -1
- package/dist/utils/fiat.js +0 -30
- package/dist/utils/format.d.ts +0 -74
- package/dist/utils/format.d.ts.map +0 -1
- package/dist/utils/format.js +0 -274
- package/dist/utils/localStorageGc.d.ts +0 -22
- package/dist/utils/localStorageGc.d.ts.map +0 -1
- package/dist/utils/localStorageGc.js +0 -53
- package/dist/utils/passthrough.d.ts +0 -46
- package/dist/utils/passthrough.d.ts.map +0 -1
- package/dist/utils/passthrough.js +0 -20
- package/dist/utils/time.d.ts +0 -27
- package/dist/utils/time.d.ts.map +0 -1
- package/dist/utils/time.js +0 -68
- package/dist/utils/tokenResolution.d.ts +0 -19
- package/dist/utils/tokenResolution.d.ts.map +0 -1
- package/dist/utils/tokenResolution.js +0 -53
- package/dist/utils/validation.d.ts +0 -53
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -80
- package/dist/utils.d.ts +0 -34
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -58
- package/dist/version.d.ts +0 -3
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -9
- package/dist/widget/assets/components/Aave.d.ts +0 -8
- package/dist/widget/assets/components/Aave.d.ts.map +0 -1
- package/dist/widget/assets/components/Aave.js +0 -29
- package/dist/widget/assets/components/ExchangeIconBlack.d.ts +0 -8
- package/dist/widget/assets/components/ExchangeIconBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodCardBrands.d.ts +0 -8
- package/dist/widget/assets/components/FundMethodCardBrands.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodCardBrands.js +0 -49
- package/dist/widget/assets/components/FundMethodExchangeBrands.d.ts +0 -8
- package/dist/widget/assets/components/FundMethodExchangeBrands.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodExchangeBrands.js +0 -37
- package/dist/widget/assets/components/MetaMaskIconFox.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskIconFox.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskIconFoxWithMargins.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskIconFoxWithMargins.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskLogoBlack.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskLogoBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskLogoWhite.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskLogoWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/Morpho.d.ts +0 -8
- package/dist/widget/assets/components/Morpho.d.ts.map +0 -1
- package/dist/widget/assets/components/Morpho.js +0 -51
- package/dist/widget/assets/components/TrailsBlack.d.ts +0 -8
- package/dist/widget/assets/components/TrailsBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/TrailsBlack.js +0 -25
- package/dist/widget/assets/components/TrailsWhite.d.ts +0 -8
- package/dist/widget/assets/components/TrailsWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/TrailsWhite.js +0 -25
- package/dist/widget/assets/components/WalletChangeBlack.d.ts +0 -8
- package/dist/widget/assets/components/WalletChangeBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogo.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogo.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoBlack.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoBlue.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoBlue.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoWhite.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/index.d.ts +0 -17
- package/dist/widget/assets/components/index.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.d.ts +0 -54
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.js +0 -68
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.d.ts +0 -386
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.js +0 -872
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.d.ts +0 -192
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.js +0 -294
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.d.ts +0 -51
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.js +0 -72
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.d.ts +0 -19
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.js +0 -62
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.d.ts +0 -44
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.js +0 -6
- package/dist/widget/bluvo/bluvo-lib/api.types.d.ts +0 -49
- package/dist/widget/bluvo/bluvo-lib/api.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.d.ts +0 -84
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.js +0 -26
- package/dist/widget/bluvo/bluvo-lib/createMachine.d.ts +0 -3
- package/dist/widget/bluvo/bluvo-lib/createMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/createMachine.js +0 -38
- package/dist/widget/bluvo/bluvo-lib/error-codes.d.ts +0 -156
- package/dist/widget/bluvo/bluvo-lib/error-codes.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/error-codes.js +0 -115
- package/dist/widget/bluvo/bluvo-lib/flow.types.d.ts +0 -356
- package/dist/widget/bluvo/bluvo-lib/flow.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowMachine.d.ts +0 -4
- package/dist/widget/bluvo/bluvo-lib/flowMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowMachine.js +0 -45
- package/dist/widget/bluvo/bluvo-lib/flowMachine.types.d.ts +0 -20
- package/dist/widget/bluvo/bluvo-lib/flowMachine.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.d.ts +0 -39
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.js +0 -395
- package/dist/widget/bluvo/bluvo-lib/index.d.ts +0 -5
- package/dist/widget/bluvo/bluvo-lib/index.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/machine.types.d.ts +0 -15
- package/dist/widget/bluvo/bluvo-lib/machine.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.d.ts +0 -23
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.js +0 -24
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.d.ts +0 -325
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.js +0 -152
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.d.ts +0 -11
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.js +0 -25
- package/dist/widget/bluvo/bluvo-lib/useWithdrawMachine.d.ts +0 -17
- package/dist/widget/bluvo/bluvo-lib/useWithdrawMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawal.types.d.ts +0 -46
- package/dist/widget/bluvo/bluvo-lib/withdrawal.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.d.ts +0 -29
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.js +0 -95
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.d.ts +0 -3
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.js +0 -137
- package/dist/widget/bluvo/index.d.ts +0 -2
- package/dist/widget/bluvo/index.d.ts.map +0 -1
- package/dist/widget/components/AccountActionsDropdown.d.ts +0 -4
- package/dist/widget/components/AccountActionsDropdown.d.ts.map +0 -1
- package/dist/widget/components/AccountActionsDropdown.js +0 -23
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts +0 -9
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts.map +0 -1
- package/dist/widget/components/AccountIntentTransactionHistory.js +0 -426
- package/dist/widget/components/AccountIntentTransactionHistoryButton.d.ts +0 -4
- package/dist/widget/components/AccountIntentTransactionHistoryButton.d.ts.map +0 -1
- package/dist/widget/components/AccountIntentTransactionHistoryButton.js +0 -23
- package/dist/widget/components/AccountSettings.d.ts +0 -7
- package/dist/widget/components/AccountSettings.d.ts.map +0 -1
- package/dist/widget/components/AccountSettings.js +0 -106
- package/dist/widget/components/AddressOrEnsName.d.ts +0 -13
- package/dist/widget/components/AddressOrEnsName.d.ts.map +0 -1
- package/dist/widget/components/AddressOrEnsName.js +0 -13
- package/dist/widget/components/AddressWalletIcon.d.ts +0 -8
- package/dist/widget/components/AddressWalletIcon.d.ts.map +0 -1
- package/dist/widget/components/AddressWalletIcon.js +0 -32
- package/dist/widget/components/AllChainsIcon.d.ts +0 -9
- package/dist/widget/components/AllChainsIcon.d.ts.map +0 -1
- package/dist/widget/components/AllChainsIcon.js +0 -98
- package/dist/widget/components/BluvoExchangeSelection.d.ts +0 -12
- package/dist/widget/components/BluvoExchangeSelection.d.ts.map +0 -1
- package/dist/widget/components/BluvoExchangeSelection.js +0 -131
- package/dist/widget/components/BluvoExchangeSelection.lazy.d.ts +0 -2
- package/dist/widget/components/BluvoExchangeSelection.lazy.d.ts.map +0 -1
- package/dist/widget/components/BluvoExchangeSelection.lazy.js +0 -4
- package/dist/widget/components/BluvoOnrampFlow.d.ts +0 -20
- package/dist/widget/components/BluvoOnrampFlow.d.ts.map +0 -1
- package/dist/widget/components/BluvoOnrampFlow.js +0 -1472
- package/dist/widget/components/BluvoOnrampFlow.lazy.d.ts +0 -2
- package/dist/widget/components/BluvoOnrampFlow.lazy.d.ts.map +0 -1
- package/dist/widget/components/BluvoOnrampFlow.lazy.js +0 -4
- package/dist/widget/components/ChainFilterDropdown.d.ts +0 -17
- package/dist/widget/components/ChainFilterDropdown.d.ts.map +0 -1
- package/dist/widget/components/ChainFilterDropdown.js +0 -124
- package/dist/widget/components/ChainImage.d.ts +0 -8
- package/dist/widget/components/ChainImage.d.ts.map +0 -1
- package/dist/widget/components/ChainImage.js +0 -24
- package/dist/widget/components/ChainList.d.ts +0 -9
- package/dist/widget/components/ChainList.d.ts.map +0 -1
- package/dist/widget/components/ChainList.js +0 -177
- package/dist/widget/components/ClassicSwap.d.ts +0 -10
- package/dist/widget/components/ClassicSwap.d.ts.map +0 -1
- package/dist/widget/components/ClassicSwap.js +0 -786
- package/dist/widget/components/ConfigDisplay.d.ts +0 -7
- package/dist/widget/components/ConfigDisplay.d.ts.map +0 -1
- package/dist/widget/components/ConfigDisplay.js +0 -122
- package/dist/widget/components/ConnectWallet.d.ts +0 -12
- package/dist/widget/components/ConnectWallet.d.ts.map +0 -1
- package/dist/widget/components/ConnectWallet.js +0 -215
- package/dist/widget/components/ConnectedWallets.d.ts +0 -19
- package/dist/widget/components/ConnectedWallets.d.ts.map +0 -1
- package/dist/widget/components/ConnectedWallets.js +0 -149
- package/dist/widget/components/CopyButton.d.ts +0 -18
- package/dist/widget/components/CopyButton.d.ts.map +0 -1
- package/dist/widget/components/CopyButton.js +0 -51
- package/dist/widget/components/CountryFilterDropdown.d.ts +0 -15
- package/dist/widget/components/CountryFilterDropdown.d.ts.map +0 -1
- package/dist/widget/components/CountryFilterDropdown.js +0 -93
- package/dist/widget/components/DebugMenu.d.ts +0 -7
- package/dist/widget/components/DebugMenu.d.ts.map +0 -1
- package/dist/widget/components/DebugMenu.js +0 -33
- package/dist/widget/components/DebugScreensList.d.ts +0 -7
- package/dist/widget/components/DebugScreensList.d.ts.map +0 -1
- package/dist/widget/components/DebugScreensList.js +0 -56
- package/dist/widget/components/DebugToast.d.ts +0 -3
- package/dist/widget/components/DebugToast.d.ts.map +0 -1
- package/dist/widget/components/DebugToast.js +0 -46
- package/dist/widget/components/DepositTracker.d.ts +0 -13
- package/dist/widget/components/DepositTracker.d.ts.map +0 -1
- package/dist/widget/components/DepositTracker.js +0 -194
- package/dist/widget/components/DirectTransfer.d.ts +0 -15
- package/dist/widget/components/DirectTransfer.d.ts.map +0 -1
- package/dist/widget/components/DirectTransfer.js +0 -218
- package/dist/widget/components/Disconnect.d.ts +0 -8
- package/dist/widget/components/Disconnect.d.ts.map +0 -1
- package/dist/widget/components/Disconnect.js +0 -37
- package/dist/widget/components/DynamicInputStyles.d.ts +0 -22
- package/dist/widget/components/DynamicInputStyles.d.ts.map +0 -1
- package/dist/widget/components/DynamicInputStyles.js +0 -27
- package/dist/widget/components/DynamicSizeInputField.d.ts +0 -17
- package/dist/widget/components/DynamicSizeInputField.d.ts.map +0 -1
- package/dist/widget/components/DynamicSizeInputField.js +0 -125
- package/dist/widget/components/ENSAvatar.d.ts +0 -12
- package/dist/widget/components/ENSAvatar.d.ts.map +0 -1
- package/dist/widget/components/ENSAvatar.js +0 -22
- package/dist/widget/components/Earn.d.ts +0 -33
- package/dist/widget/components/Earn.d.ts.map +0 -1
- package/dist/widget/components/Earn.js +0 -79
- package/dist/widget/components/EarnMarkets.d.ts +0 -9
- package/dist/widget/components/EarnMarkets.d.ts.map +0 -1
- package/dist/widget/components/EarnMarkets.js +0 -313
- package/dist/widget/components/EarnPools.d.ts +0 -8
- package/dist/widget/components/EarnPools.d.ts.map +0 -1
- package/dist/widget/components/EarnPools.js +0 -256
- package/dist/widget/components/EarnPoolsFilters.d.ts +0 -18
- package/dist/widget/components/EarnPoolsFilters.d.ts.map +0 -1
- package/dist/widget/components/EarnPoolsFilters.js +0 -106
- package/dist/widget/components/EarnWithdraw.d.ts +0 -21
- package/dist/widget/components/EarnWithdraw.d.ts.map +0 -1
- package/dist/widget/components/EarnWithdraw.js +0 -477
- package/dist/widget/components/ErrorAnimationIcon.d.ts +0 -2
- package/dist/widget/components/ErrorAnimationIcon.d.ts.map +0 -1
- package/dist/widget/components/ErrorAnimationIcon.js +0 -148
- package/dist/widget/components/ErrorDisplay.d.ts +0 -9
- package/dist/widget/components/ErrorDisplay.d.ts.map +0 -1
- package/dist/widget/components/ErrorDisplay.js +0 -104
- package/dist/widget/components/ExecutingIntentsBadge.d.ts +0 -12
- package/dist/widget/components/ExecutingIntentsBadge.d.ts.map +0 -1
- package/dist/widget/components/ExecutionStatusBadge.d.ts +0 -5
- package/dist/widget/components/ExecutionStatusBadge.d.ts.map +0 -1
- package/dist/widget/components/ExecutionStatusBadge.js +0 -45
- package/dist/widget/components/FeeOption.d.ts +0 -20
- package/dist/widget/components/FeeOption.d.ts.map +0 -1
- package/dist/widget/components/FeeOption.js +0 -71
- package/dist/widget/components/FeeOptions.d.ts +0 -20
- package/dist/widget/components/FeeOptions.d.ts.map +0 -1
- package/dist/widget/components/FeeOptions.js +0 -99
- package/dist/widget/components/FiatSelector.d.ts +0 -18
- package/dist/widget/components/FiatSelector.d.ts.map +0 -1
- package/dist/widget/components/FiatSelector.js +0 -171
- package/dist/widget/components/FiatSelectorButton.d.ts +0 -11
- package/dist/widget/components/FiatSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/FiatSelectorButton.js +0 -41
- package/dist/widget/components/Footer.d.ts +0 -7
- package/dist/widget/components/Footer.d.ts.map +0 -1
- package/dist/widget/components/Footer.js +0 -71
- package/dist/widget/components/Fund.d.ts +0 -19
- package/dist/widget/components/Fund.d.ts.map +0 -1
- package/dist/widget/components/Fund.js +0 -16
- package/dist/widget/components/Fund.types.d.ts +0 -22
- package/dist/widget/components/Fund.types.d.ts.map +0 -1
- package/dist/widget/components/FundExactInput.d.ts +0 -5
- package/dist/widget/components/FundExactInput.d.ts.map +0 -1
- package/dist/widget/components/FundExactInput.js +0 -1116
- package/dist/widget/components/FundExactOutput.d.ts +0 -5
- package/dist/widget/components/FundExactOutput.d.ts.map +0 -1
- package/dist/widget/components/FundExactOutput.js +0 -498
- package/dist/widget/components/FundMethods.d.ts +0 -15
- package/dist/widget/components/FundMethods.d.ts.map +0 -1
- package/dist/widget/components/FundMethods.js +0 -219
- package/dist/widget/components/FundWalletSelection.d.ts +0 -3
- package/dist/widget/components/FundWalletSelection.d.ts.map +0 -1
- package/dist/widget/components/FundWalletSelection.js +0 -38
- package/dist/widget/components/FundingMethodSelectorButton.d.ts +0 -11
- package/dist/widget/components/FundingMethodSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/FundingMethodSelectorButton.js +0 -57
- package/dist/widget/components/GreenCheckAnimation.d.ts +0 -2
- package/dist/widget/components/GreenCheckAnimation.d.ts.map +0 -1
- package/dist/widget/components/GreenCheckAnimation.js +0 -135
- package/dist/widget/components/HighPriceImpactBlock.d.ts +0 -7
- package/dist/widget/components/HighPriceImpactBlock.d.ts.map +0 -1
- package/dist/widget/components/HighPriceImpactBlock.js +0 -33
- package/dist/widget/components/HookModalContent.d.ts +0 -8
- package/dist/widget/components/HookModalContent.d.ts.map +0 -1
- package/dist/widget/components/HookModalContent.js +0 -237
- package/dist/widget/components/Identicon.d.ts +0 -9
- package/dist/widget/components/Identicon.d.ts.map +0 -1
- package/dist/widget/components/Identicon.js +0 -176
- package/dist/widget/components/LoadingSpinner.d.ts +0 -5
- package/dist/widget/components/LoadingSpinner.d.ts.map +0 -1
- package/dist/widget/components/LoadingSpinner.js +0 -5
- package/dist/widget/components/MeldForm.d.ts +0 -24
- package/dist/widget/components/MeldForm.d.ts.map +0 -1
- package/dist/widget/components/MeldForm.js +0 -447
- package/dist/widget/components/MeldHistory.d.ts +0 -13
- package/dist/widget/components/MeldHistory.d.ts.map +0 -1
- package/dist/widget/components/MeldHistory.js +0 -307
- package/dist/widget/components/MeldStepsFlow.d.ts +0 -6
- package/dist/widget/components/MeldStepsFlow.d.ts.map +0 -1
- package/dist/widget/components/MeldStepsFlow.js +0 -785
- package/dist/widget/components/MeldTransactionStatus.d.ts +0 -20
- package/dist/widget/components/MeldTransactionStatus.d.ts.map +0 -1
- package/dist/widget/components/MeldTransactionStatus.js +0 -157
- package/dist/widget/components/MeshExchangeAccountHeader.d.ts +0 -9
- package/dist/widget/components/MeshExchangeAccountHeader.d.ts.map +0 -1
- package/dist/widget/components/MeshExchangeAccountHeader.js +0 -30
- package/dist/widget/components/Modal.d.ts +0 -9
- package/dist/widget/components/Modal.d.ts.map +0 -1
- package/dist/widget/components/Modal.js +0 -65
- package/dist/widget/components/OFTProgressBar.d.ts +0 -16
- package/dist/widget/components/OFTProgressBar.d.ts.map +0 -1
- package/dist/widget/components/OFTProgressBar.js +0 -49
- package/dist/widget/components/OnRampProviderSelector.d.ts +0 -13
- package/dist/widget/components/OnRampProviderSelector.d.ts.map +0 -1
- package/dist/widget/components/OnRampProviderSelector.js +0 -144
- package/dist/widget/components/OnrampErrorScreen.d.ts +0 -15
- package/dist/widget/components/OnrampErrorScreen.d.ts.map +0 -1
- package/dist/widget/components/OnrampErrorScreen.js +0 -102
- package/dist/widget/components/OnrampHistoryRow.d.ts +0 -13
- package/dist/widget/components/OnrampHistoryRow.d.ts.map +0 -1
- package/dist/widget/components/OnrampHistoryRow.js +0 -249
- package/dist/widget/components/OnrampPaymentMethods.d.ts +0 -7
- package/dist/widget/components/OnrampPaymentMethods.d.ts.map +0 -1
- package/dist/widget/components/OnrampPaymentMethods.js +0 -54
- package/dist/widget/components/OnrampProviderConfirmation.d.ts +0 -30
- package/dist/widget/components/OnrampProviderConfirmation.d.ts.map +0 -1
- package/dist/widget/components/OnrampProviderConfirmation.js +0 -705
- package/dist/widget/components/OriginSelectionAmount.d.ts +0 -12
- package/dist/widget/components/OriginSelectionAmount.d.ts.map +0 -1
- package/dist/widget/components/OriginSelectionAmount.js +0 -104
- package/dist/widget/components/OriginTransferInformation.d.ts +0 -10
- package/dist/widget/components/OriginTransferInformation.d.ts.map +0 -1
- package/dist/widget/components/OriginTransferInformation.js +0 -56
- package/dist/widget/components/Pay.d.ts +0 -7
- package/dist/widget/components/Pay.d.ts.map +0 -1
- package/dist/widget/components/Pay.js +0 -649
- package/dist/widget/components/PaymentMethods.d.ts +0 -10
- package/dist/widget/components/PaymentMethods.d.ts.map +0 -1
- package/dist/widget/components/PaymentMethods.js +0 -118
- package/dist/widget/components/PercentageMaxButtons.d.ts +0 -14
- package/dist/widget/components/PercentageMaxButtons.d.ts.map +0 -1
- package/dist/widget/components/PercentageMaxButtons.js +0 -62
- package/dist/widget/components/PoolDeposit.d.ts +0 -32
- package/dist/widget/components/PoolDeposit.d.ts.map +0 -1
- package/dist/widget/components/PoolDeposit.js +0 -426
- package/dist/widget/components/PriceImpactWarning.d.ts +0 -11
- package/dist/widget/components/PriceImpactWarning.d.ts.map +0 -1
- package/dist/widget/components/PriceImpactWarning.js +0 -58
- package/dist/widget/components/PulsatingButton.d.ts +0 -9
- package/dist/widget/components/PulsatingButton.d.ts.map +0 -1
- package/dist/widget/components/PulsatingButton.js +0 -48
- package/dist/widget/components/QRCodeOptions.d.ts +0 -9
- package/dist/widget/components/QRCodeOptions.d.ts.map +0 -1
- package/dist/widget/components/QRCodeOptions.js +0 -57
- package/dist/widget/components/QRCodeWalletSelect.d.ts +0 -13
- package/dist/widget/components/QRCodeWalletSelect.d.ts.map +0 -1
- package/dist/widget/components/QRCodeWalletSelect.js +0 -45
- package/dist/widget/components/QrCode.d.ts +0 -10
- package/dist/widget/components/QrCode.d.ts.map +0 -1
- package/dist/widget/components/QrCode.js +0 -69
- package/dist/widget/components/QuoteDetails.d.ts +0 -25
- package/dist/widget/components/QuoteDetails.d.ts.map +0 -1
- package/dist/widget/components/QuoteDetails.js +0 -728
- package/dist/widget/components/QuoteInputErrorBlock.d.ts +0 -7
- package/dist/widget/components/QuoteInputErrorBlock.d.ts.map +0 -1
- package/dist/widget/components/QuoteInputErrorBlock.js +0 -22
- package/dist/widget/components/Receipt.d.ts +0 -18
- package/dist/widget/components/Receipt.d.ts.map +0 -1
- package/dist/widget/components/Receipt.js +0 -443
- package/dist/widget/components/ReceiptRecoverableFunds.d.ts +0 -25
- package/dist/widget/components/ReceiptRecoverableFunds.d.ts.map +0 -1
- package/dist/widget/components/ReceiptRecoverableFunds.js +0 -75
- package/dist/widget/components/RecentChains.d.ts +0 -9
- package/dist/widget/components/RecentChains.d.ts.map +0 -1
- package/dist/widget/components/RecentChains.js +0 -28
- package/dist/widget/components/RecentTokens.d.ts +0 -10
- package/dist/widget/components/RecentTokens.d.ts.map +0 -1
- package/dist/widget/components/RecentTokens.js +0 -37
- package/dist/widget/components/RecipientSelectorButton.d.ts +0 -6
- package/dist/widget/components/RecipientSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/RecipientSelectorButton.js +0 -36
- package/dist/widget/components/Recipients.d.ts +0 -9
- package/dist/widget/components/Recipients.d.ts.map +0 -1
- package/dist/widget/components/Recipients.js +0 -208
- package/dist/widget/components/RefundWarning.d.ts +0 -11
- package/dist/widget/components/RefundWarning.d.ts.map +0 -1
- package/dist/widget/components/RefundWarning.js +0 -33
- package/dist/widget/components/RequiredPropsError.d.ts +0 -8
- package/dist/widget/components/RequiredPropsError.d.ts.map +0 -1
- package/dist/widget/components/RequiredPropsError.js +0 -14
- package/dist/widget/components/ScreenHeader.d.ts +0 -13
- package/dist/widget/components/ScreenHeader.d.ts.map +0 -1
- package/dist/widget/components/ScreenHeader.js +0 -64
- package/dist/widget/components/SearchInputField.d.ts +0 -14
- package/dist/widget/components/SearchInputField.d.ts.map +0 -1
- package/dist/widget/components/SearchInputField.js +0 -51
- package/dist/widget/components/SessionTimeoutScreen.d.ts +0 -12
- package/dist/widget/components/SessionTimeoutScreen.d.ts.map +0 -1
- package/dist/widget/components/SessionTimeoutScreen.js +0 -64
- package/dist/widget/components/ShadowPortal.d.ts +0 -6
- package/dist/widget/components/ShadowPortal.d.ts.map +0 -1
- package/dist/widget/components/ShadowPortal.js +0 -52
- package/dist/widget/components/ShadowRootContext.d.ts +0 -8
- package/dist/widget/components/ShadowRootContext.d.ts.map +0 -1
- package/dist/widget/components/ShadowRootContext.js +0 -12
- package/dist/widget/components/SimpleRecipientInputScreen.d.ts +0 -13
- package/dist/widget/components/SimpleRecipientInputScreen.d.ts.map +0 -1
- package/dist/widget/components/SimpleRecipientInputScreen.js +0 -48
- package/dist/widget/components/SlippageToleranceSettings.d.ts +0 -9
- package/dist/widget/components/SlippageToleranceSettings.d.ts.map +0 -1
- package/dist/widget/components/SlippageToleranceSettings.js +0 -159
- package/dist/widget/components/Swap.d.ts +0 -43
- package/dist/widget/components/Swap.d.ts.map +0 -1
- package/dist/widget/components/Swap.js +0 -6
- package/dist/widget/components/SwapDisplay.d.ts +0 -9
- package/dist/widget/components/SwapDisplay.d.ts.map +0 -1
- package/dist/widget/components/SwapDisplay.js +0 -72
- package/dist/widget/components/ThemeProvider.d.ts +0 -16
- package/dist/widget/components/ThemeProvider.d.ts.map +0 -1
- package/dist/widget/components/ThemeProvider.js +0 -52
- package/dist/widget/components/ThemeSyncer.d.ts +0 -6
- package/dist/widget/components/ThemeSyncer.d.ts.map +0 -1
- package/dist/widget/components/ThemeSyncer.js +0 -25
- package/dist/widget/components/Toast.d.ts +0 -24
- package/dist/widget/components/Toast.d.ts.map +0 -1
- package/dist/widget/components/Toast.js +0 -206
- package/dist/widget/components/TokenDisplayNonSelectable.d.ts +0 -11
- package/dist/widget/components/TokenDisplayNonSelectable.d.ts.map +0 -1
- package/dist/widget/components/TokenDisplayNonSelectable.js +0 -30
- package/dist/widget/components/TokenImage.d.ts +0 -11
- package/dist/widget/components/TokenImage.d.ts.map +0 -1
- package/dist/widget/components/TokenImage.js +0 -96
- package/dist/widget/components/TokenList.d.ts +0 -20
- package/dist/widget/components/TokenList.d.ts.map +0 -1
- package/dist/widget/components/TokenList.js +0 -45
- package/dist/widget/components/TokenSelector.d.ts +0 -32
- package/dist/widget/components/TokenSelector.d.ts.map +0 -1
- package/dist/widget/components/TokenSelector.js +0 -479
- package/dist/widget/components/TokenSelectorButton.d.ts +0 -17
- package/dist/widget/components/TokenSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/TokenSelectorButton.js +0 -64
- package/dist/widget/components/TokenSkeleton.d.ts +0 -12
- package/dist/widget/components/TokenSkeleton.d.ts.map +0 -1
- package/dist/widget/components/TokenSkeleton.js +0 -36
- package/dist/widget/components/Tooltip.d.ts +0 -14
- package/dist/widget/components/Tooltip.d.ts.map +0 -1
- package/dist/widget/components/Tooltip.js +0 -38
- package/dist/widget/components/TrailsHookModal.d.ts +0 -10
- package/dist/widget/components/TrailsHookModal.d.ts.map +0 -1
- package/dist/widget/components/TrailsHookModal.js +0 -55
- package/dist/widget/components/TransactionDetails.d.ts +0 -10
- package/dist/widget/components/TransactionDetails.d.ts.map +0 -1
- package/dist/widget/components/TransactionDetails.js +0 -492
- package/dist/widget/components/TransactionHistoryItem.d.ts +0 -23
- package/dist/widget/components/TransactionHistoryItem.d.ts.map +0 -1
- package/dist/widget/components/TransactionHistoryItem.js +0 -547
- package/dist/widget/components/TransferPendingVertical.d.ts +0 -16
- package/dist/widget/components/TransferPendingVertical.d.ts.map +0 -1
- package/dist/widget/components/TransferPendingVertical.js +0 -356
- package/dist/widget/components/TruncatedTransactionHash.d.ts +0 -12
- package/dist/widget/components/TruncatedTransactionHash.d.ts.map +0 -1
- package/dist/widget/components/TruncatedTransactionHash.js +0 -36
- package/dist/widget/components/UserPreferences.d.ts +0 -7
- package/dist/widget/components/UserPreferences.d.ts.map +0 -1
- package/dist/widget/components/UserPreferences.js +0 -282
- package/dist/widget/components/WaasFeeOptions.d.ts +0 -12
- package/dist/widget/components/WaasFeeOptions.d.ts.map +0 -1
- package/dist/widget/components/WaasFeeOptions.js +0 -349
- package/dist/widget/components/WalletAccountHeader.d.ts +0 -8
- package/dist/widget/components/WalletAccountHeader.d.ts.map +0 -1
- package/dist/widget/components/WalletAccountHeader.js +0 -45
- package/dist/widget/components/WalletConfirmation.d.ts +0 -15
- package/dist/widget/components/WalletConfirmation.d.ts.map +0 -1
- package/dist/widget/components/WalletConfirmation.js +0 -145
- package/dist/widget/components/WalletConnect.d.ts +0 -11
- package/dist/widget/components/WalletConnect.d.ts.map +0 -1
- package/dist/widget/components/WalletConnect.js +0 -164
- package/dist/widget/components/WalletConnectionPending.d.ts +0 -12
- package/dist/widget/components/WalletConnectionPending.d.ts.map +0 -1
- package/dist/widget/components/WalletConnectionPending.js +0 -124
- package/dist/widget/components/WalletList.d.ts +0 -16
- package/dist/widget/components/WalletList.d.ts.map +0 -1
- package/dist/widget/components/WalletList.js +0 -88
- package/dist/widget/components/WidgetProviders.d.ts +0 -16
- package/dist/widget/components/WidgetProviders.d.ts.map +0 -1
- package/dist/widget/components/WidgetProviders.js +0 -43
- package/dist/widget/components/Withdraw.d.ts +0 -12
- package/dist/widget/components/Withdraw.d.ts.map +0 -1
- package/dist/widget/components/Withdraw.js +0 -551
- package/dist/widget/components/YellowWarningAnimation.d.ts +0 -2
- package/dist/widget/components/YellowWarningAnimation.d.ts.map +0 -1
- package/dist/widget/components/YellowWarningAnimation.js +0 -167
- package/dist/widget/components/earnMarketUtils.d.ts +0 -11
- package/dist/widget/components/earnMarketUtils.d.ts.map +0 -1
- package/dist/widget/components/earnMarketUtils.js +0 -48
- package/dist/widget/components/earnNetworks.d.ts +0 -6
- package/dist/widget/components/earnNetworks.d.ts.map +0 -1
- package/dist/widget/components/earnNetworks.js +0 -33
- package/dist/widget/index.d.ts.map +0 -1
- package/dist/widget/modes/EarnWidget.d.ts +0 -90
- package/dist/widget/modes/EarnWidget.d.ts.map +0 -1
- package/dist/widget/modes/EarnWidget.js +0 -41
- package/dist/widget/modes/FundWidget.d.ts +0 -110
- package/dist/widget/modes/FundWidget.d.ts.map +0 -1
- package/dist/widget/modes/FundWidget.js +0 -48
- package/dist/widget/modes/PayWidget.d.ts +0 -80
- package/dist/widget/modes/PayWidget.d.ts.map +0 -1
- package/dist/widget/modes/PayWidget.js +0 -40
- package/dist/widget/modes/SwapWidget.d.ts +0 -76
- package/dist/widget/modes/SwapWidget.d.ts.map +0 -1
- package/dist/widget/modes/SwapWidget.js +0 -41
- package/dist/widget/modes/WithdrawWidget.d.ts +0 -87
- package/dist/widget/modes/WithdrawWidget.d.ts.map +0 -1
- package/dist/widget/modes/WithdrawWidget.js +0 -38
- package/dist/widget/props.d.ts +0 -255
- package/dist/widget/props.d.ts.map +0 -1
- package/dist/widget/props.js +0 -14
- package/dist/widget/providers/TrailsModalProvider.d.ts +0 -78
- package/dist/widget/providers/TrailsModalProvider.d.ts.map +0 -1
- package/dist/widget/providers/TrailsModalProvider.js +0 -57
- package/dist/widget/providers/TrailsProvider.d.ts +0 -100
- package/dist/widget/providers/TrailsProvider.d.ts.map +0 -1
- package/dist/widget/providers/TrailsProvider.js +0 -101
- package/dist/widget/providers/UserActivityProvider.d.ts +0 -18
- package/dist/widget/providers/UserActivityProvider.d.ts.map +0 -1
- package/dist/widget/providers/UserActivityProvider.js +0 -38
- package/dist/widget/providers/WalletContext.d.ts +0 -10
- package/dist/widget/providers/WalletContext.d.ts.map +0 -1
- package/dist/widget/providers/WalletContext.js +0 -23
- package/dist/widget/providers/WidgetProviderTree.d.ts +0 -24
- package/dist/widget/providers/WidgetProviderTree.d.ts.map +0 -1
- package/dist/widget/providers/WidgetProviderTree.js +0 -35
- package/dist/widget/providers/adapterConfig.d.ts +0 -13
- package/dist/widget/providers/adapterConfig.d.ts.map +0 -1
- package/dist/widget/providers/adapterConfig.js +0 -97
- package/dist/widget/providers/sequenceSupport.d.ts +0 -42
- package/dist/widget/providers/sequenceSupport.d.ts.map +0 -1
- package/dist/widget/providers/walletRuntimeResolution.d.ts +0 -10
- package/dist/widget/providers/walletRuntimeResolution.d.ts.map +0 -1
- package/dist/widget/providers/walletRuntimeResolution.js +0 -14
- package/dist/widget/shared/destinationDefaultToken.d.ts +0 -15
- package/dist/widget/shared/destinationDefaultToken.d.ts.map +0 -1
- package/dist/widget/shared/destinationDefaultToken.js +0 -18
- package/dist/widget/shared/destinationSupport.d.ts +0 -40
- package/dist/widget/shared/destinationSupport.d.ts.map +0 -1
- package/dist/widget/shared/destinationSupport.js +0 -215
- package/dist/widget/shared/mapSharedProps.d.ts +0 -9
- package/dist/widget/shared/mapSharedProps.d.ts.map +0 -1
- package/dist/widget/shared/mapSharedProps.js +0 -22
- package/dist/widget/shared/methodMap.d.ts +0 -18
- package/dist/widget/shared/methodMap.d.ts.map +0 -1
- package/dist/widget/shared/methodMap.js +0 -25
- package/dist/widget/shared/resolution.d.ts +0 -8
- package/dist/widget/shared/resolution.d.ts.map +0 -1
- package/dist/widget/shared/resolution.js +0 -63
- package/dist/widget/shared/resolvePaymentSource.d.ts +0 -37
- package/dist/widget/shared/resolvePaymentSource.d.ts.map +0 -1
- package/dist/widget/shared/resolvePaymentSource.js +0 -19
- package/dist/widget/shared/types.d.ts +0 -142
- package/dist/widget/shared/types.d.ts.map +0 -1
- package/dist/widget/styles.gen.d.ts +0 -2
- package/dist/widget/styles.gen.d.ts.map +0 -1
- package/dist/widget/styles.gen.js +0 -29
- package/dist/widget/types/analytics.d.ts +0 -22
- package/dist/widget/types/analytics.d.ts.map +0 -1
- package/dist/widget/types/commonProps.d.ts +0 -48
- package/dist/widget/types/commonProps.d.ts.map +0 -1
- package/dist/widget/utils/countryUtils.d.ts +0 -37
- package/dist/widget/utils/countryUtils.d.ts.map +0 -1
- package/dist/widget/utils/countryUtils.js +0 -14
- package/dist/widget/utils/forexRateStore.d.ts +0 -25
- package/dist/widget/utils/forexRateStore.d.ts.map +0 -1
- package/dist/widget/utils/forexRateStore.js +0 -59
- package/dist/widget/utils/fundMethodSwitchState.d.ts +0 -14
- package/dist/widget/utils/fundMethodSwitchState.d.ts.map +0 -1
- package/dist/widget/utils/fundMethodSwitchState.js +0 -6
- package/dist/widget/utils/historyFilters.d.ts +0 -13
- package/dist/widget/utils/historyFilters.d.ts.map +0 -1
- package/dist/widget/utils/historyFilters.js +0 -108
- package/dist/widget/utils/localeStore.d.ts +0 -19
- package/dist/widget/utils/localeStore.d.ts.map +0 -1
- package/dist/widget/utils/localeStore.js +0 -39
- package/dist/widget/utils/meldProviderUtils.d.ts +0 -6
- package/dist/widget/utils/meldProviderUtils.d.ts.map +0 -1
- package/dist/widget/utils/meldProviderUtils.js +0 -9
- package/dist/widget/utils/meshSupportedTokens.d.ts +0 -4
- package/dist/widget/utils/meshSupportedTokens.d.ts.map +0 -1
- package/dist/widget/utils/meshSupportedTokens.js +0 -12
- package/dist/widget/utils/onrampConfig.d.ts +0 -11
- package/dist/widget/utils/onrampConfig.d.ts.map +0 -1
- package/dist/widget/utils/onrampConfig.js +0 -6
- package/dist/widget/utils/statusLabel.d.ts +0 -2
- package/dist/widget/utils/statusLabel.d.ts.map +0 -1
- package/dist/widget/utils/statusLabel.js +0 -6
- package/dist/widget/utils/tokens.d.ts +0 -60
- package/dist/widget/utils/tokens.d.ts.map +0 -1
- package/dist/widget/utils/tokens.js +0 -16
- package/dist/widget/utils/trailsOnrampConfig.d.ts +0 -23
- package/dist/widget/utils/trailsOnrampConfig.d.ts.map +0 -1
- package/dist/widget/utils/trailsOnrampConfig.js +0 -7
- package/dist/widget/utils/transactionFailure.d.ts +0 -20
- package/dist/widget/utils/transactionFailure.d.ts.map +0 -1
- package/dist/widget/utils/transactionFailure.js +0 -12
- package/dist/widget/utils/viewManagerGuards.d.ts +0 -5
- package/dist/widget/utils/viewManagerGuards.d.ts.map +0 -1
- package/dist/widget/utils/viewManagerGuards.js +0 -24
- package/dist/widget/utils/walletConnectRedirect.d.ts +0 -19
- package/dist/widget/utils/walletConnectRedirect.d.ts.map +0 -1
- package/dist/widget/utils/walletConnectRedirect.js +0 -21
- package/dist/widget/utils/windowUtils.d.ts +0 -13
- package/dist/widget/utils/windowUtils.d.ts.map +0 -1
- package/dist/widget/utils/windowUtils.js +0 -84
- package/dist/widget/widget.d.ts +0 -16
- package/dist/widget/widget.d.ts.map +0 -1
- package/dist/widget/widget.js +0 -1541
- package/dist/widgetFlowHooks.d.ts +0 -12
- package/dist/widgetFlowHooks.d.ts.map +0 -1
- package/dist/widgetFlowHooks.js +0 -18
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { createContext as m, useContext as C, useState as o } from "react";
|
|
2
|
-
import { jsx as v } from "react/jsx-runtime";
|
|
3
|
-
var c = m(void 0), F = ({ children: t, initialCurrency: n = null }) => {
|
|
4
|
-
const [l, i] = o(() => {
|
|
5
|
-
if (typeof window < "u") try {
|
|
6
|
-
const e = localStorage.getItem("trails_fiat_selected_currency");
|
|
7
|
-
if (e) return JSON.parse(e);
|
|
8
|
-
} catch (e) {
|
|
9
|
-
console.warn("Failed to parse saved fiat currency:", e);
|
|
10
|
-
}
|
|
11
|
-
return n;
|
|
12
|
-
}), [s, r] = o(() => {
|
|
13
|
-
if (typeof window < "u") try {
|
|
14
|
-
return !!localStorage.getItem("trails_fiat_selected_currency");
|
|
15
|
-
} catch (e) {
|
|
16
|
-
return console.error("Failed to read fiat currency from localStorage:", e), !1;
|
|
17
|
-
}
|
|
18
|
-
return !1;
|
|
19
|
-
}), [u, d] = o(""), a = (e) => {
|
|
20
|
-
if (i(e), r(!0), typeof window < "u") try {
|
|
21
|
-
e ? localStorage.setItem("trails_fiat_selected_currency", JSON.stringify({
|
|
22
|
-
currencyCode: e.currencyCode,
|
|
23
|
-
name: e.name,
|
|
24
|
-
symbolImageUrl: e.symbolImageUrl
|
|
25
|
-
})) : localStorage.removeItem("trails_fiat_selected_currency");
|
|
26
|
-
} catch (S) {
|
|
27
|
-
console.error("Failed to save fiat currency to localStorage:", S);
|
|
28
|
-
}
|
|
29
|
-
}, f = () => {
|
|
30
|
-
a(null), r(!1);
|
|
31
|
-
}, y = (e) => {
|
|
32
|
-
d(e);
|
|
33
|
-
};
|
|
34
|
-
return /* @__PURE__ */ v(c.Provider, {
|
|
35
|
-
value: {
|
|
36
|
-
selectedCurrency: l,
|
|
37
|
-
setSelectedCurrency: a,
|
|
38
|
-
clearSelectedCurrency: f,
|
|
39
|
-
hasManualSelection: s,
|
|
40
|
-
setHasManualSelection: r,
|
|
41
|
-
fiatAmount: u,
|
|
42
|
-
setFiatAmount: y
|
|
43
|
-
},
|
|
44
|
-
children: t
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
function p() {
|
|
48
|
-
const t = C(c);
|
|
49
|
-
if (t === void 0) throw new Error("useFiatSelectedCurrency must be used within a FiatSelectedCurrencyProvider");
|
|
50
|
-
return t;
|
|
51
|
-
}
|
|
52
|
-
export {
|
|
53
|
-
F as FiatSelectedCurrencyProvider,
|
|
54
|
-
p as useFiatSelectedCurrency
|
|
55
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Intent } from '@0xtrails/api';
|
|
2
|
-
export interface UseGetIntentParams {
|
|
3
|
-
intentId: string | undefined;
|
|
4
|
-
enabled?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface UseGetIntentReturn {
|
|
7
|
-
intent: Intent | null;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
isError: boolean;
|
|
10
|
-
error: Error | null;
|
|
11
|
-
refetch: () => Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Hook to fetch intent data from the Trails API
|
|
15
|
-
* @param params - Object containing intentId and optional enabled flag
|
|
16
|
-
* @returns Intent data, loading state, error state, and refetch function
|
|
17
|
-
*/
|
|
18
|
-
export declare function useGetIntent({ intentId, enabled, }: UseGetIntentParams): UseGetIntentReturn;
|
|
19
|
-
//# sourceMappingURL=useGetIntent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useGetIntent.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetIntent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAK3C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,OAAc,GACf,EAAE,kBAAkB,GAAG,kBAAkB,CA0BzC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { getIntent as l } from "../intents.js";
|
|
2
|
-
import { useTrails as f } from "../widget/providers/TrailsProvider.js";
|
|
3
|
-
import { useTrailsClient as y } from "../trailsClient.js";
|
|
4
|
-
import { useQuery as c } from "@tanstack/react-query";
|
|
5
|
-
function h({ intentId: r, enabled: t = !0 }) {
|
|
6
|
-
const e = f(), n = y(), { data: i, isLoading: o, isError: a, error: s, refetch: u } = c({
|
|
7
|
-
queryKey: ["getIntent", r],
|
|
8
|
-
queryFn: async () => {
|
|
9
|
-
if (!r || !e.trailsApiKey) throw new Error("Intent ID and API key required");
|
|
10
|
-
return (await l(n, r)).intent;
|
|
11
|
-
},
|
|
12
|
-
enabled: t && !!r && !!e.trailsApiKey
|
|
13
|
-
});
|
|
14
|
-
return {
|
|
15
|
-
intent: i ?? null,
|
|
16
|
-
isLoading: o,
|
|
17
|
-
isError: a,
|
|
18
|
-
error: s,
|
|
19
|
-
refetch: async () => {
|
|
20
|
-
await u();
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
h as useGetIntent
|
|
26
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RecoverableChainGroup } from '../widget/components/ReceiptRecoverableFunds.js';
|
|
2
|
-
interface UseIntentReceiptBalancesParams {
|
|
3
|
-
intentId?: string;
|
|
4
|
-
ownerAddress?: string;
|
|
5
|
-
enabled?: boolean;
|
|
6
|
-
}
|
|
7
|
-
interface UseIntentReceiptBalancesResult {
|
|
8
|
-
chainGroups: RecoverableChainGroup[];
|
|
9
|
-
hasRecoverableFunds: boolean;
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
error: Error | null;
|
|
12
|
-
refetch: () => Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
export declare function useIntentReceiptBalances({ intentId, ownerAddress, enabled, }: UseIntentReceiptBalancesParams): UseIntentReceiptBalancesResult;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=useIntentReceiptBalances.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useIntentReceiptBalances.d.ts","sourceRoot":"","sources":["../../src/hooks/useIntentReceiptBalances.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,qBAAqB,EAEtB,MAAM,iDAAiD,CAAA;AAExD,UAAU,8BAA8B;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,UAAU,8BAA8B;IACtC,WAAW,EAAE,qBAAqB,EAAE,CAAA;IACpC,mBAAmB,EAAE,OAAO,CAAA;IAC5B,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC7B;AAoCD,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,YAAY,EACZ,OAAc,GACf,EAAE,8BAA8B,GAAG,8BAA8B,CA6EjE"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { logger as h } from "../logger/index.js";
|
|
2
|
-
import { formatRawAmount as p } from "../utils/format.js";
|
|
3
|
-
import { useTrails as b } from "../widget/providers/TrailsProvider.js";
|
|
4
|
-
import { useTrailsClient as B } from "../trailsClient.js";
|
|
5
|
-
import { useMemo as I } from "react";
|
|
6
|
-
import { useQuery as g } from "@tanstack/react-query";
|
|
7
|
-
var y = 3e4, A = 5;
|
|
8
|
-
function C(n) {
|
|
9
|
-
return n.filter((e) => {
|
|
10
|
-
try {
|
|
11
|
-
return BigInt(e.balance || "0") > 0n;
|
|
12
|
-
} catch {
|
|
13
|
-
return !1;
|
|
14
|
-
}
|
|
15
|
-
}).map((e) => ({
|
|
16
|
-
chainId: e.chainId,
|
|
17
|
-
contractAddress: e.contractAddress,
|
|
18
|
-
symbol: e.symbol,
|
|
19
|
-
decimals: e.decimals,
|
|
20
|
-
rawBalance: e.balance,
|
|
21
|
-
formattedBalance: p(e.balance, e.decimals)
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
function O({ intentId: n, ownerAddress: e, enabled: i = !0 }) {
|
|
25
|
-
const c = b(), o = B(), { data: s, isLoading: f, error: u, refetch: m } = g({
|
|
26
|
-
queryKey: [
|
|
27
|
-
"receiptIntentBalances",
|
|
28
|
-
n,
|
|
29
|
-
e
|
|
30
|
-
],
|
|
31
|
-
enabled: i && !!n && !!e && !!c.trailsApiKey && !!c.trailsApiUrl,
|
|
32
|
-
queryFn: async () => {
|
|
33
|
-
const t = await o.getIntentHistory({
|
|
34
|
-
byOwnerAddress: e,
|
|
35
|
-
includeBalances: !0,
|
|
36
|
-
page: { pageSize: 5 }
|
|
37
|
-
}), a = n?.toLowerCase(), r = (t.intents || []).find((d) => d.intentId?.toLowerCase() === a);
|
|
38
|
-
return r ? (h.console.log("[trails-sdk] receipt balance intent match", {
|
|
39
|
-
intentId: n,
|
|
40
|
-
hasBalance: r.hasBalance,
|
|
41
|
-
balanceGroupCount: (r.balances || []).length
|
|
42
|
-
}), {
|
|
43
|
-
hasBalance: !!r.hasBalance,
|
|
44
|
-
balances: r.balances || []
|
|
45
|
-
}) : {
|
|
46
|
-
hasBalance: !1,
|
|
47
|
-
balances: []
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
staleTime: 0,
|
|
51
|
-
gcTime: 600 * 1e3,
|
|
52
|
-
refetchInterval: (t) => t.state.dataUpdateCount >= A ? !1 : y,
|
|
53
|
-
refetchIntervalInBackground: !1,
|
|
54
|
-
refetchOnWindowFocus: !1,
|
|
55
|
-
refetchOnReconnect: !1,
|
|
56
|
-
refetchOnMount: !1
|
|
57
|
-
}), l = I(() => {
|
|
58
|
-
const t = s?.balances || [];
|
|
59
|
-
return t.length === 0 ? [] : t.map((a) => ({
|
|
60
|
-
intentAddress: a.intentAddress,
|
|
61
|
-
chainId: a.chainId,
|
|
62
|
-
tokens: C(a.tokens || [])
|
|
63
|
-
})).filter((a) => a.tokens.length > 0);
|
|
64
|
-
}, [s?.balances]);
|
|
65
|
-
return {
|
|
66
|
-
chainGroups: l,
|
|
67
|
-
hasRecoverableFunds: (s?.hasBalance ?? !1) && l.length > 0,
|
|
68
|
-
isLoading: f,
|
|
69
|
-
error: u || null,
|
|
70
|
-
refetch: async () => {
|
|
71
|
-
await m();
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
export {
|
|
76
|
-
O as useIntentReceiptBalances
|
|
77
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { IntentTransaction } from '../transactions.js';
|
|
2
|
-
export type UseIntentTransactionHistoryParams = {
|
|
3
|
-
accountAddress?: string;
|
|
4
|
-
pageSize?: number;
|
|
5
|
-
enabled?: boolean;
|
|
6
|
-
refetchInterval?: number | false;
|
|
7
|
-
intentStatuses?: string[];
|
|
8
|
-
};
|
|
9
|
-
export type UseIntentTransactionHistoryReturn = {
|
|
10
|
-
transactions: IntentTransaction[];
|
|
11
|
-
loading: boolean;
|
|
12
|
-
error: string | null;
|
|
13
|
-
isOffline: boolean;
|
|
14
|
-
refetch: () => Promise<void>;
|
|
15
|
-
loadMore: () => void;
|
|
16
|
-
hasMore: boolean;
|
|
17
|
-
page: number;
|
|
18
|
-
nextPage: () => void;
|
|
19
|
-
prevPage: () => void;
|
|
20
|
-
hasPrev: boolean;
|
|
21
|
-
totalPages?: number;
|
|
22
|
-
resetPagination: () => void;
|
|
23
|
-
};
|
|
24
|
-
export declare function useIntentTransactionHistory({ accountAddress, pageSize, enabled, refetchInterval, intentStatuses, }: UseIntentTransactionHistoryParams): UseIntentTransactionHistoryReturn;
|
|
25
|
-
//# sourceMappingURL=useIntentTransactionHistory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useIntentTransactionHistory.d.ts","sourceRoot":"","sources":["../../src/hooks/useIntentTransactionHistory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AA6pB3D,MAAM,MAAM,iCAAiC,GAAG;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,eAAe,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IAChC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,iCAAiC,GAAG;IAC9C,YAAY,EAAE,iBAAiB,EAAE,CAAA;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC5B,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B,CAAA;AAMD,wBAAgB,2BAA2B,CAAC,EAC1C,cAAc,EACd,QAAa,EACb,OAAc,EACd,eAAe,EACf,cAAc,GACf,EAAE,iCAAiC,GAAG,iCAAiC,CAuMvE"}
|
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
import { logger as p } from "../logger/index.js";
|
|
2
|
-
import { MINUTE_MS as O } from "../utils/time.js";
|
|
3
|
-
import { getChainInfo as L, getPublicClient as K } from "../chains.js";
|
|
4
|
-
import { getExplorerUrl as N } from "../explorer.js";
|
|
5
|
-
import { isNativeToken as R } from "../utils/address.js";
|
|
6
|
-
import { useSupportedTokens as q } from "../query/token.hooks.js";
|
|
7
|
-
import { getCommittedIntents as G } from "../committedIntentStore.js";
|
|
8
|
-
import { decodeGuestModuleEvents as W, decodeTokenSweeperEvents as j } from "../decoders.js";
|
|
9
|
-
import { useTrails as Q } from "../widget/providers/TrailsProvider.js";
|
|
10
|
-
import { getTrailsClient as X } from "../trailsClient.js";
|
|
11
|
-
import { useCallback as S, useEffect as z, useMemo as V, useRef as _, useState as M } from "react";
|
|
12
|
-
import { useQuery as J, useQueryClient as Y } from "@tanstack/react-query";
|
|
13
|
-
function x(n) {
|
|
14
|
-
return n?.toUpperCase() || "UNKNOWN";
|
|
15
|
-
}
|
|
16
|
-
function Z(n, r, e) {
|
|
17
|
-
const i = Array.isArray(n) ? n.filter(Boolean) : [];
|
|
18
|
-
if (i.length === 0) return { routeProviders: [] };
|
|
19
|
-
const t = r != null && e != null && r !== e;
|
|
20
|
-
return i.length === 1 ? {
|
|
21
|
-
routeProviders: i,
|
|
22
|
-
swapProviderUsed: t ? void 0 : i[0],
|
|
23
|
-
bridgeProviderUsed: t ? i[0] : void 0
|
|
24
|
-
} : {
|
|
25
|
-
routeProviders: i,
|
|
26
|
-
swapProviderUsed: i[0],
|
|
27
|
-
bridgeProviderUsed: i[i.length - 1]
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function $(n) {
|
|
31
|
-
const r = n, e = n.receipt, i = e.depositTransaction?.txnHash, t = e.originTransaction?.txnHash, s = e.destinationTransaction?.txnHash, f = e.refundTransaction?.txnHash, c = e.depositTransaction?.status, a = e.originTransaction?.status, h = e.destinationTransaction?.status, u = e.refundTransaction?.status, d = n.intentId, A = n.status, g = e.ownerAddress, T = e.originChainId, I = e.destinationChainId, w = e.summary?.originIntentAddress || "", v = e.summary?.destinationIntentAddress || "", E = e.summary?.originTokenAddress || e.originTransaction?.tokenAddress || e.depositTransaction?.tokenAddress || "", C = e.summary?.originTokenAmount || e.originTransaction?.tokenAmount || e.depositTransaction?.tokenAmount || 0n, m = e.summary?.destinationTokenAddress || e.destinationTransaction?.tokenAddress || "", D = e.summary?.destinationTokenAmount || e.destinationTransaction?.tokenAmount || 0n, U = e.summary?.destinationToAddress || g, H = e.createdAt || n.createdAt, y = Z(e.summary?.routeProviders, T, I), P = r.intentProtocol || (e.intentProtocol ?? void 0) || (e.summary?.intentProtocol ?? void 0), o = e.summary?.originTokenMetadata, l = e.summary?.destinationTokenMetadata;
|
|
32
|
-
return {
|
|
33
|
-
originIntentAddress: w,
|
|
34
|
-
destinationIntentAddress: v,
|
|
35
|
-
mainSigner: g,
|
|
36
|
-
mode: e.summary?.mode,
|
|
37
|
-
intentId: d,
|
|
38
|
-
metaTxnId: d,
|
|
39
|
-
txnHash: t || s || void 0,
|
|
40
|
-
intentStatus: x(A),
|
|
41
|
-
executionStatus: x(A),
|
|
42
|
-
originChainId: T,
|
|
43
|
-
destinationChainId: I,
|
|
44
|
-
originTokenAddress: E,
|
|
45
|
-
originTokenAmount: C.toString(),
|
|
46
|
-
destinationTokenAddress: m || "",
|
|
47
|
-
destinationTokenAmount: (D || 0n).toString(),
|
|
48
|
-
destinationToAddress: U,
|
|
49
|
-
createdAt: H,
|
|
50
|
-
depositTransactionHash: i,
|
|
51
|
-
originTransactionHash: t,
|
|
52
|
-
destinationTransactionHash: s,
|
|
53
|
-
depositTransactionStatus: c,
|
|
54
|
-
originTransactionStatus: a,
|
|
55
|
-
destinationTransactionStatus: h,
|
|
56
|
-
refundTransactionHash: f,
|
|
57
|
-
refundTransactionStatus: u,
|
|
58
|
-
refundTransactionChainId: e.refundTransaction?.chainId,
|
|
59
|
-
originToken: o && E && E !== "" ? {
|
|
60
|
-
symbol: o.symbol || "",
|
|
61
|
-
name: o.name || "",
|
|
62
|
-
decimals: o.decimals ?? 18,
|
|
63
|
-
imageUrl: o.logoUri ?? "",
|
|
64
|
-
chainId: o.chainId
|
|
65
|
-
} : void 0,
|
|
66
|
-
destinationToken: l && m && m !== "" ? {
|
|
67
|
-
symbol: l.symbol || "",
|
|
68
|
-
name: l.name || "",
|
|
69
|
-
decimals: l.decimals ?? 18,
|
|
70
|
-
imageUrl: l.logoUri ?? "",
|
|
71
|
-
chainId: l.chainId
|
|
72
|
-
} : void 0,
|
|
73
|
-
routeProviders: y.routeProviders,
|
|
74
|
-
swapProviderUsed: y.swapProviderUsed,
|
|
75
|
-
bridgeProviderUsed: y.bridgeProviderUsed,
|
|
76
|
-
balances: n.balances,
|
|
77
|
-
hasBalance: n.hasBalance,
|
|
78
|
-
intentProtocol: P
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
async function nn(n, r) {
|
|
82
|
-
const e = n.executionStatus === "EXECUTING" || n.executionStatus === "PROCESSING", i = n.createdAt ? new Date(n.createdAt).getTime() : null;
|
|
83
|
-
if (!(e && i && Date.now() - i > 6e4)) return {
|
|
84
|
-
refunded: !1,
|
|
85
|
-
failed: !1
|
|
86
|
-
};
|
|
87
|
-
const t = [];
|
|
88
|
-
r.originIntentTxHash && n.originChainId && t.push({
|
|
89
|
-
hash: r.originIntentTxHash,
|
|
90
|
-
chainId: n.originChainId
|
|
91
|
-
}), r.originIntentDepositTxHash && n.originChainId && t.push({
|
|
92
|
-
hash: r.originIntentDepositTxHash,
|
|
93
|
-
chainId: n.originChainId
|
|
94
|
-
}), r.destinationIntentTxHash && n.destinationChainId && t.push({
|
|
95
|
-
hash: r.destinationIntentTxHash,
|
|
96
|
-
chainId: n.destinationChainId
|
|
97
|
-
}), r.destinationIntentDepositTxHash && n.destinationChainId && t.push({
|
|
98
|
-
hash: r.destinationIntentDepositTxHash,
|
|
99
|
-
chainId: n.destinationChainId
|
|
100
|
-
}), n.originTransactionHash && n.originChainId && t.push({
|
|
101
|
-
hash: n.originTransactionHash,
|
|
102
|
-
chainId: n.originChainId
|
|
103
|
-
}), n.destinationTransactionHash && n.destinationChainId && t.push({
|
|
104
|
-
hash: n.destinationTransactionHash,
|
|
105
|
-
chainId: n.destinationChainId
|
|
106
|
-
});
|
|
107
|
-
for (const { hash: s, chainId: f } of t) try {
|
|
108
|
-
const c = L(f);
|
|
109
|
-
if (!c) continue;
|
|
110
|
-
const a = await K(c.id).getTransactionReceipt({ hash: s }), h = j(a).some((d) => d.type === "Refund" || d.type === "RefundAndSweep"), u = W(a).some((d) => d.type === "CallFailed");
|
|
111
|
-
if (h)
|
|
112
|
-
return p.console.log("[trails-sdk] Found refund event in transaction", {
|
|
113
|
-
hash: s,
|
|
114
|
-
chainId: f
|
|
115
|
-
}), {
|
|
116
|
-
refunded: !0,
|
|
117
|
-
failed: !1
|
|
118
|
-
};
|
|
119
|
-
if (u)
|
|
120
|
-
return p.console.log("[trails-sdk] Found CallFailed event in transaction", {
|
|
121
|
-
hash: s,
|
|
122
|
-
chainId: f
|
|
123
|
-
}), {
|
|
124
|
-
refunded: !1,
|
|
125
|
-
failed: !0
|
|
126
|
-
};
|
|
127
|
-
} catch (c) {
|
|
128
|
-
p.console.warn("[trails-sdk] Failed to decode events for transaction", {
|
|
129
|
-
hash: s,
|
|
130
|
-
chainId: f,
|
|
131
|
-
error: c
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
return {
|
|
135
|
-
refunded: !1,
|
|
136
|
-
failed: !1
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
function en(n, r, e) {
|
|
140
|
-
const { executionStatus: i, originChainId: t, destinationChainId: s, originIntentAddress: f, destinationIntentAddress: c, createdAt: a } = n, h = n.depositTransactionStatus, u = n.originTransactionStatus, d = n.destinationTransactionStatus;
|
|
141
|
-
if (n.intentStatus) {
|
|
142
|
-
const I = x(n.intentStatus);
|
|
143
|
-
if (I === "INVALID" || I === "REFUNDED" || I === "ABORTED") return I;
|
|
144
|
-
}
|
|
145
|
-
if (d && d !== "ABORTED" && d !== "UNKNOWN") return x(d);
|
|
146
|
-
if (!d && u && u !== "ABORTED" && u !== "UNKNOWN") return x(u);
|
|
147
|
-
if (h === "ABORTED" && !(u && u !== "ABORTED") && !(d && d !== "ABORTED") || u === "ABORTED" && !d || d === "ABORTED") return "ABORTED";
|
|
148
|
-
if (e.refunded) return "REFUNDED";
|
|
149
|
-
if (e.failed) return "FAILED";
|
|
150
|
-
if (i && i !== "UNKNOWN" && i !== "EXECUTING") return i;
|
|
151
|
-
const A = f?.toLowerCase() === c?.toLowerCase() && t === s, g = !c || !s || A, T = a ? Date.now() - new Date(a).getTime() > 5 * O : !1;
|
|
152
|
-
return r.destinationIntentTxHash || r.originIntentTxHash && t && g ? "SUCCEEDED" : r.originIntentDepositTxHash && !r.originIntentTxHash ? "PENDING" : r.originIntentTxHash && !r.destinationIntentTxHash && t && s && !A && c ? T ? "FAILED" : "PENDING" : i || "UNKNOWN";
|
|
153
|
-
}
|
|
154
|
-
async function tn(n) {
|
|
155
|
-
const r = n.originIntentAddress?.toLowerCase() === n.destinationIntentAddress?.toLowerCase() && n.originChainId === n.destinationChainId, e = n.originTransactionHash, i = n.destinationTransactionHash;
|
|
156
|
-
let t, s;
|
|
157
|
-
const f = n.depositTransactionHash;
|
|
158
|
-
let c, a, h;
|
|
159
|
-
e && n.originChainId && (t = N({
|
|
160
|
-
txHash: e,
|
|
161
|
-
chainId: n.originChainId
|
|
162
|
-
})), i && n.destinationChainId && (s = N({
|
|
163
|
-
txHash: i,
|
|
164
|
-
chainId: n.destinationChainId
|
|
165
|
-
})), f && n.originChainId && (a = N({
|
|
166
|
-
txHash: f,
|
|
167
|
-
chainId: n.originChainId
|
|
168
|
-
}));
|
|
169
|
-
const u = await nn(n, {
|
|
170
|
-
originIntentTxHash: e,
|
|
171
|
-
destinationIntentTxHash: i,
|
|
172
|
-
originIntentDepositTxHash: f,
|
|
173
|
-
destinationIntentDepositTxHash: c
|
|
174
|
-
}), d = en(n, {
|
|
175
|
-
originIntentTxHash: e,
|
|
176
|
-
destinationIntentTxHash: i,
|
|
177
|
-
originIntentDepositTxHash: f,
|
|
178
|
-
destinationIntentDepositTxHash: c
|
|
179
|
-
}, u);
|
|
180
|
-
return {
|
|
181
|
-
...n,
|
|
182
|
-
...r ? {
|
|
183
|
-
destinationIntentAddress: "",
|
|
184
|
-
destinationChainId: void 0
|
|
185
|
-
} : {},
|
|
186
|
-
originIntentTxHash: e,
|
|
187
|
-
destinationIntentTxHash: i,
|
|
188
|
-
originIntentTxExplorerUrl: t,
|
|
189
|
-
destinationIntentTxExplorerUrl: s,
|
|
190
|
-
originIntentDepositTxHash: f,
|
|
191
|
-
destinationIntentDepositTxHash: c,
|
|
192
|
-
originIntentDepositTxExplorerUrl: a,
|
|
193
|
-
destinationIntentDepositTxExplorerUrl: h,
|
|
194
|
-
executionStatus: d
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
function on(n, r) {
|
|
198
|
-
let e = n.originToken;
|
|
199
|
-
if (!e && n.originTokenAddress && n.originChainId) {
|
|
200
|
-
let t;
|
|
201
|
-
R(n.originTokenAddress) ? t = r.find((s) => s.isNativeToken && s.chainId === n.originChainId) : t = r.find((s) => s.contractAddress.toLowerCase() === n.originTokenAddress?.toLowerCase() && s.chainId === n.originChainId), t && (e = {
|
|
202
|
-
symbol: t.symbol,
|
|
203
|
-
name: t.name,
|
|
204
|
-
decimals: t.decimals,
|
|
205
|
-
imageUrl: t.imageUrl || "",
|
|
206
|
-
chainId: n.originChainId
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
let i = n.destinationToken;
|
|
210
|
-
if (!i && n.destinationTokenAddress && n.destinationChainId) {
|
|
211
|
-
let t;
|
|
212
|
-
R(n.destinationTokenAddress) ? t = r.find((s) => s.isNativeToken && s.chainId === n.destinationChainId) : t = r.find((s) => s.contractAddress.toLowerCase() === n.destinationTokenAddress?.toLowerCase() && s.chainId === n.destinationChainId), t && (i = {
|
|
213
|
-
symbol: t.symbol,
|
|
214
|
-
name: t.name,
|
|
215
|
-
decimals: t.decimals,
|
|
216
|
-
imageUrl: t.imageUrl || "",
|
|
217
|
-
chainId: n.destinationChainId
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
return e === n.originToken && i === n.destinationToken ? n : {
|
|
221
|
-
...n,
|
|
222
|
-
originToken: e,
|
|
223
|
-
destinationToken: i
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
function sn(n) {
|
|
227
|
-
return {
|
|
228
|
-
originIntentAddress: n.originIntentAddress,
|
|
229
|
-
destinationIntentAddress: n.destinationIntentAddress || "",
|
|
230
|
-
mainSigner: n.ownerAddress,
|
|
231
|
-
intentId: n.intentId,
|
|
232
|
-
originChainId: n.originChainId,
|
|
233
|
-
destinationChainId: n.destinationChainId,
|
|
234
|
-
originTokenAddress: n.originTokenAddress,
|
|
235
|
-
destinationTokenAddress: n.destinationTokenAddress,
|
|
236
|
-
originTokenAmount: n.depositTransaction?.amount?.toString(),
|
|
237
|
-
createdAt: n.createdAt
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
function pn({ accountAddress: n, pageSize: r = 10, enabled: e = !0, refetchInterval: i, intentStatuses: t }) {
|
|
241
|
-
const s = Q(), f = Y(), { supportedTokens: c } = q(), [a, h] = M(0), [u, d] = M([void 0]), A = u[a], { data: g, isLoading: T, error: I, refetch: w, isFetching: v } = J({
|
|
242
|
-
queryKey: [
|
|
243
|
-
"intentTransactionHistory",
|
|
244
|
-
n,
|
|
245
|
-
r,
|
|
246
|
-
a,
|
|
247
|
-
t?.join(",") ?? "all"
|
|
248
|
-
],
|
|
249
|
-
queryFn: async () => {
|
|
250
|
-
if (!n || !s.trailsApiKey) throw new Error("Account address and API key required");
|
|
251
|
-
const o = X({
|
|
252
|
-
apiKey: s.trailsApiKey,
|
|
253
|
-
hostname: s.trailsApiUrl
|
|
254
|
-
}), l = {
|
|
255
|
-
byOwnerAddress: n,
|
|
256
|
-
includeBalances: !0,
|
|
257
|
-
page: A || { pageSize: r }
|
|
258
|
-
};
|
|
259
|
-
t && t.length > 0 && (l.byStatuses = t), p.console.log("[trails-sdk] getIntentHistory request:", l);
|
|
260
|
-
try {
|
|
261
|
-
const k = await o.getIntentHistory(l);
|
|
262
|
-
p.console.log("[trails-sdk] getIntentHistory response:", {
|
|
263
|
-
intentCount: k.intents?.length || 0,
|
|
264
|
-
hasNextPage: k.nextPage?.more ?? !1
|
|
265
|
-
});
|
|
266
|
-
const B = (k.intents || []).map($);
|
|
267
|
-
return {
|
|
268
|
-
transactions: await Promise.all(B.map(async (b) => {
|
|
269
|
-
try {
|
|
270
|
-
return await tn(b);
|
|
271
|
-
} catch (F) {
|
|
272
|
-
return p.console.warn("[trails-sdk] Failed to enrich transaction, using raw data:", F), b;
|
|
273
|
-
}
|
|
274
|
-
})),
|
|
275
|
-
nextPage: k.nextPage,
|
|
276
|
-
hasMore: k.nextPage?.more ?? !1,
|
|
277
|
-
isOffline: !1
|
|
278
|
-
};
|
|
279
|
-
} catch (k) {
|
|
280
|
-
return p.console.warn("[trails-sdk] getIntentHistory API failed, falling back to localStorage", k), {
|
|
281
|
-
transactions: G(n).map(sn),
|
|
282
|
-
nextPage: void 0,
|
|
283
|
-
hasMore: !1,
|
|
284
|
-
isOffline: !0
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
enabled: e && !!n && !!s.trailsApiKey,
|
|
289
|
-
staleTime: 5 * O,
|
|
290
|
-
gcTime: 5 * O,
|
|
291
|
-
retry: !1,
|
|
292
|
-
refetchInterval: i || void 0,
|
|
293
|
-
refetchOnMount: !1,
|
|
294
|
-
refetchOnWindowFocus: !1,
|
|
295
|
-
refetchOnReconnect: !1,
|
|
296
|
-
placeholderData: (o) => o,
|
|
297
|
-
structuralSharing: !1
|
|
298
|
-
}), E = V(() => {
|
|
299
|
-
const o = g?.transactions ?? [];
|
|
300
|
-
return o.length === 0 || c.length === 0 ? o : o.map((l) => on(l, c));
|
|
301
|
-
}, [g?.transactions, c]), C = g?.hasMore ?? !1, m = g?.nextPage, D = S(() => {
|
|
302
|
-
if (!(!C || T)) {
|
|
303
|
-
if (u[a + 1]) {
|
|
304
|
-
p.console.log("[trails-sdk] Using cached page", a + 1), h((o) => o + 1);
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
m && (d((o) => {
|
|
308
|
-
const l = [...o];
|
|
309
|
-
return l[a + 1] = m, l;
|
|
310
|
-
}), h((o) => o + 1));
|
|
311
|
-
}
|
|
312
|
-
}, [
|
|
313
|
-
C,
|
|
314
|
-
T,
|
|
315
|
-
m,
|
|
316
|
-
a,
|
|
317
|
-
u
|
|
318
|
-
]), U = S(() => {
|
|
319
|
-
a <= 0 || T || (p.console.log("[trails-sdk] Going to previous page", a - 1), h((o) => o - 1));
|
|
320
|
-
}, [a, T]), H = S(() => {
|
|
321
|
-
!C || v || m && (d((o) => {
|
|
322
|
-
const l = [...o];
|
|
323
|
-
return l[a + 1] = m, l;
|
|
324
|
-
}), h((o) => o + 1));
|
|
325
|
-
}, [
|
|
326
|
-
C,
|
|
327
|
-
v,
|
|
328
|
-
m,
|
|
329
|
-
a
|
|
330
|
-
]), y = S(() => {
|
|
331
|
-
h((o) => o === 0 ? o : 0), d((o) => o.length === 1 && o[0] === void 0 ? o : [void 0]);
|
|
332
|
-
}, []), P = _(n);
|
|
333
|
-
return z(() => {
|
|
334
|
-
P.current !== n && (P.current = n, y());
|
|
335
|
-
}, [n, y]), {
|
|
336
|
-
transactions: E,
|
|
337
|
-
loading: T || v,
|
|
338
|
-
error: I instanceof Error ? I.message : null,
|
|
339
|
-
isOffline: g?.isOffline ?? !1,
|
|
340
|
-
refetch: async () => {
|
|
341
|
-
await f.invalidateQueries({
|
|
342
|
-
queryKey: ["intentTransactionHistory", n],
|
|
343
|
-
refetchType: "none"
|
|
344
|
-
}), await w();
|
|
345
|
-
},
|
|
346
|
-
loadMore: H,
|
|
347
|
-
hasMore: C,
|
|
348
|
-
page: a,
|
|
349
|
-
nextPage: D,
|
|
350
|
-
prevPage: U,
|
|
351
|
-
hasPrev: a > 0,
|
|
352
|
-
resetPagination: y
|
|
353
|
-
};
|
|
354
|
-
}
|
|
355
|
-
export {
|
|
356
|
-
pn as useIntentTransactionHistory
|
|
357
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useIsMobile.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsMobile.tsx"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,WAAW,IAAI,OAAO,CA4CrC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useEffect as d, useState as w } from "react";
|
|
2
|
-
function u() {
|
|
3
|
-
const [o, n] = w(!1);
|
|
4
|
-
return d(() => {
|
|
5
|
-
const i = () => {
|
|
6
|
-
if (typeof window > "u") return !1;
|
|
7
|
-
const e = window.navigator.userAgent || window.navigator.vendor || window.opera;
|
|
8
|
-
if (!e) return !1;
|
|
9
|
-
const r = /iPad|iPhone|iPod/.test(e) && !window.MSStream, s = /android/i.test(e);
|
|
10
|
-
return r || s || window.innerWidth <= 768;
|
|
11
|
-
};
|
|
12
|
-
n(i());
|
|
13
|
-
const t = () => {
|
|
14
|
-
n(i());
|
|
15
|
-
};
|
|
16
|
-
return window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
17
|
-
}, []), o;
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
u as useIsMobile
|
|
21
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
2
|
-
interface LocaleOption {
|
|
3
|
-
code: string;
|
|
4
|
-
name: string;
|
|
5
|
-
flag: string;
|
|
6
|
-
countryName: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const SUPPORTED_LOCALES: LocaleOption[];
|
|
9
|
-
interface LocalePreferenceContextType {
|
|
10
|
-
selectedLocale: string | null;
|
|
11
|
-
setSelectedLocale: (locale: string) => void;
|
|
12
|
-
resetLocalePreference: () => void;
|
|
13
|
-
getEffectiveLocale: () => string;
|
|
14
|
-
}
|
|
15
|
-
interface LocalePreferenceProviderProps {
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
}
|
|
18
|
-
export declare const LocalePreferenceProvider: React.FC<LocalePreferenceProviderProps>;
|
|
19
|
-
export declare function useLocalePreference(): LocalePreferenceContextType;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=useLocalePreference.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLocalePreference.d.ts","sourceRoot":"","sources":["../../src/hooks/useLocalePreference.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAGd,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,iBAAiB,EAAE,YAAY,EAgD3C,CAAA;AAED,UAAU,2BAA2B;IACnC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,qBAAqB,EAAE,MAAM,IAAI,CAAA;IACjC,kBAAkB,EAAE,MAAM,MAAM,CAAA;CACjC;AAMD,UAAU,6BAA6B;IACrC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAID,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAC7C,6BAA6B,CA0F9B,CAAA;AAED,wBAAgB,mBAAmB,IAAI,2BAA2B,CAUjE"}
|