0xtrails 0.16.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +488 -3
- package/dist/BluvoExchangeSelection.lazy-D6ynQVSb.js +1 -0
- package/dist/BluvoOnrampFlow.lazy-BcDqhGLi.js +143 -0
- package/dist/ConnectWalletCard-BkbHCcWi.js +26 -0
- package/dist/actionBuilder-CAS2u5wu.js +2 -0
- package/dist/actions/index.d.ts +7 -23
- package/dist/actions/index.js +1 -37
- package/dist/contractConstants-CvJrYK9v.js +1 -0
- package/dist/defineProperty-BbfpZ9Tg.js +1 -0
- package/dist/edge-DmNcuJar.d.ts +121 -0
- package/dist/edge-L_Lk1K6j.js +1 -0
- package/dist/hooks/index.d.ts +6 -38
- package/dist/hooks/index.js +1 -67
- package/dist/hydrate/index.d.ts +196 -8
- package/dist/hydrate/index.js +1 -19
- package/dist/hydrate-QyWqQfec.js +1 -0
- package/dist/iife/trails.min.js +7324 -0
- package/dist/index-CMdwQmYL.d.ts +1044 -0
- package/dist/index.d.ts +1023 -114
- package/dist/index.js +1 -317
- package/dist/multicall-BCUHt_9t.d.ts +148 -0
- package/dist/offlineRecovery-BfgccnFf.d.ts +1232 -0
- package/dist/plugins/edge.d.ts +4 -0
- package/dist/plugins/edge.js +1 -0
- package/dist/quoteError-CmTH5Qm2.d.ts +24 -0
- package/dist/src-Cy3oxYgV.js +94 -0
- package/dist/sushiswapV3-D3h41LNZ.d.ts +723 -0
- package/dist/tokenTypes-D812t5L9.d.ts +31 -0
- package/dist/types-BK0WkVnx.d.ts +2161 -0
- package/dist/useViewManager-BeUH_k1s.d.ts +1224 -0
- package/dist/{actions/utils.d.ts → utils-KPnWBA9x.d.ts} +77 -52
- package/dist/widget/connect-showcase.d.ts +8 -0
- package/dist/widget/connect-showcase.js +1 -0
- package/dist/widget/index.d.ts +5 -21
- package/dist/widget/index.js +1 -33
- package/package.json +42 -42
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/defineProperty.js +0 -12
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/toPrimitive.js +0 -14
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/toPropertyKey.js +0 -9
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/typeof.js +0 -11
- package/dist/abi.d.ts +0 -37
- package/dist/abi.d.ts.map +0 -1
- package/dist/abis/erc20.d.ts +0 -19
- package/dist/abis/erc20.d.ts.map +0 -1
- package/dist/abis/requireUtils.d.ts +0 -134
- package/dist/abis/requireUtils.d.ts.map +0 -1
- package/dist/abis/requireUtils.js +0 -168
- package/dist/abis/trailsHydrate.d.ts +0 -7
- package/dist/abis/trailsHydrate.d.ts.map +0 -1
- package/dist/abis/trailsRouter.d.ts +0 -30
- package/dist/abis/trailsRouter.d.ts.map +0 -1
- package/dist/abis/trailsRouter.js +0 -66
- package/dist/abis/trailsSweep.d.ts +0 -7
- package/dist/abis/trailsSweep.d.ts.map +0 -1
- package/dist/abortController.d.ts +0 -8
- package/dist/abortController.d.ts.map +0 -1
- package/dist/abortController.js +0 -23
- package/dist/actions/actionBuilder.d.ts +0 -424
- package/dist/actions/actionBuilder.d.ts.map +0 -1
- package/dist/actions/actionBuilder.js +0 -173
- package/dist/actions/constants.d.ts +0 -1809
- package/dist/actions/constants.d.ts.map +0 -1
- package/dist/actions/constants.js +0 -37
- package/dist/actions/custom-integrations/sushiswapV3/addresses.d.ts +0 -4
- package/dist/actions/custom-integrations/sushiswapV3/addresses.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/addresses.js +0 -33
- package/dist/actions/custom-integrations/sushiswapV3/calldata.d.ts +0 -4
- package/dist/actions/custom-integrations/sushiswapV3/calldata.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/calldata.js +0 -124
- package/dist/actions/custom-integrations/sushiswapV3/calls.d.ts +0 -28
- package/dist/actions/custom-integrations/sushiswapV3/calls.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/calls.js +0 -27
- package/dist/actions/custom-integrations/sushiswapV3/helpers.d.ts +0 -15
- package/dist/actions/custom-integrations/sushiswapV3/helpers.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/helpers.js +0 -27
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.d.ts +0 -9
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.js +0 -246
- package/dist/actions/custom-integrations/sushiswapV3/types.d.ts +0 -95
- package/dist/actions/custom-integrations/sushiswapV3/types.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/addresses.d.ts +0 -4
- package/dist/actions/custom-integrations/uniswapV3/addresses.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/addresses.js +0 -33
- package/dist/actions/custom-integrations/uniswapV3/calldata.d.ts +0 -4
- package/dist/actions/custom-integrations/uniswapV3/calldata.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/calldata.js +0 -190
- package/dist/actions/custom-integrations/uniswapV3/calls.d.ts +0 -50
- package/dist/actions/custom-integrations/uniswapV3/calls.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/calls.js +0 -27
- package/dist/actions/custom-integrations/uniswapV3/helpers.d.ts +0 -23
- package/dist/actions/custom-integrations/uniswapV3/helpers.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/helpers.js +0 -27
- package/dist/actions/custom-integrations/uniswapV3/types.d.ts +0 -90
- package/dist/actions/custom-integrations/uniswapV3/types.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.d.ts +0 -9
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.js +0 -244
- package/dist/actions/destinationCalls.d.ts +0 -17
- package/dist/actions/destinationCalls.d.ts.map +0 -1
- package/dist/actions/destinationCalls.js +0 -43
- package/dist/actions/dynamic.d.ts +0 -97
- package/dist/actions/dynamic.d.ts.map +0 -1
- package/dist/actions/dynamic.js +0 -27
- package/dist/actions/hooks/useEarnBalances.d.ts +0 -53
- package/dist/actions/hooks/useEarnBalances.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnBalances.js +0 -37
- package/dist/actions/hooks/useEarnMarkets.d.ts +0 -29
- package/dist/actions/hooks/useEarnMarkets.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnMarkets.js +0 -30
- package/dist/actions/hooks/useEarnProviders.d.ts +0 -18
- package/dist/actions/hooks/useEarnProviders.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnProviders.js +0 -25
- package/dist/actions/hooks/useResolveActions.d.ts +0 -19
- package/dist/actions/hooks/useResolveActions.d.ts.map +0 -1
- package/dist/actions/hooks/useResolveActions.js +0 -56
- package/dist/actions/index.d.ts.map +0 -1
- package/dist/actions/resolveActions.d.ts +0 -13
- package/dist/actions/resolveActions.d.ts.map +0 -1
- package/dist/actions/resolveActions.js +0 -267
- package/dist/actions/resolvers.d.ts +0 -29
- package/dist/actions/resolvers.d.ts.map +0 -1
- package/dist/actions/resolvers.js +0 -161
- package/dist/actions/types/earn.d.ts +0 -51
- package/dist/actions/types/earn.d.ts.map +0 -1
- package/dist/actions/types.d.ts +0 -319
- package/dist/actions/types.d.ts.map +0 -1
- package/dist/actions/types.js +0 -24
- package/dist/actions/utils.d.ts.map +0 -1
- package/dist/actions/utils.js +0 -203
- package/dist/adapters/evmAdapter.d.ts +0 -10
- package/dist/adapters/evmAdapter.d.ts.map +0 -1
- package/dist/adapters/evmAdapter.js +0 -28
- package/dist/analytics/hooks/useWidgetAnalytics.d.ts +0 -8
- package/dist/analytics/hooks/useWidgetAnalytics.d.ts.map +0 -1
- package/dist/analytics/hooks/useWidgetAnalytics.js +0 -41
- package/dist/analytics.d.ts +0 -715
- package/dist/analytics.d.ts.map +0 -1
- package/dist/analytics.js +0 -881
- package/dist/chainRegistry.d.ts +0 -6
- package/dist/chainRegistry.d.ts.map +0 -1
- package/dist/chainRegistry.js +0 -47
- package/dist/chainResolution.d.ts +0 -6
- package/dist/chainResolution.d.ts.map +0 -1
- package/dist/chainResolution.js +0 -53
- package/dist/chainRpcClient.d.ts +0 -8
- package/dist/chainRpcClient.d.ts.map +0 -1
- package/dist/chainRpcClient.js +0 -67
- package/dist/chainSwitch.d.ts +0 -7
- package/dist/chainSwitch.d.ts.map +0 -1
- package/dist/chainSwitch.js +0 -66
- package/dist/chains.d.ts +0 -59
- package/dist/chains.d.ts.map +0 -1
- package/dist/chains.js +0 -152
- package/dist/committedIntentStore.d.ts +0 -5
- package/dist/committedIntentStore.d.ts.map +0 -1
- package/dist/committedIntentStore.js +0 -52
- package/dist/config.d.ts +0 -2
- package/dist/config.d.ts.map +0 -1
- package/dist/configDefaults.d.ts +0 -7
- package/dist/configDefaults.d.ts.map +0 -1
- package/dist/configDefaults.js +0 -9
- package/dist/configStore.d.ts +0 -31
- package/dist/configStore.d.ts.map +0 -1
- package/dist/configStore.js +0 -53
- package/dist/constants.d.ts +0 -176
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -184
- package/dist/contractConstants.d.ts +0 -8
- package/dist/contractConstants.d.ts.map +0 -1
- package/dist/contractConstants.js +0 -9
- package/dist/contractUtils.d.ts +0 -6
- package/dist/contractUtils.d.ts.map +0 -1
- package/dist/contractUtils.js +0 -19
- package/dist/cssUtils.d.ts +0 -2
- package/dist/cssUtils.d.ts.map +0 -1
- package/dist/cssUtils.js +0 -7
- package/dist/customChains.d.ts +0 -24
- package/dist/customChains.d.ts.map +0 -1
- package/dist/customChains.js +0 -20
- package/dist/customTokens.d.ts +0 -12
- package/dist/customTokens.d.ts.map +0 -1
- package/dist/customTokens.js +0 -64
- package/dist/decoders.d.ts +0 -69
- package/dist/decoders.d.ts.map +0 -1
- package/dist/decoders.js +0 -181
- package/dist/ens.d.ts +0 -20
- package/dist/ens.d.ts.map +0 -1
- package/dist/ens.js +0 -92
- package/dist/error.d.ts +0 -97
- package/dist/error.d.ts.map +0 -1
- package/dist/error.js +0 -298
- package/dist/estimate.d.ts +0 -78
- package/dist/estimate.d.ts.map +0 -1
- package/dist/estimate.js +0 -147
- package/dist/explorer.d.ts +0 -12
- package/dist/explorer.d.ts.map +0 -1
- package/dist/explorer.js +0 -15
- package/dist/fees.d.ts +0 -65
- package/dist/fees.d.ts.map +0 -1
- package/dist/fees.js +0 -165
- package/dist/gasless.d.ts +0 -123
- package/dist/gasless.d.ts.map +0 -1
- package/dist/gasless.js +0 -314
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/persistedToken.d.ts +0 -22
- package/dist/hooks/persistedToken.d.ts.map +0 -1
- package/dist/hooks/persistedToken.js +0 -65
- package/dist/hooks/prepareTrailsSendTransactionDestination.d.ts +0 -26
- package/dist/hooks/prepareTrailsSendTransactionDestination.d.ts.map +0 -1
- package/dist/hooks/prepareTrailsSendTransactionDestination.js +0 -33
- package/dist/hooks/useAmountUsd.d.ts +0 -12
- package/dist/hooks/useAmountUsd.d.ts.map +0 -1
- package/dist/hooks/useAmountUsd.js +0 -21
- package/dist/hooks/useBalanceVisible.d.ts +0 -15
- package/dist/hooks/useBalanceVisible.d.ts.map +0 -1
- package/dist/hooks/useBalanceVisible.js +0 -46
- package/dist/hooks/useBluvoTokenList.d.ts +0 -13
- package/dist/hooks/useBluvoTokenList.d.ts.map +0 -1
- package/dist/hooks/useBluvoTokenList.js +0 -57
- package/dist/hooks/useChainFilter.d.ts +0 -14
- package/dist/hooks/useChainFilter.d.ts.map +0 -1
- package/dist/hooks/useChainFilter.js +0 -24
- package/dist/hooks/useCheckout.d.ts +0 -80
- package/dist/hooks/useCheckout.d.ts.map +0 -1
- package/dist/hooks/useCheckout.js +0 -118
- package/dist/hooks/useClickTracking.d.ts +0 -12
- package/dist/hooks/useClickTracking.d.ts.map +0 -1
- package/dist/hooks/useClickTracking.js +0 -37
- package/dist/hooks/useCombinedHistory.d.ts +0 -50
- package/dist/hooks/useCombinedHistory.d.ts.map +0 -1
- package/dist/hooks/useCombinedHistory.js +0 -168
- package/dist/hooks/useCustomTokenSearch.d.ts +0 -28
- package/dist/hooks/useCustomTokenSearch.d.ts.map +0 -1
- package/dist/hooks/useCustomTokenSearch.js +0 -165
- package/dist/hooks/useDebounce.d.ts +0 -10
- package/dist/hooks/useDebounce.d.ts.map +0 -1
- package/dist/hooks/useDebounce.js +0 -15
- package/dist/hooks/useDebugScreens.d.ts +0 -17
- package/dist/hooks/useDebugScreens.d.ts.map +0 -1
- package/dist/hooks/useDebugScreens.js +0 -412
- package/dist/hooks/useDefaultDestinationToken.d.ts +0 -20
- package/dist/hooks/useDefaultDestinationToken.d.ts.map +0 -1
- package/dist/hooks/useDefaultDestinationToken.js +0 -60
- package/dist/hooks/useDefaultOriginToken.d.ts +0 -26
- package/dist/hooks/useDefaultOriginToken.d.ts.map +0 -1
- package/dist/hooks/useDefaultOriginToken.js +0 -120
- package/dist/hooks/useDepositMonitor.d.ts +0 -20
- package/dist/hooks/useDepositMonitor.d.ts.map +0 -1
- package/dist/hooks/useDepositMonitor.js +0 -54
- package/dist/hooks/useDestinationSelectedToken.d.ts +0 -38
- package/dist/hooks/useDestinationSelectedToken.d.ts.map +0 -1
- package/dist/hooks/useDestinationSelectedToken.js +0 -178
- package/dist/hooks/useDisplayCurrencyPreference.d.ts +0 -15
- package/dist/hooks/useDisplayCurrencyPreference.d.ts.map +0 -1
- package/dist/hooks/useDisplayCurrencyPreference.js +0 -57
- package/dist/hooks/useEarnPool.d.ts +0 -12
- package/dist/hooks/useEarnPool.d.ts.map +0 -1
- package/dist/hooks/useEarnPool.js +0 -21
- package/dist/hooks/useEffectiveFundBalance.d.ts +0 -28
- package/dist/hooks/useEffectiveFundBalance.d.ts.map +0 -1
- package/dist/hooks/useEffectiveFundBalance.js +0 -24
- package/dist/hooks/useExchangeFundingSelection.d.ts +0 -17
- package/dist/hooks/useExchangeFundingSelection.d.ts.map +0 -1
- package/dist/hooks/useExchangeFundingSelection.js +0 -25
- package/dist/hooks/useExecutingIntentsCount.d.ts +0 -15
- package/dist/hooks/useExecutingIntentsCount.d.ts.map +0 -1
- package/dist/hooks/useExternalFundingReceiptSync.d.ts +0 -11
- package/dist/hooks/useExternalFundingReceiptSync.d.ts.map +0 -1
- package/dist/hooks/useExternalFundingReceiptSync.js +0 -32
- package/dist/hooks/useFiatOnRampCurrencies.d.ts +0 -15
- package/dist/hooks/useFiatOnRampCurrencies.d.ts.map +0 -1
- package/dist/hooks/useFiatOnRampCurrencies.js +0 -14
- package/dist/hooks/useFiatSelectedCurrency.d.ts +0 -19
- package/dist/hooks/useFiatSelectedCurrency.d.ts.map +0 -1
- package/dist/hooks/useFiatSelectedCurrency.js +0 -55
- package/dist/hooks/useGetIntent.d.ts +0 -19
- package/dist/hooks/useGetIntent.d.ts.map +0 -1
- package/dist/hooks/useGetIntent.js +0 -26
- package/dist/hooks/useIntentReceiptBalances.d.ts +0 -16
- package/dist/hooks/useIntentReceiptBalances.d.ts.map +0 -1
- package/dist/hooks/useIntentReceiptBalances.js +0 -77
- package/dist/hooks/useIntentTransactionHistory.d.ts +0 -25
- package/dist/hooks/useIntentTransactionHistory.d.ts.map +0 -1
- package/dist/hooks/useIntentTransactionHistory.js +0 -357
- package/dist/hooks/useIsMobile.d.ts +0 -5
- package/dist/hooks/useIsMobile.d.ts.map +0 -1
- package/dist/hooks/useIsMobile.js +0 -21
- package/dist/hooks/useLocalePreference.d.ts +0 -21
- package/dist/hooks/useLocalePreference.d.ts.map +0 -1
- package/dist/hooks/useLocalePreference.js +0 -193
- package/dist/hooks/useMeldTransactionHistory.d.ts +0 -49
- package/dist/hooks/useMeldTransactionHistory.d.ts.map +0 -1
- package/dist/hooks/useMeldTransactionHistory.js +0 -71
- package/dist/hooks/useMeldTransactionStatus.d.ts +0 -61
- package/dist/hooks/useMeldTransactionStatus.d.ts.map +0 -1
- package/dist/hooks/useMeldTransactionStatus.js +0 -284
- package/dist/hooks/useOnRampCountryDefaults.d.ts +0 -18
- package/dist/hooks/useOnRampCountryDefaults.d.ts.map +0 -1
- package/dist/hooks/useOnRampCountryDefaults.js +0 -20
- package/dist/hooks/useOnRampPaymentMethods.d.ts +0 -15
- package/dist/hooks/useOnRampPaymentMethods.d.ts.map +0 -1
- package/dist/hooks/useOnRampPaymentMethods.js +0 -27
- package/dist/hooks/useOnRampProviderWidget.d.ts +0 -40
- package/dist/hooks/useOnRampProviderWidget.d.ts.map +0 -1
- package/dist/hooks/useOnRampProviderWidget.js +0 -70
- package/dist/hooks/useOnRampQuote.d.ts +0 -38
- package/dist/hooks/useOnRampQuote.d.ts.map +0 -1
- package/dist/hooks/useOnRampQuote.js +0 -159
- package/dist/hooks/useOnRampTransactionStatus.d.ts +0 -73
- package/dist/hooks/useOnRampTransactionStatus.d.ts.map +0 -1
- package/dist/hooks/useOriginSelectedToken.d.ts +0 -22
- package/dist/hooks/useOriginSelectedToken.d.ts.map +0 -1
- package/dist/hooks/useOriginSelectedToken.js +0 -127
- package/dist/hooks/usePayMessage.d.ts +0 -35
- package/dist/hooks/usePayMessage.d.ts.map +0 -1
- package/dist/hooks/usePayMessage.js +0 -333
- package/dist/hooks/usePriceImpactWarning.d.ts +0 -8
- package/dist/hooks/usePriceImpactWarning.d.ts.map +0 -1
- package/dist/hooks/usePriceImpactWarning.js +0 -9
- package/dist/hooks/useQuote.d.ts +0 -611
- package/dist/hooks/useQuote.d.ts.map +0 -1
- package/dist/hooks/useQuote.js +0 -590
- package/dist/hooks/useRecentChains.d.ts +0 -7
- package/dist/hooks/useRecentChains.d.ts.map +0 -1
- package/dist/hooks/useRecentChains.js +0 -52
- package/dist/hooks/useRecentTokens.d.ts +0 -7
- package/dist/hooks/useRecentTokens.d.ts.map +0 -1
- package/dist/hooks/useRecentTokens.js +0 -82
- package/dist/hooks/useRecipients.d.ts +0 -17
- package/dist/hooks/useRecipients.d.ts.map +0 -1
- package/dist/hooks/useRecipients.js +0 -75
- package/dist/hooks/useSelectedFeeOption.d.ts +0 -31
- package/dist/hooks/useSelectedFeeOption.d.ts.map +0 -1
- package/dist/hooks/useSelectedFeeOption.js +0 -113
- package/dist/hooks/useSelectedFundMethod.d.ts +0 -73
- package/dist/hooks/useSelectedFundMethod.d.ts.map +0 -1
- package/dist/hooks/useSelectedFundMethod.js +0 -51
- package/dist/hooks/useSelectedRecipient.d.ts +0 -12
- package/dist/hooks/useSelectedRecipient.d.ts.map +0 -1
- package/dist/hooks/useSelectedRecipient.js +0 -39
- package/dist/hooks/useSendForm.d.ts +0 -141
- package/dist/hooks/useSendForm.d.ts.map +0 -1
- package/dist/hooks/useSendForm.js +0 -595
- package/dist/hooks/useSwapAmount.d.ts +0 -13
- package/dist/hooks/useSwapAmount.d.ts.map +0 -1
- package/dist/hooks/useSwapAmount.js +0 -24
- package/dist/hooks/useSwapState.d.ts +0 -21
- package/dist/hooks/useSwapState.d.ts.map +0 -1
- package/dist/hooks/useSwapState.js +0 -44
- package/dist/hooks/useTargetAmount.d.ts +0 -6
- package/dist/hooks/useTargetAmount.d.ts.map +0 -1
- package/dist/hooks/useTargetAmount.js +0 -17
- package/dist/hooks/useTheme.d.ts +0 -14
- package/dist/hooks/useTheme.d.ts.map +0 -1
- package/dist/hooks/useTheme.js +0 -47
- package/dist/hooks/useTokenList.d.ts +0 -43
- package/dist/hooks/useTokenList.d.ts.map +0 -1
- package/dist/hooks/useTokenList.js +0 -456
- package/dist/hooks/useTrailsSendTransaction.d.ts +0 -139
- package/dist/hooks/useTrailsSendTransaction.d.ts.map +0 -1
- package/dist/hooks/useTrailsSendTransaction.js +0 -418
- package/dist/hooks/useViewManager.d.ts +0 -89
- package/dist/hooks/useViewManager.d.ts.map +0 -1
- package/dist/hooks/useViewManager.js +0 -274
- package/dist/hooks/useWalletConnectionContext.d.ts +0 -26
- package/dist/hooks/useWalletConnectionContext.d.ts.map +0 -1
- package/dist/hooks/useWalletConnectionContext.js +0 -53
- package/dist/hooks/useWidgetProps.d.ts +0 -13
- package/dist/hooks/useWidgetProps.d.ts.map +0 -1
- package/dist/hooks/useWidgetProps.js +0 -18
- package/dist/hydrate/builder.d.ts +0 -131
- package/dist/hydrate/builder.d.ts.map +0 -1
- package/dist/hydrate/builder.js +0 -210
- package/dist/hydrate/constants.d.ts +0 -13
- package/dist/hydrate/constants.d.ts.map +0 -1
- package/dist/hydrate/constants.js +0 -5
- package/dist/hydrate/encodeExecute.d.ts +0 -73
- package/dist/hydrate/encodeExecute.d.ts.map +0 -1
- package/dist/hydrate/encodeExecute.js +0 -60
- package/dist/hydrate/index.d.ts.map +0 -1
- package/dist/hydrate/multicall.d.ts +0 -69
- package/dist/hydrate/multicall.d.ts.map +0 -1
- package/dist/hydrate/multicall.js +0 -167
- package/dist/hydrate/payload.d.ts +0 -38
- package/dist/hydrate/payload.d.ts.map +0 -1
- package/dist/hydrate/payload.js +0 -26
- package/dist/hydrate/selectors.d.ts +0 -28
- package/dist/hydrate/selectors.d.ts.map +0 -1
- package/dist/hydrate/selectors.js +0 -326
- package/dist/hydrate/source.d.ts +0 -11
- package/dist/hydrate/source.d.ts.map +0 -1
- package/dist/hydrate/source.js +0 -19
- package/dist/hydrate/types.d.ts +0 -21
- package/dist/hydrate/types.d.ts.map +0 -1
- package/dist/hydrate/utils.d.ts +0 -8
- package/dist/hydrate/utils.d.ts.map +0 -1
- package/dist/hydrate/utils.js +0 -23
- package/dist/index.d.ts.map +0 -1
- package/dist/indexerClient.d.ts +0 -23
- package/dist/indexerClient.d.ts.map +0 -1
- package/dist/indexerClient.js +0 -40
- package/dist/intentConfigStore.d.ts +0 -8
- package/dist/intentConfigStore.d.ts.map +0 -1
- package/dist/intentConfigStore.js +0 -40
- package/dist/intentProtocolApi.d.ts +0 -11
- package/dist/intentProtocolApi.d.ts.map +0 -1
- package/dist/intentProtocolApi.js +0 -11
- package/dist/intentProtocolEncoding.d.ts +0 -30
- package/dist/intentProtocolEncoding.d.ts.map +0 -1
- package/dist/intentProtocolEncoding.js +0 -114
- package/dist/intentProtocolResolver.d.ts +0 -28
- package/dist/intentProtocolResolver.d.ts.map +0 -1
- package/dist/intentProtocolResolver.js +0 -34
- package/dist/intentReceiptMonitor.d.ts +0 -24
- package/dist/intentReceiptMonitor.d.ts.map +0 -1
- package/dist/intentReceiptMonitor.js +0 -30
- package/dist/intentReceiptPoller.d.ts +0 -69
- package/dist/intentReceiptPoller.d.ts.map +0 -1
- package/dist/intentReceiptPoller.js +0 -162
- package/dist/intentValidation.d.ts +0 -5
- package/dist/intentValidation.d.ts.map +0 -1
- package/dist/intentValidation.js +0 -19
- package/dist/intents.d.ts +0 -148
- package/dist/intents.d.ts.map +0 -1
- package/dist/intents.js +0 -391
- package/dist/keyMachineClient.d.ts +0 -9
- package/dist/keyMachineClient.d.ts.map +0 -1
- package/dist/keyMachineClient.js +0 -13
- package/dist/keymachine/index.d.ts +0 -34
- package/dist/keymachine/index.d.ts.map +0 -1
- package/dist/keymachine/index.js +0 -92
- package/dist/keymachine/key-machine.gen.d.ts +0 -461
- package/dist/keymachine/key-machine.gen.d.ts.map +0 -1
- package/dist/keymachine/key-machine.gen.js +0 -164
- package/dist/localeUtils.d.ts +0 -46
- package/dist/localeUtils.d.ts.map +0 -1
- package/dist/localeUtils.js +0 -60
- package/dist/logger/index.d.ts +0 -16
- package/dist/logger/index.d.ts.map +0 -1
- package/dist/logger/index.js +0 -57
- package/dist/logger/useSyncLoggerDebug.d.ts +0 -2
- package/dist/logger/useSyncLoggerDebug.d.ts.map +0 -1
- package/dist/logger/useSyncLoggerDebug.js +0 -9
- package/dist/logger.d.ts +0 -2
- package/dist/logger.d.ts.map +0 -1
- package/dist/meld/components/MeldCountriesList.d.ts +0 -9
- package/dist/meld/components/MeldCountriesList.d.ts.map +0 -1
- package/dist/meld/components/MeldCountriesList.js +0 -167
- package/dist/meld/components/MeldFundMethods.d.ts +0 -14
- package/dist/meld/components/MeldFundMethods.d.ts.map +0 -1
- package/dist/meld/components/MeldFundMethods.js +0 -163
- package/dist/meld/components/MeldProvidersList.d.ts +0 -11
- package/dist/meld/components/MeldProvidersList.d.ts.map +0 -1
- package/dist/meld/components/MeldProvidersList.js +0 -145
- package/dist/meld/components/MeldTokensList.d.ts +0 -12
- package/dist/meld/components/MeldTokensList.d.ts.map +0 -1
- package/dist/meld/components/MeldTokensList.js +0 -215
- package/dist/meld/components/SimpleHeader.d.ts +0 -8
- package/dist/meld/components/SimpleHeader.d.ts.map +0 -1
- package/dist/meld/components/SimpleHeader.js +0 -18
- package/dist/meld/utils/meld.d.ts +0 -41
- package/dist/meld/utils/meld.d.ts.map +0 -1
- package/dist/meld/utils/meld.js +0 -24
- package/dist/mutations.d.ts +0 -19
- package/dist/mutations.d.ts.map +0 -1
- package/dist/mutations.js +0 -91
- package/dist/offlineRecovery.d.ts +0 -24
- package/dist/offlineRecovery.d.ts.map +0 -1
- package/dist/offlineRecovery.js +0 -219
- package/dist/onramp/MeshConnectFlow.d.ts +0 -27
- package/dist/onramp/MeshConnectFlow.d.ts.map +0 -1
- package/dist/onramp/MeshConnectFlow.js +0 -41
- package/dist/onramp/MeshConnectIframe.d.ts +0 -22
- package/dist/onramp/MeshConnectIframe.d.ts.map +0 -1
- package/dist/onramp/MeshConnectIframe.js +0 -434
- package/dist/onramp/SendFromExchangeButton.d.ts +0 -16
- package/dist/onramp/SendFromExchangeButton.d.ts.map +0 -1
- package/dist/onramp/SendFromExchangeButton.js +0 -36
- package/dist/onramp/TrailsOnRampProvider.d.ts +0 -38
- package/dist/onramp/TrailsOnRampProvider.d.ts.map +0 -1
- package/dist/onramp/TrailsOnRampProvider.js +0 -25
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.d.ts +0 -12
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.d.ts.map +0 -1
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.js +0 -18
- package/dist/onramp/index.d.ts +0 -13
- package/dist/onramp/index.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.d.ts +0 -10
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.js +0 -62
- package/dist/onramp/mesh/components/MeshExchangeIcon.d.ts +0 -13
- package/dist/onramp/mesh/components/MeshExchangeIcon.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeIcon.js +0 -54
- package/dist/onramp/mesh/components/MeshExchangeSelection.d.ts +0 -12
- package/dist/onramp/mesh/components/MeshExchangeSelection.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeSelection.js +0 -135
- package/dist/onramp/mesh/components/MeshSessionOptions.d.ts +0 -15
- package/dist/onramp/mesh/components/MeshSessionOptions.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshSessionOptions.js +0 -68
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.d.ts +0 -9
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.js +0 -38
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.d.ts +0 -11
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.js +0 -21
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.d.ts +0 -71
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.js +0 -168
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.d.ts +0 -32
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.js +0 -28
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.d.ts +0 -19
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.js +0 -57
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.d.ts +0 -15
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.js +0 -45
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.d.ts +0 -7
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.js +0 -20
- package/dist/onramp/meshSessionStorage.d.ts +0 -13
- package/dist/onramp/meshSessionStorage.d.ts.map +0 -1
- package/dist/onramp/meshSessionStorage.js +0 -165
- package/dist/onramp/meshconnect.d.ts +0 -32
- package/dist/onramp/meshconnect.d.ts.map +0 -1
- package/dist/onramp/meshconnect.js +0 -124
- package/dist/onramp/trailsOnramp.d.ts +0 -32
- package/dist/onramp/trailsOnramp.d.ts.map +0 -1
- package/dist/onramp/trailsOnramp.js +0 -64
- package/dist/onramp-client/index.d.ts +0 -13
- package/dist/onramp-client/index.d.ts.map +0 -1
- package/dist/onramp-client/index.js +0 -19
- package/dist/onrampClient.d.ts +0 -10
- package/dist/onrampClient.d.ts.map +0 -1
- package/dist/onrampClient.js +0 -31
- package/dist/package.js +0 -123
- package/dist/placeholder.d.ts +0 -142
- package/dist/placeholder.d.ts.map +0 -1
- package/dist/placeholder.js +0 -95
- package/dist/poolUtils.d.ts +0 -16
- package/dist/poolUtils.d.ts.map +0 -1
- package/dist/poolUtils.js +0 -87
- package/dist/pools.d.ts +0 -33
- package/dist/pools.d.ts.map +0 -1
- package/dist/pools.js +0 -77
- package/dist/prepareSend.d.ts +0 -12
- package/dist/prepareSend.d.ts.map +0 -1
- package/dist/prepareSend.js +0 -207
- package/dist/query/QueryProvider.d.ts +0 -9
- package/dist/query/QueryProvider.d.ts.map +0 -1
- package/dist/query/QueryProvider.js +0 -13
- package/dist/query/balance.fetchers.d.ts +0 -116
- package/dist/query/balance.fetchers.d.ts.map +0 -1
- package/dist/query/balance.fetchers.js +0 -289
- package/dist/query/balance.hooks.d.ts +0 -80
- package/dist/query/balance.hooks.d.ts.map +0 -1
- package/dist/query/balance.hooks.js +0 -123
- package/dist/query/balance.queries.d.ts +0 -93
- package/dist/query/balance.queries.d.ts.map +0 -1
- package/dist/query/balance.queries.js +0 -142
- package/dist/query/chains.hooks.d.ts +0 -5
- package/dist/query/chains.hooks.d.ts.map +0 -1
- package/dist/query/chains.hooks.js +0 -40
- package/dist/query/chains.queries.d.ts +0 -16
- package/dist/query/chains.queries.d.ts.map +0 -1
- package/dist/query/chains.queries.js +0 -17
- package/dist/query/client.d.ts +0 -16
- package/dist/query/client.d.ts.map +0 -1
- package/dist/query/client.js +0 -15
- package/dist/query/fiat.fetchers.d.ts +0 -11
- package/dist/query/fiat.fetchers.d.ts.map +0 -1
- package/dist/query/fiat.fetchers.js +0 -10
- package/dist/query/fiat.hooks.d.ts +0 -18
- package/dist/query/fiat.hooks.d.ts.map +0 -1
- package/dist/query/fiat.hooks.js +0 -20
- package/dist/query/fiat.queries.d.ts +0 -24
- package/dist/query/fiat.queries.d.ts.map +0 -1
- package/dist/query/fiat.queries.js +0 -39
- package/dist/query/geo.fetchers.d.ts +0 -5
- package/dist/query/geo.fetchers.d.ts.map +0 -1
- package/dist/query/geo.fetchers.js +0 -61
- package/dist/query/geo.hooks.d.ts +0 -5
- package/dist/query/geo.hooks.d.ts.map +0 -1
- package/dist/query/geo.hooks.js +0 -17
- package/dist/query/geo.queries.d.ts +0 -22
- package/dist/query/geo.queries.d.ts.map +0 -1
- package/dist/query/geo.queries.js +0 -33
- package/dist/query/helpers.d.ts +0 -18
- package/dist/query/helpers.d.ts.map +0 -1
- package/dist/query/helpers.js +0 -31
- package/dist/query/intentProtocol.queries.d.ts +0 -32
- package/dist/query/intentProtocol.queries.d.ts.map +0 -1
- package/dist/query/intentProtocol.queries.js +0 -41
- package/dist/query/meld.fetchers.d.ts +0 -19
- package/dist/query/meld.fetchers.d.ts.map +0 -1
- package/dist/query/meld.fetchers.js +0 -41
- package/dist/query/meld.hooks.d.ts +0 -4
- package/dist/query/meld.hooks.d.ts.map +0 -1
- package/dist/query/meld.hooks.js +0 -15
- package/dist/query/meld.queries.d.ts +0 -61
- package/dist/query/meld.queries.d.ts.map +0 -1
- package/dist/query/meld.queries.js +0 -97
- package/dist/query/persister.d.ts +0 -9
- package/dist/query/persister.d.ts.map +0 -1
- package/dist/query/persister.js +0 -13
- package/dist/query/price.fetchers.d.ts +0 -15
- package/dist/query/price.fetchers.d.ts.map +0 -1
- package/dist/query/price.fetchers.js +0 -26
- package/dist/query/price.hooks.d.ts +0 -352
- package/dist/query/price.hooks.d.ts.map +0 -1
- package/dist/query/price.hooks.js +0 -35
- package/dist/query/price.queries.d.ts +0 -34
- package/dist/query/price.queries.d.ts.map +0 -1
- package/dist/query/price.queries.js +0 -139
- package/dist/query/serialization.d.ts +0 -3
- package/dist/query/serialization.d.ts.map +0 -1
- package/dist/query/serialization.js +0 -17
- package/dist/query/token.fetchers.d.ts +0 -13
- package/dist/query/token.fetchers.d.ts.map +0 -1
- package/dist/query/token.fetchers.js +0 -6
- package/dist/query/token.hooks.d.ts +0 -41
- package/dist/query/token.hooks.d.ts.map +0 -1
- package/dist/query/token.hooks.js +0 -68
- package/dist/query/token.queries.d.ts +0 -67
- package/dist/query/token.queries.d.ts.map +0 -1
- package/dist/query/token.queries.js +0 -144
- package/dist/queryParams.d.ts +0 -9
- package/dist/queryParams.d.ts.map +0 -1
- package/dist/queryParamsCore.d.ts +0 -2
- package/dist/queryParamsCore.d.ts.map +0 -1
- package/dist/queryParamsCore.js +0 -10
- package/dist/quoteError.d.ts +0 -22
- package/dist/quoteError.d.ts.map +0 -1
- package/dist/quoteError.js +0 -9
- package/dist/recover.d.ts +0 -304
- package/dist/recover.d.ts.map +0 -1
- package/dist/recover.js +0 -703
- package/dist/smartContractWallet.d.ts +0 -8
- package/dist/smartContractWallet.d.ts.map +0 -1
- package/dist/smartContractWallet.js +0 -11
- package/dist/theme.d.ts +0 -3
- package/dist/theme.d.ts.map +0 -1
- package/dist/toast.d.ts +0 -9
- package/dist/toast.d.ts.map +0 -1
- package/dist/toast.js +0 -31
- package/dist/tokenRegistry.d.ts +0 -50
- package/dist/tokenRegistry.d.ts.map +0 -1
- package/dist/tokenRegistry.js +0 -589
- package/dist/tokenTypes.d.ts +0 -29
- package/dist/tokenTypes.d.ts.map +0 -1
- package/dist/tokens.d.ts +0 -62
- package/dist/tokens.d.ts.map +0 -1
- package/dist/tokens.js +0 -370
- package/dist/trailsClient.d.ts +0 -11
- package/dist/trailsClient.d.ts.map +0 -1
- package/dist/trailsClient.js +0 -29
- package/dist/transactionIntent/constants.d.ts +0 -8
- package/dist/transactionIntent/constants.d.ts.map +0 -1
- package/dist/transactionIntent/constants.js +0 -11
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts +0 -55
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/depositOrchestrator.js +0 -88
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts +0 -31
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/gaslessDeposit.js +0 -218
- package/dist/transactionIntent/deposits/index.d.ts +0 -4
- package/dist/transactionIntent/deposits/index.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/standardDeposit.d.ts +0 -50
- package/dist/transactionIntent/deposits/standardDeposit.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/standardDeposit.js +0 -131
- package/dist/transactionIntent/execution/index.d.ts +0 -2
- package/dist/transactionIntent/execution/index.d.ts.map +0 -1
- package/dist/transactionIntent/execution/transactionState.d.ts +0 -5
- package/dist/transactionIntent/execution/transactionState.d.ts.map +0 -1
- package/dist/transactionIntent/execution/transactionState.js +0 -21
- package/dist/transactionIntent/handlers/index.d.ts +0 -2
- package/dist/transactionIntent/handlers/index.d.ts.map +0 -1
- package/dist/transactionIntent/handlers/intentHandler.d.ts +0 -71
- package/dist/transactionIntent/handlers/intentHandler.d.ts.map +0 -1
- package/dist/transactionIntent/handlers/intentHandler.js +0 -533
- package/dist/transactionIntent/helpers/index.d.ts +0 -2
- package/dist/transactionIntent/helpers/index.d.ts.map +0 -1
- package/dist/transactionIntent/helpers/transactionStateHelpers.d.ts +0 -68
- package/dist/transactionIntent/helpers/transactionStateHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/helpers/transactionStateHelpers.js +0 -124
- package/dist/transactionIntent/index.d.ts +0 -10
- package/dist/transactionIntent/index.d.ts.map +0 -1
- package/dist/transactionIntent/quote/feeExtractors.d.ts +0 -13
- package/dist/transactionIntent/quote/feeExtractors.d.ts.map +0 -1
- package/dist/transactionIntent/quote/feeExtractors.js +0 -52
- package/dist/transactionIntent/quote/index.d.ts +0 -4
- package/dist/transactionIntent/quote/index.d.ts.map +0 -1
- package/dist/transactionIntent/quote/normalizeQuote.d.ts +0 -44
- package/dist/transactionIntent/quote/normalizeQuote.d.ts.map +0 -1
- package/dist/transactionIntent/quote/normalizeQuote.js +0 -214
- package/dist/transactionIntent/quote/quoteHelpers.d.ts +0 -6
- package/dist/transactionIntent/quote/quoteHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/quote/quoteHelpers.js +0 -47
- package/dist/transactionIntent/types.d.ts +0 -181
- package/dist/transactionIntent/types.d.ts.map +0 -1
- package/dist/transactionIntent/types.js +0 -38
- package/dist/transactionIntent/utils/balanceChecker.d.ts +0 -20
- package/dist/transactionIntent/utils/balanceChecker.d.ts.map +0 -1
- package/dist/transactionIntent/utils/balanceChecker.js +0 -55
- package/dist/transactionIntent/utils/index.d.ts +0 -3
- package/dist/transactionIntent/utils/index.d.ts.map +0 -1
- package/dist/transactionIntent/utils/resilientDepositTracker.d.ts +0 -25
- package/dist/transactionIntent/utils/resilientDepositTracker.d.ts.map +0 -1
- package/dist/transactionIntent/utils/resilientDepositTracker.js +0 -62
- package/dist/transactionIntent/utils/testnetHelpers.d.ts +0 -2
- package/dist/transactionIntent/utils/testnetHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/validators.d.ts +0 -4
- package/dist/transactionIntent/validators.d.ts.map +0 -1
- package/dist/transactionIntent/validators.js +0 -11
- package/dist/transactions.d.ts +0 -176
- package/dist/transactions.d.ts.map +0 -1
- package/dist/transactions.js +0 -115
- package/dist/umd/trails.min.js +0 -1251
- package/dist/utils/address.d.ts +0 -28
- package/dist/utils/address.d.ts.map +0 -1
- package/dist/utils/address.js +0 -30
- package/dist/utils/fiat.d.ts +0 -8
- package/dist/utils/fiat.d.ts.map +0 -1
- package/dist/utils/fiat.js +0 -30
- package/dist/utils/format.d.ts +0 -74
- package/dist/utils/format.d.ts.map +0 -1
- package/dist/utils/format.js +0 -274
- package/dist/utils/localStorageGc.d.ts +0 -22
- package/dist/utils/localStorageGc.d.ts.map +0 -1
- package/dist/utils/localStorageGc.js +0 -53
- package/dist/utils/passthrough.d.ts +0 -46
- package/dist/utils/passthrough.d.ts.map +0 -1
- package/dist/utils/passthrough.js +0 -20
- package/dist/utils/time.d.ts +0 -27
- package/dist/utils/time.d.ts.map +0 -1
- package/dist/utils/time.js +0 -68
- package/dist/utils/tokenResolution.d.ts +0 -19
- package/dist/utils/tokenResolution.d.ts.map +0 -1
- package/dist/utils/tokenResolution.js +0 -53
- package/dist/utils/validation.d.ts +0 -53
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -80
- package/dist/utils.d.ts +0 -34
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -58
- package/dist/version.d.ts +0 -3
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -9
- package/dist/widget/assets/components/Aave.d.ts +0 -8
- package/dist/widget/assets/components/Aave.d.ts.map +0 -1
- package/dist/widget/assets/components/Aave.js +0 -29
- package/dist/widget/assets/components/ExchangeIconBlack.d.ts +0 -8
- package/dist/widget/assets/components/ExchangeIconBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodCardBrands.d.ts +0 -8
- package/dist/widget/assets/components/FundMethodCardBrands.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodCardBrands.js +0 -49
- package/dist/widget/assets/components/FundMethodExchangeBrands.d.ts +0 -8
- package/dist/widget/assets/components/FundMethodExchangeBrands.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodExchangeBrands.js +0 -37
- package/dist/widget/assets/components/MetaMaskIconFox.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskIconFox.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskIconFoxWithMargins.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskIconFoxWithMargins.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskLogoBlack.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskLogoBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskLogoWhite.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskLogoWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/Morpho.d.ts +0 -8
- package/dist/widget/assets/components/Morpho.d.ts.map +0 -1
- package/dist/widget/assets/components/Morpho.js +0 -51
- package/dist/widget/assets/components/TrailsBlack.d.ts +0 -8
- package/dist/widget/assets/components/TrailsBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/TrailsBlack.js +0 -25
- package/dist/widget/assets/components/TrailsWhite.d.ts +0 -8
- package/dist/widget/assets/components/TrailsWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/TrailsWhite.js +0 -25
- package/dist/widget/assets/components/WalletChangeBlack.d.ts +0 -8
- package/dist/widget/assets/components/WalletChangeBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogo.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogo.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoBlack.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoBlue.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoBlue.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoWhite.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/index.d.ts +0 -17
- package/dist/widget/assets/components/index.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.d.ts +0 -54
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.js +0 -68
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.d.ts +0 -386
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.js +0 -872
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.d.ts +0 -192
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.js +0 -294
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.d.ts +0 -51
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.js +0 -72
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.d.ts +0 -19
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.js +0 -62
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.d.ts +0 -44
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.js +0 -6
- package/dist/widget/bluvo/bluvo-lib/api.types.d.ts +0 -49
- package/dist/widget/bluvo/bluvo-lib/api.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.d.ts +0 -84
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.js +0 -26
- package/dist/widget/bluvo/bluvo-lib/createMachine.d.ts +0 -3
- package/dist/widget/bluvo/bluvo-lib/createMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/createMachine.js +0 -38
- package/dist/widget/bluvo/bluvo-lib/error-codes.d.ts +0 -156
- package/dist/widget/bluvo/bluvo-lib/error-codes.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/error-codes.js +0 -115
- package/dist/widget/bluvo/bluvo-lib/flow.types.d.ts +0 -356
- package/dist/widget/bluvo/bluvo-lib/flow.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowMachine.d.ts +0 -4
- package/dist/widget/bluvo/bluvo-lib/flowMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowMachine.js +0 -45
- package/dist/widget/bluvo/bluvo-lib/flowMachine.types.d.ts +0 -20
- package/dist/widget/bluvo/bluvo-lib/flowMachine.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.d.ts +0 -39
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.js +0 -395
- package/dist/widget/bluvo/bluvo-lib/index.d.ts +0 -5
- package/dist/widget/bluvo/bluvo-lib/index.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/machine.types.d.ts +0 -15
- package/dist/widget/bluvo/bluvo-lib/machine.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.d.ts +0 -23
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.js +0 -24
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.d.ts +0 -325
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.js +0 -152
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.d.ts +0 -11
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.js +0 -25
- package/dist/widget/bluvo/bluvo-lib/useWithdrawMachine.d.ts +0 -17
- package/dist/widget/bluvo/bluvo-lib/useWithdrawMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawal.types.d.ts +0 -46
- package/dist/widget/bluvo/bluvo-lib/withdrawal.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.d.ts +0 -29
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.js +0 -95
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.d.ts +0 -3
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.js +0 -137
- package/dist/widget/bluvo/index.d.ts +0 -2
- package/dist/widget/bluvo/index.d.ts.map +0 -1
- package/dist/widget/components/AccountActionsDropdown.d.ts +0 -4
- package/dist/widget/components/AccountActionsDropdown.d.ts.map +0 -1
- package/dist/widget/components/AccountActionsDropdown.js +0 -23
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts +0 -9
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts.map +0 -1
- package/dist/widget/components/AccountIntentTransactionHistory.js +0 -426
- package/dist/widget/components/AccountIntentTransactionHistoryButton.d.ts +0 -4
- package/dist/widget/components/AccountIntentTransactionHistoryButton.d.ts.map +0 -1
- package/dist/widget/components/AccountIntentTransactionHistoryButton.js +0 -23
- package/dist/widget/components/AccountSettings.d.ts +0 -7
- package/dist/widget/components/AccountSettings.d.ts.map +0 -1
- package/dist/widget/components/AccountSettings.js +0 -106
- package/dist/widget/components/AddressOrEnsName.d.ts +0 -13
- package/dist/widget/components/AddressOrEnsName.d.ts.map +0 -1
- package/dist/widget/components/AddressOrEnsName.js +0 -13
- package/dist/widget/components/AddressWalletIcon.d.ts +0 -8
- package/dist/widget/components/AddressWalletIcon.d.ts.map +0 -1
- package/dist/widget/components/AddressWalletIcon.js +0 -32
- package/dist/widget/components/AllChainsIcon.d.ts +0 -9
- package/dist/widget/components/AllChainsIcon.d.ts.map +0 -1
- package/dist/widget/components/AllChainsIcon.js +0 -98
- package/dist/widget/components/BluvoExchangeSelection.d.ts +0 -12
- package/dist/widget/components/BluvoExchangeSelection.d.ts.map +0 -1
- package/dist/widget/components/BluvoExchangeSelection.js +0 -131
- package/dist/widget/components/BluvoExchangeSelection.lazy.d.ts +0 -2
- package/dist/widget/components/BluvoExchangeSelection.lazy.d.ts.map +0 -1
- package/dist/widget/components/BluvoExchangeSelection.lazy.js +0 -4
- package/dist/widget/components/BluvoOnrampFlow.d.ts +0 -20
- package/dist/widget/components/BluvoOnrampFlow.d.ts.map +0 -1
- package/dist/widget/components/BluvoOnrampFlow.js +0 -1472
- package/dist/widget/components/BluvoOnrampFlow.lazy.d.ts +0 -2
- package/dist/widget/components/BluvoOnrampFlow.lazy.d.ts.map +0 -1
- package/dist/widget/components/BluvoOnrampFlow.lazy.js +0 -4
- package/dist/widget/components/ChainFilterDropdown.d.ts +0 -17
- package/dist/widget/components/ChainFilterDropdown.d.ts.map +0 -1
- package/dist/widget/components/ChainFilterDropdown.js +0 -124
- package/dist/widget/components/ChainImage.d.ts +0 -8
- package/dist/widget/components/ChainImage.d.ts.map +0 -1
- package/dist/widget/components/ChainImage.js +0 -24
- package/dist/widget/components/ChainList.d.ts +0 -9
- package/dist/widget/components/ChainList.d.ts.map +0 -1
- package/dist/widget/components/ChainList.js +0 -177
- package/dist/widget/components/ClassicSwap.d.ts +0 -10
- package/dist/widget/components/ClassicSwap.d.ts.map +0 -1
- package/dist/widget/components/ClassicSwap.js +0 -786
- package/dist/widget/components/ConfigDisplay.d.ts +0 -7
- package/dist/widget/components/ConfigDisplay.d.ts.map +0 -1
- package/dist/widget/components/ConfigDisplay.js +0 -122
- package/dist/widget/components/ConnectWallet.d.ts +0 -12
- package/dist/widget/components/ConnectWallet.d.ts.map +0 -1
- package/dist/widget/components/ConnectWallet.js +0 -215
- package/dist/widget/components/ConnectedWallets.d.ts +0 -19
- package/dist/widget/components/ConnectedWallets.d.ts.map +0 -1
- package/dist/widget/components/ConnectedWallets.js +0 -149
- package/dist/widget/components/CopyButton.d.ts +0 -18
- package/dist/widget/components/CopyButton.d.ts.map +0 -1
- package/dist/widget/components/CopyButton.js +0 -51
- package/dist/widget/components/CountryFilterDropdown.d.ts +0 -15
- package/dist/widget/components/CountryFilterDropdown.d.ts.map +0 -1
- package/dist/widget/components/CountryFilterDropdown.js +0 -93
- package/dist/widget/components/DebugMenu.d.ts +0 -7
- package/dist/widget/components/DebugMenu.d.ts.map +0 -1
- package/dist/widget/components/DebugMenu.js +0 -33
- package/dist/widget/components/DebugScreensList.d.ts +0 -7
- package/dist/widget/components/DebugScreensList.d.ts.map +0 -1
- package/dist/widget/components/DebugScreensList.js +0 -56
- package/dist/widget/components/DebugToast.d.ts +0 -3
- package/dist/widget/components/DebugToast.d.ts.map +0 -1
- package/dist/widget/components/DebugToast.js +0 -46
- package/dist/widget/components/DepositTracker.d.ts +0 -13
- package/dist/widget/components/DepositTracker.d.ts.map +0 -1
- package/dist/widget/components/DepositTracker.js +0 -194
- package/dist/widget/components/DirectTransfer.d.ts +0 -15
- package/dist/widget/components/DirectTransfer.d.ts.map +0 -1
- package/dist/widget/components/DirectTransfer.js +0 -218
- package/dist/widget/components/Disconnect.d.ts +0 -8
- package/dist/widget/components/Disconnect.d.ts.map +0 -1
- package/dist/widget/components/Disconnect.js +0 -37
- package/dist/widget/components/DynamicInputStyles.d.ts +0 -22
- package/dist/widget/components/DynamicInputStyles.d.ts.map +0 -1
- package/dist/widget/components/DynamicInputStyles.js +0 -27
- package/dist/widget/components/DynamicSizeInputField.d.ts +0 -17
- package/dist/widget/components/DynamicSizeInputField.d.ts.map +0 -1
- package/dist/widget/components/DynamicSizeInputField.js +0 -125
- package/dist/widget/components/ENSAvatar.d.ts +0 -12
- package/dist/widget/components/ENSAvatar.d.ts.map +0 -1
- package/dist/widget/components/ENSAvatar.js +0 -22
- package/dist/widget/components/Earn.d.ts +0 -33
- package/dist/widget/components/Earn.d.ts.map +0 -1
- package/dist/widget/components/Earn.js +0 -79
- package/dist/widget/components/EarnMarkets.d.ts +0 -9
- package/dist/widget/components/EarnMarkets.d.ts.map +0 -1
- package/dist/widget/components/EarnMarkets.js +0 -313
- package/dist/widget/components/EarnPools.d.ts +0 -8
- package/dist/widget/components/EarnPools.d.ts.map +0 -1
- package/dist/widget/components/EarnPools.js +0 -256
- package/dist/widget/components/EarnPoolsFilters.d.ts +0 -18
- package/dist/widget/components/EarnPoolsFilters.d.ts.map +0 -1
- package/dist/widget/components/EarnPoolsFilters.js +0 -106
- package/dist/widget/components/EarnWithdraw.d.ts +0 -21
- package/dist/widget/components/EarnWithdraw.d.ts.map +0 -1
- package/dist/widget/components/EarnWithdraw.js +0 -477
- package/dist/widget/components/ErrorAnimationIcon.d.ts +0 -2
- package/dist/widget/components/ErrorAnimationIcon.d.ts.map +0 -1
- package/dist/widget/components/ErrorAnimationIcon.js +0 -148
- package/dist/widget/components/ErrorDisplay.d.ts +0 -9
- package/dist/widget/components/ErrorDisplay.d.ts.map +0 -1
- package/dist/widget/components/ErrorDisplay.js +0 -104
- package/dist/widget/components/ExecutingIntentsBadge.d.ts +0 -12
- package/dist/widget/components/ExecutingIntentsBadge.d.ts.map +0 -1
- package/dist/widget/components/ExecutionStatusBadge.d.ts +0 -5
- package/dist/widget/components/ExecutionStatusBadge.d.ts.map +0 -1
- package/dist/widget/components/ExecutionStatusBadge.js +0 -45
- package/dist/widget/components/FeeOption.d.ts +0 -20
- package/dist/widget/components/FeeOption.d.ts.map +0 -1
- package/dist/widget/components/FeeOption.js +0 -71
- package/dist/widget/components/FeeOptions.d.ts +0 -20
- package/dist/widget/components/FeeOptions.d.ts.map +0 -1
- package/dist/widget/components/FeeOptions.js +0 -99
- package/dist/widget/components/FiatSelector.d.ts +0 -18
- package/dist/widget/components/FiatSelector.d.ts.map +0 -1
- package/dist/widget/components/FiatSelector.js +0 -171
- package/dist/widget/components/FiatSelectorButton.d.ts +0 -11
- package/dist/widget/components/FiatSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/FiatSelectorButton.js +0 -41
- package/dist/widget/components/Footer.d.ts +0 -7
- package/dist/widget/components/Footer.d.ts.map +0 -1
- package/dist/widget/components/Footer.js +0 -71
- package/dist/widget/components/Fund.d.ts +0 -19
- package/dist/widget/components/Fund.d.ts.map +0 -1
- package/dist/widget/components/Fund.js +0 -16
- package/dist/widget/components/Fund.types.d.ts +0 -22
- package/dist/widget/components/Fund.types.d.ts.map +0 -1
- package/dist/widget/components/FundExactInput.d.ts +0 -5
- package/dist/widget/components/FundExactInput.d.ts.map +0 -1
- package/dist/widget/components/FundExactInput.js +0 -1116
- package/dist/widget/components/FundExactOutput.d.ts +0 -5
- package/dist/widget/components/FundExactOutput.d.ts.map +0 -1
- package/dist/widget/components/FundExactOutput.js +0 -498
- package/dist/widget/components/FundMethods.d.ts +0 -15
- package/dist/widget/components/FundMethods.d.ts.map +0 -1
- package/dist/widget/components/FundMethods.js +0 -219
- package/dist/widget/components/FundWalletSelection.d.ts +0 -3
- package/dist/widget/components/FundWalletSelection.d.ts.map +0 -1
- package/dist/widget/components/FundWalletSelection.js +0 -38
- package/dist/widget/components/FundingMethodSelectorButton.d.ts +0 -11
- package/dist/widget/components/FundingMethodSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/FundingMethodSelectorButton.js +0 -57
- package/dist/widget/components/GreenCheckAnimation.d.ts +0 -2
- package/dist/widget/components/GreenCheckAnimation.d.ts.map +0 -1
- package/dist/widget/components/GreenCheckAnimation.js +0 -135
- package/dist/widget/components/HighPriceImpactBlock.d.ts +0 -7
- package/dist/widget/components/HighPriceImpactBlock.d.ts.map +0 -1
- package/dist/widget/components/HighPriceImpactBlock.js +0 -33
- package/dist/widget/components/HookModalContent.d.ts +0 -8
- package/dist/widget/components/HookModalContent.d.ts.map +0 -1
- package/dist/widget/components/HookModalContent.js +0 -237
- package/dist/widget/components/Identicon.d.ts +0 -9
- package/dist/widget/components/Identicon.d.ts.map +0 -1
- package/dist/widget/components/Identicon.js +0 -176
- package/dist/widget/components/LoadingSpinner.d.ts +0 -5
- package/dist/widget/components/LoadingSpinner.d.ts.map +0 -1
- package/dist/widget/components/LoadingSpinner.js +0 -5
- package/dist/widget/components/MeldForm.d.ts +0 -24
- package/dist/widget/components/MeldForm.d.ts.map +0 -1
- package/dist/widget/components/MeldForm.js +0 -447
- package/dist/widget/components/MeldHistory.d.ts +0 -13
- package/dist/widget/components/MeldHistory.d.ts.map +0 -1
- package/dist/widget/components/MeldHistory.js +0 -307
- package/dist/widget/components/MeldStepsFlow.d.ts +0 -6
- package/dist/widget/components/MeldStepsFlow.d.ts.map +0 -1
- package/dist/widget/components/MeldStepsFlow.js +0 -785
- package/dist/widget/components/MeldTransactionStatus.d.ts +0 -20
- package/dist/widget/components/MeldTransactionStatus.d.ts.map +0 -1
- package/dist/widget/components/MeldTransactionStatus.js +0 -157
- package/dist/widget/components/MeshExchangeAccountHeader.d.ts +0 -9
- package/dist/widget/components/MeshExchangeAccountHeader.d.ts.map +0 -1
- package/dist/widget/components/MeshExchangeAccountHeader.js +0 -30
- package/dist/widget/components/Modal.d.ts +0 -9
- package/dist/widget/components/Modal.d.ts.map +0 -1
- package/dist/widget/components/Modal.js +0 -65
- package/dist/widget/components/OFTProgressBar.d.ts +0 -16
- package/dist/widget/components/OFTProgressBar.d.ts.map +0 -1
- package/dist/widget/components/OFTProgressBar.js +0 -49
- package/dist/widget/components/OnRampProviderSelector.d.ts +0 -13
- package/dist/widget/components/OnRampProviderSelector.d.ts.map +0 -1
- package/dist/widget/components/OnRampProviderSelector.js +0 -144
- package/dist/widget/components/OnrampErrorScreen.d.ts +0 -15
- package/dist/widget/components/OnrampErrorScreen.d.ts.map +0 -1
- package/dist/widget/components/OnrampErrorScreen.js +0 -102
- package/dist/widget/components/OnrampHistoryRow.d.ts +0 -13
- package/dist/widget/components/OnrampHistoryRow.d.ts.map +0 -1
- package/dist/widget/components/OnrampHistoryRow.js +0 -249
- package/dist/widget/components/OnrampPaymentMethods.d.ts +0 -7
- package/dist/widget/components/OnrampPaymentMethods.d.ts.map +0 -1
- package/dist/widget/components/OnrampPaymentMethods.js +0 -54
- package/dist/widget/components/OnrampProviderConfirmation.d.ts +0 -30
- package/dist/widget/components/OnrampProviderConfirmation.d.ts.map +0 -1
- package/dist/widget/components/OnrampProviderConfirmation.js +0 -705
- package/dist/widget/components/OriginSelectionAmount.d.ts +0 -12
- package/dist/widget/components/OriginSelectionAmount.d.ts.map +0 -1
- package/dist/widget/components/OriginSelectionAmount.js +0 -104
- package/dist/widget/components/OriginTransferInformation.d.ts +0 -10
- package/dist/widget/components/OriginTransferInformation.d.ts.map +0 -1
- package/dist/widget/components/OriginTransferInformation.js +0 -56
- package/dist/widget/components/Pay.d.ts +0 -7
- package/dist/widget/components/Pay.d.ts.map +0 -1
- package/dist/widget/components/Pay.js +0 -649
- package/dist/widget/components/PaymentMethods.d.ts +0 -10
- package/dist/widget/components/PaymentMethods.d.ts.map +0 -1
- package/dist/widget/components/PaymentMethods.js +0 -118
- package/dist/widget/components/PercentageMaxButtons.d.ts +0 -14
- package/dist/widget/components/PercentageMaxButtons.d.ts.map +0 -1
- package/dist/widget/components/PercentageMaxButtons.js +0 -62
- package/dist/widget/components/PoolDeposit.d.ts +0 -32
- package/dist/widget/components/PoolDeposit.d.ts.map +0 -1
- package/dist/widget/components/PoolDeposit.js +0 -426
- package/dist/widget/components/PriceImpactWarning.d.ts +0 -11
- package/dist/widget/components/PriceImpactWarning.d.ts.map +0 -1
- package/dist/widget/components/PriceImpactWarning.js +0 -58
- package/dist/widget/components/PulsatingButton.d.ts +0 -9
- package/dist/widget/components/PulsatingButton.d.ts.map +0 -1
- package/dist/widget/components/PulsatingButton.js +0 -48
- package/dist/widget/components/QRCodeOptions.d.ts +0 -9
- package/dist/widget/components/QRCodeOptions.d.ts.map +0 -1
- package/dist/widget/components/QRCodeOptions.js +0 -57
- package/dist/widget/components/QRCodeWalletSelect.d.ts +0 -13
- package/dist/widget/components/QRCodeWalletSelect.d.ts.map +0 -1
- package/dist/widget/components/QRCodeWalletSelect.js +0 -45
- package/dist/widget/components/QrCode.d.ts +0 -10
- package/dist/widget/components/QrCode.d.ts.map +0 -1
- package/dist/widget/components/QrCode.js +0 -69
- package/dist/widget/components/QuoteDetails.d.ts +0 -25
- package/dist/widget/components/QuoteDetails.d.ts.map +0 -1
- package/dist/widget/components/QuoteDetails.js +0 -728
- package/dist/widget/components/QuoteInputErrorBlock.d.ts +0 -7
- package/dist/widget/components/QuoteInputErrorBlock.d.ts.map +0 -1
- package/dist/widget/components/QuoteInputErrorBlock.js +0 -22
- package/dist/widget/components/Receipt.d.ts +0 -18
- package/dist/widget/components/Receipt.d.ts.map +0 -1
- package/dist/widget/components/Receipt.js +0 -443
- package/dist/widget/components/ReceiptRecoverableFunds.d.ts +0 -25
- package/dist/widget/components/ReceiptRecoverableFunds.d.ts.map +0 -1
- package/dist/widget/components/ReceiptRecoverableFunds.js +0 -75
- package/dist/widget/components/RecentChains.d.ts +0 -9
- package/dist/widget/components/RecentChains.d.ts.map +0 -1
- package/dist/widget/components/RecentChains.js +0 -28
- package/dist/widget/components/RecentTokens.d.ts +0 -10
- package/dist/widget/components/RecentTokens.d.ts.map +0 -1
- package/dist/widget/components/RecentTokens.js +0 -37
- package/dist/widget/components/RecipientSelectorButton.d.ts +0 -6
- package/dist/widget/components/RecipientSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/RecipientSelectorButton.js +0 -36
- package/dist/widget/components/Recipients.d.ts +0 -9
- package/dist/widget/components/Recipients.d.ts.map +0 -1
- package/dist/widget/components/Recipients.js +0 -208
- package/dist/widget/components/RefundWarning.d.ts +0 -11
- package/dist/widget/components/RefundWarning.d.ts.map +0 -1
- package/dist/widget/components/RefundWarning.js +0 -33
- package/dist/widget/components/RequiredPropsError.d.ts +0 -8
- package/dist/widget/components/RequiredPropsError.d.ts.map +0 -1
- package/dist/widget/components/RequiredPropsError.js +0 -14
- package/dist/widget/components/ScreenHeader.d.ts +0 -13
- package/dist/widget/components/ScreenHeader.d.ts.map +0 -1
- package/dist/widget/components/ScreenHeader.js +0 -64
- package/dist/widget/components/SearchInputField.d.ts +0 -14
- package/dist/widget/components/SearchInputField.d.ts.map +0 -1
- package/dist/widget/components/SearchInputField.js +0 -51
- package/dist/widget/components/SessionTimeoutScreen.d.ts +0 -12
- package/dist/widget/components/SessionTimeoutScreen.d.ts.map +0 -1
- package/dist/widget/components/SessionTimeoutScreen.js +0 -64
- package/dist/widget/components/ShadowPortal.d.ts +0 -6
- package/dist/widget/components/ShadowPortal.d.ts.map +0 -1
- package/dist/widget/components/ShadowPortal.js +0 -52
- package/dist/widget/components/ShadowRootContext.d.ts +0 -8
- package/dist/widget/components/ShadowRootContext.d.ts.map +0 -1
- package/dist/widget/components/ShadowRootContext.js +0 -12
- package/dist/widget/components/SimpleRecipientInputScreen.d.ts +0 -13
- package/dist/widget/components/SimpleRecipientInputScreen.d.ts.map +0 -1
- package/dist/widget/components/SimpleRecipientInputScreen.js +0 -48
- package/dist/widget/components/SlippageToleranceSettings.d.ts +0 -9
- package/dist/widget/components/SlippageToleranceSettings.d.ts.map +0 -1
- package/dist/widget/components/SlippageToleranceSettings.js +0 -159
- package/dist/widget/components/Swap.d.ts +0 -43
- package/dist/widget/components/Swap.d.ts.map +0 -1
- package/dist/widget/components/Swap.js +0 -6
- package/dist/widget/components/SwapDisplay.d.ts +0 -9
- package/dist/widget/components/SwapDisplay.d.ts.map +0 -1
- package/dist/widget/components/SwapDisplay.js +0 -72
- package/dist/widget/components/ThemeProvider.d.ts +0 -16
- package/dist/widget/components/ThemeProvider.d.ts.map +0 -1
- package/dist/widget/components/ThemeProvider.js +0 -52
- package/dist/widget/components/ThemeSyncer.d.ts +0 -6
- package/dist/widget/components/ThemeSyncer.d.ts.map +0 -1
- package/dist/widget/components/ThemeSyncer.js +0 -25
- package/dist/widget/components/Toast.d.ts +0 -24
- package/dist/widget/components/Toast.d.ts.map +0 -1
- package/dist/widget/components/Toast.js +0 -206
- package/dist/widget/components/TokenDisplayNonSelectable.d.ts +0 -11
- package/dist/widget/components/TokenDisplayNonSelectable.d.ts.map +0 -1
- package/dist/widget/components/TokenDisplayNonSelectable.js +0 -30
- package/dist/widget/components/TokenImage.d.ts +0 -11
- package/dist/widget/components/TokenImage.d.ts.map +0 -1
- package/dist/widget/components/TokenImage.js +0 -96
- package/dist/widget/components/TokenList.d.ts +0 -20
- package/dist/widget/components/TokenList.d.ts.map +0 -1
- package/dist/widget/components/TokenList.js +0 -45
- package/dist/widget/components/TokenSelector.d.ts +0 -32
- package/dist/widget/components/TokenSelector.d.ts.map +0 -1
- package/dist/widget/components/TokenSelector.js +0 -479
- package/dist/widget/components/TokenSelectorButton.d.ts +0 -17
- package/dist/widget/components/TokenSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/TokenSelectorButton.js +0 -64
- package/dist/widget/components/TokenSkeleton.d.ts +0 -12
- package/dist/widget/components/TokenSkeleton.d.ts.map +0 -1
- package/dist/widget/components/TokenSkeleton.js +0 -36
- package/dist/widget/components/Tooltip.d.ts +0 -14
- package/dist/widget/components/Tooltip.d.ts.map +0 -1
- package/dist/widget/components/Tooltip.js +0 -38
- package/dist/widget/components/TrailsHookModal.d.ts +0 -10
- package/dist/widget/components/TrailsHookModal.d.ts.map +0 -1
- package/dist/widget/components/TrailsHookModal.js +0 -55
- package/dist/widget/components/TransactionDetails.d.ts +0 -10
- package/dist/widget/components/TransactionDetails.d.ts.map +0 -1
- package/dist/widget/components/TransactionDetails.js +0 -492
- package/dist/widget/components/TransactionHistoryItem.d.ts +0 -23
- package/dist/widget/components/TransactionHistoryItem.d.ts.map +0 -1
- package/dist/widget/components/TransactionHistoryItem.js +0 -547
- package/dist/widget/components/TransferPendingVertical.d.ts +0 -16
- package/dist/widget/components/TransferPendingVertical.d.ts.map +0 -1
- package/dist/widget/components/TransferPendingVertical.js +0 -356
- package/dist/widget/components/TruncatedTransactionHash.d.ts +0 -12
- package/dist/widget/components/TruncatedTransactionHash.d.ts.map +0 -1
- package/dist/widget/components/TruncatedTransactionHash.js +0 -36
- package/dist/widget/components/UserPreferences.d.ts +0 -7
- package/dist/widget/components/UserPreferences.d.ts.map +0 -1
- package/dist/widget/components/UserPreferences.js +0 -282
- package/dist/widget/components/WaasFeeOptions.d.ts +0 -12
- package/dist/widget/components/WaasFeeOptions.d.ts.map +0 -1
- package/dist/widget/components/WaasFeeOptions.js +0 -349
- package/dist/widget/components/WalletAccountHeader.d.ts +0 -8
- package/dist/widget/components/WalletAccountHeader.d.ts.map +0 -1
- package/dist/widget/components/WalletAccountHeader.js +0 -45
- package/dist/widget/components/WalletConfirmation.d.ts +0 -15
- package/dist/widget/components/WalletConfirmation.d.ts.map +0 -1
- package/dist/widget/components/WalletConfirmation.js +0 -145
- package/dist/widget/components/WalletConnect.d.ts +0 -11
- package/dist/widget/components/WalletConnect.d.ts.map +0 -1
- package/dist/widget/components/WalletConnect.js +0 -164
- package/dist/widget/components/WalletConnectionPending.d.ts +0 -12
- package/dist/widget/components/WalletConnectionPending.d.ts.map +0 -1
- package/dist/widget/components/WalletConnectionPending.js +0 -124
- package/dist/widget/components/WalletList.d.ts +0 -16
- package/dist/widget/components/WalletList.d.ts.map +0 -1
- package/dist/widget/components/WalletList.js +0 -88
- package/dist/widget/components/WidgetProviders.d.ts +0 -16
- package/dist/widget/components/WidgetProviders.d.ts.map +0 -1
- package/dist/widget/components/WidgetProviders.js +0 -43
- package/dist/widget/components/Withdraw.d.ts +0 -12
- package/dist/widget/components/Withdraw.d.ts.map +0 -1
- package/dist/widget/components/Withdraw.js +0 -551
- package/dist/widget/components/YellowWarningAnimation.d.ts +0 -2
- package/dist/widget/components/YellowWarningAnimation.d.ts.map +0 -1
- package/dist/widget/components/YellowWarningAnimation.js +0 -167
- package/dist/widget/components/earnMarketUtils.d.ts +0 -11
- package/dist/widget/components/earnMarketUtils.d.ts.map +0 -1
- package/dist/widget/components/earnMarketUtils.js +0 -48
- package/dist/widget/components/earnNetworks.d.ts +0 -6
- package/dist/widget/components/earnNetworks.d.ts.map +0 -1
- package/dist/widget/components/earnNetworks.js +0 -33
- package/dist/widget/index.d.ts.map +0 -1
- package/dist/widget/modes/EarnWidget.d.ts +0 -90
- package/dist/widget/modes/EarnWidget.d.ts.map +0 -1
- package/dist/widget/modes/EarnWidget.js +0 -41
- package/dist/widget/modes/FundWidget.d.ts +0 -110
- package/dist/widget/modes/FundWidget.d.ts.map +0 -1
- package/dist/widget/modes/FundWidget.js +0 -48
- package/dist/widget/modes/PayWidget.d.ts +0 -80
- package/dist/widget/modes/PayWidget.d.ts.map +0 -1
- package/dist/widget/modes/PayWidget.js +0 -40
- package/dist/widget/modes/SwapWidget.d.ts +0 -76
- package/dist/widget/modes/SwapWidget.d.ts.map +0 -1
- package/dist/widget/modes/SwapWidget.js +0 -41
- package/dist/widget/modes/WithdrawWidget.d.ts +0 -87
- package/dist/widget/modes/WithdrawWidget.d.ts.map +0 -1
- package/dist/widget/modes/WithdrawWidget.js +0 -38
- package/dist/widget/props.d.ts +0 -255
- package/dist/widget/props.d.ts.map +0 -1
- package/dist/widget/props.js +0 -14
- package/dist/widget/providers/TrailsModalProvider.d.ts +0 -78
- package/dist/widget/providers/TrailsModalProvider.d.ts.map +0 -1
- package/dist/widget/providers/TrailsModalProvider.js +0 -57
- package/dist/widget/providers/TrailsProvider.d.ts +0 -100
- package/dist/widget/providers/TrailsProvider.d.ts.map +0 -1
- package/dist/widget/providers/TrailsProvider.js +0 -101
- package/dist/widget/providers/UserActivityProvider.d.ts +0 -18
- package/dist/widget/providers/UserActivityProvider.d.ts.map +0 -1
- package/dist/widget/providers/UserActivityProvider.js +0 -38
- package/dist/widget/providers/WalletContext.d.ts +0 -10
- package/dist/widget/providers/WalletContext.d.ts.map +0 -1
- package/dist/widget/providers/WalletContext.js +0 -23
- package/dist/widget/providers/WidgetProviderTree.d.ts +0 -24
- package/dist/widget/providers/WidgetProviderTree.d.ts.map +0 -1
- package/dist/widget/providers/WidgetProviderTree.js +0 -35
- package/dist/widget/providers/adapterConfig.d.ts +0 -13
- package/dist/widget/providers/adapterConfig.d.ts.map +0 -1
- package/dist/widget/providers/adapterConfig.js +0 -97
- package/dist/widget/providers/sequenceSupport.d.ts +0 -42
- package/dist/widget/providers/sequenceSupport.d.ts.map +0 -1
- package/dist/widget/providers/walletRuntimeResolution.d.ts +0 -10
- package/dist/widget/providers/walletRuntimeResolution.d.ts.map +0 -1
- package/dist/widget/providers/walletRuntimeResolution.js +0 -14
- package/dist/widget/shared/destinationDefaultToken.d.ts +0 -15
- package/dist/widget/shared/destinationDefaultToken.d.ts.map +0 -1
- package/dist/widget/shared/destinationDefaultToken.js +0 -18
- package/dist/widget/shared/destinationSupport.d.ts +0 -40
- package/dist/widget/shared/destinationSupport.d.ts.map +0 -1
- package/dist/widget/shared/destinationSupport.js +0 -215
- package/dist/widget/shared/mapSharedProps.d.ts +0 -9
- package/dist/widget/shared/mapSharedProps.d.ts.map +0 -1
- package/dist/widget/shared/mapSharedProps.js +0 -22
- package/dist/widget/shared/methodMap.d.ts +0 -18
- package/dist/widget/shared/methodMap.d.ts.map +0 -1
- package/dist/widget/shared/methodMap.js +0 -25
- package/dist/widget/shared/resolution.d.ts +0 -8
- package/dist/widget/shared/resolution.d.ts.map +0 -1
- package/dist/widget/shared/resolution.js +0 -63
- package/dist/widget/shared/resolvePaymentSource.d.ts +0 -37
- package/dist/widget/shared/resolvePaymentSource.d.ts.map +0 -1
- package/dist/widget/shared/resolvePaymentSource.js +0 -19
- package/dist/widget/shared/types.d.ts +0 -142
- package/dist/widget/shared/types.d.ts.map +0 -1
- package/dist/widget/styles.gen.d.ts +0 -2
- package/dist/widget/styles.gen.d.ts.map +0 -1
- package/dist/widget/styles.gen.js +0 -29
- package/dist/widget/types/analytics.d.ts +0 -22
- package/dist/widget/types/analytics.d.ts.map +0 -1
- package/dist/widget/types/commonProps.d.ts +0 -48
- package/dist/widget/types/commonProps.d.ts.map +0 -1
- package/dist/widget/utils/countryUtils.d.ts +0 -37
- package/dist/widget/utils/countryUtils.d.ts.map +0 -1
- package/dist/widget/utils/countryUtils.js +0 -14
- package/dist/widget/utils/forexRateStore.d.ts +0 -25
- package/dist/widget/utils/forexRateStore.d.ts.map +0 -1
- package/dist/widget/utils/forexRateStore.js +0 -59
- package/dist/widget/utils/fundMethodSwitchState.d.ts +0 -14
- package/dist/widget/utils/fundMethodSwitchState.d.ts.map +0 -1
- package/dist/widget/utils/fundMethodSwitchState.js +0 -6
- package/dist/widget/utils/historyFilters.d.ts +0 -13
- package/dist/widget/utils/historyFilters.d.ts.map +0 -1
- package/dist/widget/utils/historyFilters.js +0 -108
- package/dist/widget/utils/localeStore.d.ts +0 -19
- package/dist/widget/utils/localeStore.d.ts.map +0 -1
- package/dist/widget/utils/localeStore.js +0 -39
- package/dist/widget/utils/meldProviderUtils.d.ts +0 -6
- package/dist/widget/utils/meldProviderUtils.d.ts.map +0 -1
- package/dist/widget/utils/meldProviderUtils.js +0 -9
- package/dist/widget/utils/meshSupportedTokens.d.ts +0 -4
- package/dist/widget/utils/meshSupportedTokens.d.ts.map +0 -1
- package/dist/widget/utils/meshSupportedTokens.js +0 -12
- package/dist/widget/utils/onrampConfig.d.ts +0 -11
- package/dist/widget/utils/onrampConfig.d.ts.map +0 -1
- package/dist/widget/utils/onrampConfig.js +0 -6
- package/dist/widget/utils/statusLabel.d.ts +0 -2
- package/dist/widget/utils/statusLabel.d.ts.map +0 -1
- package/dist/widget/utils/statusLabel.js +0 -6
- package/dist/widget/utils/tokens.d.ts +0 -60
- package/dist/widget/utils/tokens.d.ts.map +0 -1
- package/dist/widget/utils/tokens.js +0 -16
- package/dist/widget/utils/trailsOnrampConfig.d.ts +0 -23
- package/dist/widget/utils/trailsOnrampConfig.d.ts.map +0 -1
- package/dist/widget/utils/trailsOnrampConfig.js +0 -7
- package/dist/widget/utils/transactionFailure.d.ts +0 -20
- package/dist/widget/utils/transactionFailure.d.ts.map +0 -1
- package/dist/widget/utils/transactionFailure.js +0 -12
- package/dist/widget/utils/viewManagerGuards.d.ts +0 -5
- package/dist/widget/utils/viewManagerGuards.d.ts.map +0 -1
- package/dist/widget/utils/viewManagerGuards.js +0 -24
- package/dist/widget/utils/walletConnectRedirect.d.ts +0 -19
- package/dist/widget/utils/walletConnectRedirect.d.ts.map +0 -1
- package/dist/widget/utils/walletConnectRedirect.js +0 -21
- package/dist/widget/utils/windowUtils.d.ts +0 -13
- package/dist/widget/utils/windowUtils.d.ts.map +0 -1
- package/dist/widget/utils/windowUtils.js +0 -84
- package/dist/widget/widget.d.ts +0 -16
- package/dist/widget/widget.d.ts.map +0 -1
- package/dist/widget/widget.js +0 -1541
- package/dist/widgetFlowHooks.d.ts +0 -12
- package/dist/widgetFlowHooks.d.ts.map +0 -1
- package/dist/widgetFlowHooks.js +0 -18
|
@@ -1,533 +0,0 @@
|
|
|
1
|
-
import { getFullErrorMessage as Qe, getIsAlreadyExecutingError as De } from "../../error.js";
|
|
2
|
-
import { logger as t } from "../../logger/index.js";
|
|
3
|
-
import { HOUR_MS as Ke } from "../../utils/time.js";
|
|
4
|
-
import { getChainInfo as Xe, getPublicClient as we } from "../../chains.js";
|
|
5
|
-
import { getIsCustomCalldata as je } from "../../contractUtils.js";
|
|
6
|
-
import { isNativeToken as $e } from "../../utils/address.js";
|
|
7
|
-
import { queryClient as Ge } from "../../query/client.js";
|
|
8
|
-
import { updatePersistentToast as Se } from "../../toast.js";
|
|
9
|
-
import { calcAmountUsdPrice as Ee, formatRawAmount as Me, rawAmountToNumber as xe } from "../../utils/format.js";
|
|
10
|
-
import { trackPaymentCompleted as Ve, trackPaymentError as ue, trackTransactionConfirmed as Ye } from "../../analytics.js";
|
|
11
|
-
import { TradeType as He, isExternalFundingMethod as Ze, toApiFundMethod as et } from "../types.js";
|
|
12
|
-
import { isSameChain as _e, isSameToken as Le } from "../validators.js";
|
|
13
|
-
import { checkAccountBalance as We } from "../utils/balanceChecker.js";
|
|
14
|
-
import { getIntentArgs as tt } from "../quote/quoteHelpers.js";
|
|
15
|
-
import { getFeesFromIntent as nt, getFeesFromPassthrough as ot, getPriceImpactFromIntent as it, getPriceImpactUsdFromIntent as st } from "../quote/feeExtractors.js";
|
|
16
|
-
import { getNormalizedQuoteObject as rt } from "../quote/normalizeQuote.js";
|
|
17
|
-
import { getTransactionStateFromReceipt as ne } from "../execution/transactionState.js";
|
|
18
|
-
import { attemptSwitchChain as at } from "../../chainSwitch.js";
|
|
19
|
-
import { getDoGasless as dt } from "../deposits/gaslessDeposit.js";
|
|
20
|
-
import { commitIntent as ct, executeIntent as Be, quoteIntent as lt, sendOriginTransaction as ut } from "../../intents.js";
|
|
21
|
-
import { attemptUserDepositTx as gt } from "../deposits/depositOrchestrator.js";
|
|
22
|
-
import { decodeGuestModuleEvents as ce, decodeTokenSweeperEvents as le } from "../../decoders.js";
|
|
23
|
-
import { invalidateTokenBalancesCache as oe } from "../../query/balance.queries.js";
|
|
24
|
-
import { getTxTimeDiff as ht, isDisplayableTransactionHash as ft, isSyntheticTransactionHash as mt } from "../../transactions.js";
|
|
25
|
-
import { pollIntentReceipt as pt } from "../../intentReceiptPoller.js";
|
|
26
|
-
import { applyIntentReceiptToTransactionStates as kt, getNormalizedTransactionStates as qe, insertRefundTransactionState as Tt, updateTransactionStateWithDecodedEvents as It } from "../helpers/transactionStateHelpers.js";
|
|
27
|
-
import { IntentProtocolVersion as Ae, IntentStatus as Ce } from "@0xtrails/api";
|
|
28
|
-
import { formatUnits as At } from "viem";
|
|
29
|
-
function Ne(o) {
|
|
30
|
-
const { selectedFeeOption: i, gasFeeOptions: e } = o;
|
|
31
|
-
return i === void 0 ? !1 : i === null ? e?.feeOptions?.find((I) => $e(I.tokenAddress))?.isPassthroughEligible === !0 : i.isPassthroughEligible === !0;
|
|
32
|
-
}
|
|
33
|
-
async function Ct(o, i, e, I) {
|
|
34
|
-
const _ = o.walletClient, { queryClient: j, account: w, onTransactionStateChange: N, originTokenDecimals: T, originTokenSymbol: L, destinationTokenSymbol: Q, swapAmount: P, destinationCalldata: R, sourceTokenPriceUsd: ie, mode: D, fundMethod: S = "wallet", checkoutOnHandlers: M, walletId: H } = o, c = j ?? Ge, { onOriginSend: f, depositTransactionHash: W } = I, y = o.chain, C = y.id, B = o.publicClient ?? we(y.id), x = Number(At(BigInt(P), T)), $ = Ee({
|
|
35
|
-
amount: x,
|
|
36
|
-
usdPrice: ie
|
|
37
|
-
});
|
|
38
|
-
if (e[0]) {
|
|
39
|
-
e[0].state = "pending";
|
|
40
|
-
try {
|
|
41
|
-
N(e);
|
|
42
|
-
} catch (v) {
|
|
43
|
-
t.console.error("[trails-sdk] Error calling onTransactionStateChange:", v);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
if (Se("Payment Started", "Waiting for wallet confirmation...", "info"), i.chainId !== C) throw new Error(`Chain ID mismatch: expected ${C}, got ${i.chainId}`);
|
|
47
|
-
const { to: Y, data: Z, value: b, chainId: O } = i;
|
|
48
|
-
t.console.log("[trails-sdk] Executing passthrough with depositTransaction:", {
|
|
49
|
-
to: Y,
|
|
50
|
-
data: Z,
|
|
51
|
-
value: b,
|
|
52
|
-
chainId: O
|
|
53
|
-
});
|
|
54
|
-
let q = W;
|
|
55
|
-
q || (q = await ut(w, _, {
|
|
56
|
-
to: Y,
|
|
57
|
-
data: Z,
|
|
58
|
-
value: BigInt(b),
|
|
59
|
-
chain: y
|
|
60
|
-
}, {
|
|
61
|
-
transactionType: "origin_call",
|
|
62
|
-
depositTokenAmountUsd: $?.toString()
|
|
63
|
-
}));
|
|
64
|
-
const F = q;
|
|
65
|
-
f && f();
|
|
66
|
-
const E = await B.waitForTransactionReceipt({
|
|
67
|
-
hash: F,
|
|
68
|
-
onReplaced: (v) => {
|
|
69
|
-
t.console.log("[trails-sdk] Passthrough deposit transaction replaced", {
|
|
70
|
-
reason: v.reason,
|
|
71
|
-
replacedHash: v.replacedTransaction.hash,
|
|
72
|
-
replacementHash: v.transaction.hash
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
return t.console.log("[trails-sdk] Passthrough receipt:", E), Ye({
|
|
77
|
-
transactionHash: F,
|
|
78
|
-
chainId: C,
|
|
79
|
-
userAddress: w.address,
|
|
80
|
-
blockNumber: Number(E.blockNumber),
|
|
81
|
-
originTokenAddress: o.originTokenAddress,
|
|
82
|
-
depositTokenAmountUsd: $
|
|
83
|
-
}), Se("Transfer Confirmed", `Your transaction on ${Xe(C)?.name || "chain"} has been confirmed`, "info"), N(It(e, e[0]?.label || "Execute", E, C)), E.status === "success" ? (Ve({
|
|
84
|
-
userAddress: w.address,
|
|
85
|
-
originTxHash: E.transactionHash,
|
|
86
|
-
originChainId: C,
|
|
87
|
-
mode: D,
|
|
88
|
-
fundMethod: S,
|
|
89
|
-
originTokenAddress: o.originTokenAddress,
|
|
90
|
-
originTokenSymbol: L,
|
|
91
|
-
originTokenAmount: P,
|
|
92
|
-
originTokenAmountFormatted: x.toString(),
|
|
93
|
-
destinationTokenAddress: o.originTokenAddress,
|
|
94
|
-
destinationTokenSymbol: Q,
|
|
95
|
-
depositTokenAmount: P,
|
|
96
|
-
depositTokenAmountFormatted: x.toString(),
|
|
97
|
-
depositTokenAmountUsd: $,
|
|
98
|
-
destinationTokenAmount: P,
|
|
99
|
-
destinationTokenAmountFormatted: x.toString(),
|
|
100
|
-
destinationTokenAmountUsd: $,
|
|
101
|
-
originTokenDecimals: T,
|
|
102
|
-
destinationTokenDecimals: T,
|
|
103
|
-
walletId: H,
|
|
104
|
-
destinationCalldata: R
|
|
105
|
-
}), oe(void 0, c), M?.triggerCheckoutComplete && M.triggerCheckoutComplete("success", w.address)) : (ue({
|
|
106
|
-
error: "Transaction failed",
|
|
107
|
-
userAddress: w.address,
|
|
108
|
-
mode: D,
|
|
109
|
-
fundMethod: S,
|
|
110
|
-
originTokenAddress: o.originTokenAddress
|
|
111
|
-
}), oe(void 0, c), M?.triggerCheckoutError && M.triggerCheckoutError("Transaction failed")), {
|
|
112
|
-
depositUserTxnReceipt: E,
|
|
113
|
-
originIntentTransaction: null,
|
|
114
|
-
destinationIntentTransaction: null
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
async function wt(o, i, e, I, _, j) {
|
|
118
|
-
const w = o.walletClient, { queryClient: N, account: T, onTransactionStateChange: L, originTokenDecimals: Q, originTokenSymbol: P, destinationTokenSymbol: R, swapAmount: ie, destinationCalldata: D, sourceTokenPriceUsd: S, destinationTokenPriceUsd: M, mode: H, fundMethod: c = "wallet", checkoutOnHandlers: f, walletId: W, trailsClient: y, abortSignal: C, executeIntentFn: B, destinationTokenDecimals: x, swapProvider: $, bridgeProvider: Y, tradeType: Z } = o, b = N ?? Ge, { onOriginSend: O, selectedFeeOption: q, depositTransactionHash: F } = j, E = q, v = o.chain, G = v.id, z = we(v.id), se = o.originTokenAddress, ve = _e(o.originChainId, o.destinationChainId), Pe = Le(o.originTokenAddress, o.destinationTokenAddress), ye = ve && Pe, m = i.depositTransaction.amount.toString(), ge = Me(m, Q), he = Ee({
|
|
119
|
-
amount: xe(m, Q),
|
|
120
|
-
usdPrice: S
|
|
121
|
-
});
|
|
122
|
-
let p = null, fe = null, re = null, V = !1;
|
|
123
|
-
const be = we(o.destinationChainId), me = c === "wallet" && dt(se, I, E, W);
|
|
124
|
-
if (i.intentId && !me) try {
|
|
125
|
-
B ? await B({ intentId: i.intentId }) : await Be(y, i.intentId, void 0), V = !0, t.console.log("[trails-sdk] executeIntent called immediately after commit", {
|
|
126
|
-
intentId: i.intentId,
|
|
127
|
-
fundMethod: c,
|
|
128
|
-
depositTransactionHash: F
|
|
129
|
-
});
|
|
130
|
-
} catch (s) {
|
|
131
|
-
if (De(s))
|
|
132
|
-
V = !0, t.console.log("[trails-sdk] Intent already executing after early executeIntent call");
|
|
133
|
-
else throw s;
|
|
134
|
-
}
|
|
135
|
-
else i.intentId && me && t.console.log("[trails-sdk] Skipping early executeIntent for gasless flow, waiting for deposit signature", {
|
|
136
|
-
intentId: i.intentId,
|
|
137
|
-
fundMethod: c,
|
|
138
|
-
hasSelectedFeeOption: E !== void 0
|
|
139
|
-
});
|
|
140
|
-
const k = (s) => {
|
|
141
|
-
L(s), f?.triggerCheckoutStatusUpdate && f.triggerCheckoutStatusUpdate(s);
|
|
142
|
-
};
|
|
143
|
-
if (Ze(c) && !F)
|
|
144
|
-
return k(e), t.console.log("[trails-sdk] External funding flow: intent committed, returning early", {
|
|
145
|
-
fundMethod: c,
|
|
146
|
-
intentId: i.intentId
|
|
147
|
-
}), {
|
|
148
|
-
depositUserTxnReceipt: null,
|
|
149
|
-
originIntentTransaction: null,
|
|
150
|
-
destinationIntentTransaction: null,
|
|
151
|
-
totalCompletionSeconds: 0
|
|
152
|
-
};
|
|
153
|
-
if (c === "wallet") {
|
|
154
|
-
const { hasEnoughBalance: s, balanceError: a } = await We({
|
|
155
|
-
account: T,
|
|
156
|
-
tokenAddress: se,
|
|
157
|
-
depositAmount: m,
|
|
158
|
-
publicClient: z
|
|
159
|
-
});
|
|
160
|
-
if (!s) throw a;
|
|
161
|
-
}
|
|
162
|
-
await at({
|
|
163
|
-
walletClient: w,
|
|
164
|
-
desiredChainId: G
|
|
165
|
-
}), k(e);
|
|
166
|
-
const pe = i.intentProtocol;
|
|
167
|
-
pe || t.console.log("[trails-sdk] [intent-protocol] Intent protocol version not found in response, defaulting to v1");
|
|
168
|
-
const ee = pe === "v1.5" ? Ae.v1_5 : Ae.v1;
|
|
169
|
-
if (t.console.log("[trails-sdk] [intent-protocol] === Intent Protocol Version ===", {
|
|
170
|
-
version: ee,
|
|
171
|
-
isV1: ee === Ae.v1,
|
|
172
|
-
isV1_5: ee === Ae.v1_5,
|
|
173
|
-
intentId: i.intentId,
|
|
174
|
-
fundMethod: c
|
|
175
|
-
}), F && c !== "wallet") {
|
|
176
|
-
let s = F;
|
|
177
|
-
if (p = await z.waitForTransactionReceipt({
|
|
178
|
-
hash: F,
|
|
179
|
-
onReplaced: (a) => {
|
|
180
|
-
s = a.transaction.hash, t.console.log("[trails-sdk] External deposit transaction replaced", {
|
|
181
|
-
reason: a.reason,
|
|
182
|
-
replacedHash: a.replacedTransaction.hash,
|
|
183
|
-
replacementHash: a.transaction.hash
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
}), p?.transactionHash && (s = p.transactionHash), t.console.log("[trails-sdk] External deposit receipt resolved", {
|
|
187
|
-
providedHash: F,
|
|
188
|
-
resolvedHash: s,
|
|
189
|
-
status: p.status
|
|
190
|
-
}), p && (e[0] = ne(p, G, e[0]?.label), k(e)), p.status === "success" && i.intentId && (O && (t.console.log("[trails-sdk] Calling onOriginSend for external deposit"), O()), !V))
|
|
191
|
-
try {
|
|
192
|
-
B ? await B({ intentId: i.intentId }) : await Be(y, i.intentId, void 0);
|
|
193
|
-
} catch (a) {
|
|
194
|
-
if (De(a)) t.console.log("[trails-sdk] Intent already executing, continuing...");
|
|
195
|
-
else throw a;
|
|
196
|
-
}
|
|
197
|
-
} else if (c === "wallet" && (p = await gt({
|
|
198
|
-
queryClient: b,
|
|
199
|
-
originTokenAddress: se,
|
|
200
|
-
chain: v,
|
|
201
|
-
account: T,
|
|
202
|
-
depositAmount: m,
|
|
203
|
-
originIntentAddress: i.originIntentAddress,
|
|
204
|
-
onOriginSend: O,
|
|
205
|
-
publicClient: z,
|
|
206
|
-
walletClient: w,
|
|
207
|
-
destinationTokenDecimals: x,
|
|
208
|
-
sourceTokenDecimals: Q,
|
|
209
|
-
sourceTokenPriceUsd: S ?? null,
|
|
210
|
-
destinationTokenPriceUsd: M ?? null,
|
|
211
|
-
swapAmount: ie,
|
|
212
|
-
onTransactionStateChange: L,
|
|
213
|
-
transactionStates: e,
|
|
214
|
-
fundMethod: c,
|
|
215
|
-
originTokenSymbol: P,
|
|
216
|
-
destinationTokenSymbol: R,
|
|
217
|
-
depositAmountUsd: he,
|
|
218
|
-
feeOptions: I,
|
|
219
|
-
trailsContracts: _,
|
|
220
|
-
trailsClient: y,
|
|
221
|
-
selectedFeeOption: E,
|
|
222
|
-
walletId: W,
|
|
223
|
-
abortSignal: C,
|
|
224
|
-
checkoutOnHandlers: f,
|
|
225
|
-
intentId: i.intentId,
|
|
226
|
-
executeIntentFn: B,
|
|
227
|
-
isSameChainSameToken: ye,
|
|
228
|
-
destinationCalldata: D,
|
|
229
|
-
depositTransaction: i.depositTransaction,
|
|
230
|
-
intentProtocol: ee
|
|
231
|
-
}), p)) {
|
|
232
|
-
e[0] = ne(p, G, e[0]?.label);
|
|
233
|
-
try {
|
|
234
|
-
e[0].decodedTokenSweeperEvents = le(p), e[0].decodedGuestModuleEvents = ce(p), e[0].refunded = e[0].decodedTokenSweeperEvents.findIndex((s) => s.type === "Refund" || s.type === "RefundAndSweep") !== -1;
|
|
235
|
-
} catch (s) {
|
|
236
|
-
t.console.error("[trails-sdk] Error decoding deposit events", s);
|
|
237
|
-
}
|
|
238
|
-
k(e);
|
|
239
|
-
}
|
|
240
|
-
let l = null, g = 0;
|
|
241
|
-
if (i.intentId) {
|
|
242
|
-
const s = i.quote?.routeProviders?.some((A) => A === "LZ_OFT"), a = s ? Ke : 600 * 1e3;
|
|
243
|
-
t.console.log("[trails-sdk] Intent polling configuration:", {
|
|
244
|
-
isOFTRoute: s,
|
|
245
|
-
maxWaitTime: a,
|
|
246
|
-
routeProviders: i.quote?.routeProviders
|
|
247
|
-
});
|
|
248
|
-
try {
|
|
249
|
-
g = Date.now(), l = await pt({
|
|
250
|
-
intentId: i.intentId,
|
|
251
|
-
trailsClient: y,
|
|
252
|
-
abortSignal: C,
|
|
253
|
-
callbacks: {
|
|
254
|
-
onDepositTransactionFound: async (n, u) => {
|
|
255
|
-
if (t.console.log("[trails-sdk] Deposit transaction found:", n), e[0]) {
|
|
256
|
-
if (mt(n)) {
|
|
257
|
-
if (t.console.log("[trails-sdk] Deposit transaction hash is synthetic, marking deposit from status", {
|
|
258
|
-
txHash: n,
|
|
259
|
-
status: u.depositTransaction?.status
|
|
260
|
-
}), u.depositTransaction?.status === "SUCCEEDED") {
|
|
261
|
-
const r = e[0].transactionHash, h = e[0].explorerUrl, U = ft(r);
|
|
262
|
-
e[0] = {
|
|
263
|
-
...e[0],
|
|
264
|
-
state: "confirmed",
|
|
265
|
-
transactionHash: U ? r : "",
|
|
266
|
-
explorerUrl: U ? h : "",
|
|
267
|
-
txnMinedAt: u.depositTransaction?.txnMinedAt || void 0
|
|
268
|
-
}, k(e);
|
|
269
|
-
}
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
try {
|
|
273
|
-
const r = await z.getTransactionReceipt({ hash: n });
|
|
274
|
-
e[0] = ne(r, G, e[0]?.label), e[0].decodedTokenSweeperEvents = le(r), e[0].decodedGuestModuleEvents = ce(r), k(e);
|
|
275
|
-
} catch (r) {
|
|
276
|
-
t.console.error("[trails-sdk] Error fetching deposit receipt:", r);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
onOriginTransactionFound: async (n, u) => {
|
|
281
|
-
t.console.log("[trails-sdk] Origin transaction found:", n), fe = { txnHash: n };
|
|
282
|
-
try {
|
|
283
|
-
const r = await z.getTransactionReceipt({ hash: n }), h = e.length > 1 ? 1 : 0;
|
|
284
|
-
e[h] && (e[h] = ne(r, G, e[h]?.label), e[h].decodedTokenSweeperEvents = le(r), e[h].decodedGuestModuleEvents = ce(r), !u.depositTransaction?.txnHash && !u.depositTransaction?.status && e.length > 1 && e[0] && (e[0] = ne(r, G, e[0]?.label), e[0].decodedTokenSweeperEvents = le(r), e[0].decodedGuestModuleEvents = ce(r)), k(e));
|
|
285
|
-
} catch (r) {
|
|
286
|
-
t.console.error("[trails-sdk] Error fetching origin receipt:", r);
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
onDestinationTransactionFound: async (n) => {
|
|
290
|
-
t.console.log("[trails-sdk] Destination transaction found:", n), re = { txnHash: n };
|
|
291
|
-
try {
|
|
292
|
-
const u = await be.getTransactionReceipt({ hash: n }), r = e.length - 1;
|
|
293
|
-
e[r] && (e[r] = ne(u, o.destinationChainId, e[r]?.label), e[r].decodedTokenSweeperEvents = le(u), e[r].decodedGuestModuleEvents = ce(u), k(e));
|
|
294
|
-
} catch (u) {
|
|
295
|
-
t.console.error("[trails-sdk] Error fetching destination receipt:", u);
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
onReceiptUpdate: async (n, u) => {
|
|
299
|
-
t.console.log("[trails-sdk] Receipt update:", {
|
|
300
|
-
status: n.status,
|
|
301
|
-
done: u,
|
|
302
|
-
hasOrigin: !!n.originTransaction,
|
|
303
|
-
hasDestination: !!n.destinationTransaction,
|
|
304
|
-
hasRefund: !!n.refundTransaction
|
|
305
|
-
});
|
|
306
|
-
const r = kt({
|
|
307
|
-
currentStates: e,
|
|
308
|
-
receipt: n
|
|
309
|
-
});
|
|
310
|
-
if (r.changed && (e = r.transactionStates, k(e)), u && (n.status === "ABORTED" || n.status === "FAILED")) {
|
|
311
|
-
const h = n.status === "ABORTED" ? "aborted" : "failed", U = n.depositTransaction?.statusReason || n.originTransaction?.statusReason || n.destinationTransaction?.statusReason;
|
|
312
|
-
for (const te of e) te.state === "pending" && (te.state = h, U && (te.statusReason = U));
|
|
313
|
-
k(e);
|
|
314
|
-
}
|
|
315
|
-
if (n.depositTransaction?.status === "REVERTED") {
|
|
316
|
-
const h = n.depositTransaction.statusReason || "deposit reverted";
|
|
317
|
-
for (const U of e) U.state === "pending" && (U.state = "failed", U.statusReason = h);
|
|
318
|
-
k(e);
|
|
319
|
-
}
|
|
320
|
-
if (n.refundTransaction) {
|
|
321
|
-
const h = Tt(e, {
|
|
322
|
-
chainId: n.refundTransaction.chainId,
|
|
323
|
-
txnHash: n.refundTransaction.txnHash,
|
|
324
|
-
status: n.refundTransaction.status
|
|
325
|
-
});
|
|
326
|
-
(h.length !== e.length || JSON.stringify(h) !== JSON.stringify(e)) && (e.length = 0, e.push(...h), k(e));
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
maxWaitTime: a
|
|
331
|
-
});
|
|
332
|
-
const A = [
|
|
333
|
-
Ce.SUCCEEDED,
|
|
334
|
-
Ce.FAILED,
|
|
335
|
-
Ce.REFUNDED,
|
|
336
|
-
Ce.ABORTED
|
|
337
|
-
], Ue = l?.summary, ke = !!l && l?.destinationTransaction?.status === "SUCCEEDED" && !!(Ue?.finishedAt || l?.destinationTransaction?.txnMinedAt || l?.destinationTransaction?.txnHash);
|
|
338
|
-
if (!(l && (A.includes(l.status) || ke))) {
|
|
339
|
-
const n = g > 0 ? Date.now() - g : 0, u = n >= a, r = u ? `Intent execution timed out after ${Math.round(a / 6e4)} minutes.` : "Unable to confirm final intent status from receipt polling.";
|
|
340
|
-
throw t.console.warn("[trails-sdk] Intent polling ended without terminal status", {
|
|
341
|
-
intentId: i.intentId,
|
|
342
|
-
status: l?.status,
|
|
343
|
-
maxWaitTime: a,
|
|
344
|
-
elapsedMs: n,
|
|
345
|
-
timedOut: u
|
|
346
|
-
}), ue({
|
|
347
|
-
error: `${r} Please check transaction history or query GetIntentReceipt.`,
|
|
348
|
-
userAddress: T.address,
|
|
349
|
-
mode: H,
|
|
350
|
-
fundMethod: c,
|
|
351
|
-
originTokenAddress: o.originTokenAddress
|
|
352
|
-
}), oe(void 0, b), f?.triggerCheckoutError && f.triggerCheckoutError("Unable to confirm final transaction status"), new Error(`${r} Please check transaction history or query GetIntentReceipt with this intent ID.`);
|
|
353
|
-
}
|
|
354
|
-
} catch (A) {
|
|
355
|
-
throw t.console.error("[trails-sdk] Error polling for intent receipt:", A), ue({
|
|
356
|
-
error: `Polling failed: ${Qe(A)}`,
|
|
357
|
-
userAddress: T.address,
|
|
358
|
-
mode: H,
|
|
359
|
-
fundMethod: c,
|
|
360
|
-
originTokenAddress: o.originTokenAddress
|
|
361
|
-
}), oe(void 0, b), f?.triggerCheckoutError && f.triggerCheckoutError("Unable to confirm transaction status"), new Error("Unable to confirm transaction status: polling for intent receipt failed", { cause: A });
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
if (l && (l.status === "ABORTED" || l.status === "FAILED")) {
|
|
365
|
-
const s = e[0]?.statusReason, a = s ? `Transaction ${l.status.toLowerCase()}: ${s}` : `Transaction ${l.status.toLowerCase()}`;
|
|
366
|
-
throw t.console.error(`[trails-sdk] Intent ${l.status}:`, i.intentId), ue({
|
|
367
|
-
error: a,
|
|
368
|
-
userAddress: T.address,
|
|
369
|
-
mode: H,
|
|
370
|
-
fundMethod: c,
|
|
371
|
-
originTokenAddress: o.originTokenAddress
|
|
372
|
-
}), oe(void 0, b), f?.triggerCheckoutError && f.triggerCheckoutError(a), new Error(a);
|
|
373
|
-
}
|
|
374
|
-
const J = e.some((s) => s?.decodedGuestModuleEvents?.some((a) => a?.type === "CallFailed")), Fe = e.some((s) => s?.refunded), d = e.some((s) => s?.state === "failed"), ae = !J && !Fe && !d ? "success" : "fail";
|
|
375
|
-
return Ve({
|
|
376
|
-
userAddress: T.address,
|
|
377
|
-
originIntentAddress: i.originIntentAddress,
|
|
378
|
-
originTxHash: p?.transactionHash,
|
|
379
|
-
destinationTxHash: re?.txnHash,
|
|
380
|
-
originChainId: o.originChainId,
|
|
381
|
-
destinationChainId: o.destinationChainId,
|
|
382
|
-
swapProvider: $ || void 0,
|
|
383
|
-
bridgeProvider: Y || void 0,
|
|
384
|
-
mode: H,
|
|
385
|
-
fundMethod: c,
|
|
386
|
-
originTokenAddress: o.originTokenAddress,
|
|
387
|
-
originTokenSymbol: P,
|
|
388
|
-
originTokenAmount: m,
|
|
389
|
-
originTokenAmountFormatted: ge,
|
|
390
|
-
destinationTokenAddress: o.destinationTokenAddress,
|
|
391
|
-
destinationTokenSymbol: R,
|
|
392
|
-
depositTokenAmount: m,
|
|
393
|
-
depositTokenAmountFormatted: ge,
|
|
394
|
-
depositTokenAmountUsd: he,
|
|
395
|
-
destinationTokenAmount: i.quote?.toAmount?.toString() || m,
|
|
396
|
-
destinationTokenAmountFormatted: Me(i.quote?.toAmount?.toString() || m, x),
|
|
397
|
-
originTokenDecimals: Q,
|
|
398
|
-
destinationTokenDecimals: x,
|
|
399
|
-
tradeType: Z?.toString(),
|
|
400
|
-
sourceTokenPriceUsd: S,
|
|
401
|
-
destinationTokenPriceUsd: M,
|
|
402
|
-
walletId: W,
|
|
403
|
-
destinationCalldata: D
|
|
404
|
-
}), oe(void 0, b), f?.triggerCheckoutComplete && f.triggerCheckoutComplete(ae, T.address), {
|
|
405
|
-
depositUserTxnReceipt: p,
|
|
406
|
-
originIntentTransaction: fe,
|
|
407
|
-
destinationIntentTransaction: re,
|
|
408
|
-
totalCompletionSeconds: await ht(e[0], e[e.length - 1])
|
|
409
|
-
};
|
|
410
|
-
}
|
|
411
|
-
async function jt(o) {
|
|
412
|
-
const { mainSignerAddress: i, originChainId: e, originTokenAddress: I, originTokenBalance: _, originTokenDecimals: j, originTokenSymbol: w, destinationChainId: N, destinationTokenAddress: T, destinationTokenSymbol: L, destinationTokenDecimals: Q, swapAmount: P, recipient: R, destinationApproveAddress: ie, destinationCalldata: D, account: S, chain: M, trailsClient: H, sourceTokenPriceUsd: c, destinationTokenPriceUsd: f, originNativeTokenPriceUsd: W, slippageTolerance: y, tradeType: C = He.EXACT_INPUT, swapProvider: B, bridgeProvider: x, swapProviderFallback: $, bridgeProviderFallback: Y, fundMethod: Z, mode: b, checkoutOnHandlers: O, selectedFeeOption: q, walletId: F, abortSignal: E, commitIntentFn: v, isSmartWallet: G, isSenderContractOnOrigin: z, trailsApiKey: se, trailsApiUrl: ve, sequenceMetadataUrl: Pe, intentProtocolVersion: ye } = o;
|
|
413
|
-
t.console.log("[trails-sdk] handleIntent called");
|
|
414
|
-
const m = Z ?? "wallet", ge = M, he = I, p = o.publicClient ?? we(ge.id), fe = _e(e, N), re = Le(I, T), V = fe && re, be = B, me = x;
|
|
415
|
-
let k = !1;
|
|
416
|
-
const pe = je(D), ee = $e(he), l = await tt(i, e, I, P, N, T, C === He.EXACT_OUTPUT ? P : "0", R, ie, D, y, C, be, me, $, Y, void 0, F, G, z, ye, b);
|
|
417
|
-
V && pe && ee && (l.destinationCallValue = BigInt(P)), l.fundMethod = et(m), t.console.log("[trails-sdk] Creating intent with args:", l);
|
|
418
|
-
const { intent: g, gasFeeOptions: J, trailsContracts: Fe, passthrough: d, transactionStates: ae } = await lt(H, l, {
|
|
419
|
-
originTokenSymbol: w,
|
|
420
|
-
destinationTokenSymbol: L,
|
|
421
|
-
feeTokenSymbol: w
|
|
422
|
-
}, E);
|
|
423
|
-
if (t.console.log("[trails-sdk] Quote intent:", g), t.console.log("[trails-sdk] Quote intent gasFeeOptions:", J), t.console.log("[trails-sdk] Quote passthrough:", d), t.console.log("[trails-sdk] Quote transactionStates:", ae), !g.originPrecondition || !g.originCalls) throw new Error("Invalid intent");
|
|
424
|
-
const s = V && !o.isMultiCallEncoding && m === "wallet" && d?.eligible === !0 && !!d?.passthroughTransaction && Ne({
|
|
425
|
-
selectedFeeOption: q,
|
|
426
|
-
gasFeeOptions: J
|
|
427
|
-
});
|
|
428
|
-
t.console.log("[trails-sdk] Passthrough decision:", {
|
|
429
|
-
usePassthrough: s,
|
|
430
|
-
isSameChainSameToken: V,
|
|
431
|
-
fundMethod: m,
|
|
432
|
-
passthroughEligible: d?.eligible,
|
|
433
|
-
hasPassthroughTransaction: !!d?.passthroughTransaction,
|
|
434
|
-
feeOptionPassthroughEligible: q?.isPassthroughEligible,
|
|
435
|
-
selectedFeeOption: q
|
|
436
|
-
});
|
|
437
|
-
const a = (s && d?.passthroughTransaction ? d.passthroughTransaction : g.depositTransaction).amount.toString(), A = d?.eligible === !0 ? d?.quote : void 0, Ue = !!A, ke = A ?? g.quote, n = ke.toAmount.toString(), u = ke.toAmountMin.toString() || n, r = d?.transactionStates?.length ? qe({ transactionStates: d.transactionStates }) : [], h = ae?.length ? qe({ transactionStates: ae }) : [], U = s ? r : h, [te, de] = await Promise.all([m === "wallet" ? We({
|
|
438
|
-
account: S,
|
|
439
|
-
tokenAddress: I,
|
|
440
|
-
depositAmount: a,
|
|
441
|
-
publicClient: p,
|
|
442
|
-
knownBalance: _ && _ !== "0" ? _ : void 0,
|
|
443
|
-
decimals: j
|
|
444
|
-
}) : Promise.resolve({ hasEnoughBalance: !0 }), rt({
|
|
445
|
-
originDepositAddress: s ? R : g.originIntentAddress,
|
|
446
|
-
destinationDepositAddress: s ? R : g.destinationIntentAddress,
|
|
447
|
-
destinationAddress: R,
|
|
448
|
-
trailsApiKey: se || "",
|
|
449
|
-
trailsApiUrl: ve || "",
|
|
450
|
-
sequenceMetadataUrl: Pe || "",
|
|
451
|
-
destinationCalldata: D,
|
|
452
|
-
originAmount: a,
|
|
453
|
-
destinationAmount: n,
|
|
454
|
-
originAmountMin: a,
|
|
455
|
-
destinationAmountMin: u,
|
|
456
|
-
originTokenAddress: I,
|
|
457
|
-
destinationTokenAddress: T,
|
|
458
|
-
originTokenPriceUsd: c?.toString() || null,
|
|
459
|
-
destinationTokenPriceUsd: f?.toString() || null,
|
|
460
|
-
fees: V ? void 0 : Ue && d?.fees ? ot(d.fees) : nt(g, {
|
|
461
|
-
tradeType: C,
|
|
462
|
-
fromAmountUsd: Ee({
|
|
463
|
-
amount: xe(a, j),
|
|
464
|
-
usdPrice: c
|
|
465
|
-
}),
|
|
466
|
-
toAmountUsd: Ee({
|
|
467
|
-
amount: xe(n, Q),
|
|
468
|
-
usdPrice: f
|
|
469
|
-
})
|
|
470
|
-
}),
|
|
471
|
-
originChainId: e,
|
|
472
|
-
destinationChainId: N,
|
|
473
|
-
slippageTolerance: y,
|
|
474
|
-
priceImpact: A ? A.priceImpact?.toString() ?? "0" : it(g),
|
|
475
|
-
priceImpactUsd: A ? A.priceImpactUsd?.toString() ?? "0" : st(g),
|
|
476
|
-
transactionStates: U,
|
|
477
|
-
originNativeTokenPriceUsd: W,
|
|
478
|
-
intent: s ? void 0 : g
|
|
479
|
-
})]);
|
|
480
|
-
return k = !te.hasEnoughBalance, de.noSufficientBalance = k, m === "wallet" && t.console.log("[trails-sdk] Balance check with actual deposit amount:", {
|
|
481
|
-
depositAmount: a,
|
|
482
|
-
originTokenAddress: I,
|
|
483
|
-
hasEnoughBalance: te.hasEnoughBalance,
|
|
484
|
-
noSufficientBalance: k
|
|
485
|
-
}), de.passthroughTransactionStates = r, de.passthroughEligible = d?.eligible === !0, O?.triggerCheckoutQuote && O.triggerCheckoutQuote(de), t.console.log("[trails-sdk] handleIntent returning quote and send function"), {
|
|
486
|
-
quote: de,
|
|
487
|
-
feeOptions: J,
|
|
488
|
-
send: async (Te) => {
|
|
489
|
-
if (!o.walletClient) throw new Error("[trails-sdk] Wallet client not provided. Connect a wallet to execute transactions.");
|
|
490
|
-
const { skipCommit: ze } = Te;
|
|
491
|
-
try {
|
|
492
|
-
const K = Te.selectedFeeOption, X = m === "wallet" && d?.eligible === !0 && !!d?.passthroughTransaction && Ne({
|
|
493
|
-
selectedFeeOption: K,
|
|
494
|
-
gasFeeOptions: J
|
|
495
|
-
});
|
|
496
|
-
t.console.log("[trails-sdk] Send passthrough decision:", {
|
|
497
|
-
sendUsePassthrough: X,
|
|
498
|
-
passthroughEligible: d?.eligible,
|
|
499
|
-
hasPassthroughTransaction: !!d?.passthroughTransaction,
|
|
500
|
-
sendFeeOptionPassthroughEligible: K?.isPassthroughEligible,
|
|
501
|
-
sendFeeOption: K
|
|
502
|
-
});
|
|
503
|
-
const Oe = X && d?.passthroughTransaction ? d.passthroughTransaction : g.depositTransaction, Re = X ? r : h, Je = async () => {
|
|
504
|
-
if (!ze)
|
|
505
|
-
try {
|
|
506
|
-
t.console.log("[trails-sdk] intentHandler: About to commit intent", {
|
|
507
|
-
hasCommitIntentFn: !!v,
|
|
508
|
-
intentId: g.intentId
|
|
509
|
-
}), await (v || ((Ie) => ct(H, Ie, {
|
|
510
|
-
originTokenSymbol: w,
|
|
511
|
-
destinationTokenSymbol: L
|
|
512
|
-
})))(g), t.console.log("[trails-sdk] Intent committed successfully");
|
|
513
|
-
} catch (Ie) {
|
|
514
|
-
throw t.console.error("[trails-sdk] Error committing intent", Ie), Ie;
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
|
-
return X && Oe ? Ct(o, Oe, Re, Te) : (await Je(), wt(o, g, Re, J, Fe, Te));
|
|
518
|
-
} catch (K) {
|
|
519
|
-
const X = Qe(K);
|
|
520
|
-
throw t.console.error("[trails-sdk] Error in handleIntent send:", K), ue({
|
|
521
|
-
error: X,
|
|
522
|
-
userAddress: S.address,
|
|
523
|
-
mode: b,
|
|
524
|
-
fundMethod: m,
|
|
525
|
-
originTokenAddress: I
|
|
526
|
-
}), O?.triggerCheckoutError && O.triggerCheckoutError(X), K;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
};
|
|
530
|
-
}
|
|
531
|
-
export {
|
|
532
|
-
jt as handleIntent
|
|
533
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transactionIntent/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { TransactionReceipt } from 'viem';
|
|
2
|
-
import { IntentReceipt, TransactionStateInfo } from '@0xtrails/api';
|
|
3
|
-
import { TransactionState, TransactionStateStatus } from '../../transactions.js';
|
|
4
|
-
export type { TransactionStateInfo } from '@0xtrails/api';
|
|
5
|
-
/**
|
|
6
|
-
* Convert API transactionStates to SDK TransactionState type.
|
|
7
|
-
* This normalizes the backend response format to the internal SDK format.
|
|
8
|
-
*/
|
|
9
|
-
export declare function getNormalizedTransactionStates(params: {
|
|
10
|
-
transactionStates: TransactionStateInfo[];
|
|
11
|
-
}): TransactionState[];
|
|
12
|
-
/**
|
|
13
|
-
* Immutably update a transaction state by its label.
|
|
14
|
-
* Returns a new array with the updated state.
|
|
15
|
-
*/
|
|
16
|
-
export declare function updateTransactionState(currentStates: TransactionState[], stateLabel: string, update: {
|
|
17
|
-
transactionHash?: string;
|
|
18
|
-
blockNumber?: number;
|
|
19
|
-
state?: TransactionStateStatus;
|
|
20
|
-
txnMinedAt?: string;
|
|
21
|
-
explorerUrl?: string;
|
|
22
|
-
refunded?: boolean;
|
|
23
|
-
refundTransactionHash?: string;
|
|
24
|
-
refundTransactionChainId?: number;
|
|
25
|
-
}): TransactionState[];
|
|
26
|
-
/**
|
|
27
|
-
* Update a transaction state with decoded events from a transaction receipt.
|
|
28
|
-
* Decodes both TokenSweeper and GuestModule events and updates the state accordingly.
|
|
29
|
-
* Returns a new array with the updated state.
|
|
30
|
-
*/
|
|
31
|
-
export declare function updateTransactionStateWithDecodedEvents(currentStates: TransactionState[], stateLabel: string, receipt: TransactionReceipt, chainId: number): TransactionState[];
|
|
32
|
-
/**
|
|
33
|
-
* Update a transaction state at a specific index.
|
|
34
|
-
* Returns a new array with the updated state.
|
|
35
|
-
*/
|
|
36
|
-
export declare function updateTransactionStateAtIndex(currentStates: TransactionState[], index: number, update: Partial<TransactionState>): TransactionState[];
|
|
37
|
-
export declare function mapIntentTransactionStatus(status?: string | null): TransactionStateStatus | null;
|
|
38
|
-
export declare function applyIntentReceiptToTransactionStates(params: {
|
|
39
|
-
currentStates: TransactionState[];
|
|
40
|
-
receipt: IntentReceipt;
|
|
41
|
-
}): {
|
|
42
|
-
transactionStates: TransactionState[];
|
|
43
|
-
changed: boolean;
|
|
44
|
-
};
|
|
45
|
-
export declare function hasIntentReceiptObservedFundingProgress(receipt: IntentReceipt): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Apply refund information from an intent receipt to the transaction states.
|
|
48
|
-
* Finds the appropriate transaction by chainId and updates refund fields.
|
|
49
|
-
*/
|
|
50
|
-
export declare function applyRefundFromIntentReceipt(currentStates: TransactionState[], receipt: {
|
|
51
|
-
status?: string;
|
|
52
|
-
refundTransaction?: {
|
|
53
|
-
chainId?: number;
|
|
54
|
-
txnHash?: string;
|
|
55
|
-
transactionHash?: string;
|
|
56
|
-
};
|
|
57
|
-
originChainId?: number;
|
|
58
|
-
}): TransactionState[];
|
|
59
|
-
/**
|
|
60
|
-
* Insert a refund transaction state into the transaction states array.
|
|
61
|
-
* The refund is inserted after the last transaction on the same chain.
|
|
62
|
-
*/
|
|
63
|
-
export declare function insertRefundTransactionState(currentStates: TransactionState[], refundTransaction: {
|
|
64
|
-
chainId?: number;
|
|
65
|
-
txnHash?: string;
|
|
66
|
-
status?: string;
|
|
67
|
-
}): TransactionState[];
|
|
68
|
-
//# sourceMappingURL=transactionStateHelpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transactionStateHelpers.d.ts","sourceRoot":"","sources":["../../../src/transactionIntent/helpers/transactionStateHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,uBAAuB,CAAA;AAU9B,YAAY,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAEzD;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE;IACrD,iBAAiB,EAAE,oBAAoB,EAAE,CAAA;CAC1C,GAAG,gBAAgB,EAAE,CAerB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,aAAa,EAAE,gBAAgB,EAAE,EACjC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE;IACN,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,sBAAsB,CAAA;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC,GACA,gBAAgB,EAAE,CA+CpB;AAED;;;;GAIG;AACH,wBAAgB,uCAAuC,CACrD,aAAa,EAAE,gBAAgB,EAAE,EACjC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,MAAM,GACd,gBAAgB,EAAE,CA2DpB;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,aAAa,EAAE,gBAAgB,EAAE,EACjC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAChC,gBAAgB,EAAE,CAWpB;AAED,wBAAgB,0BAA0B,CACxC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GACrB,sBAAsB,GAAG,IAAI,CAQ/B;AAED,wBAAgB,qCAAqC,CAAC,MAAM,EAAE;IAC5D,aAAa,EAAE,gBAAgB,EAAE,CAAA;IACjC,OAAO,EAAE,aAAa,CAAA;CACvB,GAAG;IAAE,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAgF9D;AAED,wBAAgB,uCAAuC,CACrD,OAAO,EAAE,aAAa,GACrB,OAAO,CAQT;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,gBAAgB,EAAE,EACjC,OAAO,EAAE;IACP,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB,CAAC,EAAE;QAClB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,eAAe,CAAC,EAAE,MAAM,CAAA;KACzB,CAAA;IACD,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,GACA,gBAAgB,EAAE,CAoCpB;AAqBD;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,gBAAgB,EAAE,EACjC,iBAAiB,EAAE;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,GACA,gBAAgB,EAAE,CAiDpB"}
|