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,786 +0,0 @@
|
|
|
1
|
-
import { getFullErrorMessage as yt, getPrettifiedErrorMessage as Fn } from "../../error.js";
|
|
2
|
-
import { logger as c } from "../../logger/index.js";
|
|
3
|
-
import { isWithinCooldown as St } from "../../utils/time.js";
|
|
4
|
-
import { getChainInfo as Qe } from "../../chains.js";
|
|
5
|
-
import { addressEqual as In } from "../../utils/address.js";
|
|
6
|
-
import { USDC_BASE as Ln } from "../../constants.js";
|
|
7
|
-
import { useWidgetProps as En } from "../../hooks/useWidgetProps.js";
|
|
8
|
-
import { getSupportedChains as Bn } from "../shared/destinationSupport.js";
|
|
9
|
-
import { useOriginSelectedToken as On } from "../../hooks/useOriginSelectedToken.js";
|
|
10
|
-
import { useDestinationSelectedToken as Rn } from "../../hooks/useDestinationSelectedToken.js";
|
|
11
|
-
import { useFiatSelectedCurrency as _n } from "../../hooks/useFiatSelectedCurrency.js";
|
|
12
|
-
import { isValidNumber as Tt } from "../../utils/validation.js";
|
|
13
|
-
import { formatRawAmount as Mn, formatUsdAmountDisplay as Xn, formatUsdAmountLocaleDisplay as We } from "../../utils/format.js";
|
|
14
|
-
import { useSelectedRecipient as Qn } from "../../hooks/useSelectedRecipient.js";
|
|
15
|
-
import { useBalanceVisible as Wn } from "../../hooks/useBalanceVisible.js";
|
|
16
|
-
import { useExchangeRate as jn } from "../../query/fiat.hooks.js";
|
|
17
|
-
import { trackOnrampWidgetSession as Hn } from "../../analytics.js";
|
|
18
|
-
import { TradeType as i } from "../../transactionIntent/types.js";
|
|
19
|
-
import { useSwapState as qn } from "../../hooks/useSwapState.js";
|
|
20
|
-
import { useViewManager as Vn } from "../../hooks/useViewManager.js";
|
|
21
|
-
import { ScreenHeader as Te } from "./ScreenHeader.js";
|
|
22
|
-
import { useAccountTokenBalanceOnchain as At } from "../../query/balance.hooks.js";
|
|
23
|
-
import { AddressWalletIcon as Kn } from "./AddressWalletIcon.js";
|
|
24
|
-
import { TokenSelector as bt } from "./TokenSelector.js";
|
|
25
|
-
import { ChainList as wt } from "./ChainList.js";
|
|
26
|
-
import kt from "./DynamicSizeInputField.js";
|
|
27
|
-
import { isPassthroughEligible as zn } from "../../utils/passthrough.js";
|
|
28
|
-
import Gn from "./QuoteDetails.js";
|
|
29
|
-
import { ErrorDisplay as $n } from "./ErrorDisplay.js";
|
|
30
|
-
import { AddressOrEnsName as Jn } from "./AddressOrEnsName.js";
|
|
31
|
-
import Ae from "./LoadingSpinner.js";
|
|
32
|
-
import { MeldProvidersList as Yn } from "../../meld/components/MeldProvidersList.js";
|
|
33
|
-
import { useOnRampCountryDefaults as Zn } from "../../hooks/useOnRampCountryDefaults.js";
|
|
34
|
-
import { closePopup as es, openPopup as ts, setPopupUrl as ns } from "../utils/windowUtils.js";
|
|
35
|
-
import { PercentageMaxButtons as ss } from "./PercentageMaxButtons.js";
|
|
36
|
-
import { useDefaultOriginToken as os } from "../../hooks/useDefaultOriginToken.js";
|
|
37
|
-
import { useSendForm as rs } from "../../hooks/useSendForm.js";
|
|
38
|
-
import { isFeeOptionDisabled as is } from "./FeeOption.js";
|
|
39
|
-
import as from "./FeeOptions.js";
|
|
40
|
-
import ls from "./FundingMethodSelectorButton.js";
|
|
41
|
-
import { TokenSelectorButton as vt } from "./TokenSelectorButton.js";
|
|
42
|
-
import { useDefaultDestinationToken as cs } from "../../hooks/useDefaultDestinationToken.js";
|
|
43
|
-
import { useFiatOnRampCurrencies as ds } from "../../hooks/useFiatOnRampCurrencies.js";
|
|
44
|
-
import { useOnRampProviderWidget as us } from "../../hooks/useOnRampProviderWidget.js";
|
|
45
|
-
import { useOnRampQuote as ms } from "../../hooks/useOnRampQuote.js";
|
|
46
|
-
import { FiatSelector as ps } from "./FiatSelector.js";
|
|
47
|
-
import { FiatSelectorButton as fs } from "./FiatSelectorButton.js";
|
|
48
|
-
import gs from "./OnRampProviderSelector.js";
|
|
49
|
-
import hs from "./RecipientSelectorButton.js";
|
|
50
|
-
import { RefundWarning as Cs } from "./RefundWarning.js";
|
|
51
|
-
import ys from "./HighPriceImpactBlock.js";
|
|
52
|
-
import Ss from "./QuoteInputErrorBlock.js";
|
|
53
|
-
import { base as Ts } from "viem/chains";
|
|
54
|
-
import { useCallback as D, useEffect as h, useMemo as Dt, useRef as je, useState as T } from "react";
|
|
55
|
-
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
56
|
-
import { ArrowDown as As, Loader2 as bs } from "lucide-react";
|
|
57
|
-
var xo = ({ selectedToken: xt, onSend: Nt, onBack: Ut, onConfirm: Pt, onComplete: He, account: A, toRecipient: x, toAmount: qe, toChainId: O, toToken: b, toCalldata: Ft, walletClient: It, onTransactionStateChange: Lt, onError: Q, onWaitingForWalletConfirm: Et, onWaitingForOnrampConfirm: be, setWalletConfirmRetryHandler: Bt, swapProvider: Ot, bridgeProvider: Rt, swapProviderFallback: _t, bridgeProviderFallback: Mt, fundMethod: S, onAmountUpdate: we, checkoutOnHandlers: Xt, recentTokens: Ve, onTrackToken: ce, title: Qt = "Swap", isSequenceWallet: Wt = !1, exactInputOnly: k = !1 }) => {
|
|
58
|
-
const { fundOptions: W, fromToken: jt, supportedChains: Ht, supportedTokensByChain: qt } = En(), { mode: R, navigate: de } = Vn(), { isBalanceVisible: Ke } = Wn(), { selectedToken: o, setSelectedToken: U, hasManualSelection: P, setHasManualSelection: j } = On(), { selectedToken: u, setSelectedToken: F, hasManualSelection: ue, setHasManualSelection: me, isControlledByProps: ze, availableDestinationTokens: Vt, availableDestinationTokenKeys: Kt, availableDestinationTokenRestrictedChainIds: zt, availableDestinationChainIds: ke } = Rn(), Gt = Dt(() => Bn(ke), [ke]), { selectedRecipient: ve, setSelectedRecipient: Ge } = Qn(), { selectedCurrency: y, setSelectedCurrency: H, hasManualSelection: $e, setHasManualSelection: De, fiatAmount: q, setFiatAmount: V } = _n(), [Je, $t] = T(!1), [Jt, xe] = T(!1), [Yt, Zt] = T(null), [en, Ye] = T(!1), [tn, Ze] = T(null), n = S === "onramp-meld", { countryCode: nn, defaultCurrencyCode: Ne, isLoading: et } = Zn({ enabled: n }), I = Yt || nn, { fiatCurrencies: K, isLoading: pe } = ds({
|
|
59
|
-
countryCode: I || "US",
|
|
60
|
-
enabled: n && !!I
|
|
61
|
-
});
|
|
62
|
-
h(() => {
|
|
63
|
-
if (n && !y && K.length > 0 && !et && !pe && !$e) {
|
|
64
|
-
const e = Ne || "USD", r = K.find((w) => w.currencyCode === e);
|
|
65
|
-
r && (c.console.log("[ClassicSwap] Auto-selecting default currency:", r, Ne ? "(detected)" : "(fallback to USD)"), H(r));
|
|
66
|
-
}
|
|
67
|
-
}, [
|
|
68
|
-
n,
|
|
69
|
-
y,
|
|
70
|
-
Ne,
|
|
71
|
-
K,
|
|
72
|
-
et,
|
|
73
|
-
pe,
|
|
74
|
-
$e,
|
|
75
|
-
H
|
|
76
|
-
]);
|
|
77
|
-
const Ue = je(null);
|
|
78
|
-
h(() => {
|
|
79
|
-
n || (Ue.current = null);
|
|
80
|
-
}, [n]), h(() => {
|
|
81
|
-
if (!n || pe || K.length === 0) return;
|
|
82
|
-
const e = W?.fiatCurrency?.trim() || "", r = W?.fiatAmount?.trim() || "", w = `${e.toUpperCase()}|${r}`;
|
|
83
|
-
if (Ue.current !== w) {
|
|
84
|
-
if (Ue.current = w, e) {
|
|
85
|
-
const B = K.find((v) => v.currencyCode.toUpperCase() === e.toUpperCase());
|
|
86
|
-
B && (H(B), De(!0));
|
|
87
|
-
}
|
|
88
|
-
r && V(r);
|
|
89
|
-
}
|
|
90
|
-
}, [
|
|
91
|
-
n,
|
|
92
|
-
pe,
|
|
93
|
-
K,
|
|
94
|
-
W?.fiatCurrency,
|
|
95
|
-
W?.fiatAmount,
|
|
96
|
-
H,
|
|
97
|
-
De,
|
|
98
|
-
V
|
|
99
|
-
]);
|
|
100
|
-
const tt = W?.fiatCurrency?.trim().toUpperCase() || null, sn = !!tt && !!y && y.currencyCode.toUpperCase() === tt, on = n && sn, rn = n && !!W?.fiatAmount, z = je({
|
|
101
|
-
hasManualDestinationSelection: !1,
|
|
102
|
-
lastOriginSelectionTime: 0,
|
|
103
|
-
lastDestinationSelectionTime: 0
|
|
104
|
-
}), { defaultOriginToken: ne, isLoading: fe } = os(), { defaultDestinationToken: G, isLoading: nt } = cs(o), [ge, he] = T(xt?.chainId || o?.chainId), { tradeType: an, setTradeType: m, sellAmount: N, setSellAmount: p, buyAmount: _, setBuyAmount: g, resetSwapState: st, enterFormMode: ln } = qn();
|
|
105
|
-
h(() => {
|
|
106
|
-
ln("swap");
|
|
107
|
-
}, []);
|
|
108
|
-
const d = an || i.EXACT_INPUT, [Pe, ot] = T(!1), [cn, Ce] = T(null), dn = D((e) => {
|
|
109
|
-
V(""), st(), He(e);
|
|
110
|
-
}, [
|
|
111
|
-
He,
|
|
112
|
-
st,
|
|
113
|
-
V
|
|
114
|
-
]);
|
|
115
|
-
h(() => {
|
|
116
|
-
c.console.log("[trails-sdk] ClassicSwap toRecipient prop effect:", {
|
|
117
|
-
toRecipient: x,
|
|
118
|
-
selectedRecipient: ve,
|
|
119
|
-
accountAddress: A?.address
|
|
120
|
-
}), x && (c.console.log("[trails-sdk] ClassicSwap Setting selectedRecipient to toRecipient:", x), Ge(x));
|
|
121
|
-
}, [x, Ge]);
|
|
122
|
-
const $ = ve || x || A?.address, Fe = !!($ && A?.address && !In($, A.address)) || !!b || Ht != null || qt != null || !!jt, M = n ? "onramp-meld" : S, rt = M === "onramp-meld" || M === "direct-transfer" || M === "onramp-mesh", { quotes: se, selectedQuote: it, isLoading: oe, error: re, onrampTrackingData: at } = ms({
|
|
123
|
-
amount: q,
|
|
124
|
-
sourceCurrencyCode: y?.currencyCode,
|
|
125
|
-
destinationCurrencyCode: "USDC_BASE",
|
|
126
|
-
countryCode: I || void 0,
|
|
127
|
-
walletAddress: A?.address || "",
|
|
128
|
-
enabled: n && !!q && !!y && !!I && !!$
|
|
129
|
-
}), { amount: ye, amountRaw: lt, amountUsdDisplay: un, amountUsdLocaleDisplay: mn, balanceFormatted: L, balanceRaw: pn, tokenDecimals: fn, handleSubmit: ct, isSubmitting: Ie, isLoadingQuote: C, selectedDestinationChain: dt, selectedDestToken: f, setSelectedDestinationChain: J, setSelectedDestToken: E, buttonText: Se, toAmountDisplay: Y, destinationTokenAddress: gn, isValidCustomToken: hn, prepareSendQuote: s, quoteError: ut, processedFeeOptions: mt, selectedFeeOption: ie, setSelectedFeeOption: Cn, sendFn: pt } = rs({
|
|
130
|
-
account: A,
|
|
131
|
-
toAmount: d === i.EXACT_OUTPUT ? _ : qe,
|
|
132
|
-
fromAmount: d === i.EXACT_INPUT ? N : void 0,
|
|
133
|
-
toRecipient: $,
|
|
134
|
-
toChainId: O,
|
|
135
|
-
toToken: b,
|
|
136
|
-
toCalldata: Ft,
|
|
137
|
-
walletClient: It,
|
|
138
|
-
onTransactionStateChange: Lt,
|
|
139
|
-
onError: Q,
|
|
140
|
-
onWaitingForWalletConfirm: Et,
|
|
141
|
-
onWaitingForOnrampConfirm: be,
|
|
142
|
-
onSend: Nt,
|
|
143
|
-
onConfirm: Pt,
|
|
144
|
-
onComplete: dn,
|
|
145
|
-
selectedToken: o ?? void 0,
|
|
146
|
-
setWalletConfirmRetryHandler: Bt,
|
|
147
|
-
tradeType: d,
|
|
148
|
-
swapProvider: Ot,
|
|
149
|
-
bridgeProvider: Rt,
|
|
150
|
-
swapProviderFallback: _t,
|
|
151
|
-
bridgeProviderFallback: Mt,
|
|
152
|
-
fundMethod: M,
|
|
153
|
-
mode: R,
|
|
154
|
-
checkoutOnHandlers: Xt,
|
|
155
|
-
onrampTrackingData: n ? at : null,
|
|
156
|
-
skipFeeBalanceFetch: M === "onramp-meld" || M === "direct-transfer" || M === "onramp-mesh"
|
|
157
|
-
}), l = tn || it, { exchangeRate: Le, isLoading: yn } = jn({
|
|
158
|
-
fromCurrency: "USD",
|
|
159
|
-
toCurrency: l?.sourceCurrencyCode || "USD",
|
|
160
|
-
disabled: !l || l?.sourceCurrencyCode === "USD"
|
|
161
|
-
}), { createWidgetSession: Sn, isLoading: Ee, error: ft } = us();
|
|
162
|
-
h(() => {
|
|
163
|
-
if (n) {
|
|
164
|
-
const e = Ln;
|
|
165
|
-
c.console.log("[ClassicSwap] Setting origin token to USDC on Base:", e), U(e), he(Ts.id), m(i.EXACT_INPUT);
|
|
166
|
-
}
|
|
167
|
-
}, [
|
|
168
|
-
n,
|
|
169
|
-
U,
|
|
170
|
-
m
|
|
171
|
-
]);
|
|
172
|
-
const { token: Z } = At(u, A?.address, { disabled: rt }), { token: ee, isLoadingBalance: Tn } = At(o, A?.address, { disabled: rt }), An = Dt(() => {
|
|
173
|
-
if (!Z) return "0.00";
|
|
174
|
-
try {
|
|
175
|
-
return Mn(Z.balance || "0", Z.decimals ?? 18);
|
|
176
|
-
} catch (e) {
|
|
177
|
-
return c.console.error("[trails-sdk] balance format failed", e), "0.00";
|
|
178
|
-
}
|
|
179
|
-
}, [Z]), bn = D((e) => {
|
|
180
|
-
Ce(null), V(e);
|
|
181
|
-
}, [V]), wn = D((e) => {
|
|
182
|
-
let r = e;
|
|
183
|
-
e.length > 1 && e.startsWith("0") && e[1] !== "." && (r = e.replace(/^0+/, "") || "0"), m(i.EXACT_INPUT), p(r);
|
|
184
|
-
}, [m, p]), kn = D(() => {
|
|
185
|
-
d === i.EXACT_OUTPUT && s?.originAmountDisplay && !N && p(s.originAmountDisplay);
|
|
186
|
-
}, [
|
|
187
|
-
d,
|
|
188
|
-
s?.originAmountDisplay,
|
|
189
|
-
N,
|
|
190
|
-
p
|
|
191
|
-
]), vn = D((e) => {
|
|
192
|
-
if (n || k) return;
|
|
193
|
-
let r = e;
|
|
194
|
-
e.length > 1 && e.startsWith("0") && e[1] !== "." && (r = e.replace(/^0+/, "") || "0"), m(i.EXACT_OUTPUT), g(r);
|
|
195
|
-
}, [
|
|
196
|
-
n,
|
|
197
|
-
k,
|
|
198
|
-
m,
|
|
199
|
-
g
|
|
200
|
-
]), Dn = D(() => {
|
|
201
|
-
n || k || d === i.EXACT_INPUT && Y && !_ && g(Y);
|
|
202
|
-
}, [
|
|
203
|
-
d,
|
|
204
|
-
Y,
|
|
205
|
-
_,
|
|
206
|
-
n,
|
|
207
|
-
k,
|
|
208
|
-
g
|
|
209
|
-
]);
|
|
210
|
-
h(() => {
|
|
211
|
-
if (n && l && o?.contractAddress) {
|
|
212
|
-
const e = Number(l.destinationAmount), r = Math.max(0, e - 0.25);
|
|
213
|
-
c.console.log("[trails-sdk] Adjusting onramp amount for fees:", {
|
|
214
|
-
originalAmount: e,
|
|
215
|
-
adjustedAmount: r,
|
|
216
|
-
feeSubtracted: 0.25
|
|
217
|
-
}), p(r.toString()), m(i.EXACT_INPUT);
|
|
218
|
-
}
|
|
219
|
-
}, [
|
|
220
|
-
n,
|
|
221
|
-
l,
|
|
222
|
-
o,
|
|
223
|
-
p,
|
|
224
|
-
m
|
|
225
|
-
]), h(() => {
|
|
226
|
-
s && (d === i.EXACT_OUTPUT && s.originAmountDisplay ? p(s.originAmountDisplay) : d === i.EXACT_INPUT && s.destinationAmountDisplay && g(s.destinationAmountDisplay));
|
|
227
|
-
}, [
|
|
228
|
-
s,
|
|
229
|
-
d,
|
|
230
|
-
p,
|
|
231
|
-
g
|
|
232
|
-
]), h(() => {
|
|
233
|
-
we && we(lt);
|
|
234
|
-
}, [lt, we]), h(() => {
|
|
235
|
-
P && !o && !fe && (c.console.log("[trails-sdk] Resetting hasManualOriginSelection - token was cleared"), j(!1));
|
|
236
|
-
}, [
|
|
237
|
-
P,
|
|
238
|
-
o,
|
|
239
|
-
fe,
|
|
240
|
-
j
|
|
241
|
-
]), h(() => {
|
|
242
|
-
!o && !fe && ne && !P && (c.console.log("[trails-sdk] Auto-selecting origin token:", ne), U(ne), he(ne.chainId));
|
|
243
|
-
}, [
|
|
244
|
-
o,
|
|
245
|
-
fe,
|
|
246
|
-
ne,
|
|
247
|
-
U,
|
|
248
|
-
P
|
|
249
|
-
]), h(() => {
|
|
250
|
-
const e = P || St(z.current.lastOriginSelectionTime, 1e3), r = z.current.hasManualDestinationSelection || ue || St(z.current.lastDestinationSelectionTime, 1e3);
|
|
251
|
-
if (!(b && O) && !u && !nt && G && !r && !e) {
|
|
252
|
-
c.console.log("[trails-sdk] Auto-selecting destination token:", G), F(G), E(G);
|
|
253
|
-
const w = Qe(G.chainId);
|
|
254
|
-
w && J(w);
|
|
255
|
-
}
|
|
256
|
-
}, [
|
|
257
|
-
u,
|
|
258
|
-
nt,
|
|
259
|
-
G,
|
|
260
|
-
ue,
|
|
261
|
-
P,
|
|
262
|
-
F,
|
|
263
|
-
E,
|
|
264
|
-
J,
|
|
265
|
-
b,
|
|
266
|
-
O
|
|
267
|
-
]), h(() => {
|
|
268
|
-
Be.current && Be.current.focus();
|
|
269
|
-
}, []);
|
|
270
|
-
const Be = je(null), [Oe, ae] = T(!1), [Re, le] = T(!1), [xn, gt] = T(!1), [Nn, ht] = T(!1);
|
|
271
|
-
h(() => {
|
|
272
|
-
b && O || u && (c.console.log("[trails-sdk] Syncing destination token to useSendForm:", u), E(u));
|
|
273
|
-
}, [
|
|
274
|
-
u,
|
|
275
|
-
E,
|
|
276
|
-
b,
|
|
277
|
-
O
|
|
278
|
-
]), h(() => {
|
|
279
|
-
if (!ze || !f || !b) return;
|
|
280
|
-
const e = f.chainId === Number(O), r = f.contractAddress?.toLowerCase() === b.toLowerCase() || f.symbol?.toLowerCase() === b.toLowerCase();
|
|
281
|
-
e && r && (u && u.chainId === f.chainId && u.contractAddress?.toLowerCase() === f.contractAddress?.toLowerCase() || (c.console.log("[trails-sdk] ClassicSwap: Syncing resolved token from useSendForm to global provider:", f.symbol), F(f)));
|
|
282
|
-
}, [
|
|
283
|
-
ze,
|
|
284
|
-
f,
|
|
285
|
-
u,
|
|
286
|
-
F,
|
|
287
|
-
b,
|
|
288
|
-
O
|
|
289
|
-
]);
|
|
290
|
-
const X = D(() => {
|
|
291
|
-
if (Fe || !dt || !o || !f) return;
|
|
292
|
-
$t(!Je);
|
|
293
|
-
const e = o, r = ge, w = _ || Y || "", B = N || ye || "";
|
|
294
|
-
U(f), F(e), he(f?.chainId), E(e);
|
|
295
|
-
const v = Qe(r ?? void 0);
|
|
296
|
-
v && J(v), (P || ue) && (j(!0), me(!0)), k ? (p(B), g(""), m(i.EXACT_INPUT)) : d === i.EXACT_INPUT ? (g(B), p(""), m(i.EXACT_OUTPUT)) : (p(w), g(""), m(i.EXACT_INPUT));
|
|
297
|
-
}, [
|
|
298
|
-
o,
|
|
299
|
-
dt,
|
|
300
|
-
f,
|
|
301
|
-
ge,
|
|
302
|
-
U,
|
|
303
|
-
F,
|
|
304
|
-
E,
|
|
305
|
-
J,
|
|
306
|
-
Je,
|
|
307
|
-
P,
|
|
308
|
-
ue,
|
|
309
|
-
j,
|
|
310
|
-
me,
|
|
311
|
-
k,
|
|
312
|
-
d,
|
|
313
|
-
Y,
|
|
314
|
-
N,
|
|
315
|
-
_,
|
|
316
|
-
ye,
|
|
317
|
-
p,
|
|
318
|
-
g,
|
|
319
|
-
m,
|
|
320
|
-
Fe
|
|
321
|
-
]), _e = D((e) => {
|
|
322
|
-
e.contractAddress === u?.contractAddress && e.chainId === u?.chainId && X(), (!o || o.symbol !== e.symbol) && (p(""), g(""), m(i.EXACT_INPUT)), U(e), he(e.chainId), ae(!1), j(!0), z.current.lastOriginSelectionTime = Date.now(), ce?.(e), c.console.log("[trails-sdk] selected origin token", e);
|
|
323
|
-
}, [
|
|
324
|
-
U,
|
|
325
|
-
j,
|
|
326
|
-
ce,
|
|
327
|
-
o,
|
|
328
|
-
X,
|
|
329
|
-
u,
|
|
330
|
-
p,
|
|
331
|
-
g,
|
|
332
|
-
m
|
|
333
|
-
]), Me = D((e) => {
|
|
334
|
-
e.contractAddress === o?.contractAddress && e.chainId === o?.chainId && X(), F(e), E(e);
|
|
335
|
-
const r = Qe(e.chainId);
|
|
336
|
-
r && J(r), le(!1), me(!0), z.current.hasManualDestinationSelection = !0, z.current.lastDestinationSelectionTime = Date.now(), ce?.(e), c.console.log("[trails-sdk] selected destination token", e);
|
|
337
|
-
}, [
|
|
338
|
-
F,
|
|
339
|
-
E,
|
|
340
|
-
J,
|
|
341
|
-
me,
|
|
342
|
-
ce,
|
|
343
|
-
o,
|
|
344
|
-
X
|
|
345
|
-
]), Ct = D((e) => {
|
|
346
|
-
e.contractAddress === o?.contractAddress && e.chainId === o?.chainId && X(), Oe ? _e(e) : Re && Me(e);
|
|
347
|
-
}, [
|
|
348
|
-
Oe,
|
|
349
|
-
Re,
|
|
350
|
-
_e,
|
|
351
|
-
Me,
|
|
352
|
-
o?.contractAddress,
|
|
353
|
-
o?.chainId,
|
|
354
|
-
X
|
|
355
|
-
]);
|
|
356
|
-
return en ? /* @__PURE__ */ t(Yn, {
|
|
357
|
-
onBack: () => Ye(!1),
|
|
358
|
-
onSelectProvider: (e) => {
|
|
359
|
-
Ze(e), Ye(!1);
|
|
360
|
-
},
|
|
361
|
-
selectedProvider: l,
|
|
362
|
-
providers: se,
|
|
363
|
-
isLoading: oe
|
|
364
|
-
}) : Jt ? /* @__PURE__ */ a("div", {
|
|
365
|
-
className: "space-y-2",
|
|
366
|
-
children: [/* @__PURE__ */ t(Te, {
|
|
367
|
-
onBack: () => xe(!1),
|
|
368
|
-
headerContent: "Select Currency",
|
|
369
|
-
headerContentAlign: "left"
|
|
370
|
-
}), /* @__PURE__ */ t(ps, {
|
|
371
|
-
onCurrencySelect: (e) => {
|
|
372
|
-
H(e), xe(!1), De(!0);
|
|
373
|
-
},
|
|
374
|
-
onAutoSelect: (e) => {
|
|
375
|
-
H(e);
|
|
376
|
-
},
|
|
377
|
-
onSelectCountry: (e) => {
|
|
378
|
-
Zt(e);
|
|
379
|
-
},
|
|
380
|
-
onError: Q,
|
|
381
|
-
selectedCurrency: y
|
|
382
|
-
})]
|
|
383
|
-
}) : xn ? /* @__PURE__ */ t(wt, { onBack: () => {
|
|
384
|
-
gt(!1), ae(!0);
|
|
385
|
-
} }) : Oe ? /* @__PURE__ */ a("div", {
|
|
386
|
-
className: "space-y-2",
|
|
387
|
-
children: [/* @__PURE__ */ t(Te, {
|
|
388
|
-
onBack: () => ae(!1),
|
|
389
|
-
headerContent: "Select From Token",
|
|
390
|
-
headerContentAlign: "left"
|
|
391
|
-
}), /* @__PURE__ */ t(bt, {
|
|
392
|
-
onTokenSelect: _e,
|
|
393
|
-
onError: Q,
|
|
394
|
-
showContinueButton: !1,
|
|
395
|
-
compactMode: !1,
|
|
396
|
-
allSupportedTokens: !1,
|
|
397
|
-
fundMethod: S,
|
|
398
|
-
chainListScreen: !0,
|
|
399
|
-
onNavigateToChainList: () => {
|
|
400
|
-
ae(!1), gt(!0);
|
|
401
|
-
},
|
|
402
|
-
recentTokens: Ve,
|
|
403
|
-
onRecentTokenSelect: Ct
|
|
404
|
-
})]
|
|
405
|
-
}) : Nn ? /* @__PURE__ */ t(wt, {
|
|
406
|
-
chains: Gt,
|
|
407
|
-
onBack: () => {
|
|
408
|
-
ht(!1), le(!0);
|
|
409
|
-
}
|
|
410
|
-
}) : Re ? /* @__PURE__ */ a("div", {
|
|
411
|
-
className: "space-y-2",
|
|
412
|
-
children: [/* @__PURE__ */ t(Te, {
|
|
413
|
-
onBack: () => le(!1),
|
|
414
|
-
headerContent: "Select To Token",
|
|
415
|
-
headerContentAlign: "left"
|
|
416
|
-
}), /* @__PURE__ */ t(bt, {
|
|
417
|
-
onTokenSelect: Me,
|
|
418
|
-
onError: Q,
|
|
419
|
-
allowedTokens: Vt,
|
|
420
|
-
allowedTokenKeys: Kt,
|
|
421
|
-
allowedTokenRestrictedChainIds: zt,
|
|
422
|
-
allowedChainIds: ke,
|
|
423
|
-
showContinueButton: !1,
|
|
424
|
-
compactMode: !1,
|
|
425
|
-
allSupportedTokens: !0,
|
|
426
|
-
accountAddress: $,
|
|
427
|
-
accountHeaderLabel: "Receiver",
|
|
428
|
-
fundMethod: S,
|
|
429
|
-
chainListScreen: !0,
|
|
430
|
-
onNavigateToChainList: () => {
|
|
431
|
-
le(!1), ht(!0);
|
|
432
|
-
},
|
|
433
|
-
recentTokens: Ve,
|
|
434
|
-
onRecentTokenSelect: Ct
|
|
435
|
-
})]
|
|
436
|
-
}) : /* @__PURE__ */ a("div", {
|
|
437
|
-
className: "space-y-2",
|
|
438
|
-
children: [/* @__PURE__ */ t(Te, {
|
|
439
|
-
onBack: R === "fund" ? () => de("fund-form") : R === "earn" ? () => de("earn") : R === "pay" ? () => de("send-form") : R === "withdraw" ? () => de("withdraw") : Ut,
|
|
440
|
-
headerContent: Qt,
|
|
441
|
-
headerContentAlign: "left",
|
|
442
|
-
showAccountActions: !0
|
|
443
|
-
}), /* @__PURE__ */ a("form", {
|
|
444
|
-
onSubmit: async (e) => {
|
|
445
|
-
if (e.preventDefault(), c.console.log("[trails-sdk] Creating widget session", n), n && l && y) {
|
|
446
|
-
const { popup: r, blocked: w, error: B } = ts("meld-widget", 450, 700);
|
|
447
|
-
if (w) {
|
|
448
|
-
Ce(B || "Popup blocked. Please allow popups for this site."), Q(B || "Popup blocked");
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
try {
|
|
452
|
-
if (ot(!0), Ce(null), c.console.log("[trails-sdk] prepareSendQuote", s), pt) {
|
|
453
|
-
c.console.log("[trails-sdk] Committing intent for onramp-meld flow");
|
|
454
|
-
try {
|
|
455
|
-
await pt({ selectedFeeOption: ie ?? null }), c.console.log("[trails-sdk] Intent committed for onramp-meld");
|
|
456
|
-
} catch (Pn) {
|
|
457
|
-
c.console.error("[trails-sdk] Failed to commit intent:", Pn);
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
const v = await Sn({
|
|
461
|
-
depositAddress: s?.originDepositAddress || "",
|
|
462
|
-
userAddress: A?.address || "",
|
|
463
|
-
countryCode: I || "",
|
|
464
|
-
sourceCurrencyCode: y.currencyCode,
|
|
465
|
-
sourceAmount: q,
|
|
466
|
-
destinationCurrencyCode: "USDC_BASE",
|
|
467
|
-
serviceProvider: l.serviceProvider,
|
|
468
|
-
paymentMethodType: l.paymentMethodType,
|
|
469
|
-
lockFields: [
|
|
470
|
-
"cryptoCurrency",
|
|
471
|
-
"destinationCurrencyCode",
|
|
472
|
-
"sourceCurrencyCode",
|
|
473
|
-
"walletAddress"
|
|
474
|
-
]
|
|
475
|
-
});
|
|
476
|
-
c.console.log("[ClassicSwap] Widget session response:", v);
|
|
477
|
-
const { widgetUrl: te, id: Un, externalSessionId: Xe } = v;
|
|
478
|
-
if (Hn({
|
|
479
|
-
sessionId: at?.sessionId || Xe,
|
|
480
|
-
provider: l?.serviceProvider || "Meld",
|
|
481
|
-
widgetUrl: te,
|
|
482
|
-
depositAddress: s?.originDepositAddress || "",
|
|
483
|
-
userAddress: A?.address?.toLowerCase() || "",
|
|
484
|
-
countryCode: I || "",
|
|
485
|
-
sourceCurrencyCode: y?.currencyCode || "",
|
|
486
|
-
sourceAmount: q,
|
|
487
|
-
destinationCurrencyCode: "USDC_BASE",
|
|
488
|
-
paymentMethodType: l?.paymentMethodType || ""
|
|
489
|
-
}), !ns(r, te)) throw new Error("Payment window was closed. Please try again.");
|
|
490
|
-
c.console.log("[ClassicSwap] Opened onramp widget in popup", {
|
|
491
|
-
widgetUrl: te,
|
|
492
|
-
meldTransactionId: Un
|
|
493
|
-
}), be && s && (c.console.log("[ClassicSwap] Calling onWaitingForOnrampConfirm with externalSessionId:", Xe), be(s, l, {
|
|
494
|
-
depositAddress: s?.originDepositAddress || "",
|
|
495
|
-
userAddress: A?.address?.toLowerCase() || "",
|
|
496
|
-
countryCode: I || "",
|
|
497
|
-
sourceCurrencyCode: y.currencyCode,
|
|
498
|
-
sourceAmount: q,
|
|
499
|
-
destinationCurrencyCode: "USDC_BASE",
|
|
500
|
-
serviceProvider: l.serviceProvider,
|
|
501
|
-
paymentMethodType: l.paymentMethodType
|
|
502
|
-
}, Xe, r)), await ct(e);
|
|
503
|
-
} catch (v) {
|
|
504
|
-
es(r), c.console.error("[ClassicSwap] Error creating widget session", v);
|
|
505
|
-
const te = yt(v) || "Failed to create widget session";
|
|
506
|
-
Ce(te), Q(te);
|
|
507
|
-
} finally {
|
|
508
|
-
ot(!1);
|
|
509
|
-
}
|
|
510
|
-
return;
|
|
511
|
-
}
|
|
512
|
-
c.console.log("[trails-sdk] Calling handleSubmit from ClassicSwap"), ct(e);
|
|
513
|
-
},
|
|
514
|
-
className: "space-y-1",
|
|
515
|
-
children: [
|
|
516
|
-
/* @__PURE__ */ a("div", {
|
|
517
|
-
className: "pt-4 pb-4 trails-bg-secondary trails-bg-secondary-hover trails-border-radius-container p-3 group transition-all duration-200 border border-transparent focus-within:bg-white! dark:focus-within:bg-gray-800! trails-focus-border-secondary min-h-[120px] flex flex-col",
|
|
518
|
-
children: [
|
|
519
|
-
/* @__PURE__ */ a("div", {
|
|
520
|
-
className: "mb-4 flex justify-between items-center",
|
|
521
|
-
children: [/* @__PURE__ */ t("div", {
|
|
522
|
-
className: "text-sm font-medium trails-text-secondary text-left m-0",
|
|
523
|
-
children: R === "fund" ? "Payment method" : "Sell"
|
|
524
|
-
}), /* @__PURE__ */ t(ls, {})]
|
|
525
|
-
}),
|
|
526
|
-
/* @__PURE__ */ a("div", {
|
|
527
|
-
className: "flex items-center space-x-2 flex-1",
|
|
528
|
-
children: [/* @__PURE__ */ t("div", {
|
|
529
|
-
className: "flex-1",
|
|
530
|
-
children: /* @__PURE__ */ a("div", {
|
|
531
|
-
className: "flex items-center space-x-2",
|
|
532
|
-
children: [/* @__PURE__ */ t(kt, {
|
|
533
|
-
ref: Be,
|
|
534
|
-
value: n ? q : N,
|
|
535
|
-
disabled: rn,
|
|
536
|
-
onChange: (e) => {
|
|
537
|
-
n ? bn(e.target.value) : wn(e.target.value);
|
|
538
|
-
},
|
|
539
|
-
onFocus: kn,
|
|
540
|
-
isLoading: C && d === i.EXACT_OUTPUT,
|
|
541
|
-
variant: "default"
|
|
542
|
-
}), C && d === i.EXACT_OUTPUT && /* @__PURE__ */ t(Ae, {})]
|
|
543
|
-
})
|
|
544
|
-
}), /* @__PURE__ */ t("div", {
|
|
545
|
-
className: "relative",
|
|
546
|
-
children: n ? /* @__PURE__ */ t(fs, {
|
|
547
|
-
currency: y,
|
|
548
|
-
onSelect: () => xe(!0),
|
|
549
|
-
unselectable: on
|
|
550
|
-
}) : /* @__PURE__ */ t(vt, {
|
|
551
|
-
token: o,
|
|
552
|
-
chainId: ge,
|
|
553
|
-
onSelect: () => ae(!0)
|
|
554
|
-
})
|
|
555
|
-
})]
|
|
556
|
-
}),
|
|
557
|
-
/* @__PURE__ */ a("div", {
|
|
558
|
-
className: "mt-4 flex justify-between items-center",
|
|
559
|
-
children: [n && l && Le && l && !yn ? (() => {
|
|
560
|
-
const e = l.sourceCurrencyCode === "USD" ? l.sourceAmount : l.sourceAmount / Le;
|
|
561
|
-
return /* @__PURE__ */ t("div", {
|
|
562
|
-
className: "text-xs text-gray-500 dark:text-gray-400",
|
|
563
|
-
title: Xn(e || 0),
|
|
564
|
-
children: /* @__PURE__ */ a("span", {
|
|
565
|
-
className: "notranslate",
|
|
566
|
-
translate: "no",
|
|
567
|
-
children: ["≈ ", We(e || 0)]
|
|
568
|
-
})
|
|
569
|
-
});
|
|
570
|
-
})() : /* @__PURE__ */ t("div", {
|
|
571
|
-
className: "text-xs text-gray-500 dark:text-gray-400",
|
|
572
|
-
children: /* @__PURE__ */ a("span", {
|
|
573
|
-
className: "notranslate",
|
|
574
|
-
translate: "no",
|
|
575
|
-
children: [
|
|
576
|
-
"≈",
|
|
577
|
-
" ",
|
|
578
|
-
d === i.EXACT_INPUT ? s?.originAmountUsdLocaleDisplay || mn || un || We(0) : C ? "" : s?.originAmountUsdLocaleDisplay || s?.originAmountUsdDisplay || ""
|
|
579
|
-
]
|
|
580
|
-
})
|
|
581
|
-
}), o && !n && S !== "direct-transfer" && S !== "onramp-mesh" && /* @__PURE__ */ a("div", {
|
|
582
|
-
className: "flex items-center space-x-2",
|
|
583
|
-
children: [/* @__PURE__ */ a("div", {
|
|
584
|
-
className: "flex items-center space-x-1",
|
|
585
|
-
children: [/* @__PURE__ */ t("span", {
|
|
586
|
-
className: "text-xs text-gray-500 dark:text-gray-400 notranslate",
|
|
587
|
-
translate: "no",
|
|
588
|
-
children: "Balance:"
|
|
589
|
-
}), /* @__PURE__ */ t("button", {
|
|
590
|
-
type: "button",
|
|
591
|
-
className: "text-xs text-gray-500 dark:text-gray-400 cursor-pointer hover:text-gray-700 dark:hover:text-gray-200 transition-colors bg-transparent border-none p-0",
|
|
592
|
-
onClick: () => {
|
|
593
|
-
if (L) {
|
|
594
|
-
const e = parseFloat(L);
|
|
595
|
-
Tt(e) && (m(i.EXACT_INPUT), p(e.toFixed(6)), g(""));
|
|
596
|
-
}
|
|
597
|
-
},
|
|
598
|
-
onKeyDown: (e) => {
|
|
599
|
-
if ((e.key === "Enter" || e.key === " ") && (e.preventDefault(), L)) {
|
|
600
|
-
const r = parseFloat(L);
|
|
601
|
-
Tt(r) && (m(i.EXACT_INPUT), p(r.toFixed(6)), g(""));
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
title: "Click to use full balance",
|
|
605
|
-
disabled: !L,
|
|
606
|
-
children: /* @__PURE__ */ t("span", {
|
|
607
|
-
className: "notranslate",
|
|
608
|
-
translate: "no",
|
|
609
|
-
children: Ke ? ee?.balanceLocaleDisplay || o?.balanceLocaleDisplay || ee?.balanceDisplay || o?.balanceDisplay || L || "0.00" : "••••••"
|
|
610
|
-
})
|
|
611
|
-
})]
|
|
612
|
-
}), L && /* @__PURE__ */ t(ss, {
|
|
613
|
-
userBalance: L,
|
|
614
|
-
userBalanceRaw: pn,
|
|
615
|
-
decimals: fn,
|
|
616
|
-
isNativeToken: o.isNativeToken ?? !1,
|
|
617
|
-
gasCostFormatted: s?.gasCostFormatted,
|
|
618
|
-
chainId: ge || void 0,
|
|
619
|
-
onAmountSelect: (e) => {
|
|
620
|
-
m(i.EXACT_INPUT), p(e), g("");
|
|
621
|
-
},
|
|
622
|
-
className: "opacity-100"
|
|
623
|
-
})]
|
|
624
|
-
})]
|
|
625
|
-
})
|
|
626
|
-
]
|
|
627
|
-
}),
|
|
628
|
-
/* @__PURE__ */ t("div", {
|
|
629
|
-
className: "relative",
|
|
630
|
-
children: /* @__PURE__ */ t("button", {
|
|
631
|
-
type: "button",
|
|
632
|
-
onClick: X,
|
|
633
|
-
disabled: Fe,
|
|
634
|
-
className: "absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 p-1.5 trails-border-radius-button trails-bg-tertiary hover:trails-hover-bg transition-colors cursor-pointer border-2 border-white dark:border-gray-800 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:trails-bg-tertiary",
|
|
635
|
-
children: /* @__PURE__ */ t(As, {
|
|
636
|
-
className: "w-5 h-5 text-gray-900 dark:text-white",
|
|
637
|
-
strokeWidth: 2.5
|
|
638
|
-
})
|
|
639
|
-
})
|
|
640
|
-
}),
|
|
641
|
-
/* @__PURE__ */ a("div", {
|
|
642
|
-
className: "pt-4 pb-4 trails-bg-secondary trails-bg-secondary-hover trails-border-radius-container p-3 transition-all duration-200 border border-transparent focus-within:bg-white! dark:focus-within:bg-gray-800! trails-focus-border-secondary min-h-[120px] flex flex-col mb-4",
|
|
643
|
-
children: [
|
|
644
|
-
/* @__PURE__ */ a("div", {
|
|
645
|
-
className: "mb-4 flex justify-between items-center mb-2",
|
|
646
|
-
children: [/* @__PURE__ */ t("div", {
|
|
647
|
-
className: "text-sm font-medium trails-text-secondary text-left m-0",
|
|
648
|
-
children: R === "fund" ? "Recipient" : "Buy"
|
|
649
|
-
}), x ? /* @__PURE__ */ a("div", {
|
|
650
|
-
className: "flex items-center space-x-2 text-black dark:text-white",
|
|
651
|
-
children: [/* @__PURE__ */ t(Kn, { walletAddress: x }), /* @__PURE__ */ t(Jn, {
|
|
652
|
-
address: x,
|
|
653
|
-
startChars: 4,
|
|
654
|
-
endChars: 4,
|
|
655
|
-
className: "text-sm font-medium"
|
|
656
|
-
})]
|
|
657
|
-
}) : /* @__PURE__ */ t(hs, { selectedRecipient: ve })]
|
|
658
|
-
}),
|
|
659
|
-
/* @__PURE__ */ a("div", {
|
|
660
|
-
className: "flex items-center space-x-2 flex-1",
|
|
661
|
-
children: [/* @__PURE__ */ t("div", {
|
|
662
|
-
className: "flex-1",
|
|
663
|
-
children: /* @__PURE__ */ a("div", {
|
|
664
|
-
className: "flex items-center space-x-2",
|
|
665
|
-
children: [/* @__PURE__ */ t(kt, {
|
|
666
|
-
value: d === i.EXACT_OUTPUT ? _ : _ || Y || "",
|
|
667
|
-
onChange: k ? void 0 : (e) => vn(e.target.value),
|
|
668
|
-
onFocus: k ? void 0 : Dn,
|
|
669
|
-
isLoading: C && d === i.EXACT_INPUT,
|
|
670
|
-
readOnly: n || k || d === i.EXACT_INPUT && C || !!qe,
|
|
671
|
-
disabled: k,
|
|
672
|
-
showPlaceholderStyle: !ye,
|
|
673
|
-
variant: "default"
|
|
674
|
-
}), C && d === i.EXACT_INPUT && /* @__PURE__ */ t(Ae, {})]
|
|
675
|
-
})
|
|
676
|
-
}), /* @__PURE__ */ t("div", {
|
|
677
|
-
className: "relative",
|
|
678
|
-
children: /* @__PURE__ */ t(vt, {
|
|
679
|
-
token: f,
|
|
680
|
-
chainId: f?.chainId,
|
|
681
|
-
onSelect: () => le(!0),
|
|
682
|
-
unselectable: !!b
|
|
683
|
-
})
|
|
684
|
-
})]
|
|
685
|
-
}),
|
|
686
|
-
/* @__PURE__ */ a("div", {
|
|
687
|
-
className: "mt-4 flex items-center justify-between",
|
|
688
|
-
children: [/* @__PURE__ */ t("div", {
|
|
689
|
-
className: "text-xs text-gray-500 dark:text-gray-400",
|
|
690
|
-
children: (s?.destinationAmountUsdDisplay || C && d === i.EXACT_INPUT) && /* @__PURE__ */ a("span", {
|
|
691
|
-
className: "notranslate",
|
|
692
|
-
translate: "no",
|
|
693
|
-
children: [
|
|
694
|
-
"≈",
|
|
695
|
-
" ",
|
|
696
|
-
C && d === i.EXACT_INPUT ? We(0) : s?.destinationAmountUsdLocaleDisplay || s?.destinationAmountUsdDisplay
|
|
697
|
-
]
|
|
698
|
-
})
|
|
699
|
-
}), u && /* @__PURE__ */ t("div", {
|
|
700
|
-
className: "text-xs text-gray-500 dark:text-gray-400",
|
|
701
|
-
children: /* @__PURE__ */ a("span", {
|
|
702
|
-
className: "notranslate",
|
|
703
|
-
translate: "no",
|
|
704
|
-
children: [
|
|
705
|
-
"Balance:",
|
|
706
|
-
" ",
|
|
707
|
-
Ke ? Z?.balanceLocaleDisplay || u?.balanceLocaleDisplay || Z?.balanceDisplay || u?.balanceDisplay || An || "-" : "••••••"
|
|
708
|
-
]
|
|
709
|
-
})
|
|
710
|
-
})]
|
|
711
|
-
})
|
|
712
|
-
]
|
|
713
|
-
}),
|
|
714
|
-
/* @__PURE__ */ t(Cs, {
|
|
715
|
-
fundMethod: S,
|
|
716
|
-
isSenderContractOnOrigin: !1,
|
|
717
|
-
isSenderContractOnDestination: !1,
|
|
718
|
-
isSequenceWallet: Wt
|
|
719
|
-
}),
|
|
720
|
-
s && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(Gn, {
|
|
721
|
-
quote: s,
|
|
722
|
-
fiatToUsdExchangeRate: Le,
|
|
723
|
-
onRampQuote: l,
|
|
724
|
-
showContent: !0,
|
|
725
|
-
swapMode: !0,
|
|
726
|
-
isRefetching: C,
|
|
727
|
-
isPassthrough: zn(s.passthroughEligible, ie, mt)
|
|
728
|
-
}) }),
|
|
729
|
-
/* @__PURE__ */ t(ys, { quoteError: ut }),
|
|
730
|
-
/* @__PURE__ */ t(Ss, { quoteError: ut }),
|
|
731
|
-
n && !oe && !C && s && se && se.length > 0 && /* @__PURE__ */ t(gs, {
|
|
732
|
-
providers: se,
|
|
733
|
-
selectedProvider: l,
|
|
734
|
-
trailsQuote: s,
|
|
735
|
-
setSelectedProvider: (e) => {
|
|
736
|
-
Ze(e);
|
|
737
|
-
},
|
|
738
|
-
isRefetching: oe
|
|
739
|
-
}),
|
|
740
|
-
n && re && /* @__PURE__ */ t("div", {
|
|
741
|
-
className: "mt-4",
|
|
742
|
-
children: /* @__PURE__ */ t($n, {
|
|
743
|
-
errorPrettified: Fn(re, "Error loading quote"),
|
|
744
|
-
error: yt(re),
|
|
745
|
-
severity: "error"
|
|
746
|
-
})
|
|
747
|
-
}),
|
|
748
|
-
!n && S !== "direct-transfer" && S !== "onramp-mesh" && /* @__PURE__ */ t(as, {
|
|
749
|
-
processedFeeOptions: mt || [],
|
|
750
|
-
selectedFeeOption: ie,
|
|
751
|
-
setSelectedFeeOption: (e) => Cn(e),
|
|
752
|
-
chainId: o?.chainId,
|
|
753
|
-
isRefetching: C,
|
|
754
|
-
originTokenInfo: {
|
|
755
|
-
originToken: ee ?? o,
|
|
756
|
-
originTokenBalance: ee?.balance ?? o?.balance ?? "0",
|
|
757
|
-
originTokenAmount: N,
|
|
758
|
-
isLoadingBalance: Tn
|
|
759
|
-
}
|
|
760
|
-
}),
|
|
761
|
-
/* @__PURE__ */ t("button", {
|
|
762
|
-
type: "submit",
|
|
763
|
-
disabled: n ? !N || Ie || Pe || !y || !f || !I || !$ || oe || Ee || !l || !!re || !!ft || C || !s : !ye || Ie || !gn || !hn || C || !s || !n && S !== "direct-transfer" && s?.noSufficientBalance || S !== "direct-transfer" && (ie ? is(ie, {
|
|
764
|
-
originToken: ee ?? o,
|
|
765
|
-
originTokenBalance: ee?.balance ?? o?.balance ?? "0",
|
|
766
|
-
originTokenAmount: N
|
|
767
|
-
}) : !1),
|
|
768
|
-
className: "w-full font-semibold py-4 px-4 trails-border-radius-button transition-colors bg-blue-500 hover:bg-blue-600 disabled:bg-gray-300 text-white disabled:text-gray-500 disabled:cursor-not-allowed cursor-pointer relative",
|
|
769
|
-
children: Ie || Pe || Ee ? /* @__PURE__ */ a("div", {
|
|
770
|
-
className: "flex items-center justify-center",
|
|
771
|
-
children: [/* @__PURE__ */ t(bs, { className: "w-5 h-5 animate-spin mr-2 trails-text-muted" }), /* @__PURE__ */ t("span", { children: Pe || Ee ? "Creating session..." : Se })]
|
|
772
|
-
}) : n && !s && !l && (re || ft || cn) ? "Error Loading Quote" : S !== "direct-transfer" && s?.noSufficientBalance ? "Insufficient Balance" : n && (oe || C) && !s && !it && !se ? /* @__PURE__ */ a("div", {
|
|
773
|
-
className: "flex items-center justify-center",
|
|
774
|
-
children: [/* @__PURE__ */ t(Ae, { className: "mr-2" }), /* @__PURE__ */ t("span", { children: "Getting quote..." })]
|
|
775
|
-
}) : n && s ? "Continue" : Se === "Getting quote..." ? /* @__PURE__ */ a("div", {
|
|
776
|
-
className: "flex items-center justify-center",
|
|
777
|
-
children: [/* @__PURE__ */ t(Ae, { className: "mr-2" }), /* @__PURE__ */ t("span", { children: Se })]
|
|
778
|
-
}) : Se
|
|
779
|
-
})
|
|
780
|
-
]
|
|
781
|
-
})]
|
|
782
|
-
});
|
|
783
|
-
};
|
|
784
|
-
export {
|
|
785
|
-
xo as default
|
|
786
|
-
};
|