0xtrails 0.16.2 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +488 -3
- package/dist/BluvoExchangeSelection.lazy-D6ynQVSb.js +1 -0
- package/dist/BluvoOnrampFlow.lazy-BcDqhGLi.js +143 -0
- package/dist/ConnectWalletCard-BkbHCcWi.js +26 -0
- package/dist/actionBuilder-CAS2u5wu.js +2 -0
- package/dist/actions/index.d.ts +7 -23
- package/dist/actions/index.js +1 -37
- package/dist/contractConstants-CvJrYK9v.js +1 -0
- package/dist/defineProperty-BbfpZ9Tg.js +1 -0
- package/dist/edge-DmNcuJar.d.ts +121 -0
- package/dist/edge-L_Lk1K6j.js +1 -0
- package/dist/hooks/index.d.ts +6 -38
- package/dist/hooks/index.js +1 -67
- package/dist/hydrate/index.d.ts +196 -8
- package/dist/hydrate/index.js +1 -19
- package/dist/hydrate-QyWqQfec.js +1 -0
- package/dist/iife/trails.min.js +7324 -0
- package/dist/index-CMdwQmYL.d.ts +1044 -0
- package/dist/index.d.ts +1023 -114
- package/dist/index.js +1 -317
- package/dist/multicall-BCUHt_9t.d.ts +148 -0
- package/dist/offlineRecovery-BfgccnFf.d.ts +1232 -0
- package/dist/plugins/edge.d.ts +4 -0
- package/dist/plugins/edge.js +1 -0
- package/dist/quoteError-CmTH5Qm2.d.ts +24 -0
- package/dist/src-Cy3oxYgV.js +94 -0
- package/dist/sushiswapV3-D3h41LNZ.d.ts +723 -0
- package/dist/tokenTypes-D812t5L9.d.ts +31 -0
- package/dist/types-BK0WkVnx.d.ts +2161 -0
- package/dist/useViewManager-BeUH_k1s.d.ts +1224 -0
- package/dist/{actions/utils.d.ts → utils-KPnWBA9x.d.ts} +77 -52
- package/dist/widget/connect-showcase.d.ts +8 -0
- package/dist/widget/connect-showcase.js +1 -0
- package/dist/widget/index.d.ts +5 -21
- package/dist/widget/index.js +1 -33
- package/package.json +42 -42
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/defineProperty.js +0 -12
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/toPrimitive.js +0 -14
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/toPropertyKey.js +0 -9
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/typeof.js +0 -11
- package/dist/abi.d.ts +0 -37
- package/dist/abi.d.ts.map +0 -1
- package/dist/abis/erc20.d.ts +0 -19
- package/dist/abis/erc20.d.ts.map +0 -1
- package/dist/abis/requireUtils.d.ts +0 -134
- package/dist/abis/requireUtils.d.ts.map +0 -1
- package/dist/abis/requireUtils.js +0 -168
- package/dist/abis/trailsHydrate.d.ts +0 -7
- package/dist/abis/trailsHydrate.d.ts.map +0 -1
- package/dist/abis/trailsRouter.d.ts +0 -30
- package/dist/abis/trailsRouter.d.ts.map +0 -1
- package/dist/abis/trailsRouter.js +0 -66
- package/dist/abis/trailsSweep.d.ts +0 -7
- package/dist/abis/trailsSweep.d.ts.map +0 -1
- package/dist/abortController.d.ts +0 -8
- package/dist/abortController.d.ts.map +0 -1
- package/dist/abortController.js +0 -23
- package/dist/actions/actionBuilder.d.ts +0 -424
- package/dist/actions/actionBuilder.d.ts.map +0 -1
- package/dist/actions/actionBuilder.js +0 -173
- package/dist/actions/constants.d.ts +0 -1809
- package/dist/actions/constants.d.ts.map +0 -1
- package/dist/actions/constants.js +0 -37
- package/dist/actions/custom-integrations/sushiswapV3/addresses.d.ts +0 -4
- package/dist/actions/custom-integrations/sushiswapV3/addresses.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/addresses.js +0 -33
- package/dist/actions/custom-integrations/sushiswapV3/calldata.d.ts +0 -4
- package/dist/actions/custom-integrations/sushiswapV3/calldata.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/calldata.js +0 -124
- package/dist/actions/custom-integrations/sushiswapV3/calls.d.ts +0 -28
- package/dist/actions/custom-integrations/sushiswapV3/calls.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/calls.js +0 -27
- package/dist/actions/custom-integrations/sushiswapV3/helpers.d.ts +0 -15
- package/dist/actions/custom-integrations/sushiswapV3/helpers.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/helpers.js +0 -27
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.d.ts +0 -9
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.js +0 -246
- package/dist/actions/custom-integrations/sushiswapV3/types.d.ts +0 -95
- package/dist/actions/custom-integrations/sushiswapV3/types.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/addresses.d.ts +0 -4
- package/dist/actions/custom-integrations/uniswapV3/addresses.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/addresses.js +0 -33
- package/dist/actions/custom-integrations/uniswapV3/calldata.d.ts +0 -4
- package/dist/actions/custom-integrations/uniswapV3/calldata.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/calldata.js +0 -190
- package/dist/actions/custom-integrations/uniswapV3/calls.d.ts +0 -50
- package/dist/actions/custom-integrations/uniswapV3/calls.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/calls.js +0 -27
- package/dist/actions/custom-integrations/uniswapV3/helpers.d.ts +0 -23
- package/dist/actions/custom-integrations/uniswapV3/helpers.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/helpers.js +0 -27
- package/dist/actions/custom-integrations/uniswapV3/types.d.ts +0 -90
- package/dist/actions/custom-integrations/uniswapV3/types.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.d.ts +0 -9
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.js +0 -244
- package/dist/actions/destinationCalls.d.ts +0 -17
- package/dist/actions/destinationCalls.d.ts.map +0 -1
- package/dist/actions/destinationCalls.js +0 -43
- package/dist/actions/dynamic.d.ts +0 -97
- package/dist/actions/dynamic.d.ts.map +0 -1
- package/dist/actions/dynamic.js +0 -27
- package/dist/actions/hooks/useEarnBalances.d.ts +0 -53
- package/dist/actions/hooks/useEarnBalances.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnBalances.js +0 -37
- package/dist/actions/hooks/useEarnMarkets.d.ts +0 -29
- package/dist/actions/hooks/useEarnMarkets.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnMarkets.js +0 -30
- package/dist/actions/hooks/useEarnProviders.d.ts +0 -18
- package/dist/actions/hooks/useEarnProviders.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnProviders.js +0 -25
- package/dist/actions/hooks/useResolveActions.d.ts +0 -19
- package/dist/actions/hooks/useResolveActions.d.ts.map +0 -1
- package/dist/actions/hooks/useResolveActions.js +0 -56
- package/dist/actions/index.d.ts.map +0 -1
- package/dist/actions/resolveActions.d.ts +0 -13
- package/dist/actions/resolveActions.d.ts.map +0 -1
- package/dist/actions/resolveActions.js +0 -267
- package/dist/actions/resolvers.d.ts +0 -29
- package/dist/actions/resolvers.d.ts.map +0 -1
- package/dist/actions/resolvers.js +0 -161
- package/dist/actions/types/earn.d.ts +0 -51
- package/dist/actions/types/earn.d.ts.map +0 -1
- package/dist/actions/types.d.ts +0 -319
- package/dist/actions/types.d.ts.map +0 -1
- package/dist/actions/types.js +0 -24
- package/dist/actions/utils.d.ts.map +0 -1
- package/dist/actions/utils.js +0 -203
- package/dist/adapters/evmAdapter.d.ts +0 -10
- package/dist/adapters/evmAdapter.d.ts.map +0 -1
- package/dist/adapters/evmAdapter.js +0 -28
- package/dist/analytics/hooks/useWidgetAnalytics.d.ts +0 -8
- package/dist/analytics/hooks/useWidgetAnalytics.d.ts.map +0 -1
- package/dist/analytics/hooks/useWidgetAnalytics.js +0 -41
- package/dist/analytics.d.ts +0 -715
- package/dist/analytics.d.ts.map +0 -1
- package/dist/analytics.js +0 -881
- package/dist/chainRegistry.d.ts +0 -6
- package/dist/chainRegistry.d.ts.map +0 -1
- package/dist/chainRegistry.js +0 -47
- package/dist/chainResolution.d.ts +0 -6
- package/dist/chainResolution.d.ts.map +0 -1
- package/dist/chainResolution.js +0 -53
- package/dist/chainRpcClient.d.ts +0 -8
- package/dist/chainRpcClient.d.ts.map +0 -1
- package/dist/chainRpcClient.js +0 -67
- package/dist/chainSwitch.d.ts +0 -7
- package/dist/chainSwitch.d.ts.map +0 -1
- package/dist/chainSwitch.js +0 -66
- package/dist/chains.d.ts +0 -59
- package/dist/chains.d.ts.map +0 -1
- package/dist/chains.js +0 -152
- package/dist/committedIntentStore.d.ts +0 -5
- package/dist/committedIntentStore.d.ts.map +0 -1
- package/dist/committedIntentStore.js +0 -52
- package/dist/config.d.ts +0 -2
- package/dist/config.d.ts.map +0 -1
- package/dist/configDefaults.d.ts +0 -7
- package/dist/configDefaults.d.ts.map +0 -1
- package/dist/configDefaults.js +0 -9
- package/dist/configStore.d.ts +0 -31
- package/dist/configStore.d.ts.map +0 -1
- package/dist/configStore.js +0 -53
- package/dist/constants.d.ts +0 -176
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -184
- package/dist/contractConstants.d.ts +0 -8
- package/dist/contractConstants.d.ts.map +0 -1
- package/dist/contractConstants.js +0 -9
- package/dist/contractUtils.d.ts +0 -6
- package/dist/contractUtils.d.ts.map +0 -1
- package/dist/contractUtils.js +0 -19
- package/dist/cssUtils.d.ts +0 -2
- package/dist/cssUtils.d.ts.map +0 -1
- package/dist/cssUtils.js +0 -7
- package/dist/customChains.d.ts +0 -24
- package/dist/customChains.d.ts.map +0 -1
- package/dist/customChains.js +0 -20
- package/dist/customTokens.d.ts +0 -12
- package/dist/customTokens.d.ts.map +0 -1
- package/dist/customTokens.js +0 -64
- package/dist/decoders.d.ts +0 -69
- package/dist/decoders.d.ts.map +0 -1
- package/dist/decoders.js +0 -181
- package/dist/ens.d.ts +0 -20
- package/dist/ens.d.ts.map +0 -1
- package/dist/ens.js +0 -92
- package/dist/error.d.ts +0 -97
- package/dist/error.d.ts.map +0 -1
- package/dist/error.js +0 -298
- package/dist/estimate.d.ts +0 -78
- package/dist/estimate.d.ts.map +0 -1
- package/dist/estimate.js +0 -147
- package/dist/explorer.d.ts +0 -12
- package/dist/explorer.d.ts.map +0 -1
- package/dist/explorer.js +0 -15
- package/dist/fees.d.ts +0 -65
- package/dist/fees.d.ts.map +0 -1
- package/dist/fees.js +0 -165
- package/dist/gasless.d.ts +0 -123
- package/dist/gasless.d.ts.map +0 -1
- package/dist/gasless.js +0 -314
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/persistedToken.d.ts +0 -22
- package/dist/hooks/persistedToken.d.ts.map +0 -1
- package/dist/hooks/persistedToken.js +0 -65
- package/dist/hooks/prepareTrailsSendTransactionDestination.d.ts +0 -26
- package/dist/hooks/prepareTrailsSendTransactionDestination.d.ts.map +0 -1
- package/dist/hooks/prepareTrailsSendTransactionDestination.js +0 -33
- package/dist/hooks/useAmountUsd.d.ts +0 -12
- package/dist/hooks/useAmountUsd.d.ts.map +0 -1
- package/dist/hooks/useAmountUsd.js +0 -21
- package/dist/hooks/useBalanceVisible.d.ts +0 -15
- package/dist/hooks/useBalanceVisible.d.ts.map +0 -1
- package/dist/hooks/useBalanceVisible.js +0 -46
- package/dist/hooks/useBluvoTokenList.d.ts +0 -13
- package/dist/hooks/useBluvoTokenList.d.ts.map +0 -1
- package/dist/hooks/useBluvoTokenList.js +0 -57
- package/dist/hooks/useChainFilter.d.ts +0 -14
- package/dist/hooks/useChainFilter.d.ts.map +0 -1
- package/dist/hooks/useChainFilter.js +0 -24
- package/dist/hooks/useCheckout.d.ts +0 -80
- package/dist/hooks/useCheckout.d.ts.map +0 -1
- package/dist/hooks/useCheckout.js +0 -118
- package/dist/hooks/useClickTracking.d.ts +0 -12
- package/dist/hooks/useClickTracking.d.ts.map +0 -1
- package/dist/hooks/useClickTracking.js +0 -37
- package/dist/hooks/useCombinedHistory.d.ts +0 -50
- package/dist/hooks/useCombinedHistory.d.ts.map +0 -1
- package/dist/hooks/useCombinedHistory.js +0 -168
- package/dist/hooks/useCustomTokenSearch.d.ts +0 -28
- package/dist/hooks/useCustomTokenSearch.d.ts.map +0 -1
- package/dist/hooks/useCustomTokenSearch.js +0 -165
- package/dist/hooks/useDebounce.d.ts +0 -10
- package/dist/hooks/useDebounce.d.ts.map +0 -1
- package/dist/hooks/useDebounce.js +0 -15
- package/dist/hooks/useDebugScreens.d.ts +0 -17
- package/dist/hooks/useDebugScreens.d.ts.map +0 -1
- package/dist/hooks/useDebugScreens.js +0 -412
- package/dist/hooks/useDefaultDestinationToken.d.ts +0 -20
- package/dist/hooks/useDefaultDestinationToken.d.ts.map +0 -1
- package/dist/hooks/useDefaultDestinationToken.js +0 -60
- package/dist/hooks/useDefaultOriginToken.d.ts +0 -26
- package/dist/hooks/useDefaultOriginToken.d.ts.map +0 -1
- package/dist/hooks/useDefaultOriginToken.js +0 -120
- package/dist/hooks/useDepositMonitor.d.ts +0 -20
- package/dist/hooks/useDepositMonitor.d.ts.map +0 -1
- package/dist/hooks/useDepositMonitor.js +0 -54
- package/dist/hooks/useDestinationSelectedToken.d.ts +0 -38
- package/dist/hooks/useDestinationSelectedToken.d.ts.map +0 -1
- package/dist/hooks/useDestinationSelectedToken.js +0 -178
- package/dist/hooks/useDisplayCurrencyPreference.d.ts +0 -15
- package/dist/hooks/useDisplayCurrencyPreference.d.ts.map +0 -1
- package/dist/hooks/useDisplayCurrencyPreference.js +0 -57
- package/dist/hooks/useEarnPool.d.ts +0 -12
- package/dist/hooks/useEarnPool.d.ts.map +0 -1
- package/dist/hooks/useEarnPool.js +0 -21
- package/dist/hooks/useEffectiveFundBalance.d.ts +0 -28
- package/dist/hooks/useEffectiveFundBalance.d.ts.map +0 -1
- package/dist/hooks/useEffectiveFundBalance.js +0 -24
- package/dist/hooks/useExchangeFundingSelection.d.ts +0 -17
- package/dist/hooks/useExchangeFundingSelection.d.ts.map +0 -1
- package/dist/hooks/useExchangeFundingSelection.js +0 -25
- package/dist/hooks/useExecutingIntentsCount.d.ts +0 -15
- package/dist/hooks/useExecutingIntentsCount.d.ts.map +0 -1
- package/dist/hooks/useExternalFundingReceiptSync.d.ts +0 -11
- package/dist/hooks/useExternalFundingReceiptSync.d.ts.map +0 -1
- package/dist/hooks/useExternalFundingReceiptSync.js +0 -32
- package/dist/hooks/useFiatOnRampCurrencies.d.ts +0 -15
- package/dist/hooks/useFiatOnRampCurrencies.d.ts.map +0 -1
- package/dist/hooks/useFiatOnRampCurrencies.js +0 -14
- package/dist/hooks/useFiatSelectedCurrency.d.ts +0 -19
- package/dist/hooks/useFiatSelectedCurrency.d.ts.map +0 -1
- package/dist/hooks/useFiatSelectedCurrency.js +0 -55
- package/dist/hooks/useGetIntent.d.ts +0 -19
- package/dist/hooks/useGetIntent.d.ts.map +0 -1
- package/dist/hooks/useGetIntent.js +0 -26
- package/dist/hooks/useIntentReceiptBalances.d.ts +0 -16
- package/dist/hooks/useIntentReceiptBalances.d.ts.map +0 -1
- package/dist/hooks/useIntentReceiptBalances.js +0 -77
- package/dist/hooks/useIntentTransactionHistory.d.ts +0 -25
- package/dist/hooks/useIntentTransactionHistory.d.ts.map +0 -1
- package/dist/hooks/useIntentTransactionHistory.js +0 -357
- package/dist/hooks/useIsMobile.d.ts +0 -5
- package/dist/hooks/useIsMobile.d.ts.map +0 -1
- package/dist/hooks/useIsMobile.js +0 -21
- package/dist/hooks/useLocalePreference.d.ts +0 -21
- package/dist/hooks/useLocalePreference.d.ts.map +0 -1
- package/dist/hooks/useLocalePreference.js +0 -193
- package/dist/hooks/useMeldTransactionHistory.d.ts +0 -49
- package/dist/hooks/useMeldTransactionHistory.d.ts.map +0 -1
- package/dist/hooks/useMeldTransactionHistory.js +0 -71
- package/dist/hooks/useMeldTransactionStatus.d.ts +0 -61
- package/dist/hooks/useMeldTransactionStatus.d.ts.map +0 -1
- package/dist/hooks/useMeldTransactionStatus.js +0 -284
- package/dist/hooks/useOnRampCountryDefaults.d.ts +0 -18
- package/dist/hooks/useOnRampCountryDefaults.d.ts.map +0 -1
- package/dist/hooks/useOnRampCountryDefaults.js +0 -20
- package/dist/hooks/useOnRampPaymentMethods.d.ts +0 -15
- package/dist/hooks/useOnRampPaymentMethods.d.ts.map +0 -1
- package/dist/hooks/useOnRampPaymentMethods.js +0 -27
- package/dist/hooks/useOnRampProviderWidget.d.ts +0 -40
- package/dist/hooks/useOnRampProviderWidget.d.ts.map +0 -1
- package/dist/hooks/useOnRampProviderWidget.js +0 -70
- package/dist/hooks/useOnRampQuote.d.ts +0 -38
- package/dist/hooks/useOnRampQuote.d.ts.map +0 -1
- package/dist/hooks/useOnRampQuote.js +0 -159
- package/dist/hooks/useOnRampTransactionStatus.d.ts +0 -73
- package/dist/hooks/useOnRampTransactionStatus.d.ts.map +0 -1
- package/dist/hooks/useOriginSelectedToken.d.ts +0 -22
- package/dist/hooks/useOriginSelectedToken.d.ts.map +0 -1
- package/dist/hooks/useOriginSelectedToken.js +0 -127
- package/dist/hooks/usePayMessage.d.ts +0 -35
- package/dist/hooks/usePayMessage.d.ts.map +0 -1
- package/dist/hooks/usePayMessage.js +0 -333
- package/dist/hooks/usePriceImpactWarning.d.ts +0 -8
- package/dist/hooks/usePriceImpactWarning.d.ts.map +0 -1
- package/dist/hooks/usePriceImpactWarning.js +0 -9
- package/dist/hooks/useQuote.d.ts +0 -611
- package/dist/hooks/useQuote.d.ts.map +0 -1
- package/dist/hooks/useQuote.js +0 -590
- package/dist/hooks/useRecentChains.d.ts +0 -7
- package/dist/hooks/useRecentChains.d.ts.map +0 -1
- package/dist/hooks/useRecentChains.js +0 -52
- package/dist/hooks/useRecentTokens.d.ts +0 -7
- package/dist/hooks/useRecentTokens.d.ts.map +0 -1
- package/dist/hooks/useRecentTokens.js +0 -82
- package/dist/hooks/useRecipients.d.ts +0 -17
- package/dist/hooks/useRecipients.d.ts.map +0 -1
- package/dist/hooks/useRecipients.js +0 -75
- package/dist/hooks/useSelectedFeeOption.d.ts +0 -31
- package/dist/hooks/useSelectedFeeOption.d.ts.map +0 -1
- package/dist/hooks/useSelectedFeeOption.js +0 -113
- package/dist/hooks/useSelectedFundMethod.d.ts +0 -73
- package/dist/hooks/useSelectedFundMethod.d.ts.map +0 -1
- package/dist/hooks/useSelectedFundMethod.js +0 -51
- package/dist/hooks/useSelectedRecipient.d.ts +0 -12
- package/dist/hooks/useSelectedRecipient.d.ts.map +0 -1
- package/dist/hooks/useSelectedRecipient.js +0 -39
- package/dist/hooks/useSendForm.d.ts +0 -141
- package/dist/hooks/useSendForm.d.ts.map +0 -1
- package/dist/hooks/useSendForm.js +0 -595
- package/dist/hooks/useSwapAmount.d.ts +0 -13
- package/dist/hooks/useSwapAmount.d.ts.map +0 -1
- package/dist/hooks/useSwapAmount.js +0 -24
- package/dist/hooks/useSwapState.d.ts +0 -21
- package/dist/hooks/useSwapState.d.ts.map +0 -1
- package/dist/hooks/useSwapState.js +0 -44
- package/dist/hooks/useTargetAmount.d.ts +0 -6
- package/dist/hooks/useTargetAmount.d.ts.map +0 -1
- package/dist/hooks/useTargetAmount.js +0 -17
- package/dist/hooks/useTheme.d.ts +0 -14
- package/dist/hooks/useTheme.d.ts.map +0 -1
- package/dist/hooks/useTheme.js +0 -47
- package/dist/hooks/useTokenList.d.ts +0 -43
- package/dist/hooks/useTokenList.d.ts.map +0 -1
- package/dist/hooks/useTokenList.js +0 -456
- package/dist/hooks/useTrailsSendTransaction.d.ts +0 -139
- package/dist/hooks/useTrailsSendTransaction.d.ts.map +0 -1
- package/dist/hooks/useTrailsSendTransaction.js +0 -418
- package/dist/hooks/useViewManager.d.ts +0 -89
- package/dist/hooks/useViewManager.d.ts.map +0 -1
- package/dist/hooks/useViewManager.js +0 -274
- package/dist/hooks/useWalletConnectionContext.d.ts +0 -26
- package/dist/hooks/useWalletConnectionContext.d.ts.map +0 -1
- package/dist/hooks/useWalletConnectionContext.js +0 -53
- package/dist/hooks/useWidgetProps.d.ts +0 -13
- package/dist/hooks/useWidgetProps.d.ts.map +0 -1
- package/dist/hooks/useWidgetProps.js +0 -18
- package/dist/hydrate/builder.d.ts +0 -131
- package/dist/hydrate/builder.d.ts.map +0 -1
- package/dist/hydrate/builder.js +0 -210
- package/dist/hydrate/constants.d.ts +0 -13
- package/dist/hydrate/constants.d.ts.map +0 -1
- package/dist/hydrate/constants.js +0 -5
- package/dist/hydrate/encodeExecute.d.ts +0 -73
- package/dist/hydrate/encodeExecute.d.ts.map +0 -1
- package/dist/hydrate/encodeExecute.js +0 -60
- package/dist/hydrate/index.d.ts.map +0 -1
- package/dist/hydrate/multicall.d.ts +0 -69
- package/dist/hydrate/multicall.d.ts.map +0 -1
- package/dist/hydrate/multicall.js +0 -167
- package/dist/hydrate/payload.d.ts +0 -38
- package/dist/hydrate/payload.d.ts.map +0 -1
- package/dist/hydrate/payload.js +0 -26
- package/dist/hydrate/selectors.d.ts +0 -28
- package/dist/hydrate/selectors.d.ts.map +0 -1
- package/dist/hydrate/selectors.js +0 -326
- package/dist/hydrate/source.d.ts +0 -11
- package/dist/hydrate/source.d.ts.map +0 -1
- package/dist/hydrate/source.js +0 -19
- package/dist/hydrate/types.d.ts +0 -21
- package/dist/hydrate/types.d.ts.map +0 -1
- package/dist/hydrate/utils.d.ts +0 -8
- package/dist/hydrate/utils.d.ts.map +0 -1
- package/dist/hydrate/utils.js +0 -23
- package/dist/index.d.ts.map +0 -1
- package/dist/indexerClient.d.ts +0 -23
- package/dist/indexerClient.d.ts.map +0 -1
- package/dist/indexerClient.js +0 -40
- package/dist/intentConfigStore.d.ts +0 -8
- package/dist/intentConfigStore.d.ts.map +0 -1
- package/dist/intentConfigStore.js +0 -40
- package/dist/intentProtocolApi.d.ts +0 -11
- package/dist/intentProtocolApi.d.ts.map +0 -1
- package/dist/intentProtocolApi.js +0 -11
- package/dist/intentProtocolEncoding.d.ts +0 -30
- package/dist/intentProtocolEncoding.d.ts.map +0 -1
- package/dist/intentProtocolEncoding.js +0 -114
- package/dist/intentProtocolResolver.d.ts +0 -28
- package/dist/intentProtocolResolver.d.ts.map +0 -1
- package/dist/intentProtocolResolver.js +0 -34
- package/dist/intentReceiptMonitor.d.ts +0 -24
- package/dist/intentReceiptMonitor.d.ts.map +0 -1
- package/dist/intentReceiptMonitor.js +0 -30
- package/dist/intentReceiptPoller.d.ts +0 -69
- package/dist/intentReceiptPoller.d.ts.map +0 -1
- package/dist/intentReceiptPoller.js +0 -162
- package/dist/intentValidation.d.ts +0 -5
- package/dist/intentValidation.d.ts.map +0 -1
- package/dist/intentValidation.js +0 -19
- package/dist/intents.d.ts +0 -148
- package/dist/intents.d.ts.map +0 -1
- package/dist/intents.js +0 -391
- package/dist/keyMachineClient.d.ts +0 -9
- package/dist/keyMachineClient.d.ts.map +0 -1
- package/dist/keyMachineClient.js +0 -13
- package/dist/keymachine/index.d.ts +0 -34
- package/dist/keymachine/index.d.ts.map +0 -1
- package/dist/keymachine/index.js +0 -92
- package/dist/keymachine/key-machine.gen.d.ts +0 -461
- package/dist/keymachine/key-machine.gen.d.ts.map +0 -1
- package/dist/keymachine/key-machine.gen.js +0 -164
- package/dist/localeUtils.d.ts +0 -46
- package/dist/localeUtils.d.ts.map +0 -1
- package/dist/localeUtils.js +0 -60
- package/dist/logger/index.d.ts +0 -16
- package/dist/logger/index.d.ts.map +0 -1
- package/dist/logger/index.js +0 -57
- package/dist/logger/useSyncLoggerDebug.d.ts +0 -2
- package/dist/logger/useSyncLoggerDebug.d.ts.map +0 -1
- package/dist/logger/useSyncLoggerDebug.js +0 -9
- package/dist/logger.d.ts +0 -2
- package/dist/logger.d.ts.map +0 -1
- package/dist/meld/components/MeldCountriesList.d.ts +0 -9
- package/dist/meld/components/MeldCountriesList.d.ts.map +0 -1
- package/dist/meld/components/MeldCountriesList.js +0 -167
- package/dist/meld/components/MeldFundMethods.d.ts +0 -14
- package/dist/meld/components/MeldFundMethods.d.ts.map +0 -1
- package/dist/meld/components/MeldFundMethods.js +0 -163
- package/dist/meld/components/MeldProvidersList.d.ts +0 -11
- package/dist/meld/components/MeldProvidersList.d.ts.map +0 -1
- package/dist/meld/components/MeldProvidersList.js +0 -145
- package/dist/meld/components/MeldTokensList.d.ts +0 -12
- package/dist/meld/components/MeldTokensList.d.ts.map +0 -1
- package/dist/meld/components/MeldTokensList.js +0 -215
- package/dist/meld/components/SimpleHeader.d.ts +0 -8
- package/dist/meld/components/SimpleHeader.d.ts.map +0 -1
- package/dist/meld/components/SimpleHeader.js +0 -18
- package/dist/meld/utils/meld.d.ts +0 -41
- package/dist/meld/utils/meld.d.ts.map +0 -1
- package/dist/meld/utils/meld.js +0 -24
- package/dist/mutations.d.ts +0 -19
- package/dist/mutations.d.ts.map +0 -1
- package/dist/mutations.js +0 -91
- package/dist/offlineRecovery.d.ts +0 -24
- package/dist/offlineRecovery.d.ts.map +0 -1
- package/dist/offlineRecovery.js +0 -219
- package/dist/onramp/MeshConnectFlow.d.ts +0 -27
- package/dist/onramp/MeshConnectFlow.d.ts.map +0 -1
- package/dist/onramp/MeshConnectFlow.js +0 -41
- package/dist/onramp/MeshConnectIframe.d.ts +0 -22
- package/dist/onramp/MeshConnectIframe.d.ts.map +0 -1
- package/dist/onramp/MeshConnectIframe.js +0 -434
- package/dist/onramp/SendFromExchangeButton.d.ts +0 -16
- package/dist/onramp/SendFromExchangeButton.d.ts.map +0 -1
- package/dist/onramp/SendFromExchangeButton.js +0 -36
- package/dist/onramp/TrailsOnRampProvider.d.ts +0 -38
- package/dist/onramp/TrailsOnRampProvider.d.ts.map +0 -1
- package/dist/onramp/TrailsOnRampProvider.js +0 -25
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.d.ts +0 -12
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.d.ts.map +0 -1
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.js +0 -18
- package/dist/onramp/index.d.ts +0 -13
- package/dist/onramp/index.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.d.ts +0 -10
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.js +0 -62
- package/dist/onramp/mesh/components/MeshExchangeIcon.d.ts +0 -13
- package/dist/onramp/mesh/components/MeshExchangeIcon.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeIcon.js +0 -54
- package/dist/onramp/mesh/components/MeshExchangeSelection.d.ts +0 -12
- package/dist/onramp/mesh/components/MeshExchangeSelection.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeSelection.js +0 -135
- package/dist/onramp/mesh/components/MeshSessionOptions.d.ts +0 -15
- package/dist/onramp/mesh/components/MeshSessionOptions.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshSessionOptions.js +0 -68
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.d.ts +0 -9
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.js +0 -38
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.d.ts +0 -11
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.js +0 -21
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.d.ts +0 -71
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.js +0 -168
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.d.ts +0 -32
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.js +0 -28
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.d.ts +0 -19
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.js +0 -57
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.d.ts +0 -15
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.js +0 -45
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.d.ts +0 -7
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.js +0 -20
- package/dist/onramp/meshSessionStorage.d.ts +0 -13
- package/dist/onramp/meshSessionStorage.d.ts.map +0 -1
- package/dist/onramp/meshSessionStorage.js +0 -165
- package/dist/onramp/meshconnect.d.ts +0 -32
- package/dist/onramp/meshconnect.d.ts.map +0 -1
- package/dist/onramp/meshconnect.js +0 -124
- package/dist/onramp/trailsOnramp.d.ts +0 -32
- package/dist/onramp/trailsOnramp.d.ts.map +0 -1
- package/dist/onramp/trailsOnramp.js +0 -64
- package/dist/onramp-client/index.d.ts +0 -13
- package/dist/onramp-client/index.d.ts.map +0 -1
- package/dist/onramp-client/index.js +0 -19
- package/dist/onrampClient.d.ts +0 -10
- package/dist/onrampClient.d.ts.map +0 -1
- package/dist/onrampClient.js +0 -31
- package/dist/package.js +0 -123
- package/dist/placeholder.d.ts +0 -142
- package/dist/placeholder.d.ts.map +0 -1
- package/dist/placeholder.js +0 -95
- package/dist/poolUtils.d.ts +0 -16
- package/dist/poolUtils.d.ts.map +0 -1
- package/dist/poolUtils.js +0 -87
- package/dist/pools.d.ts +0 -33
- package/dist/pools.d.ts.map +0 -1
- package/dist/pools.js +0 -77
- package/dist/prepareSend.d.ts +0 -12
- package/dist/prepareSend.d.ts.map +0 -1
- package/dist/prepareSend.js +0 -207
- package/dist/query/QueryProvider.d.ts +0 -9
- package/dist/query/QueryProvider.d.ts.map +0 -1
- package/dist/query/QueryProvider.js +0 -13
- package/dist/query/balance.fetchers.d.ts +0 -116
- package/dist/query/balance.fetchers.d.ts.map +0 -1
- package/dist/query/balance.fetchers.js +0 -289
- package/dist/query/balance.hooks.d.ts +0 -80
- package/dist/query/balance.hooks.d.ts.map +0 -1
- package/dist/query/balance.hooks.js +0 -123
- package/dist/query/balance.queries.d.ts +0 -93
- package/dist/query/balance.queries.d.ts.map +0 -1
- package/dist/query/balance.queries.js +0 -142
- package/dist/query/chains.hooks.d.ts +0 -5
- package/dist/query/chains.hooks.d.ts.map +0 -1
- package/dist/query/chains.hooks.js +0 -40
- package/dist/query/chains.queries.d.ts +0 -16
- package/dist/query/chains.queries.d.ts.map +0 -1
- package/dist/query/chains.queries.js +0 -17
- package/dist/query/client.d.ts +0 -16
- package/dist/query/client.d.ts.map +0 -1
- package/dist/query/client.js +0 -15
- package/dist/query/fiat.fetchers.d.ts +0 -11
- package/dist/query/fiat.fetchers.d.ts.map +0 -1
- package/dist/query/fiat.fetchers.js +0 -10
- package/dist/query/fiat.hooks.d.ts +0 -18
- package/dist/query/fiat.hooks.d.ts.map +0 -1
- package/dist/query/fiat.hooks.js +0 -20
- package/dist/query/fiat.queries.d.ts +0 -24
- package/dist/query/fiat.queries.d.ts.map +0 -1
- package/dist/query/fiat.queries.js +0 -39
- package/dist/query/geo.fetchers.d.ts +0 -5
- package/dist/query/geo.fetchers.d.ts.map +0 -1
- package/dist/query/geo.fetchers.js +0 -61
- package/dist/query/geo.hooks.d.ts +0 -5
- package/dist/query/geo.hooks.d.ts.map +0 -1
- package/dist/query/geo.hooks.js +0 -17
- package/dist/query/geo.queries.d.ts +0 -22
- package/dist/query/geo.queries.d.ts.map +0 -1
- package/dist/query/geo.queries.js +0 -33
- package/dist/query/helpers.d.ts +0 -18
- package/dist/query/helpers.d.ts.map +0 -1
- package/dist/query/helpers.js +0 -31
- package/dist/query/intentProtocol.queries.d.ts +0 -32
- package/dist/query/intentProtocol.queries.d.ts.map +0 -1
- package/dist/query/intentProtocol.queries.js +0 -41
- package/dist/query/meld.fetchers.d.ts +0 -19
- package/dist/query/meld.fetchers.d.ts.map +0 -1
- package/dist/query/meld.fetchers.js +0 -41
- package/dist/query/meld.hooks.d.ts +0 -4
- package/dist/query/meld.hooks.d.ts.map +0 -1
- package/dist/query/meld.hooks.js +0 -15
- package/dist/query/meld.queries.d.ts +0 -61
- package/dist/query/meld.queries.d.ts.map +0 -1
- package/dist/query/meld.queries.js +0 -97
- package/dist/query/persister.d.ts +0 -9
- package/dist/query/persister.d.ts.map +0 -1
- package/dist/query/persister.js +0 -13
- package/dist/query/price.fetchers.d.ts +0 -15
- package/dist/query/price.fetchers.d.ts.map +0 -1
- package/dist/query/price.fetchers.js +0 -26
- package/dist/query/price.hooks.d.ts +0 -352
- package/dist/query/price.hooks.d.ts.map +0 -1
- package/dist/query/price.hooks.js +0 -35
- package/dist/query/price.queries.d.ts +0 -34
- package/dist/query/price.queries.d.ts.map +0 -1
- package/dist/query/price.queries.js +0 -139
- package/dist/query/serialization.d.ts +0 -3
- package/dist/query/serialization.d.ts.map +0 -1
- package/dist/query/serialization.js +0 -17
- package/dist/query/token.fetchers.d.ts +0 -13
- package/dist/query/token.fetchers.d.ts.map +0 -1
- package/dist/query/token.fetchers.js +0 -6
- package/dist/query/token.hooks.d.ts +0 -41
- package/dist/query/token.hooks.d.ts.map +0 -1
- package/dist/query/token.hooks.js +0 -68
- package/dist/query/token.queries.d.ts +0 -67
- package/dist/query/token.queries.d.ts.map +0 -1
- package/dist/query/token.queries.js +0 -144
- package/dist/queryParams.d.ts +0 -9
- package/dist/queryParams.d.ts.map +0 -1
- package/dist/queryParamsCore.d.ts +0 -2
- package/dist/queryParamsCore.d.ts.map +0 -1
- package/dist/queryParamsCore.js +0 -10
- package/dist/quoteError.d.ts +0 -22
- package/dist/quoteError.d.ts.map +0 -1
- package/dist/quoteError.js +0 -9
- package/dist/recover.d.ts +0 -304
- package/dist/recover.d.ts.map +0 -1
- package/dist/recover.js +0 -703
- package/dist/smartContractWallet.d.ts +0 -8
- package/dist/smartContractWallet.d.ts.map +0 -1
- package/dist/smartContractWallet.js +0 -11
- package/dist/theme.d.ts +0 -3
- package/dist/theme.d.ts.map +0 -1
- package/dist/toast.d.ts +0 -9
- package/dist/toast.d.ts.map +0 -1
- package/dist/toast.js +0 -31
- package/dist/tokenRegistry.d.ts +0 -50
- package/dist/tokenRegistry.d.ts.map +0 -1
- package/dist/tokenRegistry.js +0 -589
- package/dist/tokenTypes.d.ts +0 -29
- package/dist/tokenTypes.d.ts.map +0 -1
- package/dist/tokens.d.ts +0 -62
- package/dist/tokens.d.ts.map +0 -1
- package/dist/tokens.js +0 -370
- package/dist/trailsClient.d.ts +0 -11
- package/dist/trailsClient.d.ts.map +0 -1
- package/dist/trailsClient.js +0 -29
- package/dist/transactionIntent/constants.d.ts +0 -8
- package/dist/transactionIntent/constants.d.ts.map +0 -1
- package/dist/transactionIntent/constants.js +0 -11
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts +0 -55
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/depositOrchestrator.js +0 -88
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts +0 -31
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/gaslessDeposit.js +0 -218
- package/dist/transactionIntent/deposits/index.d.ts +0 -4
- package/dist/transactionIntent/deposits/index.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/standardDeposit.d.ts +0 -50
- package/dist/transactionIntent/deposits/standardDeposit.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/standardDeposit.js +0 -131
- package/dist/transactionIntent/execution/index.d.ts +0 -2
- package/dist/transactionIntent/execution/index.d.ts.map +0 -1
- package/dist/transactionIntent/execution/transactionState.d.ts +0 -5
- package/dist/transactionIntent/execution/transactionState.d.ts.map +0 -1
- package/dist/transactionIntent/execution/transactionState.js +0 -21
- package/dist/transactionIntent/handlers/index.d.ts +0 -2
- package/dist/transactionIntent/handlers/index.d.ts.map +0 -1
- package/dist/transactionIntent/handlers/intentHandler.d.ts +0 -71
- package/dist/transactionIntent/handlers/intentHandler.d.ts.map +0 -1
- package/dist/transactionIntent/handlers/intentHandler.js +0 -533
- package/dist/transactionIntent/helpers/index.d.ts +0 -2
- package/dist/transactionIntent/helpers/index.d.ts.map +0 -1
- package/dist/transactionIntent/helpers/transactionStateHelpers.d.ts +0 -68
- package/dist/transactionIntent/helpers/transactionStateHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/helpers/transactionStateHelpers.js +0 -124
- package/dist/transactionIntent/index.d.ts +0 -10
- package/dist/transactionIntent/index.d.ts.map +0 -1
- package/dist/transactionIntent/quote/feeExtractors.d.ts +0 -13
- package/dist/transactionIntent/quote/feeExtractors.d.ts.map +0 -1
- package/dist/transactionIntent/quote/feeExtractors.js +0 -52
- package/dist/transactionIntent/quote/index.d.ts +0 -4
- package/dist/transactionIntent/quote/index.d.ts.map +0 -1
- package/dist/transactionIntent/quote/normalizeQuote.d.ts +0 -44
- package/dist/transactionIntent/quote/normalizeQuote.d.ts.map +0 -1
- package/dist/transactionIntent/quote/normalizeQuote.js +0 -214
- package/dist/transactionIntent/quote/quoteHelpers.d.ts +0 -6
- package/dist/transactionIntent/quote/quoteHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/quote/quoteHelpers.js +0 -47
- package/dist/transactionIntent/types.d.ts +0 -181
- package/dist/transactionIntent/types.d.ts.map +0 -1
- package/dist/transactionIntent/types.js +0 -38
- package/dist/transactionIntent/utils/balanceChecker.d.ts +0 -20
- package/dist/transactionIntent/utils/balanceChecker.d.ts.map +0 -1
- package/dist/transactionIntent/utils/balanceChecker.js +0 -55
- package/dist/transactionIntent/utils/index.d.ts +0 -3
- package/dist/transactionIntent/utils/index.d.ts.map +0 -1
- package/dist/transactionIntent/utils/resilientDepositTracker.d.ts +0 -25
- package/dist/transactionIntent/utils/resilientDepositTracker.d.ts.map +0 -1
- package/dist/transactionIntent/utils/resilientDepositTracker.js +0 -62
- package/dist/transactionIntent/utils/testnetHelpers.d.ts +0 -2
- package/dist/transactionIntent/utils/testnetHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/validators.d.ts +0 -4
- package/dist/transactionIntent/validators.d.ts.map +0 -1
- package/dist/transactionIntent/validators.js +0 -11
- package/dist/transactions.d.ts +0 -176
- package/dist/transactions.d.ts.map +0 -1
- package/dist/transactions.js +0 -115
- package/dist/umd/trails.min.js +0 -1251
- package/dist/utils/address.d.ts +0 -28
- package/dist/utils/address.d.ts.map +0 -1
- package/dist/utils/address.js +0 -30
- package/dist/utils/fiat.d.ts +0 -8
- package/dist/utils/fiat.d.ts.map +0 -1
- package/dist/utils/fiat.js +0 -30
- package/dist/utils/format.d.ts +0 -74
- package/dist/utils/format.d.ts.map +0 -1
- package/dist/utils/format.js +0 -274
- package/dist/utils/localStorageGc.d.ts +0 -22
- package/dist/utils/localStorageGc.d.ts.map +0 -1
- package/dist/utils/localStorageGc.js +0 -53
- package/dist/utils/passthrough.d.ts +0 -46
- package/dist/utils/passthrough.d.ts.map +0 -1
- package/dist/utils/passthrough.js +0 -20
- package/dist/utils/time.d.ts +0 -27
- package/dist/utils/time.d.ts.map +0 -1
- package/dist/utils/time.js +0 -68
- package/dist/utils/tokenResolution.d.ts +0 -19
- package/dist/utils/tokenResolution.d.ts.map +0 -1
- package/dist/utils/tokenResolution.js +0 -53
- package/dist/utils/validation.d.ts +0 -53
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -80
- package/dist/utils.d.ts +0 -34
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -58
- package/dist/version.d.ts +0 -3
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -9
- package/dist/widget/assets/components/Aave.d.ts +0 -8
- package/dist/widget/assets/components/Aave.d.ts.map +0 -1
- package/dist/widget/assets/components/Aave.js +0 -29
- package/dist/widget/assets/components/ExchangeIconBlack.d.ts +0 -8
- package/dist/widget/assets/components/ExchangeIconBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodCardBrands.d.ts +0 -8
- package/dist/widget/assets/components/FundMethodCardBrands.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodCardBrands.js +0 -49
- package/dist/widget/assets/components/FundMethodExchangeBrands.d.ts +0 -8
- package/dist/widget/assets/components/FundMethodExchangeBrands.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodExchangeBrands.js +0 -37
- package/dist/widget/assets/components/MetaMaskIconFox.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskIconFox.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskIconFoxWithMargins.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskIconFoxWithMargins.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskLogoBlack.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskLogoBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskLogoWhite.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskLogoWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/Morpho.d.ts +0 -8
- package/dist/widget/assets/components/Morpho.d.ts.map +0 -1
- package/dist/widget/assets/components/Morpho.js +0 -51
- package/dist/widget/assets/components/TrailsBlack.d.ts +0 -8
- package/dist/widget/assets/components/TrailsBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/TrailsBlack.js +0 -25
- package/dist/widget/assets/components/TrailsWhite.d.ts +0 -8
- package/dist/widget/assets/components/TrailsWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/TrailsWhite.js +0 -25
- package/dist/widget/assets/components/WalletChangeBlack.d.ts +0 -8
- package/dist/widget/assets/components/WalletChangeBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogo.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogo.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoBlack.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoBlue.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoBlue.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoWhite.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/index.d.ts +0 -17
- package/dist/widget/assets/components/index.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.d.ts +0 -54
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.js +0 -68
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.d.ts +0 -386
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.js +0 -872
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.d.ts +0 -192
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.js +0 -294
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.d.ts +0 -51
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.js +0 -72
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.d.ts +0 -19
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.js +0 -62
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.d.ts +0 -44
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.js +0 -6
- package/dist/widget/bluvo/bluvo-lib/api.types.d.ts +0 -49
- package/dist/widget/bluvo/bluvo-lib/api.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.d.ts +0 -84
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.js +0 -26
- package/dist/widget/bluvo/bluvo-lib/createMachine.d.ts +0 -3
- package/dist/widget/bluvo/bluvo-lib/createMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/createMachine.js +0 -38
- package/dist/widget/bluvo/bluvo-lib/error-codes.d.ts +0 -156
- package/dist/widget/bluvo/bluvo-lib/error-codes.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/error-codes.js +0 -115
- package/dist/widget/bluvo/bluvo-lib/flow.types.d.ts +0 -356
- package/dist/widget/bluvo/bluvo-lib/flow.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowMachine.d.ts +0 -4
- package/dist/widget/bluvo/bluvo-lib/flowMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowMachine.js +0 -45
- package/dist/widget/bluvo/bluvo-lib/flowMachine.types.d.ts +0 -20
- package/dist/widget/bluvo/bluvo-lib/flowMachine.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.d.ts +0 -39
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.js +0 -395
- package/dist/widget/bluvo/bluvo-lib/index.d.ts +0 -5
- package/dist/widget/bluvo/bluvo-lib/index.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/machine.types.d.ts +0 -15
- package/dist/widget/bluvo/bluvo-lib/machine.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.d.ts +0 -23
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.js +0 -24
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.d.ts +0 -325
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.js +0 -152
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.d.ts +0 -11
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.js +0 -25
- package/dist/widget/bluvo/bluvo-lib/useWithdrawMachine.d.ts +0 -17
- package/dist/widget/bluvo/bluvo-lib/useWithdrawMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawal.types.d.ts +0 -46
- package/dist/widget/bluvo/bluvo-lib/withdrawal.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.d.ts +0 -29
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.js +0 -95
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.d.ts +0 -3
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.js +0 -137
- package/dist/widget/bluvo/index.d.ts +0 -2
- package/dist/widget/bluvo/index.d.ts.map +0 -1
- package/dist/widget/components/AccountActionsDropdown.d.ts +0 -4
- package/dist/widget/components/AccountActionsDropdown.d.ts.map +0 -1
- package/dist/widget/components/AccountActionsDropdown.js +0 -23
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts +0 -9
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts.map +0 -1
- package/dist/widget/components/AccountIntentTransactionHistory.js +0 -426
- package/dist/widget/components/AccountIntentTransactionHistoryButton.d.ts +0 -4
- package/dist/widget/components/AccountIntentTransactionHistoryButton.d.ts.map +0 -1
- package/dist/widget/components/AccountIntentTransactionHistoryButton.js +0 -23
- package/dist/widget/components/AccountSettings.d.ts +0 -7
- package/dist/widget/components/AccountSettings.d.ts.map +0 -1
- package/dist/widget/components/AccountSettings.js +0 -106
- package/dist/widget/components/AddressOrEnsName.d.ts +0 -13
- package/dist/widget/components/AddressOrEnsName.d.ts.map +0 -1
- package/dist/widget/components/AddressOrEnsName.js +0 -13
- package/dist/widget/components/AddressWalletIcon.d.ts +0 -8
- package/dist/widget/components/AddressWalletIcon.d.ts.map +0 -1
- package/dist/widget/components/AddressWalletIcon.js +0 -32
- package/dist/widget/components/AllChainsIcon.d.ts +0 -9
- package/dist/widget/components/AllChainsIcon.d.ts.map +0 -1
- package/dist/widget/components/AllChainsIcon.js +0 -98
- package/dist/widget/components/BluvoExchangeSelection.d.ts +0 -12
- package/dist/widget/components/BluvoExchangeSelection.d.ts.map +0 -1
- package/dist/widget/components/BluvoExchangeSelection.js +0 -131
- package/dist/widget/components/BluvoExchangeSelection.lazy.d.ts +0 -2
- package/dist/widget/components/BluvoExchangeSelection.lazy.d.ts.map +0 -1
- package/dist/widget/components/BluvoExchangeSelection.lazy.js +0 -4
- package/dist/widget/components/BluvoOnrampFlow.d.ts +0 -20
- package/dist/widget/components/BluvoOnrampFlow.d.ts.map +0 -1
- package/dist/widget/components/BluvoOnrampFlow.js +0 -1472
- package/dist/widget/components/BluvoOnrampFlow.lazy.d.ts +0 -2
- package/dist/widget/components/BluvoOnrampFlow.lazy.d.ts.map +0 -1
- package/dist/widget/components/BluvoOnrampFlow.lazy.js +0 -4
- package/dist/widget/components/ChainFilterDropdown.d.ts +0 -17
- package/dist/widget/components/ChainFilterDropdown.d.ts.map +0 -1
- package/dist/widget/components/ChainFilterDropdown.js +0 -124
- package/dist/widget/components/ChainImage.d.ts +0 -8
- package/dist/widget/components/ChainImage.d.ts.map +0 -1
- package/dist/widget/components/ChainImage.js +0 -24
- package/dist/widget/components/ChainList.d.ts +0 -9
- package/dist/widget/components/ChainList.d.ts.map +0 -1
- package/dist/widget/components/ChainList.js +0 -177
- package/dist/widget/components/ClassicSwap.d.ts +0 -10
- package/dist/widget/components/ClassicSwap.d.ts.map +0 -1
- package/dist/widget/components/ClassicSwap.js +0 -786
- package/dist/widget/components/ConfigDisplay.d.ts +0 -7
- package/dist/widget/components/ConfigDisplay.d.ts.map +0 -1
- package/dist/widget/components/ConfigDisplay.js +0 -122
- package/dist/widget/components/ConnectWallet.d.ts +0 -12
- package/dist/widget/components/ConnectWallet.d.ts.map +0 -1
- package/dist/widget/components/ConnectWallet.js +0 -215
- package/dist/widget/components/ConnectedWallets.d.ts +0 -19
- package/dist/widget/components/ConnectedWallets.d.ts.map +0 -1
- package/dist/widget/components/ConnectedWallets.js +0 -149
- package/dist/widget/components/CopyButton.d.ts +0 -18
- package/dist/widget/components/CopyButton.d.ts.map +0 -1
- package/dist/widget/components/CopyButton.js +0 -51
- package/dist/widget/components/CountryFilterDropdown.d.ts +0 -15
- package/dist/widget/components/CountryFilterDropdown.d.ts.map +0 -1
- package/dist/widget/components/CountryFilterDropdown.js +0 -93
- package/dist/widget/components/DebugMenu.d.ts +0 -7
- package/dist/widget/components/DebugMenu.d.ts.map +0 -1
- package/dist/widget/components/DebugMenu.js +0 -33
- package/dist/widget/components/DebugScreensList.d.ts +0 -7
- package/dist/widget/components/DebugScreensList.d.ts.map +0 -1
- package/dist/widget/components/DebugScreensList.js +0 -56
- package/dist/widget/components/DebugToast.d.ts +0 -3
- package/dist/widget/components/DebugToast.d.ts.map +0 -1
- package/dist/widget/components/DebugToast.js +0 -46
- package/dist/widget/components/DepositTracker.d.ts +0 -13
- package/dist/widget/components/DepositTracker.d.ts.map +0 -1
- package/dist/widget/components/DepositTracker.js +0 -194
- package/dist/widget/components/DirectTransfer.d.ts +0 -15
- package/dist/widget/components/DirectTransfer.d.ts.map +0 -1
- package/dist/widget/components/DirectTransfer.js +0 -218
- package/dist/widget/components/Disconnect.d.ts +0 -8
- package/dist/widget/components/Disconnect.d.ts.map +0 -1
- package/dist/widget/components/Disconnect.js +0 -37
- package/dist/widget/components/DynamicInputStyles.d.ts +0 -22
- package/dist/widget/components/DynamicInputStyles.d.ts.map +0 -1
- package/dist/widget/components/DynamicInputStyles.js +0 -27
- package/dist/widget/components/DynamicSizeInputField.d.ts +0 -17
- package/dist/widget/components/DynamicSizeInputField.d.ts.map +0 -1
- package/dist/widget/components/DynamicSizeInputField.js +0 -125
- package/dist/widget/components/ENSAvatar.d.ts +0 -12
- package/dist/widget/components/ENSAvatar.d.ts.map +0 -1
- package/dist/widget/components/ENSAvatar.js +0 -22
- package/dist/widget/components/Earn.d.ts +0 -33
- package/dist/widget/components/Earn.d.ts.map +0 -1
- package/dist/widget/components/Earn.js +0 -79
- package/dist/widget/components/EarnMarkets.d.ts +0 -9
- package/dist/widget/components/EarnMarkets.d.ts.map +0 -1
- package/dist/widget/components/EarnMarkets.js +0 -313
- package/dist/widget/components/EarnPools.d.ts +0 -8
- package/dist/widget/components/EarnPools.d.ts.map +0 -1
- package/dist/widget/components/EarnPools.js +0 -256
- package/dist/widget/components/EarnPoolsFilters.d.ts +0 -18
- package/dist/widget/components/EarnPoolsFilters.d.ts.map +0 -1
- package/dist/widget/components/EarnPoolsFilters.js +0 -106
- package/dist/widget/components/EarnWithdraw.d.ts +0 -21
- package/dist/widget/components/EarnWithdraw.d.ts.map +0 -1
- package/dist/widget/components/EarnWithdraw.js +0 -477
- package/dist/widget/components/ErrorAnimationIcon.d.ts +0 -2
- package/dist/widget/components/ErrorAnimationIcon.d.ts.map +0 -1
- package/dist/widget/components/ErrorAnimationIcon.js +0 -148
- package/dist/widget/components/ErrorDisplay.d.ts +0 -9
- package/dist/widget/components/ErrorDisplay.d.ts.map +0 -1
- package/dist/widget/components/ErrorDisplay.js +0 -104
- package/dist/widget/components/ExecutingIntentsBadge.d.ts +0 -12
- package/dist/widget/components/ExecutingIntentsBadge.d.ts.map +0 -1
- package/dist/widget/components/ExecutionStatusBadge.d.ts +0 -5
- package/dist/widget/components/ExecutionStatusBadge.d.ts.map +0 -1
- package/dist/widget/components/ExecutionStatusBadge.js +0 -45
- package/dist/widget/components/FeeOption.d.ts +0 -20
- package/dist/widget/components/FeeOption.d.ts.map +0 -1
- package/dist/widget/components/FeeOption.js +0 -71
- package/dist/widget/components/FeeOptions.d.ts +0 -20
- package/dist/widget/components/FeeOptions.d.ts.map +0 -1
- package/dist/widget/components/FeeOptions.js +0 -99
- package/dist/widget/components/FiatSelector.d.ts +0 -18
- package/dist/widget/components/FiatSelector.d.ts.map +0 -1
- package/dist/widget/components/FiatSelector.js +0 -171
- package/dist/widget/components/FiatSelectorButton.d.ts +0 -11
- package/dist/widget/components/FiatSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/FiatSelectorButton.js +0 -41
- package/dist/widget/components/Footer.d.ts +0 -7
- package/dist/widget/components/Footer.d.ts.map +0 -1
- package/dist/widget/components/Footer.js +0 -71
- package/dist/widget/components/Fund.d.ts +0 -19
- package/dist/widget/components/Fund.d.ts.map +0 -1
- package/dist/widget/components/Fund.js +0 -16
- package/dist/widget/components/Fund.types.d.ts +0 -22
- package/dist/widget/components/Fund.types.d.ts.map +0 -1
- package/dist/widget/components/FundExactInput.d.ts +0 -5
- package/dist/widget/components/FundExactInput.d.ts.map +0 -1
- package/dist/widget/components/FundExactInput.js +0 -1116
- package/dist/widget/components/FundExactOutput.d.ts +0 -5
- package/dist/widget/components/FundExactOutput.d.ts.map +0 -1
- package/dist/widget/components/FundExactOutput.js +0 -498
- package/dist/widget/components/FundMethods.d.ts +0 -15
- package/dist/widget/components/FundMethods.d.ts.map +0 -1
- package/dist/widget/components/FundMethods.js +0 -219
- package/dist/widget/components/FundWalletSelection.d.ts +0 -3
- package/dist/widget/components/FundWalletSelection.d.ts.map +0 -1
- package/dist/widget/components/FundWalletSelection.js +0 -38
- package/dist/widget/components/FundingMethodSelectorButton.d.ts +0 -11
- package/dist/widget/components/FundingMethodSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/FundingMethodSelectorButton.js +0 -57
- package/dist/widget/components/GreenCheckAnimation.d.ts +0 -2
- package/dist/widget/components/GreenCheckAnimation.d.ts.map +0 -1
- package/dist/widget/components/GreenCheckAnimation.js +0 -135
- package/dist/widget/components/HighPriceImpactBlock.d.ts +0 -7
- package/dist/widget/components/HighPriceImpactBlock.d.ts.map +0 -1
- package/dist/widget/components/HighPriceImpactBlock.js +0 -33
- package/dist/widget/components/HookModalContent.d.ts +0 -8
- package/dist/widget/components/HookModalContent.d.ts.map +0 -1
- package/dist/widget/components/HookModalContent.js +0 -237
- package/dist/widget/components/Identicon.d.ts +0 -9
- package/dist/widget/components/Identicon.d.ts.map +0 -1
- package/dist/widget/components/Identicon.js +0 -176
- package/dist/widget/components/LoadingSpinner.d.ts +0 -5
- package/dist/widget/components/LoadingSpinner.d.ts.map +0 -1
- package/dist/widget/components/LoadingSpinner.js +0 -5
- package/dist/widget/components/MeldForm.d.ts +0 -24
- package/dist/widget/components/MeldForm.d.ts.map +0 -1
- package/dist/widget/components/MeldForm.js +0 -447
- package/dist/widget/components/MeldHistory.d.ts +0 -13
- package/dist/widget/components/MeldHistory.d.ts.map +0 -1
- package/dist/widget/components/MeldHistory.js +0 -307
- package/dist/widget/components/MeldStepsFlow.d.ts +0 -6
- package/dist/widget/components/MeldStepsFlow.d.ts.map +0 -1
- package/dist/widget/components/MeldStepsFlow.js +0 -785
- package/dist/widget/components/MeldTransactionStatus.d.ts +0 -20
- package/dist/widget/components/MeldTransactionStatus.d.ts.map +0 -1
- package/dist/widget/components/MeldTransactionStatus.js +0 -157
- package/dist/widget/components/MeshExchangeAccountHeader.d.ts +0 -9
- package/dist/widget/components/MeshExchangeAccountHeader.d.ts.map +0 -1
- package/dist/widget/components/MeshExchangeAccountHeader.js +0 -30
- package/dist/widget/components/Modal.d.ts +0 -9
- package/dist/widget/components/Modal.d.ts.map +0 -1
- package/dist/widget/components/Modal.js +0 -65
- package/dist/widget/components/OFTProgressBar.d.ts +0 -16
- package/dist/widget/components/OFTProgressBar.d.ts.map +0 -1
- package/dist/widget/components/OFTProgressBar.js +0 -49
- package/dist/widget/components/OnRampProviderSelector.d.ts +0 -13
- package/dist/widget/components/OnRampProviderSelector.d.ts.map +0 -1
- package/dist/widget/components/OnRampProviderSelector.js +0 -144
- package/dist/widget/components/OnrampErrorScreen.d.ts +0 -15
- package/dist/widget/components/OnrampErrorScreen.d.ts.map +0 -1
- package/dist/widget/components/OnrampErrorScreen.js +0 -102
- package/dist/widget/components/OnrampHistoryRow.d.ts +0 -13
- package/dist/widget/components/OnrampHistoryRow.d.ts.map +0 -1
- package/dist/widget/components/OnrampHistoryRow.js +0 -249
- package/dist/widget/components/OnrampPaymentMethods.d.ts +0 -7
- package/dist/widget/components/OnrampPaymentMethods.d.ts.map +0 -1
- package/dist/widget/components/OnrampPaymentMethods.js +0 -54
- package/dist/widget/components/OnrampProviderConfirmation.d.ts +0 -30
- package/dist/widget/components/OnrampProviderConfirmation.d.ts.map +0 -1
- package/dist/widget/components/OnrampProviderConfirmation.js +0 -705
- package/dist/widget/components/OriginSelectionAmount.d.ts +0 -12
- package/dist/widget/components/OriginSelectionAmount.d.ts.map +0 -1
- package/dist/widget/components/OriginSelectionAmount.js +0 -104
- package/dist/widget/components/OriginTransferInformation.d.ts +0 -10
- package/dist/widget/components/OriginTransferInformation.d.ts.map +0 -1
- package/dist/widget/components/OriginTransferInformation.js +0 -56
- package/dist/widget/components/Pay.d.ts +0 -7
- package/dist/widget/components/Pay.d.ts.map +0 -1
- package/dist/widget/components/Pay.js +0 -649
- package/dist/widget/components/PaymentMethods.d.ts +0 -10
- package/dist/widget/components/PaymentMethods.d.ts.map +0 -1
- package/dist/widget/components/PaymentMethods.js +0 -118
- package/dist/widget/components/PercentageMaxButtons.d.ts +0 -14
- package/dist/widget/components/PercentageMaxButtons.d.ts.map +0 -1
- package/dist/widget/components/PercentageMaxButtons.js +0 -62
- package/dist/widget/components/PoolDeposit.d.ts +0 -32
- package/dist/widget/components/PoolDeposit.d.ts.map +0 -1
- package/dist/widget/components/PoolDeposit.js +0 -426
- package/dist/widget/components/PriceImpactWarning.d.ts +0 -11
- package/dist/widget/components/PriceImpactWarning.d.ts.map +0 -1
- package/dist/widget/components/PriceImpactWarning.js +0 -58
- package/dist/widget/components/PulsatingButton.d.ts +0 -9
- package/dist/widget/components/PulsatingButton.d.ts.map +0 -1
- package/dist/widget/components/PulsatingButton.js +0 -48
- package/dist/widget/components/QRCodeOptions.d.ts +0 -9
- package/dist/widget/components/QRCodeOptions.d.ts.map +0 -1
- package/dist/widget/components/QRCodeOptions.js +0 -57
- package/dist/widget/components/QRCodeWalletSelect.d.ts +0 -13
- package/dist/widget/components/QRCodeWalletSelect.d.ts.map +0 -1
- package/dist/widget/components/QRCodeWalletSelect.js +0 -45
- package/dist/widget/components/QrCode.d.ts +0 -10
- package/dist/widget/components/QrCode.d.ts.map +0 -1
- package/dist/widget/components/QrCode.js +0 -69
- package/dist/widget/components/QuoteDetails.d.ts +0 -25
- package/dist/widget/components/QuoteDetails.d.ts.map +0 -1
- package/dist/widget/components/QuoteDetails.js +0 -728
- package/dist/widget/components/QuoteInputErrorBlock.d.ts +0 -7
- package/dist/widget/components/QuoteInputErrorBlock.d.ts.map +0 -1
- package/dist/widget/components/QuoteInputErrorBlock.js +0 -22
- package/dist/widget/components/Receipt.d.ts +0 -18
- package/dist/widget/components/Receipt.d.ts.map +0 -1
- package/dist/widget/components/Receipt.js +0 -443
- package/dist/widget/components/ReceiptRecoverableFunds.d.ts +0 -25
- package/dist/widget/components/ReceiptRecoverableFunds.d.ts.map +0 -1
- package/dist/widget/components/ReceiptRecoverableFunds.js +0 -75
- package/dist/widget/components/RecentChains.d.ts +0 -9
- package/dist/widget/components/RecentChains.d.ts.map +0 -1
- package/dist/widget/components/RecentChains.js +0 -28
- package/dist/widget/components/RecentTokens.d.ts +0 -10
- package/dist/widget/components/RecentTokens.d.ts.map +0 -1
- package/dist/widget/components/RecentTokens.js +0 -37
- package/dist/widget/components/RecipientSelectorButton.d.ts +0 -6
- package/dist/widget/components/RecipientSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/RecipientSelectorButton.js +0 -36
- package/dist/widget/components/Recipients.d.ts +0 -9
- package/dist/widget/components/Recipients.d.ts.map +0 -1
- package/dist/widget/components/Recipients.js +0 -208
- package/dist/widget/components/RefundWarning.d.ts +0 -11
- package/dist/widget/components/RefundWarning.d.ts.map +0 -1
- package/dist/widget/components/RefundWarning.js +0 -33
- package/dist/widget/components/RequiredPropsError.d.ts +0 -8
- package/dist/widget/components/RequiredPropsError.d.ts.map +0 -1
- package/dist/widget/components/RequiredPropsError.js +0 -14
- package/dist/widget/components/ScreenHeader.d.ts +0 -13
- package/dist/widget/components/ScreenHeader.d.ts.map +0 -1
- package/dist/widget/components/ScreenHeader.js +0 -64
- package/dist/widget/components/SearchInputField.d.ts +0 -14
- package/dist/widget/components/SearchInputField.d.ts.map +0 -1
- package/dist/widget/components/SearchInputField.js +0 -51
- package/dist/widget/components/SessionTimeoutScreen.d.ts +0 -12
- package/dist/widget/components/SessionTimeoutScreen.d.ts.map +0 -1
- package/dist/widget/components/SessionTimeoutScreen.js +0 -64
- package/dist/widget/components/ShadowPortal.d.ts +0 -6
- package/dist/widget/components/ShadowPortal.d.ts.map +0 -1
- package/dist/widget/components/ShadowPortal.js +0 -52
- package/dist/widget/components/ShadowRootContext.d.ts +0 -8
- package/dist/widget/components/ShadowRootContext.d.ts.map +0 -1
- package/dist/widget/components/ShadowRootContext.js +0 -12
- package/dist/widget/components/SimpleRecipientInputScreen.d.ts +0 -13
- package/dist/widget/components/SimpleRecipientInputScreen.d.ts.map +0 -1
- package/dist/widget/components/SimpleRecipientInputScreen.js +0 -48
- package/dist/widget/components/SlippageToleranceSettings.d.ts +0 -9
- package/dist/widget/components/SlippageToleranceSettings.d.ts.map +0 -1
- package/dist/widget/components/SlippageToleranceSettings.js +0 -159
- package/dist/widget/components/Swap.d.ts +0 -43
- package/dist/widget/components/Swap.d.ts.map +0 -1
- package/dist/widget/components/Swap.js +0 -6
- package/dist/widget/components/SwapDisplay.d.ts +0 -9
- package/dist/widget/components/SwapDisplay.d.ts.map +0 -1
- package/dist/widget/components/SwapDisplay.js +0 -72
- package/dist/widget/components/ThemeProvider.d.ts +0 -16
- package/dist/widget/components/ThemeProvider.d.ts.map +0 -1
- package/dist/widget/components/ThemeProvider.js +0 -52
- package/dist/widget/components/ThemeSyncer.d.ts +0 -6
- package/dist/widget/components/ThemeSyncer.d.ts.map +0 -1
- package/dist/widget/components/ThemeSyncer.js +0 -25
- package/dist/widget/components/Toast.d.ts +0 -24
- package/dist/widget/components/Toast.d.ts.map +0 -1
- package/dist/widget/components/Toast.js +0 -206
- package/dist/widget/components/TokenDisplayNonSelectable.d.ts +0 -11
- package/dist/widget/components/TokenDisplayNonSelectable.d.ts.map +0 -1
- package/dist/widget/components/TokenDisplayNonSelectable.js +0 -30
- package/dist/widget/components/TokenImage.d.ts +0 -11
- package/dist/widget/components/TokenImage.d.ts.map +0 -1
- package/dist/widget/components/TokenImage.js +0 -96
- package/dist/widget/components/TokenList.d.ts +0 -20
- package/dist/widget/components/TokenList.d.ts.map +0 -1
- package/dist/widget/components/TokenList.js +0 -45
- package/dist/widget/components/TokenSelector.d.ts +0 -32
- package/dist/widget/components/TokenSelector.d.ts.map +0 -1
- package/dist/widget/components/TokenSelector.js +0 -479
- package/dist/widget/components/TokenSelectorButton.d.ts +0 -17
- package/dist/widget/components/TokenSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/TokenSelectorButton.js +0 -64
- package/dist/widget/components/TokenSkeleton.d.ts +0 -12
- package/dist/widget/components/TokenSkeleton.d.ts.map +0 -1
- package/dist/widget/components/TokenSkeleton.js +0 -36
- package/dist/widget/components/Tooltip.d.ts +0 -14
- package/dist/widget/components/Tooltip.d.ts.map +0 -1
- package/dist/widget/components/Tooltip.js +0 -38
- package/dist/widget/components/TrailsHookModal.d.ts +0 -10
- package/dist/widget/components/TrailsHookModal.d.ts.map +0 -1
- package/dist/widget/components/TrailsHookModal.js +0 -55
- package/dist/widget/components/TransactionDetails.d.ts +0 -10
- package/dist/widget/components/TransactionDetails.d.ts.map +0 -1
- package/dist/widget/components/TransactionDetails.js +0 -492
- package/dist/widget/components/TransactionHistoryItem.d.ts +0 -23
- package/dist/widget/components/TransactionHistoryItem.d.ts.map +0 -1
- package/dist/widget/components/TransactionHistoryItem.js +0 -547
- package/dist/widget/components/TransferPendingVertical.d.ts +0 -16
- package/dist/widget/components/TransferPendingVertical.d.ts.map +0 -1
- package/dist/widget/components/TransferPendingVertical.js +0 -356
- package/dist/widget/components/TruncatedTransactionHash.d.ts +0 -12
- package/dist/widget/components/TruncatedTransactionHash.d.ts.map +0 -1
- package/dist/widget/components/TruncatedTransactionHash.js +0 -36
- package/dist/widget/components/UserPreferences.d.ts +0 -7
- package/dist/widget/components/UserPreferences.d.ts.map +0 -1
- package/dist/widget/components/UserPreferences.js +0 -282
- package/dist/widget/components/WaasFeeOptions.d.ts +0 -12
- package/dist/widget/components/WaasFeeOptions.d.ts.map +0 -1
- package/dist/widget/components/WaasFeeOptions.js +0 -349
- package/dist/widget/components/WalletAccountHeader.d.ts +0 -8
- package/dist/widget/components/WalletAccountHeader.d.ts.map +0 -1
- package/dist/widget/components/WalletAccountHeader.js +0 -45
- package/dist/widget/components/WalletConfirmation.d.ts +0 -15
- package/dist/widget/components/WalletConfirmation.d.ts.map +0 -1
- package/dist/widget/components/WalletConfirmation.js +0 -145
- package/dist/widget/components/WalletConnect.d.ts +0 -11
- package/dist/widget/components/WalletConnect.d.ts.map +0 -1
- package/dist/widget/components/WalletConnect.js +0 -164
- package/dist/widget/components/WalletConnectionPending.d.ts +0 -12
- package/dist/widget/components/WalletConnectionPending.d.ts.map +0 -1
- package/dist/widget/components/WalletConnectionPending.js +0 -124
- package/dist/widget/components/WalletList.d.ts +0 -16
- package/dist/widget/components/WalletList.d.ts.map +0 -1
- package/dist/widget/components/WalletList.js +0 -88
- package/dist/widget/components/WidgetProviders.d.ts +0 -16
- package/dist/widget/components/WidgetProviders.d.ts.map +0 -1
- package/dist/widget/components/WidgetProviders.js +0 -43
- package/dist/widget/components/Withdraw.d.ts +0 -12
- package/dist/widget/components/Withdraw.d.ts.map +0 -1
- package/dist/widget/components/Withdraw.js +0 -551
- package/dist/widget/components/YellowWarningAnimation.d.ts +0 -2
- package/dist/widget/components/YellowWarningAnimation.d.ts.map +0 -1
- package/dist/widget/components/YellowWarningAnimation.js +0 -167
- package/dist/widget/components/earnMarketUtils.d.ts +0 -11
- package/dist/widget/components/earnMarketUtils.d.ts.map +0 -1
- package/dist/widget/components/earnMarketUtils.js +0 -48
- package/dist/widget/components/earnNetworks.d.ts +0 -6
- package/dist/widget/components/earnNetworks.d.ts.map +0 -1
- package/dist/widget/components/earnNetworks.js +0 -33
- package/dist/widget/index.d.ts.map +0 -1
- package/dist/widget/modes/EarnWidget.d.ts +0 -90
- package/dist/widget/modes/EarnWidget.d.ts.map +0 -1
- package/dist/widget/modes/EarnWidget.js +0 -41
- package/dist/widget/modes/FundWidget.d.ts +0 -110
- package/dist/widget/modes/FundWidget.d.ts.map +0 -1
- package/dist/widget/modes/FundWidget.js +0 -48
- package/dist/widget/modes/PayWidget.d.ts +0 -80
- package/dist/widget/modes/PayWidget.d.ts.map +0 -1
- package/dist/widget/modes/PayWidget.js +0 -40
- package/dist/widget/modes/SwapWidget.d.ts +0 -76
- package/dist/widget/modes/SwapWidget.d.ts.map +0 -1
- package/dist/widget/modes/SwapWidget.js +0 -41
- package/dist/widget/modes/WithdrawWidget.d.ts +0 -87
- package/dist/widget/modes/WithdrawWidget.d.ts.map +0 -1
- package/dist/widget/modes/WithdrawWidget.js +0 -38
- package/dist/widget/props.d.ts +0 -255
- package/dist/widget/props.d.ts.map +0 -1
- package/dist/widget/props.js +0 -14
- package/dist/widget/providers/TrailsModalProvider.d.ts +0 -78
- package/dist/widget/providers/TrailsModalProvider.d.ts.map +0 -1
- package/dist/widget/providers/TrailsModalProvider.js +0 -57
- package/dist/widget/providers/TrailsProvider.d.ts +0 -100
- package/dist/widget/providers/TrailsProvider.d.ts.map +0 -1
- package/dist/widget/providers/TrailsProvider.js +0 -101
- package/dist/widget/providers/UserActivityProvider.d.ts +0 -18
- package/dist/widget/providers/UserActivityProvider.d.ts.map +0 -1
- package/dist/widget/providers/UserActivityProvider.js +0 -38
- package/dist/widget/providers/WalletContext.d.ts +0 -10
- package/dist/widget/providers/WalletContext.d.ts.map +0 -1
- package/dist/widget/providers/WalletContext.js +0 -23
- package/dist/widget/providers/WidgetProviderTree.d.ts +0 -24
- package/dist/widget/providers/WidgetProviderTree.d.ts.map +0 -1
- package/dist/widget/providers/WidgetProviderTree.js +0 -35
- package/dist/widget/providers/adapterConfig.d.ts +0 -13
- package/dist/widget/providers/adapterConfig.d.ts.map +0 -1
- package/dist/widget/providers/adapterConfig.js +0 -97
- package/dist/widget/providers/sequenceSupport.d.ts +0 -42
- package/dist/widget/providers/sequenceSupport.d.ts.map +0 -1
- package/dist/widget/providers/walletRuntimeResolution.d.ts +0 -10
- package/dist/widget/providers/walletRuntimeResolution.d.ts.map +0 -1
- package/dist/widget/providers/walletRuntimeResolution.js +0 -14
- package/dist/widget/shared/destinationDefaultToken.d.ts +0 -15
- package/dist/widget/shared/destinationDefaultToken.d.ts.map +0 -1
- package/dist/widget/shared/destinationDefaultToken.js +0 -18
- package/dist/widget/shared/destinationSupport.d.ts +0 -40
- package/dist/widget/shared/destinationSupport.d.ts.map +0 -1
- package/dist/widget/shared/destinationSupport.js +0 -215
- package/dist/widget/shared/mapSharedProps.d.ts +0 -9
- package/dist/widget/shared/mapSharedProps.d.ts.map +0 -1
- package/dist/widget/shared/mapSharedProps.js +0 -22
- package/dist/widget/shared/methodMap.d.ts +0 -18
- package/dist/widget/shared/methodMap.d.ts.map +0 -1
- package/dist/widget/shared/methodMap.js +0 -25
- package/dist/widget/shared/resolution.d.ts +0 -8
- package/dist/widget/shared/resolution.d.ts.map +0 -1
- package/dist/widget/shared/resolution.js +0 -63
- package/dist/widget/shared/resolvePaymentSource.d.ts +0 -37
- package/dist/widget/shared/resolvePaymentSource.d.ts.map +0 -1
- package/dist/widget/shared/resolvePaymentSource.js +0 -19
- package/dist/widget/shared/types.d.ts +0 -142
- package/dist/widget/shared/types.d.ts.map +0 -1
- package/dist/widget/styles.gen.d.ts +0 -2
- package/dist/widget/styles.gen.d.ts.map +0 -1
- package/dist/widget/styles.gen.js +0 -29
- package/dist/widget/types/analytics.d.ts +0 -22
- package/dist/widget/types/analytics.d.ts.map +0 -1
- package/dist/widget/types/commonProps.d.ts +0 -48
- package/dist/widget/types/commonProps.d.ts.map +0 -1
- package/dist/widget/utils/countryUtils.d.ts +0 -37
- package/dist/widget/utils/countryUtils.d.ts.map +0 -1
- package/dist/widget/utils/countryUtils.js +0 -14
- package/dist/widget/utils/forexRateStore.d.ts +0 -25
- package/dist/widget/utils/forexRateStore.d.ts.map +0 -1
- package/dist/widget/utils/forexRateStore.js +0 -59
- package/dist/widget/utils/fundMethodSwitchState.d.ts +0 -14
- package/dist/widget/utils/fundMethodSwitchState.d.ts.map +0 -1
- package/dist/widget/utils/fundMethodSwitchState.js +0 -6
- package/dist/widget/utils/historyFilters.d.ts +0 -13
- package/dist/widget/utils/historyFilters.d.ts.map +0 -1
- package/dist/widget/utils/historyFilters.js +0 -108
- package/dist/widget/utils/localeStore.d.ts +0 -19
- package/dist/widget/utils/localeStore.d.ts.map +0 -1
- package/dist/widget/utils/localeStore.js +0 -39
- package/dist/widget/utils/meldProviderUtils.d.ts +0 -6
- package/dist/widget/utils/meldProviderUtils.d.ts.map +0 -1
- package/dist/widget/utils/meldProviderUtils.js +0 -9
- package/dist/widget/utils/meshSupportedTokens.d.ts +0 -4
- package/dist/widget/utils/meshSupportedTokens.d.ts.map +0 -1
- package/dist/widget/utils/meshSupportedTokens.js +0 -12
- package/dist/widget/utils/onrampConfig.d.ts +0 -11
- package/dist/widget/utils/onrampConfig.d.ts.map +0 -1
- package/dist/widget/utils/onrampConfig.js +0 -6
- package/dist/widget/utils/statusLabel.d.ts +0 -2
- package/dist/widget/utils/statusLabel.d.ts.map +0 -1
- package/dist/widget/utils/statusLabel.js +0 -6
- package/dist/widget/utils/tokens.d.ts +0 -60
- package/dist/widget/utils/tokens.d.ts.map +0 -1
- package/dist/widget/utils/tokens.js +0 -16
- package/dist/widget/utils/trailsOnrampConfig.d.ts +0 -23
- package/dist/widget/utils/trailsOnrampConfig.d.ts.map +0 -1
- package/dist/widget/utils/trailsOnrampConfig.js +0 -7
- package/dist/widget/utils/transactionFailure.d.ts +0 -20
- package/dist/widget/utils/transactionFailure.d.ts.map +0 -1
- package/dist/widget/utils/transactionFailure.js +0 -12
- package/dist/widget/utils/viewManagerGuards.d.ts +0 -5
- package/dist/widget/utils/viewManagerGuards.d.ts.map +0 -1
- package/dist/widget/utils/viewManagerGuards.js +0 -24
- package/dist/widget/utils/walletConnectRedirect.d.ts +0 -19
- package/dist/widget/utils/walletConnectRedirect.d.ts.map +0 -1
- package/dist/widget/utils/walletConnectRedirect.js +0 -21
- package/dist/widget/utils/windowUtils.d.ts +0 -13
- package/dist/widget/utils/windowUtils.d.ts.map +0 -1
- package/dist/widget/utils/windowUtils.js +0 -84
- package/dist/widget/widget.d.ts +0 -16
- package/dist/widget/widget.d.ts.map +0 -1
- package/dist/widget/widget.js +0 -1541
- package/dist/widgetFlowHooks.d.ts +0 -12
- package/dist/widgetFlowHooks.d.ts.map +0 -1
- package/dist/widgetFlowHooks.js +0 -18
|
@@ -0,0 +1,1044 @@
|
|
|
1
|
+
import { t as Token$1 } from "./tokenTypes-D812t5L9.js";
|
|
2
|
+
import { D as ChainIdentifier, n as Screen, p as PrepareSendQuote, r as SolanaWalletContextValue, t as Mode, ut as TransactionState } from "./useViewManager-BeUH_k1s.js";
|
|
3
|
+
import { FeeOption, GasFeeOptions, IntentProtocolVersion } from "@0xtrails/api";
|
|
4
|
+
import React$1, { ComponentType, ReactElement, ReactNode } from "react";
|
|
5
|
+
import { EvmAdapterRuntime, EvmChainConfig, EvmWalletDescriptor, TrailsUnifiedWalletConnectOption, TrailsWalletConnection, useWalletSession as useWalletSession$1 } from "@0xtrails/wallet";
|
|
6
|
+
import { TrailsWalletNamespace } from "@0xtrails/wallet/core";
|
|
7
|
+
|
|
8
|
+
//#region src/widget/providers/TrailsModalProvider.d.ts
|
|
9
|
+
interface PendingFeeConfirmation {
|
|
10
|
+
resolve: (selectedFeeOption: FeeOption | null) => void;
|
|
11
|
+
reject: (error: Error) => void;
|
|
12
|
+
}
|
|
13
|
+
interface ModalSelectionParams {
|
|
14
|
+
fromTokenAddress: string;
|
|
15
|
+
fromChainId: number;
|
|
16
|
+
fromAmount?: string;
|
|
17
|
+
originToken?: Token$1;
|
|
18
|
+
}
|
|
19
|
+
type HostTransactionStatus = "idle" | "awaiting-origin" | "awaiting-amount" | "quoting" | "confirmation" | "pending" | "success" | "error";
|
|
20
|
+
interface HostTransactionDetails {
|
|
21
|
+
to?: string;
|
|
22
|
+
tokenAddress?: string;
|
|
23
|
+
tokenAmount?: string;
|
|
24
|
+
toChainId?: number;
|
|
25
|
+
data?: string;
|
|
26
|
+
targetAmountUsd?: number | null;
|
|
27
|
+
targetAmountUsdFormatted?: string | null;
|
|
28
|
+
originToken?: Token$1;
|
|
29
|
+
}
|
|
30
|
+
interface HostTransactionResultLinks {
|
|
31
|
+
originTxHash?: string;
|
|
32
|
+
originExplorerUrl?: string;
|
|
33
|
+
destinationTxHash?: string;
|
|
34
|
+
destinationExplorerUrl?: string;
|
|
35
|
+
}
|
|
36
|
+
interface HostTransactionState {
|
|
37
|
+
status: HostTransactionStatus;
|
|
38
|
+
details?: HostTransactionDetails;
|
|
39
|
+
error?: string;
|
|
40
|
+
result?: HostTransactionResultLinks;
|
|
41
|
+
retryEnabled?: boolean;
|
|
42
|
+
}
|
|
43
|
+
interface LastOriginSelection {
|
|
44
|
+
tokenAddress: string;
|
|
45
|
+
chainId: number;
|
|
46
|
+
amount?: string;
|
|
47
|
+
}
|
|
48
|
+
interface TrailsModalContextType {
|
|
49
|
+
isModalOpen: boolean;
|
|
50
|
+
openModal: () => void;
|
|
51
|
+
closeModal: () => void;
|
|
52
|
+
getHandleCloseModal: () => (() => void) | null;
|
|
53
|
+
setHandleCloseModal: (handler: (() => void) | null) => void;
|
|
54
|
+
pendingSelection?: {
|
|
55
|
+
resolve: (selection: ModalSelectionParams) => void;
|
|
56
|
+
reject: (error: Error) => void;
|
|
57
|
+
requireAmountInput?: boolean;
|
|
58
|
+
};
|
|
59
|
+
setPendingSelection: (pending: {
|
|
60
|
+
resolve: (selection: ModalSelectionParams) => void;
|
|
61
|
+
reject: (error: Error) => void;
|
|
62
|
+
requireAmountInput?: boolean;
|
|
63
|
+
} | undefined) => void;
|
|
64
|
+
hostTransactionState: HostTransactionState;
|
|
65
|
+
setHostTransactionState: (next: HostTransactionState | ((prev: HostTransactionState) => HostTransactionState)) => void;
|
|
66
|
+
resetHostTransactionState: () => void;
|
|
67
|
+
resetForNewTransaction: () => void;
|
|
68
|
+
hostTransactionQuote: PrepareSendQuote | null;
|
|
69
|
+
setHostTransactionQuote: (quote: PrepareSendQuote | null | ((prev: PrepareSendQuote | null) => PrepareSendQuote | null)) => void;
|
|
70
|
+
hostTransactionStates: TransactionState[];
|
|
71
|
+
setHostTransactionStates: (states: TransactionState[] | ((prev: TransactionState[]) => TransactionState[])) => void;
|
|
72
|
+
hostTransactionTimestamp: number | null;
|
|
73
|
+
setHostTransactionTimestamp: (value: number | null | ((prev: number | null) => number | null)) => void;
|
|
74
|
+
/** Gas fee options surfaced by the latest quote, for in-modal fee-token selection. */
|
|
75
|
+
feeOptions: GasFeeOptions | null;
|
|
76
|
+
setFeeOptions: (feeOptions: GasFeeOptions | null) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Pending fee-confirmation handshake: set by `useTrailsSendTransaction` after a
|
|
79
|
+
* quote with selectable fee tokens, resolved by the modal once the user confirms
|
|
80
|
+
* their chosen fee token (or `null` for native gas).
|
|
81
|
+
*/
|
|
82
|
+
pendingFeeConfirmation?: PendingFeeConfirmation;
|
|
83
|
+
setPendingFeeConfirmation: (pending: PendingFeeConfirmation | undefined) => void;
|
|
84
|
+
receiptActionButtonText: string | null;
|
|
85
|
+
setReceiptActionButtonText: (text: string | null) => void;
|
|
86
|
+
onReceiptAction: (() => void) | null;
|
|
87
|
+
setOnReceiptAction: (callback: (() => void) | null) => void;
|
|
88
|
+
retryTransactionRef: {
|
|
89
|
+
current: (() => void) | null;
|
|
90
|
+
};
|
|
91
|
+
repeatTransactionRef: {
|
|
92
|
+
current: (() => void) | null;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Re-arms origin selection after the user navigates back to the token list
|
|
96
|
+
* from a post-selection screen (quoting/confirmation/fee). The one-shot
|
|
97
|
+
* pendingSelection promise is consumed on first pick, so without this a
|
|
98
|
+
* second selection would never quote. Set by useTrailsSendTransaction.
|
|
99
|
+
*/
|
|
100
|
+
restartOriginSelectionRef: {
|
|
101
|
+
current: (() => void) | null;
|
|
102
|
+
};
|
|
103
|
+
lastOriginSelection: LastOriginSelection | null;
|
|
104
|
+
setLastOriginSelection: (selection: LastOriginSelection | null) => void;
|
|
105
|
+
}
|
|
106
|
+
interface TrailsModalProviderProps {
|
|
107
|
+
children: React.ReactNode;
|
|
108
|
+
}
|
|
109
|
+
declare const TrailsModalProvider: ({
|
|
110
|
+
children
|
|
111
|
+
}: TrailsModalProviderProps) => import("react").JSX.Element;
|
|
112
|
+
declare function useTrailsModal(): TrailsModalContextType;
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/widget/providers/sequenceSupport.d.ts
|
|
115
|
+
interface TrailsSequenceSupportConfig {
|
|
116
|
+
trailsApiKey: string;
|
|
117
|
+
sequenceApiUrl: string;
|
|
118
|
+
sequenceIndexerUrl: string;
|
|
119
|
+
sequenceMetadataUrl: string;
|
|
120
|
+
}
|
|
121
|
+
interface TrailsSequenceFeeToken {
|
|
122
|
+
contractAddress?: string | null;
|
|
123
|
+
decimals?: number;
|
|
124
|
+
logoURL?: string;
|
|
125
|
+
symbol?: string;
|
|
126
|
+
}
|
|
127
|
+
interface TrailsSequenceFeeOption {
|
|
128
|
+
balance?: string;
|
|
129
|
+
hasEnoughBalanceForFee?: boolean;
|
|
130
|
+
token: TrailsSequenceFeeToken;
|
|
131
|
+
value?: string;
|
|
132
|
+
}
|
|
133
|
+
interface TrailsWaasFeeOptionConfirmation {
|
|
134
|
+
chainId: number;
|
|
135
|
+
id: string;
|
|
136
|
+
options: TrailsSequenceFeeOption[];
|
|
137
|
+
}
|
|
138
|
+
interface TrailsWaasFeeOptionsControllerValue {
|
|
139
|
+
confirmPendingFeeOption: (id: string, feeTokenAddress: string | null) => void;
|
|
140
|
+
pendingFeeOptionConfirmation: TrailsWaasFeeOptionConfirmation | undefined;
|
|
141
|
+
rejectPendingFeeOption: (id: string) => void;
|
|
142
|
+
}
|
|
143
|
+
interface TrailsWaasFeeOptionsControllerProps {
|
|
144
|
+
chainId?: number;
|
|
145
|
+
children: (value: TrailsWaasFeeOptionsControllerValue) => ReactNode;
|
|
146
|
+
}
|
|
147
|
+
interface TrailsSequenceSupportProviderProps {
|
|
148
|
+
children: ReactNode;
|
|
149
|
+
config: TrailsSequenceSupportConfig;
|
|
150
|
+
}
|
|
151
|
+
interface TrailsSequenceSupport {
|
|
152
|
+
Provider?: ComponentType<TrailsSequenceSupportProviderProps>;
|
|
153
|
+
WaasFeeOptionsController?: ComponentType<TrailsWaasFeeOptionsControllerProps>;
|
|
154
|
+
}
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/widget/providers/TrailsProvider.d.ts
|
|
157
|
+
type SequenceEnv = "prod" | "dev" | "local" | "cors-anywhere";
|
|
158
|
+
interface TrailsAdapterProviderProps {
|
|
159
|
+
children: ReactNode;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Runtime-neutral wallet adapter shape consumed by `0xtrails`.
|
|
163
|
+
*
|
|
164
|
+
* Adapter packages such as `@0xtrails/adapter-wagmi` return this shape.
|
|
165
|
+
*/
|
|
166
|
+
interface TrailsAdapterConfig {
|
|
167
|
+
Provider?: ComponentType<TrailsAdapterProviderProps & Record<string, unknown>>;
|
|
168
|
+
providerProps?: Record<string, unknown>;
|
|
169
|
+
namespaces?: readonly TrailsWalletNamespace[];
|
|
170
|
+
sequenceSupport?: TrailsSequenceSupport;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Optional adapter entry mode used for advanced composition.
|
|
174
|
+
*
|
|
175
|
+
* Most integrations should use the default `shared` mode.
|
|
176
|
+
*/
|
|
177
|
+
type TrailsAdapterManagedBy = "host" | "trails";
|
|
178
|
+
/**
|
|
179
|
+
* Wrap an adapter entry when you need to supply an explicit key or declare
|
|
180
|
+
* wallet lifecycle ownership. `managedBy` does not decide whether an adapter
|
|
181
|
+
* bridges to a parent provider; that is determined by the adapter itself, e.g.
|
|
182
|
+
* the wagmi adapter bridges only when it receives the same wagmi config
|
|
183
|
+
* instance as the ambient `WagmiProvider`.
|
|
184
|
+
*/
|
|
185
|
+
interface WrappedTrailsAdapterEntry {
|
|
186
|
+
adapter: TrailsAdapterConfig;
|
|
187
|
+
key?: string;
|
|
188
|
+
managedBy?: TrailsAdapterManagedBy;
|
|
189
|
+
}
|
|
190
|
+
type TrailsAdapterEntry = TrailsAdapterConfig | WrappedTrailsAdapterEntry;
|
|
191
|
+
interface TrailsConfig {
|
|
192
|
+
trailsApiKey: string;
|
|
193
|
+
trailsApiUrl: string;
|
|
194
|
+
trailsAppUrl: string;
|
|
195
|
+
sequenceIndexerUrl: string;
|
|
196
|
+
sequenceNodeGatewayUrl: string;
|
|
197
|
+
sequenceMetadataUrl: string;
|
|
198
|
+
sequenceApiUrl: string;
|
|
199
|
+
keyMachineUrl: string;
|
|
200
|
+
/** Solana mainnet JSON-RPC for SDK-initiated reads. Env vars are the fallback. */
|
|
201
|
+
solanaRpcUrl?: string;
|
|
202
|
+
walletConnectProjectId: string;
|
|
203
|
+
slippageTolerance: string | number;
|
|
204
|
+
debug: boolean;
|
|
205
|
+
commitHash: string | undefined;
|
|
206
|
+
hasAdapters: boolean;
|
|
207
|
+
intentProtocol?: IntentProtocolVersion;
|
|
208
|
+
sequenceSupport?: TrailsSequenceSupport;
|
|
209
|
+
}
|
|
210
|
+
interface TrailsProviderConfig {
|
|
211
|
+
trailsApiKey: string;
|
|
212
|
+
trailsApiUrl?: string;
|
|
213
|
+
trailsAppUrl?: string;
|
|
214
|
+
sequenceIndexerUrl?: string;
|
|
215
|
+
sequenceNodeGatewayUrl?: string;
|
|
216
|
+
sequenceMetadataUrl?: string;
|
|
217
|
+
sequenceApiUrl?: string;
|
|
218
|
+
keyMachineUrl?: string;
|
|
219
|
+
/** Solana mainnet JSON-RPC for SDK-initiated reads (balances, SPL scans). */
|
|
220
|
+
solanaRpcUrl?: string;
|
|
221
|
+
walletConnectProjectId?: string;
|
|
222
|
+
slippageTolerance?: string | number;
|
|
223
|
+
debug?: boolean;
|
|
224
|
+
intentProtocol?: IntentProtocolVersion;
|
|
225
|
+
/**
|
|
226
|
+
* Optional wallet adapters for connecting Trails to explicit wallet runtimes.
|
|
227
|
+
*
|
|
228
|
+
* When omitted, `TrailsProvider` mounts the built-in native EVM wallet
|
|
229
|
+
* runtime by default. Provide adapters here when widgets and hooks should
|
|
230
|
+
* share the same configured wallet runtime. For composite adapter lists,
|
|
231
|
+
* wrap host-owned entries with `managedBy: "host"` so Trails does not own
|
|
232
|
+
* their lifecycle.
|
|
233
|
+
*/
|
|
234
|
+
adapters?: readonly TrailsAdapterEntry[];
|
|
235
|
+
}
|
|
236
|
+
interface TrailsProviderProps {
|
|
237
|
+
children: ReactNode;
|
|
238
|
+
config: TrailsProviderConfig;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Supplies Trails configuration to hooks and mounts either the built-in wallet
|
|
242
|
+
* runtime or provider-owned adapters.
|
|
243
|
+
*
|
|
244
|
+
* `TrailsWidget` can self-bootstrap without this provider for the standalone
|
|
245
|
+
* built-in runtime path. Use `TrailsProvider` when you want app-level config,
|
|
246
|
+
* direct hook usage, or shared adapter ownership across hooks and widgets.
|
|
247
|
+
*/
|
|
248
|
+
declare const TrailsProvider: ({
|
|
249
|
+
children,
|
|
250
|
+
config
|
|
251
|
+
}: TrailsProviderProps) => import("react").JSX.Element;
|
|
252
|
+
declare function useTrails(): Readonly<TrailsConfig>;
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region src/adapters/evmAdapter.d.ts
|
|
255
|
+
interface EvmAdapterOptions {
|
|
256
|
+
wallets: EvmWalletDescriptor | readonly EvmWalletDescriptor[];
|
|
257
|
+
chains?: readonly [EvmChainConfig, ...EvmChainConfig[]];
|
|
258
|
+
runtime?: EvmAdapterRuntime;
|
|
259
|
+
supportsWalletSelection?: boolean;
|
|
260
|
+
}
|
|
261
|
+
declare function evmAdapter(options: EvmAdapterOptions): TrailsAdapterConfig;
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region src/theme.d.ts
|
|
264
|
+
type Theme = "light" | "dark" | "auto";
|
|
265
|
+
//#endregion
|
|
266
|
+
//#region src/onramp/TrailsOnRampProvider.d.ts
|
|
267
|
+
interface MeshConfig {
|
|
268
|
+
exchanges?: string[];
|
|
269
|
+
clientId?: string;
|
|
270
|
+
environment?: "sandbox" | "production";
|
|
271
|
+
sandbox?: boolean;
|
|
272
|
+
sandboxEnabled?: boolean;
|
|
273
|
+
productionEnabled?: boolean;
|
|
274
|
+
mode?: "sandbox" | "production";
|
|
275
|
+
}
|
|
276
|
+
interface BluvoConfig {
|
|
277
|
+
enabled?: boolean;
|
|
278
|
+
environment?: "sandbox" | "production";
|
|
279
|
+
allowedExchanges?: string[];
|
|
280
|
+
}
|
|
281
|
+
interface TrailsOnRampConfig {
|
|
282
|
+
mesh?: MeshConfig;
|
|
283
|
+
bluvo?: BluvoConfig;
|
|
284
|
+
environment?: "sandbox" | "production";
|
|
285
|
+
apiKey?: string;
|
|
286
|
+
jwt?: string;
|
|
287
|
+
hostname?: string;
|
|
288
|
+
clientId?: string;
|
|
289
|
+
}
|
|
290
|
+
interface TrailsOnRampContextValue {
|
|
291
|
+
config: TrailsOnRampConfig;
|
|
292
|
+
}
|
|
293
|
+
interface TrailsOnRampProviderProps {
|
|
294
|
+
config?: TrailsOnRampConfig;
|
|
295
|
+
children: React$1.ReactNode;
|
|
296
|
+
}
|
|
297
|
+
declare function TrailsOnRampProvider({
|
|
298
|
+
config,
|
|
299
|
+
children
|
|
300
|
+
}: TrailsOnRampProviderProps): React$1.JSX.Element;
|
|
301
|
+
declare function useTrailsOnRamp(): TrailsOnRampContextValue | null;
|
|
302
|
+
declare function isMeshEnabled(config?: TrailsOnRampConfig | null): boolean;
|
|
303
|
+
declare function getActiveMeshMode(config?: TrailsOnRampConfig | null): "sandbox" | "production";
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region src/widget/shared/destinationSupport.d.ts
|
|
306
|
+
type SupportedTokensByChainConfig = {
|
|
307
|
+
chain: ChainIdentifier;
|
|
308
|
+
tokens: string[];
|
|
309
|
+
};
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/widget/props.d.ts
|
|
312
|
+
/** Transfer result data returned by an onramp provider on completion.
|
|
313
|
+
* Shape based on @meshconnect/web-link-sdk TransferFinishedPayload. */
|
|
314
|
+
interface OnrampTransferResult {
|
|
315
|
+
status: string;
|
|
316
|
+
txId: string;
|
|
317
|
+
fromAddress: string;
|
|
318
|
+
toAddress: string;
|
|
319
|
+
symbol: string;
|
|
320
|
+
amount: number;
|
|
321
|
+
networkId: string;
|
|
322
|
+
amountInFiat?: number;
|
|
323
|
+
totalAmountInFiat?: number;
|
|
324
|
+
networkName?: string;
|
|
325
|
+
txHash?: string;
|
|
326
|
+
transferId?: string;
|
|
327
|
+
}
|
|
328
|
+
type FundMethodListOption = "connected-wallet" | "crypto-transfer" | "cc-onramp" | "exchange" | "exchange-onramp";
|
|
329
|
+
declare const WidgetFundMethod: {
|
|
330
|
+
readonly Wallet: "wallet";
|
|
331
|
+
readonly CryptoTransfer: "crypto-transfer";
|
|
332
|
+
readonly Onramp: "onramp";
|
|
333
|
+
readonly OnrampExchange: "onramp-exchange";
|
|
334
|
+
};
|
|
335
|
+
type WidgetFundMethod = (typeof WidgetFundMethod)[keyof typeof WidgetFundMethod];
|
|
336
|
+
type ExchangeProvider = "mesh" | "bluvo";
|
|
337
|
+
type TrailsWidgetProps = {
|
|
338
|
+
/** Required when the widget is mounted without a parent `TrailsProvider`. */apiKey?: string;
|
|
339
|
+
sequenceIndexerUrl?: string;
|
|
340
|
+
trailsApiUrl?: string;
|
|
341
|
+
trailsAppUrl?: string;
|
|
342
|
+
sequenceNodeGatewayUrl?: string;
|
|
343
|
+
sequenceMetadataUrl?: string;
|
|
344
|
+
sequenceApiUrl?: string; /** Solana mainnet JSON-RPC for SDK-initiated reads (balances, SPL scans). */
|
|
345
|
+
solanaRpcUrl?: string;
|
|
346
|
+
toAddress?: string | null;
|
|
347
|
+
toAmount?: string | null; /** Controlled destination chain, user cannot change selection */
|
|
348
|
+
toChainId?: number | string | null; /** Controlled destination token, user cannot change selection */
|
|
349
|
+
toToken?: string | null; /** Default destination chain, user can change selection */
|
|
350
|
+
defaultToChainId?: number | string | null; /** Default destination token, user can change selection */
|
|
351
|
+
defaultToToken?: string | null; /** Destination chains visible/selectable in the widget. Accepts chain IDs, clear chain names, or viem Chain objects. */
|
|
352
|
+
supportedChains?: ChainIdentifier[] | null; /** Destination token allowlist grouped by chain. Tokens can be symbols or contract addresses. */
|
|
353
|
+
supportedTokensByChain?: SupportedTokensByChainConfig[] | null; /** Origin chains visible/selectable in withdraw source selection. */
|
|
354
|
+
originSupportedChains?: ChainIdentifier[] | null; /** Origin token allowlist grouped by chain for withdraw source selection. */
|
|
355
|
+
originSupportedTokensByChain?: SupportedTokensByChainConfig[] | null; /** Default input mode for fund/withdraw modes: "fiat" starts with USD input, "token" starts with token input */
|
|
356
|
+
defaultInputMode?: "fiat" | "token";
|
|
357
|
+
toCalldata?: string | null;
|
|
358
|
+
fromChainId?: number | string | null;
|
|
359
|
+
fromToken?: string | null; /** Pre-populate the source input amount (in human-readable token units, e.g. "1.5"). */
|
|
360
|
+
fromAmount?: string | null;
|
|
361
|
+
fromAccount?: string | null;
|
|
362
|
+
children?: ReactNode;
|
|
363
|
+
renderInline?: boolean;
|
|
364
|
+
theme?: Theme;
|
|
365
|
+
mode?: Mode;
|
|
366
|
+
/**
|
|
367
|
+
* Pre-select funding method used by the widget.
|
|
368
|
+
*
|
|
369
|
+
* This applies across modes (fund/pay/swap/earn) wherever funding method is used.
|
|
370
|
+
* In fund mode it also controls the initial destination flow:
|
|
371
|
+
* - "wallet" -> Funding with wallet flow
|
|
372
|
+
* - "crypto-transfer" --> Funding with QR Code or deposit to address flow
|
|
373
|
+
* - "onramp" --> Funding with onramp flow
|
|
374
|
+
* - "onramp-exchange" --> Funding with exchange flow
|
|
375
|
+
*/
|
|
376
|
+
fundMethod?: WidgetFundMethod;
|
|
377
|
+
fundTradeType?: "EXACT_INPUT" | "EXACT_OUTPUT"; /** Preferred provider for the exchange funding flow. Defaults to "mesh". */
|
|
378
|
+
exchangeProvider?: ExchangeProvider;
|
|
379
|
+
onOriginConfirmation?: (data: {
|
|
380
|
+
txHash: string;
|
|
381
|
+
chainId: number;
|
|
382
|
+
sessionId: string;
|
|
383
|
+
}) => void;
|
|
384
|
+
onDestinationConfirmation?: (data: {
|
|
385
|
+
txHash: string;
|
|
386
|
+
chainId: number;
|
|
387
|
+
sessionId: string;
|
|
388
|
+
}) => void;
|
|
389
|
+
onStart?: (data: {
|
|
390
|
+
sessionId: string;
|
|
391
|
+
}) => void;
|
|
392
|
+
onQuote?: (data: {
|
|
393
|
+
sessionId: string;
|
|
394
|
+
quote: PrepareSendQuote;
|
|
395
|
+
}) => void;
|
|
396
|
+
onSignRequest?: (data: {
|
|
397
|
+
sessionId: string;
|
|
398
|
+
}) => void;
|
|
399
|
+
onSign?: (data: {
|
|
400
|
+
sessionId: string;
|
|
401
|
+
}) => void;
|
|
402
|
+
onSignReject?: (data: {
|
|
403
|
+
sessionId: string;
|
|
404
|
+
error: unknown;
|
|
405
|
+
}) => void;
|
|
406
|
+
onSuccess?: (data: {
|
|
407
|
+
sessionId: string;
|
|
408
|
+
}) => void;
|
|
409
|
+
onError?: (data: {
|
|
410
|
+
sessionId: string;
|
|
411
|
+
error: unknown;
|
|
412
|
+
}) => void;
|
|
413
|
+
onStatus?: (data: {
|
|
414
|
+
sessionId: string;
|
|
415
|
+
transactionStates: TransactionState[];
|
|
416
|
+
}) => void;
|
|
417
|
+
onApproveRequest?: (data: {
|
|
418
|
+
sessionId: string;
|
|
419
|
+
}) => void;
|
|
420
|
+
onApprove?: (data: {
|
|
421
|
+
sessionId: string;
|
|
422
|
+
transactionHash: `0x${string}`;
|
|
423
|
+
}) => void;
|
|
424
|
+
onApproveReject?: (data: {
|
|
425
|
+
sessionId: string;
|
|
426
|
+
error: unknown;
|
|
427
|
+
}) => void;
|
|
428
|
+
onOpen?: () => void;
|
|
429
|
+
onClose?: () => void;
|
|
430
|
+
walletConnectProjectId?: string;
|
|
431
|
+
/**
|
|
432
|
+
* Optional wallet adapters for this widget instance.
|
|
433
|
+
*
|
|
434
|
+
* Use this when a widget should use explicit wallet runtime adapters instead
|
|
435
|
+
* of a parent `TrailsProvider` or the built-in EVM runtime.
|
|
436
|
+
*
|
|
437
|
+
* Do not provide adapters both here and in a parent `TrailsProvider`. This
|
|
438
|
+
* prop also cannot be used inside an existing parent wallet context. When
|
|
439
|
+
* omitted and no parent wallet context exists, `TrailsWidget` falls back to
|
|
440
|
+
* its built-in EVM runtime.
|
|
441
|
+
*
|
|
442
|
+
* Supports multiple adapters. Wrap entries with `managedBy: "host"` when
|
|
443
|
+
* Trails can use a host-owned wallet but must not own its lifecycle.
|
|
444
|
+
*/
|
|
445
|
+
adapters?: readonly TrailsAdapterEntry[];
|
|
446
|
+
paymasterUrls?: Array<{
|
|
447
|
+
chainId: number;
|
|
448
|
+
url: string;
|
|
449
|
+
}>;
|
|
450
|
+
buttonText?: string;
|
|
451
|
+
customCss?: string | Record<string, string>;
|
|
452
|
+
disableCss?: boolean;
|
|
453
|
+
swapProvider?: string;
|
|
454
|
+
bridgeProvider?: string;
|
|
455
|
+
swapProviderFallback?: boolean;
|
|
456
|
+
bridgeProviderFallback?: boolean; /** Force intent protocol version for quoting/execution instead of API default selection. */
|
|
457
|
+
intentProtocolVersion?: IntentProtocolVersion;
|
|
458
|
+
slippageTolerance?: number | string;
|
|
459
|
+
priceImpactWarningThresholdBps?: number;
|
|
460
|
+
priceImpactWarningMessage?: string;
|
|
461
|
+
priceImpactFallbackBridgeUrl?: string;
|
|
462
|
+
debug?: boolean;
|
|
463
|
+
hideAddWallet?: boolean; /** Options for customizing fund mode behavior */
|
|
464
|
+
fundOptions?: {
|
|
465
|
+
/** Hide the Swap button in the fund screen header. Default: false */hideSwap?: boolean; /** Array of wallet addresses to hide from the funding wallet selection. */
|
|
466
|
+
hideWallets?: string[];
|
|
467
|
+
/**
|
|
468
|
+
* Ordered list of funding methods to display.
|
|
469
|
+
*
|
|
470
|
+
* Supported readable values (mapped internally):
|
|
471
|
+
* - "connected-wallet"
|
|
472
|
+
* - "crypto-transfer"
|
|
473
|
+
* - "cc-onramp"
|
|
474
|
+
* - "exchange"
|
|
475
|
+
*
|
|
476
|
+
* Preferred values: "connected-wallet", "crypto-transfer", "exchange", "cc-onramp".
|
|
477
|
+
* Legacy alias "exchange-onramp" is still accepted.
|
|
478
|
+
*
|
|
479
|
+
* @example ["connected-wallet", "crypto-transfer"]
|
|
480
|
+
*/
|
|
481
|
+
fundMethodsList?: FundMethodListOption[];
|
|
482
|
+
/**
|
|
483
|
+
* If true, methods not in fundMethodsList are hidden.
|
|
484
|
+
*
|
|
485
|
+
* If false (default), unlisted methods are shown but disabled.
|
|
486
|
+
*
|
|
487
|
+
* Default: false.
|
|
488
|
+
*/
|
|
489
|
+
hideUnlistedFundMethods?: boolean; /** ISO 4217 currency code to pre-select in onramp mode (e.g. "EUR", "GBP") */
|
|
490
|
+
fiatCurrency?: string; /** Fiat amount to pre-populate in onramp mode */
|
|
491
|
+
fiatAmount?: string; /** Meld payment method type to pre-select (e.g. "CREDIT_DEBIT_CARD", "APPLE_PAY", "GOOGLE_PAY", "SEPA", "PAYPAL") */
|
|
492
|
+
paymentMethodType?: string; /** Mesh exchange key to pre-select (e.g. "coinbase", "robinhoodDirect"). Skips exchange selection screen. */
|
|
493
|
+
meshExchangeKey?: string;
|
|
494
|
+
};
|
|
495
|
+
toast?: boolean;
|
|
496
|
+
appName?: string;
|
|
497
|
+
appUrl?: string;
|
|
498
|
+
appImageUrl?: string;
|
|
499
|
+
appDescription?: string;
|
|
500
|
+
payMessage?: string;
|
|
501
|
+
/**
|
|
502
|
+
* Optional SVM signing adapter for Solana-origin edge quotes.
|
|
503
|
+
* This is separate from the EVM wallet runtime used by the rest of the widget.
|
|
504
|
+
*/
|
|
505
|
+
solanaWallet?: SolanaWalletContextValue | null;
|
|
506
|
+
isSmartWallet?: boolean;
|
|
507
|
+
/**
|
|
508
|
+
* Optional onramp configuration or factory.
|
|
509
|
+
* If provided, enables exchange funding options in the widget.
|
|
510
|
+
*
|
|
511
|
+
* @example
|
|
512
|
+
* ```tsx
|
|
513
|
+
* <TrailsWidget
|
|
514
|
+
* onramp={{
|
|
515
|
+
* mesh: {
|
|
516
|
+
* environment: "production",
|
|
517
|
+
* },
|
|
518
|
+
* }}
|
|
519
|
+
* />
|
|
520
|
+
* ```
|
|
521
|
+
*/
|
|
522
|
+
onramp?: TrailsOnRampConfig | ((handlers: {
|
|
523
|
+
setCurrentScreen: (screen: Screen) => void;
|
|
524
|
+
onComplete?: (transferData: OnrampTransferResult) => void;
|
|
525
|
+
onError?: (error: unknown) => void;
|
|
526
|
+
onBack?: () => void;
|
|
527
|
+
toTokenSymbol?: string;
|
|
528
|
+
toTokenAmount?: string;
|
|
529
|
+
toChainId?: number;
|
|
530
|
+
toRecipientAddress?: string;
|
|
531
|
+
toAmountUsd?: number;
|
|
532
|
+
selectedExchange?: {
|
|
533
|
+
integrationId: string;
|
|
534
|
+
exchangeKey: string;
|
|
535
|
+
exchangeName: string;
|
|
536
|
+
};
|
|
537
|
+
apiKey?: string;
|
|
538
|
+
hostname?: string;
|
|
539
|
+
}) => ReactElement);
|
|
540
|
+
};
|
|
541
|
+
//#endregion
|
|
542
|
+
//#region src/widget/widget.d.ts
|
|
543
|
+
interface TrailsWidgetRef {
|
|
544
|
+
openModal: () => void;
|
|
545
|
+
closeModal: () => void;
|
|
546
|
+
isModalOpen: boolean;
|
|
547
|
+
}
|
|
548
|
+
declare const TrailsWidget: React$1.ForwardRefExoticComponent<TrailsWidgetProps & React$1.RefAttributes<TrailsWidgetRef>>;
|
|
549
|
+
declare const createModalController: (ref: React$1.RefObject<TrailsWidgetRef>) => {
|
|
550
|
+
openModal: () => void;
|
|
551
|
+
closeModal: () => void;
|
|
552
|
+
isModalOpen: boolean;
|
|
553
|
+
};
|
|
554
|
+
//#endregion
|
|
555
|
+
//#region src/widget/components/TrailsHookModal.d.ts
|
|
556
|
+
/**
|
|
557
|
+
* TrailsHookModal is the modal component used by useTrailsSendTransaction.
|
|
558
|
+
* It consumes a parent wallet runtime when one exists and otherwise falls back
|
|
559
|
+
* to a widget-owned runtime when available.
|
|
560
|
+
*
|
|
561
|
+
* The modal content is wrapped with WidgetProviders to ensure all widget-level
|
|
562
|
+
* context providers are available, making shared components like ScreenHeader work.
|
|
563
|
+
*/
|
|
564
|
+
declare function TrailsHookModal(): import("react").JSX.Element;
|
|
565
|
+
//#endregion
|
|
566
|
+
//#region src/widget/connect/error/types.d.ts
|
|
567
|
+
type ConnectFailureKind = "user-rejected" | "wallet-not-detected" | "connector-unavailable" | "provider-unauthorized" | "unsupported-method" | "provider-disconnected" | "chain-disconnected" | "wallet-locked" | "walletconnect-expired" | "walletconnect-uri-unavailable" | "walletconnect-pairing-failed" | "deeplink-failed" | "popup-blocked" | "popup-closed" | "unsupported-network" | "switch-network-declined" | "switch-network-unavailable" | "timeout" | "invalid-configuration" | "rate-limited" | "server-unavailable" | "usage-exceeded" | "unknown";
|
|
568
|
+
type ConnectErrorSource = "evm-provider" | "solana-provider" | "walletconnect" | "wallet-registry" | "network-switch" | "trails-api" | "sdk-configuration" | "unknown";
|
|
569
|
+
type ConnectErrorSeverity = "info" | "warning" | "error" | "fatal";
|
|
570
|
+
type SerializedConnectError = {
|
|
571
|
+
causeMessage?: string;
|
|
572
|
+
code?: number | string;
|
|
573
|
+
message: string;
|
|
574
|
+
name?: string;
|
|
575
|
+
rawType: string;
|
|
576
|
+
stack?: string;
|
|
577
|
+
};
|
|
578
|
+
type ConnectWalletDisplay = {
|
|
579
|
+
ecosystem?: "evm" | "multi" | "solana";
|
|
580
|
+
icon?: string;
|
|
581
|
+
id?: string;
|
|
582
|
+
name?: string;
|
|
583
|
+
};
|
|
584
|
+
type ConnectNetworkDisplay = {
|
|
585
|
+
currentName?: string;
|
|
586
|
+
supportedNetworks?: Array<{
|
|
587
|
+
ecosystem: "evm" | "solana";
|
|
588
|
+
icon?: string;
|
|
589
|
+
id: string;
|
|
590
|
+
name: string;
|
|
591
|
+
}>;
|
|
592
|
+
targetName?: string;
|
|
593
|
+
};
|
|
594
|
+
type ConnectErrorViewModel = {
|
|
595
|
+
debugCode?: string;
|
|
596
|
+
details?: string;
|
|
597
|
+
helper?: string;
|
|
598
|
+
id: string;
|
|
599
|
+
kind: ConnectFailureKind;
|
|
600
|
+
message: string;
|
|
601
|
+
network?: ConnectNetworkDisplay;
|
|
602
|
+
primaryAction?: "choose-wallet" | "copy-link" | "install-wallet" | "retry" | "support" | "switch-network";
|
|
603
|
+
retryLabel?: string;
|
|
604
|
+
serializedError?: SerializedConnectError;
|
|
605
|
+
severity: ConnectErrorSeverity;
|
|
606
|
+
source: ConnectErrorSource;
|
|
607
|
+
title: string;
|
|
608
|
+
wallet?: ConnectWalletDisplay;
|
|
609
|
+
walletConnect?: {
|
|
610
|
+
linkMode?: "desktop" | "mobile" | "qr" | "web";
|
|
611
|
+
pairingExpiry?: number;
|
|
612
|
+
uri?: string;
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
//#endregion
|
|
616
|
+
//#region src/widget/connect/errors.d.ts
|
|
617
|
+
type ConnectErrorState = ConnectErrorViewModel & {
|
|
618
|
+
connectionType?: "evm" | "solana";
|
|
619
|
+
walletIcon?: string;
|
|
620
|
+
walletId?: string;
|
|
621
|
+
walletName?: string;
|
|
622
|
+
};
|
|
623
|
+
//#endregion
|
|
624
|
+
//#region src/widget/connect/types.d.ts
|
|
625
|
+
type ConnectWalletOption = Omit<TrailsUnifiedWalletConnectOption, "variants"> & {
|
|
626
|
+
disabledReason?: string;
|
|
627
|
+
variants?: readonly ConnectWalletOption[];
|
|
628
|
+
};
|
|
629
|
+
//#endregion
|
|
630
|
+
//#region src/widget/connect/TrailsConnectWallet.d.ts
|
|
631
|
+
type TrailsConnectWalletInitialPendingWallet = {
|
|
632
|
+
connectionType?: "evm" | "solana";
|
|
633
|
+
icon?: string;
|
|
634
|
+
id: string;
|
|
635
|
+
name?: string;
|
|
636
|
+
};
|
|
637
|
+
type ConnectedPayload = TrailsWalletConnection | {
|
|
638
|
+
address?: string;
|
|
639
|
+
namespace?: "eip155" | "solana";
|
|
640
|
+
walletId: string;
|
|
641
|
+
};
|
|
642
|
+
type WalletDisabledReasonResolver = (wallet: ConnectWalletOption) => string | undefined;
|
|
643
|
+
interface TrailsConnectWalletProps {
|
|
644
|
+
className?: string;
|
|
645
|
+
hideBackButton?: boolean;
|
|
646
|
+
onBack?: () => void;
|
|
647
|
+
onClose?: () => void;
|
|
648
|
+
initialView?: "list" | "walletconnect" | "pending" | "error";
|
|
649
|
+
initialWalletId?: string;
|
|
650
|
+
initialPendingWallet?: TrailsConnectWalletInitialPendingWallet;
|
|
651
|
+
initialError?: ConnectErrorState | null;
|
|
652
|
+
initialIsConnecting?: boolean;
|
|
653
|
+
getWalletDisabledReason?: WalletDisabledReasonResolver;
|
|
654
|
+
onConnected?: (connection: ConnectedPayload) => void;
|
|
655
|
+
onError?: (error: ConnectErrorState) => void;
|
|
656
|
+
showFooter?: boolean;
|
|
657
|
+
}
|
|
658
|
+
declare const TrailsConnectWallet: React$1.FC<TrailsConnectWalletProps>;
|
|
659
|
+
//#endregion
|
|
660
|
+
//#region src/widget/connect/TrailsConnectDialog.d.ts
|
|
661
|
+
interface TrailsConnectDialogProps extends Omit<TrailsConnectWalletProps, "className" | "onBack" | "onClose"> {
|
|
662
|
+
onClose: () => void;
|
|
663
|
+
open: boolean;
|
|
664
|
+
}
|
|
665
|
+
declare const TrailsConnectDialog: React$1.FC<TrailsConnectDialogProps>;
|
|
666
|
+
//#endregion
|
|
667
|
+
//#region src/widget/shared/methodMap.d.ts
|
|
668
|
+
type FiatPaymentMethod = "CREDIT_DEBIT_CARD";
|
|
669
|
+
type ExchangePaymentMethod = "EXCHANGE";
|
|
670
|
+
type CryptoPaymentMethod = "CONNECTED_WALLET" | "CRYPTO_TRANSFER";
|
|
671
|
+
type PaymentMethod = FiatPaymentMethod | ExchangePaymentMethod | CryptoPaymentMethod;
|
|
672
|
+
//#endregion
|
|
673
|
+
//#region src/widget/shared/types.d.ts
|
|
674
|
+
type SupportedTokensByChain = {
|
|
675
|
+
chain: ChainIdentifier;
|
|
676
|
+
tokens: string[];
|
|
677
|
+
};
|
|
678
|
+
type DestinationSupportConfig = {
|
|
679
|
+
/** Destination chains visible/selectable in the widget. Accepts chain IDs, clear chain names, or viem Chain objects. */supportedChains?: ChainIdentifier[]; /** Destination token allowlist grouped by chain. Tokens can be symbols or contract addresses. */
|
|
680
|
+
supportedTokensByChain?: SupportedTokensByChain[];
|
|
681
|
+
};
|
|
682
|
+
/**
|
|
683
|
+
* Locked destination token on an initial destination chain.
|
|
684
|
+
* `token` is controlled, but `chain` still behaves as the initial chain context.
|
|
685
|
+
*/
|
|
686
|
+
type LockedDestinationToken = {
|
|
687
|
+
chain: ChainIdentifier; /** Locked destination token (symbol or contract address). */
|
|
688
|
+
token: string;
|
|
689
|
+
defaultChain?: never;
|
|
690
|
+
defaultToken?: never;
|
|
691
|
+
} & DestinationSupportConfig;
|
|
692
|
+
/**
|
|
693
|
+
* Default destination: chain and token are pre-selected, user can change.
|
|
694
|
+
* Cannot be combined with chain / token.
|
|
695
|
+
*/
|
|
696
|
+
type DefaultDestination = {
|
|
697
|
+
defaultChain: ChainIdentifier; /** Pre-selected destination token (user can change). */
|
|
698
|
+
defaultToken: string;
|
|
699
|
+
chain?: never;
|
|
700
|
+
token?: never;
|
|
701
|
+
} & DestinationSupportConfig;
|
|
702
|
+
/**
|
|
703
|
+
* Initial destination chain with a default destination token.
|
|
704
|
+
* Both are soft selections: the user can still choose another destination token.
|
|
705
|
+
*/
|
|
706
|
+
type InitialChainWithDefaultToken = {
|
|
707
|
+
chain: ChainIdentifier; /** Pre-selected destination token (user can change). */
|
|
708
|
+
defaultToken: string;
|
|
709
|
+
defaultChain?: never;
|
|
710
|
+
token?: never;
|
|
711
|
+
} & DestinationSupportConfig;
|
|
712
|
+
/** Destination chain/token config. `token` locks the token; `defaultToken` only preselects it. */
|
|
713
|
+
type DestinationConfig = LockedDestinationToken | DefaultDestination | InitialChainWithDefaultToken;
|
|
714
|
+
/**
|
|
715
|
+
* Pay is an invoice/request flow: the recipient declares the exact token,
|
|
716
|
+
* amount, and chain they want to be paid with. Soft destination selection does
|
|
717
|
+
* not apply here.
|
|
718
|
+
*/
|
|
719
|
+
type PayDestinationConfig = {
|
|
720
|
+
chain: ChainIdentifier; /** Locked destination token (symbol or contract address). */
|
|
721
|
+
token: string;
|
|
722
|
+
} & DestinationSupportConfig;
|
|
723
|
+
/**
|
|
724
|
+
* Strict-crypto origin shape additions that intersect with the `from` shape on
|
|
725
|
+
* EXCHANGE / CRYPTO / undefined `paymentMethod` arms (NOT the FIAT arm).
|
|
726
|
+
*
|
|
727
|
+
* Use `token` to specify the ERC20 source token (symbol or contract address).
|
|
728
|
+
* `from.currency` is reserved for ISO 4217 fiat codes on the fiat arm only.
|
|
729
|
+
*/
|
|
730
|
+
type CryptoOriginToken = {
|
|
731
|
+
/** ERC20 token identifier — symbol (e.g. "USDC") or contract address. */token?: string; /** `currency` is reserved for the fiat arm only; explicitly excluded here so TS catches misuse. */
|
|
732
|
+
currency?: never;
|
|
733
|
+
};
|
|
734
|
+
type OptionalDestinationConfig = ({
|
|
735
|
+
chain?: ChainIdentifier;
|
|
736
|
+
token?: string;
|
|
737
|
+
defaultChain?: never;
|
|
738
|
+
defaultToken?: never;
|
|
739
|
+
} & DestinationSupportConfig) | ({
|
|
740
|
+
chain?: ChainIdentifier; /** Pre-selected destination token (user can change). */
|
|
741
|
+
defaultToken?: string;
|
|
742
|
+
defaultChain?: never;
|
|
743
|
+
token?: never;
|
|
744
|
+
} & DestinationSupportConfig) | ({
|
|
745
|
+
defaultChain?: ChainIdentifier;
|
|
746
|
+
defaultToken?: string;
|
|
747
|
+
chain?: never;
|
|
748
|
+
token?: never;
|
|
749
|
+
} & DestinationSupportConfig);
|
|
750
|
+
type AppMetadata = {
|
|
751
|
+
name?: string;
|
|
752
|
+
url?: string;
|
|
753
|
+
imageUrl?: string;
|
|
754
|
+
description?: string;
|
|
755
|
+
};
|
|
756
|
+
type DevConfig = {
|
|
757
|
+
debug?: boolean;
|
|
758
|
+
toast?: boolean;
|
|
759
|
+
sequenceIndexerUrl?: string;
|
|
760
|
+
trailsApiUrl?: string;
|
|
761
|
+
trailsAppUrl?: string;
|
|
762
|
+
sequenceNodeGatewayUrl?: string;
|
|
763
|
+
sequenceMetadataUrl?: string;
|
|
764
|
+
sequenceApiUrl?: string;
|
|
765
|
+
};
|
|
766
|
+
type SharedWidgetProps = {
|
|
767
|
+
adapters?: TrailsWidgetProps["adapters"];
|
|
768
|
+
walletConnectProjectId?: string;
|
|
769
|
+
renderInline?: boolean;
|
|
770
|
+
theme?: TrailsWidgetProps["theme"];
|
|
771
|
+
customCss?: string | Record<string, string>;
|
|
772
|
+
disableCss?: boolean;
|
|
773
|
+
swapProvider?: string;
|
|
774
|
+
bridgeProvider?: string;
|
|
775
|
+
swapProviderFallback?: boolean;
|
|
776
|
+
bridgeProviderFallback?: boolean;
|
|
777
|
+
slippageTolerance?: number | string;
|
|
778
|
+
priceImpactWarningThresholdBps?: number;
|
|
779
|
+
priceImpactWarningMessage?: string;
|
|
780
|
+
priceImpactFallbackBridgeUrl?: string;
|
|
781
|
+
hideAddWallet?: boolean;
|
|
782
|
+
isSmartWallet?: boolean; /** Custom CTA button text (e.g. "Deposit Now", "Supply", "Bridge"). */
|
|
783
|
+
buttonText?: string; /** Force intent protocol version for quoting/execution instead of API default selection. */
|
|
784
|
+
intentProtocolVersion?: IntentProtocolVersion; /** Solana mainnet JSON-RPC for SDK-initiated reads. Falls back to env, then public default. */
|
|
785
|
+
solanaRpcUrl?: string;
|
|
786
|
+
appMetadata?: AppMetadata;
|
|
787
|
+
dev?: DevConfig;
|
|
788
|
+
onOpen?: () => void;
|
|
789
|
+
onClose?: () => void;
|
|
790
|
+
onOriginConfirmation?: TrailsWidgetProps["onOriginConfirmation"];
|
|
791
|
+
onDestinationConfirmation?: TrailsWidgetProps["onDestinationConfirmation"];
|
|
792
|
+
onQuote?: TrailsWidgetProps["onQuote"];
|
|
793
|
+
onSignRequest?: TrailsWidgetProps["onSignRequest"];
|
|
794
|
+
onSign?: TrailsWidgetProps["onSign"];
|
|
795
|
+
onSignReject?: TrailsWidgetProps["onSignReject"];
|
|
796
|
+
onStatus?: TrailsWidgetProps["onStatus"];
|
|
797
|
+
onApproveRequest?: TrailsWidgetProps["onApproveRequest"];
|
|
798
|
+
onApprove?: TrailsWidgetProps["onApprove"];
|
|
799
|
+
onApproveReject?: TrailsWidgetProps["onApproveReject"];
|
|
800
|
+
solanaWallet?: TrailsWidgetProps["solanaWallet"];
|
|
801
|
+
};
|
|
802
|
+
//#endregion
|
|
803
|
+
//#region src/widget/shared/resolvePaymentSource.d.ts
|
|
804
|
+
type FiatPaymentSourceFrom = {
|
|
805
|
+
/** ISO 4217 fiat currency code, e.g. "EUR", "GBP". */currency?: string; /** Fiat amount to charge (human-readable). Accepts `string` or `number`. */
|
|
806
|
+
amount?: string | number;
|
|
807
|
+
};
|
|
808
|
+
type CryptoPaymentSourceFrom = {
|
|
809
|
+
/** Source chain — chain ID, name (e.g. "base"), or viem Chain object. */chain: ChainIdentifier; /** Source amount in human-readable units. Accepts `string` or `number`. */
|
|
810
|
+
amount?: string | number; /** Wallet address to fund from. Defaults to the connected wallet. */
|
|
811
|
+
walletAddress?: string;
|
|
812
|
+
} & CryptoOriginToken;
|
|
813
|
+
type ExchangePaymentSourceFrom = CryptoPaymentSourceFrom & {
|
|
814
|
+
/** Mesh exchange key, e.g. "coinbase", "robinhoodDirect". Omit to let the user pick. */exchange?: string;
|
|
815
|
+
};
|
|
816
|
+
type PaymentSourceProps = {
|
|
817
|
+
/** Fiat on-ramp via credit or debit card. */paymentMethod: FiatPaymentMethod;
|
|
818
|
+
from?: FiatPaymentSourceFrom;
|
|
819
|
+
} | {
|
|
820
|
+
/** Fund from a centralised exchange — "EXCHANGE". */paymentMethod: ExchangePaymentMethod;
|
|
821
|
+
from?: ExchangePaymentSourceFrom;
|
|
822
|
+
} | {
|
|
823
|
+
/** Crypto transfer from a wallet — "CONNECTED_WALLET". */paymentMethod: CryptoPaymentMethod;
|
|
824
|
+
from?: CryptoPaymentSourceFrom;
|
|
825
|
+
} | {
|
|
826
|
+
/** When omitted, all available payment methods are shown. */paymentMethod?: undefined;
|
|
827
|
+
from?: CryptoPaymentSourceFrom;
|
|
828
|
+
};
|
|
829
|
+
//#endregion
|
|
830
|
+
//#region src/widget/modes/SwapWidget.d.ts
|
|
831
|
+
type SwapPropsCommon = SharedWidgetProps & {
|
|
832
|
+
/** Trails API key used for authentication. Obtain one from the Trails dashboard. */apiKey: string;
|
|
833
|
+
to?: {
|
|
834
|
+
/** Desired output amount in human-readable units. Accepts `string` or `number`. */amount?: string | number; /** Optional low-level ABI-encoded calldata to execute on the destination chain after the swap lands. */
|
|
835
|
+
calldata?: string;
|
|
836
|
+
} & OptionalDestinationConfig; /** On-ramp provider configuration forwarded to the internal widget. */
|
|
837
|
+
onramp?: TrailsWidgetProps["onramp"]; /** Fires when the swap flow completes successfully. */
|
|
838
|
+
onSwapSuccess?: (data: {
|
|
839
|
+
sessionId: string;
|
|
840
|
+
}) => void; /** Fires when the user begins the swap flow. */
|
|
841
|
+
onSwapStart?: (data: {
|
|
842
|
+
sessionId: string;
|
|
843
|
+
}) => void; /** Fires when the swap flow encounters an error. */
|
|
844
|
+
onSwapError?: (data: {
|
|
845
|
+
sessionId: string;
|
|
846
|
+
error: unknown;
|
|
847
|
+
}) => void;
|
|
848
|
+
};
|
|
849
|
+
type SwapProps = SwapPropsCommon & PaymentSourceProps;
|
|
850
|
+
declare const Swap: import("react").ForwardRefExoticComponent<SwapProps & import("react").RefAttributes<TrailsWidgetRef>>;
|
|
851
|
+
//#endregion
|
|
852
|
+
//#region src/widget/modes/WithdrawWidget.d.ts
|
|
853
|
+
type WithdrawDestinationConfig = {
|
|
854
|
+
chain?: ChainIdentifier; /** Locked destination token (symbol or contract address). */
|
|
855
|
+
token?: string;
|
|
856
|
+
defaultChain?: never;
|
|
857
|
+
defaultToken?: never;
|
|
858
|
+
} | {
|
|
859
|
+
chain?: ChainIdentifier; /** Pre-selected destination token (user can change). */
|
|
860
|
+
defaultToken?: string;
|
|
861
|
+
defaultChain?: never;
|
|
862
|
+
token?: never;
|
|
863
|
+
} | {
|
|
864
|
+
defaultChain?: ChainIdentifier; /** Pre-selected destination token (user can change). */
|
|
865
|
+
defaultToken?: string;
|
|
866
|
+
chain?: never;
|
|
867
|
+
token?: never;
|
|
868
|
+
};
|
|
869
|
+
type WithdrawProps = SharedWidgetProps & {
|
|
870
|
+
apiKey: string;
|
|
871
|
+
from?: {
|
|
872
|
+
/** Source chain — chain ID, name (e.g. "base"), or viem Chain object. */chain?: ChainIdentifier; /** Withdraw amount in human-readable units. Accepts `string` or `number`. */
|
|
873
|
+
amount?: string | number; /** Wallet address to withdraw from. Defaults to the connected wallet. */
|
|
874
|
+
walletAddress?: string;
|
|
875
|
+
} & CryptoOriginToken & DestinationSupportConfig;
|
|
876
|
+
to?: {
|
|
877
|
+
/** Wallet address that receives the withdrawn tokens. Defaults to the connected wallet. */recipient?: string; /** Desired output amount in human-readable units. Accepts `string` or `number`. */
|
|
878
|
+
amount?: string | number; /** Optional low-level ABI-encoded calldata to execute on the destination chain after the withdrawal lands. */
|
|
879
|
+
calldata?: string;
|
|
880
|
+
} & WithdrawDestinationConfig; /** Fires when the withdrawal flow completes successfully. */
|
|
881
|
+
onWithdrawSuccess?: (data: {
|
|
882
|
+
sessionId: string;
|
|
883
|
+
}) => void; /** Fires when the user begins the withdrawal flow. */
|
|
884
|
+
onWithdrawStart?: (data: {
|
|
885
|
+
sessionId: string;
|
|
886
|
+
}) => void; /** Fires when the withdrawal flow encounters an error. */
|
|
887
|
+
onWithdrawError?: (data: {
|
|
888
|
+
sessionId: string;
|
|
889
|
+
error: unknown;
|
|
890
|
+
}) => void;
|
|
891
|
+
};
|
|
892
|
+
declare const Withdraw: import("react").ForwardRefExoticComponent<SharedWidgetProps & {
|
|
893
|
+
apiKey: string;
|
|
894
|
+
from?: {
|
|
895
|
+
/** Source chain — chain ID, name (e.g. "base"), or viem Chain object. */chain?: ChainIdentifier; /** Withdraw amount in human-readable units. Accepts `string` or `number`. */
|
|
896
|
+
amount?: string | number; /** Wallet address to withdraw from. Defaults to the connected wallet. */
|
|
897
|
+
walletAddress?: string;
|
|
898
|
+
} & CryptoOriginToken & DestinationSupportConfig;
|
|
899
|
+
to?: {
|
|
900
|
+
/** Wallet address that receives the withdrawn tokens. Defaults to the connected wallet. */recipient?: string; /** Desired output amount in human-readable units. Accepts `string` or `number`. */
|
|
901
|
+
amount?: string | number; /** Optional low-level ABI-encoded calldata to execute on the destination chain after the withdrawal lands. */
|
|
902
|
+
calldata?: string;
|
|
903
|
+
} & WithdrawDestinationConfig; /** Fires when the withdrawal flow completes successfully. */
|
|
904
|
+
onWithdrawSuccess?: (data: {
|
|
905
|
+
sessionId: string;
|
|
906
|
+
}) => void; /** Fires when the user begins the withdrawal flow. */
|
|
907
|
+
onWithdrawStart?: (data: {
|
|
908
|
+
sessionId: string;
|
|
909
|
+
}) => void; /** Fires when the withdrawal flow encounters an error. */
|
|
910
|
+
onWithdrawError?: (data: {
|
|
911
|
+
sessionId: string;
|
|
912
|
+
error: unknown;
|
|
913
|
+
}) => void;
|
|
914
|
+
} & import("react").RefAttributes<TrailsWidgetRef>>;
|
|
915
|
+
//#endregion
|
|
916
|
+
//#region src/widget/modes/FundWidget.d.ts
|
|
917
|
+
type FundPropsCommon = SharedWidgetProps & {
|
|
918
|
+
/** Trails API key used for authentication. Obtain one from the Trails dashboard. */apiKey: string;
|
|
919
|
+
to?: {
|
|
920
|
+
/** Wallet address that receives the funded tokens. Defaults to the connected wallet. */recipient?: string; /** Optional low-level ABI-encoded calldata to execute on the destination chain after the funding lands. */
|
|
921
|
+
calldata?: string;
|
|
922
|
+
} & OptionalDestinationConfig; /** Starting input mode. `"fiat"` shows a USD amount field; `"token"` shows a token amount field. */
|
|
923
|
+
defaultInputMode?: "fiat" | "token";
|
|
924
|
+
/**
|
|
925
|
+
* Funding direction.
|
|
926
|
+
*
|
|
927
|
+
* - `"EXACT_INPUT"` (default): the user specifies how much to fund with
|
|
928
|
+
* (source amount); the destination amount is computed from the quote.
|
|
929
|
+
* - `"EXACT_OUTPUT"`: the user specifies how much to receive; the source
|
|
930
|
+
* amount is computed from the quote. Only supported for the connected
|
|
931
|
+
* wallet payment method — falls back to `"EXACT_INPUT"` for fiat onramps
|
|
932
|
+
* and exchange transfers.
|
|
933
|
+
*
|
|
934
|
+
* @default "EXACT_INPUT"
|
|
935
|
+
*/
|
|
936
|
+
type?: "EXACT_INPUT" | "EXACT_OUTPUT"; /** Hide the swap tab in the fund screen header. @default false */
|
|
937
|
+
hideSwap?: boolean; /** Wallet addresses to exclude from the funding wallet selection list. */
|
|
938
|
+
hideWallets?: string[];
|
|
939
|
+
/**
|
|
940
|
+
* Ordered list of funding methods shown to the user.
|
|
941
|
+
*
|
|
942
|
+
* Accepted values: `"connected-wallet"`, `"crypto-transfer"`, `"cc-onramp"`, `"exchange"`.
|
|
943
|
+
* Legacy alias `"exchange-onramp"` is still accepted.
|
|
944
|
+
*
|
|
945
|
+
* @example ["connected-wallet", "cc-onramp"]
|
|
946
|
+
*/
|
|
947
|
+
fundMethodsList?: FundMethodListOption[];
|
|
948
|
+
/**
|
|
949
|
+
* When `true`, methods not listed in `fundMethodsList` are completely hidden.
|
|
950
|
+
* When `false` (default), unlisted methods are visible but disabled.
|
|
951
|
+
* @default false
|
|
952
|
+
*/
|
|
953
|
+
hideUnlistedFundMethods?: boolean; /** On-ramp provider configuration forwarded to the internal widget. */
|
|
954
|
+
onramp?: TrailsWidgetProps["onramp"]; /** Fires when the funding flow completes successfully. */
|
|
955
|
+
onFundingSuccess?: (data: {
|
|
956
|
+
sessionId: string;
|
|
957
|
+
}) => void; /** Fires when the user begins the funding flow. */
|
|
958
|
+
onFundingStart?: (data: {
|
|
959
|
+
sessionId: string;
|
|
960
|
+
}) => void; /** Fires when the funding flow encounters an error. */
|
|
961
|
+
onFundingError?: (data: {
|
|
962
|
+
sessionId: string;
|
|
963
|
+
error: unknown;
|
|
964
|
+
}) => void;
|
|
965
|
+
};
|
|
966
|
+
type FundProps = FundPropsCommon & PaymentSourceProps;
|
|
967
|
+
declare const Fund: import("react").ForwardRefExoticComponent<FundProps & import("react").RefAttributes<TrailsWidgetRef>>;
|
|
968
|
+
//#endregion
|
|
969
|
+
//#region src/widget/modes/PayWidget.d.ts
|
|
970
|
+
type PayPropsCommon = SharedWidgetProps & {
|
|
971
|
+
/** Trails API key used for authentication. Obtain one from the Trails dashboard. */apiKey: string;
|
|
972
|
+
to: {
|
|
973
|
+
/** Wallet or contract address that receives the payment. */recipient: string; /** Payment amount in human-readable units (e.g. `"10"` for 10 USDC). Accepts `string` or `number`. */
|
|
974
|
+
amount: string | number; /** Optional low-level ABI-encoded calldata to execute on the destination chain after the payment lands. */
|
|
975
|
+
calldata?: string;
|
|
976
|
+
} & PayDestinationConfig; /** Custom message displayed to the user during the payment flow (e.g. "Pay for order #1234"). */
|
|
977
|
+
payMessage?: string; /** On-ramp provider configuration forwarded to the internal widget. */
|
|
978
|
+
onramp?: TrailsWidgetProps["onramp"]; /** Fires when the payment flow completes successfully. */
|
|
979
|
+
onPaymentSuccess?: (data: {
|
|
980
|
+
sessionId: string;
|
|
981
|
+
}) => void; /** Fires when the user begins the payment flow. */
|
|
982
|
+
onPaymentStart?: (data: {
|
|
983
|
+
sessionId: string;
|
|
984
|
+
}) => void; /** Fires when the payment flow encounters an error. */
|
|
985
|
+
onPaymentError?: (data: {
|
|
986
|
+
sessionId: string;
|
|
987
|
+
error: unknown;
|
|
988
|
+
}) => void;
|
|
989
|
+
};
|
|
990
|
+
type PayProps = PayPropsCommon & PaymentSourceProps;
|
|
991
|
+
declare const Pay: import("react").ForwardRefExoticComponent<PayProps & import("react").RefAttributes<TrailsWidgetRef>>;
|
|
992
|
+
//#endregion
|
|
993
|
+
//#region src/widget/modes/EarnWidget.d.ts
|
|
994
|
+
type EarnDestinationConfig = ({
|
|
995
|
+
chain?: ChainIdentifier; /** Locked destination token (symbol or contract address). */
|
|
996
|
+
token?: string;
|
|
997
|
+
defaultChain?: never;
|
|
998
|
+
defaultToken?: never;
|
|
999
|
+
} & DestinationSupportConfig) | ({
|
|
1000
|
+
defaultChain?: ChainIdentifier; /** Pre-selected destination token (user can change). */
|
|
1001
|
+
defaultToken?: string;
|
|
1002
|
+
chain?: never;
|
|
1003
|
+
token?: never;
|
|
1004
|
+
} & DestinationSupportConfig);
|
|
1005
|
+
type EarnPropsCommon = SharedWidgetProps & {
|
|
1006
|
+
/** Trails API key used for authentication. Obtain one from the Trails dashboard. */apiKey: string;
|
|
1007
|
+
to?: {
|
|
1008
|
+
recipient?: string; /** Deposit amount in human-readable units (e.g. `"100"` for 100 USDC). Accepts `string` or `number`. */
|
|
1009
|
+
amount?: string | number; /** Optional low-level ABI-encoded calldata to execute on the `recipient` contract. */
|
|
1010
|
+
calldata?: string;
|
|
1011
|
+
} & EarnDestinationConfig; /** On-ramp provider configuration forwarded to the internal widget. */
|
|
1012
|
+
onramp?: TrailsWidgetProps["onramp"]; /** Fires when the earn deposit flow completes successfully. */
|
|
1013
|
+
onEarnSuccess?: (data: {
|
|
1014
|
+
sessionId: string;
|
|
1015
|
+
}) => void; /** Fires when the user begins the earn deposit flow. */
|
|
1016
|
+
onEarnStart?: (data: {
|
|
1017
|
+
sessionId: string;
|
|
1018
|
+
}) => void; /** Fires when the earn deposit flow encounters an error. */
|
|
1019
|
+
onEarnError?: (data: {
|
|
1020
|
+
sessionId: string;
|
|
1021
|
+
error: unknown;
|
|
1022
|
+
}) => void;
|
|
1023
|
+
};
|
|
1024
|
+
type EarnProps = EarnPropsCommon & PaymentSourceProps;
|
|
1025
|
+
declare const Earn: import("react").ForwardRefExoticComponent<EarnProps & import("react").RefAttributes<TrailsWidgetRef>>;
|
|
1026
|
+
//#endregion
|
|
1027
|
+
//#region src/widget/shared/resolution.d.ts
|
|
1028
|
+
declare function resolveTokenAddress(tokenOrAddress: string, chainId: number): string;
|
|
1029
|
+
//#endregion
|
|
1030
|
+
//#region src/utils/tokenResolution.d.ts
|
|
1031
|
+
type ResolvedTokenInput = {
|
|
1032
|
+
address: string;
|
|
1033
|
+
token: Token$1 | null;
|
|
1034
|
+
};
|
|
1035
|
+
/**
|
|
1036
|
+
* Resolves a token input (address or symbol) to a contract address and optional token metadata.
|
|
1037
|
+
*
|
|
1038
|
+
* - Address inputs pass through and are optionally enriched from the token catalog.
|
|
1039
|
+
* - Symbol inputs are looked up case-insensitively in the token catalog for the chain.
|
|
1040
|
+
* - Native currency symbols resolve to the zero address.
|
|
1041
|
+
*/
|
|
1042
|
+
declare function resolveTokenInput(tokenInput: string, chainId: number, trailsSupportedTokens: readonly Token$1[]): ResolvedTokenInput | null;
|
|
1043
|
+
//#endregion
|
|
1044
|
+
export { WrappedTrailsAdapterEntry as $, TrailsWidget as A, getActiveMeshMode as B, PaymentMethod as C, TrailsConnectWalletInitialPendingWallet as D, TrailsConnectWallet as E, WidgetFundMethod as F, SequenceEnv as G, useTrailsOnRamp as H, MeshConfig as I, TrailsAdapterManagedBy as J, TrailsAdapterConfig as K, TrailsOnRampConfig as L, createModalController as M, FundMethodListOption as N, TrailsConnectWalletProps as O, TrailsWidgetProps as P, TrailsProviderConfig as Q, TrailsOnRampProvider as R, FiatPaymentMethod as S, TrailsConnectDialogProps as T, EvmAdapterOptions as U, isMeshEnabled as V, evmAdapter as W, TrailsConfig as X, TrailsAdapterProviderProps as Y, TrailsProvider as Z, DevConfig as _, Earn as a, TrailsWaasFeeOptionsControllerValue as at, CryptoPaymentMethod as b, PayProps as c, TrailsModalProvider as ct, Withdraw as d, useTrails as et, WithdrawProps as f, DestinationConfig as g, AppMetadata as h, resolveTokenAddress as i, TrailsWaasFeeOptionsControllerProps as it, TrailsWidgetRef as j, TrailsHookModal as k, Fund as l, useTrailsModal as lt, SwapProps as m, ResolvedTokenInput as n, TrailsSequenceSupportConfig as nt, EarnProps as o, ModalSelectionParams as ot, Swap as p, TrailsAdapterEntry as q, resolveTokenInput as r, TrailsWaasFeeOptionConfirmation as rt, Pay as s, TrailsModalContextType as st, useWalletSession$1 as t, TrailsSequenceSupport as tt, FundProps as u, OptionalDestinationConfig as v, TrailsConnectDialog as w, ExchangePaymentMethod as x, SharedWidgetProps as y, TrailsOnRampProviderProps as z };
|